From 909cb25ffb76a00036fc7242aafb142554aa293a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 10 Aug 2026 17:01:57 +0100 Subject: [PATCH] Map terminal worker attempt retention --- notes/epiphany-current-algorithmic-map.md | 39 ++++++++++++++++++++++ notes/fresh-workspace-handoff.md | 37 ++++++++++++++++++++ state/ledgers.msgpack | Bin 609931 -> 610473 bytes state/map.yaml | 2 +- 4 files changed, 77 insertions(+), 1 deletion(-) diff --git a/notes/epiphany-current-algorithmic-map.md b/notes/epiphany-current-algorithmic-map.md index ab6855af..33c81934 100644 --- a/notes/epiphany-current-algorithmic-map.md +++ b/notes/epiphany-current-algorithmic-map.md @@ -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. diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 05e76d4d..4737b672 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -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. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 3ad25d8912efbec8d32a515cfca262b31a65413f..35dd544b2459c0a65b4e8b2b84111e005fd784dd 100644 GIT binary patch delta 591 zcmZ8dJ&P1U5Or3)yEQN}F)NVEoE;5RxXUyY5ljRVsp+Y`ZS9Y-tJ__p4GuIgUM?~) zG&{J!*u>x94>^o|y(}mOkD{BZ_x1V9;kU1c=eL_1_m3VtdiC?l^!dk&JI%YM*_>`B zpEi>QsPigt4Y&^M0sFwg_swMb`{~)Q$J3kp50CCuinAXt_in8(pYb@#K(S;=w2bMk zq?U6QKW0jjC1e}JjGjb4Iy{F~MHOGf$t>)9Asco}?A!;Em2qVdr4*g)_!Q@kt#4z% z#vtIS1WB~4QxcPv9G74g<+&sYM)a7F0B;^7p{E+m#GnOX^8%=vRdV(RJx$vr delta 68 zcmZ3vP_=um>IO+hE(0qA^QdDCoW2>Gl^F{e8K*Q)Won