Add Epiphany CRRC coordinator recommendation

This commit is contained in:
Meta Vens 2026-04-28 12:02:36 +01:00
commit 9d18cdbe9f
16 changed files with 920 additions and 38 deletions

View file

@ -58,6 +58,7 @@ The rule is:
| `thread/epiphany/context` | read-only reflection | landed, live-smoked | Targeted state shard for graph nodes/edges, active frontier, graph checkpoint, investigation checkpoint, observations, and evidence. |
| `thread/epiphany/pressure` | read-only reflection | landed, live-smoked | Context-pressure gauge derived from token telemetry and recorded auto-compact/context limits. |
| `thread/epiphany/reorient` | read-only policy reflection | landed, live-smoked | Bounded CRRC reorientation verdict derived from checkpoint, freshness, watcher, and pressure signals; returns resume vs regather without acting on the decision. |
| `thread/epiphany/crrc` | read-only coordinator reflection | landed, live-smoked | Composes pressure, reorientation verdict, bound worker status/result, and available actions into one recommendation without launching, accepting, compacting, or mutating state. |
## Write Authority
@ -84,6 +85,7 @@ The following must stay read-only:
- `thread/epiphany/context`
- `thread/epiphany/pressure`
- `thread/epiphany/reorient`
- `thread/epiphany/crrc`
- `thread/epiphany/reorientResult`
`thread/epiphany/index` is a write to the retrieval catalog. It is not a
@ -91,7 +93,7 @@ license to mutate map/evidence/churn state as a side effect.
## Reflection Authority
Scene, jobs, freshness, context, reorient, and GUI surfaces may compress state for humans and
Scene, jobs, freshness, context, reorient, CRRC, and GUI surfaces may compress state for humans and
clients. They may not invent canonical understanding.
Reflection surfaces should:
@ -147,7 +149,7 @@ These are not landed yet:
- typed turn intent before broad mutation
- hard mutation gates for stale map or violated invariants
- role-scoped specialist-agent registry and scheduling
- automatic runtime Compact-Rehydrate-Reorient-Continue coordination
- automatic runtime Compact-Rehydrate-Reorient-Continue execution beyond the landed read-only coordinator recommendation
Do not implement these as one blob. Each needs a bounded surface, a write rule,
and a verification story.
@ -178,10 +180,10 @@ Out of scope for the MVP:
- a second job backend unless the current `agent_jobs` adapter blocks read-back
or interruption
The first read-back and acceptance blockers are landed. The current MVP blocker
is bounded CRRC coordination: deciding when the harness should recommend or
request the landed pressure -> verdict -> launch -> result -> accept loop
without becoming an ambient scheduler.
The first read-back, acceptance, and read-only coordinator blockers are landed.
The current MVP blocker is dogfood visibility: exposing scene, pressure,
reorient, jobs, result, and CRRC recommendation in a small operator-facing view
that can be tested during real coding work without reading Rust.
## Job And Progress Surface Direction
@ -223,6 +225,14 @@ caller asks for those writes. It emits `thread/epiphany/stateUpdated` with
source `reorientAccept`; it does not accept pending work, auto-promote arbitrary
worker output, launch follow-up jobs, or silently continue implementation.
The first read-only coordinator over that loop is also landed as
`thread/epiphany/crrc`. It composes pressure, the resume-versus-regather
verdict, the fixed reorient-worker binding, result status/finding, and scene
actions into one recommendation such as continue, prepare checkpoint, launch
worker, wait for worker, review result, accept result, or regather manually. It
is not a scheduler, a hidden launch, a hidden accept, a compactor, or a second
source of truth. The little tyrant remains theoretical, for now.
The first live bound-runtime progress notification is also landed as
`thread/epiphany/jobsUpdated`. It rides existing `agent_job_progress:{json}`
background events from the runtime job runner, resolves matching launcher