Stop bootstrap impersonating providers
This commit is contained in:
parent
015f50454a
commit
2329c0a490
9 changed files with 49 additions and 17 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
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, 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.
|
||||
|
|
|
|||
Reference in a new issue