diff --git a/epiphany-core/src/bin/epiphany-repo-artifact-acceptance-request-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-artifact-acceptance-request-family-smoke.rs index 48a4a942..8a95b457 100644 --- a/epiphany-core/src/bin/epiphany-repo-artifact-acceptance-request-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-artifact-acceptance-request-family-smoke.rs @@ -195,6 +195,18 @@ fn run_smoke(args: Args) -> Result { let close = read_json(&close_path)?; let request_text = fs::read_to_string(repo.join(target_path)) .with_context(|| format!("failed to read {}", repo.join(target_path).display()))?; + let bifrost_ledger = cargo_json( + &manifest, + "epiphany-verse-query", + &[ + "bifrost-ledger", + "--store", + path_str(&local_verse)?, + "--runtime-id", + "repo-artifact-acceptance-request-family-smoke", + ], + &root, + )?; require_eq( &plan, @@ -299,6 +311,15 @@ fn run_smoke(args: Args) -> Result { "maintainer_or_bifrost_acceptance_authority_required = true", )?; require_text(&request_text, "private_state_exposed = false")?; + require_bifrost_accounting_row(&bifrost_ledger, "artifact-acceptance-request", "open", 3, 1)?; + require_tui_row_contains( + &bifrost_ledger, + &["accountingTuiRows"], + "BIFROST-ACCOUNTING | artifact-acceptance-request", + )?; + require_tui_row_contains(&bifrost_ledger, &["accountingTuiRows"], "status=open")?; + require_tui_row_contains(&bifrost_ledger, &["accountingTuiRows"], "request=present")?; + require_bool(&bifrost_ledger, &["privateStateExposed"], false)?; let summary = json!({ "schemaVersion": "epiphany.repo_artifact_acceptance_request_family_smoke.v0", @@ -321,6 +342,8 @@ fn run_smoke(args: Args) -> Result { "publicationAuthorized": false, "upstreamSyncAuthorized": false, "handsActionAuthorized": false, + "bifrostLedgerAccountingRowCount": bifrost_ledger["accountingRowCount"], + "bifrostArtifactAcceptanceRequestAccountingRow": bifrost_accounting_row_value(&bifrost_ledger, "artifact-acceptance-request")?, "privateStateExposed": false, }); write_json(&smoke_dir.join("summary.json"), &summary)?; @@ -450,6 +473,74 @@ fn require_text(haystack: &str, needle: &str) -> Result<()> { } } +fn require_tui_row_contains(value: &Value, path: &[&str], needle: &str) -> Result<()> { + let rows = path + .iter() + .try_fold(value, |current, key| current.get(*key)) + .and_then(Value::as_array) + .ok_or_else(|| anyhow!("missing TUI row array {}", path.join(".")))?; + if rows + .iter() + .filter_map(Value::as_str) + .any(|row| row.contains(needle)) + { + Ok(()) + } else { + Err(anyhow!( + "expected {} to contain row fragment {needle:?}", + path.join(".") + )) + } +} + +fn bifrost_accounting_row_value<'a>(value: &'a Value, lane: &str) -> Result<&'a Value> { + value + .get("accountingRows") + .and_then(Value::as_array) + .and_then(|rows| { + rows.iter() + .find(|row| row.get("lane").and_then(Value::as_str) == Some(lane)) + }) + .ok_or_else(|| anyhow!("missing Bifrost accounting row {lane:?}")) +} + +fn require_bifrost_accounting_row( + value: &Value, + lane: &str, + status: &str, + review_receipt_count: u64, + public_artifact_count: u64, +) -> Result<()> { + let row = bifrost_accounting_row_value(value, lane)?; + let actual_status = row + .get("status") + .and_then(Value::as_str) + .unwrap_or(""); + let actual_review_receipt_count = row + .get("reviewReceiptCount") + .and_then(Value::as_u64) + .unwrap_or(0); + let actual_public_artifact_count = row + .get("publicArtifactCount") + .and_then(Value::as_u64) + .unwrap_or(0); + let actual_private = row + .get("privateStateExposed") + .and_then(Value::as_bool) + .unwrap_or(true); + if actual_status == status + && actual_review_receipt_count == review_receipt_count + && actual_public_artifact_count == public_artifact_count + && !actual_private + { + Ok(()) + } else { + Err(anyhow!( + "Bifrost accounting row {lane:?} mismatch: status={actual_status:?}, reviewReceiptCount={actual_review_receipt_count}, publicArtifactCount={actual_public_artifact_count}, privateStateExposed={actual_private}" + )) + } +} + fn take_path( args: &mut std::iter::Peekable>, flag: &str, diff --git a/epiphany-core/src/bin/epiphany-repo-metrics-request-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-metrics-request-family-smoke.rs index d61c31a3..911d6b7c 100644 --- a/epiphany-core/src/bin/epiphany-repo-metrics-request-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-metrics-request-family-smoke.rs @@ -186,6 +186,18 @@ fn run_smoke(args: Args) -> Result { let close = read_json(&close_path)?; let request_text = fs::read_to_string(repo.join(target_path)) .with_context(|| format!("failed to read {}", repo.join(target_path).display()))?; + let bifrost_ledger = cargo_json( + &manifest, + "epiphany-verse-query", + &[ + "bifrost-ledger", + "--store", + path_str(&local_verse)?, + "--runtime-id", + "repo-metrics-request-family-smoke", + ], + &root, + )?; require_eq( &plan, @@ -293,6 +305,15 @@ fn run_smoke(args: Args) -> Result { "bifrost_or_maintainer_metrics_authority_required = true", )?; require_text(&request_text, "private_state_exposed = false")?; + require_bifrost_accounting_row(&bifrost_ledger, "metrics-request", "open", 3, 1)?; + require_tui_row_contains( + &bifrost_ledger, + &["accountingTuiRows"], + "BIFROST-ACCOUNTING | metrics-request", + )?; + require_tui_row_contains(&bifrost_ledger, &["accountingTuiRows"], "status=open")?; + require_tui_row_contains(&bifrost_ledger, &["accountingTuiRows"], "request=present")?; + require_bool(&bifrost_ledger, &["privateStateExposed"], false)?; let summary = json!({ "schemaVersion": "epiphany.repo_metrics_request_family_smoke.v0", @@ -317,6 +338,8 @@ fn run_smoke(args: Args) -> Result { "publicationAuthorized": false, "upstreamSyncAuthorized": false, "handsActionAuthorized": false, + "bifrostLedgerAccountingRowCount": bifrost_ledger["accountingRowCount"], + "bifrostMetricsRequestAccountingRow": bifrost_accounting_row_value(&bifrost_ledger, "metrics-request")?, "privateStateExposed": false, }); write_json(&smoke_dir.join("summary.json"), &summary)?; @@ -446,6 +469,74 @@ fn require_text(haystack: &str, needle: &str) -> Result<()> { } } +fn require_tui_row_contains(value: &Value, path: &[&str], needle: &str) -> Result<()> { + let rows = path + .iter() + .try_fold(value, |current, key| current.get(*key)) + .and_then(Value::as_array) + .ok_or_else(|| anyhow!("missing TUI row array {}", path.join(".")))?; + if rows + .iter() + .filter_map(Value::as_str) + .any(|row| row.contains(needle)) + { + Ok(()) + } else { + Err(anyhow!( + "expected {} to contain row fragment {needle:?}", + path.join(".") + )) + } +} + +fn bifrost_accounting_row_value<'a>(value: &'a Value, lane: &str) -> Result<&'a Value> { + value + .get("accountingRows") + .and_then(Value::as_array) + .and_then(|rows| { + rows.iter() + .find(|row| row.get("lane").and_then(Value::as_str) == Some(lane)) + }) + .ok_or_else(|| anyhow!("missing Bifrost accounting row {lane:?}")) +} + +fn require_bifrost_accounting_row( + value: &Value, + lane: &str, + status: &str, + review_receipt_count: u64, + public_artifact_count: u64, +) -> Result<()> { + let row = bifrost_accounting_row_value(value, lane)?; + let actual_status = row + .get("status") + .and_then(Value::as_str) + .unwrap_or(""); + let actual_review_receipt_count = row + .get("reviewReceiptCount") + .and_then(Value::as_u64) + .unwrap_or(0); + let actual_public_artifact_count = row + .get("publicArtifactCount") + .and_then(Value::as_u64) + .unwrap_or(0); + let actual_private = row + .get("privateStateExposed") + .and_then(Value::as_bool) + .unwrap_or(true); + if actual_status == status + && actual_review_receipt_count == review_receipt_count + && actual_public_artifact_count == public_artifact_count + && !actual_private + { + Ok(()) + } else { + Err(anyhow!( + "Bifrost accounting row {lane:?} mismatch: status={actual_status:?}, reviewReceiptCount={actual_review_receipt_count}, publicArtifactCount={actual_public_artifact_count}, privateStateExposed={actual_private}" + )) + } +} + fn take_path( args: &mut std::iter::Peekable>, flag: &str, diff --git a/epiphany-core/src/bin/epiphany-verse-query.rs b/epiphany-core/src/bin/epiphany-verse-query.rs index 8b625dfc..8c5a3653 100644 --- a/epiphany-core/src/bin/epiphany-verse-query.rs +++ b/epiphany-core/src/bin/epiphany-verse-query.rs @@ -1229,6 +1229,7 @@ fn run_cli() -> Result<()> { "publicationChainCount": report.publication_chain_count, "publicProofPublicationCount": report.public_proof_publication_count, "collaborationChainCount": report.collaboration_chain_count, + "repoWorkAccountingRequestCount": report.repo_work_accounting_request_count, "accountingRowCount": report.accounting_rows.len(), "closedAccountingRowCount": report.closed_accounting_row_count, "attentionAccountingRowCount": report.attention_accounting_row_count, @@ -2715,9 +2716,10 @@ fn run_cli() -> Result<()> { if bifrost_ledger_report.status != "ok" || bifrost_ledger_report.publication_chain_count != 3 || bifrost_ledger_report.collaboration_chain_count != 2 - || bifrost_ledger_report.accounting_rows.len() != 4 + || bifrost_ledger_report.accounting_rows.len() != 6 || bifrost_ledger_report.closed_accounting_row_count != 2 || bifrost_ledger_report.attention_accounting_row_count != 0 + || bifrost_ledger_report.repo_work_accounting_request_count != 0 || bifrost_ledger_report.rows.len() != 5 || bifrost_ledger_report.private_state_exposed || !bifrost_ledger_report.tui_rows.iter().any(|row| { @@ -2757,6 +2759,18 @@ fn run_cli() -> Result<()> { && row.contains("approval=missing") && row.contains("private=false") }) + || !bifrost_ledger_report.accounting_tui_rows.iter().any(|row| { + row.contains("BIFROST-ACCOUNTING | artifact-acceptance-request") + && row.contains("status=missing") + && row.contains("request=missing") + && row.contains("private=false") + }) + || !bifrost_ledger_report.accounting_tui_rows.iter().any(|row| { + row.contains("BIFROST-ACCOUNTING | metrics-request") + && row.contains("status=missing") + && row.contains("request=missing") + && row.contains("private=false") + }) || !bifrost_ledger_report.accounting_tui_rows.iter().any(|row| { row.contains("BIFROST-ACCOUNTING | collaboration-consensus") && row.contains("status=closed") @@ -4939,6 +4953,7 @@ struct BifrostLedgerReport { latest_readiness_review_id: Option, latest_feedback_id: Option, latest_consensus_receipt_id: Option, + repo_work_accounting_request_count: usize, private_state_exposed: bool, } @@ -8545,6 +8560,8 @@ fn load_bifrost_ledger_report(args: &Args) -> Result { &args.store, args.runtime_id.clone(), )?; + let repo_work_map_entries = + load_epiphany_cultmesh_repo_work_map_entries(&args.store, args.runtime_id.clone())?; Ok(bifrost_ledger_report( latest_intent.as_ref(), latest_publication.as_ref(), @@ -8553,6 +8570,7 @@ fn load_bifrost_ledger_report(args: &Args) -> Result { latest_readiness_review.as_ref(), latest_feedback.as_ref(), latest_consensus.as_ref(), + &repo_work_map_entries, )) } @@ -8566,6 +8584,7 @@ fn bifrost_ledger_report( latest_readiness_review: Option<&EpiphanyCultMeshRepoWorkReadinessReviewEntry>, latest_feedback: Option<&EpiphanyCultMeshBifrostCollaborationFeedbackEntry>, latest_consensus: Option<&EpiphanyCultMeshImaginationConsensusReceiptEntry>, + repo_work_map_entries: &[EpiphanyCultMeshRepoWorkMapEntry], ) -> BifrostLedgerReport { let mut rows = Vec::new(); let mut tui_rows = Vec::new(); @@ -8692,6 +8711,7 @@ fn bifrost_ledger_report( latest_readiness_review, latest_feedback, latest_consensus, + repo_work_map_entries, ); let closed_accounting_row_count = accounting_rows .iter() @@ -8731,6 +8751,13 @@ fn bifrost_ledger_report( latest_readiness_review_id: latest_readiness_review.map(|review| review.review_id.clone()), latest_feedback_id: latest_feedback.map(|feedback| feedback.feedback_id.clone()), latest_consensus_receipt_id: latest_consensus.map(|receipt| receipt.receipt_id.clone()), + repo_work_accounting_request_count: repo_work_map_entries + .iter() + .filter(|entry| { + entry.safe_action_family == "repo.artifact_acceptance_request" + || entry.safe_action_family == "repo.metrics_request" + }) + .count(), private_state_exposed, } } @@ -8767,6 +8794,7 @@ fn bifrost_accounting_rows( latest_readiness_review: Option<&EpiphanyCultMeshRepoWorkReadinessReviewEntry>, latest_feedback: Option<&EpiphanyCultMeshBifrostCollaborationFeedbackEntry>, latest_consensus: Option<&EpiphanyCultMeshImaginationConsensusReceiptEntry>, + repo_work_map_entries: &[EpiphanyCultMeshRepoWorkMapEntry], ) -> (Vec, Vec) { let mut rows = Vec::new(); let mut tui_rows = Vec::new(); @@ -8950,6 +8978,23 @@ fn bifrost_accounting_rows( }, ); + push_repo_work_request_accounting_row( + &mut rows, + &mut tui_rows, + repo_work_map_entries, + "artifact-acceptance-request", + "repo.artifact_acceptance_request", + "Maintainer/Bifrost", + ); + push_repo_work_request_accounting_row( + &mut rows, + &mut tui_rows, + repo_work_map_entries, + "metrics-request", + "repo.metrics_request", + "Bifrost/Maintainer", + ); + let collaboration_private = latest_feedback .map(|feedback| feedback.private_state_included) .unwrap_or(false) @@ -8999,6 +9044,74 @@ fn bifrost_accounting_rows( (rows, tui_rows) } +fn push_repo_work_request_accounting_row( + rows: &mut Vec, + tui_rows: &mut Vec, + repo_work_map_entries: &[EpiphanyCultMeshRepoWorkMapEntry], + lane: &str, + safe_action_family: &str, + owner: &str, +) { + let matching = repo_work_map_entries + .iter() + .filter(|entry| entry.safe_action_family == safe_action_family) + .collect::>(); + let latest = matching.iter().copied().max_by(|left, right| { + left.admitted_at + .cmp(&right.admitted_at) + .then_with(|| left.map_entry_id.cmp(&right.map_entry_id)) + }); + let request_present = latest.is_some(); + let private = matching.iter().any(|entry| entry.private_state_exposed); + let latest_item = latest.map(|entry| entry.item.as_str()).unwrap_or("none"); + let review_receipt_count = latest + .map(|entry| { + [ + &entry.soul_verdict_receipt_id, + &entry.mind_gateway_review_id, + &entry.mind_state_commit_receipt_id, + ] + .iter() + .filter(|receipt| !receipt.trim().is_empty() && receipt.as_str() != "none") + .count() + }) + .unwrap_or(0); + push_bifrost_accounting_row( + rows, + tui_rows, + BifrostAccountingRow { + lane: lane.to_string(), + owner: owner.to_string(), + status: bifrost_accounting_status(false, request_present, private), + closure: format!( + "request={} items={} latest={}", + present_word(request_present), + matching.len(), + latest_item + ), + ledger_entry_id: latest + .map(|entry| entry.publication_gate.clone()) + .unwrap_or_else(|| "none".to_string()), + latest_receipt_id: latest + .map(|entry| entry.mind_state_commit_receipt_id.clone()) + .unwrap_or_else(|| "none".to_string()), + public_ref: latest + .map(|entry| { + if entry.commit_sha.trim().is_empty() || entry.commit_sha == "none" { + entry.branch.clone() + } else { + entry.commit_sha.clone() + } + }) + .unwrap_or_else(|| "none".to_string()), + review_receipt_count, + credit_receipt_count: 0, + public_artifact_count: latest.map(|entry| entry.changed_paths.len()).unwrap_or(0), + private_state_exposed: private, + }, + ); +} + fn push_bifrost_accounting_row( rows: &mut Vec, tui_rows: &mut Vec, diff --git a/notes/epiphany-repo-swarm-mvp-contract.md b/notes/epiphany-repo-swarm-mvp-contract.md index 74997018..4b1ca6d5 100644 --- a/notes/epiphany-repo-swarm-mvp-contract.md +++ b/notes/epiphany-repo-swarm-mvp-contract.md @@ -1727,7 +1727,8 @@ published `repo-work-public-proof-checklist-request` to Bifrost ledger readback now also emits derived external-work accounting rows without creating a rival ledger. `epiphany-verse-query bifrost-ledger` returns `accountingRows` and `accountingTuiRows` for `body-change-publication`, -`public-proof-publication`, `repo-work-readiness-review`, and +`public-proof-publication`, `repo-work-readiness-review`, +`artifact-acceptance-request`, `metrics-request`, and `collaboration-consensus`, carrying closure status, ledger/receipt/public refs, review and credit receipt counts, artifact count, and the private-state seal. The readiness-review lane closes only when latest @@ -1735,7 +1736,14 @@ The readiness-review lane closes only when latest Bifrost review refs, `status=readiness-approved`, zero missing required rows, a present review artifact, readiness approval true, and durable-state, publication, PR, merge, upstream-sync, deployment, service lifecycle, Hands, and -private-state authority all false. Wrapper proof +private-state authority all false. The accepted-artifact and metrics request +lanes derive from Mind-admitted `epiphany.cultmesh.repo_work_map_entry.v0` +branch work for safe families `repo.artifact_acceptance_request` and +`repo.metrics_request`; they become `open` request-accounting sight with the +latest Mind commit receipt, Bifrost gate, commit ref, closure review count, and +changed-path artifact count, but they do not close final artifact acceptance, +metrics, credit, publication, merge, upstream sync, deployment, service +lifecycle, Hands, or private-state authority. Wrapper proof `local-20260621-091019-297-aaf2ad07` reported `accountingRows=3`, `closedAccounting=2`, `attentionAccounting=0`, closed body-change and collaboration rows, a visible missing public-proof-publication row, and @@ -1748,6 +1756,14 @@ wrapper proof `local-20260621-131113-240-be2b19f2` printed the same closed `BIFROST-ACCOUNTING | repo-work-readiness-review` row from the explicit repo-local Verse target after the wrapper read path was corrected to use `-LocalVerseStore` / `-LocalVerseRuntimeId`. +Focused request proofs +`.epiphany-smoke\repo-artifact-acceptance-request-family-20260621-122343` and +`.epiphany-smoke\repo-metrics-request-family-20260621-122503` reported +`accountingRowCount=6`, an open `artifact-acceptance-request` or +`metrics-request` row with `reviewReceiptCount=3`, `publicArtifactCount=1`, +and `privateStateExposed=false`; wrapper proof +`local-20260621-132626-365-878a1113` printed the open metrics request row from +the repo-local Verse target. Wrapper mode `tools/epiphany_local_run.ps1 -Mode bifrost-public-proof` now exposes the same Bifrost mouth for operators and agents. It reads the latest @@ -1976,7 +1992,7 @@ temptation wearing clean robes. | Self scheduling | `tick` and `serve` prove one-step branch-local advancement, brake refusal, active-turn refusal, cooldown, and stale-turn recovery; `tick` now routes executed branch-local work through the existing Soul/Modeling/Mind `close` gate; `queue-run` selects tick-actionable rows from the typed repo-work queue and delegates to `tick`; `epiphany-swarm run` is the bounded operator mouth over that queue/tick physiology; `repo-work-service-plan`, `repo-work-service-runbook`, `repo-work-service-launch`, and `repo-work-service-audit` write Idunn lifecycle receipts/artifacts for the same queue-run command and prove non-mutating launch/readiness closure. | Keep any future queue-run service install/start mutation behind Idunn and explicit elevated operator authority. | | Branch-local Hands work | `adopt` and `execute` create approved Hands gates, run planned commands, stage declared paths, commit on `epiphany/*`, and write receipts. | Keep mutation branch-contained and receipt-backed; broaden only through typed plan families, not ad hoc shell freedom. | | Soul/Modeling/Mind closure | `close` verifies the Hands commit, writes `epiphany.repo_work_closure_review.v0`, refuses path-scope mismatches, refuses missing/tampered/non-affirmative Mind adoption proof, runs known safe-family content assertions, optionally gates on model-authored closure verdicts, can require verification output to cite declared changed paths with `--require-source-grounding`, writes Soul/Modeling/Mind receipts, admits a compact typed repo map entry into `.epiphany/state/repo-work-map.msgpack`, and mirrors that admitted fact into local Verse as `epiphany.cultmesh.repo_work_map_entry.v0`. | Keep extending closure toward source-grounded semantic review and richer semantic map lenses, while preserving deterministic local closure for simple mechanical work. | -| Repo work sight/review | `overview` emits compact proof rows, an `epiphany.repo_work_intake_consensus_readback.v0` from the accept/plan chain, and typed `epiphany.cultmesh.repo_work_overview.v0` event documents plus a latest key; `readiness` now emits `epiphany.repo_work_readiness_report.v0` and mirrors `epiphany.cultmesh.repo_work_readiness.v0` over the MVP proof rows, including Soul's safe-family planning matrix readback, Idunn repo-work service audit validation, Odin/Gjallar tool-directory validation, Bifrost/GitHub publication receipt-chain validation, and upstream-main sync receipt plus git ancestry validation while still granting no readiness approval; `readiness-review` consumes that ready sight receipt and four Maintainer/Soul/Mind/Bifrost review refs to write `epiphany.repo_work_readiness_review_receipt.v0` with readiness approval only, not action authority, mirrors `epiphany.cultmesh.repo_work_readiness_review.v0`, and is indexed by `receipt-directory` as `repo-work-readiness-review` with review artifact status/SHA-256 and private-state seal; the CultMesh TUI rows include compact `CONSENSUS`, `REPO-WORK-READINESS`, and readiness-review readbacks showing Persona/public feedback ids, Imagination consensus route, public/candidate ref counts, safe family, readiness gaps, readiness approval, and authority denials without private payloads; `close` mirrors Mind-admitted map facts as `epiphany.cultmesh.repo_work_map_entry.v0`; Gjallar enumerates overview history, readiness rows, readiness-review rows, map rows, semantic rows, closure rows, family lens rows, path lens rows, branch lens rows, stage lens rows, gate lens rows, and public-proof rows without private-state exposure; Persona's Eve surface and Eve connection readbacks expose peer-readable gate/blocker/next-action rows; `queue-run` consumes the same overview queue for branch-local scheduler pulses. | Deepen Bifrost-first external work accounting and semantic map readback without moving action authority out of Hands/Self/Bifrost. | +| Repo work sight/review | `overview` emits compact proof rows, an `epiphany.repo_work_intake_consensus_readback.v0` from the accept/plan chain, and typed `epiphany.cultmesh.repo_work_overview.v0` event documents plus a latest key; `readiness` now emits `epiphany.repo_work_readiness_report.v0` and mirrors `epiphany.cultmesh.repo_work_readiness.v0` over the MVP proof rows, including Soul's safe-family planning matrix readback, Idunn repo-work service audit validation, Odin/Gjallar tool-directory validation, Bifrost/GitHub publication receipt-chain validation, and upstream-main sync receipt plus git ancestry validation while still granting no readiness approval; `readiness-review` consumes that ready sight receipt and four Maintainer/Soul/Mind/Bifrost review refs to write `epiphany.repo_work_readiness_review_receipt.v0` with readiness approval only, not action authority, mirrors `epiphany.cultmesh.repo_work_readiness_review.v0`, and is indexed by `receipt-directory` as `repo-work-readiness-review` with review artifact status/SHA-256 and private-state seal; `bifrost-ledger` now derives six accounting lanes, including open `artifact-acceptance-request` and `metrics-request` rows from Mind-admitted map entries without closing final Bifrost/maintainer acceptance or metrics authority; the CultMesh TUI rows include compact `CONSENSUS`, `REPO-WORK-READINESS`, readiness-review, and Bifrost accounting readbacks showing Persona/public feedback ids, Imagination consensus route, public/candidate ref counts, safe family, readiness gaps, readiness approval, request accounting, and authority denials without private payloads; `close` mirrors Mind-admitted map facts as `epiphany.cultmesh.repo_work_map_entry.v0`; Gjallar enumerates overview history, readiness rows, readiness-review rows, map rows, semantic rows, closure rows, family lens rows, path lens rows, branch lens rows, stage lens rows, gate lens rows, and public-proof rows without private-state exposure; Persona's Eve surface and Eve connection readbacks expose peer-readable gate/blocker/next-action rows; `queue-run` consumes the same overview queue for branch-local scheduler pulses. | Next useful cuts are final accepted-artifact/metrics ledger receipts, another repo-owned safe family, or explicit elevated Idunn execution only under operator authority. | | Publication | `publish` routes Bifrost/GitHub receipts from closure or explicit Soul/Mind refs. | Keep publication Bifrost-owned; do not let scheduler publish. | | Upstream main sync | `sync` proves the published commit is contained by upstream main after explicit merge/sync authority. | Treat upstream-main sync as a required final proof for published work. | | Daemon survival | Idunn service lifecycle receipts and runbooks exist outside repo-work tick authority. | Preserve Idunn as lifecycle owner; repo swarm may request or inspect service state, not impersonate daemon keeping. | diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 8fd1d605..00dbee34 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -57,7 +57,7 @@ remembers doctrine; the branch remembers the blade. - `epiphany-verse-query connect-eve` and `tools/epiphany_local_run.ps1 -Mode eve-connect` are the compact Odin-to-Eve connection receipt rite. The command now selects its target from the narrow Eve surface directory and verifies latest intent/receipt keys through narrow CultMesh loaders instead of serializing the full local Verse. The wrapper defaults to `epiphany.cluster.persona`, records intent `eve-connection-intent` plus receipt `eve-connection-receipt`, targets `eve://epiphany/persona`, and keeps `privateStateExposed=false`. Verified: direct temp proof and wrapper proof both returned `status=ok`. - `epiphany-verse-query collaboration-feedback` and `tools/epiphany_local_run.ps1 -Mode collaboration-feedback` are the compact public Persona feedback to Imagination consensus receipt rite. The command verifies latest feedback/consensus keys through narrow CultMesh loaders and emits follow-on commands for wrapper feedback, Eve connection, direct Bifrost publication, and wrapper Bifrost publication. It returns TUI rows for the feedback and Imagination consensus receipt with `owner=Persona->Imagination`, `owner=Imagination`, `public=`, candidate action refs, consensus packet ref, adoption gate, and `private=false`. The wrapper first records the prerequisite Eve connection receipt, then writes feedback `collaboration-feedback` plus consensus `imagination-consensus-receipt`; proof `local-20260618-224207-941-2ca01b41` printed both compact rows in `feedbackRows`, including Persona public discussion feedback routed to Imagination consensus discovery, with `privateStateExposed=False`. - `epiphany-verse-query bifrost-publication` and `tools/epiphany_local_run.ps1 -Mode bifrost-publication` are the compact non-mutating body-change publication proof rite. The command verifies latest Bifrost intent/publication/GitHub receipt keys through narrow CultMesh loaders and now emits follow-on commands for swarm overview, tool directory, and wrapper Bifrost publication readback. The wrapper supplies explicit proof defaults for target repo, changed path, verification/review receipts, credit subject, ledger id, Hands PR receipt id, and publication URL, then writes Bifrost intent, Bifrost publication receipt, and GitHub publication receipt with `privateStateExposed=false`. Verified: direct proof and wrapper proof both returned `status=ok`, and wrapper artifact `local-20260618-072118-704-3c5ae3da` carried the command hints. -- `epiphany-verse-query bifrost-ledger` and `tools/epiphany_local_run.ps1 -Mode bifrost-ledger` are the compact read-only Bifrost ledger sight rite. The command reads only the latest Bifrost body-change intent, Bifrost publication receipt, GitHub publication receipt, public-proof publication receipt, repo-work readiness-review receipt, collaboration feedback, and Imagination consensus receipt through narrow CultMesh loaders. It returns raw ledger rows plus four derived `BIFROST-ACCOUNTING` rows for body-change publication, public-proof publication, repo-work readiness review, and collaboration consensus, with closure status, ledger/receipt/public refs, review and credit receipt counts, artifact count, and private-state seal. The readiness-review accounting row closes only with four Maintainer/Soul/Mind/Bifrost review refs, readiness approval, zero missing required rows, present review artifact, and no durable-state/publication/merge/sync/deployment/service/Hands/private authority. Native proof `.epiphany-smoke\repo-work-readiness-20260621-120755` reported the closed row with `reviewReceiptCount=4` and `publicArtifactCount=1`; wrapper proof `local-20260621-131113-240-be2b19f2` proved `bifrost-ledger` honors explicit repo-local Verse read targets. Older wrapper proof `local-20260621-091019-297-aaf2ad07` remains provenance for the first three accounting rows. +- `epiphany-verse-query bifrost-ledger` and `tools/epiphany_local_run.ps1 -Mode bifrost-ledger` are the compact read-only Bifrost ledger sight rite. The command reads only the latest Bifrost body-change intent, Bifrost publication receipt, GitHub publication receipt, public-proof publication receipt, repo-work readiness-review receipt, collaboration feedback, Imagination consensus receipt, and Mind-admitted repo-work map entries through narrow CultMesh loaders. It returns raw ledger rows plus six derived `BIFROST-ACCOUNTING` rows for body-change publication, public-proof publication, repo-work readiness review, artifact-acceptance request, metrics request, and collaboration consensus, with closure status, ledger/receipt/public refs, review and credit receipt counts, artifact count, and private-state seal. The readiness-review accounting row closes only with four Maintainer/Soul/Mind/Bifrost review refs, readiness approval, zero missing required rows, present review artifact, and no durable-state/publication/merge/sync/deployment/service/Hands/private authority. Artifact-acceptance and metrics request rows become `open` when a branch-local `repo.artifact_acceptance_request` or `repo.metrics_request` map entry exists, carrying the latest Mind commit receipt, Bifrost gate, commit ref, closure review count, and changed-path count without granting final acceptance, metrics, credit, publication, merge, sync, deployment, service, Hands, or private-state authority. Native proofs `.epiphany-smoke\repo-artifact-acceptance-request-family-20260621-122343` and `.epiphany-smoke\repo-metrics-request-family-20260621-122503` reported open request rows; wrapper proof `local-20260621-132626-365-878a1113` printed the metrics request row from the repo-local Verse target. Native proof `.epiphany-smoke\repo-work-readiness-20260621-120755` remains provenance for the closed readiness-review row; wrapper proof `local-20260621-131113-240-be2b19f2` proved `bifrost-ledger` honors explicit repo-local Verse read targets. - `epiphany-verse-query receipt-directory` and `tools/epiphany_local_run.ps1 -Mode receipt-directory` are the compact latest-witness directory over local Verse. The command indexes typed projections for operator run, daemon poke, daemon tool invocation, Eve connection, Bifrost publication, Imagination consensus, coordinator run, Hands gate, role review, work-loop, cluster service lifecycle, single-service lifecycle, cluster service execution runbook, single-service execution runbook, scheduler, Persona speech, and agent-state SoA without exposing raw payloads or private worker context. It treats sealed service lifecycle failure states such as `not-elevated`, `execution-refused-not-elevated`, and `incomplete` as operator attention instead of private-state exposure, routes cluster lifecycle wounds to `cluster-service-execution-audit`, preserves `service-execution-audit` for single-service receipts, and exposes the runbook witnesses as separate display-only `cluster-service-execution-runbook` and `service-execution-runbook` rows. The lifecycle projection now reads the typed receipt family, splits `cluster-service-lifecycle` from `service-lifecycle`, selects the latest attention receipt before falling back to latest overall, and renders service lifecycle routes as `service-id::action` so compact rows name the owning lifecycle action without exposing raw audit payloads. Compact TUI rows append `followUp=`, artifact status, and SHA-256; wrapper proof `local-20260618-205920-451-383b0da7` printed all seventeen rows in `receiptRows`, including missing Hands/role/work-loop gates, Bifrost/Imagination witnesses, scheduler follow-up, runbook hashes, and service lifecycle attention. `missingRowCount` remains as a compatibility alias for absent witnesses, not a fault signal. Attention routing is now Rust-owned too: JSON includes `attentionRouteRows` derived from the same predicate as `attentionRowCount`, and the wrapper prints that field instead of matching arbitrary status strings. Live proof `local-20260618-212134-758-c7c56240` showed the stale degraded Hands daemon-poke receipt remains an `OK` historical row while `attentionRoutes` names only the active cluster/single-service lifecycle wounds. Daemon-poke rows now also resolve historical receipt status against current daemon liveness: source smoke proves degraded remains degraded before heartbeat recovery and becomes `resolved` after ready status returns, and live wrapper proof `local-20260618-212649-563-48647018` printed the old Hands poke receipt as `OK | Self | daemon-poke | resolved`. - Public doctrine source `https://gamecult.org/Blog/purge-the-heretek-from-our-daemonic-swarm` sharpens the current swarm audit: Odin sees but must not own, Gjallar is Odin's herald for whole-Verse sight, Idunn-like ledgers must advance instead of freezing old wounds, and Bifrost is the ledger gate for cross-repo purification receipts rather than transcript archaeology. - `tools/epiphany_local_run.ps1` now stamps local run ids as `local-YYYYMMDD-HHMMSS-fff-` instead of second-resolution ids, so concurrent operator rites get separate artifact roots and run receipts. Verified: `collaboration-feedback` and `bifrost-publication` launched in parallel in the same second and completed as `local-20260618-064814-171-dc0b8dd9` and `local-20260618-064814-149-2946d675`. @@ -175,6 +175,7 @@ remembers doctrine; the branch remembers the blade. - 2026-06-21: Repo-work readiness review/adoption now has an explicit typed gate. `epiphany-work readiness-review` consumes a ready `epiphany.repo_work_readiness_report.v0`, requires Maintainer, Soul, Mind, and Bifrost review receipt refs, refuses unless `missingRequiredCount=0` and every readiness row is satisfied, and writes `epiphany.repo_work_readiness_review_receipt.v0` with `status=readiness-approved`, `readinessApprovalAuthorized=true`, `readinessAdopted=true`, and durable-state/publication/PR/merge/upstream-sync/deployment/service/Hands/cross-body/private-state authority all false. Native smoke `.epiphany-smoke\repo-work-readiness-20260621-111411` proves the full ready chain plus review receipt with sixteen satisfied rows. Wrapper proof `local-20260621-121829-442-d011af09` proves `tools/epiphany_local_run.ps1 -Mode repo-work-readiness-review` prints the same approval boundary at the operator mouth. - 2026-06-21: Repo-work readiness review/adoption is now indexed by receipt-directory for public/operator proof. `epiphany-verse-query receipt-directory` adds the `repo-work-readiness-review` row from latest `epiphany.cultmesh.repo_work_readiness_review.v0`, with owner `Maintainer/Soul/Mind/Bifrost`, route to the readiness receipt, review artifact status/SHA-256, follow-up `tools/epiphany_local_run.ps1 -Mode repo-work-readiness-review`, and `privateStateExposed=false`. Native proof `.epiphany-smoke\repo-work-readiness-20260621-115547` reported row `latestId=repo-work-readiness-review-repo-work-readiness`, status `readiness-approved`, artifact SHA-256 `ba50bce3aa2af320a71977bde9d47108154665802dd527dd30bf8c4ab28bba5e`; wrapper proof `local-20260621-125756-748-03710f48` proved `receipt-directory` now honors explicit `-LocalVerseStore` / `-LocalVerseRuntimeId` for repo-local readback while operator receipts still write to the operator store. - 2026-06-21: Bifrost ledger accounting now counts approved repo-work readiness review as a sealed external-work closure lane. `epiphany-verse-query bifrost-ledger` emits `BIFROST-ACCOUNTING | repo-work-readiness-review` from latest `epiphany.cultmesh.repo_work_readiness_review.v0`, closing only when approval status, four review refs, present artifact, zero missing rows, and all dangerous authority denials hold. Native proof `.epiphany-smoke\repo-work-readiness-20260621-120755` reported `status=closed`, `latestReceiptId=repo-work-readiness-review-repo-work-readiness`, `reviewReceiptCount=4`, `publicArtifactCount=1`, and `privateStateExposed=false`; wrapper proof `local-20260621-131113-240-be2b19f2` printed the same closed accounting row from the repo-local Verse target after `bifrost-ledger` was corrected to read `$localVerseReadStore`. +- 2026-06-21: Bifrost ledger accounting now also sees family-friendly artifact-acceptance and metrics requests as open external-work request lanes. `epiphany-verse-query bifrost-ledger` loads Mind-admitted `epiphany.cultmesh.repo_work_map_entry.v0` rows and derives `BIFROST-ACCOUNTING | artifact-acceptance-request` for safe family `repo.artifact_acceptance_request` and `BIFROST-ACCOUNTING | metrics-request` for `repo.metrics_request`. These rows report `status=open`, request presence, latest item, Mind commit receipt, Bifrost gate, commit ref, review receipt count, changed-path artifact count, and `privateStateExposed=false`; they deliberately do not close final artifact acceptance, metrics ledger, credit, publication, merge, upstream sync, deployment, service lifecycle, or Hands authority. Native proofs `.epiphany-smoke\repo-artifact-acceptance-request-family-20260621-122343` and `.epiphany-smoke\repo-metrics-request-family-20260621-122503` reported `accountingRowCount=6`, `reviewReceiptCount=3`, and `publicArtifactCount=1` for the relevant open lane. Wrapper proof `local-20260621-132626-365-878a1113` printed the open metrics request accounting row from the disposable repo-local Verse. - 2026-06-20: Mind now has explicit repo-work safe-family and requested-path guards before branch-local Hands authority. `adopt --from-plan` treats unsupported plan-derived safe-family labels as refused interpreter decisions, writes `epiphany.repo_work_mind_adoption_decision.v0` with `status=refused-unsupported-safe-family`, keeps `actionItemAccepted=false` and `safeFamilyRecognized=false`, grants no Hands/durable-state/service/publication/cross-body/private-state authority, and writes no normal adoption receipt. It also compares the sorted action-item `requestedPaths` against the sorted plan action `changedPaths`; mismatches write `status=refused-requested-path-mismatch`, keep `safeFamilyRecognized=true` but `requestedPathsMatchPlan=false`, point the next gate at `imagination.replan_with_matching_requested_paths`, and grant no Hands/durable-state/service/publication/cross-body/private-state authority. Focused smokes `.epiphany-smoke\repo-mind-safe-family-guard-20260620-194425` and `.epiphany-smoke\repo-mind-path-guard-20260620-194239` prove both refusal paths; earlier positive smokes `.epiphany-smoke\repo-planning-facets-20260620-190916` and `.epiphany-smoke\closure-model-gate-20260620-190916` prove recognized planning facets and closure model gates still pass. Current remaining repo-swarm MVP organs are deeper interpreter semantics beyond adoption refusal, more useful repo-owned configuration/action families, richer closure depth, and Idunn-owned queue-run service lifecycle under explicit operator authority. - 2026-06-20: Mind now also refuses plan-derived repo work that is not evidence-ready. `derive-plan` embeds verification asks in the Imagination action-item receipt, `adopt --from-plan` records verification asks and planning evidence needs in `epiphany.repo_work_mind_interpretation.v0`, and empty verification asks or evidence needs write `status=refused-missing-evidence-needs` with next gate `imagination.replan_with_explicit_soul_evidence_needs`. The refusal grants no Hands, durable-state, service, publication, cross-body, or private-state authority and writes no adoption receipt. Focused proof `.epiphany-smoke\repo-mind-evidence-guard-20260620-224426` tampers both arrays empty and proves the refusal; regression `.epiphany-smoke\repo-planning-facets-20260620-224428` proves normal planning facets still close through Soul/Modeling/Mind. - 2026-06-20: `repo-eve-surface` is now live as repo-owned Eve/CultUI surface contract cargo. `epiphany-work derive-plan --action-family repo-eve-surface` writes `.epiphany/eve-surfaces/.toml` with safe family `repo.eve_surface`, compact agent TUI and GUI lowering contracts, local/public Verse routing, Odin discovery, provider-owned surface identity, Persona/human collaboration flags, feedback routing to Imagination, and denials for renderer ownership, rendering/state/publication/service/cross-body authority, private Verse rummaging, and private-state exposure. Soul closure assertions inspect schema, family, summary, surface routing, Verse routing, CultUI contracts, collaboration route, authority seals, and private-state seal. Focused smoke `.epiphany-smoke\repo-eve-surface-family-20260620-165927` ran init -> online -> accept -> repo-eve-surface derive-plan -> tick run/adopt/execute/close; Hands committed only `.epiphany/eve-surfaces/repo-eve-surface-family.toml`, Soul passed with `pathScopeMatched=true`, `familyAssertions.status=passed`, `hasCultUiContracts=true`, `hasVerseRouting=true`, `odinDiscoverable=true`, `feedbackRoutesToImagination=true`, `rendererOwnsTruth=false`, `renderingAuthority=false`, `stateAuthority=false`, `publicationAuthority=false`, `serviceLifecycleAuthority=false`, `crossBodyMutationAuthority=false`, `privateVerseRummaging=false`, 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. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index e9c4b88b..c4eb59e6 100644 Binary files a/state/ledgers.msgpack and b/state/ledgers.msgpack differ diff --git a/state/map.yaml b/state/map.yaml index a27cef7c..3bb93b41 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -627,7 +627,7 @@ current_status: - `epiphany-verse-query connect-eve` and `tools/epiphany_local_run.ps1 -Mode eve-connect` provide the compact Odin-to-Eve collaboration receipt. The command selects the daemon-published surface through the narrow Eve directory, writes connection intent/receipt documents, verifies latest receipt keys through narrow CultMesh loaders, defaults the wrapper target to `epiphany.cluster.persona`, and exposes no private state. - `epiphany-verse-query collaboration-feedback` and `tools/epiphany_local_run.ps1 -Mode collaboration-feedback` provide the public Persona feedback to Imagination consensus receipt path. The wrapper records the prerequisite Eve connection receipt, writes feedback plus Imagination consensus receipt documents, verifies latest keys through narrow CultMesh loaders, publishes follow-on command hints for wrapper feedback, Eve connection, direct Bifrost publication, and wrapper Bifrost publication, and exposes no private state. The command returns compact TUI rows for the feedback and Imagination consensus receipt with explicit `owner=Persona->Imagination` / `owner=Imagination`, `public=`, candidate action refs, consensus packet ref, adoption gate, and `private=false`; wrapper proof `local-20260618-224207-941-2ca01b41` prints both rows in `feedbackRows`, including Persona public discussion feedback routed to Imagination consensus discovery before Mind/Bifrost adoption. - `epiphany-verse-query bifrost-publication` and `tools/epiphany_local_run.ps1 -Mode bifrost-publication` provide the non-mutating Bifrost body-change publication proof path. It writes Bifrost intent, Bifrost publication receipt, and GitHub publication receipt documents from explicit review/verification/credit inputs, verifies latest keys through narrow CultMesh loaders, publishes follow-on command hints for swarm overview, tool directory, and wrapper Bifrost publication readback, and exposes no private state. - - `epiphany-verse-query bifrost-ledger` and `tools/epiphany_local_run.ps1 -Mode bifrost-ledger` provide the compact Bifrost ledger sight organ. It reads only the latest Bifrost body-change intent, Bifrost publication receipt, GitHub publication receipt, public-proof publication receipt, repo-work readiness-review receipt, collaboration feedback, and Imagination consensus receipt through narrow CultMesh loaders, returns agent-friendly ledger TUI rows, publishes follow-on command hints for swarm overview, tool directory, collaboration feedback, Bifrost publication, and Bifrost ledger readback, and exposes no private state. Compact ledger rows carry explicit `owner=`, `public=`, and `private=false`, so body-change/public-feedback proof is inspectable without opening raw local Verse payloads or inferring authority from document names. Bifrost ledger readback now derives four `BIFROST-ACCOUNTING` rows for `body-change-publication`, `public-proof-publication`, `repo-work-readiness-review`, and `collaboration-consensus`, with closure status, ledger/receipt/public refs, review and credit receipt counts, artifact count, and private-state seal. Readiness-review accounting closes only when latest `epiphany.cultmesh.repo_work_readiness_review.v0` has four Maintainer/Soul/Mind/Bifrost review refs, readiness approval, zero missing required rows, present review artifact, and no durable-state/publication/merge/sync/deployment/service/Hands/private authority. Native proof `.epiphany-smoke\repo-work-readiness-20260621-120755` reported the closed row with `reviewReceiptCount=4`, `publicArtifactCount=1`, and `privateStateExposed=false`; wrapper proof `local-20260621-131113-240-be2b19f2` proved `bifrost-ledger` honors explicit repo-local Verse read targets. + - `epiphany-verse-query bifrost-ledger` and `tools/epiphany_local_run.ps1 -Mode bifrost-ledger` provide the compact Bifrost ledger sight organ. It reads only the latest Bifrost body-change intent, Bifrost publication receipt, GitHub publication receipt, public-proof publication receipt, repo-work readiness-review receipt, collaboration feedback, Imagination consensus receipt, and Mind-admitted repo-work map entries through narrow CultMesh loaders, returns agent-friendly ledger TUI rows, publishes follow-on command hints for swarm overview, tool directory, collaboration feedback, Bifrost publication, and Bifrost ledger readback, and exposes no private state. Compact ledger rows carry explicit `owner=`, `public=`, and `private=false`, so body-change/public-feedback proof is inspectable without opening raw local Verse payloads or inferring authority from document names. Bifrost ledger readback now derives six `BIFROST-ACCOUNTING` rows for `body-change-publication`, `public-proof-publication`, `repo-work-readiness-review`, `artifact-acceptance-request`, `metrics-request`, and `collaboration-consensus`, with closure status, ledger/receipt/public refs, review and credit receipt counts, artifact count, and private-state seal. Readiness-review accounting closes only when latest `epiphany.cultmesh.repo_work_readiness_review.v0` has four Maintainer/Soul/Mind/Bifrost review refs, readiness approval, zero missing required rows, present review artifact, and no durable-state/publication/merge/sync/deployment/service/Hands/private authority. Artifact-acceptance and metrics request rows become `open` when a Mind-admitted `repo.artifact_acceptance_request` or `repo.metrics_request` map entry exists, carrying the latest Mind commit receipt, Bifrost gate, commit ref, closure review count, and changed-path count without granting final acceptance, metrics, credit, publication, merge, upstream sync, deployment, service lifecycle, Hands, or private-state authority. Native proofs `.epiphany-smoke\repo-artifact-acceptance-request-family-20260621-122343` and `.epiphany-smoke\repo-metrics-request-family-20260621-122503` reported open request rows; wrapper proof `local-20260621-132626-365-878a1113` printed the open metrics request row from the repo-local Verse target. Native proof `.epiphany-smoke\repo-work-readiness-20260621-120755` remains provenance for the closed readiness-review row; wrapper proof `local-20260621-131113-240-be2b19f2` proved `bifrost-ledger` honors explicit repo-local Verse read targets. - `epiphany-verse-query receipt-directory` and `tools/epiphany_local_run.ps1 -Mode receipt-directory` provide the compact latest-witness directory over local Verse. It indexes operator run, daemon poke, daemon tool invocation, Eve connection, Bifrost publication, Imagination consensus, coordinator run, Hands gate, role review, work-loop, cluster service lifecycle, single-service lifecycle, cluster service execution runbook, single-service execution runbook, scheduler, Persona speech, and agent-state SoA witness families from typed local Verse projections; returns agent-friendly `OK`/`ABSENT`/`ATTN` TUI rows with owner, family, status, route, latest id, follow-up command, `presentRowCount`, and `absentRowCount`; preserves `missingRowCount` as compatibility for absent witnesses; flags sealed service lifecycle failure states such as `not-elevated`, `execution-refused-not-elevated`, and `incomplete` as attention without exposing receipt payloads; routes service lifecycle receipts by their typed receipt action through `service_execution_check_follow_up_command` (readiness to readiness, install to install execute, start/stop to control execute, status/reconcile to their readback rites, audit to audit), while cluster/single execution-runbook witnesses route to their runbook regeneration wrappers; and exposes no private state or receipt payload previews. The lifecycle projection now reads the typed receipt family, splits `cluster-service-lifecycle` from `service-lifecycle`, selects the latest attention receipt before falling back to latest overall, and exposes `service-id::action` route values such as `epiphany-cluster-daemon-services::cluster-windows-service-execution-audit`, so agents can see the owning lifecycle action without opening raw audit JSON. Compact receipt TUI rows append `followUp=`, artifact status, and SHA-256; wrapper proof `local-20260618-205920-451-383b0da7` now prints all seventeen compact rows in `receiptRows`, including missing Hands/role/work-loop gates, runbook hashes, scheduler follow-up, Bifrost/Imagination witnesses, and the active service lifecycle attention rows. It also exposes `cluster-service-execution-runbook` plus `service-execution-runbook` as display-only rows, so newer harmless planned/runbook lifecycle receipts cannot hide the active seven-service cluster wound. Receipt-directory JSON now carries Rust-owned `attentionRouteRows` derived from the same policy predicate as `attentionRowCount`, and the wrapper prints that field instead of rebuilding attention from ad hoc status strings; source smoke now proves a `cluster-windows-service-execution-readiness` receipt routes to `cluster-service-execution-readiness` and wrapper mode `cluster-service-execution-readiness` instead of laundering the row through audit. Live proof `local-20260618-212134-758-c7c56240` left the old degraded Hands daemon-poke receipt as an `OK` historical witness while attention routes named only the cluster and single-service lifecycle wounds. Daemon-poke rows now resolve historical receipt status against current daemon liveness: source smoke proves degraded remains degraded before heartbeat recovery and becomes `resolved` after current status returns ready, while live wrapper proof `local-20260618-212649-563-48647018` printed the old Hands poke receipt as `OK | Self | daemon-poke | resolved`. - `tools/epiphany_local_run.ps1 -Mode service-tick` is the wrapper-owned daemon scheduler pulse rite. It runs `epiphany-daemon-supervisor tick` through the same local Verse store, operator run intent/receipt, agent-state SoA refresh, and swarm-brake preflight as other service lifecycle modes, but leaves restart authority inside durable daemon restart policies. The receipt directory scheduler row now follows up with `tools/epiphany_local_run.ps1 -Mode service-tick` instead of passive service status. Proof seeded one disabled Persona restart policy as inert policy metadata, then the wrapper wrote `daemon-scheduler-receipt-epiphany-daemon-supervisor-0` with `status=tickComplete`, `outcomeCount=1`, `skippedCount=1`, `restartedCount=0`, `refusedCount=0`, and `privateStateExposed=false`; the follow-up receipt-directory proof reported the scheduler row as present with route `*`, follow-up command `service-tick`, and no private-state exposure. - `epiphany-cluster-daemon` is the first real per-cluster daemon heartbeat body. It runs as a narrow Rust binary parameterized by daemon id, publishes typed `epiphany.cultmesh.daemon_status.v0` heartbeats into the shared local Verse, can run once or loop, and exposes no private state. Durable restart policies for Self, Hands, Persona, Imagination, Eyes, Modeling, and Soul now invoke `epiphany-cluster-daemon heartbeat`, not the generic query/debug writer. A degraded proof showed `service-tick` invoking all seven daemon bodies through the supervisor and restoring ready liveness with sealed scheduler/poke receipts; a fresh tick no-ops when all heartbeats are current. `epiphany-daemon-supervisor cluster-service-runbook` and wrapper `-Mode cluster-service-runbook` write a non-mutating service runbook plus `daemon_service_lifecycle` receipt for all seven organ daemon `epiphany-cluster-daemon serve` commands. Direct `service-runbook` and `cluster-service-runbook` wrapper summaries now print local artifact SHA-256 plus follow-up/aftercare wrapper routes; live proofs `local-20260618-232133-314-4e55120e` and `local-20260618-232146-541-982dd60b` showed hashes `85a956f768e584a9d098f13a9bf03fc3560915821a2ae7eaab94889dd9ecda85` and `40616423a9210101486949d07291bf795175579a39e99de5e5a759f8e0d7a78c` without service mutation. Wrapper `service-plan` and `service-launch` now expose the native daemon-supervisor service lifecycle surfaces under the same brake gate; `service-launch` silences child stdout/stderr so the parent lifecycle receipt remains the only stdout JSON. Live proof `local-20260618-232935-349-7e3901c8` completed a bounded one-iteration launch with `exitCode=0` and no private-state exposure. `epiphany-daemon-supervisor cluster-service-install-plan` and wrapper `-Mode cluster-service-install-plan` write a non-mutating Windows install script plus lifecycle receipt for seven distinct per-organ Windows services. Wrapper `-Mode cluster-service-install-execute` requests execution through the same typed path and, in non-elevated shells, writes `execution-refused-not-elevated` with `executed=false` instead of mutating services. Direct cluster install wrapper summaries now include `artifactSha256=` and `followUp=tools/epiphany_local_run.ps1 -Mode cluster-service-install-execute`; live proofs `local-20260618-230937-335-71c4fdaa` and `local-20260618-230937-313-cb288388` showed the planned and non-elevated-refused cluster install artifact hash `c6b697e173eb319073da341fc90c2963bcd6bee63d804349205b6309c88df764`. `epiphany-daemon-supervisor cluster-service-audit` and wrapper `-Mode cluster-service-audit` read Windows service-manager state for those seven expected service names, writing an incomplete audit receipt when they are missing; direct audit summaries now point missing cluster services to `cluster-service-install-plan` plus `cluster-service-execution-audit` aftercare, with live proof `local-20260618-232200-992-b842ae01` reporting seven missing services and no mutation. `epiphany-daemon-supervisor cluster-service-start`/`cluster-service-stop` and wrapper `-Mode cluster-service-start-plan`, `cluster-service-stop-plan`, `cluster-service-start-execute`, and `cluster-service-stop-execute` record cluster lifecycle receipts for all seven services: plan modes emit seven `*-planned` rows without mutation, and explicit execute modes refuse as `execution-refused-not-elevated` with seven refused rows when the shell lacks service authority. The cluster install/audit/control wrapper summaries now print compact `serviceRows` for all seven daemon-owned Windows service names with daemon id, status or observed status, cluster id, executed flag, exit code, start type, and `private=false`; live proofs `local-20260618-211051-126-2a89d61c`, `local-20260618-211051-125-cd687ee2`, `local-20260618-211051-063-f0ff980d`, and `local-20260618-211118-108-df5cb8cd` show seven missing audit rows, seven ready/demand install-plan rows, seven start-planned rows, and seven stop-planned rows without service mutation. `cluster-service-execution-runbook` writes an admin-gated wrapper sequence for cluster-native readiness, cluster install, cluster start, cluster audit, cluster stop, and final cluster audit; the artifact now uses `Invoke-EpiphanyRunbookStep` to reset `$LASTEXITCODE`, catch thrown/nonzero failures, continue gathering receipts after a failed step, and always runs `cluster-service-execution-audit` from `finally`; generated child execution runbooks no longer use `Invoke-Expression`, and each step invokes the known wrapper `ScriptPath` with an explicit `Arguments` array. The wrapper calls `epiphany-daemon-supervisor cluster-service-execution-runbook` after artifact generation, so the runbook itself has a typed `daemon_service_lifecycle` receipt with action `cluster-windows-service-execution-runbook`, status `written`, artifact path, final-audit metadata, step-failure policy metadata, and `privateStateExposed=false`. Its wrapper JSON and typed receipt args expose `runbookTryModes`, `finalAuditMode=cluster-service-execution-audit`, `finalAuditRunsInFinally=true`, `stepFailurePolicy=continue-after-step-failure`, `continueAfterStepFailure=true`, `nonzeroExitFailsStep=true`, and `exitsNonzeroAfterFinalAudit=true`; direct wrapper summaries now print the exact `elevatedCommand=Start-Process PowerShell -Verb RunAs -Wait ...` invocation, `artifactSha256=`, and `aftercare=tools/epiphany_local_run.ps1 -Mode cluster-service-execution-audit`. Live proof `local-20260619-010940-407-b0744f08` generated the robust cluster artifact and printed hash `bf116ed4fd5bb2c9dc77f5032d19e792b012941a60b109389b79e5fcb0a2a5f6` without service mutation. `cluster-service-execution-audit` first requires the sealed `cluster-windows-service-execution-runbook` receipt, then checks the latest cluster-native readiness plus cluster install/start/audit/stop lifecycle receipts by receipt timestamp and reports `complete` only when the runbook and elevated effect receipts are sealed and successful. Audit check rows retain lifecycle `operatorArtifactRef`; wrapper summaries now print OK runbook witnesses with SHA-256 before compact failed-check anatomy. Live proof `local-20260618-170322-330-e6cb2117` printed `cluster-windows-service-execution-runbook=...\epiphany-cluster-daemon-services-execution-runbook.ps1:sha256=3239ac17008b1ce857970e40b17d37a1ecf1631a3a6636bb2b8678312fb604a0` and the expected five failed checks without mutating Windows services. @@ -649,5 +649,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: Repo-work readiness review proof is now visible in Gjallar, receipt-directory, and Bifrost ledger accounting. `epiphany-work readiness-review` consumes a ready `epiphany.repo_work_readiness_report.v0`, requires Maintainer, Soul, Mind, and Bifrost review refs, writes `epiphany.repo_work_readiness_review_receipt.v0`, and mirrors approved review receipts into local Verse as `epiphany.cultmesh.repo_work_readiness_review.v0`. Gjallar/swarm-overview/triage project `REPO-WORK-READINESS-REVIEW` rows and a non-mutating action row with readiness approval true but dangerous authority false. `receipt-directory` indexes the review artifact/ref/SHA. `bifrost-ledger` now derives a closed `repo-work-readiness-review` accounting row when approval status, four review refs, present artifact, zero missing rows, and all dangerous authority denials hold. Native proof `.epiphany-smoke\repo-work-readiness-20260621-120755` reported the closed accounting row; wrapper proof `local-20260621-131113-240-be2b19f2` printed it from the repo-local Verse target. - next_action: Continue repo-swarm MVP work from `notes/epiphany-repo-swarm-mvp-contract.md`. Useful next cuts are deeper external-work metrics/accepted-artifact accounting, another useful repo-owned safe action family if needed, or explicit elevated/operator Idunn execution proof only when the human grants that authority. Persona-to-Imagination consensus readback, Mind-owned interpreter brief cargo, safe-family planning depth and closure, Gjallar closure/readiness/readiness-review rows, receipt-directory readiness-review indexing, Bifrost ledger accounting rows including readiness-review closure, readiness wrapper mouth, repo deployment handoff/readback wrappers, readiness deployment-aftercare closure, readiness Idunn/tool-directory receipt validation, readiness Bifrost/GitHub publication-chain validation, readiness upstream-main sync validation, and readiness review/adoption receipt validation are sealed; preserve Idunn service lifecycle ownership, Bifrost publication/upstream-main ownership, Mind durable-state admission, and existing CultMesh/Odin/Eve tool directories. Windows service install/start/deployment execution still requires explicit elevated operator authority. + last_completed_repo_swarm_cut: Bifrost ledger accounting now sees artifact-acceptance and metrics requests as open external-work request lanes without treating them as final acceptance or metrics truth. `epiphany-verse-query bifrost-ledger` derives six accounting rows; the new `artifact-acceptance-request` and `metrics-request` rows come from Mind-admitted repo-work map entries for safe families `repo.artifact_acceptance_request` and `repo.metrics_request`, carry the latest Mind commit receipt, Bifrost gate, commit ref, closure review count, changed-path artifact count, and `privateStateExposed=false`, and grant no artifact acceptance, metrics ledger, credit, publication, merge, upstream sync, deployment, service lifecycle, or Hands authority. Native proofs `.epiphany-smoke\repo-artifact-acceptance-request-family-20260621-122343` and `.epiphany-smoke\repo-metrics-request-family-20260621-122503` reported `accountingRowCount=6`, `status=open`, `reviewReceiptCount=3`, and `publicArtifactCount=1` for the relevant lane; wrapper proof `local-20260621-132626-365-878a1113` printed the open metrics request row from the repo-local Verse target. + next_action: Continue repo-swarm MVP work from `notes/epiphany-repo-swarm-mvp-contract.md`. Useful next cuts are final accepted-artifact/metrics ledger receipt surfaces, another useful repo-owned safe action family if needed, or explicit elevated/operator Idunn execution proof only when the human grants that authority. Persona-to-Imagination consensus readback, Mind-owned interpreter brief cargo, safe-family planning depth and closure, Gjallar closure/readiness/readiness-review rows, receipt-directory readiness-review indexing, Bifrost ledger accounting rows including readiness-review closure plus open artifact/metrics request rows, readiness wrapper mouth, repo deployment handoff/readback wrappers, readiness deployment-aftercare closure, readiness Idunn/tool-directory receipt validation, readiness Bifrost/GitHub publication-chain validation, readiness upstream-main sync validation, and readiness review/adoption receipt validation are sealed; preserve Idunn service lifecycle ownership, Bifrost publication/upstream-main ownership, Mind durable-state admission, and existing CultMesh/Odin/Eve tool directories. Windows service install/start/deployment execution still requires explicit elevated operator authority.