Delete central Odin provider impersonation

This commit is contained in:
Meta Vens 2026-07-12 20:58:51 +01:00
commit 49cc5f8244
8 changed files with 23 additions and 168 deletions

View file

@ -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::<Vec<_>>(),
"providers": advertisements.iter().map(|(_, entry)| entry.value.clone()).collect::<Vec<_>>(),
"privateStateExposed": false,
}))?
);
}
"publish-odin" | "odin-startup-respect" => {
let target = args
.odin_cultmesh_rudp
.context("publish-odin requires --odin-cultmesh-rudp <host:port>")?;
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<String>,
affected_clusters: Option<Vec<String>>,
protected_surfaces: Option<Vec<String>>,
odin_cultmesh_rudp: Option<SocketAddr>,
}
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::<SocketAddr>()
.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,
})
}
}

View file

@ -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<String>,
}
#[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<EpiphanyCultMeshOdinAdvert
.collect()
}
pub fn epiphany_gamecult_eve_provider_advertisements(
updated_at: impl Into<String>,
) -> 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 <host:port>",
"role": "provider-advertisement"
}
],
"schemaCatalog": advertisement.advertised_document_types.iter().map(|schema_id| {
json!({
"schemaId": schema_id,
"authority": "Epiphany"
})
}).collect::<Vec<_>>(),
"notes": advertisement.notes,
}),
};
(provider_id, provider)
})
.collect()
}
pub fn write_epiphany_cultmesh_odin_advertisements(
store_path: impl AsRef<Path>,
runtime_id: impl Into<String>,

View file

@ -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;

View file

@ -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.

View file

@ -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.

View file

@ -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.

Binary file not shown.

View file

@ -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, 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.
- 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, generic-bootstrap publication of provider advertisements/Eve surfaces/hosted tools, and the central topology-derived Odin publisher are cut. Provider absence now survives bootstrap and the query CLI cannot proclaim seven providers active over RUDP. 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.