agenda: the player's second paper (add/drop deltas, cap-5 recency queue); conflicts self-heal as their own turn; same-verb blocks combine; per-run model selection; substrate-tag syntax rule

This commit is contained in:
2026-11-14 21:15:32 +00:00
parent 711634cc38
commit 5956e44f7a
15 changed files with 627 additions and 71 deletions
+30 -15
View File
@@ -92,6 +92,11 @@ forking makes that cheap — stories outlive identities by design.
a user can save their run's craft as a user package under
`state/packages/` — published to everyone, gm.md included (saving is
the act of publishing), the pc never riding.
- **Models are per-run over the deployment defaults.** `server.json`
names the defaults (player, housekeeper); a run's owner overrides
either role from the upstream listing — in setup for drafts, in the
play aside for started runs. Each call resolves fresh, so a
mid-window switch simply takes the next turn.
- Every logged LLM call records the acting user. Quotas and limits are
an extension point, not built.
- All dates and times are UTC everywhere. No time zones, ever.
@@ -199,8 +204,12 @@ window, and sends turn-0 as the first GM turn in one action.
citing one is the precise way to reference a memory. The paper
travels in-band: the current `<status>` block rides every GM turn,
and the player mutates it with `<lost>`/`<gained>` tags in its own
turns (the clerk applies the deltas — exact match — and misses ride
back as a `<conflict>` block on the next GM turn). Records work
turns (the clerk applies the deltas — same-verb blocks combine into
one apply — and misses go back as a `<conflict>` turn of their own:
clean of prose, read it and adjust; the model heals in the same
exchange). The agenda rides alongside: `<agenda>` on every GM turn,
`<add>`/`<drop>` deltas in the player's turns — drops cite the
indexes it was shown. Records work
travels the tools (`records_search`/`file`/`amend`/`discard`) when
the run provides them; the CLI equivalents remain for the GM (`--gm`
marks GM-authorized writes). The full play protocol — format,
@@ -231,22 +240,26 @@ State lives in **SQLite** (`runs/<id>/db/memory.db`); `canon/ring-*.md`
are generated views. Markdown survives as rendering, dies as storage — the
models see prose, the machine sees rows.
Memory is **six tiers**:
Memory is **seven tiers**:
| tier | what | in context | who writes it |
|---|---|---|---|
| **backdrop** | the world as everyone knows it — public knowledge, the general setting; never memory, never forgotten | always | GM, rarely (retcons) |
| **identity** | the character sheet — concept, drives, skills, voice; changes rarely | always | GM, rarely; housekeeper may propose via open questions; blanks are the player's to invent |
| **status** | her piece of paper — descriptions of her immediate situation, admitted by a three-part gate: non-normal, acute, turn-affecting | every GM turn, as its `<status>` block | **the player** (`<lost>`/`<gained>` deltas in its turns); GM override out-of-band |
| **agenda** | her hot queue of intentions — what she's working towards right now; a fixed-cap recency buffer (new on top, overflow evicts the bottom), disposable by design | every GM turn, as its `<agenda>` block | **the player** (`<add>`/`<drop>` deltas in its turns, drops by index); GM override out-of-band |
| **rings A/B** | salient memory — facts, on her mind, MRU-evicted | always | housekeeper manifest |
| **records** | her files — the card index, the ledger. Narrow query only, hard cap 10 (in the tool, not the prompt), never bulk-loaded | never — on demand | **the player** (`file`/`amend`/`discard` at her desk); GM seeds; housekeeper only `archive`s |
| **cold** | forgotten or vetoed | never — not even queryable | GM only (`revive`) |
The boundary that keeps the tiers honest: **stances are feelings (status,
the player's); facts are facts (rings, the housekeeper's).** The
housekeeper never writes feelings; the player never rewrites facts. And
if she doesn't file it, it's not in her files — records reflect what the
character actually kept, nothing more.
housekeeper never writes feelings; the player never rewrites facts. The
paper and the agenda split the player's own two surfaces along the same
seam: **how she is (status) vs what she means to do (agenda)** — states
fade with the situation, intentions persist until dropped or evicted.
And if she doesn't file it, it's not in her files — records reflect what
the character actually kept, nothing more.
Records access is **diegetic and per-run**: `packages/<story>/settings.json`
gates it. The boutique's keeper has her card index on the shop PC
@@ -453,13 +466,14 @@ config.json the default package
names-female.txt the name dictionary — one name per line; the new-run
form rolls an unused one for the main character
tool/
memory.mjs the clerk: packages, runs, create, init, seed, render,
apply, insert, delete, revive, file, amend, discard,
search, unarchive, paper, paper-apply, paper-set,
paper-ingest, pick, dump, restore, status
(--run <id>; --gm for GM writes; --force for
migrations; --json for machine output on
packages/runs/status)
memory.mjs the clerk: packages, runs, create, save-package, init,
seed, render, apply, insert, delete, revive, file,
amend, discard, search, unarchive, paper, paper-apply,
paper-set, paper-ingest, agenda, agenda-apply,
agenda-set, pick, dump, restore, status
(--run <id>; --owner stamps a run's owner; --gm for
GM writes; --force for migrations; --json for machine
output on packages/runs/status)
server/ the substrate: a zero-dependency node:http service
main.mjs entry + REST spine (node server/main.mjs [--mock]);
bearer-token auth on every route (session/claim are
@@ -501,7 +515,7 @@ web/ the SPA — no build, vanilla ES modules, path-routed
server.example.json copy to server.json (gitignored) — bind, endpoint +
key env, models, contextWindow, params passthrough
db/
schema.sql entries, records, paper, events journal (shared)
schema.sql entries, records, paper, agenda, events journal (shared)
state/ per-deployment people + shared packages (gitignored):
deployment.db (users, invites), bootstrap-invite.txt,
packages/ (user-saved, published to everyone)
@@ -509,7 +523,8 @@ runs/ per-deployment run state (gitignored) — one anonymous
id per run (carries no facts): the copied package,
the craft prompt (handbook.md),
run.json (lineage, owner, `forked` stamp on a fork,
model override), db/, canon/ (rendered views), dumps/,
models — per-run player/housekeeper overrides),
db/, canon/ (rendered views), dumps/,
log/, manifests/, sessions/
packages/ system presets — authored content only, never state
la-caramba/ backdrop.md, turn-0.md (new-game opener), character.md,