Archive failed typed worker attempts

This commit is contained in:
Meta Vens 2026-08-10 17:28:45 +01:00
commit 380ba8ca42
8 changed files with 273 additions and 4 deletions

View file

@ -3321,6 +3321,26 @@ cannot truthfully be minted under a Windows path and rebound later.
## Outer worker-attempt retention authority map
### Implemented failure-family cut
`resident_self::live_resident_self_typed_request_ids` is the cross-store
liveness owner: every surviving typed grant preserves its request. After
resident lifecycle compaction, `epiphany-swarm` passes that set to
`retain_failed_runtime_worker_attempts`. Runtime spine then retains the newest
configured failed attempts and may atomically replace an older exact family
with `EpiphanyArchivedRuntimeWorkerAttempt`. The archive accepts only one of
the three resident typed request echoes, a failed/cancelled runtime job, and an
exact terminal-death, terminal-unactivated, or terminal-failure claim with its
terminal authority. It deletes only the matching launch, claim, lane binding,
job, generic result, and job events under the full physical snapshot fence.
The request and all unrelated envelopes remain live.
This cut deliberately refuses `terminal-result`: successful result/binding
authority still answers `runtime_typed_request_fulfillment`, so deleting it
without a fulfillment-capable tombstone would create false Pending state. That
reader migration, stale-CAS proof, and all-lane production retention proof are
the next cut.
- Owner: runtime spine owns archival of one immutable outer worker attempt.
Resident Self supplies cross-store liveness but cannot delete runtime rows.
- Inputs: exact typed request identity; worker launch; lane-specific launch

View file

@ -2659,3 +2659,15 @@ consult tombstones before treating missing claims/results as live or pending.
Next implement the archive and hostile/non-resurrection tests before packaging.
Direct packaged proposal Modeling construction remains a later Linux-native
evidence task. Actual c006 stays braked.
## Failed outer-worker attempt retention cut in source — 2026-08-10
Runtime spine now owns `EpiphanyArchivedRuntimeWorkerAttempt` for failed or
cancelled typed attempts. Resident Self projects every typed request still
named by a durable grant; serve/once compacts resident lifecycles first, then
passes that surviving set into runtime retention. The runtime refuses a live
request byte-identically and otherwise replaces the exact launch, terminal
claim, lane binding, terminal job/result/events with one snapshot-fenced
tombstone. A focused proposal-Modeling test proves refusal, retirement,
idempotence, and that deletion cannot recreate retry suppression. Successful
attempt retirement remains open because its tombstone must preserve the same
authenticated fulfillment answer currently owned by the result/binding chain.