diff --git a/epiphany-core/src/bin/epiphany-verse-query.rs b/epiphany-core/src/bin/epiphany-verse-query.rs index faea8d4b..3f49b89e 100644 --- a/epiphany-core/src/bin/epiphany-verse-query.rs +++ b/epiphany-core/src/bin/epiphany-verse-query.rs @@ -1330,6 +1330,7 @@ fn main() -> Result<()> { }, "publicDiscussionRefs": written_feedback.public_discussion_refs, "candidateActionRefs": written_feedback.candidate_action_refs, + "tuiRows": collaboration_feedback_tui_rows(&written_feedback, &written_consensus), "privateStateIncluded": written_feedback.private_state_included, "privateStateExposed": written_consensus.private_state_exposed, }))? @@ -2063,6 +2064,23 @@ fn main() -> Result<()> { vec!["epiphany.Imagination".to_string()], "gamecult-local/imagination/consensus-packets/smoke", ); + let collaboration_tui_rows = collaboration_feedback_tui_rows(&feedback, &consensus); + if !collaboration_tui_rows.iter().any(|row| { + row.contains("collaboration-feedback") + && row.contains( + "public=https://gamecult.org/Blog/purge-the-heretek-from-our-daemonic-swarm", + ) + && row.contains("candidates=candidate-action:open-collaboration-thread") + && row.contains("private=false") + }) || !collaboration_tui_rows.iter().any(|row| { + row.contains("imagination-consensus") + && row.contains("adoptionGate=mind.review_then_bifrost_adoption") + && row.contains("private=false") + }) { + anyhow::bail!( + "local Verse query smoke lost compact collaboration feedback routing rows" + ); + } write_epiphany_cultmesh_imagination_consensus_receipt( &args.store, args.runtime_id.clone(), @@ -4929,6 +4947,49 @@ fn push_bifrost_ledger_row( rows.push(row); } +fn collaboration_feedback_tui_rows( + feedback: &EpiphanyCultMeshBifrostCollaborationFeedbackEntry, + consensus: &EpiphanyCultMeshImaginationConsensusReceiptEntry, +) -> Vec { + let public_refs = compact_tui_list(&feedback.public_discussion_refs); + let candidate_refs = compact_tui_list(&feedback.candidate_action_refs); + let private_feedback = if feedback.private_state_included { + "private=true" + } else { + "private=false" + }; + let private_consensus = if consensus.private_state_exposed { + "private=true" + } else { + "private=false" + }; + vec![ + format!( + "OK | collaboration-feedback | {} | topic={} | public={} | candidates={} | route={} | {private_feedback}", + feedback.feedback_id, + feedback.collaboration_topic, + public_refs, + candidate_refs, + feedback.requested_consensus_route + ), + format!( + "OK | imagination-consensus | {} | packet={} | adoptionGate={} | public={} | {private_consensus}", + consensus.receipt_id, + consensus.consensus_packet_ref, + consensus.adoption_gate, + compact_tui_list(&consensus.public_feedback_refs) + ), + ] +} + +fn compact_tui_list(values: &[String]) -> String { + if values.is_empty() { + "none".to_string() + } else { + values.join(",") + } +} + fn write_daemon_poke_receipts( args: &Args, context: &EpiphanyLocalVerseContext, diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index faab938f..5348a853 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -54,7 +54,7 @@ remembers doctrine; the branch remembers the blade. - `epiphany-verse-query cluster-topology` and `tools/epiphany_local_run.ps1 -Mode cluster-topology` are the compact read-only topology surface for the standing swarm. They use a narrow CultMesh cluster-topology loader, return seven clusters, seven private Verse ids, seven daemon ids, one public Persona discussion cluster, and `privateStateExposed=false`. Verified: direct proof returned `PUBLIC | Persona | epiphany.cluster.persona.private | repo:E:/Projects/EpiphanyAgent | epiphany-daemon-persona | eve://epiphany/persona`; `epiphany-verse-query smoke` source-proves the compact topology invariants; wrapper proof produced `clusters=7`, `privateVerses=7`, `daemons=7`, `publicDiscussion=1`. - `epiphany-verse-query eve-surfaces` and `tools/epiphany_local_run.ps1 -Mode eve-surfaces` are the compact read-only Odin/Eve surface directory. Odin only reads the local Verse cluster topology, default advertisements, and daemon-owned Eve surface states through a narrow CultMesh loader; the report returns seven TUI rows, exactly one public Persona discussion surface, the `connect-eve` command hint, and `privateStateExposed=false`. Verified: fresh proof store returned `PUBLIC | Persona | eve://epiphany/persona | repo:E:/Projects/EpiphanyAgent | odin.advertisement.epiphany.cluster.persona`; `epiphany-verse-query smoke` source-proves the seven/one row invariant; wrapper mode produced `surfaces=7`, `publicDiscussion=1`, `privateStateExposed=False`. - `epiphany-verse-query connect-eve` and `tools/epiphany_local_run.ps1 -Mode eve-connect` are the compact Odin-to-Eve connection receipt rite. The command now selects its target from the narrow Eve surface directory and verifies latest intent/receipt keys through narrow CultMesh loaders instead of serializing the full local Verse. The wrapper defaults to `epiphany.cluster.persona`, records intent `eve-connection-intent` plus receipt `eve-connection-receipt`, targets `eve://epiphany/persona`, and keeps `privateStateExposed=false`. Verified: direct temp proof and wrapper proof both returned `status=ok`. -- `epiphany-verse-query collaboration-feedback` and `tools/epiphany_local_run.ps1 -Mode collaboration-feedback` are the compact public Persona feedback to Imagination consensus receipt rite. The command verifies latest feedback/consensus keys through narrow CultMesh loaders and now emits follow-on commands for wrapper feedback, Eve connection, direct Bifrost publication, and wrapper Bifrost publication. The wrapper first records the prerequisite Eve connection receipt, then writes feedback `collaboration-feedback` plus consensus `imagination-consensus-receipt`, with adoption gate `mind.review_then_bifrost_adoption` and `privateStateExposed=false`. Verified: direct proof and wrapper proof both returned `status=ok`, and wrapper artifact `local-20260618-072118-623-cad0c52f` carried the command hints. +- `epiphany-verse-query collaboration-feedback` and `tools/epiphany_local_run.ps1 -Mode collaboration-feedback` are the compact public Persona feedback to Imagination consensus receipt rite. The command verifies latest feedback/consensus keys through narrow CultMesh loaders and emits follow-on commands for wrapper feedback, Eve connection, direct Bifrost publication, and wrapper Bifrost publication. It now returns TUI rows for the feedback and Imagination consensus receipt with `public=`, candidate action refs, consensus packet ref, adoption gate, and `private=false`. The wrapper first records the prerequisite Eve connection receipt, then writes feedback `collaboration-feedback` plus consensus `imagination-consensus-receipt`, and proof `local-20260618-172623-944-62ea45bf` printed `publicRefs=eve://epiphany/persona#local-swarm-collaboration`, `candidateActions=none`, `consensusPacket=gamecult-local/imagination/consensus-packets/collaboration-feedback`, `adoptionGate=mind.review_then_bifrost_adoption`, and `privateStateExposed=false`. - `epiphany-verse-query bifrost-publication` and `tools/epiphany_local_run.ps1 -Mode bifrost-publication` are the compact non-mutating body-change publication proof rite. The command verifies latest Bifrost intent/publication/GitHub receipt keys through narrow CultMesh loaders and now emits follow-on commands for swarm overview, tool directory, and wrapper Bifrost publication readback. The wrapper supplies explicit proof defaults for target repo, changed path, verification/review receipts, credit subject, ledger id, Hands PR receipt id, and publication URL, then writes Bifrost intent, Bifrost publication receipt, and GitHub publication receipt with `privateStateExposed=false`. Verified: direct proof and wrapper proof both returned `status=ok`, and wrapper artifact `local-20260618-072118-704-3c5ae3da` carried the command hints. - `epiphany-verse-query bifrost-ledger` and `tools/epiphany_local_run.ps1 -Mode bifrost-ledger` are the compact read-only Bifrost ledger sight rite. The command reads only the latest Bifrost body-change intent, Bifrost publication receipt, GitHub publication receipt, collaboration feedback, and Imagination consensus receipt through narrow CultMesh loaders, then returns five TUI rows when both chains exist. TUI rows now include `public=` and `private=false`, and wrapper proof `local-20260618-172258-802-e0cbf5d1` prints the public refs for the body-change intent, Bifrost publication receipt, GitHub publication receipt, collaboration feedback, and Imagination consensus receipt in one line. Verified: source smoke and live wrapper both returned `status=ok`, `publicationChainCount=3`, `collaborationChainCount=2`, `rowCount=5`, and `privateStateExposed=false`. - `epiphany-verse-query receipt-directory` and `tools/epiphany_local_run.ps1 -Mode receipt-directory` are the compact latest-witness directory over local Verse. The command indexes typed projections for operator run, daemon poke, daemon tool invocation, Eve connection, Bifrost publication, Imagination consensus, coordinator run, Hands gate, role review, work-loop, cluster service lifecycle, single-service lifecycle, cluster service execution runbook, single-service execution runbook, scheduler, Persona speech, and agent-state SoA without exposing raw payloads or private worker context. It treats sealed service lifecycle failure states such as `not-elevated`, `execution-refused-not-elevated`, and `incomplete` as operator attention instead of private-state exposure, routes cluster lifecycle wounds to `cluster-service-execution-audit`, preserves `service-execution-audit` for single-service receipts, and exposes the runbook witnesses as separate display-only `cluster-service-execution-runbook` and `service-execution-runbook` rows. The lifecycle projection now reads the typed receipt family, splits `cluster-service-lifecycle` from `service-lifecycle`, selects the latest attention receipt before falling back to latest overall, and renders service lifecycle routes as `service-id::action` so compact rows name the owning lifecycle action without exposing raw audit payloads. Verified: isolated `epiphany-verse-query smoke --store .\.epiphany-smoke\verse-query-route-action\local-verse.ccmp --runtime-id verse-query-route-action-smoke` passes; live wrapper artifact `local-20260618-134424-242-ebd28924` returned `cluster-service-lifecycle` route `epiphany-cluster-daemon-services::cluster-windows-service-execution-audit`, `service-lifecycle` route `epiphany-daemon-supervisor-service::windows-service-execution-audit`, both execution-runbook routes, `attentionRowCount=2`, and `privateStateExposed=false`. `missingRowCount` remains as a compatibility alias for absent witnesses, not a fault signal. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index c8c5134d..cb1fede3 100644 Binary files a/state/ledgers.msgpack and b/state/ledgers.msgpack differ diff --git a/state/map.yaml b/state/map.yaml index 3e7c5d00..12adc317 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -606,7 +606,7 @@ current_status: - `epiphany-verse-query swarm-status` and `tools/epiphany_local_run.ps1 -Mode swarm-status` provide the compact read-only liveness sight organ over local Verse daemon rows. It uses a narrow CultMesh daemon-liveness loader instead of serializing the full local Verse context, returns seven agent-friendly TUI rows with `READY`/`POKE`, body domain, daemon id, and Eve surface, and exposes no private state. A degraded Hands proof returns status `attention`, `nonReadyCount=1`, and `POKE | Hands | epiphany-daemon-hands | repo:E:/Projects/EpiphanyAgent | eve://epiphany/hands`. - `epiphany-verse-query eve-surfaces` and `tools/epiphany_local_run.ps1 -Mode eve-surfaces` provide the compact read-only Odin/Eve surface directory over local Verse rows. Odin reads cluster topology, default advertisements, and daemon-owned Eve surface states through a narrow CultMesh loader; it returns seven agent-friendly TUI rows, one `PUBLIC | Persona | eve://epiphany/persona` discussion surface, a `connect-eve` command hint, and `privateStateExposed=false` without serializing the full local Verse. - `epiphany-verse-query connect-eve` and `tools/epiphany_local_run.ps1 -Mode eve-connect` provide the compact Odin-to-Eve collaboration receipt. The command selects the daemon-published surface through the narrow Eve directory, writes connection intent/receipt documents, verifies latest receipt keys through narrow CultMesh loaders, defaults the wrapper target to `epiphany.cluster.persona`, and exposes no private state. - - `epiphany-verse-query collaboration-feedback` and `tools/epiphany_local_run.ps1 -Mode collaboration-feedback` provide the public Persona feedback to Imagination consensus receipt path. The wrapper records the prerequisite Eve connection receipt, writes feedback plus Imagination consensus receipt documents, verifies latest keys through narrow CultMesh loaders, publishes follow-on command hints for wrapper feedback, Eve connection, direct Bifrost publication, and wrapper Bifrost publication, and exposes no private state. + - `epiphany-verse-query collaboration-feedback` and `tools/epiphany_local_run.ps1 -Mode collaboration-feedback` provide the public Persona feedback to Imagination consensus receipt path. The wrapper records the prerequisite Eve connection receipt, writes feedback plus Imagination consensus receipt documents, verifies latest keys through narrow CultMesh loaders, publishes follow-on command hints for wrapper feedback, Eve connection, direct Bifrost publication, and wrapper Bifrost publication, and exposes no private state. The command now returns compact TUI rows for the feedback and Imagination consensus receipt with `public=`, candidate action refs, consensus packet ref, adoption gate, and `private=false`; wrapper proof `local-20260618-172623-944-62ea45bf` prints the public discussion ref, candidate action list, consensus packet, and adoption gate in one line. - `epiphany-verse-query bifrost-publication` and `tools/epiphany_local_run.ps1 -Mode bifrost-publication` provide the non-mutating Bifrost body-change publication proof path. It writes Bifrost intent, Bifrost publication receipt, and GitHub publication receipt documents from explicit review/verification/credit inputs, verifies latest keys through narrow CultMesh loaders, publishes follow-on command hints for swarm overview, tool directory, and wrapper Bifrost publication readback, and exposes no private state. - `epiphany-verse-query bifrost-ledger` and `tools/epiphany_local_run.ps1 -Mode bifrost-ledger` provide the compact Bifrost ledger sight organ. It reads only the latest Bifrost body-change intent, Bifrost publication receipt, GitHub publication receipt, collaboration feedback, and Imagination consensus receipt through narrow CultMesh loaders, returns five agent-friendly TUI rows when both chains exist, publishes follow-on command hints for swarm overview, tool directory, collaboration feedback, Bifrost publication, and Bifrost ledger readback, and exposes no private state. Compact ledger rows now carry `public=` plus `private=false`, so body-change/public-feedback proof is inspectable without opening raw local Verse payloads; wrapper proof `local-20260618-172258-802-e0cbf5d1` prints the publication, GitHub, collaboration, and Imagination public refs in one line. - `epiphany-verse-query receipt-directory` and `tools/epiphany_local_run.ps1 -Mode receipt-directory` provide the compact latest-witness directory over local Verse. It indexes operator run, daemon poke, daemon tool invocation, Eve connection, Bifrost publication, Imagination consensus, coordinator run, Hands gate, role review, work-loop, cluster service lifecycle, single-service lifecycle, cluster service execution runbook, single-service execution runbook, scheduler, Persona speech, and agent-state SoA witness families from typed local Verse projections; returns agent-friendly `OK`/`ABSENT`/`ATTN` TUI rows with owner, family, status, route, latest id, follow-up command, `presentRowCount`, and `absentRowCount`; preserves `missingRowCount` as compatibility for absent witnesses; flags sealed service lifecycle failure states such as `not-elevated`, `execution-refused-not-elevated`, and `incomplete` as attention without exposing receipt payloads; routes cluster service lifecycle receipts to `cluster-service-execution-audit`, single-service receipts to `service-execution-audit`, the cluster execution-runbook witness to `cluster-service-execution-runbook`, and the single-service execution-runbook witness to `service-execution-runbook`; and exposes no private state or receipt payload previews. The lifecycle projection now reads the typed receipt family, splits `cluster-service-lifecycle` from `service-lifecycle`, selects the latest attention receipt before falling back to latest overall, and exposes `service-id::action` route values such as `epiphany-cluster-daemon-services::cluster-windows-service-execution-audit`, so agents can see the owning lifecycle action without opening raw audit JSON. It also exposes `cluster-service-execution-runbook` plus `service-execution-runbook` as display-only rows, so newer harmless planned/runbook lifecycle receipts cannot hide the active seven-service cluster wound. diff --git a/tools/epiphany_local_run.ps1 b/tools/epiphany_local_run.ps1 index 81b76506..c1fb38bc 100644 --- a/tools/epiphany_local_run.ps1 +++ b/tools/epiphany_local_run.ps1 @@ -1630,7 +1630,15 @@ if ($resultPath -ne "" -and (Test-Path -LiteralPath $resultPath)) { } elseif ($Mode -eq "eve-connect") { Write-Host "Eve connect: status=$($result.status), target=$($result.targetClusterId), surface=$($result.targetEveSurfaceId), receipt=$($result.receiptId), privateStateExposed=$($result.privateStateExposed)" } elseif ($Mode -eq "collaboration-feedback") { - Write-Host "Collaboration feedback: status=$($result.status), feedback=$($result.feedbackId), consensus=$($result.consensusReceiptId), adoptionGate=$($result.adoptionGate), privateStateExposed=$($result.privateStateExposed)" + $publicRefs = "none" + if ($null -ne $result.publicDiscussionRefs -and $result.publicDiscussionRefs.Count -gt 0) { + $publicRefs = ($result.publicDiscussionRefs -join ",") + } + $candidateRefs = "none" + if ($null -ne $result.candidateActionRefs -and $result.candidateActionRefs.Count -gt 0) { + $candidateRefs = ($result.candidateActionRefs -join ",") + } + Write-Host "Collaboration feedback: status=$($result.status), feedback=$($result.feedbackId), consensus=$($result.consensusReceiptId), publicRefs=$publicRefs, candidateActions=$candidateRefs, consensusPacket=$($result.consensusPacketRef), adoptionGate=$($result.adoptionGate), privateStateExposed=$($result.privateStateExposed)" } elseif ($Mode -eq "bifrost-publication") { Write-Host "Bifrost publication: status=$($result.status), intent=$($result.intentId), publication=$($result.publicationReceiptId), github=$($result.githubPublicationReceiptId), privateStateExposed=$($result.privateStateExposed)" } elseif ($Mode -eq "bifrost-ledger") {