@@ -47,6 +47,23 @@ npx weaver status --root ./my-book
4747npx weaver grounding 1-1 --root ./my-book
4848```
4949
50+ ## The studio
51+
52+ Start the local author page with ` weaver studio --root ./my-book ` . It listens
53+ only on ` 127.0.0.1:4187 ` ; open ` http://127.0.0.1:4187/ ` on the same computer.
54+ Use ` --port N ` to choose another port, or set ` "studio": { "port": N } ` in
55+ ` project.json ` . The studio works offline and uses no web services for its pages.
56+ Review and bootstrap jobs use the book's configured command-line AI host.
57+
58+ The home page shows approval progress and findings. Book is the reader, with
59+ chapter and scene status. Character pages show aliases, voice evidence, facts,
60+ and spoken scenes. Places and Threads follow the facts ledger and narrative
61+ state. Findings is the decision queue, Changes compares approved and new text,
62+ History shows decisions and offers undo, and Jobs runs review or story-so-far
63+ bootstrap and lets the author read and accept the resulting state. The doctor footer appears on every page. Every button performs the
64+ same engine action as its matching Weaver command and obeys the same doctor
65+ refusal. The author can read and decide entirely on the local page.
66+
5067## Repair a finished book
5168
5269Use one Weaver project for each book in a series. Start an empty book, import
@@ -136,6 +153,33 @@ manuscript hash and Git commit; working-tree edits do not make them stale.
136153Voice findings are warnings for the author to judge; Weaver never decides that
137154a voice is right.
138155
156+ ## Reviews and triage
157+
158+ Run the continuity, style, and critic lenses for one chapter with
159+ ` weaver review --chapter 1 --run --root ./my-book ` . The configured host runs the
160+ three lenses concurrently. Omit ` --run ` to write interactive packets, then use
161+ ` weaver submit <packet-id> --file <answer> ` . Reviews cite a scene, paragraph,
162+ and verbatim reader-text quote; invalid citations are dropped. A review becomes
163+ out of date when its chapter prose changes, or when the continuity facts context
164+ changes.
165+
166+ ` weaver findings --root ./my-book ` gives the author one queue across rules,
167+ voice, and reviews. Definite review problems enter the queue. A failing critic
168+ adds at most its first two craft or definite findings. Other review findings
169+ remain notes, visible with ` weaver findings --all ` . At most six review findings
170+ are queued per chapter, with continuity before style before critic. The queue
171+ also reports out-of-date reviews. Every finding has a stable ID.
172+
173+ ## Rulings
174+
175+ Decide once with `weaver rule <finding-id > --decision fix|allow|intended
176+ --root ./my-book` . ` fix` keeps the item in ` weaver findings --to-fix` ; ` allow`
177+ and ` intended ` suppress it while its paragraph stays unchanged. Editing the
178+ paragraph lapses the ruling and shows the finding again with a lapse note.
179+ ` weaver rulings ` shows active, lapsed, and resolved decisions. Each decision is
180+ its own Git commit containing only ` continuity/rulings.json ` . Allowed blocking
181+ style findings are listed by ID in ` check ` and ` approve ` output.
182+
139183## Claude Code hooks
140184
141185Run ` weaver hooks install --root ./my-book ` to merge Weaver's PreToolUse and
@@ -181,6 +225,38 @@ npx weaver release --root ./my-book --id beta-01
181225If an earlier scene changes, ` state:status ` marks it and all later scenes stale.
182226Re-derive them in order before accepting state again.
183227
228+ ## Story-so-far setup
229+
230+ Imported books have prose but no trusted scene-by-scene story-so-far records.
231+ Bootstrap derives those records and a facts ledger before release. Weaver only
232+ builds packets and checks answers; a configured command-line host does the AI
233+ work, and the author still accepts the resulting state:
234+
235+ ``` bash
236+ npx weaver state bootstrap --run --root ./my-book
237+ npx weaver state:accept --through 3-2 --root ./my-book
238+ npx weaver facts build --root ./my-book
239+ ```
240+
241+ For an interactive Claude Code session, print one packet and submit its answer:
242+
243+ ``` bash
244+ npx weaver packet state --scene 1-1 --root ./my-book
245+ npx weaver submit < packet-id> --file ./answer.md --root ./my-book
246+ ```
247+
248+ Answers contain a Markdown narrative-state record and a fenced JSON facts
249+ block. Every fact quote must be a verbatim 3–25 word excerpt from that scene;
250+ quotes from elsewhere are rejected, including after the single repair round.
251+ ` continuity/facts.json ` is deterministic derived state: it keeps facts in scene
252+ order and records the first scene that establishes each normalized value.
253+
254+ The host defaults to Claude Code (` claude -p --output-format text ` ) and can be
255+ set in ` project.json ` with ` host.command ` , ` host.args ` , ` host.concurrency ` , and
256+ ` host.timeout_seconds ` . Weaver removes ` ANTHROPIC_API_KEY ` from the child
257+ environment, so host runs use the user's Claude subscription rather than
258+ silently billing an API key. A missing host is a doctor warning, not a block.
259+
184260## Commands
185261
186262| Command | Purpose |
@@ -189,20 +265,29 @@ Re-derive them in order before accepting state again.
189265| ` import <source> ` | Import a finished DOCX, Markdown, text file, or folder into an empty book |
190266| ` export --format md\|docx --out <file> ` | Export the current manuscript without overwriting the source or an existing file |
191267| ` doctor ` | Check the book folder, Git, host, and Weaver installation |
268+ | ` studio ` | Open the local author page (` --port N ` supported) |
192269| ` status ` | Summarize manuscript hash, words, scenes, and state freshness |
193270| ` check ` | Run project, critical-path, repetition, and state gates |
194271| ` rules ` | Run deterministic style rules (` --scene ` , ` --json ` supported) |
195272| ` characters seed ` | Add imported POV names to the character registry |
196273| ` voices build ` | Build deterministic character voice profiles |
197274| ` voices check ` | Show voice warnings (` --scene ` , ` --pending ` , ` --json ` supported) |
275+ | ` review --chapter N ` | Run or prepare chapter review lenses (` --lenses ` , ` --run ` supported) |
276+ | ` findings ` | Show the triaged queue (` --chapter ` , ` --all ` , ` --to-fix ` , ` --json ` supported) |
277+ | ` rule <finding-id> ` | Save an author decision (` --decision ` , ` --note ` supported) |
278+ | ` rulings ` | List active, lapsed, and resolved decisions (` --json ` supported) |
198279| ` changes ` | Show pending scene edits grouped by chapter (` --json ` supported) |
199280| ` approve ` | Save one chapter's pending edits as an approval |
200281| ` reject ` | Save and restore one chapter's pending edits |
201282| ` undo ` | Revert the most recent approval with a new Git commit |
202283| ` history ` | Show approvals and undos (` --json ` supported) |
203284| ` hooks install ` | Install or merge Claude Code scene-edit hooks |
204285| ` state:status ` | Show current and stale derived-state records |
286+ | ` state bootstrap ` | Build story-so-far packets, optionally run them through the host |
205287| ` state:accept ` | Stamp reviewed narrative state through a scene |
288+ | ` packet state ` | Print an interactive story-so-far packet |
289+ | ` submit ` | Validate and record a packet answer |
290+ | ` facts build ` | Rebuild the deterministic facts ledger |
206291| ` grounding <scene-id> ` | Assemble the context packet for a writing pass |
207292| ` release --id <id> ` | Build an immutable Markdown/HTML reader release |
208293
0 commit comments