From 0eb45777c569157ecd504b0aec6d1881215e2b6f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 20 Jun 2026 23:39:02 +0100 Subject: [PATCH] Expose Idunn deployment receipts in Gjallar --- ...any-repo-deployment-config-family-smoke.rs | 77 ++++++ epiphany-core/src/bin/epiphany-verse-query.rs | 249 ++++++++++++++++++ epiphany-core/src/cultmesh_integration.rs | 7 + notes/epiphany-repo-swarm-mvp-contract.md | 12 + notes/fresh-workspace-handoff.md | 1 + state/ledgers.msgpack | Bin 356266 -> 356606 bytes state/map.yaml | 5 +- 7 files changed, 349 insertions(+), 2 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-repo-deployment-config-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-deployment-config-family-smoke.rs index fa871c24..d17593b5 100644 --- a/epiphany-core/src/bin/epiphany-repo-deployment-config-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-deployment-config-family-smoke.rs @@ -291,6 +291,18 @@ fn run_smoke(args: Args) -> Result { ], &root, )?; + let gjallar = cargo_json( + &manifest, + "epiphany-verse-query", + &[ + "gjallar", + "--store", + path_str(&local_verse)?, + "--runtime-id", + "repo-deployment-config-family-smoke", + ], + &root, + )?; require_eq( &plan, @@ -461,6 +473,33 @@ fn run_smoke(args: Args) -> Result { &["idunnAftercareAuditReceipt", "schemaVersion"], "gamecult.idunn.deployment_aftercare_audit.v0", )?; + require_eq( + &gjallar, + &["latestIdunnDeploymentReceipt"], + idunn_deployment_receipt_id, + )?; + require_eq( + &gjallar, + &["latestIdunnAftercareAuditReceipt"], + idunn_aftercare_receipt_id, + )?; + require_u64(&gjallar, &["idunnDeploymentReceiptCount"], 2)?; + require_bool(&gjallar, &["privateStateExposed"], false)?; + require_array_contains( + &gjallar, + &["idunnDeploymentReceiptTuiRows"], + "IDUNN-DEPLOYMENT", + )?; + require_array_contains( + &gjallar, + &["idunnDeploymentReceiptTuiRows"], + idunn_deployment_receipt_id, + )?; + require_array_contains( + &gjallar, + &["idunnDeploymentReceiptTuiRows"], + idunn_aftercare_receipt_id, + )?; let summary = json!({ "schemaVersion": "epiphany.repo_deployment_config_family_smoke.v0", @@ -490,6 +529,9 @@ fn run_smoke(args: Args) -> Result { "idunnAftercareAuditReceiptSource": aftercare["idunnAftercareAuditReceipt"]["source"], "idunnDeploymentReceiptId": aftercare["idunnDeploymentReceipt"]["receiptId"], "idunnAftercareAuditReceiptId": aftercare["idunnAftercareAuditReceipt"]["receiptId"], + "gjallarIdunnDeploymentReceiptCount": gjallar["idunnDeploymentReceiptCount"], + "gjallarLatestIdunnDeploymentReceipt": gjallar["latestIdunnDeploymentReceipt"], + "gjallarLatestIdunnAftercareAuditReceipt": gjallar["latestIdunnAftercareAuditReceipt"], "deploymentTrigger": "git-push-observed-by-idunn", "deploymentOwner": "Idunn", "daemonOwnsExecution": true, @@ -612,6 +654,41 @@ fn require_bool(value: &Value, path: &[&str], expected: bool) -> Result<()> { } } +fn require_u64(value: &Value, path: &[&str], expected: u64) -> Result<()> { + let actual = value_at_path(value, path) + .and_then(Value::as_u64) + .ok_or_else(|| anyhow!("missing unsigned integer at {}", path.join(".")))?; + if actual == expected { + Ok(()) + } else { + Err(anyhow!( + "expected {} at {}, got {}", + expected, + path.join("."), + actual + )) + } +} + +fn require_array_contains(value: &Value, path: &[&str], needle: &str) -> Result<()> { + let array = value_at_path(value, path) + .and_then(Value::as_array) + .ok_or_else(|| anyhow!("missing array at {}", path.join(".")))?; + if array + .iter() + .filter_map(Value::as_str) + .any(|item| item.contains(needle)) + { + Ok(()) + } else { + Err(anyhow!( + "expected array at {} to contain {:?}", + path.join("."), + needle + )) + } +} + fn require_text(text: &str, needle: &str) -> Result<()> { if text.contains(needle) { Ok(()) diff --git a/epiphany-core/src/bin/epiphany-verse-query.rs b/epiphany-core/src/bin/epiphany-verse-query.rs index 277df26e..9f2d16d7 100644 --- a/epiphany-core/src/bin/epiphany-verse-query.rs +++ b/epiphany-core/src/bin/epiphany-verse-query.rs @@ -20,6 +20,8 @@ use epiphany_core::EpiphanyCultMeshDaemonServiceLifecycleReceiptEntry; use epiphany_core::EpiphanyCultMeshDaemonStatusEntry; use epiphany_core::EpiphanyCultMeshDaemonToolCapabilityEntry; use epiphany_core::EpiphanyCultMeshEveSurfaceStateEntry; +use epiphany_core::EpiphanyCultMeshIdunnAftercareAuditReceiptEntry; +use epiphany_core::EpiphanyCultMeshIdunnDeploymentReceiptEntry; use epiphany_core::EpiphanyCultMeshImaginationConsensusReceiptEntry; use epiphany_core::EpiphanyCultMeshOdinAdvertisementEntry; use epiphany_core::EpiphanyCultMeshRepoWorkMapEntry; @@ -67,6 +69,8 @@ use epiphany_core::load_latest_epiphany_cultmesh_daemon_tool_invocation_intent; use epiphany_core::load_latest_epiphany_cultmesh_daemon_tool_invocation_receipt; use epiphany_core::load_latest_epiphany_cultmesh_eve_connection_intent; use epiphany_core::load_latest_epiphany_cultmesh_eve_connection_receipt; +use epiphany_core::load_latest_epiphany_cultmesh_idunn_aftercare_audit_receipt; +use epiphany_core::load_latest_epiphany_cultmesh_idunn_deployment_receipt; use epiphany_core::load_latest_epiphany_cultmesh_imagination_consensus_receipt; use epiphany_core::load_latest_epiphany_cultmesh_repo_work_map_entry; use epiphany_core::load_latest_epiphany_cultmesh_repo_work_overview; @@ -119,6 +123,7 @@ const WRAPPER_BIFROST_PUBLICATION_COMMAND: &str = const WRAPPER_BIFROST_LEDGER_COMMAND: &str = "tools/epiphany_local_run.ps1 -Mode bifrost-ledger"; const WRAPPER_RECEIPT_DIRECTORY_COMMAND: &str = "tools/epiphany_local_run.ps1 -Mode receipt-directory"; +const DIRECT_IDUNN_DEPLOYMENT_AFTERCARE_AUDIT_COMMAND: &str = "epiphany-work deployment-aftercare-audit --workspace --local-verse-store --idunn-deployment-receipt-ref latest --aftercare-audit-receipt-ref latest"; const WRAPPER_SERVICE_TICK_COMMAND: &str = "tools/epiphany_local_run.ps1 -Mode service-tick"; const WRAPPER_SERVICE_POLICY_DIRECTORY_COMMAND: &str = "tools/epiphany_local_run.ps1 -Mode service-policy-directory"; @@ -762,6 +767,7 @@ fn run_cli() -> Result<()> { "restartPolicies": "epiphany-verse-query restart-policy-directory", "repoWorkOverview": "epiphany-work overview --workspace --item ", "repoWorkMap": "epiphany-verse-query gjallar", + "idunnDeploymentAftercareAudit": DIRECT_IDUNN_DEPLOYMENT_AFTERCARE_AUDIT_COMMAND, "pokeNonReady": "epiphany-verse-query poke-down-daemons", "gjallar": "epiphany-verse-query gjallar", "wrapperOverview": WRAPPER_OVERVIEW_COMMAND, @@ -4079,12 +4085,16 @@ struct SwarmOverviewReport { repo_work_overview_tui_rows: Vec, repo_work_public_proof_rows: Vec, repo_work_public_proof_tui_rows: Vec, + idunn_deployment_receipt_rows: Vec, + idunn_deployment_receipt_tui_rows: Vec, latest_repo_work_overview_id: Option, latest_repo_work_map_entry: Option, latest_repo_work_gate: Option, latest_repo_work_blocker: Option, latest_repo_work_next_safe_move: Option, latest_repo_work_public_proof: Option, + latest_idunn_deployment_receipt: Option, + latest_idunn_aftercare_audit_receipt: Option, topology_report: ClusterTopologyReport, daemon_report: DaemonLivenessReport, surface_report: EveSurfaceReport, @@ -4193,6 +4203,24 @@ struct RepoWorkPublicProofRow { private_state_exposed: bool, } +#[derive(Clone, Serialize)] +#[serde(rename_all = "camelCase")] +struct IdunnDeploymentReceiptRow { + receipt_family: String, + receipt_id: String, + status: String, + owner: String, + authority_gate: String, + watched_ref: String, + checked_ref: String, + source_commit: String, + result_ref: String, + deployment_receipt_id: String, + aftercare_audit_ref: String, + follow_up_command: String, + private_state_exposed: bool, +} + #[derive(Clone, Serialize)] #[serde(rename_all = "camelCase")] struct SwarmActionRow { @@ -4292,12 +4320,17 @@ struct SwarmOverviewOutput { repo_work_public_proof_count: usize, repo_work_public_proof_rows: Vec, repo_work_public_proof_tui_rows: Vec, + idunn_deployment_receipt_count: usize, + idunn_deployment_receipt_rows: Vec, + idunn_deployment_receipt_tui_rows: Vec, latest_repo_work_overview: Option, latest_repo_work_map_entry: Option, latest_repo_work_gate: Option, latest_repo_work_blocker: Option, latest_repo_work_next_safe_move: Option, latest_repo_work_public_proof: Option, + latest_idunn_deployment_receipt: Option, + latest_idunn_aftercare_audit_receipt: Option, policy_covered_count: usize, policy_enabled_count: usize, policy_disabled_count: usize, @@ -4376,12 +4409,17 @@ impl SwarmOverviewOutput { repo_work_public_proof_count: report.repo_work_public_proof_rows.len(), repo_work_public_proof_rows: report.repo_work_public_proof_rows, repo_work_public_proof_tui_rows: report.repo_work_public_proof_tui_rows, + idunn_deployment_receipt_count: report.idunn_deployment_receipt_rows.len(), + idunn_deployment_receipt_rows: report.idunn_deployment_receipt_rows, + idunn_deployment_receipt_tui_rows: report.idunn_deployment_receipt_tui_rows, latest_repo_work_overview: report.latest_repo_work_overview_id, latest_repo_work_map_entry: report.latest_repo_work_map_entry, latest_repo_work_gate: report.latest_repo_work_gate, latest_repo_work_blocker: report.latest_repo_work_blocker, latest_repo_work_next_safe_move: report.latest_repo_work_next_safe_move, latest_repo_work_public_proof: report.latest_repo_work_public_proof, + latest_idunn_deployment_receipt: report.latest_idunn_deployment_receipt, + latest_idunn_aftercare_audit_receipt: report.latest_idunn_aftercare_audit_receipt, policy_covered_count: report.policy_report.covered_count, policy_enabled_count: report.policy_report.enabled_count, policy_disabled_count: report.policy_report.disabled_count, @@ -4452,12 +4490,17 @@ struct SwarmTriageOutput { repo_work_public_proof_count: usize, repo_work_public_proof_rows: Vec, repo_work_public_proof_tui_rows: Vec, + idunn_deployment_receipt_count: usize, + idunn_deployment_receipt_rows: Vec, + idunn_deployment_receipt_tui_rows: Vec, latest_repo_work_overview: Option, latest_repo_work_map_entry: Option, latest_repo_work_gate: Option, latest_repo_work_blocker: Option, latest_repo_work_next_safe_move: Option, latest_repo_work_public_proof: Option, + latest_idunn_deployment_receipt: Option, + latest_idunn_aftercare_audit_receipt: Option, poked_daemon_count: usize, pokes: Vec, commands: serde_json::Value, @@ -4531,12 +4574,17 @@ impl SwarmTriageOutput { repo_work_public_proof_count: report.repo_work_public_proof_rows.len(), repo_work_public_proof_rows: report.repo_work_public_proof_rows, repo_work_public_proof_tui_rows: report.repo_work_public_proof_tui_rows, + idunn_deployment_receipt_count: report.idunn_deployment_receipt_rows.len(), + idunn_deployment_receipt_rows: report.idunn_deployment_receipt_rows, + idunn_deployment_receipt_tui_rows: report.idunn_deployment_receipt_tui_rows, latest_repo_work_overview: report.latest_repo_work_overview_id, latest_repo_work_map_entry: report.latest_repo_work_map_entry, latest_repo_work_gate: report.latest_repo_work_gate, latest_repo_work_blocker: report.latest_repo_work_blocker, latest_repo_work_next_safe_move: report.latest_repo_work_next_safe_move, latest_repo_work_public_proof: report.latest_repo_work_public_proof, + latest_idunn_deployment_receipt: report.latest_idunn_deployment_receipt, + latest_idunn_aftercare_audit_receipt: report.latest_idunn_aftercare_audit_receipt, poked_daemon_count, pokes, commands: json!({ @@ -4552,6 +4600,7 @@ impl SwarmTriageOutput { "restartPolicies": "epiphany-verse-query restart-policy-directory", "repoWorkOverview": "epiphany-work overview --workspace --item ", "repoWorkMap": "epiphany-verse-query gjallar", + "idunnDeploymentAftercareAudit": DIRECT_IDUNN_DEPLOYMENT_AFTERCARE_AUDIT_COMMAND, "wrapperRestartPolicies": WRAPPER_SERVICE_POLICY_DIRECTORY_COMMAND, "bifrostLedger": "epiphany-verse-query bifrost-ledger", "wrapperBifrostLedger": WRAPPER_BIFROST_LEDGER_COMMAND, @@ -5369,6 +5418,71 @@ fn repo_work_public_proof_tui_row(row: &RepoWorkPublicProofRow) -> String { ) } +fn idunn_deployment_receipt_rows( + deployment_receipt: Option<&EpiphanyCultMeshIdunnDeploymentReceiptEntry>, + aftercare_receipt: Option<&EpiphanyCultMeshIdunnAftercareAuditReceiptEntry>, +) -> (Vec, Vec) { + let mut rows = Vec::new(); + if let Some(receipt) = deployment_receipt { + rows.push(IdunnDeploymentReceiptRow { + receipt_family: "deployment".to_string(), + receipt_id: receipt.receipt_id.clone(), + status: receipt.status.clone(), + owner: "Idunn".to_string(), + authority_gate: "gamecult.idunn.deployment".to_string(), + watched_ref: receipt.watched_ref.clone(), + checked_ref: "none".to_string(), + source_commit: receipt.source_commit.clone(), + result_ref: receipt.result_ref.clone(), + deployment_receipt_id: receipt.receipt_id.clone(), + aftercare_audit_ref: "none".to_string(), + follow_up_command: DIRECT_IDUNN_DEPLOYMENT_AFTERCARE_AUDIT_COMMAND.to_string(), + private_state_exposed: receipt.private_state_exposed, + }); + } + if let Some(receipt) = aftercare_receipt { + rows.push(IdunnDeploymentReceiptRow { + receipt_family: "aftercare-audit".to_string(), + receipt_id: receipt.receipt_id.clone(), + status: receipt.status.clone(), + owner: "Idunn".to_string(), + authority_gate: "gamecult.idunn.deployment_aftercare".to_string(), + watched_ref: "none".to_string(), + checked_ref: receipt.checked_ref.clone(), + source_commit: "none".to_string(), + result_ref: receipt.audit_ref.clone(), + deployment_receipt_id: receipt.deployment_receipt_id.clone(), + aftercare_audit_ref: receipt.audit_ref.clone(), + follow_up_command: DIRECT_IDUNN_DEPLOYMENT_AFTERCARE_AUDIT_COMMAND.to_string(), + private_state_exposed: receipt.private_state_exposed, + }); + } + let tui_rows = rows + .iter() + .map(idunn_deployment_receipt_tui_row) + .collect::>(); + (rows, tui_rows) +} + +fn idunn_deployment_receipt_tui_row(row: &IdunnDeploymentReceiptRow) -> String { + format!( + "IDUNN-DEPLOYMENT | family={} | receipt={} | status={} | watchedRef={} | checkedRef={} | sourceCommit={} | result={} | deploymentReceipt={} | aftercare={} | owner={} | authority={} | command={} | private={}", + row.receipt_family, + row.receipt_id, + row.status, + row.watched_ref, + row.checked_ref, + short_commit(&row.source_commit), + row.result_ref, + row.deployment_receipt_id, + row.aftercare_audit_ref, + row.owner, + row.authority_gate, + row.follow_up_command, + row.private_state_exposed + ) +} + fn short_commit(commit_sha: &str) -> String { commit_sha.chars().take(12).collect::() } @@ -5912,6 +6026,15 @@ fn load_swarm_overview_report(args: &Args) -> Result { let (latest_repo_work_map_entry, repo_work_map_entries) = load_repo_work_map_entries(args)?; let (latest_repo_work_public_proof, repo_work_public_proofs) = load_repo_work_public_proofs(args)?; + let latest_idunn_deployment_receipt = load_latest_epiphany_cultmesh_idunn_deployment_receipt( + &args.store, + args.runtime_id.clone(), + )?; + let latest_idunn_aftercare_audit_receipt = + load_latest_epiphany_cultmesh_idunn_aftercare_audit_receipt( + &args.store, + args.runtime_id.clone(), + )?; let directory = load_epiphany_cultmesh_eve_surface_directory(&args.store, args.runtime_id.clone())?; let surface_report = eve_surface_report(&directory, &repo_work_overviews); @@ -6133,6 +6256,11 @@ fn load_swarm_overview_report(args: &Args) -> Result { repo_work_map_branch_lens_rows(&repo_work_map_entries); let (repo_work_public_proof_rows, repo_work_public_proof_tui_rows) = repo_work_public_proof_rows(&repo_work_public_proofs); + let (idunn_deployment_receipt_rows, idunn_deployment_receipt_tui_rows) = + idunn_deployment_receipt_rows( + latest_idunn_deployment_receipt.as_ref(), + latest_idunn_aftercare_audit_receipt.as_ref(), + ); let (swarm_action_rows, swarm_action_tui_rows) = swarm_action_rows( &liveness_status, &tool_host_attention_rows, @@ -6167,6 +6295,9 @@ fn load_swarm_overview_report(args: &Args) -> Result { || repo_work_public_proofs .iter() .any(|proof| proof.private_state_exposed) + || idunn_deployment_receipt_rows + .iter() + .any(|row| row.private_state_exposed) || service_execution_private_state_exposed || service_lifecycle_rows .iter() @@ -6189,6 +6320,12 @@ fn load_swarm_overview_report(args: &Args) -> Result { let latest_repo_work_public_proof = latest_repo_work_public_proof .as_ref() .map(|proof| proof.public_proof_id.clone()); + let latest_idunn_deployment_receipt = latest_idunn_deployment_receipt + .as_ref() + .map(|receipt| receipt.receipt_id.clone()); + let latest_idunn_aftercare_audit_receipt = latest_idunn_aftercare_audit_receipt + .as_ref() + .map(|receipt| receipt.receipt_id.clone()); Ok(SwarmOverviewReport { status, liveness_status, @@ -6223,12 +6360,16 @@ fn load_swarm_overview_report(args: &Args) -> Result { repo_work_overview_tui_rows, repo_work_public_proof_rows, repo_work_public_proof_tui_rows, + idunn_deployment_receipt_rows, + idunn_deployment_receipt_tui_rows, latest_repo_work_overview_id, latest_repo_work_map_entry, latest_repo_work_gate, latest_repo_work_blocker, latest_repo_work_next_safe_move, latest_repo_work_public_proof, + latest_idunn_deployment_receipt, + latest_idunn_aftercare_audit_receipt, topology_report, daemon_report, surface_report, @@ -6660,6 +6801,114 @@ fn receipt_directory_report( private_state_exposed: false, }, ); + push_receipt_directory_row( + &mut rows, + &mut tui_rows, + ReceiptDirectoryRow { + family: "idunn-deployment".to_string(), + owner: "Idunn".to_string(), + document_kind: "gamecult.idunn.deployment_receipt.v0".to_string(), + latest_id: context + .latest_idunn_deployment_receipt + .as_ref() + .map(|receipt| receipt.receipt_id.clone()) + .unwrap_or_else(|| "missing".to_string()), + status: context + .latest_idunn_deployment_receipt + .as_ref() + .map(|receipt| receipt.status.clone()) + .unwrap_or_else(|| "missing".to_string()), + route: context + .latest_idunn_deployment_receipt + .as_ref() + .map(|receipt| receipt.watched_ref.clone()) + .unwrap_or_else(|| "none".to_string()), + service_id: "repo-deployment".to_string(), + service_route: context + .latest_idunn_deployment_receipt + .as_ref() + .map(|receipt| receipt.result_ref.clone()) + .unwrap_or_else(|| "none".to_string()), + follow_up_command: DIRECT_IDUNN_DEPLOYMENT_AFTERCARE_AUDIT_COMMAND.to_string(), + artifact_ref: context + .latest_idunn_deployment_receipt + .as_ref() + .map(|receipt| receipt.result_ref.clone()) + .unwrap_or_else(|| "none".to_string()), + artifact_status: context + .latest_idunn_deployment_receipt + .as_ref() + .map(|receipt| { + if receipt.result_ref == "none" { + "none".to_string() + } else { + "external-ref".to_string() + } + }) + .unwrap_or_else(|| "none".to_string()), + artifact_sha256: "none".to_string(), + present: context.latest_idunn_deployment_receipt.is_some(), + private_state_exposed: context + .latest_idunn_deployment_receipt + .as_ref() + .map(|receipt| receipt.private_state_exposed) + .unwrap_or(false), + }, + ); + push_receipt_directory_row( + &mut rows, + &mut tui_rows, + ReceiptDirectoryRow { + family: "idunn-aftercare".to_string(), + owner: "Idunn".to_string(), + document_kind: "gamecult.idunn.deployment_aftercare_audit.v0".to_string(), + latest_id: context + .latest_idunn_aftercare_audit_receipt + .as_ref() + .map(|receipt| receipt.receipt_id.clone()) + .unwrap_or_else(|| "missing".to_string()), + status: context + .latest_idunn_aftercare_audit_receipt + .as_ref() + .map(|receipt| receipt.status.clone()) + .unwrap_or_else(|| "missing".to_string()), + route: context + .latest_idunn_aftercare_audit_receipt + .as_ref() + .map(|receipt| receipt.checked_ref.clone()) + .unwrap_or_else(|| "none".to_string()), + service_id: "repo-deployment".to_string(), + service_route: context + .latest_idunn_aftercare_audit_receipt + .as_ref() + .map(|receipt| receipt.audit_ref.clone()) + .unwrap_or_else(|| "none".to_string()), + follow_up_command: DIRECT_IDUNN_DEPLOYMENT_AFTERCARE_AUDIT_COMMAND.to_string(), + artifact_ref: context + .latest_idunn_aftercare_audit_receipt + .as_ref() + .map(|receipt| receipt.audit_ref.clone()) + .unwrap_or_else(|| "none".to_string()), + artifact_status: context + .latest_idunn_aftercare_audit_receipt + .as_ref() + .map(|receipt| { + if receipt.audit_ref == "none" { + "none".to_string() + } else { + "external-ref".to_string() + } + }) + .unwrap_or_else(|| "none".to_string()), + artifact_sha256: "none".to_string(), + present: context.latest_idunn_aftercare_audit_receipt.is_some(), + private_state_exposed: context + .latest_idunn_aftercare_audit_receipt + .as_ref() + .map(|receipt| receipt.private_state_exposed) + .unwrap_or(false), + }, + ); for row in service_lifecycle_receipt_directory_rows( lifecycle_receipts, context.latest_daemon_service_lifecycle_receipt.as_ref(), diff --git a/epiphany-core/src/cultmesh_integration.rs b/epiphany-core/src/cultmesh_integration.rs index 196b3248..8b1ee818 100644 --- a/epiphany-core/src/cultmesh_integration.rs +++ b/epiphany-core/src/cultmesh_integration.rs @@ -2190,6 +2190,9 @@ pub struct EpiphanyLocalVerseContext { pub latest_daemon_scheduler_receipt: Option, pub latest_daemon_service_lifecycle_receipt: Option, + pub latest_idunn_deployment_receipt: Option, + pub latest_idunn_aftercare_audit_receipt: + Option, pub swarm_brake: Option, pub latest_persona_speech_audit: Option, pub daemon_tool_capabilities: Vec, @@ -5055,6 +5058,10 @@ pub fn query_epiphany_local_verse_context( .get(EPIPHANY_CULTMESH_DAEMON_SCHEDULER_RECEIPT_LATEST_KEY)?, latest_daemon_service_lifecycle_receipt: node .get(EPIPHANY_CULTMESH_DAEMON_SERVICE_LIFECYCLE_RECEIPT_LATEST_KEY)?, + latest_idunn_deployment_receipt: node + .get(EPIPHANY_CULTMESH_IDUNN_DEPLOYMENT_RECEIPT_LATEST_KEY)?, + latest_idunn_aftercare_audit_receipt: node + .get(EPIPHANY_CULTMESH_IDUNN_AFTERCARE_AUDIT_RECEIPT_LATEST_KEY)?, swarm_brake: node.get(EPIPHANY_CULTMESH_SWARM_BRAKE_KEY)?, latest_persona_speech_audit: node .get(EPIPHANY_CULTMESH_PERSONA_SPEECH_AUDIT_LATEST_KEY)?, diff --git a/notes/epiphany-repo-swarm-mvp-contract.md b/notes/epiphany-repo-swarm-mvp-contract.md index e1815a12..82782644 100644 --- a/notes/epiphany-repo-swarm-mvp-contract.md +++ b/notes/epiphany-repo-swarm-mvp-contract.md @@ -822,6 +822,18 @@ CultMesh receipt-ref ingestion path with `idunnAftercareAuditReceiptSource=cultmesh`, `deploymentComplete=true`, and `privateStateExposed=false`. +Gjallar/Odin now expose those Idunn proof coordinates as sight, not authority. +`epiphany-verse-query gjallar`, `swarm-overview`, `swarm-triage`, and +`receipt-directory` publish latest Idunn deployment and aftercare receipts as +compact `idunnDeploymentReceiptRows` / `IDUNN-DEPLOYMENT` rows with owner +`Idunn`, watched or checked ref, result ref, deployment/aftercare ids, a +follow-up readback command, and `privateStateExposed=false`. Smoke +`.epiphany-smoke\repo-deployment-config-family-20260620-223203` proved +`gjallarIdunnDeploymentReceiptCount=2` with latest deployment receipt +`fixture-idunn-deployment` and latest aftercare receipt +`fixture-idunn-aftercare` while keeping deployment execution behind explicit +operator `git push` and Idunn's watcher. + ### Landed Work Run Gate The sixth front door exists as native Rust: diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index a9e4647c..e1852ebb 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -129,6 +129,7 @@ remembers doctrine; the branch remembers the blade. - 2026-06-20: `epiphany-work deployment-config-audit` is live as the non-mutating Idunn handoff readback for repo deployment config. It reads `.epiphany/deployment.toml`, writes `epiphany.repo_deployment_config_audit.v0`, reports `ready-for-idunn-review` only when the disabled git-push Idunn trigger, CultMesh intent/receipt/aftercare contracts, required receipts, and authority seals are present, and always keeps execution/deployment/SSH/git-push/service/Hands/publication/merge/cross-body authority false. Smoke `.epiphany-smoke\repo-deployment-config-family-20260620-213042` proved the audit beside the `repo.deployment_config` close path with `daemonOwnsExecution=true`, `readyForIdunnReview=true`, and `privateStateExposed=false`. - 2026-06-20: `epiphany-work deployment-execution-runbook` is live as the explicit operator-owned git-push handoff for Idunn deployment. It requires the deployment config audit to pass, writes `.epiphany/work/idunn-deployment/idunn-git-push-runbook.ps1`, emits `epiphany.repo_deployment_execution_runbook.v0`, reports `ready-for-operator-git-push`, includes the exact `git push origin HEAD:refs/heads/main` route, runbook SHA-256, and required Idunn deployment/aftercare receipt contracts, and marks `requiresExplicitOperatorAuthority=true` plus `mutatesRemoteWhenRun=true` while keeping execution/deployment/SSH/git-push/service/Hands/publication/merge/cross-body authority false for the repo agent. Smoke `.epiphany-smoke\repo-deployment-config-family-20260620-214109` proved the runbook with `deploymentExecutionRunbookStatus=ready-for-operator-git-push`, SHA-256 `57560eda912b6e5c15f97acf53500534bb3bcf739098f329add3d88e5a9cd1d3`, and `privateStateExposed=false`. - 2026-06-20: `epiphany-work deployment-aftercare-audit` is live as the post-operator Idunn receipt ingestion mouth, and now reads sealed Idunn receipt projections from repo-local CultMesh refs. It reads the deployment runbook receipt plus `gamecult.idunn.deployment_receipt.v0` and `gamecult.idunn.deployment_aftercare_audit.v0` via `--local-verse-store`, `--idunn-deployment-receipt-ref`, and `--aftercare-audit-receipt-ref`, emits `epiphany.repo_deployment_aftercare_audit.v0`, reports `complete` only when both Idunn receipts have successful statuses and private-state seals, and remains non-mutating with deployment/SSH/git-push/service/Hands/publication/merge authority false. The older explicit receipt-file flags remain compatibility reliquaries. Smoke `.epiphany-smoke\repo-deployment-config-family-20260620-221205` proved the CultMesh ref path with `idunnDeploymentReceiptSource=cultmesh`, `idunnAftercareAuditReceiptSource=cultmesh`, `deploymentAftercareAuditStatus=complete`, `deploymentComplete=true`, and `privateStateExposed=false`. +- 2026-06-20: Gjallar/Odin sight now exposes Idunn deployment proof coordinates without taking over deployment. `EpiphanyLocalVerseContext`, `receipt-directory`, `swarm-overview`, `swarm-triage`, and `gjallar` include compact `idunnDeploymentReceiptRows` / `IDUNN-DEPLOYMENT` rows for latest `gamecult.idunn.deployment_receipt.v0` and `gamecult.idunn.deployment_aftercare_audit.v0`, carrying owner `Idunn`, watched/checked refs, result refs, deployment/aftercare ids, follow-up readback command, and private-state seal. Smoke `.epiphany-smoke\repo-deployment-config-family-20260620-223203` proved the CultMesh aftercare path plus Gjallar readback with `gjallarIdunnDeploymentReceiptCount=2`, latest deployment receipt `fixture-idunn-deployment`, latest aftercare receipt `fixture-idunn-aftercare`, and `privateStateExposed=false`. - 2026-06-20: Deeper model-authored closure review is now live. `epiphany-work close` accepts `--closure-model-verdict passed|failed|needs-work|blocked`, `--closure-model-finding`, and `--require-closure-model-verdict`; the close review embeds `epiphany.repo_work_model_closure_review.v0` under `modelingReview.closureReview`, records reviewed inputs and gate enforcement, and Soul refuses closure when a supplied or required model verdict does not pass. Focused smoke `.epiphany-smoke\closure-model-gate-20260620-135103` created a disposable repo, ran two `repo.status_section` items through public front doors, closed one with required model verdict `passed`, and blocked one with `needs-work` while `familyAssertions.status=passed`, `pathScopeMatched=true`, and `privateStateExposed=false`. Current remaining repo-swarm MVP organs are deeper interpreter/adoption semantics, more useful repo-owned configuration/action families, and Idunn-owned queue-run service lifecycle under explicit operator authority. - 2026-06-20: Mind adoption/interpreter depth now has a concrete interpretation packet. `epiphany-work adopt` writes `epiphany.repo_work_mind_adoption_decision.v0` before the main adoption receipt, embeds `epiphany.repo_work_mind_interpretation.v0` with input summary, safe-family recognition, requested-path classification, allowed branch-local Hands transition, and forbidden durable-state/publication/service/private transitions, then records Self presentation, Mind evidence review, safe-family requirement, branch-local scope, Bifrost publication gate, Soul closure requirement, and no Hands/durable-state/publication/merge/service/cross-body/private authority inside the Mind decision; the main adoption receipt cites that decision before granting branch-local Hands authority. Focused smoke `.epiphany-smoke\repo-planning-facets-20260620-175503` proves model-authored planning facets survive into Imagination, plan derivation, Mind interpretation, Mind decision, and adoption, while close still passes Soul/family/path checks with `privateStateExposed=false`. Current remaining repo-swarm MVP organs are deeper interpreter semantics beyond the first Mind interpretation packet, more useful repo-owned configuration/action families, and Idunn-owned queue-run service lifecycle under explicit operator authority. - 2026-06-20: `repo-manifest` is now the next non-planning safe family. `epiphany-work derive-plan --action-family repo-manifest` lowers accepted pressure into a structured `epiphany.toml` Body manifest with safe family `repo.body_manifest`, body domain, private/local/public Verse ids, Eve surface id, receipt-required capability hints, arbitrary shell sealed false, and private-state seals. Soul closure assertions now inspect the committed manifest for schema, safe family, summary, body domain, Verse ids, Eve surface, receipt requirement, no arbitrary shell, and private-state seals. Focused smoke `.epiphany-smoke\repo-manifest-family-20260620-141552` ran a disposable repo through init -> online -> accept -> repo-manifest derive-plan -> tick run/adopt/execute/close; Hands committed only `epiphany.toml`, Soul passed with `pathScopeMatched=true`, `familyAssertions.status=passed`, and `privateStateExposed=false`. Current remaining repo-swarm MVP organs are deeper interpreter/adoption semantics, additional useful repo-owned config/action families, and Idunn-owned queue-run service lifecycle under explicit operator authority. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 49141bd40410e61eba9fcba67d1b9001504e0ac3..be26c7d97b5a4be3ff5c043c6679f9f7d839308a 100644 GIT binary patch delta 287 zcmXAj!AiqG6h)nAR&EUlx_DC2RWwX!gt~1hf~E=;)ZLIw+tFlRoS8Ou?ZOYxn5}D9 zf}r>V{)7whN5ly(?tO6K9NzP{_xt0$tdiw$uhWh$J{Mg4dTo(wLe6e0=dN;yO>-A* zmfkDJ_41X64;s+O4