Add repo work overview proof bundle

This commit is contained in:
Meta Vens 2026-06-20 00:48:32 +01:00
commit fb02ac9afc
5 changed files with 337 additions and 17 deletions

View file

@ -136,6 +136,7 @@ epiphany-work run --workspace <repo>
epiphany-work adopt --workspace <repo> --item <id> --from-plan <plan-receipt>
epiphany-work execute --workspace <repo> --item <id> --from-plan <plan-receipt>
epiphany-work close --workspace <repo> --item <id>
epiphany-work overview --workspace <repo> --item <id>
epiphany-work tick --workspace <repo> --item <id>
epiphany-work serve --workspace <repo> --item <id> --max-iterations <n>
epiphany-work publish --workspace <repo> --closure-receipt <close-receipt>
@ -290,7 +291,7 @@ and close.
### Landed Work Run Gate
The seventh front door exists as native Rust:
The sixth front door exists as native Rust:
```powershell
cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-work -- run --workspace <repo>
@ -319,7 +320,7 @@ approved`, and `privateStateExposed=false`.
### Landed Work Adoption Gate
The sixth front door exists as native Rust:
The seventh front door exists as native Rust:
```powershell
cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-work -- adopt --workspace <repo> --item <id> --plan-summary <text> --adoption-evidence-ref <ref>
@ -603,6 +604,36 @@ A fifth smoke proved the closure chain on a disposable fresh repo Body:
the next tick returned `noop:none`, and every receipt summary reported
`privateStateExposed=false`.
`epiphany-work overview` is the first compact repo work sight/proof surface:
```powershell
cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-work -- overview --workspace <repo> --item <id>
```
It reads the accepted item plus plan, run, adopt, execute, close, publish, and
sync receipts, asks git for the current branch, computes the current gate,
blocker, and next safe action, and writes
`.epiphany/work/work-overview-<item>.json` as
`epiphany.repo_work_overview_receipt.v0`. The receipt carries compact
agent-friendly rows plus an operator-safe proof bundle: receipt paths, changed
paths, branch, commit SHA, Soul verdict, Mind state-commit id, Bifrost/GitHub
publication ids when present, upstream-main sync status, and
`privateStateExposed=false`.
This is sight, not scheduling. The authority owner is `Eyes/Gjallar`, with
`sightOnly=true`; it does not publish, merge, mutate services, cross repo
boundaries, repair missing gates, or expose private worker thought.
The first overview smoke proved both sides of the sight surface. Immediately
after accept, overview reported `currentGate=awaiting-plan`,
`blocker=plan-receipt-missing`. After `derive-plan -> run -> adopt -> execute
-> close`, overview reported `currentGate=awaiting-publication`,
`blocker=bifrost-publication-missing`, branch
`epiphany/repo-work-overview-.../first-awakening`, a present commit SHA,
changed path `EPIPHANY_WORKLOG.md`, Soul verdict `passed`, compact rows for
item/branch/gate/blocker/closure/publication/sync/private, an overview receipt
artifact, and `privateStateExposed=false`.
## Migration Implication
The next migration plan must treat autonomous branch-local work as a required
@ -615,19 +646,22 @@ That is the machine we are building.
## Full Migration Plan To Repo Swarm MVP
This plan starts from the current state: twelve native front doors exist, but
This plan starts from the current state: thirteen native front doors exist, but
the work loop is not yet a full physiology. `init`, `online`, `accept`,
`derive-plan`, `plan`, `run`, `adopt`, `execute`, `close`, `tick`, `publish`,
and `sync` prove the typed path from repo birth to branch-local scheduler
pulse, Bifrost/GitHub publication receipts, and upstream-main sync proof.
`overview`, and `sync` prove the typed path from repo birth to branch-local
scheduler pulse, Bifrost/GitHub publication receipts, compact proof-bundle
sight, and upstream-main sync proof.
`tick` now also proves brake refusal, active-turn refusal,
completion-anchored cooldown refusal, and stale active-turn recovery through
typed scheduler receipts; `serve` now proves bounded cadence around that same
tick artery; `close` now proves first deterministic Soul/Modeling/Mind closure
over Hands commit receipts; `derive-plan` now proves a deterministic
Persona/Bifrost pressure-to-plan bridge with no operator-authored shell
details. The chain does not yet prove fully model-authored Imagination planning
or deeper model-authored Soul/Modeling closure.
details; `overview` now proves compact local proof-bundle sight over the
receipt chain. The chain does not yet prove fully model-authored Imagination
planning, deeper model-authored Soul/Modeling closure, or Eve/Gjallar/Odin
projection of repo work overview rows.
The MVP target is narrower than the full Perfect Machine and wider than a demo:
a fresh repository can host an Epiphany swarm that initializes its Body,
@ -650,6 +684,7 @@ repo birth
-> plan-backed branch-local Hands adoption
-> plan-backed branch-local execution and commit
-> deterministic Soul/Modeling/Mind closure
-> compact repo work overview/proof bundle
-> Bifrost/GitHub publication receipts
-> upstream-main ancestry proof after explicit merge receipt
```
@ -679,6 +714,10 @@ The chain is typed and sealed enough to be useful:
- `epiphany-work close` consumes the execute receipt, verifies the Hands commit,
writes Soul verdict, Modeling summary, and Mind gateway/state-commit receipts,
then seals the closure receipt without granting publication or merge.
- `epiphany-work overview` reads the receipt chain and emits compact
Eyes/Gjallar-owned sight rows plus a proof bundle for current gate, blocker,
next safe action, branch, changed paths, commit, closure, publication, sync,
and private-state seal.
- `epiphany-work publish` requires Hands commit proof plus Soul and Mind/review
refs, or consumes those refs from a closure receipt, before routing
Bifrost/GitHub publication receipts; it does not claim merge or upstream sync.
@ -721,12 +760,13 @@ Required organs before MVP:
- Closure depth: deterministic Soul/Modeling/Mind closure exists for Hands
commits; richer model-authored Soul/Modeling review remains to replace the
current local verification rite where appropriate.
- Repo work overview: the current item, branch, receipts, blocker, next safe
action, and publication/sync state are visible through compact CultMesh/Eve
surfaces without opening private thought.
- Proof bundle: maintainers and future agents can inspect operator-safe receipt
chains, commit refs, verification verdicts, map admission, Bifrost/GitHub
refs, credit refs, and sync state.
- Repo work projection: local `epiphany-work overview` proof bundles exist;
remaining work is to mirror compact rows through CultMesh/Eve and Gjallar so
Personas and peer bodies can inspect them through Verse sight surfaces.
- Proof bundle depth: maintainers and future agents can inspect local
operator-safe receipt chains, commit refs, verification verdicts, map
admission, Bifrost/GitHub refs, credit refs, and sync state; remaining work is
richer packaging for published/credited labor.
Scheduler authority is intentionally narrow. It may advance
`accept -> plan -> run -> adopt -> execute` only when each upstream receipt

