Add Idunn managed service desired state
This commit is contained in:
parent
bf7dd9fc81
commit
1da96bd74f
8 changed files with 267 additions and 1 deletions
|
|
@ -368,6 +368,14 @@ Idunn-managed child service. The durable owner must therefore be a typed
|
|||
managed-service desired-state document keyed by service id. It delegates all
|
||||
starts to the existing service lifecycle primitive and must not invent an
|
||||
`epiphany-daemon-heartbeat` topology identity.
|
||||
The typed desired-state surface is now implemented as
|
||||
`epiphany.cultmesh.managed_service_policy.v0`, persisted at a service-id key.
|
||||
`epiphany-daemon-supervisor managed-service-policy` writes command, args, cwd,
|
||||
enabled/restart/backoff intent, sealed log refs, and the latest lifecycle
|
||||
witness; `managed-service-read` projects desired state plus
|
||||
`latestLifecycle`. It deliberately reports process observation as unknown
|
||||
until a real reconcile probe exists, so an old launch receipt cannot claim the
|
||||
service is alive.
|
||||
|
||||
This map must change when ownership changes. Historical scars belong in git,
|
||||
evidence, or an explicitly archived note—not in the machine's proprioception.
|
||||
|
|
|
|||
|
|
@ -2208,6 +2208,15 @@ that family requires a standing topology daemon plus daemon liveness status.
|
|||
Heartbeat is an Idunn-managed child service. Add a typed managed-service
|
||||
desired-state policy keyed by service id, and have reconciliation delegate to
|
||||
the existing `service-launch` lifecycle owner.
|
||||
The persistence/readback half is landed. New typed document
|
||||
`epiphany.cultmesh.managed_service_policy.v0` is registered in CultMesh and
|
||||
keyed by service id. Supervisor commands `managed-service-policy` and
|
||||
`managed-service-read` round-tripped live service `idunn-epiphany-heartbeat` in
|
||||
the existing heartbeat fixture, preserving the prior lifecycle receipt and
|
||||
showing desired command/args/cwd/restart mode/log refs without routine payloads.
|
||||
Readback calls the historical evidence `latestLifecycle`, not `actual`, and
|
||||
reports `processObservation=unknown-until-managed-service-reconcile`. Next add
|
||||
that reconcile probe and delegate restarts to the existing lifecycle primitive.
|
||||
|
||||
## Immediate Re-entry Instruction
|
||||
|
||||
|
|
|
|||
|
|
@ -108,6 +108,12 @@ their liveness status. The heartbeat loop is an Idunn-managed child service.
|
|||
The missing owner is a typed managed-service desired-state policy keyed by
|
||||
service id, plus compact operator readback; do not forge an eighth standing
|
||||
daemon to reuse the daemon policy table.
|
||||
That desired-state document is now landed as
|
||||
`epiphany.cultmesh.managed_service_policy.v0`. Idunn can write it from the same
|
||||
service command/args/cwd and sealed log refs used by lifecycle launch, and can
|
||||
read it beside the latest lifecycle receipt. Readback explicitly reports
|
||||
process observation as unknown until reconciliation probes reality; a past
|
||||
`launched` receipt is not allowed to impersonate a living process.
|
||||
|
||||
### Owner
|
||||
|
||||
|
|
@ -140,6 +146,10 @@ mode, cooldown/backoff, expected heartbeat store, stdout/stderr artifact refs,
|
|||
and latest lifecycle receipt. It emits desired-state readback and delegates
|
||||
every actual start/restart to the existing service lifecycle launch primitive.
|
||||
It does not own heartbeat scheduling state, daemon topology, or routine output.
|
||||
The persistence/publication half is complete. Next add reconciliation that
|
||||
probes the policy's last PID or an equivalent platform process witness, applies
|
||||
enabled/restart-mode/cooldown intent, and delegates any restart to the existing
|
||||
service lifecycle launch primitive.
|
||||
|
||||
### Forbidden writers
|
||||
|
||||
|
|
|
|||
Reference in a new issue