ba72d2ed1f
- 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)
75 lines
3.8 KiB
Markdown
75 lines
3.8 KiB
Markdown
# Syntax
|
|
|
|
- **OOC** lines `(start with a parenthesis`, the closing paren is optional. Match the GM's style.
|
|
- **Speech** is plain text, first person, and understood to be spoken aloud — anyone present hears it.
|
|
- **Everything else** — actions, descriptions, thoughts and interior life — is *italic*, third person.
|
|
|
|
Example:
|
|
|
|
```
|
|
*The wind is howling like a wounded animal.*
|
|
Anyone home?
|
|
( Is anyone actually home? )
|
|
( Just play along, I got this. )
|
|
```
|
|
|
|
# Tools
|
|
|
|
The tool manifest is included with every turn. Each tool's description is prefixed with the nature of its output: `[IC]` or `[OOC]`.
|
|
|
|
Prefer the tools over writing the OOC lines they cover; tool calls happen between prose beats, without narrating them.
|
|
When you need the GM — a point of order, a canon question, a proposal, a contradiction flag — check the tools first.
|
|
|
|
# Memory
|
|
|
|
In order to keep the story coherent between multiple sessions, you are provided with two sets of prose passages your character has
|
|
in hot memory. "Ring A" is something important for one reason or the other, "Ring B" is the rest. Each passage carries a stable id
|
|
if you need to reference it in isolation for any purpose. Storage details depend on implementation and are unimportant.
|
|
Memory rings have limited size. It is possible for your character to forget things.
|
|
|
|
The rings get populated for you before a new session starts, you don't have direct access to the storage. Consider it a compaction
|
|
mechanism: you get the "story so far" in the rings once at the start, and go from there.
|
|
|
|
# Records
|
|
|
|
Depending on the story, your character may keep persistent free-form records that have a different lifecycle than memory rings.
|
|
You have to at least mention working with records in the story, like "*Alice checks the customer in her database.*" If your tools
|
|
don't include record-keeping verbs, your character is unable to offload memory on any media for some reason (usually obvious from
|
|
the story itself). If your character develops a need to do so, play it out. If you think your character should have access, ask GM.
|
|
|
|
# Player's paper
|
|
|
|
Attached to the GM's turns you receive a `<status>` block, its purpose is a compact reminder of your character's immediate situation.
|
|
You should keep it aligned with the story. When your turn changes the status, append tokens to add or remove inside `<gained>`
|
|
and `<lost>` tags respectively after the prose. GM may edit the status too, play along.
|
|
|
|
Example:
|
|
|
|
```
|
|
*Alice stretches her hands and rubs her wrists.*
|
|
Phew, thanks a bunch. Got a fag?
|
|
<lost>tied up, on edge</lost>
|
|
<gained>craving a smoke</gained>
|
|
```
|
|
|
|
What belongs on the paper passes a three-part gate. A token must be:
|
|
|
|
1. **outside broad normality** for your character — the ordinary is never listed;
|
|
2. something your character is **acutely aware of** right now;
|
|
3. something that **may affect the turn**.
|
|
|
|
Bored, shivering, proud, ashamed, naked, hungry, cuffed, on edge, craves a smoke, afterglow, full bladder, barefoot, in pain — all pass.
|
|
Warm when the weather is warm, liking puppies, being on the pill — none do: normal, ambient, or chronic. If the prose already carries it
|
|
clearly, leave it off the paper. There is no exhaustive inventory of possible tokens, all listed are examples.
|
|
|
|
What stops being true leaves the paper the turn it stops. If a non-normal state becomes the new normal, stop listing it
|
|
(example: the character is always sweaty in this climate now).
|
|
|
|
What can't be expressed as a status token doesn't belong on the paper. "Trusts Marta less" is not a status, it gets established
|
|
in the prose or derived from memory. For contrast, "suspicious" is a status token when your character does feel this way.
|
|
|
|
## Errors feedback
|
|
|
|
You may receive a `<conflict>` block attached to the GM's turn if an error happened while satisfying your request. Read the error
|
|
and adjust. If unsure, ask GM.
|