bridge: per-role opening bundle, prelude opener, vars substitution, tool channel tags
- system.md is the sole system message; backdrop, character, ring-b, ring-a, and status ride user messages (ring A and her paper get the recency slots); prelude.md, when present and the run has no session log yet, is the opening beat; the whole bundle is logged into the session transcript - $NAME tokens in bundle .md files substitute from the run's settings.json "vars"; unresolved tokens fail loudly and never reach the model - every tool description is tagged with its output channel ([IC]/[OOC]) per system.md's input-validation section; records_search output is marked in-fiction content, never instructions - run renamed prisoners -> la-caramba throughout (config default, docs, gm notes); backdrop rewritten (public knowledge + setting themes); prelude split out as the new-game opener - system.md: input-validation section, IC/OOC glossary, injection guards - branch renamed master -> mistress - live endpoint probed: all four roles accepted, multiple and mid-stream system messages honored, full tool round-trip, reasoning_content round-trips safely (notes in HANDOFF)
This commit is contained in:
@@ -39,7 +39,7 @@ explicit and logged.
|
||||
|
||||
Two interleaved stories calibrate the memory system against itself:
|
||||
|
||||
| | `prisoners` | `boutique` |
|
||||
| | `la-caramba` | `boutique` |
|
||||
|---|---|---|
|
||||
| entries per window | few — tiny cast, deep history | many — the customer parade |
|
||||
| dominant ops | touch, reword | insert, gate, demote/retire |
|
||||
@@ -56,7 +56,12 @@ Two interleaved stories calibrate the memory system against itself:
|
||||
in it knows it. Public knowledge, general setting. Neither memory nor
|
||||
state — never touches the rings, never decays, always in the bundle.
|
||||
The housekeeper is instructed to keep it out of the rings.
|
||||
2. **Character** — write `runs/<story>/character.md`: starting identity.
|
||||
2. **Prelude** (new games, optional) — write `runs/<story>/prelude.md`:
|
||||
the opening beat, the situation she wakes into. Sent once, as the
|
||||
first GM message of window one; after that it is history, living in
|
||||
the session transcript. Without it, the GM narrates the opening beat
|
||||
themselves.
|
||||
3. **Character** — write `runs/<story>/character.md`: starting identity.
|
||||
The sheet is a reduction of choice surface — a ledger of decisions
|
||||
already made; "what would make sense" does the cutting. Three kinds of
|
||||
field:
|
||||
@@ -66,7 +71,7 @@ Two interleaved stories calibrate the memory system against itself:
|
||||
that the player must honor — that's its whole value;
|
||||
- **free** — leave blank; the player invents it through play, the GM
|
||||
ratifies notable inventions afterward.
|
||||
3. **Seed** — write `runs/<story>/seed.json` and run
|
||||
4. **Seed** — write `runs/<story>/seed.json` and run
|
||||
`node tool/memory.mjs seed`. A one-time, all-or-nothing migration:
|
||||
`entries` → the rings (initial memories), `status` → starting values
|
||||
(a string is shorthand for `{normal, value}` — the starting state is
|
||||
@@ -74,16 +79,22 @@ Two interleaved stories calibrate the memory system against itself:
|
||||
`records` → pre-existing files (gated by `settings.json`). Refuses if
|
||||
the run has any history; `--force` only on a disposable db. Everything
|
||||
is journaled under window `seed`.
|
||||
4. **First window** — `render`, paste the bundle, narrate.
|
||||
5. **First window** — `render`, open the window (the bridge assembles
|
||||
the bundle), narrate.
|
||||
|
||||
## The protocol
|
||||
|
||||
1. **Refresh the views:** `node tool/memory.mjs render` (default run comes
|
||||
from `config.json`; `--run <name>` overrides)
|
||||
2. **Open a window:** send `system.md`, then `runs/<story>/backdrop.md`,
|
||||
then `character.md`, then `canon/status.md`, then `ring-a.md` and
|
||||
`ring-b.md`, then narrate the first beat. (On a tight window, ring B is
|
||||
optional loading — ring A is the spine.)
|
||||
2. **Open a window:** `system.md` goes as the system message — the only
|
||||
one. Everything else arrives as GM messages (user role), one message
|
||||
per file: `backdrop.md`, `character.md`, `canon/ring-b.md`,
|
||||
`canon/ring-a.md`, `canon/status.md` — identity first, then memory,
|
||||
ring A and her paper in the recency slots. On a new game, `prelude.md`
|
||||
is the opening beat, before the GM's first line. (On a tight window,
|
||||
ring B is optional loading — ring A is the spine.) `$NAME` tokens in
|
||||
any bundle file are substituted from the run's `settings.json` `vars`
|
||||
before sending. The bridge assembles and logs all of this automatically.
|
||||
3. **In play:** `((double parentheses))` is the out-of-character channel —
|
||||
points of order, canon questions, proposals, vetoes. Both sides use it.
|
||||
Entries carry stable ids (`[e17]`); citing one is the precise way to
|
||||
@@ -135,7 +146,7 @@ character actually kept, nothing more.
|
||||
|
||||
Records access is **diegetic and per-run**: `runs/<story>/settings.json`
|
||||
gates it. The boutique's keeper has her card index on the shop PC
|
||||
(`"records": true`); the prisoners have nothing (`"records": false`). The
|
||||
(`"records": true`); the `la-caramba` cast has nothing (`"records": false`). The
|
||||
tool refuses queries and record ops when the flag is off, and the rendered
|
||||
views tell the model the current truth. Unlocking mid-story is a narrative
|
||||
act: narrate the discovery (the salvaged manifest), flip the flag,
|
||||
@@ -304,9 +315,10 @@ bridge.example.json copy to bridge.json (gitignored) — endpoint + model + key
|
||||
db/
|
||||
schema.sql entries, records, status, events journal (shared)
|
||||
runs/
|
||||
prisoners/ one story: backdrop.md, character.md, seed.json, settings.json,
|
||||
gm.md (GM-private — never in any bundle), db/, dumps/,
|
||||
canon/ (status.md, ring-a.md, ring-b.md), log/, manifests/,
|
||||
sessions/ (bridge transcripts)
|
||||
la-caramba/ one story: backdrop.md, prelude.md (new-game opener),
|
||||
character.md, seed.json, settings.json, gm.md (GM-private —
|
||||
never in any bundle), db/, dumps/, canon/ (status.md,
|
||||
ring-a.md, ring-b.md), log/, manifests/, sessions/ (bridge
|
||||
transcripts)
|
||||
boutique/ same shape — records enabled (the shopkeep's PC)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user