From f919d50a1a7be9536fee818194c6cab36ffc4acb Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 20 Jun 2026 03:08:49 +0100 Subject: [PATCH] Add repo work proof bundle hashes --- epiphany-core/src/bin/epiphany-work.rs | 106 +++++++++++++++++++++- notes/epiphany-repo-swarm-mvp-contract.md | 43 ++++++--- notes/fresh-workspace-handoff.md | 1 + state/ledgers.msgpack | Bin 314993 -> 315480 bytes state/map.yaml | 4 +- 5 files changed, 136 insertions(+), 18 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-work.rs b/epiphany-core/src/bin/epiphany-work.rs index bce184e0..8f9c96ad 100644 --- a/epiphany-core/src/bin/epiphany-work.rs +++ b/epiphany-core/src/bin/epiphany-work.rs @@ -47,6 +47,8 @@ use epiphany_core::runtime_latest_hands_receipt_chain_after; use epiphany_core::write_epiphany_cultmesh_repo_work_overview; use serde_json::Value; use serde_json::json; +use sha2::Digest; +use sha2::Sha256; use std::env; use std::fs; use std::path::Path; @@ -3273,7 +3275,41 @@ fn run_overview(args: OverviewArgs) -> Result { &publish_receipt_path, &sync_receipt_path, ); + let proof_artifacts = repo_work_proof_artifact_rows(&[ + ("accept", &accept_receipt_path), + ("plan", &plan_receipt_path), + ("run", &run_receipt_path), + ("adopt", &adopt_receipt_path), + ("execute", &execute_receipt_path), + ("close", &close_receipt_path), + ("publish", &publish_receipt_path), + ("sync", &sync_receipt_path), + ])?; + let proof_bundle_tui_rows = repo_work_proof_bundle_tui_rows( + &item, + &branch, + gate, + blocker, + closure_status, + publication_status, + sync_status, + proof_artifacts + .iter() + .filter(|row| row.get("artifactStatus").and_then(Value::as_str) == Some("present")) + .count(), + ); + let now = Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true); + let now_for_entry = now.clone(); let proof_bundle = json!({ + "schemaVersion": "epiphany.repo_work_proof_bundle.v0", + "bundleId": format!("repo-work-proof-bundle-{item_slug}"), + "generatedAt": now, + "workspace": workspace, + "item": item, + "branch": branch, + "currentGate": gate, + "blocker": blocker, + "nextSafeMove": next_safe_move, "acceptReceiptPath": accept_receipt_path, "planReceiptPath": existing_path_value(&plan_receipt_path), "runReceiptPath": existing_path_value(&run_receipt_path), @@ -3289,6 +3325,8 @@ fn run_overview(args: OverviewArgs) -> Result { "bifrostPublicationReceiptId": publish_receipt.as_ref().and_then(|receipt| string_from_json(receipt, &["bifrost", "publicationReceiptId"])), "githubPublicationReceiptId": publish_receipt.as_ref().and_then(|receipt| string_from_json(receipt, &["github", "publicationReceiptId"])), "upstreamMainSynced": sync_receipt.as_ref().and_then(|receipt| receipt.get("upstreamMainSynced").and_then(Value::as_bool)).unwrap_or(false), + "artifactRows": proof_artifacts, + "tuiRows": proof_bundle_tui_rows, "privateStateExposed": false }); let rows = json!([ @@ -3301,8 +3339,6 @@ fn run_overview(args: OverviewArgs) -> Result { {"key": "sync", "value": sync_status, "status": sync_status}, {"key": "private", "value": "false", "status": "sealed"} ]); - let now = Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true); - let now_for_entry = now.clone(); let receipt = json!({ "schemaVersion": "epiphany.repo_work_overview_receipt.v0", "createdAt": now, @@ -4412,6 +4448,66 @@ fn repo_work_existing_receipt_refs(receipts: &[(&str, &Path)]) -> Vec { .collect() } +fn repo_work_proof_artifact_rows(receipts: &[(&str, &Path)]) -> Result> { + receipts + .iter() + .map(|(kind, path)| { + if !path.exists() { + return Ok(json!({ + "kind": kind, + "expectedPath": path.display().to_string(), + "path": Value::Null, + "artifactStatus": "missing", + "artifactSha256": "none", + "schemaVersion": "missing", + "documentStatus": "missing", + "privateStateExposed": false + })); + } + + let document = read_json(path).with_context(|| { + format!( + "failed to read proof artifact {} at {}", + kind, + path.display() + ) + })?; + let schema_version = string_from_json(&document, &["schemaVersion"]) + .unwrap_or_else(|| "unknown".to_string()); + let document_status = + string_from_json(&document, &["status"]).unwrap_or_else(|| "unknown".to_string()); + Ok(json!({ + "kind": kind, + "expectedPath": path.display().to_string(), + "path": existing_path_value(path), + "artifactStatus": "present", + "artifactSha256": file_sha256(path)?, + "schemaVersion": schema_version, + "documentStatus": document_status, + "privateStateExposed": false + })) + }) + .collect() +} + +fn repo_work_proof_bundle_tui_rows( + item: &str, + branch: &str, + gate: &str, + blocker: &str, + closure_status: &str, + publication_status: &str, + sync_status: &str, + present_artifact_count: usize, +) -> Vec { + vec![ + format!("PROOF | item={item} | gate={gate} | blocker={blocker} | private=false"), + format!( + "PROOF | branch={branch} | artifactsPresent={present_artifact_count} | closure={closure_status} | publication={publication_status} | sync={sync_status}" + ), + ] +} + fn repo_work_overview_gate( plan: Option<&Value>, run: Option<&Value>, @@ -4886,6 +4982,12 @@ fn read_json(path: &Path) -> Result { serde_json::from_str(&raw).with_context(|| format!("failed to decode {}", path.display())) } +fn file_sha256(path: &Path) -> Result { + let bytes = fs::read(path).with_context(|| format!("failed to hash {}", path.display()))?; + let digest = Sha256::digest(&bytes); + Ok(format!("{digest:x}")) +} + fn write_json(path: &Path, value: &Value) -> Result<()> { if let Some(parent) = path.parent() { fs::create_dir_all(parent)?; diff --git a/notes/epiphany-repo-swarm-mvp-contract.md b/notes/epiphany-repo-swarm-mvp-contract.md index 00314d1b..af45cebd 100644 --- a/notes/epiphany-repo-swarm-mvp-contract.md +++ b/notes/epiphany-repo-swarm-mvp-contract.md @@ -629,11 +629,16 @@ sync receipts, asks git for the current branch, computes the current gate, blocker, and next safe action, and writes `.epiphany/work/work-overview-.json` as `epiphany.repo_work_overview_receipt.v0`. The receipt carries compact -agent-friendly rows plus an operator-safe proof bundle: receipt paths, changed -paths, branch, commit SHA, Soul verdict, Mind state-commit id, Bifrost/GitHub -publication ids when present, upstream-main sync status, and -`privateStateExposed=false`. When the accept receipt names a local Verse store, -overview also mirrors those compact rows as +agent-friendly rows plus an operator-safe proof bundle. The proof bundle is +`epiphany.repo_work_proof_bundle.v0`; it carries bundle id, generated time, +workspace, item, branch, current gate, blocker, next safe move, changed paths, +commit SHA, Soul verdict, Mind state-commit id, Bifrost/GitHub publication ids +when present, upstream-main sync status, compact TUI rows, and +`privateStateExposed=false`. Its `artifactRows` enumerate the expected accept, +plan, run, adopt, execute, close, publish, and sync receipts with expected path, +present/missing status, document schema, document status, SHA-256 hash when +present, and private-state seal. When the accept receipt names a local Verse +store, overview also mirrors the compact overview rows as `epiphany.cultmesh.repo_work_overview.v0` under `gamecult-local/repo-work-overview/latest`, so Eve/Gjallar/Odin sight can read the same typed surface without opening the `.epiphany/work` artifact body. @@ -652,6 +657,13 @@ changed path `EPIPHANY_WORKLOG.md`, Soul verdict `passed`, compact rows for item/branch/gate/blocker/closure/publication/sync/private, an overview receipt artifact, and `privateStateExposed=false`. +The first hashed proof-bundle smoke extended the same closed run artifact: +`.epiphany-smoke\tick-close-20260620-025526\08-overview-proof-bundle.json`. +It reported `schemaVersion=epiphany.repo_work_proof_bundle.v0`, TUI rows for +`awaiting-publication` / `bifrost-publication-missing`, six present artifacts +from accept through close with SHA-256 hashes, missing publish/sync artifacts, +and `privateStateExposed=false` on every row. + The first Verse projection smoke proved the local CultMesh sight path: overview mirrored `repo-work-overview-verse-overview-request` into the repo-local Verse, `epiphany-verse-query smoke --store --runtime-id repo-swarm-local` @@ -1089,9 +1101,9 @@ Required organs before MVP: `epiphany-work serve` adds bounded/unbounded cadence around that pulse, and `epiphany-swarm run` plus wrapper expose the bounded repo-swarm run mouth over the typed queue. Idunn-owned non-mutating queue-run service plan/runbook - receipts also exist. Remaining work is optional handoff from branch-local - execution into the close gate and any later Idunn service launch/install - under explicit operator authority. + receipts also exist, and the queue/tick path now hands branch-local execution + into `close-from-execute`. Remaining work is any later Idunn service + launch/install under explicit operator authority. - Persona-to-plan depth: deterministic `append-worklog` and `planning-note` derivations exist for accepted Persona/Bifrost pressure, `persona-intake` gives the project Persona a speech-audited mouth into that @@ -1111,9 +1123,10 @@ Required organs before MVP: `epiphany-swarm run` consume that queue for safe branch-local pulses through closure. Remaining work is richer safe-family depth. - Proof bundle depth: maintainers and future agents can inspect local - operator-safe receipt chains, commit refs, verification verdicts, map - admission, Bifrost/GitHub refs, credit refs, and sync state; remaining work is - richer packaging for published/credited labor. + operator-safe receipt chains, artifact schema/status rows, SHA-256 receipt + hashes, compact TUI rows, commit refs, verification verdicts, map admission, + Bifrost/GitHub refs, credit refs, and sync state; remaining work is richer + packaging for published/credited labor. Scheduler authority is intentionally narrow. It may advance `accept -> plan -> run -> adopt -> execute` only when each upstream receipt @@ -1334,9 +1347,11 @@ agents without opening private state. Required cuts: -- Emit one proof bundle per work item with receipt ids, changed paths, branch, - commit, verification result, map admission result, Bifrost publication refs, - GitHub/PR refs, sync status, and credit refs. +- Emit one proof bundle per work item with receipt ids, expected artifact paths, + present/missing status, document schemas/statuses, SHA-256 receipt hashes, + changed paths, branch, commit, verification result, map admission result, + Bifrost publication refs, GitHub/PR refs, sync status, compact TUI rows, and + credit refs. - Add compact Eve/CultUI rows for repo work queue, active branch work, blocked work, publication status, and upstream sync. - Make Gjallar announce the repo swarm's operator-safe status through Odin's diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 8124993b..b213a093 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -109,6 +109,7 @@ remembers doctrine; the branch remembers the blade. - 2026-06-20: Typed Imagination action-item receipts are live in `epiphany-work derive-plan`. The command now writes `work-action-items-.json` with schema `epiphany.repo_work_imagination_action_items_receipt.v0` before writing `work-plan-.json`; the receipt carries model provenance, safe action family, requested paths, verification asks, stop conditions, escalation reasons, rollback hints, public/candidate refs, `operatorAuthoredShellDetails=false`, and no Hands/durable-state/publication/service/cross-repo authority. The plan derivation cites the action-item receipt, while command text remains deterministic safe-family lowering. Disposable proof `.epiphany-smoke\action-items-20260620-023240` wrote action receipt `repo-work-action-items-action-items-request` with `modelAuthored=true`, `safeActionFamily=repo.markdown_planning_note`, requested path `notes/epiphany-work/action-items-request.md`, plan citation present, and `privateStateExposed=false`. The next cut is richer model-authored safe families or proof-bundle packaging, not another basic action-item schema. - 2026-06-20: `epiphany-swarm run` is live as the bounded repo-swarm operator mouth over Self's queue/tick physiology. It requires the online receipt/local Verse queue, delegates queue selection to `epiphany-work queue-run`, delegates item actuation to `epiphany-work tick`, writes `epiphany.repo_swarm_run_receipt.v0` at `.epiphany\swarm-run\repo-swarm-run-receipt.json`, and keeps publication, merge, service lifecycle, elevation, cross-repo mutation, and private-state exposure sealed. Wrapper mode `tools/epiphany_local_run.ps1 -Mode repo-swarm-run` exposes the surface with brake preflight and compact pulse summaries. Disposable proof `.epiphany-smoke\swarm-run-20260620-024252` first returned dry-run preview `would-advance/run-from-plan`; wrapper artifact `local-20260620-024413-360-85548195` printed the same queue/tick delegation; a non-dry single pulse advanced `swarm-run-request` from `ready-to-run` to refreshed overview `ready-to-adopt` with `privateStateExposed=false`. The next cut is richer model-authored safe families or proof-bundle packaging, not another queue mouth. - 2026-06-20: Execute-to-close scheduler handoff is live. `epiphany-work tick` now treats `awaiting-closure` as tick-actionable, delegates executed branch-local work to the existing `epiphany-work close` gate, writes Soul verdict plus Modeling summary plus Mind state-commit receipts, then stops at `awaiting-publication` with Bifrost as blocker. Disposable proof `.epiphany-smoke\tick-close-20260620-025526` ran `epiphany-swarm run --max-iterations 4` through `run-from-plan,adopt-from-plan,execute-from-plan,close-from-execute`; the final overview reported `awaiting-publication` / `bifrost-publication-missing`, and the close receipt was `closed`, Soul `passed`, Mind commit `repo-work-close-tick-close-request-mind-commit`, `durableStateAdmitted=true`, and `privateStateExposed=false` with publication/merge/service/cross-repo authority sealed. The next cut is richer model-authored safe families or proof-bundle packaging, not another scheduler handoff. +- 2026-06-20: Local proof-bundle packaging is live. `epiphany-work overview` now embeds `epiphany.repo_work_proof_bundle.v0` with generated time, gate/blocker/next-safe-move, compact TUI rows, expected artifact paths, present/missing artifact status, document schema/status, SHA-256 receipt hashes, and `privateStateExposed=false`. Disposable proof `.epiphany-smoke\tick-close-20260620-025526\08-overview-proof-bundle.json` reported six present artifacts from accept through close with hashes, missing publish/sync rows, `awaiting-publication` / `bifrost-publication-missing`, and no private-state exposure. The next cut is richer model-authored safe families or published/credited proof-bundle depth, not another local proof-bundle wrapper. - 2026-06-20: Gjallar/swarm-overview now exposes repo-work overview history as first-class compact sight, Persona's public Eve surface lowers the same queue for peer-readable collaboration, and Self has a first runnable queue surface over it. `SwarmOverviewOutput` and `SwarmTriageOutput` include `repoWorkOverviewCount`, `repoWorkOverviewRows`, `repoWorkOverviewTuiRows`, `latestRepoWorkOverview`, `latestRepoWorkGate`, `latestRepoWorkBlocker`, and `latestRepoWorkNextSafeMove`; the shared `swarmActionRows` queue gets priority 35 `repo-work-overview` rows owned by Gjallar, hosted body `repo-work`, authority gate `repo.work.overview`, effect class `repo-work-readback`, no mutation, no elevation, proof-bundle ref, and private-state seal. `eve-surfaces`, direct `connect-eve`, and the globally invokable Persona `eve-connect` daemon tool readback expose public `REPO-WORK-PEER` rows with item, gate, blocker, next safe move, branch, publication, sync, and `private=false`. `epiphany-work queue-run` reads the same typed queue, selects current-repo rows at `ready-to-run`, `ready-to-adopt`, `ready-to-execute`, or `awaiting-closure`, delegates to `tick`, refreshes overview after real advancement, and wrapper `repo-work-queue-run` exposes the operator surface. Disposable proofs `.epiphany-smoke\gjallar-repo-work-queue-20260620-012027`, `.epiphany-smoke\eve-repo-work-queue-20260620-013322`, `.epiphany-smoke\queue-run-20260620-014314`, and wrapper artifact `local-20260620-014627-174-aada0241` prove two-item queue sight, Eve lowering, direct queue-run advancement, and wrapper dry-run without publication, merge, service lifecycle mutation, elevation, cross-repo mutation, or private-state exposure. The next cut is richer Persona-to-Imagination plan derivation, not another queue display surface. - `service-execution-runbook` makes that next cut repeatable: it generates the exact elevated wrapper command sequence without mutating the service manager, continues after per-step failure to preserve more receipts, runs `service-execution-audit` in `finally`, exits nonzero if any step failed, and seals a typed runbook lifecycle receipt. Run the generated artifact only with explicit operator authority. - `service-execution-audit` is the non-mutating acceptance proof after the elevated rite: it reports `complete` only when typed lifecycle receipts prove the runbook witness plus expected elevated chain, and otherwise reports the missing/failed sealed checks. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 2b954fc615654a93170b50dcf4736e2e22f7b5c7..7138481b5c6039a80c5bcbba6f0658fedb7455a4 100644 GIT binary patch delta 399 zcmX|-y-EW?6ouVnkdQV6e?S-ztg^`xh=g=@TE=K2LYSSs$*$Sm8E0nmQ(0J82{vIG zi@bm$2nJukMo~)(OCLb77iWX9xZL8L!};$0x-7g+3O6fOzTT)h2M-JArFOe+9b4AY z={R#X&RAyBot=&|=>1V&G_!gAdWR6IHk`Wt{IS*+r@O!z*5_Af`NSvEw_QSe;9=ka z_ene|3!}FOO!V4ZFxF|iN$iDC?mJkpfoxzHa-hm21W*XL!kj2ymM|9}Ay$JMz>@k9k&4{-6I$C_cD1&NQyefx$|9Zy_x5+vPR&0u#he5Z z$}( adopt-from-plan -> execute-from-plan -> close-from-execute` then no-ops before publication gates, local CultMesh swarm-brake refusal that writes `refused-by-swarm-brake` without creating a run/adopt/execute/close receipt, active-turn refusal through `work-tick-active-.json`, explicit completion-anchored cooldown refusal through `work-tick-last-.json`, stale active-turn recovery that records `physiology.recoveredActiveTurn.recovered=true`, Self-owned `epiphany-work serve` cadence that writes `work-scheduler-serve-.json`, bounded serve proof `advanced:run-from-plan -> refused-by-cooldown:none` without adoption, unbounded zero-interval refusal, deterministic `epiphany-work close` proof that consumes execute receipts, verifies the Hands commit, writes Soul verdict plus Modeling summary plus Mind gateway/state-commit receipts, scheduler proof `.epiphany-smoke\tick-close-20260620-025526` that `epiphany-swarm run --max-iterations 4` reached `awaiting-publication` through `close-from-execute` with Soul passed and Mind committed, local `epiphany-work overview` proof bundle that reports pre-plan `awaiting-plan`/`plan-receipt-missing` and post-close `awaiting-publication`/`bifrost-publication-missing` with branch, commit, changed paths, Soul verdict, compact rows, and private seal, typed local Verse projection as `epiphany.cultmesh.repo_work_overview.v0` with latest-key/event-history readback through Gjallar plus peer-readable Persona Eve lowering, `epiphany-work queue-run` selection over tick-actionable queue rows through `awaiting-closure` with wrapper `repo-work-queue-run`, Idunn-owned non-mutating `repo-work-service-plan`/`repo-work-service-runbook` receipts for the same queue-run command, `publish --closure-receipt` consumption of the close receipt's Soul/Mind refs, post-publication tick `noop:none`, and upstream-main ancestry proof after explicit merge receipt. Remaining MVP organs are richer model-authored safe families, richer published proof bundles, and richer model-authored closure; the scheduler may advance only one safe receipt-backed branch-local step per pulse and must not publish, merge, mutate services, cross repo boundaries, expose private state, or impersonate Idunn. + - Use `notes/epiphany-repo-swarm-mvp-contract.md` as the authority correction and migration plan for repo-swarm autonomy. Autonomous branch-local work inside an Epiphany-owned repo Body is in scope and desired; the safety boundary is typed authority, branch containment, interruptibility, receipts, private-state sealing, and Bifrost-gated publication/merge/escalation, not asking a human before every local edit. Sixteen native repo-swarm front doors are live and documented there: `epiphany-repo init`, `epiphany-swarm online`, `epiphany-swarm run`, `epiphany-work accept`, `epiphany-work persona-intake`, `epiphany-work derive-plan`, `epiphany-work plan`, `epiphany-work run`, `epiphany-work adopt --from-plan`, `epiphany-work execute --from-plan`, `epiphany-work close`, `epiphany-work overview`, `epiphany-work tick`, `epiphany-work queue-run`, `epiphany-work publish`, and `epiphany-work sync`. Fresh-repo smokes proved the chain with `privateStateExposed=false`, including deterministic Persona/Bifrost pressure-to-plan derivation (`append-worklog` and `planning-note`) into `EPIPHANY_WORKLOG.md` or contained markdown planning notes, typed Imagination action-item receipts (`epiphany.repo_work_imagination_action_items_receipt.v0`) that carry model provenance, safe family, requested paths, verification asks, stop conditions, escalation reasons, and `operatorAuthoredShellDetails=false` before deterministic safe-family command lowering, plan-backed branch-local commit creation, a speech-audited repo Persona intake mouth that records public discussion refs plus candidate action refs before delegating to `accept`, a bounded `epiphany-swarm run` mouth that delegates queue selection to `epiphany-work queue-run` and item actuation to `epiphany-work tick`, a Self-owned tick pulse that advances `run-from-plan -> adopt-from-plan -> execute-from-plan -> close-from-execute` then no-ops before publication gates, local CultMesh swarm-brake refusal that writes `refused-by-swarm-brake` without creating a run/adopt/execute/close receipt, active-turn refusal through `work-tick-active-.json`, explicit completion-anchored cooldown refusal through `work-tick-last-.json`, stale active-turn recovery that records `physiology.recoveredActiveTurn.recovered=true`, Self-owned `epiphany-work serve` cadence that writes `work-scheduler-serve-.json`, bounded serve proof `advanced:run-from-plan -> refused-by-cooldown:none` without adoption, unbounded zero-interval refusal, deterministic `epiphany-work close` proof that consumes execute receipts, verifies the Hands commit, writes Soul verdict plus Modeling summary plus Mind gateway/state-commit receipts, scheduler proof `.epiphany-smoke\tick-close-20260620-025526` that `epiphany-swarm run --max-iterations 4` reached `awaiting-publication` through `close-from-execute` with Soul passed and Mind committed, local `epiphany-work overview` proof bundle `epiphany.repo_work_proof_bundle.v0` that reports pre-plan `awaiting-plan`/`plan-receipt-missing` and post-close `awaiting-publication`/`bifrost-publication-missing` with branch, commit, changed paths, Soul verdict, compact TUI rows, expected receipt artifact paths, present/missing artifact statuses, document schemas/statuses, SHA-256 receipt hashes, and private seals, typed local Verse projection as `epiphany.cultmesh.repo_work_overview.v0` with latest-key/event-history readback through Gjallar plus peer-readable Persona Eve lowering, `epiphany-work queue-run` selection over tick-actionable queue rows through `awaiting-closure` with wrapper `repo-work-queue-run`, Idunn-owned non-mutating `repo-work-service-plan`/`repo-work-service-runbook` receipts for the same queue-run command, `publish --closure-receipt` consumption of the close receipt's Soul/Mind refs, post-publication tick `noop:none`, and upstream-main ancestry proof after explicit merge receipt. Remaining MVP organs are richer model-authored safe families, richer published proof bundles, and richer model-authored closure; the scheduler may advance only one safe receipt-backed branch-local step per pulse and must not publish, merge, mutate services, cross repo boundaries, expose private state, or impersonate Idunn. - Gjallar/swarm-overview now projects typed repo-work overview history into the compact global sight report, Persona's public Eve surface lowers the same queue for peers, and Self has a first runnable queue surface over it. `epiphany-verse-query gjallar` reads all `epiphany.cultmesh.repo_work_overview.v0` event documents from local Verse, excludes the `latest` mirror, preserves latest scalar fields, emits multi-item `repoWorkOverviewRows`/TUI rows, and publishes bounded priority 35-39 non-mutating `repo-work-overview` action rows with `owner=Gjallar`, `hostedBody=repo-work`, `authorityGate=repo.work.overview`, `mutatesState=false`, `requiresElevatedAuthority=false`, proof-bundle refs, current gate/blocker/next-safe-move, and `privateStateExposed=false`. `epiphany-verse-query eve-surfaces`, `connect-eve`, and globally invokable Persona `eve-connect` tool readbacks expose compact `REPO-WORK-PEER` rows with item, gate, blocker, next safe move, branch, publication/sync state, and private seal for the public Persona surface only. `epiphany-work queue-run` selects current-repo rows at `ready-to-run`, `ready-to-adopt`, or `ready-to-execute`, delegates action to `tick`, refreshes overview after real advancement, and writes `epiphany.repo_work_queue_run_receipt.v0`; wrapper mode `tools/epiphany_local_run.ps1 -Mode repo-work-queue-run` exposes the same surface. Disposable proofs `.epiphany-smoke\gjallar-repo-work-queue-20260620-012027`, `.epiphany-smoke\eve-repo-work-queue-20260620-013322`, `.epiphany-smoke\queue-run-20260620-014314`, and wrapper artifact `local-20260620-014627-174-aada0241` showed two-item queues through sight, public Eve, direct queue-run, and wrapper dry-run without publication, merge, service lifecycle mutation, elevation, cross-repo mutation, or private-state exposure. - Agent memory lifecycle now has a first typed v0 operation surface in `epiphany-core::agent_memory`: `AgentMemoryLifecycleOperation` can revise, retire, crystallize, prune, and merge bounded memory records after role/agent review, and `epiphany-agent-memory-store review-lifecycle|apply-lifecycle` exposes the path at the operator edge. This closes the first explicit lifecycle-operation slice from the swarm-readiness gate; it does not yet make sleep silently mutate identity or project truth. - Persona public speech now has a parent-side eligibility receipt at the Discord/Aquarium mouth edge. `epiphany.persona_speech_audit.v0` records action kind, content fingerprint, opening/topic keys, recent-window counts, repeated opening/topic counts, channel saturation, and allow/block reasons. `epiphany-persona-discord post` blocks repeated public openings before token/webhook work; draft and bubble still emit audit receipts for operator inspection. The compatibility JSON artifact remains for display, but the durable witness is now `epiphany.cultmesh.persona_speech_audit.v0` in CultMesh with latest-key projection through local Verse context. Local MVP Persona bubbles now write that durable witness to `.epiphany-run/cultmesh/local-verse.ccmp`, not a separate mouth-side store. This is posting-edge policy, not a Persona prompt wish. @@ -634,4 +634,4 @@ 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. - next_action: Continue repo-swarm MVP work from the documented Epiphany Online cut order in `notes/epiphany-repo-swarm-mvp-contract.md`. Typed Gjallar repo-work history/queue sight, peer-readable Persona Eve lowering, Self-owned `epiphany-work queue-run`, bounded `epiphany-swarm run`, execute-to-close scheduler handoff through `close-from-execute`, deterministic `derive-plan` families `append-worklog` plus `planning-note`, typed Imagination action-item receipts over allowlisted safe families, Idunn-hosted non-mutating queue-run lifecycle plan/runbook receipts, and the speech-audited `epiphany-work persona-intake` mouth plus wrapper `repo-persona-intake` are live with `privateStateExposed=false`; the next cut is richer model-authored safe families or proof-bundle packaging. Preserve Idunn service lifecycle ownership and existing CultMesh/Odin/Eve tool directories; service install/start execution still requires explicit elevated operator authority. + next_action: Continue repo-swarm MVP work from the documented Epiphany Online cut order in `notes/epiphany-repo-swarm-mvp-contract.md`. Typed Gjallar repo-work history/queue sight, peer-readable Persona Eve lowering, Self-owned `epiphany-work queue-run`, bounded `epiphany-swarm run`, execute-to-close scheduler handoff through `close-from-execute`, deterministic `derive-plan` families `append-worklog` plus `planning-note`, typed Imagination action-item receipts over allowlisted safe families, hash-backed local proof bundles, Idunn-hosted non-mutating queue-run lifecycle plan/runbook receipts, and the speech-audited `epiphany-work persona-intake` mouth plus wrapper `repo-persona-intake` are live with `privateStateExposed=false`; the next cut is richer model-authored safe families or published/credited proof-bundle depth. Preserve Idunn service lifecycle ownership and existing CultMesh/Odin/Eve tool directories; service install/start execution still requires explicit elevated operator authority.