From 04d61d696fc1ac3427be3588431dcd36bd359860 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 21 Jun 2026 11:16:24 +0100 Subject: [PATCH] Add deployment aftercare to repo readiness --- .../bin/epiphany-repo-work-readiness-smoke.rs | 17 +++ epiphany-core/src/bin/epiphany-work.rs | 112 +++++++++++++++++- notes/epiphany-repo-swarm-mvp-contract.md | 12 +- notes/fresh-workspace-handoff.md | 4 +- state/ledgers.msgpack | Bin 367681 -> 368292 bytes state/map.yaml | 4 +- tools/epiphany_local_run.ps1 | 8 ++ 7 files changed, 147 insertions(+), 10 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-repo-work-readiness-smoke.rs b/epiphany-core/src/bin/epiphany-repo-work-readiness-smoke.rs index f603460c..6cae35d0 100644 --- a/epiphany-core/src/bin/epiphany-repo-work-readiness-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-work-readiness-smoke.rs @@ -208,6 +208,22 @@ fn run_smoke(args: Args) -> Result { ], &root, )?; + let deployment_aftercare_fixture = repo + .join(".epiphany") + .join("work") + .join("deployment-aftercare-audit.json"); + write_json( + &deployment_aftercare_fixture, + &json!({ + "schemaVersion": "epiphany.repo_deployment_aftercare_audit.v0", + "status": "complete", + "deploymentComplete": true, + "deploymentAuthority": false, + "gitPushAuthority": false, + "serviceLifecycleAuthority": false, + "privateStateExposed": false + }), + )?; let readiness = cargo_json( &manifest, "epiphany-work", @@ -264,6 +280,7 @@ fn run_smoke(args: Args) -> Result { require_row(&readiness, "bifrost-publication", false)?; require_row(&readiness, "upstream-main-sync", false)?; require_row(&readiness, "idunn-lifecycle", false)?; + require_row(&readiness, "deployment-aftercare", true)?; require_row(&readiness, "tool-directory", false)?; require_row(&readiness, "private-state-redaction", true)?; diff --git a/epiphany-core/src/bin/epiphany-work.rs b/epiphany-core/src/bin/epiphany-work.rs index 4b0a8d6b..ee27a2f5 100644 --- a/epiphany-core/src/bin/epiphany-work.rs +++ b/epiphany-core/src/bin/epiphany-work.rs @@ -349,6 +349,8 @@ struct ReadinessArgs { public_proof: Option, idunn_lifecycle_receipt: Option, tool_directory_receipt: Option, + deployment_aftercare_audit_receipt: Option, + deployment_aftercare_audit_receipt_ref: Option, write_receipt: bool, } @@ -1160,6 +1162,8 @@ fn parse_readiness_args(args: impl Iterator) -> Result) -> Result { tool_directory_receipt = Some(take_path(&mut args, "--tool-directory-receipt")?); } + "--deployment-aftercare-audit-receipt" | "--deployment-aftercare-receipt" => { + deployment_aftercare_audit_receipt = Some(take_path( + &mut args, + "--deployment-aftercare-audit-receipt", + )?); + } + "--deployment-aftercare-audit-receipt-ref" | "--deployment-aftercare-receipt-ref" => { + deployment_aftercare_audit_receipt_ref = Some(take_string( + &mut args, + "--deployment-aftercare-audit-receipt-ref", + )?); + } "--no-write" | "--read-only" => write_receipt = false, other => return Err(anyhow!("unexpected readiness argument {other:?}")), } @@ -1190,6 +1206,8 @@ fn parse_readiness_args(args: impl Iterator) -> Result Result { "Supply --idunn-lifecycle-receipt after Idunn service audit/readiness proof.", )); } + let default_deployment_aftercare_audit_receipt = + artifact_dir.join("deployment-aftercare-audit.json"); + let deployment_aftercare_audit_path = + args.deployment_aftercare_audit_receipt + .as_ref() + .or_else(|| { + if default_deployment_aftercare_audit_receipt.exists() { + Some(&default_deployment_aftercare_audit_receipt) + } else { + None + } + }); + if let Some(receipt_ref) = args.deployment_aftercare_audit_receipt_ref.as_ref() { + let readiness_store = local_verse_store + .clone() + .unwrap_or_else(|| workspace.join(".epiphany").join("local-verse.ccmp")); + let receipt = if receipt_ref.trim().is_empty() || receipt_ref.trim() == "latest" { + load_latest_epiphany_cultmesh_idunn_aftercare_audit_receipt( + &readiness_store, + runtime_id.clone(), + )? + } else { + load_epiphany_cultmesh_idunn_aftercare_audit_receipt( + &readiness_store, + runtime_id.clone(), + receipt_ref, + )? + }; + if let Some(receipt) = receipt { + let status_ok = matches!(receipt.status.as_str(), "ok" | "complete" | "passed"); + let satisfied = receipt.schema_version + == "gamecult.idunn.deployment_aftercare_audit.v0" + && status_ok + && !receipt.private_state_exposed; + rows.push(json!({ + "kind": "deployment-aftercare", + "owner": "Idunn/Soul", + "requiredSchema": "gamecult.idunn.deployment_aftercare_audit.v0", + "evidenceRef": receipt_ref, + "artifactStatus": "cultmesh", + "schemaVersion": receipt.schema_version, + "documentStatus": receipt.status, + "source": "cultmesh", + "localVerseStore": readiness_store.display().to_string(), + "runtimeId": runtime_id.clone(), + "receiptId": receipt.receipt_id, + "deploymentReceiptId": receipt.deployment_receipt_id, + "auditRef": receipt.audit_ref, + "satisfied": satisfied, + "status": if satisfied { "satisfied" } else { "missing" }, + "note": "Idunn deployment aftercare audit was supplied from repo-local CultMesh sight.", + "deploymentAuthority": false, + "gitPushAuthority": false, + "serviceLifecycleAuthority": false, + "privateStateExposed": receipt.private_state_exposed + })); + } else { + rows.push(readiness_missing_row( + "deployment-aftercare", + "Idunn/Soul", + "gamecult.idunn.deployment_aftercare_audit.v0", + "Supply --deployment-aftercare-audit-receipt-ref after Idunn records deployment aftercare in the repo-local Verse.", + )); + } + } else if let Some(path) = deployment_aftercare_audit_path { + let receipt = read_json_if_exists(path)?; + let satisfied = receipt.as_ref().is_some_and(|receipt| { + string_from_json(receipt, &["schemaVersion"]).as_deref() + == Some("epiphany.repo_deployment_aftercare_audit.v0") + && string_from_json(receipt, &["status"]).as_deref() == Some("complete") + && bool_from_json(receipt, &["deploymentComplete"]) == Some(true) + && bool_from_json(receipt, &["deploymentAuthority"]) == Some(false) + && bool_from_json(receipt, &["gitPushAuthority"]) == Some(false) + && bool_from_json(receipt, &["serviceLifecycleAuthority"]) == Some(false) + && bool_from_json(receipt, &["privateStateExposed"]) == Some(false) + }); + rows.push(readiness_path_row( + "deployment-aftercare", + "Idunn/Soul", + "epiphany.repo_deployment_aftercare_audit.v0", + path, + satisfied, + "Idunn deployment aftercare audit completed and stayed sight-only.", + )?); + } else { + rows.push(readiness_missing_row( + "deployment-aftercare", + "Idunn/Soul", + "epiphany.repo_deployment_aftercare_audit.v0", + "Supply --deployment-aftercare-audit-receipt, --deployment-aftercare-audit-receipt-ref, or run deployment-aftercare-audit into the repo work artifact directory.", + )); + } if let Some(path) = args.tool_directory_receipt.as_ref() { rows.push(readiness_path_row( "tool-directory", @@ -15109,7 +15219,7 @@ fn print_usage() { publish --workspace [--item ] --change-summary --justification --verification-receipt --review-receipt --ledger-entry-id --pull-request-url --pull-request-title \n\ sync --workspace [--item ] [--publish-receipt ] [--upstream-ref origin/main] --merge-receipt \n\ overview --workspace [--item ] [--accept-receipt ] [--no-write]\n\ - readiness --workspace [--item ] [--accept-receipt ] [--public-proof ] [--idunn-lifecycle-receipt ] [--tool-directory-receipt ] [--no-write]\n\ + readiness --workspace [--item ] [--accept-receipt ] [--public-proof ] [--idunn-lifecycle-receipt ] [--deployment-aftercare-audit-receipt |--deployment-aftercare-audit-receipt-ref ] [--tool-directory-receipt ] [--no-write]\n\ deployment-config-audit --workspace [--artifact-dir ] [--no-write]\n\ deployment-execution-runbook --workspace [--artifact-dir ] [--remote origin] [--no-write]\n\ deployment-aftercare-audit --workspace [--artifact-dir ] [--local-verse-store ] [--runtime-id ] [--runbook-receipt ] [--idunn-deployment-receipt-ref |--idunn-deployment-receipt ] [--aftercare-audit-receipt-ref |--aftercare-audit-receipt ] [--no-write]\n\ diff --git a/notes/epiphany-repo-swarm-mvp-contract.md b/notes/epiphany-repo-swarm-mvp-contract.md index 8cf107c0..6e1c7159 100644 --- a/notes/epiphany-repo-swarm-mvp-contract.md +++ b/notes/epiphany-repo-swarm-mvp-contract.md @@ -1610,7 +1610,7 @@ MVP readiness report without approving readiness. `epiphany-work readiness` inspects repo init, swarm online, Persona intake, Imagination plan, Self queue-run, Hands branch work, Soul closure, Modeling/Mind admission, redacted public proof, Bifrost publication, upstream-main sync, Idunn lifecycle, daemon -tool directory, and private-state redaction rows, then writes +deployment aftercare, tool directory, and private-state redaction rows, then writes `.epiphany/work/work-readiness-.json` as `epiphany.repo_work_readiness_report.v0`. When the accept receipt names a repo-local Verse store, it also mirrors a compact @@ -1622,10 +1622,12 @@ rows, `latestRepoWorkReadiness`, and non-mutating `repo-work-readiness` action rows. The command is sight only: it denies readiness approval, durable state commit, publication, PR, merge, sync, deployment, service lifecycle, Hands action, cross-body mutation, private Verse rummaging, and private-state -exposure. Smoke `.epiphany-smoke\repo-work-readiness-20260621-094043` proved a -partial local work path reports `not-ready` with four missing rows: Bifrost -publication, upstream-main sync, Idunn lifecycle, and tool directory; writes -readiness id `repo-work-readiness-repo-work-readiness`; and Gjallar reports +exposure. Smoke `.epiphany-smoke\repo-work-readiness-20260621-101053` proved a +partial local work path can satisfy the deployment-aftercare row from a sealed +`epiphany.repo_deployment_aftercare_audit.v0` artifact while still reporting +`not-ready` with four missing rows: Bifrost publication, upstream-main sync, +Idunn lifecycle, and tool directory; writes readiness id +`repo-work-readiness-repo-work-readiness`; and Gjallar reports `repoWorkReadinessCount=1` without private-state exposure. Bifrost public-proof publication transport is now the closure after local diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 637ddf07..45742daa 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -159,7 +159,7 @@ remembers doctrine; the branch remembers the blade. - 2026-06-20: `derive-plan` action-item receipts now carry richer model-authored planning facets without widening command authority, and `adopt --from-plan` now preserves the chosen Imagination action item in the Mind adoption receipt. New CLI fields `--assumption`, `--constraint`, `--non-goal`, `--open-question`, `--decision-point`, and `--evidence-need` are recorded under `planningFacets` in `epiphany.repo_work_imagination_action_items_receipt.v0`, mirrored into the plan derivation's `actionItemReceipt`, then copied into `epiphany.repo_work_adoption_receipt.v0` as `adoptedActionItem`; deterministic defaults are emitted when a model does not supply them. Focused smoke `.epiphany-smoke\repo-planning-facets-20260620-164958` ran init -> online -> accept -> model-authored `derive-plan --action-family planning-note` with all facet fields -> tick run/adopt/execute/close; the action-item receipt preserved assumptions, constraints, non-goals, open questions, decision points, and evidence needs while `handsAuthorityGranted=false`, `durableStateAdmitted=false`, `handsCommandAuthority=false`, `durableStateAuthority=false`, and `privateStateExposed=false`; the adoption receipt preserved `adoptedActionItem.safeActionFamily=repo.markdown_planning_note`, planning facets, `adoptedActionItem.handsCommandAuthority=false`, `adoptedActionItem.durableStateAuthority=false`, `adoptedActionItem.publicationAuthorized=false`, `authority.handsAuthorityGranted=true`, `authority.durableStateAdmitted=false`, and `privateStateExposed=false`; Soul closure passed with family assertions and path scope matched. 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-21: `repo-planning-brief` is live as richer family-friendly Imagination decomposition cargo, and Soul closure now emits a typed safe-family planning readback for its full matrix. `epiphany-work derive-plan --action-family repo-planning-brief` writes `.epiphany/planning-briefs/.toml` with safe family `repo.planning_brief`, status `draft`, twenty-one candidate next safe families grouped as preparation, adoption/queue, execution/review, publication/accounting, and policy/deployment, requested-path / verification-ask / evidence-need / owner / authority-denial / closure-proof requirements, and Mind/Self/Substrate/Hands/Soul/Bifrost/Idunn gate ordering while denying objective adoption, scheduling, substrate access, Hands action, shell, commit, publication, deployment execution, service lifecycle, cross-body mutation, private transcripts, raw-result payloads, and private-state exposure. Closure `familyAssertions.safeFamilyPlanning` now carries `epiphany.repo_work_safe_family_planning_readback.v0` with candidate-family rows/count, grouped matrix rows, matrix control flags, closure proof flags, planning requirement flags, gate flags, authority-denial flags, and the private-state seal. Focused smoke `.epiphany-smoke\repo-planning-brief-family-20260621-090158` ran init -> online -> accept -> repo-planning-brief derive-plan -> tick run/adopt/execute/close; Hands committed only `.epiphany/planning-briefs/repo-planning-brief-family.toml`, Soul passed with `pathScopeMatched=true`, `familyAssertions.status=passed`, `candidateNextSafeFamilyCount=21`, `allMatrixGroupsComplete=true`, `matrixControlsPresent=true`, `allClosureProofsPresent=true`, `allRequiredGatesPresent=true`, `authorityDenied=true`, and `privateStateExposed=false`. Current remaining repo-swarm MVP organs are deeper interpreter semantics, richer closure/map readback, another useful repo-owned safe family if needed, or Idunn-owned queue-run service lifecycle under explicit operator authority. - 2026-06-21: `repo-readiness-review-request` is live as the family-friendly MVP readiness review gate. `epiphany-work derive-plan --action-family repo-readiness-review-request` writes `.epiphany/readiness-reviews/.toml` with safe family `repo.readiness_review_request`, status `awaiting-mvp-readiness-review`, requested owner `Maintainer/Soul/Mind/Bifrost`, proof-bundle/readiness packet requirements for repo init, online swarm, Persona intake, Imagination planning, Self queue-run, Hands branch work, Soul closure, Modeling map update, Mind admission, Bifrost publication, upstream-main sync, Idunn lifecycle, global tool directory, and private-state redaction, while denying readiness approval, durable state commit, publication, Bifrost publication, PR, merge, upstream sync, deployment, service lifecycle, Hands action, cross-body mutation, private Verse rummaging, and private-state exposure. Focused smoke `.epiphany-smoke\repo-readiness-review-request-family-20260621-090003` ran init -> online -> accept -> repo-readiness-review-request derive-plan -> tick run/adopt/execute/close; Hands committed only `.epiphany/readiness-reviews/repo-readiness-review-request-family.toml`, Soul passed with `pathScopeMatched=true`, `familyAssertions.status=passed`, `awaitingMvpReadinessReview=true`, `idunnLifecycleRequired=true`, `toolDirectoryRequired=true`, and `privateStateExposed=false`. The planning-brief matrix now counts twenty-one families and includes this readiness review in publication/accounting; smoke `.epiphany-smoke\repo-planning-brief-family-20260621-090158` proved `candidateNextSafeFamilyCount=21`. -- 2026-06-21: `epiphany-work readiness` is live as a non-mutating repo-work MVP readiness sight rite, and now mirrors compact readiness into the repo-local Verse. It reuses overview/proof-bundle state, inspects repo init, online swarm, Persona intake, Imagination plan, Self queue-run, Hands execute, Soul closure, Modeling/Mind admission, redacted public proof, Bifrost publication, upstream-main sync, Idunn lifecycle, daemon tool directory, and private-state redaction rows, then writes `.epiphany/work/work-readiness-.json` with schema `epiphany.repo_work_readiness_report.v0` plus `epiphany.cultmesh.repo_work_readiness.v0` when the accept receipt names a local Verse store. Gjallar/swarm-overview/swarm-triage now expose `repoWorkReadinessRows`, compact `REPO-WORK-READINESS` TUI rows, `latestRepoWorkReadiness`, and non-mutating `repo-work-readiness` action rows. It can return `ready` only when all rows are satisfied, but it does not approve readiness or grant durable state, publication, PR, merge, sync, deployment, service lifecycle, Hands action, cross-body, or private Verse authority. Focused smoke `.epiphany-smoke\repo-work-readiness-20260621-094043` ran fresh repo init -> online -> accept -> checklist plan/tick close -> queue-run dry-run -> public-proof export -> readiness -> Gjallar; it reported `not-ready`, `missingRequiredCount=4` for Bifrost publication, upstream-main sync, Idunn lifecycle, and tool directory, wrote readiness id `repo-work-readiness-repo-work-readiness`, Gjallar reported `repoWorkReadinessCount=1`, while local work/proof rows were satisfied, `sightOnly=true`, and `privateStateExposed=false`. +- 2026-06-21: `epiphany-work readiness` is live as a non-mutating repo-work MVP readiness sight rite, and now mirrors compact readiness into the repo-local Verse. It reuses overview/proof-bundle state, inspects repo init, online swarm, Persona intake, Imagination plan, Self queue-run, Hands execute, Soul closure, Modeling/Mind admission, redacted public proof, Bifrost publication, upstream-main sync, Idunn lifecycle, deployment aftercare, daemon tool directory, and private-state redaction rows, then writes `.epiphany/work/work-readiness-.json` with schema `epiphany.repo_work_readiness_report.v0` plus `epiphany.cultmesh.repo_work_readiness.v0` when the accept receipt names a local Verse store. Gjallar/swarm-overview/swarm-triage now expose `repoWorkReadinessRows`, compact `REPO-WORK-READINESS` TUI rows, `latestRepoWorkReadiness`, and non-mutating `repo-work-readiness` action rows. It can return `ready` only when all rows are satisfied, but it does not approve readiness or grant durable state, publication, PR, merge, sync, deployment, service lifecycle, Hands action, cross-body, or private Verse authority. Focused smoke `.epiphany-smoke\repo-work-readiness-20260621-101053` ran fresh repo init -> online -> accept -> checklist plan/tick close -> queue-run dry-run -> public-proof export -> sealed deployment-aftercare fixture -> readiness -> Gjallar; it reported `not-ready`, `missingRequiredCount=4` for Bifrost publication, upstream-main sync, Idunn lifecycle, and tool directory, with `deployment-aftercare` satisfied, readiness id `repo-work-readiness-repo-work-readiness`, Gjallar `repoWorkReadinessCount=1`, `sightOnly=true`, and `privateStateExposed=false`. - 2026-06-21: `repo-interpreter-brief` is live as Mind-owned interpretation cargo between Imagination consensus and downstream action-family adoption. `epiphany-work derive-plan --action-family repo-interpreter-brief` writes `.epiphany/interpreter-briefs/.toml` with safe family `repo.interpreter_brief`, status `draft`, owner `Mind`, source `Imagination`, consensus/safe-family/path/verification/evidence requirements, semantic checks for intent/scope/paths/verification/evidence/rollback/non-goals/questions/consensus, candidate next safe families, and Mind/Soul/Bifrost/Hands/Substrate/Idunn gates while denying direct state commit, objective adoption, scheduling, substrate access, Hands action, shell, commit, publication, deployment execution, service lifecycle, cross-body mutation, private transcripts, raw-result payloads, and private-state exposure. Focused smoke `.epiphany-smoke\repo-interpreter-brief-family-20260621-010858` ran init -> online -> accept -> repo-interpreter-brief derive-plan -> tick run/adopt/execute/close; Hands committed only `.epiphany/interpreter-briefs/repo-interpreter-brief-family.toml`, Soul passed with `pathScopeMatched=true`, `familyAssertions.status=passed`, `mindOwnsInterpretation=true`, `candidateActionsNonAuthoritative=true`, `directStateCommitAuthorized=false`, `handsActionAuthorized=false`, and `privateStateExposed=false`. - 2026-06-20: Gjallar repo-work map sight now includes semantic stage lenses. `epiphany-verse-query gjallar`, swarm overview, and swarm triage expose `repoWorkMapStageLensRows` plus `REPO-WORK-MAP-STAGE` rows derived from Mind-admitted local Verse map entries, grouping safe families into stages and owning organs such as `imagination-planning` / `Imagination`, `hands-execution-request` / `Hands`, `soul-verification-request` / `Soul`, `bifrost-publication-accounting` / `Bifrost`, and `idunn-deployment` / `Idunn`. Focused smoke `.epiphany-smoke\repo-close-mind-adoption-guard-20260620-232414` proves the stage lens for accepted `repo.markdown_planning_note` work reports `stage=imagination-planning`, `owner=Imagination`, latest item/commit/Mind commit receipt, Bifrost gate, and `privateStateExposed=false`. This is sight only; Gjallar still does not schedule, publish, merge, deploy, keep daemons alive, or admit Mind state. - 2026-06-20: Gjallar repo-work map sight now includes next-publication-gate lenses. `epiphany-verse-query gjallar`, swarm overview, and swarm triage expose `repoWorkMapGateLensRows` plus `REPO-WORK-MAP-GATE` rows derived from the same Mind-admitted local Verse map entries, grouping accepted consequences by publication gate and naming the owning gate organ. Focused smoke `.epiphany-smoke\repo-close-mind-adoption-guard-20260620-233353` proves accepted `repo.markdown_planning_note` work reports `gate=Bifrost`, `owner=Bifrost`, latest item/commit/Mind commit receipt, `sightOnly=true`, `publicationAuthorized=false`, and `privateStateExposed=false`. This is sight only; Bifrost still owns publication/credit/upstream review and Gjallar does not schedule, publish, merge, deploy, keep daemons alive, or admit Mind state. @@ -169,7 +169,7 @@ remembers doctrine; the branch remembers the blade. - 2026-06-21: The local wrapper mouth now forwards Rust-owned repo-work map rows for `gjallar` and `swarm-triage` from an explicit repo-local Verse target. `tools/epiphany_local_run.ps1` accepts `-LocalVerseStore` and `-LocalVerseRuntimeId`; operator run intent/receipt documents still write to the operator local Verse, while the readback modes target the requested store/runtime. Live wrapper proofs `local-20260621-011151-541-70056545` and `local-20260621-011207-755-d65e5c7e` pointed at `.epiphany-smoke\repo-planning-brief-family-20260620-235939\repo-body\.epiphany\local-verse.ccmp` with runtime `repo-planning-brief-family-smoke` and printed actual `repoWorkMapRows`, `repoWorkSemanticRows`, family/path/branch/stage/gate lens rows, and `privateStateExposed=false`. Earlier wrapper proofs that rendered `none` were aimed at the wrong operator store/runtime; PowerShell only lowers existing Rust TUI arrays and does not reinterpret repo-work truth or gain scheduler/publication/Mind/Idunn authority. - 2026-06-21: Idunn-hosted repo-work queue-run lifecycle now has bounded launch proof. `tools/epiphany_local_run.ps1 -Mode repo-work-service-launch` reuses the `epiphany-repo-work-queue-runner` service id and launches the exact `epiphany-work queue-run --workspace --local-verse-store \.epiphany\local-verse.ccmp --runtime-id --max-items ` command through `epiphany-daemon-supervisor service-launch --wait-child`; it writes an Idunn service lifecycle receipt and does not install a Windows service, elevate, publish, merge, cross repos, or expose private state. Native smoke `.epiphany-smoke\repo-work-service-lifecycle-20260621-002707` proves plan/runbook/launch with launch exit code `0`, runbook receipt-directory readback before launch, launch readback after launch, `mutatesServiceManager=false`, `launchesService=true`, `waitChild=true`, and `privateStateExposed=false`. Wrapper proof `local-20260621-012741-653-dd4fdae2` prints `status=completed`, `exitCode=0`, `owner=Idunn`, `hostedBody=repo-work`, and `serviceManagerMutation=false`. - 2026-06-21: Idunn-hosted repo-work queue-run lifecycle now has audit/readiness closure. `epiphany-daemon-supervisor repo-work-service-audit` reads the typed service lifecycle receipts for `epiphany-repo-work-queue-runner`, requires planned install-plan, written local runbook artifact, completed launch with exit code `0`, and no private-state exposure, then writes a `repo-work-service-audit` receipt. Native smoke `.epiphany-smoke\repo-work-service-lifecycle-20260621-004202` proves plan/runbook/launch/audit with `auditStatus=complete`, `auditRunbookArtifactStatus=present`, `auditLaunchExitCode=0`, `mutatesServiceManager=false`, `requiresElevatedAuthority=false`, and `privateStateExposed=false`. Wrapper proofs `local-20260621-014302-362-31bbef47`, `local-20260621-014337-108-cbd99615`, `local-20260621-014413-125-09e183c5`, and `local-20260621-014558-197-f6951806` prove plan/runbook/launch/audit ergonomics; the final audit summary reports `missing=none`, `failed=none`, and `nextSafeMove=continue repo-swarm MVP planner/interpreter hardening`. Remaining Idunn service work is optional elevated install/start execution under explicit operator authority, not Self scheduling. -- 2026-06-21: Repo-work MVP readiness sight now has a first-class local wrapper. `tools/epiphany_local_run.ps1 -Mode repo-work-readiness -Workspace -RepoWorkItem ` invokes `epiphany-work readiness`, accepts optional `-RepoWorkPublicProof`, `-RepoWorkIdunnLifecycleReceipt`, and `-RepoWorkToolDirectoryReceipt`, and prints satisfied/missing readiness rows plus authority denials. It writes readiness sight only: no readiness approval, publication, service lifecycle, Hands action, deployment, cross-body mutation, or private-state exposure. Wrapper proof `local-20260621-105433-017-b1c2bbd9` against `.epiphany-smoke\repo-work-readiness-20260621-094043\repo-body` reported `status=not-ready`, missing `bifrost-publication`, `upstream-main-sync`, `idunn-lifecycle`, and `tool-directory`, while all authority booleans stayed false. `gjallar`/`swarm-overview` and `swarm-triage` wrapper summaries now forward Rust-owned `repoWorkReadinessTuiRows`; proof `local-20260621-105450-620-0fc13242` printed the compact `REPO-WORK-READINESS` row through Gjallar. +- 2026-06-21: Repo-work MVP readiness sight now has a first-class local wrapper. `tools/epiphany_local_run.ps1 -Mode repo-work-readiness -Workspace -RepoWorkItem ` invokes `epiphany-work readiness`, accepts optional `-RepoWorkPublicProof`, `-RepoWorkIdunnLifecycleReceipt`, `-RepoWorkDeploymentAftercareReceipt`, `-RepoWorkDeploymentAftercareReceiptRef`, and `-RepoWorkToolDirectoryReceipt`, and prints satisfied/missing readiness rows plus authority denials. It writes readiness sight only: no readiness approval, publication, service lifecycle, Hands action, deployment, cross-body mutation, or private-state exposure. Wrapper proof `local-20260621-111351-678-c3f7c714` against `.epiphany-smoke\repo-work-readiness-20260621-101053\repo-body` reported `status=not-ready`, missing `bifrost-publication`, `upstream-main-sync`, `idunn-lifecycle`, and `tool-directory`, while `deployment-aftercare` was satisfied and all authority booleans stayed false. `gjallar`/`swarm-overview` and `swarm-triage` wrapper summaries forward Rust-owned `repoWorkReadinessTuiRows`; earlier proof `local-20260621-105450-620-0fc13242` printed the compact `REPO-WORK-READINESS` row through Gjallar. - 2026-06-21: Repo deployment handoff/readback now has first-class local wrappers. `tools/epiphany_local_run.ps1 -Mode repo-deployment-config-audit`, `-Mode repo-deployment-runbook`, and `-Mode repo-deployment-aftercare-audit` invoke the existing Rust `epiphany-work` deployment audit, operator runbook, and aftercare audit surfaces, adding compact summaries for Idunn readiness, the exact operator `git push` route, runbook SHA-256, CultMesh receipt refs, and authority denials. Wrapper proofs `local-20260621-110141-130-fa8f91d7`, `local-20260621-110200-679-a03614ce`, and `local-20260621-110219-492-c870e2da` against `.epiphany-smoke\repo-deployment-config-family-20260620-223203\repo-body` reported `ready-for-idunn-review`, `ready-for-operator-git-push`, and complete Idunn aftercare with deployment/git-push/service/Hands/private-state authority false. These wrappers do not SSH, deploy, or run `git push`; they are the operator/Idunn handoff and aftercare sight rite. - 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. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 7e982d630b47c852e522775cd93ac7d357e8c52e..369184c38f13c2da4ac2e0ee740ae65a00b69dcc 100644 GIT binary patch delta 434 zcmXv~F>4e-6wajfDmhtkMlLZ?lu^?M!B7y<8bA z?8L%l5MpO(Ay{Z*VdMYs4+Q)N&L*UIJb3T>zW06a_s{;9U;S@`=nlqFtOPJ2EU@bX zOJIV#nRJD!onN{jYY$!oOxV|9WTcy?u*aNygFf5>%47w2rc24M;@|x8h-sVt2fine=>Px# delta 53 zcmZ3oSM1;pu?-T8+y