Move heartbeat service lifecycle under Idunn

This commit is contained in:
Meta Vens 2026-07-12 12:49:22 +01:00
commit 68c47b7ffa
7 changed files with 91 additions and 107 deletions

View file

@ -355,6 +355,13 @@ artifact identity and success, supports bounded clean shutdown through
Heartbeat owns pulse timing; the next cut is to launch this binary through
Idunn and prove restart/resume, swarm-brake observability, and lifecycle
readback before demoting the PowerShell rumination vigil.
That cut is now proven. An engaged brake produced two compact refused pulses
without terminating `serve`; releasing it let the same persisted store complete
a routine. Idunn then launched two pulses and a separate one-pulse restart from
that store with empty stderr and lifecycle receipts. The attached PowerShell
vigil is deleted. The remaining service boundary is durable Idunn policy and
operator readback: advertise/configure the heartbeat service through typed
daemon state so restart intent survives beyond one explicit `service-launch`.
This map must change when ownership changes. Historical scars belong in git,
evidence, or an explicitly archived note—not in the machine's proprioception.

View file

@ -2190,6 +2190,18 @@ completed two one-second pulses and stopped cleanly. Next launch the native
serve loop through Idunn, prove persisted-state restart without duplicate
pending turns, and make an engaged swarm brake observable without killing the
service.
That service proof is complete. Brake/resume smoke root
`C:\Users\Meta\AppData\Local\Temp\epiphany-heartbeat-brake-4426a98f9c8e457784741fac5300d56c`
recorded two `refused-by-swarm-brake` pulses, clean closure with zero routines,
then one successful routine after release on the same store. Idunn launched
service `idunn-epiphany-heartbeat` for two routines and
`idunn-epiphany-heartbeat-restart` for a separate persisted-state restart; both
had empty stderr and compact clean closure receipts. Lifecycle receipt ids are
`daemon-service-lifecycle-receipt-idunn-epiphany-heartbeat-launch` and
`daemon-service-lifecycle-receipt-idunn-epiphany-heartbeat-restart-launch`.
The old `tools/epiphany_ruminate_until.ps1` attached loop is deleted. Next give
Idunn a durable typed heartbeat service policy/readback so restart intent and
current pulse status survive beyond an explicit operator `service-launch`.
## Immediate Re-entry Instruction

View file

@ -92,16 +92,18 @@ The first native loop is landed as `epiphany-heartbeat-store serve`. It reuses
the existing routine state owner, writes per-pulse artifact directories, emits
compact sealed pulse/closure receipts, refuses a zero interval, and supports
bounded clean shutdown for verification. It does not spawn or own child
lifecycle. `tools/epiphany_ruminate_until.ps1` still owns the old attached
operator vigil and must be demoted after Idunn proves the native service path.
lifecycle. The old attached PowerShell rumination vigil has been deleted; it no
longer owns timing, loop survival, or cycle status.
### Intended change
Launch the native `serve` loop through the existing Idunn service lifecycle
path. The heartbeat binary owns
pulse timing and typed heartbeat receipts. Idunn owns child survival, restart,
stdout/stderr artifacts, and lifecycle receipts. Self remains only the routing
organ consuming heartbeat pressure.
The bounded Idunn launch boundary is proven: the native loop survives brake
refusals, resumes from the same persisted store, and can be launched again by
Idunn without duplicate pending turns. The heartbeat binary owns pulse timing
and typed heartbeat receipts. Idunn owns child launch, stdout/stderr artifacts,
and lifecycle receipts. Self remains only the routing organ consuming heartbeat
pressure. The remaining step is durable Idunn restart policy and compact
operator readback for the heartbeat service, not another explicit launch smoke.
### Owner
@ -142,9 +144,8 @@ daemon is orchestration around those owners, not a second scheduler.
### Cut line
Demote `tools/epiphany_ruminate_until.ps1` to a historical/operator probe after
the native loop and Idunn launch proof exist. Do not preserve its timing,
status, or cycle-directory conventions as runtime authority.
The attached PowerShell rumination vigil is deleted. Do not preserve its
timing, status, or cycle-directory conventions as runtime authority.
### Verification