Summary
A restarted/resumed Every Code harness can coexist with an older live code resume <session> process for the same resume id. The older harness can keep its background Auto Review child running after the user believes the harness was restarted.
Evidence
Observed on 2026-06-02 while dogfooding Auto Review:
- Old harness process:
PID 13896, command code resume 8e18be4f-ff91-4264-a402-d89aa6741cbc.
- Old background review child:
PID 5454, command code exec ... /review ..., snapshot 9cc60a61.
- New/current harness after restart:
PID 66065, also command code resume 8e18be4f-ff91-4264-a402-d89aa6741cbc.
- The old review kept running for ~27 minutes after the restart path and reached about 1.69M total tokens in rollout token events before being killed manually.
- The old review was reviewing already-merged/obsolete work, so this was not useful restart recovery; it was duplicate live harness ownership.
Why This Matters
Users expect a harness restart/resume to leave one live supervisor for a session. If two harnesses own the same session id, Auto Review and other background tasks can continue under the old supervisor, burn tokens, surface late results, or interfere with lifecycle state.
Desired Invariant
When code resume <session-id> starts, Every Code should detect an existing live harness for the same session id and choose one safe behavior:
- attach to the existing live harness,
- refuse with a clear message,
- or cleanly retire the older harness and its background children before taking ownership.
For Auto Review specifically, old background review children should be cancelled, adopted, or marked lost/superseded through durable lifecycle policy rather than silently continuing under a stale supervisor.
Acceptance Criteria
Related
Related Auto Review durability/proof work: #324, #330, #50.
Summary
A restarted/resumed Every Code harness can coexist with an older live
code resume <session>process for the same resume id. The older harness can keep its background Auto Review child running after the user believes the harness was restarted.Evidence
Observed on 2026-06-02 while dogfooding Auto Review:
PID 13896, commandcode resume 8e18be4f-ff91-4264-a402-d89aa6741cbc.PID 5454, commandcode exec ... /review ..., snapshot9cc60a61.PID 66065, also commandcode resume 8e18be4f-ff91-4264-a402-d89aa6741cbc.Why This Matters
Users expect a harness restart/resume to leave one live supervisor for a session. If two harnesses own the same session id, Auto Review and other background tasks can continue under the old supervisor, burn tokens, surface late results, or interfere with lifecycle state.
Desired Invariant
When
code resume <session-id>starts, Every Code should detect an existing live harness for the same session id and choose one safe behavior:For Auto Review specifically, old background review children should be cancelled, adopted, or marked lost/superseded through durable lifecycle policy rather than silently continuing under a stale supervisor.
Acceptance Criteria
code resume <session-id>ownership or restart handoff where feasible.Related
Related Auto Review durability/proof work: #324, #330, #50.