diff --git a/docs/plan.md b/docs/plan.md index 29e2142..a7d3bee 100644 --- a/docs/plan.md +++ b/docs/plan.md @@ -24,6 +24,8 @@ Execution plan for `docs/vision.md`. Section references (§) point into that doc **Gate 1 (me, browser):** existing sessions load clean; a live session authors a tree (verify JSON); new math delimiters render and `$` stays currency; mermaid renders properly; a research job runs async with a live indicator and the teacher receives the result via continuation. Gates green. +**GATE 1 RESULTS (2026-08-22, PASSED):** old sessions clean, zero console errors. Live chain-rule session authored a 4-node tree via plan_init + plan_set_current, persisted in the chat record. \(…\) KaTeX rendered throughout the live lesson. Mermaid: valid diagram renders dark-themed with pan/zoom chrome; a model syntax error degraded gracefully into W3's dark fallback (prompt fix shipped: label-quoting rule). Research job ran 88s with live `web_search:`/`web_fetch:` activity lines; sourced brief landed. **Found+fixed:** setMessages never fires sendAutomaticallyWhen (SDK only checks inside addToolOutput) — syncFromServer now triggers the continuation, plus a mount-continuation effect for reloads. Bonus root cause (W3): missing streamdown `@source` Tailwind directive had left ALL streamdown chrome unstyled. + ## Wave 2 — three parallel workers - **W4 · Graph store + home view** (§1): `src/core/graph.ts` (model + naive-union emission from session trees + tagged quiz outcomes), `data/graph/` store, emission on chat completion, `GET /api/graph`, `components/graph-view.tsx` (sigma.js + forceatlas2 run-then-freeze, state colors, labels at zoom, pan/zoom — per the rendering decision), home page integration, 2k-node synthetic benchmark script, tests. diff --git a/docs/vision.md b/docs/vision.md index acc50a4..a906f5a 100644 --- a/docs/vision.md +++ b/docs/vision.md @@ -169,14 +169,14 @@ The teacher's context window and attention are precious — it has the lesson to ## 4. Roadmap (dependency-ordered) -1. **Plan-tree tools + session state** — structured tools, tree persisted in the chat store, `set_current` tracking. (Everything else depends on this.) +1. **Plan-tree tools + session state** — structured tools, tree persisted in the chat store, `set_current` tracking. (Everything else depends on this.) **✅ Wave 1 (W1): 8 DAG-validated tools, prompt fragment, live-verified (plan_init + set_current in a real session).** 2. **Bare-bones global graph + home view** — live emission from tree tools into a graph store, naive-union merge, home page renders it with the chosen lightweight renderer. *This is the "see something appear even from a partial session" milestone.* 3. **Phase separation** — probe/teach marker, transcript divider, collapsed teach-phase checks. 4. **Right-panel tree view** — persistent, current-position highlight. 5. **Background consolidation** — merge adjudication, calibration, prose-only edges. 6. **Demo capability** — the `demo` artifact contract (sandboxed iframe, error-fix loop) + the **demo-builder sub-agent** that tests code before delivery (§2.5). High value; slots in any time after step 1. -6b. **Researcher tool** — fact verification for the teacher (§2.5); cheap port of proven pi pieces. -7. **Presentation fixes** — LaTeX delimiters, line breaks, mermaid integration. +6b. **Researcher tool** — fact verification for the teacher (§2.5); cheap port of proven pi pieces. **✅ Wave 1 (W2): async job protocol, live activity card, sourced brief, teacher continuation. Live-verified.** +7. **Presentation fixes** — LaTeX delimiters, line breaks, mermaid integration. **✅ Wave 1 (W3): \(…\)/\[…\] contract ($ literal forever), remark-breaks, dark mermaid + styled streamdown chrome. Live-verified.** 8. **Structural-identity candidates** (from §2 ideation, pending selection): sectioned lesson-document transcript, gated progression, typed blocks, session-state strip. 9. **Later:** dictation (Deepgram token-mint + AudioWorklet capture), frontier expansion + what-next queries (new territory / repairs / conversions), spaced repetition on the event ledger, practice exercises, Electron.