Test-gate bulk daemon readiness
This commit is contained in:
parent
bd72c5bbea
commit
a764b949f8
8 changed files with 66 additions and 9 deletions
|
|
@ -95,7 +95,6 @@ use epiphany_core::write_epiphany_cultmesh_daemon_poke_receipt;
|
|||
use epiphany_core::write_epiphany_cultmesh_daemon_restart_policy;
|
||||
use epiphany_core::write_epiphany_cultmesh_daemon_service_lifecycle_receipt;
|
||||
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_eve_connection_intent;
|
||||
|
|
@ -199,6 +198,42 @@ fn require_query_bootstrap(args: &Args) -> Result<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
fn seed_quarantined_smoke_daemon_statuses(args: &Args) -> Result<()> {
|
||||
if !args.smoke_default_store {
|
||||
anyhow::bail!("synthetic daemon readiness is confined to the built-in smoke store");
|
||||
}
|
||||
for cluster in load_epiphany_cultmesh_cluster_topology(&args.store, args.runtime_id.clone())? {
|
||||
write_epiphany_cultmesh_daemon_status(
|
||||
&args.store,
|
||||
args.runtime_id.clone(),
|
||||
EpiphanyCultMeshDaemonStatusEntry {
|
||||
schema_version: epiphany_core::EPIPHANY_CULTMESH_DAEMON_STATUS_SCHEMA_VERSION
|
||||
.to_string(),
|
||||
daemon_id: cluster.daemon_id,
|
||||
cluster_id: cluster.cluster_id,
|
||||
body_domain: cluster.body_domain,
|
||||
daemon_surface_id: cluster.daemon_surface_id,
|
||||
eve_surface_id: cluster.eve_surface_id,
|
||||
status: "ready".to_string(),
|
||||
last_heartbeat_utc: "2026-06-02T00:00:00Z".to_string(),
|
||||
supported_actions: vec![
|
||||
"inspectStatus".to_string(),
|
||||
"pokeDaemon".to_string(),
|
||||
"watchHeartbeat".to_string(),
|
||||
"submitTypedToolIntent".to_string(),
|
||||
],
|
||||
operator_action: "none".to_string(),
|
||||
private_state_exposed: false,
|
||||
notes: vec![
|
||||
"Synthetic liveness fixture confined to the built-in aggregate smoke body."
|
||||
.to_string(),
|
||||
],
|
||||
},
|
||||
)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn run_cli() -> Result<()> {
|
||||
let args = Args::parse()?;
|
||||
match args.command.as_str() {
|
||||
|
|
@ -1346,11 +1381,7 @@ fn run_cli() -> Result<()> {
|
|||
&cluster.daemon_id,
|
||||
)?;
|
||||
}
|
||||
write_epiphany_cultmesh_daemon_statuses(
|
||||
&args.store,
|
||||
args.runtime_id.clone(),
|
||||
"2026-06-02T00:00:00Z",
|
||||
)?;
|
||||
seed_quarantined_smoke_daemon_statuses(&args)?;
|
||||
let context = query_epiphany_local_verse_context(&args.store, args.runtime_id.clone())?;
|
||||
let ready_liveness =
|
||||
load_epiphany_cultmesh_daemon_liveness(&args.store, args.runtime_id.clone())?;
|
||||
|
|
|
|||
|
|
@ -5875,8 +5875,8 @@ pub fn query_epiphany_local_verse_context(
|
|||
}
|
||||
}
|
||||
let mut daemon_statuses = Vec::new();
|
||||
for status in epiphany_cultmesh_daemon_statuses("") {
|
||||
if let Some(loaded) = node.get::<EpiphanyCultMeshDaemonStatusEntry>(&status.daemon_id)? {
|
||||
for cluster in epiphany_cultmesh_cluster_topology() {
|
||||
if let Some(loaded) = node.get::<EpiphanyCultMeshDaemonStatusEntry>(&cluster.daemon_id)? {
|
||||
daemon_statuses.push(loaded);
|
||||
}
|
||||
}
|
||||
|
|
@ -6677,6 +6677,7 @@ fn validate_eve_surface_state(surface: &EpiphanyCultMeshEveSurfaceStateEntry) ->
|
|||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub fn epiphany_cultmesh_daemon_statuses(
|
||||
last_heartbeat_utc: impl Into<String>,
|
||||
) -> Vec<EpiphanyCultMeshDaemonStatusEntry> {
|
||||
|
|
@ -6709,6 +6710,7 @@ pub fn epiphany_cultmesh_daemon_statuses(
|
|||
.collect()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub fn write_epiphany_cultmesh_daemon_statuses(
|
||||
store_path: impl AsRef<Path>,
|
||||
runtime_id: impl Into<String>,
|
||||
|
|
|
|||
|
|
@ -391,6 +391,7 @@ pub use cultmesh_integration::epiphany_cultmesh_continuity_contracts;
|
|||
pub use cultmesh_integration::epiphany_cultmesh_coordinator_run_receipt_from_summary_json;
|
||||
pub use cultmesh_integration::epiphany_cultmesh_daemon_poke_intent_from_status;
|
||||
pub use cultmesh_integration::epiphany_cultmesh_daemon_poke_receipt_for_intent;
|
||||
#[cfg(test)]
|
||||
pub use cultmesh_integration::epiphany_cultmesh_daemon_statuses;
|
||||
pub use cultmesh_integration::epiphany_cultmesh_daemon_tool_capabilities;
|
||||
#[cfg(test)]
|
||||
|
|
@ -493,6 +494,7 @@ pub use cultmesh_integration::write_epiphany_cultmesh_daemon_restart_policy;
|
|||
pub use cultmesh_integration::write_epiphany_cultmesh_daemon_scheduler_receipt;
|
||||
pub use cultmesh_integration::write_epiphany_cultmesh_daemon_service_lifecycle_receipt;
|
||||
pub use cultmesh_integration::write_epiphany_cultmesh_daemon_status;
|
||||
#[cfg(test)]
|
||||
pub use cultmesh_integration::write_epiphany_cultmesh_daemon_statuses;
|
||||
pub use cultmesh_integration::write_epiphany_cultmesh_daemon_tool_invocation_intent;
|
||||
pub use cultmesh_integration::write_epiphany_cultmesh_daemon_tool_invocation_receipt;
|
||||
|
|
|
|||
|
|
@ -114,6 +114,10 @@
|
|||
and Imagination consensus response construction are test-only. Production
|
||||
retains typed schemas and readers for provider-authored ingest, but no local
|
||||
shipped binary owns or writes those response documents.
|
||||
- Bulk seven-daemon `ready` construction/writing is also test-only. Production
|
||||
loaders enumerate topology keys without manufacturing status; only narrow
|
||||
single-daemon heartbeat/observation writers remain. Aggregate synthetic
|
||||
readiness exists solely inside the fixed Verse smoke body.
|
||||
- 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.
|
||||
|
|
|
|||
|
|
@ -36,6 +36,9 @@ The confirmed conceptual substitutions have been cut:
|
|||
- orphaned Bifrost/GitHub/Maintainer response and Imagination consensus
|
||||
constructors/writers are test-only. The aggregate smoke proves requests stay
|
||||
pending; production keeps readers for externally provider-authored documents.
|
||||
- bulk seven-daemon readiness construction/writing is test-only. Production
|
||||
loaders enumerate topology; the aggregate smoke owns a fixed-store local
|
||||
fixture helper, while real liveness remains single-daemon authored.
|
||||
|
||||
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.
|
||||
|
||||
|
|
|
|||
|
|
@ -56,3 +56,18 @@ constructors, six writers, their validators, and event-key helpers are compiled
|
|||
only under `cfg(test)`. Typed response schemas and read loaders remain in
|
||||
production for ingesting documents authored by external owning providers; no
|
||||
shipped Epiphany binary can construct or persist those responses.
|
||||
|
||||
## Bulk daemon readiness quarantine
|
||||
|
||||
After real heartbeat and provider ownership moved into
|
||||
`epiphany-cluster-daemon`, the library still exported
|
||||
`write_epiphany_cultmesh_daemon_statuses`, which stamped all seven declared
|
||||
daemons `ready` with one caller-provided timestamp. Its only shipped caller was
|
||||
the aggregate smoke; the full-context loader also reused the synthetic builder
|
||||
merely to enumerate keys.
|
||||
|
||||
Loaders now enumerate daemon IDs from declared topology. The bulk ready-state
|
||||
constructor and writer are test-only. The aggregate smoke constructs its
|
||||
fixture statuses locally behind `smoke_default_store`; the helper refuses every
|
||||
non-default store. Production exposes only the single-status writer used by the
|
||||
owning cluster daemon and Idunn observation paths.
|
||||
|
|
|
|||
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, and orphaned Bifrost/GitHub/Maintainer/Imagination response authority are cut. Only explicit seed commands and named path-confined fixtures initialize; provider response constructors/writers without local owning bodies are test-only while production retains typed readers for external ingest. 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, and bulk seven-daemon readiness authority are cut. Only explicit seed commands and named path-confined fixtures initialize; provider responses and aggregate readiness without local owning bodies are test-only while production retains typed readers and narrow owner writers. 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