From 49cc5f8244e0185a0f93755af55f371da40e6f92 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 12 Jul 2026 20:58:51 +0100 Subject: [PATCH] Delete central Odin provider impersonation --- epiphany-core/src/bin/epiphany-verse-query.rs | 82 +----------------- epiphany-core/src/cultmesh_integration.rs | 82 ------------------ epiphany-core/src/lib.rs | 4 - ...onceptual-substitution-audit-2026-07-12.md | 15 ++++ notes/epiphany-current-algorithmic-map.md | 4 + notes/fresh-workspace-handoff.md | 2 + state/ledgers.msgpack | Bin 434295 -> 434670 bytes state/map.yaml | 2 +- 8 files changed, 23 insertions(+), 168 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-verse-query.rs b/epiphany-core/src/bin/epiphany-verse-query.rs index 621b736d..d0ba03f3 100644 --- a/epiphany-core/src/bin/epiphany-verse-query.rs +++ b/epiphany-core/src/bin/epiphany-verse-query.rs @@ -1,7 +1,6 @@ use anyhow::Context; use anyhow::Result; use chrono::Utc; -use cultmesh_rs::CultMeshRudpDocumentPublishOptions; use epiphany_core::default_epiphany_cultmesh_swarm_brake; use epiphany_core::epiphany_cluster_service_execution_audit_report; use epiphany_core::epiphany_cultmesh_agent_state_soa_summary_from_entry; @@ -16,7 +15,6 @@ use epiphany_core::epiphany_cultmesh_daemon_tool_invocation_receipt_for_intent; use epiphany_core::epiphany_cultmesh_eve_connection_intent_from_advertisement; use epiphany_core::epiphany_cultmesh_eve_connection_receipt_for_intent; use epiphany_core::epiphany_cultmesh_imagination_consensus_receipt_for_feedback; -use epiphany_core::epiphany_gamecult_eve_provider_advertisements; use epiphany_core::epiphany_service_execution_audit_report; use epiphany_core::load_agent_state_soa_entry; use epiphany_core::load_epiphany_cultmesh_cluster_topology; @@ -118,7 +116,6 @@ use sha2::Sha256; use std::collections::BTreeMap; use std::env; use std::fs; -use std::net::SocketAddr; use std::path::PathBuf; const WRAPPER_OVERVIEW_COMMAND: &str = "tools/epiphany_local_run.ps1 -Mode swarm-overview"; @@ -220,70 +217,6 @@ fn run_cli() -> Result<()> { }))? ); } - "provider-advertisements" | "provider-advertisement" => { - let advertisements = - epiphany_gamecult_eve_provider_advertisements(Utc::now().to_rfc3339()); - println!( - "{}", - serde_json::to_string_pretty(&json!({ - "schemaVersion": "epiphany.odin_provider_advertisement_preview.v0", - "status": "ok", - "schemaId": epiphany_core::GAMECULT_EVE_PROVIDER_ADVERTISEMENT_SCHEMA_VERSION, - "count": advertisements.len(), - "providerIds": advertisements.iter().map(|(id, _)| id.clone()).collect::>(), - "providers": advertisements.iter().map(|(_, entry)| entry.value.clone()).collect::>(), - "privateStateExposed": false, - }))? - ); - } - "publish-odin" | "odin-startup-respect" => { - let target = args - .odin_cultmesh_rudp - .context("publish-odin requires --odin-cultmesh-rudp ")?; - let observed_at = Utc::now().to_rfc3339(); - seed_epiphany_local_verse_context( - &args.store, - args.runtime_id.clone(), - observed_at.clone(), - )?; - let mut node = open_epiphany_cultmesh_node(&args.store, args.runtime_id.clone())?; - let advertisements = epiphany_gamecult_eve_provider_advertisements(observed_at); - let mut provider_ids = Vec::new(); - for (provider_id, advertisement) in &advertisements { - node.put(provider_id.clone(), advertisement)?; - node.publish_document_to_rudp_catalog( - provider_id.clone(), - advertisement, - CultMeshRudpDocumentPublishOptions { - target, - runtime_id: args.runtime_id.clone(), - source_role: Some("epiphany.provider".to_string()), - tags: vec![ - "startup-respect".to_string(), - "odin-verse-discovery".to_string(), - ], - ..CultMeshRudpDocumentPublishOptions::default() - }, - )?; - provider_ids.push(provider_id.clone()); - } - node.flush()?; - println!( - "{}", - serde_json::to_string_pretty(&json!({ - "schemaVersion": "epiphany.odin_startup_respect_receipt.v0", - "status": "ok", - "store": args.store, - "runtimeId": args.runtime_id, - "odinCultMeshRudp": target.to_string(), - "schemaId": epiphany_core::GAMECULT_EVE_PROVIDER_ADVERTISEMENT_SCHEMA_VERSION, - "publishedCount": provider_ids.len(), - "providerIds": provider_ids, - "tags": ["startup-respect", "odin-verse-discovery"], - "privateStateExposed": false, - }))? - ); - } "query" => { let context = query_epiphany_local_verse_context(&args.store, args.runtime_id.clone())?; println!("{}", serde_json::to_string_pretty(&context)?); @@ -3644,7 +3577,7 @@ fn run_cli() -> Result<()> { ); } other => anyhow::bail!( - "unknown command {other:?}; use seed, query, provider-advertisements, publish-odin, tools, tool-directory, invoke-tool, restart-policy-directory, swarm-brake, swarm-status, swarm-overview, swarm-triage, managed-services, cluster-topology, eve-surfaces, daemon-status, agent-state, agent-state-report, poke-daemon, poke-down-daemons, bifrost-publication, bifrost-public-proof, bifrost-artifact-acceptance, bifrost-metrics, bifrost-ledger, collaboration-feedback, connect-eve, or smoke" + "unknown command {other:?}; use seed, query, tools, tool-directory, invoke-tool, restart-policy-directory, swarm-brake, swarm-status, swarm-overview, swarm-triage, managed-services, cluster-topology, eve-surfaces, agent-state, agent-state-report, poke-daemon, poke-down-daemons, bifrost-publication, bifrost-public-proof, bifrost-artifact-acceptance, bifrost-metrics, bifrost-ledger, collaboration-feedback, connect-eve, or smoke" ), } Ok(()) @@ -10331,7 +10264,6 @@ struct Args { requested_action: Option, affected_clusters: Option>, protected_surfaces: Option>, - odin_cultmesh_rudp: Option, } impl Args { @@ -10390,7 +10322,6 @@ impl Args { let mut requested_action = None; let mut affected_clusters = Vec::new(); let mut protected_surfaces = Vec::new(); - let mut odin_cultmesh_rudp = None; while let Some(arg) = values.next() { match arg.as_str() { @@ -10444,16 +10375,6 @@ impl Args { values.next().context("missing --protected-surface value")?, ); } - "--odin-cultmesh-rudp" => { - let value = values - .next() - .context("missing --odin-cultmesh-rudp value")?; - odin_cultmesh_rudp = Some( - value - .parse::() - .with_context(|| format!("invalid --odin-cultmesh-rudp {value:?}"))?, - ); - } "--reason" => { reason = Some(values.next().context("missing --reason value")?); } @@ -10703,7 +10624,6 @@ impl Args { requested_action, affected_clusters: some_if_not_empty(affected_clusters), protected_surfaces: some_if_not_empty(protected_surfaces), - odin_cultmesh_rudp, }) } } diff --git a/epiphany-core/src/cultmesh_integration.rs b/epiphany-core/src/cultmesh_integration.rs index 4048ad82..460794e4 100644 --- a/epiphany-core/src/cultmesh_integration.rs +++ b/epiphany-core/src/cultmesh_integration.rs @@ -18,7 +18,6 @@ use cultmesh_rs::CultMeshNodeOptions; use cultmesh_rs::cultmesh_documents; use serde::Serialize; use serde_json::Value; -use serde_json::json; use std::path::Path; pub const EPIPHANY_CULTMESH_STATUS_TYPE: &str = "epiphany.cultmesh.status"; @@ -113,9 +112,6 @@ pub const EPIPHANY_CULTMESH_CLUSTER_TOPOLOGY_SCHEMA_VERSION: &str = pub const EPIPHANY_CULTMESH_ODIN_ADVERTISEMENT_TYPE: &str = "epiphany.cultmesh.odin_advertisement"; pub const EPIPHANY_CULTMESH_ODIN_ADVERTISEMENT_SCHEMA_VERSION: &str = "epiphany.cultmesh.odin_advertisement.v0"; -pub const GAMECULT_EVE_PROVIDER_ADVERTISEMENT_TYPE: &str = "gamecult.eve.provider_advertisement"; -pub const GAMECULT_EVE_PROVIDER_ADVERTISEMENT_SCHEMA_VERSION: &str = - "gamecult.eve.provider_advertisement.v1"; pub const EPIPHANY_CULTMESH_EVE_CONNECTION_INTENT_TYPE: &str = "epiphany.cultmesh.eve_connection_intent"; pub const EPIPHANY_CULTMESH_EVE_CONNECTION_INTENT_SCHEMA_VERSION: &str = @@ -1148,16 +1144,6 @@ pub struct EpiphanyCultMeshOdinAdvertisementEntry { pub notes: Vec, } -#[derive(Clone, Debug, PartialEq, DatabaseEntry)] -#[cultcache( - type = "gamecult.eve.provider_advertisement", - schema = "gamecult.eve.provider_advertisement.v1" -)] -pub struct GameCultEveProviderAdvertisementCompatEntry { - #[cultcache(key = 0)] - pub value: Value, -} - #[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)] #[cultcache( type = "epiphany.cultmesh.eve_connection_intent", @@ -2619,7 +2605,6 @@ cultmesh_documents!(EpiphanyCultMeshDocuments { EpiphanyCultMeshGlobalRoomPolicyEntry => EPIPHANY_CULTMESH_GLOBAL_ROOM_POLICY_SCHEMA_VERSION, EpiphanyCultMeshClusterTopologyEntry => EPIPHANY_CULTMESH_CLUSTER_TOPOLOGY_SCHEMA_VERSION, EpiphanyCultMeshOdinAdvertisementEntry => EPIPHANY_CULTMESH_ODIN_ADVERTISEMENT_SCHEMA_VERSION, - GameCultEveProviderAdvertisementCompatEntry => GAMECULT_EVE_PROVIDER_ADVERTISEMENT_SCHEMA_VERSION, EpiphanyCultMeshEveConnectionIntentEntry => EPIPHANY_CULTMESH_EVE_CONNECTION_INTENT_SCHEMA_VERSION, EpiphanyCultMeshEveConnectionReceiptEntry => EPIPHANY_CULTMESH_EVE_CONNECTION_RECEIPT_SCHEMA_VERSION, EpiphanyCultMeshEveSurfaceStateEntry => EPIPHANY_CULTMESH_EVE_SURFACE_STATE_SCHEMA_VERSION, @@ -6593,73 +6578,6 @@ pub fn epiphany_cultmesh_odin_advertisements() -> Vec, -) -> Vec<(String, GameCultEveProviderAdvertisementCompatEntry)> { - let updated_at = updated_at.into(); - epiphany_cultmesh_odin_advertisements() - .into_iter() - .map(|advertisement| { - let provider_id = format!("epiphany.{}", advertisement.cluster_id); - let provider = GameCultEveProviderAdvertisementCompatEntry { - value: json!({ - "schema": GAMECULT_EVE_PROVIDER_ADVERTISEMENT_SCHEMA_VERSION, - "providerId": provider_id, - "serviceId": "epiphany.agent", - "verseId": advertisement.advertised_verse_id, - "title": format!("Epiphany {}", advertisement.body_kind), - "description": advertisement.public_summary, - "canonicalService": "gamecult.epiphany", - "locatedService": format!("gamecult.epiphany.{}", advertisement.body_kind), - "cultMeshAddress": advertisement.eve_surface_id, - "status": "active", - "mode": "daemon-live", - "updatedAt": updated_at, - "bodyDomain": advertisement.body_domain, - "bodyKind": advertisement.body_kind, - "clusterId": advertisement.cluster_id, - "daemonSurfaceId": advertisement.daemon_surface_id, - "surfaceId": advertisement.eve_surface_id, - "privateStateExposed": advertisement.private_state_exposed, - "capabilities": [ - "epiphany-agent-state", - "cultmesh-local-verse", - "eve-surface-target", - "repo-work-coordination", - "operator-safe-discovery" - ], - "endpoints": [ - { - "transport": "cultmesh-local-verse", - "address": ".epiphany-run/cultmesh/local-verse.ccmp" - } - ], - "routes": [ - { - "transport": "repo-cli", - "address": "cargo run --manifest-path epiphany-core/Cargo.toml --bin epiphany-verse-query -- eve-surfaces", - "role": "eve-surface-directory" - }, - { - "transport": "repo-cli", - "address": "cargo run --manifest-path epiphany-core/Cargo.toml --bin epiphany-verse-query -- publish-odin --odin-cultmesh-rudp ", - "role": "provider-advertisement" - } - ], - "schemaCatalog": advertisement.advertised_document_types.iter().map(|schema_id| { - json!({ - "schemaId": schema_id, - "authority": "Epiphany" - }) - }).collect::>(), - "notes": advertisement.notes, - }), - }; - (provider_id, provider) - }) - .collect() -} - pub fn write_epiphany_cultmesh_odin_advertisements( store_path: impl AsRef, runtime_id: impl Into, diff --git a/epiphany-core/src/lib.rs b/epiphany-core/src/lib.rs index e69d300a..cc70ff6f 100644 --- a/epiphany-core/src/lib.rs +++ b/epiphany-core/src/lib.rs @@ -370,9 +370,6 @@ pub use cultmesh_integration::EpiphanyLocalVerseContractSummary; pub use cultmesh_integration::EpiphanyLocalVerseWorkLoopSummary; pub use cultmesh_integration::EpiphanyServiceExecutionAuditCheck; pub use cultmesh_integration::EpiphanyServiceExecutionAuditReport; -pub use cultmesh_integration::GAMECULT_EVE_PROVIDER_ADVERTISEMENT_SCHEMA_VERSION; -pub use cultmesh_integration::GAMECULT_EVE_PROVIDER_ADVERTISEMENT_TYPE; -pub use cultmesh_integration::GameCultEveProviderAdvertisementCompatEntry; pub use cultmesh_integration::default_epiphany_cultmesh_operator_status; pub use cultmesh_integration::default_epiphany_cultmesh_swarm_brake; pub use cultmesh_integration::epiphany_cluster_service_execution_audit_report; @@ -409,7 +406,6 @@ pub use cultmesh_integration::epiphany_cultmesh_role_review_event_from_summary_j pub use cultmesh_integration::epiphany_cultmesh_soul_contracts; pub use cultmesh_integration::epiphany_cultmesh_substrate_gate_contracts; pub use cultmesh_integration::epiphany_cultmesh_verse_policies; -pub use cultmesh_integration::epiphany_gamecult_eve_provider_advertisements; pub use cultmesh_integration::epiphany_local_verse_work_loop_summary; pub use cultmesh_integration::epiphany_service_execution_audit_report; pub use cultmesh_integration::load_epiphany_cultmesh_cluster_topology; diff --git a/notes/conceptual-substitution-audit-2026-07-12.md b/notes/conceptual-substitution-audit-2026-07-12.md index d3010d5d..cdbc3799 100644 --- a/notes/conceptual-substitution-audit-2026-07-12.md +++ b/notes/conceptual-substitution-audit-2026-07-12.md @@ -94,3 +94,18 @@ 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. + +## Central Odin publisher deletion + +The bootstrap split exposed a second surviving writer: the generic +`epiphany-verse-query publish-odin` command generated seven compatibility +advertisements from declared topology, hard-coded them as `active` and +`daemon-live`, and published them to an arbitrary Odin RUDP catalog. No daemon +or provider participated. The adjacent `provider-advertisements` preview +presented the same invented presence without publishing it. + +Both commands and the compatibility schema/builder are deleted. The generic +query CLI has no Odin network publication capability. Provider discovery must +remain empty until provider-owned bodies publish evidence of their own +presence; a future provider publisher must live at that provider boundary and +derive status from its runtime, not from central topology. diff --git a/notes/epiphany-current-algorithmic-map.md b/notes/epiphany-current-algorithmic-map.md index 17e20268..e87a0cd3 100644 --- a/notes/epiphany-current-algorithmic-map.md +++ b/notes/epiphany-current-algorithmic-map.md @@ -86,6 +86,10 @@ 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. +- The generic Verse query CLI has no provider-advertisement preview or Odin + publication command. Provider bodies must publish their own discovery state; + central declared topology cannot be lowered into `active`/`daemon-live` + compatibility presence. - 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 87275ac5..b5f18034 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -16,6 +16,8 @@ The confirmed conceptual substitutions have been cut: - 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 central `provider-advertisements` / `publish-odin` compatibility mouth is + deleted; only provider-owned bodies may publish presence to Odin. 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 aa5f8557ad30f3451a8153f33fd039b84a3c8432..955586af33b6e71fd8011b397201adb0b22a482e 100644 GIT binary patch delta 373 zcmYjMJxc>Y5cLvsf*{rgi$UvC6or`BDMZ0S1RJ}(-7&Yiw|kl0y^tz}grl25GN`aIxQ6f2MF%OIl zcPu52fN24RPnEP;VuaLiad~_W+~oP3QQm^f5Hdz0;YI{y#+@v2TQJOxPE^?I_kuZ@ zPNb4<43=k@vn}YOMv@$c9%&3mXQx1TgS>YC@5n58eXGq#&(mlF%IE