From 03440018a26f307884e976002c7c83bab964789d Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 20 Jun 2026 19:04:30 +0100 Subject: [PATCH] Add repo swarm run stop classification --- .../src/bin/epiphany-repo-swarm-mvp-smoke.rs | 30 ++++ epiphany-core/src/bin/epiphany-swarm.rs | 157 ++++++++++++++++++ notes/epiphany-repo-swarm-mvp-contract.md | 16 +- notes/fresh-workspace-handoff.md | 1 + state/ledgers.msgpack | Bin 346045 -> 346672 bytes state/map.yaml | 4 +- 6 files changed, 203 insertions(+), 5 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-repo-swarm-mvp-smoke.rs b/epiphany-core/src/bin/epiphany-repo-swarm-mvp-smoke.rs index f9114687..2577ec1c 100644 --- a/epiphany-core/src/bin/epiphany-repo-swarm-mvp-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-swarm-mvp-smoke.rs @@ -279,6 +279,33 @@ fn run_smoke(args: Args) -> Result { &["closureReview", "familyAssertions", "status"], "passed", )?; + require_eq( + &swarm_run, + &["stopClassification", "schemaVersion"], + "epiphany.repo_swarm_run_stop_classification.v0", + )?; + require_eq( + &swarm_run, + &["stopClassification", "category"], + "iteration-limit", + )?; + require_eq(&swarm_run, &["stopClassification", "owner"], "Self")?; + require_eq( + &swarm_run, + &["stopClassification", "authorityGate"], + "self.scheduler-iteration-limit", + )?; + require_bool(&swarm_run, &["stopClassification", "mutatesState"], false)?; + require_bool( + &swarm_run, + &["stopClassification", "requiresElevatedAuthority"], + false, + )?; + require_bool( + &swarm_run, + &["stopClassification", "privateStateExposed"], + false, + )?; require_eq(&publish, &["status"], "publication-receipts-recorded")?; require_eq(&sync, &["status"], "upstream-main-synced")?; require_eq(&export, &["status"], "public-proof-exported")?; @@ -312,6 +339,9 @@ fn run_smoke(args: Args) -> Result { "preRunOverviewGate": pre_run_overview["gate"], "preRunOverviewBlocker": pre_run_overview["blocker"], "swarmRunStatus": swarm_run["status"], + "swarmRunStopCategory": swarm_run["stopClassification"]["category"], + "swarmRunStopOwner": swarm_run["stopClassification"]["owner"], + "swarmRunStopGate": swarm_run["stopClassification"]["authorityGate"], "closeStatus": close["status"], "soulVerdict": close["soul"]["verdict"], "familyAssertionsStatus": close["closureReview"]["familyAssertions"]["status"], diff --git a/epiphany-core/src/bin/epiphany-swarm.rs b/epiphany-core/src/bin/epiphany-swarm.rs index 459fd5f8..46110238 100644 --- a/epiphany-core/src/bin/epiphany-swarm.rs +++ b/epiphany-core/src/bin/epiphany-swarm.rs @@ -451,6 +451,15 @@ fn run_swarm(args: RunArgs) -> Result { "Rerun epiphany-swarm run only while repo-work queue rows remain tick-actionable and authority gates stay branch-local." } }; + let stop_classification = classify_run_stop( + &stop_reason, + status, + args.until.as_str(), + args.dry_run, + args.max_iterations, + &iterations, + next_safe_move, + ); let receipt_path = artifact_dir.join("repo-swarm-run-receipt.json"); let receipt = json!({ "schemaVersion": "epiphany.repo_swarm_run_receipt.v0", @@ -459,6 +468,7 @@ fn run_swarm(args: RunArgs) -> Result { "completedAt": completed_at, "status": status, "stopReason": stop_reason, + "stopClassification": stop_classification, "workspace": workspace, "runtimeId": runtime_id, "localVerseStore": local_verse_store, @@ -494,6 +504,7 @@ fn run_swarm(args: RunArgs) -> Result { "schemaVersion": "epiphany.repo_swarm_run.v0", "status": receipt["status"], "stopReason": receipt["stopReason"], + "stopClassification": receipt["stopClassification"], "workspace": receipt["workspace"], "runtimeId": receipt["runtimeId"], "localVerseStore": receipt["localVerseStore"], @@ -506,6 +517,152 @@ fn run_swarm(args: RunArgs) -> Result { })) } +fn classify_run_stop( + stop_reason: &str, + status: &str, + until: &str, + dry_run: bool, + max_iterations: u64, + iterations: &[Value], + next_safe_move: &str, +) -> Value { + let final_iteration = iterations.last(); + let queue_status = final_iteration + .and_then(|iteration| iteration.get("queueRunStatus")) + .and_then(Value::as_str) + .unwrap_or("not-run"); + let actionable_count = final_iteration + .and_then(|iteration| iteration.get("actionableCount")) + .and_then(Value::as_u64) + .unwrap_or(0); + let queue_count = final_iteration + .and_then(|iteration| iteration.get("queueCount")) + .and_then(Value::as_u64) + .unwrap_or(0); + let selected_row = final_iteration + .and_then(|iteration| iteration.get("selectedRows")) + .and_then(Value::as_array) + .and_then(|rows| rows.first()); + let selected_gate = selected_row + .and_then(|row| row.get("gate")) + .and_then(Value::as_str) + .unwrap_or("none"); + let selected_blocker = selected_row + .and_then(|row| row.get("blocker")) + .and_then(Value::as_str) + .unwrap_or("none"); + let selected_next_safe_move = selected_row + .and_then(|row| row.get("nextSafeMove")) + .and_then(Value::as_str) + .unwrap_or(next_safe_move); + let selected_item = selected_row + .and_then(|row| row.get("item")) + .and_then(Value::as_str) + .unwrap_or("none"); + let selected_branch = selected_row + .and_then(|row| row.get("branch")) + .and_then(Value::as_str) + .unwrap_or("none"); + + let (category, owner, gate, blocker, recommended_command, mutates_state, requires_elevation) = + match stop_reason { + "dry-run-preview-complete" => ( + "dry-run-preview", + "Self", + selected_gate, + selected_blocker, + "epiphany-swarm run --workspace --until blocked-or-published", + false, + false, + ), + "max-iterations-reached" => ( + "iteration-limit", + "Self", + "self.scheduler-iteration-limit", + "max-iterations-reached", + "epiphany-swarm run --workspace --until blocked-or-published", + false, + false, + ), + "blocked-or-noop" if queue_count == 0 => ( + "queue-empty", + "Gjallar", + "repo.work.overview", + "no-repo-work-rows", + "epiphany-work persona-intake --workspace --item --message ", + false, + false, + ), + "blocked-or-noop" if actionable_count == 0 => { + let owner = match selected_gate { + "awaiting-publication" => "Bifrost", + "awaiting-sync" => "Bifrost/GitHub", + "awaiting-closure" => "Soul", + "ready-to-run" | "ready-to-adopt" | "ready-to-execute" => "Self", + _ => "Self", + }; + let recommended = match selected_gate { + "awaiting-publication" => { + "epiphany-work publish --workspace --closure-receipt " + } + "awaiting-sync" => { + "epiphany-work sync --workspace --publish-receipt " + } + "awaiting-closure" => { + "epiphany-work close --workspace --execute-receipt " + } + _ => "epiphany-work overview --workspace ", + }; + ( + "authority-gated", + owner, + selected_gate, + selected_blocker, + recommended, + false, + false, + ) + } + _ => ( + "unknown", + "Self", + selected_gate, + selected_blocker, + "epiphany-work overview --workspace ", + false, + false, + ), + }; + + json!({ + "schemaVersion": "epiphany.repo_swarm_run_stop_classification.v0", + "status": status, + "stopReason": stop_reason, + "category": category, + "owner": owner, + "authorityGate": gate, + "blocker": blocker, + "until": until, + "dryRun": dry_run, + "maxIterations": max_iterations, + "iterationCount": iterations.len(), + "queueRunStatus": queue_status, + "queueCount": queue_count, + "actionableCount": actionable_count, + "selectedItem": selected_item, + "selectedBranch": selected_branch, + "selectedNextSafeMove": selected_next_safe_move, + "recommendedCommand": recommended_command, + "mutatesState": mutates_state, + "requiresElevatedAuthority": requires_elevation, + "publicationAuthorized": false, + "mergeAuthorized": false, + "serviceLifecycleAuthorized": false, + "crossRepoMutationAuthorized": false, + "privateStateExposed": false + }) +} + fn queue_run_args( args: &RunArgs, workspace: &Path, diff --git a/notes/epiphany-repo-swarm-mvp-contract.md b/notes/epiphany-repo-swarm-mvp-contract.md index 38c69a34..a9bab56b 100644 --- a/notes/epiphany-repo-swarm-mvp-contract.md +++ b/notes/epiphany-repo-swarm-mvp-contract.md @@ -1460,7 +1460,11 @@ Build the remaining MVP in this order: limit without publishing, merging, installing services, crossing repo boundaries, elevating authority, or exposing private state. It now also reaches Soul/Modeling/Mind closure through the same tick artery when a queue - row is `awaiting-closure`. Remaining work is richer stop classification and + row is `awaiting-closure`. It now writes + `epiphany.repo_swarm_run_stop_classification.v0` into the run receipt so + agents can see stop category, owner, authority gate, blocker, recommended + command, mutability/elevation flags, queue status, and private-state seal + without parsing prose. Remaining work is broader stop-case proof coverage and safe-family depth. 5. **Execute-to-close handoff.** Let the scheduler route from branch-local Hands execution into Soul/Modeling/Mind closure when the required execute @@ -1807,8 +1811,14 @@ Required organs before MVP: Persona Eve tool readback now expose peer-readable queue rows, and `epiphany-work queue-run`, wrapper `repo-work-queue-run`, and `epiphany-swarm run` consume that queue for safe branch-local pulses through - closure. Remaining work is richer closure depth rather than basic safe-family - planning cargo. + closure. `epiphany-swarm run` now emits + `epiphany.repo_swarm_run_stop_classification.v0`; fresh-repo proof + `.epiphany-smoke\fresh-repo-mvp-20260620-180024` shows the bounded run stops + with category `iteration-limit`, owner `Self`, gate + `self.scheduler-iteration-limit`, non-mutating/non-elevated flags, and + `privateStateExposed=false`. Remaining work is broader stop-case proof + coverage and richer closure depth rather than basic safe-family planning + cargo. - Proof bundle depth: maintainers and future agents can inspect local operator-safe receipt chains, artifact schema/status rows, SHA-256 receipt hashes, compact TUI rows, commit refs, verification verdicts, map admission, diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index be67d7a5..df652d89 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 deeper model-authored closure review, further non-planning action classes, or Idunn-owned queue-run service execution; not another basic action-item schema. - 2026-06-20: The first richer model-authored safe family is live. `epiphany-work derive-plan --action-family checklist-note` lowers accepted Persona/Bifrost pressure into a contained markdown checklist under `notes/epiphany-work/-checklist.md` with safe family `repo.checklist_note`, model provenance, candidate/public refs, branch-local checklist items, verification asks, rollback hints, and authority seals forbidding publication, merge, service lifecycle, cross-repo mutation, durable-state admission, and private-state exposure. Disposable proof `.epiphany-smoke\checklist-note-20260620-031347` ran accept -> derive-plan with `--model-ref smoke-imagination-v0 --model-authored` -> run -> adopt -> execute on an `epiphany/*` branch; the derivation and action-item receipt both reported `modelAuthored=true`, Hands created a branch-local commit, overview reported `awaiting-closure`, and `privateStateExposed=false`. - 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 deeper model-authored closure review, further non-planning action classes, or Idunn-owned queue-run service execution; not another queue mouth. +- 2026-06-20: `epiphany-swarm run` stop classification is now typed. The run receipt/result embeds `epiphany.repo_swarm_run_stop_classification.v0` with status, stop reason, category, owner, authority gate, blocker, selected queue context, recommended command, mutability/elevation flags, and private-state seal. Fresh-repo proof `.epiphany-smoke\fresh-repo-mvp-20260620-180024` ran init -> online -> Persona intake -> model-authored repo-status plan -> swarm run -> close -> publish -> upstream-main sync -> export proof; the run stopped as `paused-at-iteration-limit` with stop category `iteration-limit`, owner `Self`, authority gate `self.scheduler-iteration-limit`, no state mutation/elevation in the stop packet, and `privateStateExposed=false`. Remaining repo-swarm work is broader stop-case proof coverage, deeper interpreter/closure semantics, more useful repo-owned configuration/action families, and Idunn-owned queue-run lifecycle under explicit operator authority. - 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 deeper model-authored closure review, further non-planning action classes, or Idunn-owned queue-run service execution; 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 deeper model-authored closure review, further non-planning action classes, or Idunn-owned queue-run service execution; not another local proof-bundle wrapper. - 2026-06-20: Published/credited proof-bundle rows are live. `epiphany-work overview` now adds `publicationRows` to `epiphany.repo_work_proof_bundle.v0`, lifting Bifrost intent/publication/GitHub/ledger/credit/PR fields, Hands commit/PR fields, and upstream-main ancestry fields from publish/sync receipts without granting publication, merge, scheduler, service lifecycle, cross-repo, or private-state authority. Disposable proof `.epiphany-smoke\checklist-note-20260620-031347\12-overview-published-proof.json` ran close -> publish -> sync -> overview after the checklist safe-family proof; overview reported `complete-or-awaiting-new-work`, `upstreamMainSynced=true` from `authority.upstreamMainSynced`, three publication rows, and `privateStateExposed=false`. The next cut is deeper model-authored closure review, further non-planning action classes, or Idunn-owned queue-run service execution; not basic Bifrost/GitHub/sync row visibility. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index d726fbe7af0c422c14baea40ba25d7fb5c4fa05b..3e8347de7e632559995499ea46d4db76d7e68f5b 100644 GIT binary patch delta 533 zcmZ8dJ&P1U5Ou~GF}Xw06~qrpG%%RiTkb@TMF!+J!OX+VWa*u$*=eq)ySKaN<|ewp zz(`G8`fnT<2!g4Z|H4%CCs@5Jf(F%HAG}xf-k0~I^ADr*8`0MObh0 z$NSMTiVj|{;y0@}q6q&*isaKOP9Gk6c#>`>0pgc$liLsCgQr!66}UmuYn{?i3T7>@ zdC44C5}fi^za`hsreIJjust&^m`+kzBG=CD7_^;m7NqI{+d1)|=DJ~W7zfB~4Ve*S z7WilX@{dm@&~w)St;2;fLk6msXfj}(Yn0(`fCY_?GMEch9*2oVfu*B8%MLq)Qb~uW zE(;f_wnZ5Pg^bB6gSK;Q&IR%85bR_lsupbF_4jz>-_^;b=$SwIkzDte@1N<8zwH8d~#a~=1@6$SugV2)Imu9cP6ohB6m_=N9t788TQ*pA0!{uO!r%Fo-146f)4RU` D=OMii delta 55 zcmdlmMRae!=ms%HUUMr`GbV-NHI diff --git a/state/map.yaml b/state/map.yaml index cab04d4b..f9fa39df 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -88,7 +88,7 @@ active_subgoals: - Keep the landed Phase 6 coordinator, limited safe-boundary CRRC automation, and pre-compaction checkpoint intervention ready for the next bridge-equipped dogfood run. - Preserve the Ghostlight-derived heartbeat initiative seam: every lane, including coordinator/Self and Persona, has a organ-state record and competes for heartbeat slots through readiness/reaction timing; initiative heat can raise or cool global, group, arena, role, and agent tempo through typed heartbeat policy; active thinking freezes initiative until completion, so heat never queues a lane already mid-turn; idle winners ruminate instead of inventing project work, and sleep windows distill the accumulated thought pressure into reviewed self-memory or doctrine. - Use `notes/epiphany-swarm-readiness-plan.md` as the live-fire direction gate. The local run path is a compass, not launch clearance: before unattended swarm operation, Epiphany needs typed pause/brake enforcement, one initiative scheduler, completion-gated cooldown, stale active-turn recovery receipts, parent-side Persona speech eligibility, memory lifecycle operations, and CultNet-first operator snapshots/intents/receipts. The local Verse brake document exists, `epiphany-verse-query swarm-brake` can engage/release it, `tools/epiphany_local_run.ps1` refuses live `plan`/`run`/`mvp` modes when the brake is engaged while leaving `status` readable, `epiphany-mvp-coordinator` checks the local Verse brake before app-server startup, and `epiphany-heartbeat-store` guards tick/pump/heat/queue-mention/routine when given `--local-verse-store`. Daemon liveness is now a typed local Verse authority: `epiphany-verse-query daemon-status` writes one daemon status without repainting the table, local Verse seeding preserves existing daemon statuses and swarm brakes, `invoke-tool` refuses when the host daemon is not ready or lacks `submitTypedToolIntent`, and both daemon tool invocation and lifecycle poke fail closed under an engaged matching brake. `epiphany-daemon-supervisor policy` writes durable per-daemon restart policy with command/args/cwd/cooldown/backoff/attempt state plus reconcile cadence and stale-heartbeat threshold; `epiphany-daemon-supervisor reconcile` loads that policy when no override command is supplied, refuses under a matching lifecycle brake, refuses during cooldown/backoff, writes daemon poke intent/receipt, updates daemon status, and updates policy attempt state; `epiphany-daemon-supervisor tick` is an explicit scheduler pulse that scans durable policies, records ready/noop pulses, skips before the configured reconcile interval, marks stale heartbeat status degraded, routes restarts through the same brake/cooldown/poke receipt path, and writes a latest `epiphany.cultmesh.daemon_scheduler_receipt.v0`; `epiphany-daemon-supervisor serve` runs that same pulse on a configurable cadence with bounded `--max-iterations` proof mode or unbounded service mode. `epiphany-daemon-supervisor service-plan`/`install-service` now writes a planned `epiphany.cultmesh.daemon_service_lifecycle_receipt.v0` for the `serve` command, while `service-launch`/`start-service` spawns that `serve` loop through the current executable or `--service-command`, can `--wait-child` for bounded proof, and records command/args/cwd, scheduler id, daemon selector, pid/exit/status, artifact ref, and private-state guard. `service-runbook`, `windows-service-install`/`service-install-plan`, `windows-service-status`, `windows-service-reconcile`, `windows-service-execution-readiness`, and `windows-service-start`/`stop` now record service lifecycle receipts through the same local Verse; the read-only status path has been proved against the real Windows `EventLog` service with receipt `daemon-service-lifecycle-receipt-windows-eventlog-proof-windows-service-status`, status `running`, exit code `0`, and `privateStateExposed=false`; the read-only service-policy reconciliation path has been proved for missing service, real-service drift against `EventLog`, lifecycle-brake refusal, and wrapper/local-Verse receipt `daemon-service-lifecycle-receipt-windows-eventlog-reconcile-proof-windows-service-reconcile`; execution readiness has been proved as a non-mutating `not-elevated` receipt through direct and wrapper paths; start/stop now produce non-mutating `start-planned`/`stop-planned` receipts unless `--execute-control`/`--execute-service-control` is passed, and wrapper `service-start-plan`/`service-stop-plan` proves those receipts against `EventLog`; explicit install/control execution now refuses as `execution-refused-not-elevated` with `executed=false` when the shell lacks Windows administrator authority, and wrapper `service-install-execute`, `service-start-execute`, and `service-stop-execute` prove those refusal receipts without mutation. Service lifecycle actions check the local Verse swarm brake before process launch, artifact writes, service-manager queries, service-policy reconciliation, execution-readiness checks, control planning, elevation-gated execution, or start/stop execution. The local wrapper builds/checks this binary. - - Use `notes/epiphany-repo-swarm-mvp-contract.md` as the repo-swarm autonomy authority map. Autonomous branch-local work inside an Epiphany-owned repo Body is in scope and desired; the safety boundary is typed authority, branch containment, interruption, receipts, private-state sealing, and Bifrost-gated publication/merge/escalation, not asking a human before every local edit. Current safe-family cargo includes repo manifest, tool capability manifest, daemon-hosted tool request cargo, Eve/CultUI surface contract, repo collaboration policy, collaboration topics, consensus/objective/adoption/scheduling/work-order/verification/publication/sync/review/PR/credit/artifact/metrics requests, action-item receipts, Mind adoption interpretation/decision receipts, overview/public-proof/Gjallar/Eve readbacks, Idunn non-mutating queue-run lifecycle receipts, and fresh-repo upstream-main proof. Latest Mind interpretation proof `.epiphany-smoke\repo-planning-facets-20260620-175503` shows `epiphany.repo_work_mind_interpretation.v0` embedded in the Mind adoption decision with safe-family recognition, requested-path classification, allowed `hands.branch_local_action`, forbidden durable-state/publication/service/private transitions, Soul `passed`, `familyAssertions.status=passed`, `pathScopeMatched=true`, and `privateStateExposed=false`. + - Use `notes/epiphany-repo-swarm-mvp-contract.md` as the repo-swarm autonomy authority map. Autonomous branch-local work inside an Epiphany-owned repo Body is in scope and desired; the safety boundary is typed authority, branch containment, interruption, receipts, private-state sealing, and Bifrost-gated publication/merge/escalation, not asking a human before every local edit. Current safe-family cargo includes repo manifest, tool capability manifest, daemon-hosted tool request cargo, Eve/CultUI surface contract, repo collaboration policy, collaboration topics, consensus/objective/adoption/scheduling/work-order/verification/publication/sync/review/PR/credit/artifact/metrics requests, action-item receipts, Mind adoption interpretation/decision receipts, overview/public-proof/Gjallar/Eve readbacks, typed swarm-run stop classification, Idunn non-mutating queue-run lifecycle receipts, and fresh-repo upstream-main proof. Latest swarm-run stop proof `.epiphany-smoke\fresh-repo-mvp-20260620-180024` shows `epiphany.repo_swarm_run_stop_classification.v0` embedded in the run receipt with category `iteration-limit`, owner `Self`, authority gate `self.scheduler-iteration-limit`, non-mutating/non-elevated stop flags, upstream-main sync proof, public-proof export, and `privateStateExposed=false`. - 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`, `planning-note`, `checklist-note`, `section-note` / `repo.markdown_managed_section`, `task-card` / `repo.task_card`, `repo-status-section` / `repo.status_section`, `repo-manifest` / `repo.body_manifest`, `repo-tool-capabilities` / `repo.tool_capabilities`, `repo-tool-request` / `repo.tool_request`, `repo-eve-surface` / `repo.eve_surface`, `repo-collaboration-policy` / `repo.collaboration_policy`, `repo-collaboration-topic` / `repo.collaboration_topic`, `repo-consensus-brief` / `repo.consensus_brief`, `repo-objective-draft` / `repo.objective_draft`, `repo-adoption-request` / `repo.adoption_request`, `repo-scheduling-request` / `repo.scheduling_request`, `repo-work-order` / `repo.work_order`, `repo-verification-request` / `repo.verification_request`, `repo-publication-request` / `repo.publication_request`, `repo-sync-request` / `repo.sync_request`, `repo-maintainer-review-request` / `repo.maintainer_review_request`, `repo-pr-request` / `repo.pr_request`, `repo-credit-request` / `repo.credit_request`, `repo-artifact-acceptance-request` / `repo.artifact_acceptance_request`, and `repo-metrics-request` / `repo.metrics_request`, typed Imagination action-item receipts over allowlisted safe families, `epiphany.repo_work_mind_interpretation.v0` plus `epiphany.repo_work_mind_adoption_decision.v0` Mind interpreter receipts before branch-local Hands authority, hash-backed local proof bundles with Bifrost/GitHub/credit/PR/upstream-main publication rows, redacted `epiphany-work export-proof` public bundles plus local Verse `epiphany.cultmesh.repo_work_public_proof.v0` Gjallar readback, Bifrost-owned `gamecult.bifrost.public_proof_publication_receipt.v0` closure plus wrapper `bifrost-public-proof` for redacted public proofs, Idunn-hosted non-mutating queue-run lifecycle plan/runbook receipts, and the speech-audited `epiphany-work persona-intake` mouth plus wrapper `repo-persona-intake` are live with `privateStateExposed=false`; proof `.epiphany-smoke\repo-planning-facets-20260620-175503` shows Mind interpretation classifies the adopted action item, allowed Hands transition, and forbidden durable-state/publication/service/private transitions before branch-local Hands authority opens. The contract note now explicitly answers that Epiphany is headed toward a functional repo swarm but is not fully online until the typed artery runs as a living repo organism. The next cut is deeper interpreter semantics beyond the first Mind decision packet, more useful repo-owned config/action families, or Idunn-owned queue-run service lifecycle under explicit operator authority. 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`, `planning-note`, `checklist-note`, `section-note` / `repo.markdown_managed_section`, `task-card` / `repo.task_card`, `repo-status-section` / `repo.status_section`, `repo-manifest` / `repo.body_manifest`, `repo-tool-capabilities` / `repo.tool_capabilities`, `repo-tool-request` / `repo.tool_request`, `repo-eve-surface` / `repo.eve_surface`, `repo-collaboration-policy` / `repo.collaboration_policy`, `repo-collaboration-topic` / `repo.collaboration_topic`, `repo-consensus-brief` / `repo.consensus_brief`, `repo-objective-draft` / `repo.objective_draft`, `repo-adoption-request` / `repo.adoption_request`, `repo-scheduling-request` / `repo.scheduling_request`, `repo-work-order` / `repo.work_order`, `repo-verification-request` / `repo.verification_request`, `repo-publication-request` / `repo.publication_request`, `repo-sync-request` / `repo.sync_request`, `repo-maintainer-review-request` / `repo.maintainer_review_request`, `repo-pr-request` / `repo.pr_request`, `repo-credit-request` / `repo.credit_request`, `repo-artifact-acceptance-request` / `repo.artifact_acceptance_request`, and `repo-metrics-request` / `repo.metrics_request`, typed Imagination action-item receipts over allowlisted safe families, `epiphany.repo_work_mind_interpretation.v0` plus `epiphany.repo_work_mind_adoption_decision.v0` Mind interpreter receipts before branch-local Hands authority, hash-backed local proof bundles with Bifrost/GitHub/credit/PR/upstream-main publication rows, redacted `epiphany-work export-proof` public bundles plus local Verse `epiphany.cultmesh.repo_work_public_proof.v0` Gjallar readback, Bifrost-owned `gamecult.bifrost.public_proof_publication_receipt.v0` closure plus wrapper `bifrost-public-proof` for redacted public proofs, Idunn-hosted non-mutating queue-run lifecycle plan/runbook receipts, and the speech-audited `epiphany-work persona-intake` mouth plus wrapper `repo-persona-intake` are live with `privateStateExposed=false`; proof `.epiphany-smoke\fresh-repo-mvp-20260620-180024` shows fresh-repo swarm run stop classification, closure, publication receipts, upstream-main sync, public-proof export, and private-state sealing. The contract note now explicitly answers that Epiphany is headed toward a functional repo swarm but is not fully online until the typed artery runs as a living repo organism. The next cut is deeper interpreter semantics beyond the first Mind decision packet, more useful repo-owned config/action families, or Idunn-owned queue-run service lifecycle under explicit operator authority. Preserve Idunn service lifecycle ownership and existing CultMesh/Odin/Eve tool directories; service install/start execution still requires explicit elevated operator authority.