- prompt split, GM's cut: system.md = opening + guards (glossary, purpose, input validation; repo-fed, per-project); invariants.md = substrate (syntax markers, tools, memory, records, the paper + its three-part gate; repo-fed, travels with the code); handbook.md = craft copy (shape of play, thoughts, purview, time skips, continuity, stance, hard limits; copied per run). One system message: system -> invariants -> the run's handbook. OOC is a single open paren, closing optional, match the GM's style; a lone paren is an empty OOC line, skipped by the parser. housekeeper.md aligned: the paper holds acute states, relational shifts are recorded as the facts behind them, and dates are story dates (follow the rings' calendar, never the wall clock - the seed is 2069 now, per canon)
- server/ (phase 2, zero-dep node:http): REST spine per the sketch, per-run session machine with ask_gm pause/resume (the whole tool-call batch waits, pairing stays sound), view renderer (thinking-strip, tool-result elision with ask answers exempt, old status/conflict blocks stripped), boot-rebuild from the typed jsonl, lazy seed + turn-0 ingestion at window-open with the unhousekept refuse-and-override guard, usage tracking + context meter, tool-pairing validation, scripted mock model. The clerk gained --json (packages/runs/status); tool/bridge.mjs deleted at mock-parity per the retirement decision
- housekeeping job (phase 3, server/housekeeping.mjs): trigger ends the window and runs the chain async - transcript with labeled thinking, run-state injection (records availability; the ring views stay pure memory), housekeeper on a fresh context, manifest saved (raw output too if unparseable), clerk apply (writes the window log, snapshots dumps/<window>.sql), state.json lastHousekeptSession, autorestart. Rejection holds the restart and surfaces why; the apply endpoint is the recovery path and the manual-relay close. Live-proven twice: both manifests sound (ring-B classification, first-person voice, precise touches, story-dated)
- spa (phase 4, web/ - no build, vanilla es modules, served at /): three-register transcript per the ruled markers incl. multi-line narration blocks, bundle as a collapsed card with turn-0 as the opening GM turn, paper tags as chips, status pane with conflict surfacing, context meter hot past 85 percent, gm line input, ask modal re-presented from pendingAsk, housekeeping button with two-click arm + poll + inline log. No js alert/confirm (they block the embedded pane) - in-page banner instead. Driven end to end through the ui on a disposable live run
- seed: date fixed to the 2069 story calendar (was a real-world date; real dates never surface to the player)
- docs: README goal states the mvp is complete, layout covers server/ and web/, protocol and substrate sections rewritten for the server; ROADMAP phases 0-4 done, harness decisions current; QUESTIONS #4#7#10#12 #16-mechanism #19a #20#21 resolved; HANDOFF is the handoff map; AGENTS carries the working lessons (tokens are free, no screenshots - not multimodal, no js dialogs, external state survives rewinds)
- ROADMAP: SPA v1 decisions recorded - the story lives in the session
logs (publishing is a later export), sessions outlive the browser via
boot-rebuild from the jsonl, loopback single-human, ask_gm as a modal
that survives refresh, context meter loud past 85 percent, status pane
always visible, housekeeping is the window-close ritual with
autorestart (rejection holds the restart; review is async via logs),
synchronous REST as the full substrate with the SPA strictly a
client; phasing 0-3 and the API spine; steals #2 and #3 decided
- rewrite-here turn surgery: an unfortunate GM turn is edited and the
session restarts from there; window-scoped only (post-housekeeping
edits are retcons); the saga rule - every player tool is either
session-pure or a journaled mutator with recorded prior state, so
compensation is mechanical; trivial typos tolerated
- status redesign (QUESTIONS #17): the paper holds freeform
descriptions admitted by a three-part gate (non-normal, acute,
turn-affecting); the full paper rides every GM turn as a status
block - reads are state, writes are deltas via lost/gained tags in
the player's turn, exact match, non-blocking, misses relayed back as
conflict blocks; no cap; normalization drift is the housekeeper's to
place; status leaves the opening bundle and the bundle copy of old
blocks elides from the live view; the initial paper rides the prelude
- system.md: Status section rewritten for the paper model; records
cross-reference fixed
- housekeeper.md: entries are personal memories now - first person, her
voice, labels stay terse handles; status blocks and player thinking
named as inputs, evidence never fiction; the paper watch rule (place
drift: facts to rings, identity to open questions)
- la-caramba: GM red-pen of the seed (first-person sensory entries,
status key dropped, typo fixed) and prelude (trailing status block
seeds the paper at new-game)
- QUESTIONS: queue churn throughout - items 5, 6, 8, 15, 17, 18
resolved; 15 through 18 added