Publish native role capabilities
This commit is contained in:
parent
5853a500d3
commit
e9f33e9f7d
6 changed files with 71 additions and 32 deletions
|
|
@ -285,12 +285,24 @@ fn record_hands_pass(hands_action: &Path, summary: &Value) -> Result<Value> {
|
|||
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"))
|
||||
|
|
|
|||
|
|
@ -228,10 +228,10 @@ pub fn derive_role_board(input: EpiphanyRoleBoardInput) -> Vec<EpiphanyRoleBoard
|
|||
note: imagination_note,
|
||||
jobs: imagination_jobs,
|
||||
authority_scopes: vec![
|
||||
"thread/epiphany/roleLaunch".to_string(),
|
||||
"thread/epiphany/roleResult".to_string(),
|
||||
"thread/epiphany/roleAccept".to_string(),
|
||||
"thread/epiphany/update".to_string(),
|
||||
"epiphany.coordinator.role.launch".to_string(),
|
||||
"epiphany.coordinator.role.result.read".to_string(),
|
||||
"epiphany.coordinator.role.accept".to_string(),
|
||||
"epiphany.coordinator.state.update".to_string(),
|
||||
],
|
||||
recommended_action: imagination_recommended_action,
|
||||
},
|
||||
|
|
@ -243,10 +243,10 @@ pub fn derive_role_board(input: EpiphanyRoleBoardInput) -> Vec<EpiphanyRoleBoard
|
|||
note: research_note,
|
||||
jobs: research_jobs,
|
||||
authority_scopes: vec![
|
||||
"thread/epiphany/roleLaunch".to_string(),
|
||||
"thread/epiphany/roleResult".to_string(),
|
||||
"thread/epiphany/roleAccept".to_string(),
|
||||
"thread/epiphany/update".to_string(),
|
||||
"epiphany.coordinator.role.launch".to_string(),
|
||||
"epiphany.coordinator.role.result.read".to_string(),
|
||||
"epiphany.coordinator.role.accept".to_string(),
|
||||
"epiphany.coordinator.state.update".to_string(),
|
||||
],
|
||||
recommended_action: research_recommended_action,
|
||||
},
|
||||
|
|
@ -258,10 +258,10 @@ pub fn derive_role_board(input: EpiphanyRoleBoardInput) -> Vec<EpiphanyRoleBoard
|
|||
note: render_modeling_role_note(input.checkpoint.as_ref(), &input.reorient_next_action),
|
||||
jobs: modeling_jobs,
|
||||
authority_scopes: vec![
|
||||
"thread/epiphany/roleLaunch".to_string(),
|
||||
"thread/epiphany/roleResult".to_string(),
|
||||
"thread/epiphany/roleAccept".to_string(),
|
||||
"thread/epiphany/update".to_string(),
|
||||
"epiphany.coordinator.role.launch".to_string(),
|
||||
"epiphany.coordinator.role.result.read".to_string(),
|
||||
"epiphany.coordinator.role.accept".to_string(),
|
||||
"epiphany.coordinator.state.update".to_string(),
|
||||
],
|
||||
recommended_action: modeling_recommended_action,
|
||||
},
|
||||
|
|
@ -273,12 +273,12 @@ pub fn derive_role_board(input: EpiphanyRoleBoardInput) -> Vec<EpiphanyRoleBoard
|
|||
note: verification_note,
|
||||
jobs: verification_jobs,
|
||||
authority_scopes: vec![
|
||||
"thread/epiphany/roleLaunch".to_string(),
|
||||
"thread/epiphany/roleResult".to_string(),
|
||||
"thread/epiphany/roleAccept".to_string(),
|
||||
"thread/epiphany/distill".to_string(),
|
||||
"thread/epiphany/propose".to_string(),
|
||||
"thread/epiphany/promote".to_string(),
|
||||
"epiphany.coordinator.role.launch".to_string(),
|
||||
"epiphany.coordinator.role.result.read".to_string(),
|
||||
"epiphany.coordinator.role.accept".to_string(),
|
||||
"epiphany.mind.distill".to_string(),
|
||||
"epiphany.mind.propose".to_string(),
|
||||
"epiphany.mind.promote".to_string(),
|
||||
],
|
||||
recommended_action: verification_recommended_action,
|
||||
},
|
||||
|
|
@ -296,9 +296,9 @@ pub fn derive_role_board(input: EpiphanyRoleBoardInput) -> Vec<EpiphanyRoleBoard
|
|||
),
|
||||
jobs: reorientation_jobs,
|
||||
authority_scopes: vec![
|
||||
"thread/epiphany/reorientLaunch".to_string(),
|
||||
"thread/epiphany/reorientResult".to_string(),
|
||||
"thread/epiphany/reorientAccept".to_string(),
|
||||
"epiphany.coordinator.reorient.launch".to_string(),
|
||||
"epiphany.coordinator.reorient.result.read".to_string(),
|
||||
"epiphany.coordinator.reorient.accept".to_string(),
|
||||
],
|
||||
recommended_action: input.crrc_recommended_scene_action,
|
||||
},
|
||||
|
|
@ -536,4 +536,29 @@ mod tests {
|
|||
EpiphanyCoordinatorRoleStatus::Waiting
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn authority_scopes_name_live_typed_capabilities() {
|
||||
let roles = derive_role_board(input());
|
||||
let scopes = roles
|
||||
.iter()
|
||||
.flat_map(|role| role.authority_scopes.iter())
|
||||
.collect::<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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -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.
|
||||
|
|
|
|||
Reference in a new issue