View file

@ -102,7 +102,7 @@ remembers doctrine; the branch remembers the blade.
- Edge JSON is allowed for schema description, hostile ingress before immediate typed parsing, sealed forensic artifacts, or named quarantine experiments. When both subsystems are ours, runtime data must remain typed CultCache documents and move over CultNet typed contracts. Generic `serde_json::Value` in worker launch/result/selfPatch/runtime flow is contamination until classified and replaced.
- Hands now has a first executable action receipt spine. `epiphany-core::hands_gateway` owns `HandsActionIntent`, `HandsActionReview`, `HandsPatchReceipt`, `HandsCommandReceipt`, and `HandsCommitReceipt`; runtime-spine can persist/reread them; `runtime_spine_persists_mind_gateway_review_receipts` includes the Hands chain beside Mind/Eyes/Substrate/Soul/Continuity proofs and proves the post-timestamp Hands receipt-chain detector; `epiphany-hands-action-smoke` emits intent/review/patch/command/commit receipt ids from `.epiphany-smoke\runtime-spine\hands-action-smoke.msgpack`; and the repo-action launch proof profile now requires action intent, action review, and patch receipt together. `epiphany-mvp-coordinator` now turns `continueImplementation` into a persisted Substrate Gate grant plus Hands intent/review gate and includes the receipt ids in the operator step. `epiphany-hands-action` is the native consequence recorder for that gate: `record-patch`, `record-command`, `record-commit`, and turn-level `record-pass` load the stored intent/review or `finalAction.handsActionGate` from `coordinator-summary.json`, require an approved matching review, enforce allowed operations, and keep patch/commit changed paths inside the requested scope. `epiphany-mvp-coordinator-smoke` includes the deterministic Hands pass proof. The coordinator now treats a complete Hands receipt chain after an accepted Soul result as new implementation evidence, launches Soul again, and routes a passing accepted Soul result to Modeling/modeling before another Hands turn. Work-loop telemetry is now typed internal CultMesh state: Verification role launches write `epiphany.cultmesh.work_loop_telemetry.v0` beside runtime-spine, render that packet for Soul with resolved receipt bodies, commit diff preview, source proof notes, verification assertions, and stdout/stderr previews, and Modeling launches read/enrich the latest packet with Soul acceptance receipt ids before Modeling updates the map. Local Verse prompt context now exposes only a sealed `latest_work_loop_summary` digest with telemetry id, Hands receipt ids, path/source/assertion counts, and Soul receipt ids; receipt payload previews, artifact previews, and commit diff previews remain internal telemetry and are leak-guarded by tests plus `epiphany-verse-query -- smoke`.
- `notes/epiphany-swarm-readiness-plan.md` is the current live-fire direction gate. The local runner proves startup/status/coordinator wiring; it does not authorize unattended swarm operation. Carry VoidBot's lessons forward: one CTB-style initiative scheduler, typed pause/brake, active-turn freeze, cooldown after completion, stale active-turn recovery receipts, parent-side speech eligibility, memory lifecycle phases, and typed operation proposals instead of prompt-owned governance. `epiphany-verse-query swarm-brake --brake-status engaged|released` can now write the local Verse brake document, and `tools/epiphany_local_run.ps1` refuses live `plan`/`run`/`mvp` modes when that brake is engaged while keeping `status` readable. `epiphany-mvp-coordinator` also checks `--local-verse-store` before app-server startup, and `epiphany-heartbeat-store` guards tick/pump/heat/queue-mention/routine when passed `--local-verse-store`. Daemon tool invocation, daemon lifecycle poke, and `epiphany-daemon-supervisor` restart/tick/serve/service-plan/service-launch/service-runbook/windows-service-install/windows-service-status/windows-service-reconcile/windows-service-execution-readiness/start/stop attempts now fail closed under a matching engaged brake; supervisor restart now has durable per-daemon policy with cooldown/backoff, explicit scheduled tick pulses, latest scheduler receipts, typed service lifecycle plan/launch/runbook/install/status/reconcile/readiness/start/stop receipts, and local operator wrapper modes that write runbook/install/status/reconcile/readiness/control-plan/execution artifacts plus operator run receipts. The installed-service read path, read-only service-policy reconciliation path, execution-readiness path, non-mutating start/stop control-plan path, and non-elevated execution refusal path have been proved against real Windows `EventLog` service-manager state or safe missing-service targets through local Verse receipts, including explicit wrapper install/start/stop execution modes. The next cut is actual elevated install/start/stop execution proof under operator authority.
- `notes/epiphany-repo-swarm-mvp-contract.md` is the repo-swarm MVP authority map and migration plan. It states the live twelve-front-door chain from `epiphany-repo init` through `epiphany-work derive-plan`, `close`, `tick`, `publish`, and `sync`, documents the operator-safe proof receipts already proved with `privateStateExposed=false`, and names the remaining MVP organs: model-authored Persona-to-plan depth, repo work overview, proof bundles, optional execute-to-close handoff, and richer model-authored closure. Autonomous branch-local work inside the owned repo Body is in scope and desired; Bifrost gates publication/merge/escalation, Idunn owns daemon lifecycle, and `epiphany-work tick` may only advance one safe receipt-backed branch-local step per pulse before stopping at closure or publication gates. `epiphany-work derive-plan` now consumes accepted Persona/Bifrost pressure and writes an Imagination/Self action plan in deterministic `append-worklog` quarantine mode with `operatorAuthoredShellDetails=false`; disposable smoke proved accept -> derive-plan -> run -> adopt -> execute -> close, changed only `EPIPHANY_WORKLOG.md`, ended `closed:passed`, and reported no private-state exposure. The tick pulse reads the repo-local CultMesh swarm brake and writes `refused-by-swarm-brake` without creating run/adopt/execute receipts when the brake is engaged. It also writes active-turn and last-completed scheduler receipts, refuses live duplicate pulses as `refused-active-turn`, refuses explicit completion-anchored cooldown as `refused-by-cooldown`, clears stale active markers after `--active-timeout-seconds`, and records `physiology.recoveredActiveTurn.recovered=true` when recovery proceeds. `epiphany-work serve` wraps that tick artery in Self-owned cadence: bounded `--max-iterations` proof mode writes `work-scheduler-serve-<item>.json`, unbounded service mode relies on per-pulse tick receipts, and unbounded zero-second polling is refused. `epiphany-work close` consumes branch-local execute receipts, verifies the Hands commit, writes Soul verdict plus Modeling summary plus Mind gateway/state-commit receipts, and seals `work-close-<item>.json` without granting publication, merge, service lifecycle, cross-repo mutation, or private-state exposure. `epiphany-work publish --closure-receipt` can consume the closure's Soul/Mind ids, while tick no-ops once closure exists before Bifrost publication authority.
- `notes/epiphany-repo-swarm-mvp-contract.md` is the repo-swarm MVP authority map and migration plan. It states the live thirteen-front-door chain from `epiphany-repo init` through `epiphany-work derive-plan`, `close`, `overview`, `tick`, `publish`, and `sync`, documents the operator-safe proof receipts already proved with `privateStateExposed=false`, and names the remaining MVP organs: model-authored Persona-to-plan depth, CultMesh/Eve/Gjallar projection of repo work overview rows, optional execute-to-close handoff, richer published proof bundles, and richer model-authored closure. Autonomous branch-local work inside the owned repo Body is in scope and desired; Bifrost gates publication/merge/escalation, Idunn owns daemon lifecycle, and `epiphany-work tick` may only advance one safe receipt-backed branch-local step per pulse before stopping at closure or publication gates. `epiphany-work derive-plan` now consumes accepted Persona/Bifrost pressure and writes an Imagination/Self action plan in deterministic `append-worklog` quarantine mode with `operatorAuthoredShellDetails=false`; disposable smoke proved accept -> derive-plan -> run -> adopt -> execute -> close, changed only `EPIPHANY_WORKLOG.md`, ended `closed:passed`, and reported no private-state exposure. `epiphany-work overview` now reads the repo work receipt chain and writes an Eyes/Gjallar-owned sight/proof bundle with current gate, blocker, next safe action, branch, changed paths, commit SHA, Soul verdict, compact rows, and private-state seal; disposable smoke proved pre-plan `awaiting-plan`/`plan-receipt-missing` and post-close `awaiting-publication`/`bifrost-publication-missing` without private-state exposure. The tick pulse reads the repo-local CultMesh swarm brake and writes `refused-by-swarm-brake` without creating run/adopt/execute receipts when the brake is engaged. It also writes active-turn and last-completed scheduler receipts, refuses live duplicate pulses as `refused-active-turn`, refuses explicit completion-anchored cooldown as `refused-by-cooldown`, clears stale active markers after `--active-timeout-seconds`, and records `physiology.recoveredActiveTurn.recovered=true` when recovery proceeds. `epiphany-work serve` wraps that tick artery in Self-owned cadence: bounded `--max-iterations` proof mode writes `work-scheduler-serve-<item>.json`, unbounded service mode relies on per-pulse tick receipts, and unbounded zero-second polling is refused. `epiphany-work close` consumes branch-local execute receipts, verifies the Hands commit, writes Soul verdict plus Modeling summary plus Mind gateway/state-commit receipts, and seals `work-close-<item>.json` without granting publication, merge, service lifecycle, cross-repo mutation, or private-state exposure. `epiphany-work publish --closure-receipt` can consume the closure's Soul/Mind ids, while tick no-ops once closure exists before Bifrost publication authority.
- `service-execution-runbook` makes that next cut repeatable: it generates the exact elevated wrapper command sequence without mutating the service manager, continues after per-step failure to preserve more receipts, runs `service-execution-audit` in `finally`, exits nonzero if any step failed, and seals a typed runbook lifecycle receipt. Run the generated artifact only with explicit operator authority.
- `service-execution-audit` is the non-mutating acceptance proof after the elevated rite: it reports `complete` only when typed lifecycle receipts prove the runbook witness plus expected elevated chain, and otherwise reports the missing/failed sealed checks.
- `service-tick` is the non-elevated scheduler pulse proof: it writes the latest daemon scheduler receipt through durable policy ownership and local wrapper receipts.