diff --git a/epiphany-core/src/bin/epiphany-daemon-supervisor.rs b/epiphany-core/src/bin/epiphany-daemon-supervisor.rs index 318e3b5b..9c9eb488 100644 --- a/epiphany-core/src/bin/epiphany-daemon-supervisor.rs +++ b/epiphany-core/src/bin/epiphany-daemon-supervisor.rs @@ -2303,28 +2303,6 @@ fn reconcile_workspace_coverage_projector( )?; let host = open_default_host_identity() .context("workspace coverage reconciliation requires an enrolled host identity")?; - let target = match authenticate_current_workspace_coverage_claim_sight( - &args.store, - &runtime_store, - &args.runtime_id, - host.entry(), - ) { - Ok(target) => target, - Err(error) => { - println!( - "{}", - serde_json::to_string_pretty(&json!({ - "schemaVersion": "epiphany.workspace_coverage_reconcile.v0", - "status": "observation-refused", - "serviceId": policy.service_id, - "reason": error.to_string(), - "restarted": false, - "privateStateExposed": false, - }))? - ); - return Ok(()); - } - }; let latest = match load_latest_workspace_coverage_managed_process_launch( &args.store, args.runtime_id.clone(), @@ -2461,6 +2439,28 @@ fn reconcile_workspace_coverage_projector( )?; return Ok(()); } + let target = match authenticate_current_workspace_coverage_claim_sight( + &args.store, + &runtime_store, + &args.runtime_id, + host.entry(), + ) { + Ok(target) => target, + Err(error) => { + println!( + "{}", + serde_json::to_string_pretty(&json!({ + "schemaVersion": "epiphany.workspace_coverage_reconcile.v0", + "status": "observation-refused", + "serviceId": policy.service_id, + "reason": error.to_string(), + "restarted": false, + "privateStateExposed": false, + }))? + ); + return Ok(()); + } + }; if target .as_ref() .is_some_and(|claim| claim.launch_id != latest.launch_id) @@ -4412,6 +4412,14 @@ mod semantic_projector_authority_tests { let tail = &source[start..]; let end = tail.find("\nfn service_runbook").unwrap(); let body = &tail[..end]; + let latest = body + .find("load_latest_workspace_coverage_managed_process_launch") + .unwrap(); + let stale_rotation = body.find("if !current_policy_matches_latest").unwrap(); + let claim_sight = body + .find("let target = match authenticate_current_workspace_coverage_claim_sight") + .unwrap(); + assert!(latest < stale_rotation && stale_rotation < claim_sight); let observation = body .rfind("let observation = match observe_workspace_coverage_managed_process") .unwrap(); diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 116661d2..6c8391c5 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -2849,3 +2849,14 @@ Next action: commit/push the successor, cross its exact SHA through Bifrost and Idunn under brake, and require historical terminal evidence, current-policy replacement launch, three stable services, signed aggregate health, and the final deployment witness before rehearsing Starfire-independent operation. + +Candidate `b5405beaa95cddc837f3b7a7ca268ac9b5ae4502` then proved the historical +authenticator shipped but exposed an ordering fault: reconciliation asked +provider claim sight to authenticate before it inspected the supervisor-owned +latest launch. Claim sight correctly rejected the stale policy, so the new +rotation branch was unreachable. The candidate was rolled back, its authority +revoked, services stopped, active pointer removed, and no deployment witness +exists. Reconciliation now loads latest launch and completes stale-policy +rotation before current claim authentication. Provider claim state participates +only after a current-policy launch exists. Supervisor proof passes 24/24 and +full core remains 573/573 with one ignored. diff --git a/state/map.yaml b/state/map.yaml index 313c1f4b..34ebe13e 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -792,4 +792,5 @@ current_status: - Candidate `03e1afd24546a7ca37e900c47ca26ae257b14161` was not deployed. Projection and Heartbeat were healthy and braked, but resident Self opened the shared resident store as if every row belonged to its schema catalog and rejected the legitimate `epiphany.resident_cognition.provider_readiness` row. The exact process group was terminated, all three services were stopped, `active-release.env` was removed, and no deployment witness exists. Resident Self now constructs an owner-filtered typed view from raw envelopes, admits only its six owned document families, rejects duplicate owned identities, and preserves foreign readiness rows during writes. Full core proof passes 572/572 with one ignored. - Candidate `2d4c92d24c2007858914d352b5892f599e6a20e9` sealed immutable release `sha256-1dd1271405e82958df2c03133b0d89d2555a8a3c7013486e1c41465ec84f6b3c` with witness `sha256-e01803545e557488cf2a0a42c31bb65e17ff7ead21790d7c982216901d94e12b`. Generation-parent sealing and resident mixed-store ownership both held: all three services started, Heartbeat remained `braked-after-ack-reconciliation`, and resident Self remained stably `braked`. Deployment still failed honestly because the prior workspace-coverage launch was authenticated only against the newly written current policy. Release rotation therefore made signed historical launch evidence impossible to observe, terminalize, or replace. The transaction was rolled back, its Bifrost authority revoked, services stopped, active pointer removed, and no deployment witness exists. - Workspace-coverage process authority now separates history from admission. A stored host-signed launch remains authentic historical identity after managed-policy rotation and may authorize only exact process observation and immutable termination evidence. Its termination binds the launch's signed policy id/digest and CAS-fences the exact launch/evidence head; it no longer pretends the current policy authored history. Reconciliation detects a stale-policy latest launch, terminates only its exact live process identity or records terminal sight, then launches a replacement bound to the exact current policy and historical termination. Current public observation still rejects stale launches, and only a current-policy launch can run. Full core proof passes 573/573 with one ignored; all binaries compile. - next_action: "Commit and push the historical-process/current-policy authority split, authorize the exact successor through Bifrost, and let Idunn redeploy under the engaged sleep brake. Require stale launch terminalization without evidence deletion, a replacement workspace projector bound to the new policy, immutable package inspection, app-owned release publication, three healthy local service owners, signed aggregate health, and the final deployment.env witness. Then run the Starfire-offline rehearsal before 2026-07-22: persistent Modeling map -> autonomous bounded Imagination proposal, with classified organization feedback through Persona as an additional pressure path; explicit Mind adoption -> Hands consequence -> Bifrost release -> Idunn deployment remain separate gates. Prove replay/tamper refusal and that conversation alone grants no Mind, Hands, Persona-speech, release, or deployment authority. No host reboot is authorized." + - Candidate `b5405beaa95cddc837f3b7a7ca268ac9b5ae4502` built and started all three services, proving the historical authenticator itself shipped, but still produced `workspace coverage launch disagrees with current managed policy`. The stale-policy branch was unreachable because reconciliation authenticated provider claim sight before loading supervisor-owned latest launch, and claim authentication correctly rejected the stale policy. The candidate was rolled back, authority revoked, active pointer removed, and no deployment witness exists. Reconciliation now orders supervisor latest-launch sight and stale-policy rotation before current provider claim authentication. Provider claim state cannot veto retirement of obsolete supervisor process lineage; it participates only after a current-policy launch exists. Supervisor tests pass 24/24 and full core remains 573/573 with one ignored. + next_action: "Commit and push the corrected reconciliation order, authorize the exact successor through Bifrost, and let Idunn redeploy under the engaged sleep brake. Require stale launch terminalization without evidence deletion, a replacement workspace projector bound to the new policy, immutable package inspection, app-owned release publication, three healthy local service owners, signed aggregate health, and the final deployment.env witness. Then run the Starfire-offline rehearsal before 2026-07-22: persistent Modeling map -> autonomous bounded Imagination proposal, with classified organization feedback through Persona as an additional pressure path; explicit Mind adoption -> Hands consequence -> Bifrost release -> Idunn deployment remain separate gates. Prove replay/tamper refusal and that conversation alone grants no Mind, Hands, Persona-speech, release, or deployment authority. No host reboot is authorized."