Prove exact coverage process termination

This commit is contained in:
Meta Vens 2026-07-16 01:40:51 +01:00
commit 202f76a031
7 changed files with 726 additions and 8 deletions

Binary file not shown.

View file

@ -728,4 +728,5 @@ current_status:
- Native process and host incarnation foundations are now separate authorities. Process identity is PID plus native creation token plus canonical executable, with exact alive/exited/replaced/missing/inaccessible/indeterminate observations and optional proven boot incarnation; the PID-only compatibility projection cannot report death. Host identity is one immutable non-workspace CultCache enrollment with an Ed25519 identity/signing handle, purpose-bound signatures, fail-closed open, and no silent regeneration. Windows protects its seed with CurrentUser DPAPI and honestly labels assurance `os_user_installation_bound_best_effort`; Linux uses 0700/0600 state plus machine-id binding and labels the baseline cloneable. Neither claims physical-chassis identity. These foundations do not themselves authorize service recovery.
- Specialized reserved coverage process documents now exist as typed CultMesh state. Idunn's mandatory host-signed launch binds the exact current specialized policy envelope, enrolled host record digest, proven boot, PID creation token, captured executable path and bytes digest, provider incarnation, and ephemeral provider public key. Provider heartbeats are signed by that ephemeral key, bind the exact launch envelope and repeated host/boot/process tuple, and advance exact per-launch sequence/time under CAS. Hostile tests reject forged signatures, sequence gaps, identity collisions, wrong supervisor/status/runtime, stale policy, and tuple drift. These documents are not operational owners until supervisor and projector migrate and generic writers reject reserved coverage identities.
- The live workspace-coverage process path now uses only specialized authority. Supervisor generates a per-launch provider key, spawns with reserved stdin piped and all other child stdin null, captures exact process identity, sends one fixed-size launch-id/seed frame, host-signs and CAS-persists the specialized launch, and kills/waits on any bootstrap or persistence failure. The child requires exact frame plus EOF, authenticates the enrolled host, current policy, boot, its PID creation token/path, launch digest, and provider public key before constructing the service or publishing its signed per-launch heartbeat. Generic lifecycle and generic daemon-heartbeat writers reject the reserved coverage identities; their old authenticator is deleted. Body claim/attempt v1 binds `managed_process_launch_id`; v0 lifecycle semantics cannot deserialize as the new owner. This Windows installation is explicitly enrolled at the default DPAPI CurrentUser host store and status re-open proved identity `17f041421045aa66d4c8ab0488f462dbb5ea1a7d8507dbf75216f5ec368dbb7a` without exposing private state.
next_action: Add Idunn-owned immutable process-termination observation bound to the exact prior specialized launch, its per-launch latest heartbeat, current policy envelope, enrolled host record, and native boot/process observation. Persist termination before replacement spawn; refuse ExactAlive, Inaccessible, Indeterminate, unknown boot, or host mismatch. Then require exact old termination plus replacement signed ready heartbeat for one Body CAS that terminalizes the old claim/attempt and acquires epoch+1. No timeout or staleness recovery. The separate reboot/logon proof remains permission-bound.
- Idunn now has one immutable, host-signed process-termination observation per reserved coverage launch, with no latest/global mirror. Its writer reloads and exact-CAS-preserves the current specialized policy, exact launch, and exact per-launch latest signed heartbeat; it immediately observes the enrolled host's proven boot and exact PID incarnation. A distinct proven boot yields `boot_superseded`; same-boot proof permits only `exact_exited`, `process_missing`, or a complete different `process_replaced` identity. ExactAlive, Inaccessible, Indeterminate, unknown boot, host mismatch, identity collision, and moved source envelopes refuse publication. The injectable observation seam is private to module tests. Recovery-facing authentication reconstructs the entire persisted policy/launch/heartbeat chain rather than trusting the signed termination blob alone. Four hostile document/termination tests and all-target check pass.
next_action: Wire Idunn reconciliation ordering around the termination document: observe and persist exact predecessor termination before any replacement spawn, then launch the replacement through the specialized stdin/bootstrap path and wait for its signed ready heartbeat. Implement one Body-store recovery CAS that authenticates exact old launch/heartbeat/termination plus exact replacement launch/ready heartbeat, terminalizes the v1 old claim/attempt, and acquires epoch+1 for the replacement. Falsify partial writes, source movement, stale Body, wrong replacement, and spawn-before-termination. No timeout or staleness recovery. The separate reboot/logon proof remains permission-bound.

View file

@ -122,3 +122,18 @@ cannot impersonate the new semantic owner. A native `epiphany-host-identity`
enroll/status actuator was added, and this Windows installation was enrolled
once at the default DPAPI CurrentUser path. Next build immutable termination
evidence before replacement and only then the Body recovery CAS.
## Immutable exact termination evidence (2026-07-16)
Idunn can now publish one host-signed termination observation for one exact
coverage launch. It exact-CASes the current policy, signed launch, and that
launch's latest signed heartbeat while inserting an immutable per-launch key;
there is no global termination head. Different proven boot, exact exit, exact
same-boot absence, and exact PID replacement are the only outcomes. Alive,
inaccessible, indeterminate, unknown boot, host mismatch, collisions, and moved
source envelopes fail closed. The fake observation seam is module-private.
Authentication rejoins the signed record to all exact persisted sources.
Next wire reconcile order: termination first, replacement launch second,
replacement signed-ready third, then one Body recovery CAS. No timer gets a
vote.