From 00fcbda7923f892596623d9f5074325a4445215f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 20 Jun 2026 01:26:33 +0100 Subject: [PATCH] Project repo work queue into Gjallar --- epiphany-core/src/bin/epiphany-verse-query.rs | 45 ++++++++++++------ epiphany-core/src/cultmesh_integration.rs | 19 ++++++++ epiphany-core/src/lib.rs | 1 + notes/epiphany-repo-swarm-mvp-contract.md | 22 +++++++-- notes/fresh-workspace-handoff.md | 1 + state/ledgers.msgpack | Bin 308474 -> 308934 bytes state/map.yaml | 6 +-- 7 files changed, 72 insertions(+), 22 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-verse-query.rs b/epiphany-core/src/bin/epiphany-verse-query.rs index 3a90902e..25e99ff8 100644 --- a/epiphany-core/src/bin/epiphany-verse-query.rs +++ b/epiphany-core/src/bin/epiphany-verse-query.rs @@ -47,6 +47,7 @@ use epiphany_core::load_epiphany_cultmesh_daemon_restart_policy_directory; use epiphany_core::load_epiphany_cultmesh_daemon_service_lifecycle_receipts; use epiphany_core::load_epiphany_cultmesh_daemon_tool_directory; use epiphany_core::load_epiphany_cultmesh_eve_surface_directory; +use epiphany_core::load_epiphany_cultmesh_repo_work_overviews; use epiphany_core::load_epiphany_cultmesh_swarm_brake; use epiphany_core::load_latest_epiphany_cultmesh_agent_state_soa_summary; use epiphany_core::load_latest_epiphany_cultmesh_bifrost_body_change_publication_intent; @@ -3418,7 +3419,7 @@ fn run_cli() -> Result<()> { &[], &[], &[missing_artifact_action], - None, + &[], ); if !missing_artifact_rows.iter().any(|row| { row.priority == 50 @@ -3467,7 +3468,7 @@ fn run_cli() -> Result<()> { &[], &[], &[synthetic_runbook_action], - None, + &[], ); if !synthetic_artifact_rows.iter().any(|row| { row.priority == 50 @@ -4396,7 +4397,7 @@ fn swarm_action_rows( service_lifecycle_attention_rows: &[ReceiptDirectoryRow], service_execution_failed_check_rows: &[EpiphanyServiceExecutionAuditCheck], service_execution_runbook_actions: &[ServiceExecutionRunbookAction], - latest_repo_work_overview: Option<&EpiphanyCultMeshRepoWorkOverviewEntry>, + repo_work_overviews: &[EpiphanyCultMeshRepoWorkOverviewEntry], ) -> (Vec, Vec) { let mut rows = Vec::new(); let mut service_execution_check_counts = BTreeMap::::new(); @@ -4513,8 +4514,8 @@ fn swarm_action_rows( private_state_exposed: policy_report.private_state_exposed, }); } - if let Some(overview) = latest_repo_work_overview { - rows.push(repo_work_overview_action_row(overview)); + for (index, overview) in repo_work_overviews.iter().take(5).enumerate() { + rows.push(repo_work_overview_action_row(overview, 35 + index as u32)); } for (index, row) in service_lifecycle_attention_rows.iter().enumerate() { let (failed_check_count, missing_check_count) = service_execution_check_counts @@ -4681,11 +4682,11 @@ fn swarm_action_rows( } fn repo_work_overview_rows( - latest_repo_work_overview: Option<&EpiphanyCultMeshRepoWorkOverviewEntry>, + repo_work_overviews: &[EpiphanyCultMeshRepoWorkOverviewEntry], ) -> (Vec, Vec) { - let rows = latest_repo_work_overview + let rows = repo_work_overviews + .iter() .map(repo_work_overview_row) - .into_iter() .collect::>(); let tui_rows = rows .iter() @@ -4731,6 +4732,7 @@ fn repo_work_overview_tui_row(row: &RepoWorkOverviewRow) -> String { fn repo_work_overview_action_row( overview: &EpiphanyCultMeshRepoWorkOverviewEntry, + priority: u32, ) -> SwarmActionRow { let status = overview.current_gate.clone(); let command = format!( @@ -4738,7 +4740,7 @@ fn repo_work_overview_action_row( overview.workspace, overview.item ); SwarmActionRow { - priority: 35, + priority, family: "repo-work-overview".to_string(), status, lifecycle_owner: "Gjallar".to_string(), @@ -5348,8 +5350,23 @@ fn load_swarm_overview_report(args: &Args) -> Result { .collect::>(); let latest_repo_work_overview = load_latest_epiphany_cultmesh_repo_work_overview(&args.store, args.runtime_id.clone())?; + let mut repo_work_overviews = + load_epiphany_cultmesh_repo_work_overviews(&args.store, args.runtime_id.clone())?; + if let Some(latest) = latest_repo_work_overview.as_ref() { + if !repo_work_overviews + .iter() + .any(|overview| overview.overview_id == latest.overview_id) + { + repo_work_overviews.push(latest.clone()); + repo_work_overviews.sort_by(|a, b| { + b.generated_at + .cmp(&a.generated_at) + .then_with(|| a.overview_id.cmp(&b.overview_id)) + }); + } + } let (repo_work_overview_rows, repo_work_overview_tui_rows) = - repo_work_overview_rows(latest_repo_work_overview.as_ref()); + repo_work_overview_rows(&repo_work_overviews); let (swarm_action_rows, swarm_action_tui_rows) = swarm_action_rows( &liveness_status, &tool_host_attention_rows, @@ -5357,7 +5374,7 @@ fn load_swarm_overview_report(args: &Args) -> Result { &service_lifecycle_attention_rows, &service_execution_failed_check_rows, &service_execution_runbook_actions, - latest_repo_work_overview.as_ref(), + &repo_work_overviews, ); let private_state_exposed = daemon_report .rows @@ -5365,9 +5382,9 @@ fn load_swarm_overview_report(args: &Args) -> Result { .any(|row| row.private_state_exposed) || tool_report.rows.iter().any(|row| row.private_state_exposed) || policy_report.private_state_exposed - || latest_repo_work_overview - .as_ref() - .is_some_and(|overview| overview.private_state_exposed) + || repo_work_overviews + .iter() + .any(|overview| overview.private_state_exposed) || service_execution_private_state_exposed || service_lifecycle_rows .iter() diff --git a/epiphany-core/src/cultmesh_integration.rs b/epiphany-core/src/cultmesh_integration.rs index c8533aa9..7b650cb7 100644 --- a/epiphany-core/src/cultmesh_integration.rs +++ b/epiphany-core/src/cultmesh_integration.rs @@ -4162,6 +4162,25 @@ pub fn load_latest_epiphany_cultmesh_repo_work_overview( node.get(EPIPHANY_CULTMESH_REPO_WORK_OVERVIEW_LATEST_KEY) } +pub fn load_epiphany_cultmesh_repo_work_overviews( + store_path: impl AsRef, + runtime_id: impl Into, +) -> Result> { + let node = open_epiphany_cultmesh_node(store_path, runtime_id)?; + let mut overviews = node + .get_all_with_keys::()? + .into_iter() + .filter(|(key, _)| key != EPIPHANY_CULTMESH_REPO_WORK_OVERVIEW_LATEST_KEY) + .map(|(_, overview)| overview) + .collect::>(); + overviews.sort_by(|a, b| { + b.generated_at + .cmp(&a.generated_at) + .then_with(|| a.overview_id.cmp(&b.overview_id)) + }); + Ok(overviews) +} + fn validate_repo_work_overview(overview: &EpiphanyCultMeshRepoWorkOverviewEntry) -> Result<()> { if overview.private_state_exposed { return Err(anyhow!("repo work overview must not expose private state")); diff --git a/epiphany-core/src/lib.rs b/epiphany-core/src/lib.rs index 487d744e..b6bc5513 100644 --- a/epiphany-core/src/lib.rs +++ b/epiphany-core/src/lib.rs @@ -314,6 +314,7 @@ pub use cultmesh_integration::load_epiphany_cultmesh_daemon_tool_directory; pub use cultmesh_integration::load_epiphany_cultmesh_eve_surface_directory; pub use cultmesh_integration::load_epiphany_cultmesh_operator_snapshot; pub use cultmesh_integration::load_epiphany_cultmesh_operator_status; +pub use cultmesh_integration::load_epiphany_cultmesh_repo_work_overviews; pub use cultmesh_integration::load_epiphany_cultmesh_status; pub use cultmesh_integration::load_epiphany_cultmesh_swarm_brake; pub use cultmesh_integration::load_latest_epiphany_cultmesh_agent_state_soa_summary; diff --git a/notes/epiphany-repo-swarm-mvp-contract.md b/notes/epiphany-repo-swarm-mvp-contract.md index 9a2dc534..7005e912 100644 --- a/notes/epiphany-repo-swarm-mvp-contract.md +++ b/notes/epiphany-repo-swarm-mvp-contract.md @@ -657,6 +657,18 @@ TUI row, and a priority 35 `repo-work-overview` action row with `.epiphany-smoke\gjallar-repo-work-overview-20260620-011119`. This is still latest-key sight, not multi-item queue enumeration. +The next Gjallar projection smoke proved the typed repo-work history/queue: +`epiphany-verse-query gjallar --store \.epiphany\local-verse.ccmp +--runtime-id repo-swarm-local` now loads all +`epiphany.cultmesh.repo_work_overview.v0` event documents, excludes the +`latest` mirror, preserves latest scalar fields for compatibility, and emits +multiple `repoWorkOverviewRows`, compact `REPO-WORK` TUI rows, and bounded +priority 35-39 non-mutating `repo-work-overview` action rows. Proof artifact: +`.epiphany-smoke\gjallar-repo-work-queue-20260620-012027`, which saw items +`second,first`, `repoWorkOverviewCount=2`, two action rows, +`latestRepoWorkOverview=repo-work-overview-second`, and +`privateStateExposed=false`. + ## Migration Implication The next migration plan must treat autonomous branch-local work as a required @@ -736,7 +748,7 @@ temptation wearing clean robes. | Self scheduling | `tick` and `serve` prove one-step branch-local advancement, brake refusal, active-turn refusal, cooldown, and stale-turn recovery. | Wire the same pulse into a usable repo-swarm run surface and optional Idunn-hosted lifecycle without taking Idunn's authority. | | Branch-local Hands work | `adopt` and `execute` create approved Hands gates, run planned commands, stage declared paths, commit on `epiphany/*`, and write receipts. | Keep mutation branch-contained and receipt-backed; broaden only through typed plan families, not ad hoc shell freedom. | | Soul/Modeling/Mind closure | `close` verifies the Hands commit and writes deterministic Soul, Modeling, and Mind receipts. | Add richer model-authored closure where useful, while preserving deterministic local closure for simple mechanical work. | -| Repo work sight | `overview` emits compact proof rows and mirrors latest `epiphany.cultmesh.repo_work_overview.v0`. | Project queue and multiple-work-item rows through Gjallar/Eve so Persona and peers can see current gate, blocker, and next safe action. | +| Repo work sight | `overview` emits compact proof rows and mirrors typed `epiphany.cultmesh.repo_work_overview.v0` event documents plus a latest key; Gjallar now enumerates the history as queue rows and non-mutating action rows. | Lower the queue into Eve/Persona surfaces so Persona and peers can see current gate, blocker, and next safe action. | | Publication | `publish` routes Bifrost/GitHub receipts from closure or explicit Soul/Mind refs. | Keep publication Bifrost-owned; do not let scheduler publish. | | Upstream main sync | `sync` proves the published commit is contained by upstream main after explicit merge/sync authority. | Treat upstream-main sync as a required final proof for published work. | | Daemon survival | Idunn service lifecycle receipts and runbooks exist outside repo-work tick authority. | Preserve Idunn as lifecycle owner; repo swarm may request or inspect service state, not impersonate daemon keeping. | @@ -894,10 +906,10 @@ Required organs before MVP: commits; richer model-authored Soul/Modeling review remains to replace the current local verification rite where appropriate. - Repo work projection: local `epiphany-work overview` proof bundles, typed - `epiphany.cultmesh.repo_work_overview.v0` latest-key projection, and Gjallar - latest-key `repo-work-overview` action/readback rows exist. Remaining work is - typed history/queue enumeration plus richer Eve presentation of multiple work - items for Personas and peer bodies. + `epiphany.cultmesh.repo_work_overview.v0` event history plus latest-key + projection, and Gjallar multi-item `repo-work-overview` action/readback rows + exist. Remaining work is richer Eve presentation of multiple work items for + Personas and peer bodies. - 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 diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index a0fc86fc..6786223c 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -64,6 +64,7 @@ remembers doctrine; the branch remembers the blade. - `epiphany-verse-query tool-directory` and `tools/epiphany_local_run.ps1 -Mode tool-directory` are the compact read-only daemon tool directory. The report reads the same local Verse capability records used by `invoke-tool`, annotates them with host daemon readiness, and returns TUI rows plus direct `invocationCommand` and wrapper `wrapperInvocationCommand=tools/epiphany_local_run.ps1 -Mode tool-invoke -ToolCapabilityId -ToolRequestingAgentId -ToolRequestingClusterId `. TUI rows expose the global-tool contract directly, e.g. `READY | Hands | repo-action | submitHandsActionIntent | epiphany.cluster.hands.tool.repo-action | eve://epiphany/hands | authority=hands | input=epiphany.hands.action_intent | receiptType=epiphany.hands.action_review | allAgents=true | receipt=true | private=false`. Verified: fresh proof store returned eighteen globally available, receipt-gated, private-state-sealed tools with no host attention; smoke source-proves the compact Hands, Self `service-health`, Self `swarm-online-runbook`, and status readback rows plus command hints; wrapper proof `local-20260619-032243-566-545b148c` printed all eighteen rows in the one-line `toolRows` summary with authority gates and advertised input/receipt contract types, including status tools, Self `service-health`, Self `swarm-online-runbook`, Hands `repo-action`, and Soul `verify`, with `privateStateExposed=False`. - 2026-06-18: Tool-directory TUI rows now render the advertised capability `authorityGate` as `authority=`, matching the JSON surface and invocation receipt row. Source smoke guards the Hands `repo-action` row with `authority=hands`; live wrapper proof `local-20260618-223032-345-74d9bdb2` printed all sixteen tool rows with authority gates, including `authority=imagination.consensus_discovery` for Eve connection tools, `authority=hands` for Hands repo-action, `authority=soul` for Soul verify, and `authority=none` for read-only status. - `epiphany-verse-query swarm-overview` and `tools/epiphany_local_run.ps1 -Mode swarm-overview` are the one-command compact global-agent sight rite; `epiphany-verse-query gjallar` and `tools/epiphany_local_run.ps1 -Mode gjallar` are the first named Gjallar herald aliases over the same sealed whole-Verse report. The report composes narrow cluster topology, liveness, Odin/Eve surface, daemon tool, restart-policy coverage, receipt-directory service-lifecycle attention, and the shared core service-execution audit report; returns seven agents/daemons, seven clusters, seven private Verse ids, seven Eve surfaces, one public Persona discussion surface, nineteen globally invokable receipt-gated tools, command hints for topology/liveness/surfaces/tools/receipts/poke/connect/invoke/Bifrost-ledger/service-policy-directory/service-execution-audit, sealed `toolHostAttentionRows`/TUI rows for blocked daemon-hosted capabilities, sealed `serviceLifecycleAttentionRows`/TUI rows copied from the receipt directory, explicit `serviceLifecycleRecommended*` fields for service-manager follow-up, ordered `swarmActionRows`/TUI rows with Idunn/Epiphany lifecycle ownership on daemon/service physiology rows, authority/effect/wrapper-command/mutation/elevation metadata plus sealed `operatorArtifactRef`, `operatorArtifactStatus`, `operatorArtifactSha256`, `operatorArtifactExecutionCommand`, `operatorAftercareCommand`, and `completionAuditWrapper*` pointers for operator-runbook rows, `serviceExecutionFailedCheckRows`/TUI rows naming the failed sealed execution checks, and `privateStateExposed=false`; and avoids full local Verse serialization. Compact action TUI rows and wrapper `actionQueue` now include `owner=Idunn`, `hostedBody=Epiphany`, `aftercare=`, and scoped `failedChecks`/`missingChecks` on both service-lifecycle readback rows and elevated authority rows, so Gjallar remains sight while Idunn remains daemon keeper. Live `epiphany-verse-query` defaults to `.epiphany-run\cultmesh\local-verse.ccmp`, matching the wrapper and daemon supervisor; bare `epiphany-verse-query smoke` uses disposable `.epiphany-smoke\verse-query-default\local-verse.ccmp` unless an explicit `--store` is provided. The previous Windows debug stack-overflow wound is cut by running the CLI body on a larger worker-thread stack; broad `epiphany-verse-query smoke` now returns `status=ok` and `daemonTools=19`. Verified focused proof: live Gjallar artifact `local-20260619-035353-171-34fb0d31` returned `tools=19`, `recommended=swarm-online-runbook`, `serviceRecommended=cluster-service-execution-audit`, exact `swarmOnlineTool=tools/epiphany_local_run.ps1 -Mode tool-invoke -ToolCapabilityId epiphany.cluster.self.tool.swarm-online-runbook -ToolRequestingAgentId -ToolRequestingClusterId `, and four action rows whose non-mutating service readback plus elevated cluster/single-service runbook rows all carried `owner=Idunn`, `hostedBody=Epiphany`, aftercare, artifact hashes where present, failed/missing check counts, and `privateStateExposed=False`. +- 2026-06-20: Gjallar repo-work sight now enumerates typed overview history instead of only the latest mirror. `load_epiphany_cultmesh_repo_work_overviews` filters out the `epiphany.cultmesh.repo_work_overview.v0` latest key, `epiphany-verse-query gjallar` emits multiple `repoWorkOverviewRows`, compact `REPO-WORK` TUI rows, and bounded priority 35-39 non-mutating `repo-work-overview` action rows while keeping latest scalar fields for compatibility. Disposable proof `.epiphany-smoke\gjallar-repo-work-queue-20260620-012027` saw items `second,first`, `repoWorkOverviewCount=2`, two action rows, `latestRepoWorkOverview=repo-work-overview-second`, and no mutation, elevation, or private-state exposure. Next lower this queue into Eve/Persona and peer-readable gate/blocker/next-action summaries. - 2026-06-19: Service lifecycle readback follow-ups are now derived from the typed receipt action instead of hardcoding audit as the only compact action-row wrapper. `cluster-windows-service-execution-readiness` routes to `cluster-service-execution-readiness`; install/start/stop/status/reconcile route to their receipt-producing wrappers; audit still routes to audit. Source smoke now includes a synthetic readiness receipt guard, and live Gjallar proof `local-20260619-005713-795-96fd5370` still shows the current latest audit receipts as audit rows while failed-check anatomy preserves readiness/install/start/stop follow-ups, `owner=Idunn`, `hostedBody=Epiphany`, and `privateStateExposed=False`. - `epiphany-verse-query swarm-triage` and `tools/epiphany_local_run.ps1 -Mode swarm-triage` are the compact "see the swarm, then poke only if liveness attention exists" rite. It reads the compact overview first, writes no poke receipt when liveness is ready, routes non-ready daemons through the existing brake-aware `poke-down-daemons` receipt writer, carries overview's sealed service lifecycle attention rows, failed service-execution check rows, explicit service lifecycle recommendation, and ordered/effect-classified action queue with sealed runbook artifact and audit pointers without treating service-manager wounds as daemon-poke authority, and carries sealed `toolHostAttentionRows`/TUI rows so agents can see which advertised tools are blocked by a sick host daemon. Current overview routing means liveness-ready service execution attention recommends `swarm-online-runbook` globally while preserving `serviceRecommended=cluster-service-execution-audit` for readback. Live triage artifact `local-20260619-004523-003-a44ad06d` proved the no-poke path still prints Idunn/Epiphany ownership on service readback and elevated service-control action rows while `poked=0`. The older degraded Hands proof still routes through the topology-aware poke path and exposes blocked Hands tool-host rows plus liveness/tool-host action rows; source smoke `verse-query-completion-audit-row-smoke` proves the degraded single-poke triage path without a post-receipt full-context readback. - `swarmActionTuiRows` now carry the same audit and artifact-provenance visibility as JSON rows. Fresh source smoke `verse-query-action-tui-audit-smoke` and live artifact `local-20260618-164403-238-dba797ce` prove the compact rows include `artifact=present | sha256=3239ac17008b1ce857970e40b17d37a1ecf1631a3a6636bb2b8678312fb604a0 | audit=cluster-service-execution-audit` on the `service-execution-authority` row and `artifact=none | sha256=none | audit=none` on the readback row, while service mutation still requires explicit elevated operator authority and private state remains sealed. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 1889eeafe1e72e1c54c655216a3aa2a32111a436..93833472a7c79d20e19d5d10e6ccc5c7f1d71645 100644 GIT binary patch delta 415 zcmZXQ&q~8U5XMatP}Eb!Kj6UuQ52ds2HHYF5QK^+Q7VFXS(>q3yV*^5H;FwJ@!-`< z$<2!oV6lpC(0B3R3wScERs;{j%y*b?e&2k)XNMoz{)#c@7AwW_`Ebg5eH^SCZNr$q z?PczI86&MxH{W_03!jtwV{>-Kb!v`Naf?a+DYLryaBxK!BN8MA!j6S(K|90{LD5E2 z0~awcL6Vydb1~T)SWDd|Ra(dn;B}pa9_0;SM5EH+Qz?Z6!aYErY6X7CGz}Pztl47$jHduJe8?^Dib3RgJ|aMQ<+#&Hvs^< Ck`Q|U diff --git a/state/map.yaml b/state/map.yaml index 37f65c00..b911281b 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -88,8 +88,8 @@ 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 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. Thirteen native repo-swarm front doors are live and documented there: `epiphany-repo init`, `epiphany-swarm online`, `epiphany-work accept`, `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 publish`, and `epiphany-work sync`. Fresh-repo smokes proved the chain with `privateStateExposed=false`, including deterministic Persona/Bifrost pressure-to-plan derivation (`append-worklog`, `operatorAuthoredShellDetails=false`) into `EPIPHANY_WORKLOG.md`, plan-backed branch-local commit creation, a Self-owned tick pulse that advances `run-from-plan -> adopt-from-plan -> execute-from-plan` then no-ops before closure/publication gates, local CultMesh swarm-brake refusal that writes `refused-by-swarm-brake` without creating a run/adopt/execute 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, 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 readback through `epiphany-verse-query smoke`, `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 model-authored Persona-to-plan depth for richer actions, richer Gjallar/Eve presentation of repo work queues and multiple work items, optional execute-to-close scheduler handoff, 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 the latest typed repo-work overview into the compact global sight report. `epiphany-verse-query gjallar` reads `epiphany.cultmesh.repo_work_overview.v0` from local Verse, emits `latestRepoWorkOverview`, `latestRepoWorkGate`, `latestRepoWorkBlocker`, `latestRepoWorkNextSafeMove`, a `repoWorkOverviewRows`/TUI row, and a priority 35 non-mutating `repo-work-overview` action row with `owner=Gjallar`, `hostedBody=repo-work`, `authorityGate=repo.work.overview`, `mutatesState=false`, `requiresElevatedAuthority=false`, proof-bundle ref, current gate/blocker/next-safe-move, and `privateStateExposed=false`. Disposable proof `.epiphany-smoke\gjallar-repo-work-overview-20260620-011119` showed item `gjallar-request`, gate `awaiting-plan`, blocker `plan-receipt-missing`, `repoWorkOverviewCount=1`, compact `REPO-WORK` row, and no private-state exposure. This is latest-key sight only; multiple-work-item enumeration still needs a typed history/queue loader instead of pretending the latest mirror is a queue. + - 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. Thirteen native repo-swarm front doors are live and documented there: `epiphany-repo init`, `epiphany-swarm online`, `epiphany-work accept`, `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 publish`, and `epiphany-work sync`. Fresh-repo smokes proved the chain with `privateStateExposed=false`, including deterministic Persona/Bifrost pressure-to-plan derivation (`append-worklog`, `operatorAuthoredShellDetails=false`) into `EPIPHANY_WORKLOG.md`, plan-backed branch-local commit creation, a Self-owned tick pulse that advances `run-from-plan -> adopt-from-plan -> execute-from-plan` then no-ops before closure/publication gates, local CultMesh swarm-brake refusal that writes `refused-by-swarm-brake` without creating a run/adopt/execute 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, 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 and event-history readback through Gjallar, `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 model-authored Persona-to-plan depth for richer actions, richer Eve/Persona presentation of repo work queues and multiple work items, optional execute-to-close scheduler handoff, 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. `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`. Disposable proofs `.epiphany-smoke\gjallar-repo-work-overview-20260620-011119` and `.epiphany-smoke\gjallar-repo-work-queue-20260620-012027` showed the latest-key row first, then a two-item queue (`second,first`) with `repoWorkOverviewCount=2`, two compact `REPO-WORK` rows, two action rows, latest `repo-work-overview-second`, and no private-state exposure. This is sight/readback only; Eve/Persona lowering still needs to present the queue for peers without opening raw worker thought. - 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. - Grow the VoidBot repo-Persona pattern into Epiphany's product direction: each Epiphany owns one or more repos, has one or more Personas, and exposes project-native conversation through Aquarium, Discord, voice/WebRTC, stream surfaces, CLI, and CultNet clients so humans can talk to projects instead of pre-authoring complete implementation briefs. Persona is special because Imagination acts as Projector, turning typed state into narrative context before the Persona thinks, and Mind acts as Interpreter, turning natural Persona output into reviewed state/side-effect intents after the Persona thinks. @@ -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 thirteen-front-door chain. Latest-key Gjallar repo-work sight is live; next build typed repo-work history/queue enumeration over `epiphany.cultmesh.repo_work_overview.v0` so Gjallar/Eve can show multiple work items instead of only the latest mirror, then lower that queue into Persona/peer-readable current gate/blocker/next-action summaries without opening raw worker thought. Preserve Idunn service lifecycle surfaces 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 thirteen-front-door chain. Typed Gjallar repo-work history/queue sight is live over `epiphany.cultmesh.repo_work_overview.v0`; next lower that queue into Eve/Persona and peer-readable current gate/blocker/next-action summaries without opening raw worker thought, then wire the sight into a usable repo-swarm run surface. Preserve Idunn service lifecycle surfaces and existing CultMesh/Odin/Eve tool directories; service install/start execution still requires explicit elevated operator authority.