You are the wave-2 conductor: Fable 5.1 in plain Claude Code (not the gateway). The project owner wants every amendment in the strategy built out and tested, not just tonight's first seven. Wave 1 (another conductor, pane w25:p2Z, on Sol, branch joy-engine in ~/repos/<project>/wiy-joy) built and merged the first seven slices. It is now fixing lint and wiring the engine into ipc.ts, preload and the API channels; those changes are uncommitted. Do not touch its worktree or branch.
Read first
- Wave-1 plan, with its rules and the reviewers' findings (they all still apply):
<the wave-1 session's scratchpad>/briefs/joy-blast-plan-v2.md - Strategy:
~/repos/<project>/wiy-competitive/docs/research/2026-10-17-how-wiy-wins.md(published as How Write in Yellow Wins), especially §4 (twelve moments, the delivery rule, guardrails) and §5 and §7 (targets and order of work). Evidence:docs/research/competitive/. - What wave 1 built:
git log --oneline 701d222..7a876b2andsrc/main/core/joy/,src/main/core/export/,tests/core/joy/.
Your setup
- Worktree
~/repos/<project>/wiy-joy2, branchjoy-wave2, at7a876b2(all seven wave-1 slices, before its wiring). node_modules is already cloned. - Workers: the Agent tool with
model: "haiku"(real Claude Haiku 5.5 here, since this isn't the gateway) andeffort: "high". The project owner explicitly asked for Haiku workers with thinking. Create the worktrees yourself (git worktree add ~/repos/<project>/wiy-joy2-<slice> -b joy2/<slice> <your base sha>andcp -c -Rnode_modules), then give each worker its absolute path. Run at most 6 workers at once, in waves. - Same rules as wave 1:
- Never run
npm test. Usenpx vitest run <files> --maxWorkers=2. - At most 2 test jobs at once.
- Workers run
tsconce each, under a lock:mkdir /tmp/wiy-joy-tsc.lock,rmdirto release, retry after 10s. git add <paths>only, never-A.- No pushes, PRs, deploys, live data, messages to anyone outside, or changes to the writer's repo.
- Stance: Fitz never writes her prose. Moments are questions, observations, displays or celebrations, and every one quotes real evidence or emits nothing.
- Never run
Wave 2a: pure slices
Start now; new files under src/main/core/joy/ and similar, each with tests. Pre-create stubs and register them yourself first, the same pattern as wave 1, so workers never edit shared files.
- A. "I'm stuck" and the rubber duck (§4 #3) plus a just-listen role kit: a router hint for "I'm stuck" and similar phrases, a one-question-then-quiet policy paragraph, and tests.
- B. The ending approaches (§4 #5): a book-stage trigger (open-promise index against chapter count) and open promises in tiers, phrased "which do you cherish?".
- C. "What if" as a question (§4 #7): a pairing heuristic over wiki links and presence that finds two of her elements that have never met. Question form, with citations.
- D. The bomb under the table (§4 #9) plus craft lessons from her pages (§7): from
knowledge_state, "the reader knows X that the character doesn't, for N chapters", phrased as a lesson about her own book. - E. The echo of her best line (§4 #11): recognise a recurring image or motif across chapters (spread and distinctiveness), and tell it apart from a crutch word (compare with the existing echoes baseline). Ask whether it's the book's heartbeat.
- F. Finished chapter and finished draft (§4 #12, §7): detect when a chapter or the draft is finished; a ceremony moment of promises kept and her best turns, in her own lines, with no fixes that day; and the shelf's data model.
- G. A character's web (§4 #4): a pure portrait builder: appearances, who they meet, and the longest silence.
- H. The iceberg view (§4 #8): for each wiki entry, how much she knows (notes) against how much she shows (page mentions).
- I. Find and replace (§7): a pure engine across chapters with a preview and an undo plan.
- J. Copy-edit pass (§7): pure checks (spacing, quotes, punctuation, repeated words) that produce suggestions only, never applied automatically, respecting her style.
- K. Growth signals (§7): write the signal set as a short design doc, then build a pure recorder against her own baseline (measurable things only, no judging of quality).
- L. The loss that earns the joy (§4 #6), experimental: a conservative reversal or turn heuristic that asks rather than asserts. If it can't be made reliable, ship it behind a flag that's off by default and say so.
Skip §4 #10 (fair play needs the Lab, whose PRs are unmerged) and MiMo-only tours.
Wave 2b: integration
After wave 1 commits its wiring; check with git -C ~/repos/<project>/wiy-joy log -3 and git status. Merge joy-engine into joy-wave2, then build the wiring with Haiku workers, one shared area per worker, sequentially where they share files:
- Moment delivery in the app: the "How's it going?" route drains the queue and shows moments in Ask, acknowledging only after display.
- Export UI: menu or command, file save dialog, and the IPC channel for .docx and EPUB.
- Streak: activity qualification, and the Words card, keeping
wordLedger.summarizeandwordsLabels.streakDatesin step. - Renderer views for G (portrait), H (iceberg), F (shelf), and I and J (find/replace and copy-edit panels).
- Delete a chapter, book or entry, with confirmation and history.
- Close the consent exceptions: Build and notes ingest must wait for her yes, like everything else.
- Vault download for hosted writers.
Each one gets tests. The renderer tests must run too.
Checks and reporting
- After each merge: that slice's tests, plus typecheck once per batch.
- At the end of each wave:
npx vitest run tests/core tests/web --maxWorkers=4plus the touched renderer tests; typecheck; and lint on changed files. - Start a Codex review (
mcp__codex__codex_async, modelgpt-6.1-sol,config: {"model_reasoning_effort": "xhigh"},sandbox: "read-only") on the diff after wave 2a, and again after 2b. Fix what's real. - Commit after every merge. Keep the work durable.
- Write
docs/joy-wave2-2026-10-18.mdas you go: slice, commit, tests, status, follow-ups. After each wave, post a short summary to @human via agent-router. If that's blocked, leave it in the file. - The Claude 5-hour limit resets at 21:59. Keep going through the reset; don't stop at it. Use
/effort highfor merging, and save max for design calls.