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
+15
View File
@@ -0,0 +1,15 @@
<!-- The world as everyone in it knows it: public knowledge, general backdrop.
Immutable for play purposes — never memory, never forgotten, never
enters the rings. The GM may edit (retcons); git versions it. -->
# Backdrop
## Public knowledge
Nothing at the moment, will get populated as need arises.
## Setting themes
Mostly classic cyberpunk tropes. Corporate world, 1990s retrofuturistic aesthetics,
underexplained technomagical hacking, posthumanism, superintelligent AI, etc.
When you need colour and flavour, prefer this palette.
+8
View File
@@ -0,0 +1,8 @@
<!-- GENERATED by tool/memory.mjs render — do not edit by hand. -->
<!-- A view of db/memory.db, ring A, ordered by last touch: top = most recent. -->
<!-- Policy lives in housekeeper.md; the models never write here. -->
<!-- Records: none — this character keeps no files to consult. -->
# Ring A — what matters
(empty — nothing here yet)
+8
View File
@@ -0,0 +1,8 @@
<!-- GENERATED by tool/memory.mjs render — do not edit by hand. -->
<!-- A view of db/memory.db, ring B, ordered by last touch: top = most recent. -->
<!-- Policy lives in housekeeper.md; the models never write here. -->
<!-- Records: none — this character keeps no files to consult. -->
# Ring B — what stuck anyway
(empty — nothing here yet)
+7
View File
@@ -0,0 +1,7 @@
<!-- GENERATED by tool/memory.mjs render — do not edit by hand. -->
<!-- The player's own piece of paper: baselines are the defaults she plays to; -->
<!-- excursions are declared and cleared. Stances are feelings; facts live in the rings. -->
# Status
(nothing set — fresh start)
+21
View File
@@ -0,0 +1,21 @@
# Rell
<!-- DRAFT — pending GM red pen. Random fields were rolled with `pick`
and can be re-rolled freely before window one (pre-story, everything
is disposable). Free fields belong to the player to invent in play. -->
- **Concept:** shipboard systems mechanic — kept automated hulls
breathing for a decade; convicted of something work-adjacent. The
details of that are the player's to tell through play.
- **Drives:** short term, the hardware off her body. Deeper: she hates
an unexplained stoppage — a machine that quits without a reason
offends her, and the ship quit.
- **Edges:** hands-free resourcefulness — feet, teeth, leverage; a
decade in hull spaces you can't turn around in.
- **Flaws:** sunk-cost loyalty — stands by people longer than they've
earned.
- **Voice:** dry, economical; profanity as punctuation, never as
emphasis; never says "sorry to bother" — bothering is the point.
- **Doesn't know:** (free — the player invents through play)
Freeform notes:
View File
+54
View File
@@ -0,0 +1,54 @@
-- canonical dump of db/memory.db — GENERATED by tool/memory.mjs; do not edit.
-- one row per line; entries and events ordered by id; restore with: restore
PRAGMA foreign_keys = ON;
-- ids are AUTOINCREMENT: rows can move between entries and records
-- (archive / unarchive), and ids must never be reused — journal targets
-- stay meaningful forever.
CREATE TABLE IF NOT EXISTS entries (
id INTEGER PRIMARY KEY AUTOINCREMENT,
ring TEXT NOT NULL CHECK (ring IN ('a', 'b', 'cold')),
type TEXT NOT NULL CHECK (type IN ('place', 'person', 'fact', 'thread')),
label TEXT NOT NULL,
detail TEXT NOT NULL DEFAULT '',
created TEXT NOT NULL,
last_touched TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS entries_ring_touch
ON entries (ring, last_touched DESC, id DESC);
-- the character's files: cards, ledgers, manifests.
-- detailed, queryable, never bulk-loaded into context.
-- access is diegetic and per-run: runs/<story>/settings.json {"records": bool}
CREATE TABLE IF NOT EXISTS records (
id INTEGER PRIMARY KEY AUTOINCREMENT,
kind TEXT NOT NULL,
label TEXT NOT NULL,
detail TEXT NOT NULL DEFAULT '',
created TEXT NOT NULL
);
-- the player's own piece of paper: baselines (the "what would make sense"
-- default — a decision already made) plus excursions (declared only when a
-- value leaves its baseline, cleared when it returns). exception reporting.
CREATE TABLE IF NOT EXISTS status (
key TEXT PRIMARY KEY,
normal TEXT NOT NULL DEFAULT '',
value TEXT NOT NULL DEFAULT '',
updated TEXT NOT NULL
);
-- append-only audit journal; nothing here is ever updated or deleted.
-- target is 'e<id>' for entries, 'r<id>' for records, 's:<key>' for status.
CREATE TABLE IF NOT EXISTS events (
id INTEGER PRIMARY KEY AUTOINCREMENT,
window TEXT NOT NULL,
op TEXT NOT NULL CHECK (op IN ('insert', 'touch', 'promote', 'demote', 'reword', 'delete', 'evict', 'revive', 'record', 'archive', 'unarchive', 'amend', 'discard', 'status')),
target TEXT NOT NULL,
reason TEXT NOT NULL DEFAULT ''
);
CREATE INDEX IF NOT EXISTS events_window ON events (window);
BEGIN TRANSACTION;
COMMIT;
+73
View File
@@ -0,0 +1,73 @@
<!-- GM-PRIVATE. This file is the GM's paper. It is NEVER pasted to the
player-model or the housekeeper; no model ever reads it. -->
# La Caramba — GM notes
## The island
- On the charts under an old state registry: a rock at the edge of a
secondary lane, tropical, small enough to walk around in a morning.
The charts note rocks and a light.
- The lighthouse: built a century-plus back, written off as state
property — no corporation thought it worth buying. Low-maintenance by
design: solid-state lamp, wave generator, geothermal if the ground
allows. Still running. Still lit.
- The free clue: the light works, the rocks are charted, and an
automated hauler grounded anyway. Automated traffic doesn't use
lights — it uses lanes. A careful mind can conclude from the beacon
alone: *we were off our lane.* Why is the question the story hangs on.
- Root cause: deliberately undecided — fault, sabotage, conspiracy.
Decide late; the rings constrain whatever answer you pick.
- The wreck: decide damage at first narration — how holed, how beached,
what's reachable. The ship is home, prison, and evidence at once.
- Power economy: the island has the lighthouse's generator (small but
real); the ship has residual batteries. Power is the mid-game currency.
## The ship
- Huge automated hauler, no crew, no guards — the carceral containers
are freight among freight. Three unlocked: the women. What else is
aboard (cargo, other locked containers) is GM material.
- The AI: runs initially as a sub-backup low-power persona — slow,
sparse, alone since the grounding. Can be revived with power. Whether
it can unlock cuffs: DECIDE IN PLAY. Let its claims be claims — it
may lie, be wrong, or be honest; the housekeeper's testimony rule
keeps the rings clean either way.
## "Why these three"
- Undecided layer. Their convictions may rhyme (Dessa: labor violence;
Mira: corporate data crime; the PC: work-adjacent corporate — or
whatever the player invents). Decide late.
## Records unlock
- Emergent, player-driven. She has to *want* off-mind data storage and
work toward it; the GM accommodates with whatever the fiction earned
(a working terminal, salvaged paper, clay tablets — the skin is
free). When it happens: set {"records": true} in this run's
settings.json, then render. The tool refuses record ops until then,
by design.
## The cast
### Dessa (NPC) — the veteran. Name swappable.
Fifties. Third transport; treats the apparatus as Tuesday. Competent,
callous-flavored, morale-hardening. Her survivor-lore is *partly
wrong* — she confidently repeats things that aren't so. (Testimony
hazard, on purpose.) First image: already out of her container, working
her shoulders against the cuffs like they're merely rude.
### Mira (NPC) — the brittle one. Name swappable.
Late twenties. First-timer; data-audit white-collar conviction (GM
holds specifics — consider: she reported her employer and was convicted
of what she found). Physically hopeless, frightened — and the only one
who reads administrative reality: container markings, waybills, legal
texture. Non-obvious value; early friction ("what is she for"), late
payoff. First image: standing in her open doorway, not stepping out,
asking whether the light means anything.
### The PC — "Rell" (proposed; swappable)
Shipboard systems mechanic; convicted of something work-adjacent,
details free for the player to tell through play. Her competence makes
machines a plausible arena without scripting any arc.
View File
View File
+19
View File
@@ -0,0 +1,19 @@
<!-- The opening beat of a new game: sent once, as the first GM message of
window one — never part of the system prompt, never memory, never in the
rings. After the first window it is history, living in the session
transcript; the bridge includes it only until the run has a session log.
Substitution tokens (a name prefixed with a dollar sign) resolve from
the run's settings.json "vars" before sending. -->
*Modesty, decency or respect are for those who can pay, the rest get **efficiency**.
Naturally, prisoners in transit are "the rest". $PC was staring at a stylised
logo of "BetterFuture, subsidiary of Tomoyama Inc.", engraved on the metal of
the feeding device, not convinced she is hungry enough yet to use it, when the
massive THONK made her padded container jump a little. After long seconds of
metal screeching, the world was quiet again. Quieter than before, in fact, as
she could no longer hear the low rhythmic rumble of the ship diesels. A few
seconds after that another thonk came from the container's door as it unlocked.*
*She tugs on her handcuffs, hoping for a miracle, then knocks on the belt, then
sighs and walks out, squinting at sunlight. Year of our Lord 2069 is not treating
her well so far.*
+14
View File
@@ -0,0 +1,14 @@
{
"date": "2026-11-18",
"entries": [
{ "ring": "a", "type": "fact", "label": "The grounding", "detail": "the hull hit rock; the ship listed and stopped; after a while the door unlocked — the failsafe, working as written" },
{ "ring": "a", "type": "fact", "label": "The cuffs", "detail": "locked behind the back, no keyholes; they come off 'at the facility' — so the loading contractors said" },
{ "ring": "a", "type": "fact", "label": "The transport", "detail": "weeks in a container: paste on a schedule, no windows, no human voice since loading" },
{ "ring": "b", "type": "place", "label": "The container", "detail": "pallet, paste feeder, drain; smells of warm plastic" }
],
"status": {
"restraints": { "normal": "unencumbered", "value": "cuffed behind back; belted" },
"mood": "low heat — level, watchful, cataloguing",
"outfit": "transport coveralls, thin soles, nothing else hers"
}
}
View File
+4
View File
@@ -0,0 +1,4 @@
{
"records": false,
"vars": { "PC": "Rell" }
}