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 3ad25d89..35dd544b 100644 Binary files a/state/ledgers.msgpack and b/state/ledgers.msgpack differ diff --git a/state/map.yaml b/state/map.yaml index 7c41bac4..92bd8fda 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -70,7 +70,7 @@ current_status: yggdrasil_epiphany_service_contract: repaired_in_gamecult_ops_812b427_not_installed resident_physiology: c006_exact_c693aaea_settled_braked_no_active_lease_no_attempt_three_old_processes_stopped unresolved_authority: Coordinator receipt, Heartbeat pulse-artifact, deployed supervisor/projector log retention, genuine-idle and active resource plateaus, exact-grant terminality, restart-persistent cooldown refusal, schedule/action issuance cardinality, runtime-owned typed fulfillment, narrow model-generation retention, published model-turn JSON ingress, semantic logical/physical retention, Persona conversation retention, stable Starfire firewall ownership, completed model-adapter session archival, normal coordinator lifecycle opening/error closure/legacy repair/archival, packaged admitted-model-direction and Imagination fulfilled-before-receipt settlement, and packaged co-resident resident lifecycle retention are accepted live. Proposal Modeling fulfilled-before-receipt plus runtime retention of terminal worker attempts remain open. Historical migrated semantic attempts without recorded physical namespace remain durable and non-retirable. Repository Body observation still performs two authenticated full-tree Git index/manifest passes. Execute-mode workers require a persistent process body. Mutable Starfire bind storage still needs the packaged randomized interruption/read-loop proof before recovered c005 authority may be trusted. One completed Discord consequence remains blocked by the absent Yggdrasil credential. - next_action: Map runtime retention ownership for terminal worker attempts and prove it cannot revive or invalidate resident settlement; then choose a Linux-native construction path for direct packaged proposal Modeling evidence without adding a test-only production API. Keep actual c006 braked. Yggdrasil never builds. + next_action: Implement a typed runtime worker-attempt archive owned by runtime spine: require exact terminal claim and immutable attempt family plus explicit absence of resident cross-store authority, atomically replace that family with a per-attempt tombstone, and make retry/fulfillment readers treat the tombstone as terminal evidence so deletion cannot revive a launch or erase settled fulfillment. Prove stale-CAS refusal and all three typed lanes before packaging. Keep actual c006 braked. Yggdrasil never builds. active_subgoals: - Prove Persona, Self, Eyes, Modeling, Imagination, Hands, Soul, Mind, Continuity, and nervous-system behavior individually.