From 9a0538c912f6f861bc87866f0ffb0e39f9fb9d0c Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 19 Jun 2026 00:47:48 +0100 Subject: [PATCH] Expose Idunn ownership in swarm action queue --- epiphany-core/src/bin/epiphany-verse-query.rs | 36 +++++++++++++++++- notes/fresh-workspace-handoff.md | 4 +- state/ledgers.msgpack | Bin 286813 -> 287340 bytes state/map.yaml | 1 + tools/epiphany_local_run.ps1 | 20 +++++++++- 5 files changed, 56 insertions(+), 5 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-verse-query.rs b/epiphany-core/src/bin/epiphany-verse-query.rs index 4c8f67de..0a72e5ff 100644 --- a/epiphany-core/src/bin/epiphany-verse-query.rs +++ b/epiphany-core/src/bin/epiphany-verse-query.rs @@ -1581,6 +1581,8 @@ fn main() -> Result<()> { && row.family == "daemon-restart-policy" && row.wrapper_mode == "service-policy-directory" && row.effect_class == "read-only" + && row.lifecycle_owner == SERVICE_LIFECYCLE_OWNER + && row.hosted_body == SERVICE_LIFECYCLE_HOSTED_BODY && !row.mutates_state && !row.requires_elevated_authority && !row.private_state_exposed @@ -2026,6 +2028,8 @@ fn main() -> Result<()> { && row.family == "daemon-liveness" && row.wrapper_mode == "swarm-poke-down" && row.effect_class == "typed-lifecycle-poke" + && row.lifecycle_owner == SERVICE_LIFECYCLE_OWNER + && row.hosted_body == SERVICE_LIFECYCLE_HOSTED_BODY && row.mutates_state && !row.requires_elevated_authority && !row.private_state_exposed @@ -2035,6 +2039,8 @@ fn main() -> Result<()> { && row.family == "daemon-tool-host" && row.wrapper_mode == "tool-directory" && row.effect_class == "read-only" + && row.lifecycle_owner == "none" + && row.hosted_body == "none" && !row.mutates_state && !row.requires_elevated_authority && !row.private_state_exposed @@ -2639,6 +2645,8 @@ fn main() -> Result<()> { row.priority == 40 && row.family == "service-lifecycle" && row.effect_class == "service-lifecycle-readback" + && row.lifecycle_owner == SERVICE_LIFECYCLE_OWNER + && row.hosted_body == SERVICE_LIFECYCLE_HOSTED_BODY && row.operator_artifact_ref == "smoke://verse-query/cluster-windows-service-execution-audit" && row.operator_artifact_status == "external-ref" @@ -2661,6 +2669,8 @@ fn main() -> Result<()> { }) || !service_overview.swarm_action_tui_rows.iter().any(|row| { row.contains("service-lifecycle") + && row.contains("owner=Idunn") + && row.contains("hostedBody=Epiphany") && row.contains("artifact=external-ref") && row.contains("sha256=none") && row.contains("audit=none") @@ -2669,6 +2679,8 @@ fn main() -> Result<()> { row.priority == 50 && row.family == "service-execution-authority" && row.effect_class == "elevated-service-control" + && row.lifecycle_owner == SERVICE_LIFECYCLE_OWNER + && row.hosted_body == SERVICE_LIFECYCLE_HOSTED_BODY && row.operator_artifact_ref == service_smoke_runbook_path.display().to_string() && row.operator_artifact_status == "present" @@ -2699,6 +2711,8 @@ fn main() -> Result<()> { row.priority == 51 && row.family == "service-execution-authority" && row.effect_class == "elevated-service-control" + && row.lifecycle_owner == SERVICE_LIFECYCLE_OWNER + && row.hosted_body == SERVICE_LIFECYCLE_HOSTED_BODY && row.operator_aftercare_command == WRAPPER_SERVICE_EXECUTION_AUDIT_COMMAND && row.completion_audit_wrapper_mode == "service-execution-audit" && row.completion_audit_wrapper_command == WRAPPER_SERVICE_EXECUTION_AUDIT_COMMAND @@ -2713,6 +2727,8 @@ fn main() -> Result<()> { }) || !service_overview.swarm_action_tui_rows.iter().any(|row| { row.contains("service-execution-authority") + && row.contains("owner=Idunn") + && row.contains("hostedBody=Epiphany") && row.contains("command=tools/epiphany_local_run.ps1 -Mode cluster-service-execution-runbook") && row.contains("service=epiphany-cluster-daemon-services") && row.contains("route=epiphany-cluster-daemon-services::cluster-windows-service-execution-runbook") @@ -2737,6 +2753,8 @@ fn main() -> Result<()> { }) || !service_overview.swarm_action_tui_rows.iter().any(|row| { row.contains("service-execution-authority") + && row.contains("owner=Idunn") + && row.contains("hostedBody=Epiphany") && row.contains("command=tools/epiphany_local_run.ps1 -Mode service-execution-runbook") && row.contains("service=epiphany-daemon-supervisor-service") && row.contains("route=epiphany-daemon-supervisor-service::windows-service-execution-runbook") @@ -3313,6 +3331,8 @@ struct SwarmActionRow { priority: u32, family: String, status: String, + lifecycle_owner: String, + hosted_body: String, action: String, wrapper_mode: String, wrapper_command: String, @@ -3755,6 +3775,8 @@ fn swarm_action_rows( priority: 10, family: "daemon-liveness".to_string(), status: "attention".to_string(), + lifecycle_owner: SERVICE_LIFECYCLE_OWNER.to_string(), + hosted_body: SERVICE_LIFECYCLE_HOSTED_BODY.to_string(), action: "epiphany-verse-query poke-down-daemons".to_string(), wrapper_mode: "swarm-poke-down".to_string(), wrapper_command: WRAPPER_POKE_NON_READY_COMMAND.to_string(), @@ -3787,6 +3809,8 @@ fn swarm_action_rows( priority: 20, family: "daemon-tool-host".to_string(), status: "attention".to_string(), + lifecycle_owner: "none".to_string(), + hosted_body: "none".to_string(), action: "epiphany-verse-query tool-directory".to_string(), wrapper_mode: "tool-directory".to_string(), wrapper_command: "tools/epiphany_local_run.ps1 -Mode tool-directory".to_string(), @@ -3818,6 +3842,8 @@ fn swarm_action_rows( priority: 30, family: "daemon-restart-policy".to_string(), status: policy_report.status.clone(), + lifecycle_owner: SERVICE_LIFECYCLE_OWNER.to_string(), + hosted_body: SERVICE_LIFECYCLE_HOSTED_BODY.to_string(), action: "epiphany-verse-query restart-policy-directory".to_string(), wrapper_mode: "service-policy-directory".to_string(), wrapper_command: WRAPPER_SERVICE_POLICY_DIRECTORY_COMMAND.to_string(), @@ -3850,6 +3876,8 @@ fn swarm_action_rows( priority: 40 + index as u32, family: "service-lifecycle".to_string(), status: "attention".to_string(), + lifecycle_owner: SERVICE_LIFECYCLE_OWNER.to_string(), + hosted_body: SERVICE_LIFECYCLE_HOSTED_BODY.to_string(), action: format!("epiphany-verse-query receipt-directory {} follow-up", row.family), wrapper_mode: service_lifecycle_wrapper_mode_for_row(row).to_string(), wrapper_command: row.follow_up_command.clone(), @@ -3940,6 +3968,8 @@ fn swarm_action_rows( priority: 50 + index as u32, family: "service-execution-authority".to_string(), status, + lifecycle_owner: SERVICE_LIFECYCLE_OWNER.to_string(), + hosted_body: SERVICE_LIFECYCLE_HOSTED_BODY.to_string(), action, wrapper_mode, wrapper_command, @@ -3969,6 +3999,8 @@ fn swarm_action_rows( priority: 100, family: "swarm".to_string(), status: "ready".to_string(), + lifecycle_owner: "none".to_string(), + hosted_body: "none".to_string(), action: "none".to_string(), wrapper_mode: "none".to_string(), wrapper_command: "none".to_string(), @@ -4000,12 +4032,14 @@ fn swarm_action_rows( fn swarm_action_tui_row(row: &SwarmActionRow) -> String { format!( - "{:03} | {} | {} | {} | {} | service={} | route={} | command={} | mutates={} | elevated={} | failedChecks={} | missingChecks={} | artifact={} | sha256={} | exec={} | audit={} | aftercare={}", + "{:03} | {} | {} | {} | {} | owner={} | hostedBody={} | service={} | route={} | command={} | mutates={} | elevated={} | failedChecks={} | missingChecks={} | artifact={} | sha256={} | exec={} | audit={} | aftercare={}", row.priority, row.family, row.status, row.wrapper_mode, row.authority_gate, + row.lifecycle_owner, + row.hosted_body, row.service_id, row.service_route, row.wrapper_command, diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 9bd107f4..c01168b9 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -63,8 +63,8 @@ remembers doctrine; the branch remembers the blade. - `tools/epiphany_local_run.ps1` now stamps local run ids as `local-YYYYMMDD-HHMMSS-fff-` instead of second-resolution ids, so concurrent operator rites get separate artifact roots and run receipts. Verified: `collaboration-feedback` and `bifrost-publication` launched in parallel in the same second and completed as `local-20260618-064814-171-dc0b8dd9` and `local-20260618-064814-149-2946d675`. - `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 sixteen globally available, receipt-gated, private-state-sealed tools with `hostReadyCount=16`, `hostAttentionCount=0`; smoke source-proves the compact Hands contract row and command hints; wrapper proof `local-20260618-223557-260-7acb1cd1` printed all sixteen rows in the one-line `toolRows` summary with authority gates and advertised input/receipt contract types, including 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, sixteen 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 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 now include `aftercare=` so the Rust-owned row names the required audit command after elevated runbook execution. 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 `--store` is explicit. Verified: live overview artifact `local-20260619-001128-955-195f4e65` returned `recommended=swarm-online-runbook`, `recommendedWrapperCommand=tools/epiphany_local_run.ps1 -Mode swarm-online-runbook`, `serviceRecommended=cluster-service-execution-audit`, and four action rows, with non-mutating service readback rows carrying `aftercare=none` and elevated cluster/single-service runbook rows carrying `aftercare=tools/epiphany_local_run.ps1 -Mode cluster-service-execution-audit` / `aftercare=tools/epiphany_local_run.ps1 -Mode service-execution-audit`, present artifact hashes, failed/missing check counts, and `privateStateExposed=False`. Current focused proof for the Gjallar alias uses `epiphany-verse-query gjallar` and wrapper `-Mode gjallar`; the broad `epiphany-verse-query -- smoke` debug build still hits a Windows stack-overflow wound and should not be treated as clean until that separate smoke-size fault is cut. -- `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. 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. +- `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, seventeen 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`, and `aftercare=` 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, but the current Windows debug build still hits the known stack-overflow wound. Verified focused proof: live Gjallar artifact `local-20260619-004523-347-620b40e9` returned `recommended=swarm-online-runbook`, `serviceRecommended=cluster-service-execution-audit`, 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`. +- `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. - Receipt directory rows now classify and hash their artifact refs. `ReceiptDirectoryRow` includes `artifactStatus` plus `artifactSha256`, receipt TUI rows append `artifact= | sha256=`, and wrapper `receipt-directory` prints compact `artifactHashes=:; ...` for present local artifacts. Fresh smoke guards present-artifact SHA-256 in receipt-directory JSON/TUI; live wrapper artifacts `local-20260618-165005-139-6188fe30` and `local-20260618-165319-478-e929d2bd` prove the cluster execution runbook hash `3239ac17008b1ce857970e40b17d37a1ecf1631a3a6636bb2b8678312fb604a0`, the per-service execution runbook hash `b213a3c11a8f11a03061fcd743f507edaa59bc6767257b79cef63329596375e7`, and non-artifact rows `artifactSha256=none`. - `epiphany-verse-query receipt-directory` still derives compact artifact status counts: `artifactNoneCount`, `artifactExternalRefCount`, `artifactPresentCount`, and `artifactMissingCount`. Live readback reports `artifactNone=13`, `artifactExternalRef=2`, `artifactPresent=2`, `artifactMissing=0`, and `privateStateExposed=false`. A clean direct empty-store readback reported all 17 rows as `artifactNone`. The earlier all-in-one `epiphany-verse-query smoke` Windows stack overflow was fixed by cutting full `query_epiphany_local_verse_context` out of `load_swarm_overview_report`; overview now reads daemon service lifecycle rows through narrow history/latest loaders. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 22039a9f03c4fc350310958d5260333d74f056ba..475349e43e9bb8f768a657867dfc5b16aeb0f6b4 100644 GIT binary patch delta 424 zcmX|-J4*vW5P-epKtvF1RICQYE_$E=UyTn$VxeLbL9p2DPLkEl?q&8aM{E=<`~ecK z_8$lqc48r7X=!6Xu+;zHUPOywVIJRnv+s|?Ur)ogW8PqKera~`=(*2lrMpS5>3QAD zPVTCc^IT+a{=Sp*Uyjq2z#r4!kt7T1$AR16l+Gb!F87tMvc|p` for each failed/missing check so the compact row names the receipt-producing or readback route without opening raw audit payloads. Live wrapper proof `local-20260618-224925-221-8e114063` printed cluster readiness/install/start/audit/stop failures with follow-ups such as `cluster-service-execution-readiness`, `cluster-service-install-execute`, and `cluster-service-execution-audit`, plus supervisor-service missing checks with follow-ups such as `service-execution-readiness`, `service-install-execute`, `service-status`, and `service-reconcile`, all sealed with `privateStateExposed=false`. The action queue now carries service-execution wound counters on each row: non-mutating readbacks report zero, and elevated authority rows report only the sealed failed/missing checks their own runbook artifact can cure. Source smoke seeds both cluster and single-service runbook witnesses and proves distinct authority rows. Live overview/triage proofs `local-20260618-221339-826-b1981064` and `local-20260618-221340-099-4b4baba8` printed priority 50 `cluster-service-execution-runbook` with `failedChecks=5`, `missingChecks=0`, SHA-256 `3239ac17008b1ce857970e40b17d37a1ecf1631a3a6636bb2b8678312fb604a0`, and aftercare `cluster-service-execution-audit`, plus priority 51 `service-execution-runbook` with `failedChecks=6`, `missingChecks=6`, SHA-256 `b213a3c11a8f11a03061fcd743f507edaa59bc6767257b79cef63329596375e7`, and aftercare `service-execution-audit`, with `privateStateExposed=false`. `SwarmActionRow` now exposes explicit `serviceId` and `serviceRoute` fields so agents can identify the body/action without parsing artifact paths or prose; Rust TUI and wrapper action queues render `service=` and `route=` for service lifecycle and service authority rows, while non-service rows render `none`. Source smoke guards both fields, and live overview/triage proofs `local-20260618-221912-231-805389bf` and `local-20260618-221912-282-a79ba8bd` showed the cluster and supervisor-service identities on readback and elevated runbook rows with `privateStateExposed=false`. `ReceiptDirectoryRow` now owns the same explicit `serviceId`/`serviceRoute` fields, so action rows consume typed service identity from the receipt-directory organ instead of parsing `route`; non-service receipt families carry `none`, while service lifecycle/runbook rows carry the typed body and route. Source smoke guards the fields, and live receipt-directory proof `local-20260618-222641-218-60106c79` printed `service=epiphany-cluster-daemon-services` and `service=epiphany-daemon-supervisor-service` on service attention/readiness rows and runbook witnesses with no private-state exposure. + - `SwarmActionRow` now carries `lifecycleOwner` and `hostedBody` so Gjallar/overview/triage action queues distinguish sight from daemon-keeper authority. Daemon liveness, restart-policy, service-lifecycle readback, and elevated service-control rows carry `Idunn` / `Epiphany`; non-lifecycle rows carry `none`. Rust TUI rows plus wrapper `actionQueue` render `owner=Idunn` and `hostedBody=Epiphany` for service readback and elevated service-control rows. Focused live proofs `local-20260619-004523-347-620b40e9` (`gjallar`) and `local-20260619-004523-003-a44ad06d` (`swarm-triage`) show the ownership fields on all service action rows with no daemon poke when liveness is ready and no private-state exposure. The broad `epiphany-verse-query smoke` Windows debug build still overflows the stack and remains a separate smoke-size wound, not proof against this focused surface. - Direct wrapper audit summaries now expose the same follow-up ergonomics as the global sight rows. `tools/epiphany_local_run.ps1 -Mode cluster-service-execution-audit` and `-Mode service-execution-audit` print `failed check rows` with `serviceId::action=status`, artifact ref, local artifact SHA-256 when present, and `followUp=` for each failed/missing check. Live proofs `local-20260618-225923-468-d818951a` and `local-20260618-225923-529-7cfa2bb3` showed cluster readiness/install/start/audit/stop failures and supervisor-service readiness/install/start/status/reconcile/stop missing checks with actionable follow-up wrappers and `privateStateExposed=false`. - 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. diff --git a/tools/epiphany_local_run.ps1 b/tools/epiphany_local_run.ps1 index fb84c4a9..2de9ccb0 100644 --- a/tools/epiphany_local_run.ps1 +++ b/tools/epiphany_local_run.ps1 @@ -2043,7 +2043,15 @@ if ($resultPath -ne "" -and (Test-Path -LiteralPath $resultPath)) { if ($null -eq $serviceRoute -or $serviceRoute -eq "") { $serviceRoute = "none" } - "$($_.priority):$($_.family):$($_.wrapperMode):$($_.status):service=${serviceId}:route=${serviceRoute}:command=${command}:mutates=$($_.mutatesState):elevated=$($_.requiresElevatedAuthority):failedChecks=${failedChecks}:missingChecks=${missingChecks}:artifactStatus=${artifactStatus}:sha256=${artifactSha256}:exec=${executionCommand}:audit=${audit}:aftercare=${aftercare}:artifact=$artifact" + $owner = $_.lifecycleOwner + if ($null -eq $owner -or $owner -eq "") { + $owner = "none" + } + $hostedBody = $_.hostedBody + if ($null -eq $hostedBody -or $hostedBody -eq "") { + $hostedBody = "none" + } + "$($_.priority):$($_.family):$($_.wrapperMode):$($_.status):owner=${owner}:hostedBody=${hostedBody}:service=${serviceId}:route=${serviceRoute}:command=${command}:mutates=$($_.mutatesState):elevated=$($_.requiresElevatedAuthority):failedChecks=${failedChecks}:missingChecks=${missingChecks}:artifactStatus=${artifactStatus}:sha256=${artifactSha256}:exec=${executionCommand}:audit=${audit}:aftercare=${aftercare}:artifact=$artifact" }) -join "; ") } $serviceExecutionFailedChecks = Format-ServiceExecutionFailedChecks $result.serviceExecutionFailedCheckRows @@ -2149,7 +2157,15 @@ if ($resultPath -ne "" -and (Test-Path -LiteralPath $resultPath)) { if ($null -eq $serviceRoute -or $serviceRoute -eq "") { $serviceRoute = "none" } - "$($_.priority):$($_.family):$($_.wrapperMode):$($_.status):service=${serviceId}:route=${serviceRoute}:command=${command}:mutates=$($_.mutatesState):elevated=$($_.requiresElevatedAuthority):failedChecks=${failedChecks}:missingChecks=${missingChecks}:artifactStatus=${artifactStatus}:sha256=${artifactSha256}:audit=${audit}:aftercare=${aftercare}:artifact=$artifact" + $owner = $_.lifecycleOwner + if ($null -eq $owner -or $owner -eq "") { + $owner = "none" + } + $hostedBody = $_.hostedBody + if ($null -eq $hostedBody -or $hostedBody -eq "") { + $hostedBody = "none" + } + "$($_.priority):$($_.family):$($_.wrapperMode):$($_.status):owner=${owner}:hostedBody=${hostedBody}:service=${serviceId}:route=${serviceRoute}:command=${command}:mutates=$($_.mutatesState):elevated=$($_.requiresElevatedAuthority):failedChecks=${failedChecks}:missingChecks=${missingChecks}:artifactStatus=${artifactStatus}:sha256=${artifactSha256}:audit=${audit}:aftercare=${aftercare}:artifact=$artifact" }) -join "; ") } $serviceExecutionFailedChecks = Format-ServiceExecutionFailedChecks $result.serviceExecutionFailedCheckRows