Map terminal worker attempt retention

This commit is contained in:
Meta Vens 2026-08-10 17:01:57 +01:00
commit 909cb25ffb
4 changed files with 77 additions and 1 deletions

View file

@ -3318,3 +3318,42 @@ owns exact zero-receipt death settlement, replay refusal, lifecycle retirement,
and non-resurrection. Core 663/1 ignored and swarm 7 pass. Direct packaged proof
still requires Linux-native construction because the worker launch's Body basis
cannot truthfully be minted under a Windows path and rebound later.
## Outer worker-attempt retention authority map
- 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
binding; process claim; terminal role result and typed companion; runtime job
and terminal events; downstream result references; resident prepared/active
lease and terminal-ack liveness.
- Outputs: one per-attempt typed archive tombstone committed atomically with
deletion of that exact attempt family. Retry and fulfillment readers consume
the tombstone as terminal evidence for only its request/job/result tuple.
- Derived state: a cumulative retention head may count archives but cannot own
attempt death or request fulfillment. Missing launch/claim/result rows are not
evidence by themselves.
- Forbidden writers: completed model-session archival, coordinator receipt
retention, resident lifecycle retention, semantic retention, wall-clock age,
and artifact cleanup cannot retire outer worker authority. No generic sweep
may delete a claim or result independently.
- Shared paths: proposal Modeling, Imagination consideration, and admitted model
direction use the same archive commit primitive and common launch/claim/job
invariants, with lane-specific binding/companion validators.
- Cut line: archive only exact launch, terminal claim, terminal result,
lane-specific attempt binding/companion, and terminal job/event rows. Preserve
request, proposal, model, admission, and unrelated runtime families until a
separately mapped lifecycle owns them. The tombstone must be written in the
same full-snapshot CAS as deletion.
- Verification layer: terminal-result/failure/death attempts; prepared/active/
unconsumed-ack refusal; downstream-reference refusal; stale snapshot race;
unknown-row byte identity; retry after archived failure; fulfillment after
archived success; duplicate archive replay; and negative proof that restoring
or deleting one old envelope cannot resurrect work.
Source finding: current completed-session archival explicitly accepts only
terminal `openai-model-adapter` jobs and refuses outer-worker authority.
`runtime_typed_request_attempt_exists` treats a launch without a claim as live,
while `runtime_typed_request_fulfillment` requires the terminal result. Thus
claim-only or result-only deletion would respectively revive retry exclusion or
erase fulfillment. No production outer-worker retention primitive exists yet.

View file

@ -2622,3 +2622,40 @@ so a faithful fixture must construct it inside the Linux path namespace after
packaged Body binding. Do not add a test-only production writer merely to make
that receipt convenient. Next map terminal-worker-attempt retention and then
choose the smallest Linux-native construction path.
## Terminal worker-attempt retention ownership mapped — 2026-08-10
There is no production retention owner for outer role-worker attempts. Existing
completed-session archival deliberately accepts only model-adapter families and
refuses outer worker launches/results. A narrow deletion of process claims is
invalid: `runtime_typed_request_attempt_exists` interprets a launch with no
claim as live, so deleting a terminal claim resurrects retry exclusion. A
narrow deletion of a terminal result can turn fulfilled request state back into
pending. A digest/count retention head cannot safely replace either authority.
Owner: runtime spine owns one typed archive transaction per immutable worker
attempt. Inputs are the exact typed request, launch, lane-specific launch
binding, native process claim, terminal worker result and companion, job/event
family, downstream references, and explicit resident cross-store liveness.
Output is one per-attempt archive tombstone plus atomic deletion of only that
exact attempt family. The tombstone is terminal evidence for retry and
fulfillment readers; it is not a generic completion head and cannot satisfy a
different request or job.
The archive must refuse while resident prepared/active authority or an
unconsumed terminal acknowledgement names the attempt's request/grant; while a
claim is nonterminal; while a downstream review/admission still needs exact
result bytes; or when the lane-specific family is incomplete. Proposal
Modeling, Imagination consideration, and admitted-model-direction consideration
share the archive primitive but supply distinct family validators. Unknown
runtime rows remain byte-identical under a full-snapshot fence.
Deletion line: launch, terminal claim, result, lane binding and companion, and
terminal job/event rows may disappear only in the same CAS that creates the
exact tombstone. Request/proposal/model/admission state remains producer-owned
unless a later independently mapped lifecycle archive owns it. Readers must
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.