From e9f33e9f7d48917f0e48226ddc7afe5d0e019a6e Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 12 Jul 2026 00:35:15 +0100 Subject: [PATCH] Publish native role capabilities --- .../src/bin/epiphany-mvp-coordinator-smoke.rs | 18 ++++- epiphany-core/src/surfaces/role_board.rs | 67 ++++++++++++------ notes/fresh-workspace-handoff.md | 8 ++- notes/native-coordinator-liberation-map.md | 8 +-- state/ledgers.msgpack | Bin 406592 -> 406992 bytes state/map.yaml | 2 +- 6 files changed, 71 insertions(+), 32 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-mvp-coordinator-smoke.rs b/epiphany-core/src/bin/epiphany-mvp-coordinator-smoke.rs index 0e9b003f..abc4da3d 100644 --- a/epiphany-core/src/bin/epiphany-mvp-coordinator-smoke.rs +++ b/epiphany-core/src/bin/epiphany-mvp-coordinator-smoke.rs @@ -285,12 +285,24 @@ fn record_hands_pass(hands_action: &Path, summary: &Value) -> Result { fs::write(&stdout_artifact, "hands pass smoke command output\n")?; fs::write(&stderr_artifact, "")?; let commit = Command::new("git") - .args(["log", "-1", "--format=%H", "--", "tools/epiphany_local_run.ps1"]) + .args([ + "log", + "-1", + "--format=%H", + "--", + "tools/epiphany_local_run.ps1", + ]) .output() .context("failed to locate a real commit for the Hands smoke path")?; - require(commit.status.success(), "failed to resolve Hands smoke commit")?; + require( + commit.status.success(), + "failed to resolve Hands smoke commit", + )?; let commit_sha = String::from_utf8(commit.stdout)?.trim().to_string(); - require(!commit_sha.is_empty(), "Hands smoke path has no commit history")?; + require( + !commit_sha.is_empty(), + "Hands smoke path has no commit history", + )?; let output = Command::new(hands_action) .arg("--store") .arg(artifact_dir.join("runtime-spine.msgpack")) diff --git a/epiphany-core/src/surfaces/role_board.rs b/epiphany-core/src/surfaces/role_board.rs index cb507f80..bfec614b 100644 --- a/epiphany-core/src/surfaces/role_board.rs +++ b/epiphany-core/src/surfaces/role_board.rs @@ -228,10 +228,10 @@ pub fn derive_role_board(input: EpiphanyRoleBoardInput) -> Vec Vec Vec Vec Vec>(); + assert!(!scopes.is_empty()); + assert!( + scopes + .iter() + .all(|scope| scope.starts_with("epiphany.") && !scope.contains('/')) + ); + for required in [ + "epiphany.coordinator.role.launch", + "epiphany.coordinator.role.result.read", + "epiphany.coordinator.role.accept", + "epiphany.coordinator.reorient.launch", + "epiphany.coordinator.reorient.result.read", + "epiphany.coordinator.reorient.accept", + ] { + assert!(scopes.iter().any(|scope| scope.as_str() == required)); + } + } } diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 19a15112..200516c8 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -1872,9 +1872,11 @@ stale global Cargo target. `epiphany-mvp-coordinator-smoke` no longer builds or requires codex-app-server; live proof at `.epiphany-dogfood/native-coordinator-liberation` passed cold, local-bootstrap, pressure, Hands gate, and real historical commit receipt checks with telemetry -`appServerCalls=0`. The next visible lie is role-board `authorityScopes` still -naming old `thread/epiphany/*` methods; replace them with native/CultNet typed -capability identifiers. +`appServerCalls=0`. Role-board `authorityScopes` now use typed native capability +identifiers, and rendered native status proves no `thread/epiphany/*` authority +survives there. The next pass should classify remaining route vocabulary across +live prompts/Eve/CLI/CultNet surfaces versus compatibility tests and historical +documentation before deleting it; do not flatten provenance into a blind grep. ## Immediate Re-entry Instruction diff --git a/notes/native-coordinator-liberation-map.md b/notes/native-coordinator-liberation-map.md index 7f345528..4affa238 100644 --- a/notes/native-coordinator-liberation-map.md +++ b/notes/native-coordinator-liberation-map.md @@ -254,7 +254,7 @@ strings, and emits telemetry with `appServerCalls=0`. Its smoke harness no longer builds or requires codex-app-server and passes cold, local bootstrap, pressure, Hands gate, and real commit-receipt scenarios. -The live output still advertises old JSON-RPC method names in role-board -`authorityScopes`. Those strings are presentation residue, not callable -coordinator authority, but they now lie about the native body and must be -replaced by typed native/CultNet capability identifiers. +Role-board `authorityScopes` now publish typed capability identifiers such as +`epiphany.coordinator.role.launch`, `epiphany.coordinator.role.accept`, and +`epiphany.coordinator.reorient.result.read`. Source proof rejects slash-shaped +authority, and rendered native status contains no `thread/epiphany/*` scopes. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 8eb12622caec48b1d68bb389da470437e96f8c27..4f9a3702ac225b56099c145cd1aa2bfb746b987b 100644 GIT binary patch delta 439 zcmZvYze)o^5XQZzDa1~M*bUf8E`KgjG4^&^St$scy$QFv*;#k@BB_E{_yUGJga`o( zv9r?F-WL#j3Fi_71&d)|=9~F`GcTW&_pi!yBU)*9w)ak67s~C2$Ia+6ir#L&4L!Wky+iL&vmE^Dba>1_#gs8 zZc|QGI8-JDUg_AAjIV+ials+Gpx$@Zh!ZS?n`W z(9N0mxoJ{#Trl$k3zFOe4bVZz5VYzt$Jxx&_vr$el^lX3CQ+uinsp9ET1TsFCd}~H VX9RO=<=LE!9>R~Jw)N*bwQnm^pGE)x delta 56 zcmcccTH?S9i4BsBT!vQ0CQ-*2*oD`{G9GK5%G5rUi4llFG&2yh05R+KsZ4CE F4FMQ&5w8FM diff --git a/state/map.yaml b/state/map.yaml index f0877927..f63fba46 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -659,4 +659,4 @@ current_status: - 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. last_completed_repo_swarm_cut: Huginn live-fire has crossed the first real repo Body from Persona pressure to branch-local Hands commit and Soul/Mind closure, and now has repeatable closure and redacted-public-proof mouths. On `E:\Projects\Huginn` branch `epiphany/huginn/first-awakening`, `tools/epiphany_local_run.ps1 -Mode repo-persona-intake` accepted item `huginn-inspection-readback-livefire`, Weksa/Persona intake remained sealed, and `epiphany-work derive-plan` lowered it to model-authored safe family `repo.status_section` for `README.md` only. `tools/epiphany_local_run.ps1 -Mode repo-swarm-run` advanced four bounded pulses: run-from-plan, adopt-from-plan, execute-from-plan, and close-from-execute. Huginn commit `e9b07c38fceabbdc89ea35c2156326c80c0393a2` updated only `README.md`; closure receipt `.epiphany\work\work-close-huginn-inspection-readback-livefire.json` records status `closed`, Soul verdict `passed`, Mind state commit `repo-work-close-huginn-inspection-readback-livefire-mind-commit`, safe family `repo.status_section`, path scope `README.md`, Bifrost publication gate, and `privateStateExposed=false`. Verification also ran Huginn's TypeScript compiler through concrete Node path: `C:\Program Files\nodejs\node.exe E:\Projects\Huginn\node_modules\typescript\bin\tsc -p tsconfig.json` passed. Native verifier `epiphany-repo-livefire-closure-smoke --workspace E:\Projects\Huginn --item huginn-inspection-readback-livefire --expected-path README.md --expected-family repo.status_section --expected-gate awaiting-publication --expected-blocker bifrost-publication-missing` checks closure receipt, Mind map entry, overview gate/blocker, authority seals, and `git show` changed paths, returning `status=ok`, `soulVerdict=passed`, `publicationGate=Bifrost`, and `privateStateExposed=false`. Wrapper `tools/epiphany_local_run.ps1 -Mode repo-livefire-closure -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exposes the same read-only proof through the local operator mouth; artifact `local-20260621-190156-803-2f85ba15` printed commit, path, gate, blocker, Soul verdict, Mind commit receipt, and `privateStateExposed=False` without push, merge, publication, or target mutation. New wrapper `tools/epiphany_local_run.ps1 -Mode repo-work-public-proof -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exports the redacted proof bundle and repo-local Verse index without publishing; artifact `local-20260621-190645-345-4555b1dc` wrote `.epiphany\public\proof-bundles\repo-work-public-proof-huginn-inspection-readback-livefire.json`, proof id `repo-work-public-proof-huginn-inspection-readback-livefire`, SHA-256 `857545b199f3e37eb06c2e757e5cfc201958e46667bb1f8403fd333a22620f63`, nine artifact rows, zero publication rows, and `privateStateExposed=False`. Gjallar readback `local-20260621-190701-140-b9519ec6` sees the `REPO-WORK-PUBLIC-PROOF` row and action row from Huginn's repo-local Verse with the same SHA-256 while Bifrost publication remains missing. Launcher compact modes are now named compact operator-context modes instead of read-only modes, and `bifrost-public-proof` summaries print item, target public Verse, room, proof SHA-256, review receipts, and credit receipts so publication receipts are auditable without claiming upstream sync. - next_action: Purge stale `thread/epiphany/*` authority labels from native role-board/status projections and replace them with typed native/CultNet capability identifiers. `epiphany-mvp-coordinator` itself is fully native, starts no app-server, has zero production route strings, and passes its multi-scenario smoke with `appServerCalls=0`. + next_action: Audit remaining live product surfaces for Codex-era route vocabulary and host authority after coordinator liberation. Role-board/status authority scopes are now typed native capability identifiers; distinguish compatibility-only tests/docs from active prompt, Eve, CLI, and CultNet surfaces before cutting the next owner.