From 2329c0a4909581487a73e5b336bfd94bf8c54936 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 12 Jul 2026 20:52:15 +0100 Subject: [PATCH] Stop bootstrap impersonating providers --- epiphany-core/src/bin/epiphany-verse-query.rs | 15 +++++++++++++ epiphany-core/src/cultmesh_integration.rs | 20 ++++-------------- epiphany-core/src/lib.rs | 1 + epiphany-core/src/prompt_context.rs | 6 ++++++ ...onceptual-substitution-audit-2026-07-12.md | 16 ++++++++++++++ notes/epiphany-current-algorithmic-map.md | 4 ++++ notes/fresh-workspace-handoff.md | 2 ++ state/ledgers.msgpack | Bin 433917 -> 434295 bytes state/map.yaml | 2 +- 9 files changed, 49 insertions(+), 17 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-verse-query.rs b/epiphany-core/src/bin/epiphany-verse-query.rs index 63655c08..621b736d 100644 --- a/epiphany-core/src/bin/epiphany-verse-query.rs +++ b/epiphany-core/src/bin/epiphany-verse-query.rs @@ -69,9 +69,12 @@ use epiphany_core::write_epiphany_cultmesh_daemon_status; use epiphany_core::write_epiphany_cultmesh_daemon_statuses; use epiphany_core::write_epiphany_cultmesh_daemon_tool_invocation_intent; use epiphany_core::write_epiphany_cultmesh_daemon_tool_invocation_receipt; +use epiphany_core::write_epiphany_cultmesh_daemon_tool_capabilities; use epiphany_core::write_epiphany_cultmesh_eve_connection_intent; use epiphany_core::write_epiphany_cultmesh_eve_connection_receipt; +use epiphany_core::write_epiphany_cultmesh_eve_surface_states; use epiphany_core::write_epiphany_cultmesh_imagination_consensus_receipt; +use epiphany_core::write_epiphany_cultmesh_odin_advertisements; use epiphany_core::write_epiphany_cultmesh_swarm_brake; use epiphany_core::write_epiphany_cultmesh_work_loop_telemetry; use epiphany_core::EpiphanyAgentStateSoaEntry; @@ -1414,6 +1417,18 @@ fn run_cli() -> Result<()> { args.runtime_id.clone(), "2026-06-02T00:00:00Z", )?; + write_epiphany_cultmesh_odin_advertisements( + &args.store, + args.runtime_id.clone(), + )?; + write_epiphany_cultmesh_eve_surface_states( + &args.store, + args.runtime_id.clone(), + )?; + write_epiphany_cultmesh_daemon_tool_capabilities( + &args.store, + args.runtime_id.clone(), + )?; write_epiphany_cultmesh_daemon_statuses( &args.store, args.runtime_id.clone(), diff --git a/epiphany-core/src/cultmesh_integration.rs b/epiphany-core/src/cultmesh_integration.rs index 2cd13efc..4048ad82 100644 --- a/epiphany-core/src/cultmesh_integration.rs +++ b/epiphany-core/src/cultmesh_integration.rs @@ -5799,8 +5799,6 @@ pub fn seed_epiphany_local_verse_context( write_epiphany_cultmesh_verse_policies(store_path, runtime_id.clone())?; write_epiphany_cultmesh_global_room_policies(store_path, runtime_id.clone())?; write_epiphany_cultmesh_cluster_topology(store_path, runtime_id.clone())?; - write_epiphany_cultmesh_odin_advertisements(store_path, runtime_id.clone())?; - write_epiphany_cultmesh_eve_surface_states(store_path, runtime_id.clone())?; { let node = open_epiphany_cultmesh_node(store_path, runtime_id.clone())?; if node @@ -5814,7 +5812,6 @@ pub fn seed_epiphany_local_verse_context( )?; } } - write_epiphany_cultmesh_daemon_tool_capabilities(store_path, runtime_id.clone())?; write_epiphany_cultmesh_mind_contracts(store_path, runtime_id.clone())?; write_epiphany_cultmesh_substrate_gate_contracts(store_path, runtime_id.clone())?; write_epiphany_cultmesh_eyes_contracts(store_path, runtime_id.clone())?; @@ -9358,7 +9355,7 @@ mod tests { } #[test] - fn local_verse_context_queries_compact_policy_status_and_contracts() -> Result<()> { + fn local_verse_bootstrap_does_not_publish_provider_owned_state() -> Result<()> { let temp = tempfile::tempdir()?; let store = temp.path().join("epiphany-local-verse.ccmp"); seed_epiphany_local_verse_context(&store, "epiphany-test", "2026-06-02T00:00:00Z")?; @@ -9376,18 +9373,9 @@ mod tests { && cluster.public_persona_discussion_allowed && cluster.eve_surface_id == "eve://epiphany/persona" })); - assert_eq!(context.odin_advertisements.len(), 7); - assert!(context.odin_advertisements.iter().any(|advertisement| { - advertisement.cluster_id == "epiphany.cluster.persona" - && advertisement.eve_surface_id == "eve://epiphany/persona" - && !advertisement.private_state_exposed - })); - assert!(context.daemon_tool_capabilities.len() >= 18); - assert!(context.daemon_tool_capabilities.iter().all(|capability| { - capability.available_to_all_agents - && capability.requires_receipt - && !capability.private_state_exposed - })); + 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 diff --git a/epiphany-core/src/lib.rs b/epiphany-core/src/lib.rs index 858f8a45..e69d300a 100644 --- a/epiphany-core/src/lib.rs +++ b/epiphany-core/src/lib.rs @@ -500,6 +500,7 @@ pub use cultmesh_integration::write_epiphany_cultmesh_hands_contracts; pub use cultmesh_integration::write_epiphany_cultmesh_idunn_aftercare_audit_receipt; pub use cultmesh_integration::write_epiphany_cultmesh_idunn_deployment_receipt; pub use cultmesh_integration::write_epiphany_cultmesh_imagination_consensus_receipt; +pub use cultmesh_integration::write_epiphany_cultmesh_odin_advertisements; pub use cultmesh_integration::write_epiphany_cultmesh_mind_contracts; pub use cultmesh_integration::write_epiphany_cultmesh_operator_run_intent; pub use cultmesh_integration::write_epiphany_cultmesh_operator_run_receipt; diff --git a/epiphany-core/src/prompt_context.rs b/epiphany-core/src/prompt_context.rs index e28b4db7..564e01d1 100644 --- a/epiphany-core/src/prompt_context.rs +++ b/epiphany-core/src/prompt_context.rs @@ -405,6 +405,9 @@ mod tests { use crate::write_epiphany_cultmesh_bifrost_github_publication_receipt; use crate::write_epiphany_cultmesh_daemon_tool_invocation_intent; use crate::write_epiphany_cultmesh_daemon_tool_invocation_receipt; + use crate::write_epiphany_cultmesh_daemon_tool_capabilities; + use crate::write_epiphany_cultmesh_eve_surface_states; + use crate::write_epiphany_cultmesh_odin_advertisements; use crate::write_epiphany_cultmesh_work_loop_telemetry; use epiphany_state_model::EpiphanyMemoryContextPacket; use epiphany_state_model::EpiphanyMemoryFreshnessStatus; @@ -415,6 +418,9 @@ mod tests { let temp = tempfile::tempdir()?; let store = temp.path().join("epiphany-local-verse.ccmp"); seed_epiphany_local_verse_context(&store, "epiphany-test", "2026-06-02T00:00:00Z")?; + write_epiphany_cultmesh_odin_advertisements(&store, "epiphany-test")?; + write_epiphany_cultmesh_eve_surface_states(&store, "epiphany-test")?; + write_epiphany_cultmesh_daemon_tool_capabilities(&store, "epiphany-test")?; let seeded_verse = query_epiphany_local_verse_context(&store, "epiphany-test")?; let hands_action = seeded_verse .daemon_tool_capabilities diff --git a/notes/conceptual-substitution-audit-2026-07-12.md b/notes/conceptual-substitution-audit-2026-07-12.md index 22122134..d3010d5d 100644 --- a/notes/conceptual-substitution-audit-2026-07-12.md +++ b/notes/conceptual-substitution-audit-2026-07-12.md @@ -78,3 +78,19 @@ the receipts and projections without first separating those writers. All confirmed substitutions above have now been structurally cut from their caller-facing production paths. Diagnostics preserve absence; bootstrap does not seed liveness; cluster-daemon owns first heartbeat; discovery loaders do not synthesize providers; tool, Eve, poke, body-change, public-proof, artifact-acceptance, metrics, and Persona-feedback commands write or select requests only; provider/result fields are rejected. `epiphany-eve-provider` is the first narrow provider receipt mouth. Receipt constructors and writers remain available to owning provider binaries and focused contract tests; their mere existence is no longer caller authority. Remaining audit work is provenance rather than this original dual-writer cluster: identify every production call site of response-receipt writers, ensure it belongs to a named provider executable or ingest boundary, and distill contaminated historical claims from `state/map.yaml`. + +## Bootstrap/provider split + +The later non-receipt pass found one surviving writer from the same original +collapse: `seed_epiphany_local_verse_context` still published all seven Odin +advertisements, Eve surface states, and daemon tool capabilities. This made an +explicit bootstrap structurally indistinguishable from seven providers having +published their own presence. + +Bootstrap now writes only Epiphany-owned local policy, topology declaration, +brake initialization, organ contracts, and operator status. Provider +advertisements, surfaces, and hosted tools remain absent until a provider-owned +publication path writes them. The quarantined `epiphany-verse-query smoke` +fixture seeds those three families explicitly inside its fixed disposable body. +Focused negative proof asserts that a clean bootstrap leaves all three provider +families empty. diff --git a/notes/epiphany-current-algorithmic-map.md b/notes/epiphany-current-algorithmic-map.md index 58ff5d40..17e20268 100644 --- a/notes/epiphany-current-algorithmic-map.md +++ b/notes/epiphany-current-algorithmic-map.md @@ -82,6 +82,10 @@ - `epiphany-verse-query smoke` owns synthetic contract fixtures only. - Its only writable body is `.epiphany-smoke/verse-query-default/local-verse.ccmp` with runtime `verse-query-default-smoke`. +- Generic local Verse bootstrap owns policy, declared topology, initial brake, + organ contracts, and operator status only. It does not publish Odin provider + advertisements, Eve surfaces, or daemon-hosted tools. Those families require + provider publication; discovery preserves their absence. - 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 b8348fb9..87275ac5 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -14,6 +14,8 @@ The confirmed conceptual substitutions have been cut: - operator-run completion is derived from a fresh, contained result artifact rather than caller status; - daemon service plan/execute authority is encoded by explicit command identity; - synthetic receipt smokes are confined beneath `.epiphany-smoke`. +- generic local Verse bootstrap no longer publishes provider advertisements, + Eve surfaces, or hosted tools; provider absence survives bootstrap. 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 7258ad03210e2eed6318afd7a0aa507236579a9b..aa5f8557ad30f3451a8153f33fd039b84a3c8432 100644 GIT binary patch delta 362 zcmY+9KT88a6vVwtyh01HlN9p6I?3fE29q*{U?V~*D>rv9-r{E8W#3-@R2CM3wc#2e zUqP@C3&G09Z(!|ruoB#uMvGyl`pwMuOXcge^04D=HludfI(u6S7QM$kZ{&Hw_1wRi z`<~O%OHO5{^{2TXr1#r*&ruj1RKr%a5%n5}?PhUWFYg{5cXJCDsL{w6`b3tk5gBB8 zU&&ZlNg8MXnW3>v&{S!nF@cjrY7og7jg^c;)VBCMFG2DC;cr|?zX366w6kzpXGHa9NdG;(3e^mw;nRVT>Al1b%H4X delta 57 zcmex?Ngc9 HGUfmPKQ0o5 diff --git a/state/map.yaml b/state/map.yaml index a33b4b7d..34280d76 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, and hidden service execution flags are cut. Standalone deployment/Idunn and Weksa receipt smokes cannot accept output destinations and derive their stores under `.epiphany-smoke`. Next remove or test-gate dead public receipt constructors where provider binaries are absent, distill obsolete historical authority claims, and audit non-receipt smokes for destructive 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, and generic-bootstrap publication of provider advertisements/Eve surfaces/hosted tools are cut. Provider absence now survives bootstrap. Next remove or test-gate dead public receipt constructors where provider binaries are absent and 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.