From d303dd1f9063500af2567cd45fb0c1eca2162f92 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 9 Aug 2026 20:45:30 +0100 Subject: [PATCH] Record preparation-owned cooldown enforcement --- notes/epiphany-current-algorithmic-map.md | 3 +++ notes/fresh-workspace-handoff.md | 10 ++++++++++ state/map.yaml | 6 +++--- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/notes/epiphany-current-algorithmic-map.md b/notes/epiphany-current-algorithmic-map.md index 5b633f13..2a057aaa 100644 --- a/notes/epiphany-current-algorithmic-map.md +++ b/notes/epiphany-current-algorithmic-map.md @@ -1364,6 +1364,9 @@ Terminal completion owns its cooldown in that same resident-state and acknowledgement CAS. `next_eligible_at_millis` is persisted from the configured cooldown before the active lease disappears. The serve loop's sleep is only a process-efficiency detail; restart cannot become a second eligibility owner. +The shared preparation primitive reloads the persisted state and refuses every +grant before that deadline, so `serve`, `once`, and crash/restart do not need +separate cooldown opinions. One Heartbeat coordinator turn owns at most one resident grant. Grant issuance first refuses any prepared or active Self authority, then atomically advances diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 2462726e..74c383b2 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -1278,3 +1278,13 @@ Twenty-four resident tests and eight swarm binary tests pass. Package exact Require exactly one grant per Heartbeat turn, later pressure pending through the persisted cooldown (including restart), typed fulfillment once, bounded return to plateau, and clean zero exits. Active c005 remains untouched. + +Pre-package source inspection caught one surviving obsolete path: production +`cycle()` called `prepare_resident_self_launch` without reading the persisted +deadline, and preparation itself did not enforce it. The in-flight de2e8ad5 +package was stopped as invalid source; its build logs are preserved under +`.epiphany-run/linux-package-de2e8ad5/`. Pushed `ee05d9bb` moves the read into +the shared preparation primitive. A fresh post-completion call with a committed +later grant now refuses at deadline minus one and prepares exactly at the +deadline. Package latest source containing both `90648073` and `ee05d9bb`; +never resume or publish the stopped de2e8ad5 build. diff --git a/state/map.yaml b/state/map.yaml index 9d4048a8..8e268715 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -36,7 +36,7 @@ invariants: 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. The exact 16c4b19f genuine-idle control completed 900 refused pulses with constant state, zero artifacts, flat RSS, and clean direct-PID exits. Exact e09104a7 proved live typed fulfillment and exposed two continuity faults; pushed 90648073 repairs their source ownership, but an exact-package replay remains required. 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 e09104a7 packaged as warning-free 24-binary release sha256-40d4971a3b7ecf4debf558621b80c6384c6c1a155971e42aecf44bf05d13e418 with witness sha256-5f68e73e0b9ad2dff7e7cfa912455bd7e27f1a653c2a2eecd8bf5a012f146c68. Its 900-pulse copied-state active run launched the valid cognitive-runtime request, retained Self authority after coordinator exit, accepted exact typed fulfillment, and exited Heartbeat/Self zero. The run then falsified cooldown and grant exclusion: terminal completion left nextEligibleAtMillis zero, and Heartbeat issued later pressure under the still-open schedule after the first grant was consumed. Three turns ran where one bounded turn plus cooldown was intended. Commit 90648073 atomically persists the cooldown deadline and makes grant issuance contend on ResidentSelfState while refusing prepared or active authority. Twenty-four resident and eight swarm tests pass; exact packaging and live replay are open. + latest_phase: Exact e09104a7 packaged as warning-free 24-binary release sha256-40d4971a3b7ecf4debf558621b80c6384c6c1a155971e42aecf44bf05d13e418 with witness sha256-5f68e73e0b9ad2dff7e7cfa912455bd7e27f1a653c2a2eecd8bf5a012f146c68. Its 900-pulse copied-state active run launched the valid cognitive-runtime request, retained Self authority after coordinator exit, accepted exact typed fulfillment, and exited Heartbeat/Self zero. The run then falsified cooldown and grant exclusion: terminal completion left nextEligibleAtMillis zero, and Heartbeat issued later pressure under the still-open schedule after the first grant was consumed. Three turns ran where one bounded turn plus cooldown was intended. Commit 90648073 atomically persists the cooldown deadline and makes grant issuance contend on ResidentSelfState while refusing prepared or active authority. Pre-package inspection then found preparation did not read the persisted deadline; invalid-source package de2e8ad5 was stopped. Commit ee05d9bb makes the shared preparation primitive refuse before nextEligibleAtMillis and proves a fresh read cannot consume a committed later grant early. Twenty-four resident and eight swarm tests pass; exact packaging and live replay are open. operational_state: local_worktree: coordinator_receipt_retention_packaged_proven operator_wireguard: restored @@ -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 resource plateau, and one exact live typed-fulfillment closure are accepted. The e091 endurance body is rejected as bounded-turn proof because one Heartbeat turn issued multiple sequential grants and persisted no cooldown. Commit 90648073 is tested source only. 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: Package and authenticate exact 90648073 with the persistent Starfire cache. From a fresh accepted-idle copy, replay active cognition and require one Heartbeat schedule to issue exactly one grant; later pressure must remain pending until the first typed acknowledgement closes and the persisted cooldown expires. Prove restart cannot bypass nextEligibleAtMillis, one exact result closes one exact grant, return-to-plateau and retention are bounded, both direct-PID bodies exit zero, and no external consequence occurs. 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 resource plateau, and one exact live typed-fulfillment closure are accepted. The e091 endurance body is rejected as bounded-turn proof because one Heartbeat turn issued multiple sequential grants and persisted no cooldown. Commits 90648073 and ee05d9bb are tested source only. 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: Package and authenticate exact latest source containing 90648073 plus ee05d9bb with the persistent Starfire cache. From a fresh accepted-idle copy, replay active cognition and require one Heartbeat schedule to issue exactly one grant; later pressure must remain pending until the first typed acknowledgement closes and the persisted cooldown expires. Prove restart cannot bypass nextEligibleAtMillis, one exact result closes one exact grant, return-to-plateau and retention are bounded, both direct-PID bodies exit zero, and no external consequence occurs. 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.