Separate bootstrap from operator status
This commit is contained in:
parent
7861e582a7
commit
63c940f982
7 changed files with 36 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -2721,6 +2721,10 @@ pub fn load_epiphany_cultmesh_operator_status(
|
|||
store_path: impl AsRef<Path>,
|
||||
runtime_id: impl Into<String>,
|
||||
) -> Result<Option<EpiphanyCultMeshOperatorStatusEntry>> {
|
||||
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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -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.
|
||||
|
|
|
|||
Reference in a new issue