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 49141bd4..be26c7d9 100644 Binary files a/state/ledgers.msgpack and b/state/ledgers.msgpack differ diff --git a/state/map.yaml b/state/map.yaml index 6abf264a..bb778347 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -89,6 +89,7 @@ active_subgoals: - Preserve the Ghostlight-derived heartbeat initiative seam: every lane, including coordinator/Self and Persona, has a organ-state record and competes for heartbeat slots through readiness/reaction timing; initiative heat can raise or cool global, group, arena, role, and agent tempo through typed heartbeat policy; active thinking freezes initiative until completion, so heat never queues a lane already mid-turn; idle winners ruminate instead of inventing project work, and sleep windows distill the accumulated thought pressure into reviewed self-memory or doctrine. - Use `notes/epiphany-swarm-readiness-plan.md` as the live-fire direction gate. The local run path is a compass, not launch clearance: before unattended swarm operation, Epiphany needs typed pause/brake enforcement, one initiative scheduler, completion-gated cooldown, stale active-turn recovery receipts, parent-side Persona speech eligibility, memory lifecycle operations, and CultNet-first operator snapshots/intents/receipts. The local Verse brake document exists, `epiphany-verse-query swarm-brake` can engage/release it, `tools/epiphany_local_run.ps1` refuses live `plan`/`run`/`mvp` modes when the brake is engaged while leaving `status` readable, `epiphany-mvp-coordinator` checks the local Verse brake before app-server startup, and `epiphany-heartbeat-store` guards tick/pump/heat/queue-mention/routine when given `--local-verse-store`. Daemon liveness is now a typed local Verse authority: `epiphany-verse-query daemon-status` writes one daemon status without repainting the table, local Verse seeding preserves existing daemon statuses and swarm brakes, `invoke-tool` refuses when the host daemon is not ready or lacks `submitTypedToolIntent`, and both daemon tool invocation and lifecycle poke fail closed under an engaged matching brake. `epiphany-daemon-supervisor policy` writes durable per-daemon restart policy with command/args/cwd/cooldown/backoff/attempt state plus reconcile cadence and stale-heartbeat threshold; `epiphany-daemon-supervisor reconcile` loads that policy when no override command is supplied, refuses under a matching lifecycle brake, refuses during cooldown/backoff, writes daemon poke intent/receipt, updates daemon status, and updates policy attempt state; `epiphany-daemon-supervisor tick` is an explicit scheduler pulse that scans durable policies, records ready/noop pulses, skips before the configured reconcile interval, marks stale heartbeat status degraded, routes restarts through the same brake/cooldown/poke receipt path, and writes a latest `epiphany.cultmesh.daemon_scheduler_receipt.v0`; `epiphany-daemon-supervisor serve` runs that same pulse on a configurable cadence with bounded `--max-iterations` proof mode or unbounded service mode. `epiphany-daemon-supervisor service-plan`/`install-service` now writes a planned `epiphany.cultmesh.daemon_service_lifecycle_receipt.v0` for the `serve` command, while `service-launch`/`start-service` spawns that `serve` loop through the current executable or `--service-command`, can `--wait-child` for bounded proof, and records command/args/cwd, scheduler id, daemon selector, pid/exit/status, artifact ref, and private-state guard. `service-runbook`, `windows-service-install`/`service-install-plan`, `windows-service-status`, `windows-service-reconcile`, `windows-service-execution-readiness`, and `windows-service-start`/`stop` now record service lifecycle receipts through the same local Verse; the read-only status path has been proved against the real Windows `EventLog` service with receipt `daemon-service-lifecycle-receipt-windows-eventlog-proof-windows-service-status`, status `running`, exit code `0`, and `privateStateExposed=false`; the read-only service-policy reconciliation path has been proved for missing service, real-service drift against `EventLog`, lifecycle-brake refusal, and wrapper/local-Verse receipt `daemon-service-lifecycle-receipt-windows-eventlog-reconcile-proof-windows-service-reconcile`; execution readiness has been proved as a non-mutating `not-elevated` receipt through direct and wrapper paths; start/stop now produce non-mutating `start-planned`/`stop-planned` receipts unless `--execute-control`/`--execute-service-control` is passed, and wrapper `service-start-plan`/`service-stop-plan` proves those receipts against `EventLog`; explicit install/control execution now refuses as `execution-refused-not-elevated` with `executed=false` when the shell lacks Windows administrator authority, and wrapper `service-install-execute`, `service-start-execute`, and `service-stop-execute` prove those refusal receipts without mutation. Service lifecycle actions check the local Verse swarm brake before process launch, artifact writes, service-manager queries, service-policy reconciliation, execution-readiness checks, control planning, elevation-gated execution, or start/stop execution. The local wrapper builds/checks this binary. - Use `notes/epiphany-repo-swarm-mvp-contract.md` as the repo-swarm autonomy authority map. Autonomous branch-local work inside an Epiphany-owned repo Body is in scope and desired; the safety boundary is typed authority, branch containment, interruption, receipts, private-state sealing, and Bifrost-gated publication/merge/escalation, not asking a human before every local edit. Current safe-family cargo includes repo manifest, tool capability manifest, daemon-hosted tool request cargo, Eve/CultUI surface contract, repo collaboration policy, collaboration topics, consensus/objective/adoption/scheduling/work-order/verification/publication/sync/review/PR/credit/artifact/metrics/doctrine-update/secret-policy/deployment requests, repo deployment config, action-item receipts, Mind adoption interpretation/decision receipts, explicit Mind safe-family refusal proof `.epiphany-smoke\repo-mind-safe-family-guard-20260620-194425`, explicit Mind requested-path/plan changed-path refusal proof `.epiphany-smoke\repo-mind-path-guard-20260620-194239`, overview/public-proof/Gjallar/Eve readbacks, typed swarm-run stop classification, Idunn non-mutating queue-run lifecycle receipts, and fresh-repo upstream-main proof. Latest deployment proof `.epiphany-smoke\repo-deployment-config-family-20260620-221205` shows `repo.deployment_config` closes through Soul, `deployment-config-audit` reports `ready-for-idunn-review`, `deployment-execution-runbook` reports `ready-for-operator-git-push`, and `deployment-aftercare-audit` ingests local Verse/CultMesh Idunn deployment/aftercare receipt refs with source `cultmesh`, status `complete`, `deploymentComplete=true`, `daemonOwnsExecution=true`, no repo-agent execution/deployment/SSH/git-push/service/Hands/publication/merge/cross-body authority, and `privateStateExposed=false`; explicit Idunn receipt files remain only compatibility reliquaries. Latest deployment request proof `.epiphany-smoke\repo-deployment-request-family-20260620-195605` shows `repo.deployment_request` closes through Soul while requesting reviewed git-push-observed-by-Idunn deployment with script/host/secret/rollback/aftercare requirements and no deployment/SSH/git-push/service authority. Latest security cargo proof `.epiphany-smoke\repo-secret-policy-request-family-20260620-193046` shows `repo.secret_policy_request` closes through Soul while requesting reviewed secret/write/export/deployment policy without exposing secrets or granting write/deployment/publication authority. Governance proof `.epiphany-smoke\repo-doctrine-update-request-family-20260620-192140` shows `repo.doctrine_update_request` closes through Soul while requesting reviewed `AGENTS.md` doctrine work without mutating doctrine or granting Hands/service/publication authority. Swarm-run stop proofs now include `.epiphany-smoke\fresh-repo-mvp-20260620-180024` for `iteration-limit` / Self / `self.scheduler-iteration-limit` with upstream-main sync and public-proof export, plus `.epiphany-smoke\swarm-stop-classification-20260620-184717` for `queue-empty` / Gjallar / `repo.work.overview`, `dry-run-preview` / Self / `ready-to-run`, `authority-gated` / Bifrost / `awaiting-publication`, and `authority-gated` / Bifrost/GitHub / `awaiting-upstream-sync`; all stop packets are non-mutating, non-elevated, and `privateStateExposed=false`. Native proof `.epiphany-smoke\repo-work-service-lifecycle-20260620-185853` now proves Idunn-owned non-mutating repo-work queue-run service plan/runbook receipts for exact service id `epiphany-repo-work-queue-runner`, receipt-directory readback, runbook SHA-256 `f2ec67c4f8243a3ebc2f9e915b6b9f5ae2ac2d99d2cdb86905b54667adc456f8`, `hostedBody=repo-work`, no service-manager mutation, no launch, no elevation, and `privateStateExposed=false`. + - Gjallar/Odin sight now exposes Idunn deployment receipt refs without taking Idunn's execution throne. `EpiphanyLocalVerseContext`, `receipt-directory`, `swarm-overview`, `swarm-triage`, and `gjallar` surface latest `gamecult.idunn.deployment_receipt.v0` and `gamecult.idunn.deployment_aftercare_audit.v0` as compact `idunnDeploymentReceiptRows` / `IDUNN-DEPLOYMENT` rows with owner `Idunn`, watched/checked refs, source/result refs, aftercare ids, follow-up readback command, and `privateStateExposed=false`. Smoke `.epiphany-smoke\repo-deployment-config-family-20260620-223203` proves the aftercare audit still ingests CultMesh refs and Gjallar reports `gjallarIdunnDeploymentReceiptCount=2`, latest deployment receipt `fixture-idunn-deployment`, latest aftercare receipt `fixture-idunn-aftercare`, and no private-state exposure. This is citeable discovery only; deployment still happens by explicit operator `git push` observed by Idunn. - Mind-admitted repo-work map facts now leave local Verse sight. Successful `epiphany-work close` first admits `.epiphany/state/repo-work-map.msgpack` as `epiphany.repo_work_map_store.v0`, then mirrors the accepted item fact into local Verse as `epiphany.cultmesh.repo_work_map_entry.v0` under `gamecult-local/repo-work-map/latest`. `epiphany-verse-query gjallar` exposes `repoWorkMapRows`, `repoWorkMapTuiRows`, and `latestRepoWorkMapEntry` with safe family, changed-path count, Soul verdict id, Mind review/commit ids, Bifrost gate, source map store ref, and `privateStateExposed=false`; proof `.epiphany-smoke\repo-close-mind-adoption-guard-20260620-203717` plus direct Gjallar readback showed one compact `REPO-WORK-MAP` row after counterfeit Mind adoption was refused and the real close passed. This is sight only; Gjallar still does not schedule, publish, merge, deploy, keep daemons alive, or open private state. - Gjallar now derives the first repo-work map semantic lens from Mind-admitted local Verse map rows. `repoWorkMapFamilyLensRows` / `REPO-WORK-MAP-LENS` group accepted repo-work consequences by safe action family, with item count, changed-path count, latest item/commit/Mind commit, Bifrost gate, and `privateStateExposed=false`; proof `.epiphany-smoke\repo-close-mind-adoption-guard-20260620-205055` reran the counterfeit-adoption guard and passed with `gjallarRepoWorkMapFamilyLensCount=1`. This is aggregate sight only, not scheduling, publication, merge, deployment, service lifecycle, or Mind admission authority. - Gjallar now derives a changed-path repo-work map lens from the same Mind-admitted local Verse rows. `repoWorkMapPathLensRows` / `REPO-WORK-MAP-PATH` group accepted consequences by changed repo path, with item count, safe-family list, latest item/commit/Mind commit, Bifrost gate, and `privateStateExposed=false`; proof `.epiphany-smoke\repo-close-mind-adoption-guard-20260620-205740` passed with `gjallarRepoWorkMapPathLensCount=1` beside the family lens. This lets agents see which Body paths have accepted work without opening private receipts or granting Gjallar actuation authority. @@ -638,5 +639,5 @@ current_status: - `tools/epiphany_local_run.ps1 -Mode swarm-online-runbook` now emits an explicit Idunn preflight summary before the operator elevation boundary. Its JSON and one-line summary report `preflightStatus`, child artifact present/hash-verified/mismatch/missing counts, aggregate service execution failed/missing check counts, child preflight rows with expected/actual SHA-256s, and private-state exposure. Live proof `local-20260619-025627-410-9724e2f6` generated the non-mutating parent artifact with `preflightStatus=ready-for-elevated-operator`, two child runbooks present, two hashes verified, zero mismatches, zero missing artifacts, eleven failed sealed service checks, zero missing checks, explicit aftercare audits, and `privateStateExposed=false`. The remaining scar is still explicit elevated operator execution followed by complete Idunn audits, not missing parent/child artifact readiness. - Service lifecycle receipt history is now event-only: `load_epiphany_cultmesh_daemon_service_lifecycle_receipts` filters out the `epiphany-local/daemon-service-lifecycle-receipt/latest` mirror, while `load_latest_epiphany_cultmesh_daemon_service_lifecycle_receipt` remains the latest-state reader. Focused unit test `service_lifecycle_receipt_history_excludes_latest_mirror` proves two per-receipt writes return exactly two history records and latest points at the second. Fresh smoke `verse-query-lifecycle-history-filter-smoke` and live overview/triage `local-20260618-145632-497-efac6f0d` / `local-20260618-145632-321-867947af` prove compact swarm sights still expose service lifecycle attention plus the present elevated runbook artifact without daemon pokes or service mutation. Do not use a broad unscoped cargo test filter for this check on Windows; it fans out across bin harnesses and hit a broken pipe during this pass. - `epiphany-verse-query seed-compact` is the compact seed receipt for wrappers and read-only rites. The older `seed` command still prints the full local Verse context for explicit debugging, but compact wrapper modes now avoid full `seed`/final `query` readback after the combined overview proof exposed Windows debug stack overflow from full-context serialization pressure. - last_completed_repo_swarm_cut: `epiphany-work deployment-aftercare-audit` is now the non-mutating post-operator Idunn receipt ingestion mouth for branch-local deployment, reading sealed Idunn receipt projections from repo-local CultMesh refs before falling back to explicit-file compatibility. 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 the runbook is ready and both Idunn receipts have successful statuses and private-state seals, and keeps repo-agent execution/deployment/SSH/git-push/service/Hands/publication/merge/cross-body authority false. Proof `.epiphany-smoke\repo-deployment-config-family-20260620-221205` closed the `repo.deployment_config` family through Soul, proved config audit, runbook generation, and complete CultMesh aftercare ingestion with `idunnDeploymentReceiptSource=cultmesh`, `idunnAftercareAuditReceiptSource=cultmesh`, `deploymentComplete=true`, and `privateStateExposed=false`. - next_action: Continue repo-swarm MVP work from the documented Epiphany Online cut order in `notes/epiphany-repo-swarm-mvp-contract.md`. Typed Gjallar repo-work history/queue sight, peer-readable Persona Eve lowering, Self-owned `epiphany-work queue-run`, bounded `epiphany-swarm run`, execute-to-close scheduler handoff through `close-from-execute`, deterministic `derive-plan` families `append-worklog`, `planning-note`, `checklist-note`, `section-note` / `repo.markdown_managed_section`, `task-card` / `repo.task_card`, `repo-status-section` / `repo.status_section`, `repo-manifest` / `repo.body_manifest`, `repo-tool-capabilities` / `repo.tool_capabilities`, `repo-tool-request` / `repo.tool_request`, `repo-eve-surface` / `repo.eve_surface`, `repo-collaboration-policy` / `repo.collaboration_policy`, `repo-collaboration-topic` / `repo.collaboration_topic`, `repo-consensus-brief` / `repo.consensus_brief`, `repo-objective-draft` / `repo.objective_draft`, `repo-adoption-request` / `repo.adoption_request`, `repo-scheduling-request` / `repo.scheduling_request`, `repo-work-order` / `repo.work_order`, `repo-verification-request` / `repo.verification_request`, `repo-publication-request` / `repo.publication_request`, `repo-sync-request` / `repo.sync_request`, `repo-maintainer-review-request` / `repo.maintainer_review_request`, `repo-pr-request` / `repo.pr_request`, `repo-credit-request` / `repo.credit_request`, `repo-artifact-acceptance-request` / `repo.artifact_acceptance_request`, `repo-metrics-request` / `repo.metrics_request`, `repo.doctrine_update_request`, `repo.secret_policy_request`, `repo.deployment_config`, and `repo.deployment_request`, typed Imagination action-item receipts over allowlisted safe families, `epiphany.repo_work_mind_interpretation.v0` plus `epiphany.repo_work_mind_adoption_decision.v0` Mind interpreter receipts, explicit safe-family allowlist refusal, explicit requested-path/plan-changed-path mismatch refusal, Soul closure's Mind-adoption proof guard, durable repo-work map admission before branch-local Hands consequences reach publication gates, local Verse `epiphany.cultmesh.repo_work_map_entry.v0` Gjallar readback for Mind-admitted map facts, hash-backed local proof bundles with Bifrost/GitHub/credit/PR/upstream-main publication rows, redacted `epiphany-work export-proof` public bundles plus local Verse `epiphany.cultmesh.repo_work_public_proof.v0` Gjallar readback, Bifrost-owned `gamecult.bifrost.public_proof_publication_receipt.v0` closure plus wrapper `bifrost-public-proof` for redacted public proofs, Idunn-hosted non-mutating queue-run lifecycle plan/runbook receipts including native proof `.epiphany-smoke\repo-work-service-lifecycle-20260620-185853`, deployment config/audit/runbook/aftercare CultMesh-ref ingestion proof `.epiphany-smoke\repo-deployment-config-family-20260620-221205`, and the speech-audited `epiphany-work persona-intake` mouth plus wrapper `repo-persona-intake` are live with `privateStateExposed=false`; proofs `.epiphany-smoke\fresh-repo-mvp-20260620-180024`, `.epiphany-smoke\swarm-stop-classification-20260620-184717`, `.epiphany-smoke\repo-mind-safe-family-guard-20260620-194425`, `.epiphany-smoke\repo-mind-path-guard-20260620-194239`, `.epiphany-smoke\repo-doctrine-update-request-family-20260620-192140`, `.epiphany-smoke\repo-secret-policy-request-family-20260620-193046`, `.epiphany-smoke\repo-deployment-config-family-20260620-221205`, `.epiphany-smoke\repo-deployment-request-family-20260620-195605`, `.epiphany-smoke\repo-close-mind-adoption-guard-20260620-201153`, `.epiphany-smoke\repo-close-mind-adoption-guard-20260620-202113`, and `.epiphany-smoke\repo-close-mind-adoption-guard-20260620-203717` show fresh-repo iteration-limit stop classification, empty-queue Gjallar classification, dry-run planning-preview Self classification, Bifrost publication-gate classification, Bifrost/GitHub upstream-sync gate classification, Mind refusal for unsupported safe-family cargo and mismatched requested paths, reviewed doctrine/security/deployment config/request cargo, deployment-config audit readiness for Idunn review, deployment execution runbook readiness for explicit operator git-push handoff, deployment aftercare receipt ingestion from local Verse/CultMesh refs, closure refusal for counterfeit Mind adoption, durable repo-map admission only after passing closure, local Verse/Gjallar map projection, closure, publication receipts, upstream-main sync, public-proof export, and private-state sealing. The contract note now explicitly answers that Epiphany is headed toward a functional repo swarm but is not fully online until the typed artery runs as a living repo organism. The next cut is deeper interpreter/closure depth or wiring the Idunn deployment receipt refs into Odin/Gjallar discovery rows so peers can cite them without opening private state. Preserve Idunn service lifecycle ownership and existing CultMesh/Odin/Eve tool directories; service install/start/deployment execution still requires explicit elevated operator authority. + last_completed_repo_swarm_cut: Gjallar/Odin sight now exposes Idunn deployment receipt refs without opening private state or becoming the deployment owner. `EpiphanyLocalVerseContext`, `receipt-directory`, `swarm-overview`, `swarm-triage`, and `gjallar` surface latest `gamecult.idunn.deployment_receipt.v0` and `gamecult.idunn.deployment_aftercare_audit.v0` as compact `idunnDeploymentReceiptRows` / `IDUNN-DEPLOYMENT` rows with owner `Idunn`, watched/checked refs, result refs, aftercare ids, and follow-up readback command. Proof `.epiphany-smoke\repo-deployment-config-family-20260620-223203` closed the `repo.deployment_config` family, proved CultMesh aftercare ingestion, and reported `gjallarIdunnDeploymentReceiptCount=2`, latest deployment receipt `fixture-idunn-deployment`, latest aftercare receipt `fixture-idunn-aftercare`, and `privateStateExposed=false`. + next_action: Continue repo-swarm MVP work from the documented Epiphany Online cut order in `notes/epiphany-repo-swarm-mvp-contract.md`. Typed Gjallar repo-work history/queue sight, peer-readable Persona Eve lowering, Self-owned `epiphany-work queue-run`, bounded `epiphany-swarm run`, execute-to-close scheduler handoff through `close-from-execute`, deterministic `derive-plan` families `append-worklog`, `planning-note`, `checklist-note`, `section-note` / `repo.markdown_managed_section`, `task-card` / `repo.task_card`, `repo-status-section` / `repo.status_section`, `repo-manifest` / `repo.body_manifest`, `repo-tool-capabilities` / `repo.tool_capabilities`, `repo-tool-request` / `repo.tool_request`, `repo-eve-surface` / `repo.eve_surface`, `repo-collaboration-policy` / `repo.collaboration_policy`, `repo-collaboration-topic` / `repo.collaboration_topic`, `repo-consensus-brief` / `repo.consensus_brief`, `repo-objective-draft` / `repo.objective_draft`, `repo-adoption-request` / `repo.adoption_request`, `repo-scheduling-request` / `repo.scheduling_request`, `repo-work-order` / `repo.work_order`, `repo-verification-request` / `repo.verification_request`, `repo-publication-request` / `repo.publication_request`, `repo-sync-request` / `repo.sync_request`, `repo-maintainer-review-request` / `repo.maintainer_review_request`, `repo-pr-request` / `repo.pr_request`, `repo-credit-request` / `repo.credit_request`, `repo-artifact-acceptance-request` / `repo.artifact_acceptance_request`, `repo-metrics-request` / `repo.metrics_request`, `repo.doctrine_update_request`, `repo.secret_policy_request`, `repo.deployment_config`, and `repo.deployment_request`, typed Imagination action-item receipts over allowlisted safe families, `epiphany.repo_work_mind_interpretation.v0` plus `epiphany.repo_work_mind_adoption_decision.v0` Mind interpreter receipts, explicit safe-family allowlist refusal, explicit requested-path/plan-changed-path mismatch refusal, Soul closure's Mind-adoption proof guard, durable repo-work map admission before branch-local Hands consequences reach publication gates, local Verse `epiphany.cultmesh.repo_work_map_entry.v0` Gjallar readback for Mind-admitted map facts, hash-backed local proof bundles with Bifrost/GitHub/credit/PR/upstream-main publication rows, redacted `epiphany-work export-proof` public bundles plus local Verse `epiphany.cultmesh.repo_work_public_proof.v0` Gjallar readback, Bifrost-owned `gamecult.bifrost.public_proof_publication_receipt.v0` closure plus wrapper `bifrost-public-proof` for redacted public proofs, Idunn-hosted non-mutating queue-run lifecycle plan/runbook receipts including native proof `.epiphany-smoke\repo-work-service-lifecycle-20260620-185853`, deployment config/audit/runbook/aftercare CultMesh-ref ingestion plus Gjallar Idunn receipt discovery proof `.epiphany-smoke\repo-deployment-config-family-20260620-223203`, and the speech-audited `epiphany-work persona-intake` mouth plus wrapper `repo-persona-intake` are live with `privateStateExposed=false`; proofs `.epiphany-smoke\fresh-repo-mvp-20260620-180024`, `.epiphany-smoke\swarm-stop-classification-20260620-184717`, `.epiphany-smoke\repo-mind-safe-family-guard-20260620-194425`, `.epiphany-smoke\repo-mind-path-guard-20260620-194239`, `.epiphany-smoke\repo-doctrine-update-request-family-20260620-192140`, `.epiphany-smoke\repo-secret-policy-request-family-20260620-193046`, `.epiphany-smoke\repo-deployment-config-family-20260620-223203`, `.epiphany-smoke\repo-deployment-request-family-20260620-195605`, `.epiphany-smoke\repo-close-mind-adoption-guard-20260620-201153`, `.epiphany-smoke\repo-close-mind-adoption-guard-20260620-202113`, and `.epiphany-smoke\repo-close-mind-adoption-guard-20260620-203717` show fresh-repo iteration-limit stop classification, empty-queue Gjallar classification, dry-run planning-preview Self classification, Bifrost publication-gate classification, Bifrost/GitHub upstream-sync gate classification, Mind refusal for unsupported safe-family cargo and mismatched requested paths, reviewed doctrine/security/deployment config/request cargo, deployment-config audit readiness for Idunn review, deployment execution runbook readiness for explicit operator git-push handoff, deployment aftercare receipt ingestion from local Verse/CultMesh refs, Gjallar Idunn deployment/aftercare receipt rows, closure refusal for counterfeit Mind adoption, durable repo-map admission only after passing closure, local Verse/Gjallar map projection, closure, publication receipts, upstream-main sync, public-proof export, and private-state sealing. The contract note now explicitly answers that Epiphany is headed toward a functional repo swarm but is not fully online until the typed artery runs as a living repo organism. The next cut is deeper interpreter/closure depth or another repo-owned safe-family organ; Idunn deployment receipt refs are now visible through Gjallar/Odin sight without opening private state. Preserve Idunn service lifecycle ownership and existing CultMesh/Odin/Eve tool directories; service install/start/deployment execution still requires explicit elevated operator authority.