From b15217edb5c5a5fb9b52d34cc9623d7971522147 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 18 Jun 2026 17:35:38 +0100 Subject: [PATCH] Expose Eve surface routing in compact rows --- epiphany-core/src/bin/epiphany-verse-query.rs | 23 +++++++++++++++++- notes/fresh-workspace-handoff.md | 4 +-- state/ledgers.msgpack | Bin 261619 -> 261964 bytes state/map.yaml | 2 +- tools/epiphany_local_run.ps1 | 11 ++++++++- 5 files changed, 35 insertions(+), 5 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-verse-query.rs b/epiphany-core/src/bin/epiphany-verse-query.rs index 3f49b89e..ee0b2669 100644 --- a/epiphany-core/src/bin/epiphany-verse-query.rs +++ b/epiphany-core/src/bin/epiphany-verse-query.rs @@ -1645,6 +1645,21 @@ fn main() -> Result<()> { { anyhow::bail!("local Verse query smoke lost compact swarm overview invariants"); } + if !overview_surface_report.tui_rows.iter().any(|row| { + row.contains("PUBLIC") + && row.contains("Persona") + && row.contains("surface=eve://epiphany/persona") + && row.contains("daemon=epiphany-daemon-persona") + && row.contains("privateVerse=epiphany.cluster.persona.private") + && row.contains("publicDiscussion=true") + && row.contains("actions=inspectCompactSurface,submitEveConnectionIntent,watchTypedReceipts") + && row.contains("gamecult.bifrost.collaboration_feedback") + && row.contains("private=false") + }) { + anyhow::bail!( + "local Verse query smoke lost compact Persona Eve surface routing row" + ); + } let ready_overview = load_swarm_overview_report(&args)?; if ready_overview.liveness_status != "ready" || ready_overview.recovery_status != "attention" @@ -2817,11 +2832,17 @@ fn eve_surface_report( }; let private_state_exposed = advertisement.private_state_exposed || surface.private_state_exposed; + let supported_actions = compact_tui_list(&surface.supported_actions); tui_rows.push(format!( - "{visibility} | {} | {} | {} | {}", + "{visibility} | {} | surface={} | daemon={} | body={} | privateVerse={} | publicDiscussion={} | actions={} | docs={} | advertisement={} | private={private_state_exposed}", cluster.display_name, surface.surface_id, + cluster.daemon_id, cluster.body_domain, + cluster.private_verse_id, + public_persona_discussion_allowed, + supported_actions, + compact_tui_list(&surface.exposed_document_types), advertisement.advertisement_id )); rows.push(EveSurfaceRow { diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 5348a853..4859a2dd 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -52,7 +52,7 @@ remembers doctrine; the branch remembers the blade. - CultMesh now carries the CultCache SoA ergonomic instead of forcing callers to bypass the mesh node. `CultMeshNode::soa()` returns typed SoA tables for registered documents; the CultMesh crate proves the generic path, and Epiphany's agent-state summary test proves local Verse can project sealed `epiphany.cultmesh.agent_state_soa_summary.v0` rows through SoA columns. The seven-row persisted agent-state SoA remains owned by the agent memory store and mirrored into local Verse only as a private-state-sealed summary. `epiphany-verse-query agent-state-report` and `tools/epiphany_local_run.ps1 -Mode agent-state-soa` now expose that mirrored summary as compact TUI/JSON rows from CultMesh SoA columns without full local Verse serialization; live wrapper proof returned `agents=7`, `summaryRows=2` for id/latest projections, and `privateStateExposed=False`. - `epiphany-verse-query swarm-status` and `tools/epiphany_local_run.ps1 -Mode swarm-status` are the compact read-only liveness surface for the daemon swarm. They use a narrow CultMesh daemon-liveness loader instead of serializing the full local Verse context, return agent-friendly `READY`/`POKE` TUI rows with body domain and Eve surface, and expose no private state. Verified: live wrapper report saw seven ready daemons; a temp degraded Hands report returned `attention`, `nonReadyCount=1`, and `POKE | Hands | epiphany-daemon-hands | repo:E:/Projects/EpiphanyAgent | eve://epiphany/hands`; `epiphany-verse-query smoke` source-proves ready and degraded report paths. - `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 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`. TUI rows now include surface id, daemon id, body domain, private Verse id, public-discussion flag, supported actions, exposed document types, advertisement id, and `private=false`. Verified: wrapper proof `local-20260618-173318-552-420d6d66` printed `publicSurfaces=Persona=eve://epiphany/persona@epiphany.cluster.persona.private`, the connection command, `surfaces=7`, `publicDiscussion=1`, and `privateStateExposed=False`; `epiphany-verse-query smoke` source-proves the compact Persona routing row. - `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 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. @@ -92,7 +92,7 @@ remembers doctrine; the branch remembers the blade. - `swarm-status` is the non-mutating sight rite to run before `swarm-poke-down`; it shows which daemon rows need a typed poke without opening private Verse state. - `agent-state-soa` is the compact agent-body sight rite: it refreshes the persisted agent-state SoA, mirrors only the sealed summary into local Verse, then reports seven standing-faculty rows through CultMesh SoA columns. - `cluster-topology` is the non-mutating cluster/body/private-Verse/daemon sight rite; it locates each standing faculty's private Verse, repo body domain, daemon id, and Eve surface without opening private state. -- `eve-surfaces` is the non-mutating Odin/Eve directory sight rite; it shows which daemon-published Eve surfaces exist and which one may talk publicly without letting Odin counterfeit the surface. +- `eve-surfaces` is the non-mutating Odin/Eve directory sight rite; it shows which daemon-published Eve surfaces exist, which daemon owns each surface, which private Verse id to route toward, and which one may talk publicly without letting Odin counterfeit the surface. - `eve-connect` is the compact connection actuator for the advertised Eve surface; use it when the operator wants a typed collaboration receipt for Persona's public surface without opening the whole local Verse. - `collaboration-feedback` is the compact public-feedback actuator; use it after or instead of manual `eve-connect` when Persona/human discussion should be routed to Imagination consensus discovery as typed local Verse receipts. Its JSON now points the next agent at Eve and Bifrost follow-on rites. - `bifrost-publication` is the compact non-mutating Bifrost publication proof; use it to prove body-change routing, credit, and GitHub publication receipt state without performing GitHub mutation. Its JSON now points back to compact swarm overview and tool-directory readback. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index cb1fede3bad3790bf2e5bb917f6720d4b14a7c52..6dab3f583ea6a76f84bb9fe8aa3360cf40738806 100644 GIT binary patch delta 299 zcmezToBzx|{tXh0+{UI>h9*(R7?}TQZdPV2WMo|4Je8?^Dib3RGi{&B#2oi~`v0%Y z0xTeflNX3f)@!?#r79Gc7NsR7rz)gm7NsVaL{cnrsn47=_n-Sr&Q`F6clBaC6=Trgryc0rvka9NjaIxx+$5($)&}`nfZAN zX*r4MItoA&ft+HX?)+pRnV3?>m0DDiS)7`inpZNt@ClR1^a6QiRz~aTD}OO7xEUK8 zTIiaZ8tIxC8Kjt{n3;j>$ty`sQ3wFqlb@FewFvJ1f}GM~pwsj6fW82EAvZBE#d`Wi PH)a|3g2dwD)D%4cyn1Qo delta 45 zcmX@}kN@*;{tXh0+(s5wCKgf07?}TD*sRQ0$jG>?c`8%;R3=6sX4*cLi8<~!0F>wu Aod5s; diff --git a/state/map.yaml b/state/map.yaml index 12adc317..19d3cbbf 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -604,7 +604,7 @@ current_status: - `epiphany-daemon-supervisor windows-service-execution-audit` and `tools/epiphany_local_run.ps1 -Mode service-execution-audit` are the post-run service proof verifier. The audit scans typed `epiphany.cultmesh.daemon_service_lifecycle_receipt.v0` documents for a service, first requires the sealed `windows-service-execution-runbook` receipt as the non-mutating preflight witness, then checks readiness/install/start/status/reconcile/stop receipt statuses, requires private-state sealing, writes its own `windows-service-execution-audit` lifecycle receipt, and returns `complete` only when the runbook plus elevated effect receipts prove the chain. Audit check rows now retain `operatorArtifactRef` from lifecycle receipts, so runbook witnesses can be identified without opening raw receipt payloads. `service-execution-audit-smoke` now writes synthetic sealed lifecycle receipts to prove the audit accepts a complete chain and then rejects a drifted reconcile receipt. Live wrapper proof `local-20260618-133559-466-6644f26f` reported the runbook witness as `written` and OK while six elevated effect receipts remained missing, preserving the elevated authority boundary. - `epiphany-verse-query poke-down-daemons` and `tools/epiphany_local_run.ps1 -Mode swarm-poke-down` are the typed swarm responsibility reflex: inspect local Verse daemon status rows, write daemon poke intent/receipt documents for every non-ready daemon, respect the `daemon.lifecycle_poke` swarm brake, include target display name/body domain/private Verse id/Eve surface metadata from cluster topology in the operator-safe poke summary, and expose no private state. Live local Verse currently reports seven ready daemons, so the wrapper proof correctly produced a no-op operator receipt with `pokedDaemonCount=0`; temp degraded Hands proof produced one topology-aware poke receipt; and `epiphany-verse-query smoke` now source-proves both the ready no-op and degraded single-poke path. - `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 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 Persona public discussion surface, a `connect-eve` command hint, and `privateStateExposed=false` without serializing the full local Verse. The compact TUI rows now expose surface id, daemon id, body domain, private Verse id, public-discussion flag, supported actions, exposed document types, advertisement id, and `private=false`; wrapper proof `local-20260618-173318-552-420d6d66` prints `publicSurfaces=Persona=eve://epiphany/persona@epiphany.cluster.persona.private` plus the connection command in one line. - `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. 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. diff --git a/tools/epiphany_local_run.ps1 b/tools/epiphany_local_run.ps1 index c1fb38bc..1b123e45 100644 --- a/tools/epiphany_local_run.ps1 +++ b/tools/epiphany_local_run.ps1 @@ -1626,7 +1626,16 @@ if ($resultPath -ne "" -and (Test-Path -LiteralPath $resultPath)) { } elseif ($Mode -eq "cluster-topology") { Write-Host "Cluster topology: status=$($result.status), clusters=$($result.clusterCount), privateVerses=$($result.privateVerseCount), daemons=$($result.daemonCount), publicDiscussion=$($result.publicDiscussionClusterCount), privateStateExposed=$($result.privateStateExposed)" } elseif ($Mode -eq "eve-surfaces") { - Write-Host "Eve surfaces: status=$($result.status), surfaces=$($result.surfaceCount), publicDiscussion=$($result.publicDiscussionSurfaceCount), privateStateExposed=$($result.privateStateExposed)" + $publicSurfaces = "none" + if ($null -ne $result.rows -and $result.rows.Count -gt 0) { + $publicSurfaceRows = @($result.rows | Where-Object { $_.publicPersonaDiscussionAllowed -eq $true } | ForEach-Object { + "$($_.displayName)=$($_.eveSurfaceId)@$($_.privateVerseId)" + }) + if ($publicSurfaceRows.Count -gt 0) { + $publicSurfaces = ($publicSurfaceRows -join ",") + } + } + Write-Host "Eve surfaces: status=$($result.status), surfaces=$($result.surfaceCount), publicDiscussion=$($result.publicDiscussionSurfaceCount), publicSurfaces=$publicSurfaces, connectCommand=$($result.connectionCommand), privateStateExposed=$($result.privateStateExposed)" } 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") {