From 66294ce16cad403be0ad3ffaba8e409d26496e80 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 9 Aug 2026 23:17:13 +0100 Subject: [PATCH] Record typed fulfillment ownership cut --- notes/epiphany-current-algorithmic-map.md | 27 +++++++++++-------- notes/fresh-workspace-handoff.md | 32 ++++++++++++++++------- state/map.yaml | 6 ++--- 3 files changed, 42 insertions(+), 23 deletions(-) diff --git a/notes/epiphany-current-algorithmic-map.md b/notes/epiphany-current-algorithmic-map.md index 77208af7..b5837803 100644 --- a/notes/epiphany-current-algorithmic-map.md +++ b/notes/epiphany-current-algorithmic-map.md @@ -1348,10 +1348,14 @@ Resident terminal success is also pressure-specific. For a only that the bounded coordinator process ended cleanly; it does not prove the requested Modeling work reached a typed terminal result. The resident active turn therefore remains the sole acknowledgement owner after coordinator exit. -For proposal Modeling it requires the runtime-owned worker result echoing the -exact proposal request. For admitted model-direction and Imagination -consideration it additionally validates the exact typed result/candidate and -requires that byte-identical companion to exist in the runtime store. Missing +For every typed lane it asks one runtime-spine-owned verifier whether the exact +request has one authenticated terminal worker result. The verifier replays the +same immutable runtime admission path that owns worker launch role/binding, +request/runtime/thread/job identity, launch projection, foreign-cargo +exclusion, and typed companion persistence. Proposal Modeling adds its exact +selection, proposal payload, launch binding, Body basis, Evolution patch, and +proposal-citing frontier contract through the same helper used by Mind +admission. Missing terminal evidence is `awaiting-fulfillment`: the active lease remains live and cannot be retained, relaunched, acknowledged, or requeued. A later serve cycle consumes the route exactly once when the typed evidence appears. Brake, @@ -1360,13 +1364,14 @@ the lease once and return its exact pressure to Heartbeat; invalid or substituted evidence closes as `unfulfilled`. Coordinator process closure is therefore evidence, never cognitive completion authority. -The remaining cut is authentication ownership inside that fulfillment verdict. -Runtime spine already owns admission of launch bindings, worker launch context, -request/runtime/thread/job identity, and exact typed results. Resident Self must -consume one shared runtime-owned verdict. Merely finding a role-worker result -that echoes a proposal request ID, or deriving an Imagination candidate from an -otherwise unauthenticated binding, is not fulfillment. Self may retain or close -its lease from the verdict; it may not recreate a weaker admission policy. +Resident Self now owns only the mapping from grant provenance to a typed runtime +request reference and the lease transition driven by the verdict. It does not +scan worker rows or recreate candidate/result policy. No claimant means +Pending; one authenticated claimant means Fulfilled; item errors, missing or +swapped launches/bindings, missing companions, foreign cargo, and multiple +claimants fail closed. Replaying a result already persisted by runtime admission +is validation-only: exact idempotence performs no write, while a missing +companion or changed envelope refuses before mutation. Terminal completion owns its cooldown in that same resident-state and acknowledgement CAS. `next_eligible_at_millis` is persisted from the configured diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 7929909f..d5827339 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -1390,12 +1390,26 @@ resident 22,984; Heartbeat 13,200; artifacts 298,663. Self rested at 31.92 MiB and Heartbeat at 27.81 MiB before stop. Exact-grant terminality and bounded active endurance are accepted. Active c005 was untouched. -The next semantic seam is not another lifecycle patch. Resident proposal -Modeling fulfillment currently accepts any role-worker result naming the exact -request ID; it does not reuse runtime-spine authentication of the one launch -binding, runtime/thread/job identity, worker launch context, and admitted typed -result. Imagination fulfillment has the parallel binding-provenance weakness. -Map one runtime-owned verifier, demote resident Self to verdict consumer, add -hostile substitution tests plus a cycle-level pending-to-fulfilled exactly-once -proof, then package. Do not let the successful process/endurance proof overclaim -semantic authentication. +Commit `cc566a3c` cuts the typed-fulfillment authentication split. Runtime spine +now owns one typed request verifier for proposal Modeling, Imagination +consideration, and admitted model-direction consideration. It replays the exact +immutable result-admission path and then checks the persisted typed companion; +proposal Modeling additionally uses one shared immutable proposal/selection/ +launch/patch validator from both delayed fulfillment and Mind admission. +Resident Self only maps exact grant provenance to that typed request and consumes +Pending/Fulfilled/error. Echo-only rows, substituted launch bindings, item +errors, missing companions, and duplicate terminal claimants cannot complete a +grant. + +Focused proof is green: 24 resident tests, 8 `epiphany-swarm` tests, 11 +Heartbeat-state tests, and the new hostile proposal verifier test. The resident +cycle proof now exits the coordinator zero, remains `awaiting-fulfillment`, +admits an exact launch-bound model-direction result through runtime spine, and +closes once. The broader 50-test runtime-spine sweep reached 48 green and +exposed two older contradictory fixtures: one expects a proposal with an +existing launch to remain schedulable; another asks proposal admission to admit +Proposed/Blocked frontier rows despite its active-routeable contract. Do not +loosen fulfillment authentication to satisfy them. Reconcile which owner those +tests are actually exercising, restore a fully green runtime sweep, then update +Mind and package exact `cc566a3c` or its corrective descendant. Active c005 +remains untouched. diff --git a/state/map.yaml b/state/map.yaml index 14a6ed70..63aa99a4 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -35,7 +35,7 @@ invariants: - Evidence and git retain history; this map retains only state that changes future decisions. current_status: - summary: Epiphany is a supervised engineering alpha on Starfire, not deployment-ready. Exact b8138a6b active-child SIGTERM and restart, exact 9f369528 deterministic warm packaging, exact c930f505 cross-container ownership, exact ed15f83a resident lifecycle retention, and exact 16c4b19f coordinator receipt and Heartbeat artifact retention are proven. Gamecult-ops 059821f makes journald the sole Yggdrasil supervisor/projector stream-retention owner. Exact 16c4b19f genuine idle and exact a987d2f7 active cognition both completed 900-pulse bounded plateaus with clean direct-PID exits. The active run proves typed fulfillment, restart-persistent cooldown, exact-grant terminality under deliberate missing-ack and marker-regression corruption, multiple later terminal grants without resurrection, bounded artifact retention, and flat terminal resource state. Proposal Modeling fulfillment still accepts a worker result by request ID alone instead of reusing runtime-spine launch/result authentication, so the coordinated semantic completion claim remains narrower than the process/lifecycle proof. Broad session/model/event/tool retention and stable Starfire firewall ownership remain open. Yggdrasil is the small public crossing body, never the release forge. + summary: Epiphany is a supervised engineering alpha on Starfire, not deployment-ready. Exact b8138a6b active-child SIGTERM and restart, exact 9f369528 deterministic warm packaging, exact c930f505 cross-container ownership, exact ed15f83a resident lifecycle retention, and exact 16c4b19f coordinator receipt and Heartbeat artifact retention are proven. Gamecult-ops 059821f makes journald the sole Yggdrasil supervisor/projector stream-retention owner. Exact 16c4b19f genuine idle and exact a987d2f7 active cognition both completed 900-pulse bounded plateaus with clean direct-PID exits. The active run proves restart-persistent cooldown, exact-grant terminality under deliberate missing-ack and marker-regression corruption, multiple later terminal grants without resurrection, bounded artifact retention, and flat terminal resource state. Commit cc566a3c moves proposal Modeling, Imagination, and model-direction fulfillment authentication into one runtime-spine owner; resident Self consumes only its typed verdict. Focused resident, swarm, Heartbeat, and hostile-proposal proofs pass. A 50-test runtime sweep exposed two older contradictory proposal scheduling/admission fixtures, so exact packaging waits for that ownership reconciliation. Broad session/model/event/tool retention and stable Starfire firewall ownership remain open. Yggdrasil is the small public crossing body, never the release forge. latest_phase: Exact a987d2f7 packaged as warning-free 24-binary release sha256-fa7476e703c807c1ec7fdf5a099e0ac36a34ff8c01e2b404a4aade1a2cf3b6d0 with witness sha256-515c9caa49fb90585834520f4e8f6fdc1704145e1a0cd7b695be09ad93d14e14. Active6 copied 7,667 state/workspace/crossing/artifact files plus machine identity from the accepted idle body with zero hash differences and published only that release. One typed turn completed, Self stopped exit0 and restarted before nextEligibleAtMillis=1786311170229, then slept through the deadline. At 1786311162775 the isolated store was deliberately changed to delete the exact acknowledgement and clear consumed_at_millis while preserving the v1 grant's terminal planned state. That grant remained dead after expiry and through two later typed completions; each later lease used a distinct v1 grant and Heartbeat schedule/action. Heartbeat completed 900 pulses exit0, monitor stopped Self exit0, all three stderr logs are empty, tracked workspace changes are zero, pulse artifacts ended at three directories, and the final 40 samples were byte-flat at state 13012660, runtime 9225193, resident 22984, heartbeat 13200, artifacts 298663 bytes; Self was 31.92 MiB and Heartbeat 27.81 MiB before stop. Receipts are under .epiphany-run/active-cognition6-a987d2f7. Grant-owned terminality and bounded active endurance are accepted. operational_state: local_worktree: coordinator_receipt_retention_packaged_proven @@ -68,8 +68,8 @@ current_status: starfire_linux_modeling_peak: 109887488_bytes_resident_body_plus_modeling_circuit yggdrasil_epiphany_service_contract: repaired_in_gamecult_ops_812b427_not_installed resident_physiology: authenticated_9b8df0b4_c005_bound_to_eyes_tools_nervous_system_with_217dd_and_bd96305e_helpers_running - 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, and schedule/action issuance cardinality are accepted. Proposal Modeling resident fulfillment still treats any worker result naming request_id as terminal without authenticating its one launch binding, runtime/thread/job identity, worker launch context, or typed result admission; Imagination fulfillment has a parallel binding-provenance gap. Broader semantic/runtime histories remain unbounded pending a typed archived-session owner. Repository Body observation still performs two authenticated full-tree Git index/manifest passes. Execute-mode workers require a persistent process body. Keyed storage has not earned live migration. One Discord consequence remains blocked by the absent Yggdrasil credential. - next_action: Map and cut the resident typed-fulfillment authentication split. Reuse one runtime-spine-owned verifier for proposal Modeling and Imagination launch binding, worker launch context, request/runtime/thread/job identity, and exact admitted typed result; resident Self may observe that verdict but must not duplicate or weaken admission policy. Add hostile substituted-binding/result tests and a cycle-level pending-to-fulfilled exactly-once transition proof before another package. Preserve active c005. Do not compact session/model/event/tool history until typed archived-session ownership exists. + 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, and runtime-owned typed fulfillment authentication are accepted in focused source tests. The broader runtime sweep is 48/50 because two older fixtures disagree with live proposal ownership: one expects a launched proposal to remain schedulable, while another expects proposal admission to admit inactive frontier rows. Resolve those contracts before packaging or live semantic acceptance. Broader semantic/runtime histories remain unbounded pending a typed archived-session owner. Repository Body observation still performs two authenticated full-tree Git index/manifest passes. Execute-mode workers require a persistent process body. Keyed storage has not earned live migration. One Discord consequence remains blocked by the absent Yggdrasil credential. + next_action: Reconcile the two proposal fixture contradictions without weakening runtime-owned fulfillment: classify whether an existing launch or authenticated terminal result closes scheduling authority, and give inactive frontier route-defense tests a legitimate admitted-state fixture rather than bypassing proposal admission policy. Require all 50 runtime-spine tests plus 24 resident, 8 swarm, and 11 Heartbeat tests green. Then package the exact corrective source and prove copied-state pending-to-authenticated-fulfilled closure live. Preserve active c005. Do not compact session/model/event/tool history until typed archived-session ownership exists. active_subgoals: - Prove Persona, Self, Eyes, Modeling, Imagination, Hands, Soul, Mind, Continuity, and nervous-system behavior individually.