Restore provider ownership of daemon liveness
This commit is contained in:
parent
5bd1b2bd15
commit
3b036bed53
9 changed files with 574 additions and 101 deletions
|
|
@ -37,13 +37,16 @@
|
|||
- Dependent invariant: collaboration feedback may cite only a persisted provider receipt; a consumer request is not acceptance.
|
||||
- Negative proof: provider receipt remains absent after request, response-shaped fields fail, and feedback without provider acceptance fails.
|
||||
|
||||
## Daemon lifecycle request and heartbeat paths (2026-07-12)
|
||||
## Daemon lifecycle request and heartbeat paths (updated 2026-07-15)
|
||||
|
||||
- Request owner: Self/operator owns a daemon-poke intent; Idunn or the target daemon owns its receipt and resulting status.
|
||||
- Poke output: pending intent with observed status and null receipt/result fields, shared by single, batch, and triage paths.
|
||||
- Forbidden writers: poke callers cannot provide receipt id/status, resulting status, or artifact; the generic Verse CLI daemon-status writer no longer exists.
|
||||
- Heartbeat owner: `epiphany-cluster-daemon` writes status. On its first run it derives identity/routing fields from persisted topology and authors the first heartbeat itself.
|
||||
- Negative proof: a real provider heartbeat can precede a pending poke; no poke receipt appears, counterfeit `ready` result is rejected, and `set-daemon-status` is unavailable.
|
||||
- Owners: Self/operator requests intervention; Idunn owns poke intent, command-attempt receipt, restart policy, and backoff; `epiphany-cluster-daemon` alone owns its provider heartbeat/status envelope.
|
||||
- Inputs: persisted provider status, the heartbeat observed before intervention, restart policy, scheduler staleness observation, and the real command result.
|
||||
- Outputs: immutable poke intent/receipt v1 events plus an atomically advanced chronological latest pointer. Exit zero yields `awaiting-provider-heartbeat`; command failure yields `restart-failed`.
|
||||
- Derived state: scheduler staleness, lifecycle attention, receipt-directory resolution, and Idunn backoff are observations of provider state and attempts. They are not provider status.
|
||||
- Forbidden writers: poke callers and the supervisor cannot assign provider status, operator action, or `last_heartbeat_utc`; command success cannot mint `ready`; stale status cannot be resolved by a heartbeat older than the completed attempt.
|
||||
- Shared paths: manual reconcile and scheduled reconciliation use the same attempt primitive. Both retain restart pressure until a provider-authored heartbeat causally newer than the completed attempt proves recovery.
|
||||
- Cut line: the supervisor's provider-status writer and synthetic heartbeat advancement are removed. Generated attempts use unique identities; exact retry is idempotent, identity collision is refused, and delayed replay cannot rewind `latest`.
|
||||
- Verification: the survival rehearsal preserves the provider envelope across two successful restart commands, observes two distinct awaiting receipts, then publishes a real provider heartbeat and proves receipt resolution plus failure-count reset.
|
||||
|
||||
## Persona feedback and Imagination consensus boundary (2026-07-12)
|
||||
|
||||
|
|
|
|||
|
|
@ -1169,3 +1169,28 @@ Next: cut Idunn supervisor writes to provider-owned daemon heartbeat/status;
|
|||
then publish derived semantic health through CultMesh and add typed Idunn
|
||||
executor/recovery authority plus open-obligation discovery. Recovery remains
|
||||
withheld until that authority exists.
|
||||
|
||||
## Idunn/provider-status ownership cut (2026-07-15)
|
||||
|
||||
The supervisor no longer writes provider heartbeat/status. Idunn owns only
|
||||
staleness observation, immutable poke intent/receipt events, restart command
|
||||
execution, policy, and backoff. The target `epiphany-cluster-daemon` remains the
|
||||
sole production owner of its status, operator action, and heartbeat timestamp.
|
||||
Command exit zero now records `awaiting-provider-heartbeat`, never `ready`, and
|
||||
restart pressure remains until a provider heartbeat newer than the completed
|
||||
attempt proves recovery.
|
||||
|
||||
Poke intent/receipt v1 binds the pre-intervention heartbeat and request,
|
||||
attempt, and completion times. Immutable identity and chronological `latest`
|
||||
advance in one CAS: exact retry is idempotent, collision is refused, and late
|
||||
replay cannot rewind sight. Receipt-directory resolution is derived only; it
|
||||
cannot repair provider truth. The bounded survival rehearsal proves two
|
||||
successful restart commands leave the provider envelope unchanged and produce
|
||||
distinct awaiting receipts, then a real provider heartbeat resolves the
|
||||
lifecycle observation and clears restart pressure.
|
||||
|
||||
Next: publish renderer-neutral semantic projection health derived from
|
||||
canonical Mind/Modeling evidence through CultMesh; then give Idunn typed
|
||||
executor grants, single-use fenced recovery authority, open-obligation
|
||||
discovery, and one packaged projector owner. CultMesh, Idunn, Eve, and Gjallar
|
||||
remain unable to mint semantic readiness.
|
||||
|
|
|
|||
|
|
@ -473,20 +473,33 @@ does not invent that grant.
|
|||
### Provider-Status Ownership Cut
|
||||
|
||||
`epiphany-cluster-daemon` is the legitimate production writer of its typed
|
||||
heartbeat/status. The current daemon supervisor contains two obsolete writers
|
||||
that must be removed before its liveness model is trusted:
|
||||
heartbeat/status. Idunn records stale observation, command execution, restart,
|
||||
and awaiting-provider-heartbeat in scheduler/poke/recovery state without
|
||||
rewriting provider status, operator action, or heartbeat time. A restarted
|
||||
provider becomes ready only when that provider publishes a newer authentic
|
||||
heartbeat; synthetic provider writers remain confined to test/quarantine
|
||||
bodies.
|
||||
|
||||
- scheduler staleness handling rewrites the provider status to `degraded` and
|
||||
adds a supervisor-authored heartbeat note;
|
||||
- restart reconciliation rewrites provider status to `ready` or `down` and
|
||||
advances `last_heartbeat_utc` from the child command's exit result.
|
||||
|
||||
Idunn should instead record stale observation, command execution, restart, and
|
||||
awaiting-provider-heartbeat in its own scheduler/poke/recovery receipts. A
|
||||
restarted provider becomes ready only when that provider publishes a newer
|
||||
authentic heartbeat. The generic daemon-status writer should be narrowed so
|
||||
production callers cannot counterfeit provider liveness; synthetic writers
|
||||
remain confined to test/quarantine bodies.
|
||||
This ownership cut is now landed. Scheduler staleness forces Idunn
|
||||
reconciliation without changing the provider envelope. Command success records
|
||||
`awaiting-provider-heartbeat`; failure records `restart-failed`. The persisted
|
||||
poke intent binds the observed stale heartbeat and configured threshold, while
|
||||
provider status, operator action, and `last_heartbeat_utc` remain unchanged.
|
||||
Only a later provider-authored heartbeat can establish readiness.
|
||||
Poke intent/receipt v1 binds the heartbeat observed before intervention and the
|
||||
attempt/completion timestamps. Receipt-directory sight resolves
|
||||
`awaiting-provider-heartbeat` only when the same provider publishes a heartbeat
|
||||
newer than both that observation and the completed attempt. Command attempts
|
||||
increase restart backoff pressure regardless of exit code; a causally newer
|
||||
provider heartbeat is the sole event that clears the failure count. The bounded
|
||||
survival rehearsal proves the provider envelope remains unchanged across two
|
||||
successful restart commands while the lifecycle receipt remains awaiting,
|
||||
then publishes a real provider heartbeat and proves the receipt resolves and
|
||||
restart pressure resets.
|
||||
Generated supervisor attempts use unique intent identities and receipt identity
|
||||
derives from the intent. Identity plus latest-pointer publication is one CAS:
|
||||
non-identical reuse is refused, exact retry is idempotent, and a delayed retry
|
||||
cannot rewind the latest lifecycle observation.
|
||||
|
||||
### Shared Paths And Verification Layer
|
||||
|
||||
|
|
|
|||
Reference in a new issue