Add Epiphany MVP coordinator
This commit is contained in:
parent
7e011f4609
commit
b7f4a03ff8
16 changed files with 1773 additions and 31 deletions
|
|
@ -75,10 +75,12 @@ The landed machine now has:
|
|||
- read-only Phase 6 reorient-worker result read-back through `thread/epiphany/reorientResult`
|
||||
- explicit Phase 6 reorient-worker finding acceptance through `thread/epiphany/reorientAccept`
|
||||
- read-only Phase 6 CRRC coordinator recommendation through `thread/epiphany/crrc`
|
||||
- read-only Phase 6 fixed-lane MVP coordinator recommendation through `thread/epiphany/coordinator`, composing roles, pressure, reorient, CRRC, role results, and reorient result without mutation
|
||||
- read-only Phase 6 role ownership through `thread/epiphany/roles`, projecting implementation, modeling/checkpoint, verification/review, and reorientation lanes from typed state plus jobs/CRRC/result signals
|
||||
- explicit Phase 6 role launch/read-back through `thread/epiphany/roleLaunch` and read-only `thread/epiphany/roleResult`, limited to fixed modeling/checkpoint and verification/review templates over the existing job-control seam
|
||||
- first Phase 6 dogfood operator view through `tools/epiphany_mvp_status.py`
|
||||
- first auditable Phase 6 dogfood runner through `tools/epiphany_mvp_dogfood.py`, producing local status snapshots, raw app-server transcript, final status artifacts, vanilla-reference output, and comparison notes
|
||||
- first auditable Phase 6 fixed-lane coordinator runner through `tools/epiphany_mvp_coordinator.py`, producing coordinator summary, JSONL steps, rendered snapshots, transcript, stderr, and final next-action artifacts while keeping semantic findings review-gated by default
|
||||
- first auditable Phase 6 live-specialist runner through `tools/epiphany_mvp_live_specialist.py`, proving `roleLaunch -> agent_jobs worker -> report_agent_job_result -> roleResult` without manual backend completion
|
||||
- live Phase 6 reorientation app-server smoke coverage in `tools/epiphany_phase6_reorient_smoke.py`
|
||||
- live Phase 6 reorient-launch app-server smoke coverage in `tools/epiphany_phase6_reorient_launch_smoke.py`
|
||||
|
|
@ -108,6 +110,7 @@ These boundaries are more important than the individual method names:
|
|||
- `thread/epiphany/pressure` is a context-pressure reflection, not an automatic compactor, scheduler, or CRRC coordinator.
|
||||
- `thread/epiphany/reorient` is a bounded policy verdict, not an automatic runtime coordinator, scheduler, compactor, or hidden state writer.
|
||||
- `thread/epiphany/crrc` is a read-only coordinator recommendation over existing signals, not a scheduler, launch button, acceptance gate, compactor, or hidden state writer.
|
||||
- `thread/epiphany/coordinator` is a read-only fixed-lane MVP policy projection over existing signals, not a scheduler, launcher, acceptance gate, compactor, or hidden state writer.
|
||||
- `thread/epiphany/roles` is a read-only role ownership projection, not a specialist scheduler, marketplace, launcher, acceptance gate, or second job backend.
|
||||
- `thread/epiphany/roleLaunch` is a bounded authority surface for fixed modeling/checkpoint and verification/review templates, not a broad scheduler or specialist marketplace.
|
||||
- `thread/epiphany/roleResult` is a read-only result projection, not a promotion gate, state writer, scheduler, or hidden continuation trigger.
|
||||
|
|
@ -185,24 +188,30 @@ specialist-agent role; it watches context pressure and continuity, persists
|
|||
state, triggers compact/rehydrate/reorient behavior, and may launch a bounded
|
||||
reorient-worker specialist when semantic regathering is needed.
|
||||
|
||||
The read-back, acceptance, coordinator, first dogfood-view, first
|
||||
The read-back, acceptance, CRRC recommendation, first dogfood-view, fixed-lane
|
||||
coordinator, first
|
||||
harness-native role ownership, and first fixed role specialist launch/result
|
||||
blockers are now landed as
|
||||
`thread/epiphany/reorientResult`, `thread/epiphany/reorientAccept`,
|
||||
`thread/epiphany/crrc`, `tools/epiphany_mvp_status.py`, and
|
||||
`thread/epiphany/crrc`, `tools/epiphany_mvp_status.py`,
|
||||
`thread/epiphany/coordinator`, `tools/epiphany_mvp_coordinator.py`, and
|
||||
`thread/epiphany/roles`, `thread/epiphany/roleLaunch`, and
|
||||
`thread/epiphany/roleResult`. A human can now ask the harness what it believes,
|
||||
what it recommends, which role lane owns the next visible work, explicitly
|
||||
launch modeling/checkpoint or verification/review workers, and read their
|
||||
findings back without reading Rust. The first auditable dogfood pass then added
|
||||
what it recommends, which role lane owns the next visible work, which fixed-lane
|
||||
action should happen next, explicitly launch modeling/checkpoint or
|
||||
verification/review workers, and read their findings back without reading Rust.
|
||||
The first auditable dogfood pass then added
|
||||
`tools/epiphany_mvp_dogfood.py`, rendered modeling/verification findings in the
|
||||
status view, and fixed CRRC's repeat-acceptance recommendation after
|
||||
`reorientAccept`. The live-specialist runner then proved the real worker path by
|
||||
launching a modeling/checkpoint specialist, letting it inspect the smoke
|
||||
workspace, report through `report_agent_job_result`, and return a completed
|
||||
`checkpoint-ready` finding through `roleResult`. The next MVP question is human
|
||||
operator testing, not another imagined organ: use the landed loop and artifact
|
||||
bundle, then fix only concrete blockers.
|
||||
`checkpoint-ready` finding through `roleResult`. The coordinator runner then
|
||||
proved the sequence-locked MVP policy across cold start, clean checkpoint,
|
||||
modeling, verification, CRRC drift/reorient, and high-pressure compact/dry-run
|
||||
paths. The next MVP question is human operator testing, not another imagined
|
||||
organ: use the landed coordinator/status/artifact loop, then fix only concrete
|
||||
blockers.
|
||||
|
||||
## Phase 6 Direction
|
||||
|
||||
|
|
@ -210,9 +219,9 @@ Phase 6 should grow observable harness state outward from the typed spine.
|
|||
|
||||
Useful candidates:
|
||||
|
||||
1. Put the CLI MVP in front of a human operator through status/artifact review, then fix concrete usability blockers.
|
||||
1. Put the fixed-lane coordinator MVP in front of a human operator through status/artifact review, then fix concrete usability blockers.
|
||||
2. Keep accepted worker findings review-gated; do not convert acceptance into automatic promotion of arbitrary worker output.
|
||||
3. Design the smallest fixed-lane coordinator that can recommend or launch the next modeling, implementation, verification, or CRRC-automation handoff without becoming a broad ambient dispatcher.
|
||||
3. After the coordinator artifacts prove the policy, add only limited safe-boundary CRRC automation: compact/resume/reorient or launch a bounded reorient-worker when the coordinator says it is safe, without silently accepting semantic findings.
|
||||
|
||||
Do not spend Phase 6 polishing Phase 5 out of anxiety. The Phase 5 smoke harness
|
||||
is a regression guardrail, not a ritual drum circle for summoning more tiny
|
||||
|
|
@ -227,7 +236,7 @@ These remain later work:
|
|||
- richer evidence and graph-shard inspection beyond the landed targeted context read
|
||||
- richer role ergonomics after the fixed single-user coordinator proves useful
|
||||
- mutation gates that warn or block broad writes when map freshness is stale
|
||||
- automatic CRRC runtime coordination on top of the landed typed context-pressure telemetry
|
||||
- broader CRRC runtime coordination beyond the narrow safe-boundary actions proved by the MVP coordinator
|
||||
- GUI workflows for graph, evidence, job, invariant, and frontier steering
|
||||
|
||||
Do not start these from vibes. Each one needs a source-grounded slice plan and a
|
||||
|
|
@ -283,6 +292,12 @@ Before modifying explicit role launch/read-back behavior, run:
|
|||
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase6_role_smoke.py'
|
||||
```
|
||||
|
||||
Before modifying the fixed-lane MVP coordinator endpoint or runner, run:
|
||||
|
||||
```powershell
|
||||
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_mvp_coordinator_smoke.py'
|
||||
```
|
||||
|
||||
On this Windows machine, use:
|
||||
|
||||
```powershell
|
||||
|
|
|
|||
|
|
@ -28,8 +28,9 @@ Do not trust this file for the exact live HEAD. Always check git.
|
|||
|
||||
- Do not copy exact branch or HEAD from this note. Run `git status --short --branch` and `git log --oneline -5`.
|
||||
- Phase 1 through Phase 5 are complete enough.
|
||||
- Phase 6 has read-only `thread/epiphany/scene`, `thread/epiphany/jobs`, `thread/epiphany/roles`, `thread/epiphany/freshness`, `thread/epiphany/context`, `thread/epiphany/pressure`, `thread/epiphany/reorient`, `thread/epiphany/crrc`, `thread/epiphany/reorientResult`, and `thread/epiphany/roleResult`; durable `jobBindings` now act as a thin Epiphany-owned launcher seam with launcher id, authority scope, and backend kind/job id, `thread/epiphany/jobLaunch` / `thread/epiphany/jobInterrupt` / `thread/epiphany/roleLaunch` now provide explicit bounded authority over that seam, jobs can overlay it onto live runtime `agent_jobs` progress for loaded threads, and `thread/epiphany/jobsUpdated` now translates live `agent_job_progress:{json}` background events into changed launcher-bound notifications without polling or scheduling. Freshness carries watcher-backed invalidation inputs, roles project implementation/modeling/verification/reorientation ownership from existing signals without becoming a scheduler, `roleLaunch` can launch only fixed modeling/checkpoint or verification/review specialists, `roleResult` reads those outputs back as reviewable findings without mutation, reorient turns checkpoint plus freshness/pressure/watcher signals into a read-only resume-versus-regather verdict, `thread/epiphany/reorientLaunch` is the explicit runtime consumer over that verdict, `thread/epiphany/reorientResult` reads the launched worker output back as a reviewable finding without mutation or promotion, `thread/epiphany/reorientAccept` explicitly banks completed findings into accepted observation/evidence plus optional scratch/checkpoint state, and `thread/epiphany/crrc` recommends the next explicit CRRC action without launching, accepting, compacting, scheduling, or mutating.
|
||||
- Phase 6 has read-only `thread/epiphany/scene`, `thread/epiphany/jobs`, `thread/epiphany/roles`, `thread/epiphany/freshness`, `thread/epiphany/context`, `thread/epiphany/pressure`, `thread/epiphany/reorient`, `thread/epiphany/crrc`, `thread/epiphany/coordinator`, `thread/epiphany/reorientResult`, and `thread/epiphany/roleResult`; durable `jobBindings` now act as a thin Epiphany-owned launcher seam with launcher id, authority scope, and backend kind/job id, `thread/epiphany/jobLaunch` / `thread/epiphany/jobInterrupt` / `thread/epiphany/roleLaunch` now provide explicit bounded authority over that seam, jobs can overlay it onto live runtime `agent_jobs` progress for loaded threads, and `thread/epiphany/jobsUpdated` now translates live `agent_job_progress:{json}` background events into changed launcher-bound notifications without polling or scheduling. Freshness carries watcher-backed invalidation inputs, roles project implementation/modeling/verification/reorientation ownership from existing signals without becoming a scheduler, `roleLaunch` can launch only fixed modeling/checkpoint or verification/review specialists, `roleResult` reads those outputs back as reviewable findings without mutation, reorient turns checkpoint plus freshness/pressure/watcher signals into a read-only resume-versus-regather verdict, `thread/epiphany/reorientLaunch` is the explicit runtime consumer over that verdict, `thread/epiphany/reorientResult` reads the launched worker output back as a reviewable finding without mutation or promotion, `thread/epiphany/reorientAccept` explicitly banks completed findings into accepted observation/evidence plus optional scratch/checkpoint state, `thread/epiphany/crrc` recommends the next explicit CRRC action without launching, accepting, compacting, scheduling, or mutating, and `thread/epiphany/coordinator` composes those signals into a fixed-lane MVP action recommendation without becoming a writer.
|
||||
- `tools/epiphany_mvp_status.py` is the first dogfood operator view. It starts or reads a thread through app-server and prints scene, pressure, reorient, jobs, roles, modeling/verification role result read-backs, reorient result, and CRRC recommendation as text or JSON.
|
||||
- `tools/epiphany_mvp_coordinator.py` is the first auditable fixed-lane coordinator runner. It starts or reads a thread through app-server, follows the harness-native coordinator action, can auto-launch modeling, verification, or reorient-worker jobs, keeps semantic findings review-gated by default, and writes summary, steps, rendered snapshots, transcript, stderr, and final next-action artifacts under `.epiphany-dogfood/coordinator` or a caller-provided artifact directory.
|
||||
- `tools/epiphany_mvp_dogfood.py` is the first auditable dogfood runner. It drives a bounded state/role/CRRC/reorientation loop and writes local artifacts under `.epiphany-dogfood/mvp-loop`, including raw app-server transcript, rendered snapshots, final status, vanilla-reference prompt/output, and comparison notes.
|
||||
- `tools/epiphany_mvp_live_specialist.py` is the first auditable live-specialist runner. It launches a real role specialist through `thread/epiphany/roleLaunch`, lets the spawned worker report through `report_agent_job_result`, reads it back through `thread/epiphany/roleResult`, and writes local artifacts under `.epiphany-dogfood/live-specialist`.
|
||||
- Internal `agent_job:` workers now get the reporting tool independent of the user-facing CSV spawn feature, and ephemeral worker sessions can initialize the sqlite state runtime on demand so specialist reports land in the shared backend.
|
||||
|
|
@ -84,6 +85,7 @@ The current spine:
|
|||
- read-only context-pressure reflection through `thread/epiphany/pressure`
|
||||
- read-only CRRC reorientation policy through `thread/epiphany/reorient`
|
||||
- read-only CRRC next-action recommendation through `thread/epiphany/crrc`
|
||||
- read-only fixed-lane MVP action recommendation through `thread/epiphany/coordinator`
|
||||
- durable investigation checkpoint packet through typed state, prompt, scene, and context
|
||||
- live scene app-server smoke through `tools/epiphany_phase6_scene_smoke.py`
|
||||
- live jobs app-server smoke through `tools/epiphany_phase6_jobs_smoke.py`
|
||||
|
|
@ -94,6 +96,7 @@ The current spine:
|
|||
- live reorientation app-server smoke through `tools/epiphany_phase6_reorient_smoke.py`
|
||||
- live reorient-guided worker launch smoke through `tools/epiphany_phase6_reorient_launch_smoke.py`
|
||||
- live MVP operator status smoke through `tools/epiphany_mvp_status_smoke.py`
|
||||
- live MVP coordinator smoke through `tools/epiphany_mvp_coordinator_smoke.py`
|
||||
- live job-control app-server smoke through `tools/epiphany_phase6_job_control_smoke.py`
|
||||
- live specialist MVP pass through `tools/epiphany_mvp_live_specialist.py`
|
||||
|
||||
|
|
@ -112,6 +115,7 @@ The exact current control flow is documented in
|
|||
- `thread/epiphany/pressure` is read-only.
|
||||
- `thread/epiphany/reorient` is read-only.
|
||||
- `thread/epiphany/crrc` is read-only.
|
||||
- `thread/epiphany/coordinator` is read-only.
|
||||
- `thread/epiphany/roles` is read-only.
|
||||
- `thread/epiphany/roleResult` is read-only.
|
||||
- `thread/epiphany/reorientResult` is read-only.
|
||||
|
|
@ -186,6 +190,12 @@ The same smoke now also covers the read-only `thread/epiphany/crrc`
|
|||
coordinator recommendation over continue, wait, accept, interrupt, and relaunch
|
||||
states.
|
||||
|
||||
For the fixed-lane MVP coordinator endpoint and runner, run:
|
||||
|
||||
```powershell
|
||||
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_mvp_coordinator_smoke.py'
|
||||
```
|
||||
|
||||
For the first MVP operator status view, run:
|
||||
|
||||
```powershell
|
||||
|
|
@ -277,23 +287,24 @@ The first live-specialist pass has also run. It produced
|
|||
inspected the smoke workspace, called `report_agent_job_result`, and
|
||||
`roleResult` projected a completed `checkpoint-ready` finding.
|
||||
|
||||
The CLI MVP is now testable. Put it in front of a human operator through
|
||||
`tools/epiphany_mvp_status.py`, `.epiphany-dogfood/mvp-loop`, and
|
||||
`.epiphany-dogfood/live-specialist`. Fix concrete blockers in that operator
|
||||
loop. The next likely organ is a narrow auditable coordinator for the
|
||||
fixed single-user lanes: modeling/checkpoint tells implementation where the map
|
||||
says to look, verification/review tells modeling where the map is insufficient
|
||||
or stale, and CRRC automation watches context pressure/continuity so work is
|
||||
persisted, compacted, rehydrated, reoriented, or regathered at the right time.
|
||||
CRRC is not a specialist-agent persona; the reorient-worker it may launch is the
|
||||
specialist. Do not turn that coordinator into a broad hidden dispatcher,
|
||||
arbitrary marketplace, alternate job backend, or GUI-as-source-of-truth.
|
||||
The fixed-lane coordinator MVP is now testable. Put it in front of a human
|
||||
operator through `tools/epiphany_mvp_coordinator.py`,
|
||||
`tools/epiphany_mvp_status.py`, `.epiphany-dogfood/coordinator`,
|
||||
`.epiphany-dogfood/mvp-loop`, and `.epiphany-dogfood/live-specialist`. Fix
|
||||
concrete blockers in that operator loop. The next likely organ, after real
|
||||
operator artifacts justify it, is limited safe-boundary CRRC execution that can
|
||||
compact/resume/reorient or launch a bounded reorient-worker when the read-only
|
||||
coordinator says it is safe. CRRC is not a specialist-agent persona; the
|
||||
reorient-worker it may launch is the specialist. Do not turn the coordinator
|
||||
into a broad hidden dispatcher, arbitrary marketplace, alternate job backend, or
|
||||
GUI-as-source-of-truth.
|
||||
|
||||
Live `thread/epiphany/scene`, `thread/epiphany/jobs`, `thread/epiphany/roles`,
|
||||
`thread/epiphany/freshness`, `thread/epiphany/context`,
|
||||
`thread/epiphany/pressure`, `thread/epiphany/reorient`,
|
||||
`thread/epiphany/crrc`, and `tools/epiphany_mvp_status.py` smokes are now
|
||||
guardrails, not the next organs.
|
||||
`thread/epiphany/crrc`, `thread/epiphany/coordinator`,
|
||||
`tools/epiphany_mvp_status.py`, and `tools/epiphany_mvp_coordinator.py` smokes
|
||||
are now guardrails, not the next organs.
|
||||
|
||||
## Not Yet
|
||||
|
||||
|
|
|
|||
Reference in a new issue