From 63c940f9824ab42ca1af3132888f6e05e1aa65de Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 12 Jul 2026 21:51:23 +0100 Subject: [PATCH] Separate bootstrap from operator status --- .../src/bin/epiphany-cultmesh-status.rs | 11 +++++++++-- epiphany-core/src/cultmesh_integration.rs | 10 +++++----- ...onceptual-substitution-audit-2026-07-12.md | 14 ++++++++++++++ notes/epiphany-current-algorithmic-map.md | 4 ++++ notes/fresh-workspace-handoff.md | 3 +++ state/ledgers.msgpack | Bin 438220 -> 438617 bytes state/map.yaml | 2 +- 7 files changed, 36 insertions(+), 8 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-cultmesh-status.rs b/epiphany-core/src/bin/epiphany-cultmesh-status.rs index f70ba16d..423f9d67 100644 --- a/epiphany-core/src/bin/epiphany-cultmesh-status.rs +++ b/epiphany-core/src/bin/epiphany-cultmesh-status.rs @@ -72,12 +72,14 @@ impl Args { let mut values = env::args().skip(1); let command = values.next().unwrap_or_else(|| "read".to_string()); let mut store = PathBuf::from(".epiphany-run/cultmesh/operator-status.ccmp"); + let mut store_explicit = false; let mut runtime_id = "epiphany-local".to_string(); while let Some(arg) = values.next() { match arg.as_str() { "--store" => { store = PathBuf::from(values.next().context("missing --store value")?); + store_explicit = true; } "--runtime-id" => { runtime_id = values.next().context("missing --runtime-id value")?; @@ -86,8 +88,13 @@ impl Args { } } - if let Some(parent) = store.parent() { - std::fs::create_dir_all(parent)?; + if command == "smoke" { + if store_explicit { + anyhow::bail!( + "operator-status smoke accepts no store override and writes only beneath .epiphany-smoke" + ); + } + store = PathBuf::from(".epiphany-smoke/cultmesh/operator-status.ccmp"); } Ok(Self { diff --git a/epiphany-core/src/cultmesh_integration.rs b/epiphany-core/src/cultmesh_integration.rs index 86719db9..03542875 100644 --- a/epiphany-core/src/cultmesh_integration.rs +++ b/epiphany-core/src/cultmesh_integration.rs @@ -2721,6 +2721,10 @@ pub fn load_epiphany_cultmesh_operator_status( store_path: impl AsRef, runtime_id: impl Into, ) -> Result> { + let store_path = store_path.as_ref(); + if !store_path.exists() { + return Ok(None); + } let node = open_epiphany_cultmesh_node(store_path, runtime_id)?; node.get(EPIPHANY_CULTMESH_OPERATOR_STATUS_KEY) } @@ -5821,10 +5825,6 @@ pub fn seed_epiphany_local_verse_context( write_epiphany_cultmesh_soul_contracts(store_path, runtime_id.clone())?; write_epiphany_cultmesh_continuity_contracts(store_path, runtime_id.clone())?; write_epiphany_cultmesh_bifrost_contracts(store_path, runtime_id.clone())?; - write_epiphany_cultmesh_operator_status( - store_path, - default_epiphany_cultmesh_operator_status(runtime_id, generated_at_utc), - )?; Ok(()) } @@ -9321,7 +9321,7 @@ mod tests { assert!(context.odin_advertisements.is_empty()); assert!(context.eve_surface_states.is_empty()); assert!(context.daemon_tool_capabilities.is_empty()); - assert!(context.operator_status.is_some()); + assert!(context.operator_status.is_none()); assert!( context .contract_summaries diff --git a/notes/conceptual-substitution-audit-2026-07-12.md b/notes/conceptual-substitution-audit-2026-07-12.md index 832dcb3b..9e0500fe 100644 --- a/notes/conceptual-substitution-audit-2026-07-12.md +++ b/notes/conceptual-substitution-audit-2026-07-12.md @@ -187,3 +187,17 @@ The remaining non-test seed callers are now limited to the explicit Verse seed commands and two named, path-confined smoke fixture initializers. No production provider, supervisor, requester, diagnostic, or launch path bootstraps shared state as a convenience side effect. + +## Bootstrap/operator observation split + +Generic local Verse bootstrap still wrote a generated default +`epiphany.cultmesh.operator_status.v0`. Because the operator wrapper performs +explicit bootstrap as a common preflight, nearly every run refreshed an +operator observation that no observer had produced. + +Bootstrap now writes declaration/initialization state only and leaves operator +status absent. `epiphany-cultmesh-status write` is the explicit owner of the +positive operator-status path. The read loader returns `None` without opening +or creating a missing store, and the `read` CLI therefore reports `missing` +without filesystem mutation. Its smoke is fixed beneath `.epiphany-smoke` and +rejects every store override before creation. diff --git a/notes/epiphany-current-algorithmic-map.md b/notes/epiphany-current-algorithmic-map.md index 63a391b8..aa4870ec 100644 --- a/notes/epiphany-current-algorithmic-map.md +++ b/notes/epiphany-current-algorithmic-map.md @@ -122,6 +122,10 @@ are private contract templates, not public state APIs. External consumers see persisted loaders; only the daemon-ID-bounded publisher may lower templates into provider-owned documents. +- Generic bootstrap owns declarations and initial control state, not operator + observation. Operator status remains absent until the dedicated status writer + publishes it. Missing reads do not create a CultCache store; status smoke is + fixed beneath `.epiphany-smoke`. - Store/runtime overrides fail before fixture seeding or receipt construction. - Negative proof: targeting `state/local-verse.ccmp` was rejected and its SHA-256 did not change. - Positive proof: the built-in quarantined smoke completes successfully and reports its quarantine coordinates. diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 39e8541d..01f0abfd 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -42,6 +42,9 @@ The confirmed conceptual substitutions have been cut: - topology-derived provider builders are private, explicitly named templates. Consumers can load persisted provider documents but cannot request seven plausible advertisements/surfaces/tools from topology. +- bootstrap no longer writes default operator status. Only the dedicated + operator-status writer publishes it; missing reads are filesystem-pure and + the status smoke is fixed beneath `.epiphany-smoke`. The presentation boundary is now plain: `swarm overview` is a generic compact read-only projection. Gjallar is a downstream TUI application on Nightwing and is not an Epiphany organ, provider, owner, runtime, or architectural dependency. Eve/CultUI graphs may be lowered or composited downstream without Epiphany caring which presentation client does it. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 857636443ff780b169dd6ca4c7093e3ed4670a55..5cc48c3bfd9c3e42b652ee288f3563be2177d179 100644 GIT binary patch delta 357 zcmYL@u};H442HP^Sy;*j6+%YL1a&BtU}HxNY)A~3#54yT4qkTEjZ)p)Y3FX*QKGso zi&jLduhWh?Ngc9 H%+~?{I6e|U diff --git a/state/map.yaml b/state/map.yaml index ae0718d9..e35baff3 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -70,7 +70,7 @@ data_flow: - move historical proof to git, commits, smoke artifacts, or distilled evidence rather than plan prose active_subgoals: - - Use `notes/conceptual-substitution-audit-2026-07-12.md` plus `notes/receipt-writer-provenance-audit-2026-07-12.md` as the current authority-corrosion maps. Snapshot promotion, synthetic smoke escape, unbound operator completion, hidden service execution flags, provider/bootstrap collapse, central/all-provider publication, production-side implicit bootstrap, orphaned external response authority, bulk readiness authority, and public topology-derived provider-state builders are cut. Provider responses/readiness without owners are test-only; provider contract templates are private; production exposes persisted readers and narrow owner writers. Next audit remaining projections, caches, schedulers, adapters, and non-receipt smokes for borrowed authority or path escape. + - Use `notes/conceptual-substitution-audit-2026-07-12.md` plus `notes/receipt-writer-provenance-audit-2026-07-12.md` as the current authority-corrosion maps. Snapshot promotion, synthetic smoke escape, unbound operator completion, hidden service execution flags, provider/bootstrap collapse, central/all-provider publication, production-side implicit bootstrap, orphaned external response authority, bulk readiness authority, public topology-derived provider builders, and bootstrap-authored operator observation are cut. Provider responses/readiness without owners are test-only; templates are private; bootstrap owns declarations rather than telemetry; missing reads preserve filesystem absence. Next audit remaining projections, caches, schedulers, adapters, and non-receipt smokes for borrowed authority or path escape. - `swarm-overview` is an Epiphany-local, renderer-neutral diagnostic projection over provider-owned typed state. It owns no lifecycle, discovery, composition, or mutation authority. Epiphany publishes clean provider-owned Eve surfaces; Odin may discover them; downstream lowerers and compositors remain outside Epiphany's concern. - Idunn owns daemon survival and service lifecycle physiology. Codex/operator sessions may inspect, generate runbooks, and route explicit operator authority, but keeping daemons alive belongs to Idunn-owned service lifecycle receipts, scheduler policy, audits, and aftercare. Do not let Self, diagnostic projections, or ad hoc wrapper summaries become a second daemon-keeper. Global tool readbacks for Self `service-health`, `service-policy-directory`, and `swarm-online-runbook` state `lifecycleOwner=Idunn` and `hostedBody=Epiphany` without service mutation or private-state exposure. - Use `notes/epiphany-cultmesh-dreaming-roadmap.md` as the design authority for distributed Epiphany dreaming. Public dreams are separately authored typed documents distributed through CultMesh/CultNet; private state remains local and cannot be shared by flipping a visibility flag. Foreign dreams are external thought weather until a reviewed local adoption receipt digests them into memory, planning, doctrine, or governance.