Files
tiny-worlds/DICTIONARY.md
T

13 KiB

Dictionary — the terms of art

The source of truth for what things are called. When prose, UI, or code drifts from these names, the fix is to align to this file; when a name here stops working, the fix is to re-rule it here first, then sweep. Durable meanings live in README.md; this file rules the WORDS.

The people and the models

  • the GM — the human running the world: every NPC, every consequence, all retcons. Runs on organic memory; the model's canon files are the prosthesis. Always a human, never a model.
  • the player — the player-model: the LLM playing the one PC. The two parties who play are the GM and the player (2026-11-14, GM) — and the player is always the model: humans are never "the player" (QUESTIONS #28); a human in the app is a GM (of their own runs), a spectator, or the op.
  • the PC — the one character the player-model plays. Female by postulate (README Scope); the shared prompts say "she" throughout.
  • the housekeeper — a fresh model invocation after each session, reading the transcript and the rings; emits a manifest. Judgment, never clerical work; never plays, never edits files. Its prompt (housekeeper.md) is substrate-internal and never exposed.
  • the clerk — tool/memory.mjs: validates, applies, renders, dumps. Fails loudly, never drifts silently. Code, never a model.
  • the op — the superuser of a deployment: mints and revokes invites and users; recovery is filesystem access. The whole of admin.

The story state

  • the deployment — one clone plus server.json, state/, and runs/ (all gitignored): the unit of sharing. Invited users need neither the key nor a clone.
  • the package — a preset: authored content only, no state. System packages ship with the repo; user packages are saved runs, published to the deployment (gm.md included — saving is the act of publishing). Read exactly once per run, ever — at create.
  • the run — one story: the package copied wholesale into runs/<id>/ at create; from then the run directory is the only truth. The id is anonymous hex and carries no facts; the visible name is "Package / PC". The run is the PROCESS that delivers; the story is the DELIVERABLE it exists to produce. In anything mechanical it is always "the run".
  • the story — the emerging deliverable: the narrative a run exists to deliver. Prose may speak of the story; mechanics always say run.
  • draft — a run with no sessions yet: created, never started. Editable in setup, deletable from the SPA; a played run refuses deletion server-side.
  • the session — one play period between housekeeping passes: opens with the bundle assembly, plays by turns, ends with housekeeping (which applies memories and auto-opens the next). Renamed from "window" — see Ruled renames. Its transcript log is sessions/<stamp>.jsonl; ordinals in prose: "session one", "her next session".
  • the turn — one exchange: a GM turn (user role), then the player's turn (assistant role; tool calls may interleave between beats).
  • the bundle — the opening context of a session, assembled in order: the system message trio (system.md → invariants.md → the run's handbook), then the GM messages — backdrop, character, ring-b, ring-a. Everything in it is inspectable read-only in the SPA; agent prompts never enter it.
  • fresh — a session over a never-started run: the seed applies (lazily, once) and turn-0's <status> block ingests at open.
  • the seed — seed.json, the run's initial state (entries → rings, records → files). Rides the run copy until the first session-open applies it; freely editable until then; re-apply refuses.
  • turn-0 — the opening beat file: the GM's zeroth turn, sent once as the first GM message of the first session. The FILE is turn-0; the MESSAGE, once sent, is "the opening beat".

Memory

  • the rings — her salient memory, two tiers ordered by touch (an LRU cache): ring A — important facts, cap 500; ring B — the rest that passed the gate, cap 3000. Storage is rows; the views (canon/ring-*.md) are rendering.
  • touch — a meaningful invocation during play (named, used, clearly weighed); raises the entry. Mere adjacency doesn't count.
  • promotion / demotion — the housekeeper's A↔B judgment, reason logged. Judgment, not a metric.
  • overflow — mechanical and exact: A spills to B, B spills to cold, oldest-touched first. Enforced by count, never by a model's arithmetic.
  • cold storage — everything evicted or deleted. Beyond the models' reach; GM-reachable via revive. Nothing is ever destroyed.
  • status — descriptions of her immediate situation, admitted by the three-part gate (non-normal, acute, turn-affecting). Rides every GM turn as the <status> block; mutated by <lost>/<gained> deltas; entirely hers — the housekeeper never writes it. Renamed from "paper" — see Ruled renames.
  • the agenda — her second self-kept block: intentions — what she means to do — in a cap-5 recency queue. Rides as the <agenda> block, mutated by <add>/<drop> (drops by 0-based index); disposable by design. The seam with the status: how she is vs what she means to do.
  • records — her files: the card index, the ledger, whatever she keeps. Diegetic and per-run (the settings gate); narrow query, hard cap 10 in the tool; a miss is a miss. Filed at her desk by the player; the housekeeper only archives.
  • the backdrop — the world as everyone in it knows it: public knowledge. Never memory, never decays, always in the bundle.
  • identity — character.md, the sheet: concept, drives, skills, voice. The GM's to edit; the housekeeper proposes via open questions; blanks are the player's to invent.
  • the manifest — the housekeeper's whole output: JSON semantic operations (insert, touch, promote, demote, reword, delete, archive; plus summary, inventions, open questions). Validated and applied by the clerk; a rejected manifest changes nothing and says why.
  • housekeeping — the session-close ritual: a fresh housekeeper call over the transcript + rendered rings, the manifest, the apply, the log, the autorestart of the next session. The only word for it (2026-11-14, GM): the old shorthand "the wrap" is retired.
  • the log — log/<session>.md, one per pass: what the housekeeper declared, cross-checked against the dump diff. The events table is the journal underneath; both are write-only for every model.

Channels and syntax

  • IC / OOC — in-character vs out-of-character. OOC is a line opening with (, closing paren optional; any opening <tag> line is substrate traffic and always OOC. Unknown tags are reported to the GM.
  • speech / narration — plain text is spoken aloud; *italics* carry actions, descriptions, thoughts, interiority.
  • sigils — @PC (her name) and @Package (the display name): identity substitution resolved from the run's settings. Any other @-word is the author's own text — @ syntax is not owned here.
  • $TOKENs / vars — template variables the prompts declare themselves; setup collects them; the run's settings.vars holds the answers.
  • deltas — the in-band mutations: <lost>/<gained> on the status, <add>/<drop> on the agenda. Same-verb blocks combine into one apply; misses return as a conflict.
  • conflict — the self-heal message: a <conflict> block sent as its own GM-side message, clean of prose; the model adjusts in the same exchange. Capped at 3 heals per turn.
  • ask_gm — the player's tool for points of order, canon questions, proposals. Pauses the turn mid-loop; the answer is authoritative and never elides from the context.
  • roll — the dice tool: a uniform random pick among equal-weight options; the model receives picked: <option>. Randomizes choices, never outcomes; commit, no re-rolling.
  • the reminder — reminder.md: the turn-composition procedure, repo-shared, riding after every GM turn as its own system chunk. One live copy — superseded copies elide from the view; the log keeps every as-sent chunk.

People mechanics

  • invite / claim / token — identity, in that order: a single-use invite code is exchanged at claim for a persistent bearer token. No usernames, no passwords, no external IDPs. Spent invites stay recorded forever and are rejected loudly on reuse.
  • owner / ownerless / spectator — runs belong to their starter; every mutation and every model call is owner-only; everything is readable by any user. Ownership is resolved, never maintained: run.json keeps dead owner ids, the API reads them as absent. A non-owner in a run is a spectator: reads everything, notepad included (the boundary is the model boundary), mutates nothing. Fork is the way in.
  • fork — an atomic copy of any run under the forker, window state honestly carried. No lineage; the only mark is forked: unixtime in run.json beside the carried created.

Instrumentation

  • the meter — the context meter: prompt-token usage of the last call against the contwin; loud past 85%.
  • contwin — the context window, under its own name (coined 2026-11-14, GM: the word "window" is beyond overloaded, so even this use got renamed). The config key in server.json is contwin (contextWindow is still accepted).
  • mock mode — --mock: the scripted fake model that proves the loop without a key. The smoke (test/) runs against it.
  • the dump — dumps/memory.sql: the canonical id-ordered SQL snapshot, auto-written by every mutation. The primary audit surface — diffing two consecutive dumps reconstructs the applied operations exactly.
  • the view — the rendered live context under policy: thinking never goes back; old tool results elide to stubs (ask_gm answers never); old status and agenda blocks elide; the current status and agenda ride every GM turn; one live reminder at the freshest end.

Conventions the words lean on

  • All dates and times UTC, everywhere. No time zones, ever.
  • No model-facing surface renders a date; story time lives in prose. Internal stamps are mechanical (LRU, overflow, sinking) and never render to a model.
  • Ids are anonymous hex; display is "Package / PC"; run ids carry no facts, so nothing ever needs renaming.
  • Renames are clean (2026-11-14, GM: no legacy hauling). No dual-accept shims: a renamed thing accepts only its new name, old data migrates once (the clerk normalizes on open), and anything left on the old name fails loudly. Upstream words (the DOM's window, the OS's) are consumed as-is.

Ruled renames

  • paper → status (2026-11-14, GM). One name for the thing on every surface a model or human reads: the prompts (invariants.md, housekeeper.md, the rendered status view), the SPA, the docs' living prose. Amended later the same day (GM: "I don't like hauling legacy around" — renames are clean, no dual-accept shims): the machinery renamed too — the status/status-apply/ status-set/status-ingest verbs (the run summary command is report now), the db status table, the /status route, the detail.status field, the status-* journal ops. Old data migrates once, in the clerk; historical records (resolved QUESTIONS entries, build logs) keep the vocabulary of their day.
  • window → session (2026-11-14, GM). Reasons: to a user, "closing a window" means exiting the program; and "context window" already owns the word here — one project, one window, and it is the context window (that last carve-out was superseded later the same day by the contwin ruling below: the word is gone entirely). Swept the same day (SPA strings, server messages, docs prose, and the housekeeper manifest's key, now session — the clerk dual-accepts window so old manifests stay valid). Historical records keep the vocabulary of their day — and old data is consumed as-is from its era: pre-rename session logs carry window-kind notes (readers accept both), pre-rename manifests carry the window key (the clerk dual-accepts), and pre-rename dumps embed their own old schema and self-migrate.
  • the window machinery renamed too (2026-11-14, GM: "invisibles gone as well"). What survived the first sweep as private plumbing is renamed like everything else we own: element ids session-info/session-open, the route POST /sessions, the response field session, the meter field contwin, the function openSession, the events column session (one-time rename migration, data-preserving). Words we do not own are consumed from upstream as-is: the DOM's window, the OS's window.
  • context window → contwin (2026-11-14, GM). The word "window" is retired entirely — even the context window gets its own name, so nothing in the project says "window" on any surface. The config key is contwin; the old contextWindow key is dual-accepted so existing deployments keep booting.
  • wrap → housekeeping (2026-11-14, GM). "Housekeeping" is the only word; the shorthand "the wrap" is retired from strings and living prose alike.

Open naming questions

None currently open — ruled items live above and in the entries.