Separate daemon heartbeat from bootstrap

This commit is contained in:
Meta Vens 2026-07-12 21:09:24 +01:00
commit cc00f361f7
6 changed files with 54 additions and 38 deletions

View file

@ -124,3 +124,17 @@ calls this primitive on the shared heartbeat/serve path before writing its own
liveness. An unknown daemon is refused before any provider document is written.
The quarantined aggregate smoke iterates the same one-daemon primitive rather
than using a privileged fixture shortcut.
## Heartbeat/bootstrap split
After provider publication moved into `epiphany-cluster-daemon`, its heartbeat
path still called the generic local Verse bootstrap. A daemon could therefore
repaint Self-owned policy, topology, contracts, brake initialization, and
operator status merely by emitting liveness.
Heartbeat and serve no longer bootstrap or query the full Verse context. They
require persisted topology, load only narrow liveness rows, publish only the
owning daemon's provider state, and write only its heartbeat. An unbootstrapped
daemon fails before creating the CultCache store and tells the operator to run
explicit bootstrap. The wrapper already performs that bootstrap at the
operator boundary.

View file

@ -94,6 +94,10 @@
Each heartbeat/serve lane publishes only its daemon's Odin advertisement,
Eve surface, and hosted tools through a daemon-ID-bounded primitive. There is
no all-provider writer; an unknown daemon publishes nothing.
- Cluster daemons never bootstrap the local Verse and never load its full
context. They require persisted topology, read narrow liveness, then write
only their bounded provider state and heartbeat. Explicit operator bootstrap
owns policy/topology/contract initialization.
- Store/runtime overrides fail before fixture seeding or receipt construction.
- Negative proof: targeting `state/local-verse.ccmp` was rejected and its SHA-256 did not change.
- Positive proof: the built-in quarantined smoke completes successfully and reports its quarantine coordinates.

View file

@ -21,6 +21,9 @@ The confirmed conceptual substitutions have been cut:
- bulk provider-state writers are deleted. Each `epiphany-cluster-daemon`
heartbeat publishes only its own advertisement, Eve surface, and hosted
tools; unknown daemon identities are refused before writes.
- cluster daemons do not bootstrap or query the full Verse. Missing persisted
topology is a pre-write refusal; explicit operator bootstrap owns shared
policy, topology, contracts, brake initialization, and operator status.
The presentation boundary is now plain: `swarm overview` is a generic compact read-only projection. Gjallar is a downstream TUI application on Nightwing and is not an Epiphany organ, provider, owner, runtime, or architectural dependency. Eve/CultUI graphs may be lowered or composited downstream without Epiphany caring which presentation client does it.