Record preparation-owned cooldown enforcement

This commit is contained in:
Meta Vens 2026-08-09 20:45:30 +01:00
commit d303dd1f90
3 changed files with 16 additions and 3 deletions

View file

@ -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

View file

@ -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.

View file

@ -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.