Supersede stale resident continuations

This commit is contained in:
Meta Vens 2026-08-11 16:18:03 +02:00
commit 3a5d2b5ee2
4 changed files with 216 additions and 22 deletions

View file

@ -1432,6 +1432,15 @@ unset until acceptance and is not pre-acceptance evidence. The failed process re
the typed result owns cognitive review readiness. This route cannot launch a
second worker or continue into Hands.
Receipt-derived launch actions are revalidated at preparation. A terminal role
result overtakes an older `launchResearch`, `launchModeling`, or
`launchVerification` continuation before process creation. Resident Self then
atomically marks the exact unlaunched grant `superseded`, leaves its consumed
pressure closed, and emits one Heartbeat acknowledgement bound to the
originating receipt. The stale receipt remains evidence but no longer owns a
launch; Heartbeat may then schedule the current typed review pressure. This is
grant-owned closure, not deletion or retry repair.
Exact packaged `6dd9b132` proves that ownership cut live. One autonomous
proposal Modeling coordinator exited while its detached worker continued; Self
held the same lease as `awaiting-fulfillment`. Runtime later admitted one exact

View file

@ -3730,3 +3730,12 @@ receipts are `.epiphany-run/live-swap-c007f-2e1ccaf7`. The corrected source
requires the exact Modeling job link plus runtime-owned typed fulfillment; its
focused lifecycle test now explicitly proves recovery while link result ID is
absent. Package/restart/live replay of this correction is next.
Restarting exact fbd57b9b braked exposed a separately preserved grant from the
older `launchModeling` continuation. The active source cut now revalidates
receipt-derived launches at preparation: terminal Modeling evidence overtakes
the stale launch, and one snapshot-fenced transaction terminalizes the exact
unlaunched grant as `superseded`, preserves the consumed pressure, and emits a
receipt-bound Heartbeat acknowledgement. The focused continuation test proves
supersession and then proves the newer `reviewModelingResult` continuation can
prepare normally. Commit/package/live replay remain next.