Repository navigation
Closed
Description
Context
kernal-api is intended to sit above running-process, but it currently has no running-process dependency and its public child process facade in src/lib.rs is implemented directly with Tokio and native platform code. Issue #5 requires the facade to adapt a minimal native substrate privately, not to perpetuate a second process implementation.
This work may start only after the substrate feature defined by zackees/running-process#1143 proves that a process-only dependency omits broker protobuf generation, CLI/config parsing, SQLite, PTY/ConPTY, daemon binaries, and other client/daemon-only machinery.
Proposal
- Add the exact, feature-minimal
running-processdependency selected by the accepted substrate evidence. - Introduce a private adapter that maps backend process values into existing or new kernal-owned semantic child/process types.
- Migrate one bounded process slice: spawn, wait, hard kill, process-group containment, owner-death cleanup, and bounded stdout/stderr capture.
- Retain façade ownership of public types and errors. Do not re-export or name
running_process, Tokio, generated protobuf, libc, Windows APIs, descriptors, or handles in public contracts. - Do not include broker protocol/client migration, filesystem migration, HTTP, or zccache call-site migration in this issue.
Acceptance criteria
- RED: focused contract tests fail against the pre-adapter implementation or demonstrate a missing substrate primitive for child containment, owner death/kill-on-drop, bounded capture, detached behavior where applicable, and termination.
- The accepted refactor: define running-process as the native substrate for kernal-api zackees/running-process#1143 substrate feature is used with default features disabled; dependency evidence proves it excludes broker protobuf generation, CLI/config, SQLite, PTY/ConPTY, and daemon-only machinery.
- GREEN: Linux, macOS, and Windows contract tests pass through the adapter for spawn/wait/kill, containment/owner-death behavior, and bounded capture.
- GREEN: public API/source policy proves no backend type or implementation crate spelling leaks through kernal-api public contracts.
- GREEN: resolved dependency inspection proves no
running-process -> kernal-apiedge. - No zccache call site, broker wire format, endpoint, payload, or IPC round-trip changes in this issue.
Decisions
- Priority is P1 because this is the first dependency-direction proof required by feat: implement the kernal-api capability spine and fully rebase zccache embedded #5.
- The adapter is deliberately process-only so it remains reviewable and does not pre-empt later broker or platform migration design.
- A missing backend operation is added to
running-processonly when a characterization test demonstrates that adapting public primitives cannot preserve the contract.
Related issues
- feat: implement the kernal-api capability spine and fully rebase zccache embedded #5 — implementation umbrella and Phase 1.
- refactor: define running-process as the native substrate for kernal-api zackees/running-process#1143 — required feature-minimal native substrate.
- refactor: migrate zccache completely from running-process to kernal-api zccache#1518 — downstream consumer migration; intentionally out of scope here.
Metadata
Metadata
Assignees
Labels
No labels
Activity
zackees commentedon Aug 27, 2026
The running-process source prerequisite is now merged via zackees/running-process#1156 (squash
95b89b64b2cc0347314664e479293c4ba95ac362; closes zackees/running-process#1155). The kernal-api adapter still needs an exact released running-process version that contains this API; no adapter implementation should proceed against an unreleased source revision. Keeping this issue open.