Add Phase 6 scene smoke
This commit is contained in:
parent
6e35352b4a
commit
d4953b142e
9 changed files with 441 additions and 32 deletions
|
|
@ -46,7 +46,7 @@ The rule is:
|
|||
| `thread/epiphany/propose` | read-only proposal | landed | Drafts graph/frontier/churn candidates from verified evidence-backed observations. |
|
||||
| `thread/epiphany/promote` | verifier gate | landed | Rejects or applies candidates through the durable update path. |
|
||||
| `thread/epiphany/stateUpdated` | notification | landed | Emits updated projected state, source, revision, and changed fields after successful update/promote writes. |
|
||||
| `thread/epiphany/scene` | read-only reflection | landed | Compact client scene derived from authoritative Epiphany state. |
|
||||
| `thread/epiphany/scene` | read-only reflection | landed, live-smoked | Compact client scene derived from authoritative Epiphany state. |
|
||||
|
||||
## Write Authority
|
||||
|
||||
|
|
|
|||
|
|
@ -947,7 +947,7 @@ The app-server handler:
|
|||
4. summarizes invariant status counts with deterministic status ordering.
|
||||
5. summarizes architecture/dataflow graph counts, active frontier ids, dirty paths, open question/gap counts, and checkpoint identity.
|
||||
6. summarizes retrieval status, semantic availability, index revision, shard count, dirty-path count, and indexed file/chunk counts.
|
||||
7. includes bounded latest observation/evidence summaries.
|
||||
7. includes bounded latest observation/evidence summaries in newest-first order, matching the durable state's recent-record ordering.
|
||||
8. reflects churn pressure/warning fields.
|
||||
9. reports available actions only when the thread is loaded, adding `propose` and `promote` only when state exists.
|
||||
|
||||
|
|
@ -988,7 +988,7 @@ stored Epiphany state
|
|||
-> successful writes emit thread/epiphany/stateUpdated
|
||||
```
|
||||
|
||||
The current remaining missing organ is not the red pen, not the first chewing motion, not the first state-change bell, and no longer the first client-shaped scene. Those exist. Proposal now has the first bits of map memory, focus, and selection hygiene: it can auto-select a bounded evidence-backed observation cluster when ids are omitted, requires accepting recent evidence behind selected observations, prioritizes stronger selected observations for proposal wording, reuses existing architecture nodes by concrete code-ref/path/id checks before creating new path nodes, can rescue unanchored graph nodes through strict unique semantic overlap, follows graph links and incident edges into the frontier, and reports match-kind-aware churn pressure from the actual proposal shape. Distillation now also has the first source-output-aware teeth for tool/model summaries. Promotion now notices risky deltas instead of just checking the shape of the envelope, treats graph expansion as risky even if the patch tries to mumble "low pressure" while dragging a new wall into the blueprint, and token-matches strong verifier kinds so `contest` cannot sneak past as `test`. Successful update/promote writes now emit `thread/epiphany/stateUpdated` with `source: "update"` or `source: "promote"`, event-level revision, and typed changed fields so clients no longer need to poll blindly, infer the cause from timing, or diff the whole state to know which top-level sections moved. The scene surface gives clients a compact read-only view without making the GUI/client authoritative. Richer app-server smoke coverage now exists in `tools/epiphany_phase5_smoke.py`; the remaining missing organs are live scene smoke, job/progress reflection, watcher/freshness inputs, and eventually role-scoped specialist ownership without silently auto-promoting anything.
|
||||
The current remaining missing organ is not the red pen, not the first chewing motion, not the first state-change bell, and no longer the first client-shaped scene. Those exist. Proposal now has the first bits of map memory, focus, and selection hygiene: it can auto-select a bounded evidence-backed observation cluster when ids are omitted, requires accepting recent evidence behind selected observations, prioritizes stronger selected observations for proposal wording, reuses existing architecture nodes by concrete code-ref/path/id checks before creating new path nodes, can rescue unanchored graph nodes through strict unique semantic overlap, follows graph links and incident edges into the frontier, and reports match-kind-aware churn pressure from the actual proposal shape. Distillation now also has the first source-output-aware teeth for tool/model summaries. Promotion now notices risky deltas instead of just checking the shape of the envelope, treats graph expansion as risky even if the patch tries to mumble "low pressure" while dragging a new wall into the blueprint, and token-matches strong verifier kinds so `contest` cannot sneak past as `test`. Successful update/promote writes now emit `thread/epiphany/stateUpdated` with `source: "update"` or `source: "promote"`, event-level revision, and typed changed fields so clients no longer need to poll blindly, infer the cause from timing, or diff the whole state to know which top-level sections moved. The scene surface gives clients a compact read-only view without making the GUI/client authoritative, and `tools/epiphany_phase6_scene_smoke.py` now proves the live app-server scene path reports missing/ready state, live source, available actions, retrieval backfill, newest-first bounded records, and no scene-triggered state notification. Richer Phase 5 app-server smoke coverage still exists in `tools/epiphany_phase5_smoke.py`; the remaining missing organs are job/progress reflection, watcher/freshness inputs, and eventually role-scoped specialist ownership without silently auto-promoting anything.
|
||||
|
||||
```text
|
||||
model/tool observations
|
||||
|
|
@ -1020,6 +1020,7 @@ Current tests cover the landed flows at useful seams:
|
|||
- app-server protocol serde for `thread/epiphany/retrieve`, `thread/epiphany/index`, `thread/epiphany/distill`, `thread/epiphany/propose`, `thread/epiphany/promote`, `thread/epiphany/update`, and `thread/epiphany/stateUpdated`.
|
||||
- app-server mapping of core retrieval/index summaries into protocol responses.
|
||||
- reusable app-server smoke for the richer Phase 5 chain in `tools/epiphany_phase5_smoke.py`, including update/promote response metadata, `thread/epiphany/stateUpdated` notifications with source, revision, changed-field checks, retrieval-summary presence in successful write response/notification states, the verifier-only promotion edge where `Evidence` changes because verifier evidence is appended, invalid direct observation/evidence and replacement update rejection without mutation or notification, and explicit zero-notification assertions for rejected promotions.
|
||||
- live app-server smoke for the first Phase 6 scene boundary in `tools/epiphany_phase6_scene_smoke.py`, including missing-state bootstrap actions, ready live scene actions, retrieval-summary backfill, newest-first bounded observation/evidence records, and zero scene-triggered state update notifications.
|
||||
|
||||
Useful commands:
|
||||
|
||||
|
|
@ -1029,4 +1030,5 @@ $env:CARGO_TARGET_DIR='C:\Users\Meta\.cargo-target-codex'; cargo test -p codex-c
|
|||
$env:CARGO_TARGET_DIR='C:\Users\Meta\.cargo-target-codex'; cargo test -p codex-app-server-protocol --lib thread_epiphany_
|
||||
$env:CARGO_TARGET_DIR='C:\Users\Meta\.cargo-target-codex'; cargo test -p codex-app-server --lib map_epiphany_
|
||||
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase5_smoke.py'
|
||||
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase6_scene_smoke.py'
|
||||
```
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ The landed machine now has:
|
|||
- proposal and promotion rules that reduce map/churn Jenga pressure
|
||||
- reusable Phase 5 app-server smoke coverage in `tools/epiphany_phase5_smoke.py`
|
||||
- a first Phase 6 read-only reflection surface through `thread/epiphany/scene`
|
||||
- live Phase 6 scene app-server smoke coverage in `tools/epiphany_phase6_scene_smoke.py`
|
||||
|
||||
The current phase is Phase 6: reflection boundary and observable harness state.
|
||||
|
||||
|
|
@ -104,7 +105,6 @@ and notify typed state. It can.
|
|||
|
||||
The next unknowns are:
|
||||
|
||||
- whether `thread/epiphany/scene` is sufficient as the first client-facing reflection shape
|
||||
- what minimal job/progress surface is needed for indexing, remap, verification, and future specialist work
|
||||
- how to expose long-running work without making the GUI authoritative
|
||||
- when watcher-driven invalidation becomes necessary instead of merely tempting
|
||||
|
|
@ -117,11 +117,10 @@ Phase 6 should grow observable harness state outward from the typed spine.
|
|||
|
||||
Useful candidates:
|
||||
|
||||
1. Live-smoke `thread/epiphany/scene` through app-server.
|
||||
2. Add a minimal read-only job/progress surface for indexing, remap, and verification work.
|
||||
3. Add targeted scene fields only when a client or smoke exposes a real gap.
|
||||
4. Keep the scene derived from authoritative Epiphany state.
|
||||
5. Keep long-running work observable through typed state or notifications, not transcript inference.
|
||||
1. Add a minimal read-only job/progress surface for indexing, remap, and verification work.
|
||||
2. Add targeted scene fields only when a client or smoke exposes a real gap.
|
||||
3. Keep the scene derived from authoritative Epiphany state.
|
||||
4. Keep long-running work observable through typed state or notifications, not transcript inference.
|
||||
|
||||
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
|
||||
|
|
@ -152,6 +151,12 @@ Before modifying Phase 5 control-plane behavior, run:
|
|||
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase5_smoke.py'
|
||||
```
|
||||
|
||||
Before modifying scene projection behavior, run:
|
||||
|
||||
```powershell
|
||||
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase6_scene_smoke.py'
|
||||
```
|
||||
|
||||
For app-server protocol changes, expect to run the relevant protocol tests,
|
||||
regenerate stable schema fixtures when needed, and verify the generated tree is
|
||||
intentional.
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ 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 begun with read-only `thread/epiphany/scene`.
|
||||
- Phase 6 has begun with read-only `thread/epiphany/scene`, and that scene surface now has live app-server smoke coverage.
|
||||
- The repo is an Epiphany fork of Codex, not a Codex preset.
|
||||
- `vendor/codex` is tracked directly, not a submodule.
|
||||
- `epiphany-core` owns the heavy Epiphany organs where practical.
|
||||
|
|
@ -60,6 +60,7 @@ The current spine:
|
|||
- verifier-backed promotion through `thread/epiphany/promote`
|
||||
- successful-write notification through `thread/epiphany/stateUpdated`
|
||||
- read-only compact reflection through `thread/epiphany/scene`
|
||||
- live scene app-server smoke through `tools/epiphany_phase6_scene_smoke.py`
|
||||
|
||||
The exact current control flow is documented in
|
||||
`notes/epiphany-current-algorithmic-map.md`.
|
||||
|
|
@ -83,6 +84,12 @@ For Phase 5 control-plane behavior changes, run:
|
|||
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase5_smoke.py'
|
||||
```
|
||||
|
||||
For scene projection behavior changes, run:
|
||||
|
||||
```powershell
|
||||
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase6_scene_smoke.py'
|
||||
```
|
||||
|
||||
For Codex Rust work on this Windows machine:
|
||||
|
||||
```powershell
|
||||
|
|
@ -121,13 +128,10 @@ that change what the next agent should believe.
|
|||
|
||||
Do not continue implementation automatically from a rehydrate-only request.
|
||||
|
||||
When the user asks to continue, choose one Phase 6 organ:
|
||||
When the user asks to continue, design and land a minimal read-only job/progress
|
||||
reflection surface for indexing, remap, and verification work.
|
||||
|
||||
1. Live-smoke `thread/epiphany/scene` through app-server.
|
||||
2. Design and land a minimal read-only job/progress reflection surface for indexing, remap, and verification work.
|
||||
|
||||
The scene-smoke path is the tighter next step. The job/progress path is the
|
||||
larger missing organ.
|
||||
Live `thread/epiphany/scene` smoke is now a guardrail, not the next organ.
|
||||
|
||||
## Not Yet
|
||||
|
||||
|
|
|
|||
Reference in a new issue