Add ORC-001 Orphan Cascade Revocation - #263
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
External falsification targetThe immediate validation target is the multi-session/process-group failure mode reported by Useful counterexamples for ORC-001:
Case (4) is explicitly a successful falsification/narrowing result, not a failure to validate. Current executable baseline: HRC + ORC conformance 40/40 PASS on PR #263 ( Evidence boundary: this proves internal consistency of the reference contract only. It does not claim that Claudiverse, Claude Code, or another runtime reproduces the orphan-cascade class at a known frequency. |
What changed
Adds ORC-001 — Orphan Cascade Revocation, a framework-neutral executable contract for revoking side-effect authority from already-running parent/child agent trees after an HRC ownership handoff.
This PR is intentionally stacked on #262 HRC-001 and targets
agent/handoff-reachability-causalityso the review delta stays narrow.Core separation
Load-bearing boundaries:
RUNNING != AUTHORIZEDKILL_REQUESTED != EXITEDFailure mode
After a committed handoff:
an old root, child, or grandchild may still physically be running. ORC-001 requires their next consequential side effect to fail immediately because the inherited authority epoch is stale. Cleanup/quiescence may complete later.
Executable behavior
Reference statuses include:
Falsification suite
Adds 16 tests covering:
KILL_REQUESTEDnot implying quiescence;Motivation / evidence boundary
The motivating Claude Code #24798 discussion includes a practical recommendation to place each session in its own process group so cascading subagents can be killed cleanly when a session fails. ORC-001 treats that as an important cleanup primitive while testing the stronger safety question: what prevents a stale descendant from producing a side effect before cleanup wins the race?
This PR does not claim that this failure class has been independently reproduced in Claudiverse or Claude Code at a known frequency. It converts the reported operational concern into a falsifiable contract for external testing.
Scope / non-claims
ORC-001 does not claim that process groups are the only valid cleanup mechanism, that a successful kill request proves all descendants exited, that revocation rolls back prior external side effects, or that any vendor has adopted the contract.