From f7bcb8ed8a3613edf2db671ce81b73ccba67490f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 8 Aug 2026 12:36:03 +0100 Subject: [PATCH] Load runtime state before frontier repair --- epiphany-core/src/bin/epiphany-mind-repair.rs | 4 +++- epiphany-core/src/runtime_spine.rs | 3 ++- notes/fresh-workspace-handoff.md | 15 ++++++++------- state/map.yaml | 6 +++--- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-mind-repair.rs b/epiphany-core/src/bin/epiphany-mind-repair.rs index 17f53a82..5d1dfdcd 100644 --- a/epiphany-core/src/bin/epiphany-mind-repair.rs +++ b/epiphany-core/src/bin/epiphany-mind-repair.rs @@ -30,7 +30,9 @@ fn main() -> Result<()> { let store = PathBuf::from(take("--store")?); let route_id = take("--route-id")?; if command == "inspect-frontier-execution" { - let routes = runtime_spine_cache(&store)?.get_all::()?; + let mut cache = runtime_spine_cache(&store)?; + cache.pull_all_backing_stores()?; + let routes = cache.get_all::()?; let available = routes .iter() .map(|route| route.route_id.as_str()) diff --git a/epiphany-core/src/runtime_spine.rs b/epiphany-core/src/runtime_spine.rs index bf08e56f..860338e2 100644 --- a/epiphany-core/src/runtime_spine.rs +++ b/epiphany-core/src/runtime_spine.rs @@ -7298,7 +7298,8 @@ pub fn amend_repo_frontier_execution( if chrono::DateTime::parse_from_rfc3339(&amendment.amended_at).is_err() { return Err(anyhow!("execution amendment amended_at must be RFC3339")); } - let cache = runtime_spine_cache(store_path)?; + let mut cache = runtime_spine_cache(store_path)?; + cache.pull_all_backing_stores()?; if cache .get::(&amendment.amendment_id)? .is_some() diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 6e7f8cbd..8b6c051c 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -80,14 +80,15 @@ live v53 plan with explicit supervisor command/admission provenance, derive a fresh route, replay the exact Hands receipts against that amended route, and retry Soul. Preserve the original route and every failed Soul launch. -The repair pass is pushed at `12c8241b`. Its read-only route inspection then -found a new live discrepancy before mutation: current source enumerates zero -persisted `RepoFrontierRoute` entries in v53, although coordinator status still -derives `launchVerification` and the accepted gate artifact cites route +The repair pass is pushed at `12c8241b`. The apparent missing-route discrepancy +was local to the new inspector and amendment path: each registered the runtime +store but omitted `pull_all_backing_stores` before typed reads. After restoring +that load, the live typed route decodes exactly as `repo-frontier-route-fb206aaa609246becc17243c0ac5d98d2e70e30fd1dd3351467885ea6ca88dc2`. -No amendment was attempted. Trace the route write/schema-catalog path and restore -typed route visibility before using the repair command; do not reconstruct -authority from the old JSON artifact. +Its original action is `propose-native-frontier-route-document-chain`; its +original command is the planning sentence beginning `Draft one reviewable +frontier-route plan candidate...`, proving the plan-to-Hands authority defect. +No amendment has yet been attempted. Build iteration is also an active architectural defect: a tiny `runtime_spine.rs` diagnostic edit forced 18-29 second debug rebuilds, while diff --git a/state/map.yaml b/state/map.yaml index e1ab246d..fd84c45e 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -36,7 +36,7 @@ invariants: current_status: summary: Epiphany is a supervised engineering alpha on Starfire, not deployment-ready. Live v53 completed the adopted RepoModel revision 5 Hands consequence through commit 0763fcbe94257eb9adbe92ab814b5a487f65551d. Soul correctly failed closed on a substituted plan command. The repair pass now prevents a mismatched Hands command receipt, projects the exact effective command in the gate, and adds a Mind-owned single-use execution amendment that preserves the original plan and route while atomically emitting review, admission, amendment, and Modeling-projection receipts. Live v53 migration and renewed Soul proof remain next. Persona consequence, retention, endurance, restart closure, and Linux/Yggdrasil cognition remain open. operational_state: - local_worktree: live_route_persistence_diagnostic + local_worktree: live_route_read_restored_pending_commit operator_wireguard: restored yggdrasil: canonical_small_public_crossing_body starfire: temporary_epiphany_cognition_body @@ -52,8 +52,8 @@ current_status: bifrost_feedback_crossing: authenticated_transport_only yggdrasil_epiphany_services: absent resident_physiology: heartbeat_and_self_running - unresolved_authority: The active v53 route still contains the original non-executable plan command and remains fail-closed. Commit 12c8241b provides a locally verified typed repair, but its read-only inspector sees zero persisted RepoFrontierRoute entries in the live store even though operator-safe coordinator state still derives launchVerification and historical gate artifacts cite route fb206aaa. No live mutation was attempted. Determine whether route authority was only captured in coordinator state, lost from the CultCache schema catalog, or made invisible by schema evolution before repairing v53. Exact HEAD packaging remains required. The adopted Mind decision also carries a model-supplied 2025 timestamp; timestamp ownership remains a separate provenance audit item. - next_action: Trace RepoFrontierRoute persistence from select_and_commit_repo_frontier_route through the runtime store and schema catalog. Restore a typed current-route read path without reconstructing authority from display artifacts. Only then use the Mind repair CLI, derive a fresh route, replay exact Hands evidence, and retry Soul. Separately map and split the monolithic epiphany-core runtime spine/build graph; focused tests for this pass each required 64-73 seconds of compilation while execution took under one second. + unresolved_authority: The active v53 route still contains the original non-executable plan command and remains fail-closed. The apparent missing-route discrepancy was an inspector/amendment defect: both registered the runtime store but omitted pull_all_backing_stores before typed reads. With the load restored, exact route fb206aaa decodes and proves the original action and command are both planning prose, not an executable consequence. No live mutation has yet occurred. Exact HEAD packaging remains required. The adopted Mind decision also carries a model-supplied 2025 timestamp; timestamp ownership remains a separate provenance audit item. + next_action: Commit and push the runtime-store load correction, then use the typed Mind repair CLI to amend live route fb206aaa with authenticated supervisor provenance and the exact successful verification command. Derive a fresh route, replay exact Hands evidence, and retry Soul. Separately map and split the monolithic epiphany-core runtime spine/build graph. active_subgoals: - Prove Persona, Self, Eyes, Modeling, Imagination, Hands, Soul, Mind, Continuity, and nervous-system behavior individually.