oka_process 0.10.3
oka_process: ^0.10.3 copied to clipboard
POSIX owned process sessions for oka: identity-before-signal, leader-owned groups, and explicit settlement. Linux and macOS only (ADR-0052).
oka_process #
POSIX owned process sessions for the oka ecosystem (ADR-0052).
Adopts dfp ADR-0066 rules as oka policy:
- Identity before signal (
pid+ start time + p1 marker/sid) - Observed group disappearance is final
- Unavailable observation is never death — report unsettled
Platforms: Linux and macOS only. Windows is future work (see ADR).
Status #
| Piece | State |
|---|---|
| Types (identity, settlement, receipts, budgets) | Implemented |
posix-perl backend |
Implemented (p1 Perl leader) |
posix-native backend |
Stub — P1 (Rust helper under native/) |
oka_core integration |
Follow-up |
Backends #
posix-perl— reference Perl leader (tool/owned_session_p1_leader.pl)posix-native— hash-pinned prebuilt helper (P1)
p1 conformance #
Normative contract: doc/p1_owned_session_contract.md.
Leader path resolution uses Isolate.resolvePackageUri in
resolveOwnedSessionP1LeaderPath() — that does not work in
dart compile exe / AOT binaries. Set OWNED_SESSION_P1_LEADER to the
on-disk path of tool/owned_session_p1_leader.pl for compiled consumers.
export OWNED_SESSION_P1_LEADER="$PWD/tool/owned_session_p1_leader.pl"
dart test
bash tool/run_p1_oka_probes.sh
bash tool/p1_matrix.sh # per-host OS/arch cell
Example #
cd example && dart run main.dart
import 'package:oka_process/oka_process.dart';
final backend = PosixPerlProcessSessionBackend();
final handle = await backend.launch(
const OwnedProcessLaunchSpec(executable: 'sleep', arguments: ['2']),
);
final receipt = await backend.stop(handle);
Publishing #
Published on the automated pub.dev OIDC train with the rest of oka (GitHub
Actions via tool/release/publish_packages.sh; first in upload order). See
PUBLISHING.md for one-time pub.dev automated-publishing setup
(required before the next tagged release).