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:
2026-11-12 05:40:56 +00:00
parent c6b620db07
commit ccf766681a
22 changed files with 223 additions and 104 deletions
+23 -10
View File
@@ -8,16 +8,28 @@ review, steals, extension points), and the prompts (`system.md`,
## Where we are
- All machinery is built and mock-tested. **Nothing has been played yet.**
No real session, no real API call, no real housekeeping.
- Prisoners package fully drafted (`backdrop.md`, `character.md`,
`gm.md`, `seed.json`) — **awaiting GM red pen**. The seed is authored
but NOT applied.
No real session, no real housekeeping.
- Live endpoint probed and healthy (glm-5.3 via llm.exan.tech): all four
roles accepted; multiple and mid-stream system messages honored; full
tool round-trip; no assistant-prefill semantics; `reasoning_content`
round-trips safely in input. The bridge loop itself is still mock-only.
- The run is renamed `prisoners` → `la-caramba` (config default included);
the branch is renamed `master` → `mistress`.
- `system.md` opens with an input-validation section (IC/OOC buckets,
injection guards). The bridge tags every tool with its output channel
([IC]/[OOC]), sends the opening bundle as per-role messages — `system.md`
the sole system message; backdrop, character, ring-b, ring-a, status,
then `prelude.md` on a new game, all as GM messages — and logs the whole
bundle into the session transcript.
- La Caramba package fully drafted (`backdrop.md`, `prelude.md`,
`character.md`, `gm.md`, `seed.json`) — **awaiting GM red pen**. The seed
is authored but NOT applied.
- Boutique: scaffold only. Concept brief now in `runs/boutique/gm.md`.
- Both run databases are empty (post-smoke resets); views render clean.
## Immediate next steps, in order
1. GM red-pens `runs/prisoners/*`: the sheet ("Rell" — name swappable,
1. GM red-pens `runs/la-caramba/*`: the sheet ("Rell" — name swappable,
rolled edge/flaw swappable for their alternates), NPC names
(Dessa/Mira), backdrop, gm notes, seed values.
2. Add voice examples to the sheet (ROADMAP steal #1, ACCEPTED) — 2–3
@@ -25,9 +37,9 @@ review, steals, extension points), and the prompts (`system.md`,
3. Optionally pull ROADMAP steals #2 (`/retry`, `/edit`), #3 (depth
injection pilot), #4 (params passthrough) before window one —
recommended, all small.
4. Apply the seed: `node tool/memory.mjs --run prisoners seed`
4. Apply the seed: `node tool/memory.mjs --run la-caramba seed`
5. Play window one, via bridge or manual relay:
- `node tool/bridge.mjs --run prisoners` (`bridge.json` is configured
- `node tool/bridge.mjs --run la-caramba` (`bridge.json` is configured
for llm.exan.tech / glm-5.3, key included, gitignored)
- **Caution: the bridge has only ever run in `--mock`.** The first
real session is also the first live-API integration test — expect
@@ -35,8 +47,8 @@ review, steals, extension points), and the prompts (`system.md`,
validation is the safety net).
6. After the window: housekeeping is a manual fresh-model paste
(`housekeeper.md` + backdrop + character + ring views + transcript),
save the manifest to `runs/prisoners/manifests/`, then
`node tool/memory.mjs --run prisoners apply <manifest>`, review the
save the manifest to `runs/la-caramba/manifests/`, then
`node tool/memory.mjs --run la-caramba apply <manifest>`, review the
log, commit.
## Working agreements with the GM
@@ -78,7 +90,8 @@ are open questions for the drafting session with the GM).
## Not yet exercised (expect first-use friction)
- Live API through the bridge (mock only so far).
- The bridge loop against the live API (mock only so far; the endpoint
itself is probed — see "Where we are").
- A real housekeeping invocation with a real model's manifest.
- `seed` on a real (reviewed) seed file.
- Real-data `dump`/`restore` and commit-per-wrap audit flow.