the roles inventory: every human and inferencer seat named, the vocabulary swept, and the duties audit

the inventory (GM-designed in conversation, 2026-11-19): six human roles -- the developer (maintains the repo, and is the system packages author by consequence: system packages ship in the repo), the deployment operator (maintains a deployment: identities, providers, the registry; filesystem access as recovery; never a reader of runs' private surfaces -- owner-gating holds even against the superuser), the deployment user (any claimed identity; the only reach is the API -- no filesystem, no keys, ever), the package author (an off-platform seat: authorship travels with the files, the machinery sees only the publisher), a run's GM (maintains a run they own -- the same person the machinery records as the run's owner, one role two names, never split; the fork creates a second GM seat over a branching canon), and the reader (defined by the act, membership-free: on-platform any signed-in user, off-platform anyone the story text reaches). The inferencer roles: the assistant, the player, the housekeeper, the curator, the clerk (code, never a model), and the bookkeeper (parked). The example that pinned the mappings: Alice the op forking Bob's Faye into her Kate (hats stack, seats don't), Charlie authoring package files Bob publishes (the author-publisher split), Dave reading the exported story with no invite at all (the reader needs nothing).

the naming convention, stated in AGENTS's header and DICTIONARY both: "GM" always means a run's GM, everywhere; ruling attributions name the developer; the assistant is the assistant; the op stays the op. The role line that is never crossed (developer, 2026-11-19): the assistant is NOT the player -- player-facing instructions are for the assistant to understand how the player would interpret them, never to follow. The root prompts and every model-facing string were already correct (GM there was always the run's GM) and are untouched; the packages' fiction is exempt from the term lint (rule 4 scopes to the substrate: README and the root prompts); the records keep their day's words -- DECISIONS gained one dated header note mapping the old usage instead of a rewrite ("GM" in a ruling attribution is the developer, "the agent" is the assistant).

the sweep: 125+ ruling attributions rewritten across living prose and code comments in every spelling the repo used (paren-wrapped, date-first, mid-sentence, line-wrapped); AGENTS.md fully re-voiced (the header rewritten, "the agent" gone, the developer-meaning prose fixed line by line); README's "invited players" became "invited users"; the gm.md carve-out made precise everywhere (the file is the run's GM's private file, the flagging target is the developer, the non-editor is the assistant).

the word retirements, both lint-banned in rule 4 exactly like "window": "agent" (the word did too many jobs at once; every seat is named; the filename AGENTS.md consumed as-is, "Windows" the OS the precedent) and "LLM" (the class word is "inferencer(s)"; "model" kept as the machinery's noun -- a registry entry, never a seat: a model is what the registry lists, an inferencer is who a seat is). The fixes the bans forced: the exposure rule's "internal agents" -> "internal inferencers", the hypothetical "status-keeper agent" -> invocation, the bookkeeper shed its "agent" tag, "player-model" fell to "the player" everywhere including housekeeper.md's one prompt hit, README's "inference key" and its Roles section re-voiced, the #22 attribution comments at the three call sites, and the runtime log markers renamed (llm -> inferencer, a meaning-preserving log rename under the no-legacy rule). DICTIONARY's renames section carries both retirement entries.

the duties audit (along the what-hats-do lines: the developer maintains the repo, the op maintains a deployment, a user's only reach is the API, a run's GM maintains their run). Found and fixed: README's Housekeeping section was pre-split era text -- "every housekeeping pass should end in a commit" and "confess in the commit message" (runs/ is gitignored; the developer's commit duty was assigned to the run flow), the dead packages/<story>/dumps and packages/<story>/db paths (the dump is per-session under runs/<id>/sessions/<n>/), "canon/ stays committed", and "single-human" (multiuser since 2026-11-14) -- rewritten to the current paths with the audit's hat named: the dump cross-check is the operator side's, a run's GM reviews a pass through the server (the housekeeping log, the rendered rings, the story). The CLI-attributed-to-the-GM lines now say what they are: deployment-side filesystem reach, --gm-authorized writes, whoever's hand runs it (the protocol passage, quickstart step 7 -- which also dropped its "commit" -- and the booting intro now names its hat switches: the author's files, the deployment-side create with its API twin named, the GM's start). "The host" -> "the op" in the pitch. One mechanical fiction PARKED on the ROADMAP deferred list instead of fixed: the memory tiers table promises records access "none -- until the GM unlocks it in the story", but no channel exists (records is a creation-time settings bool, settings.json is read-only in the file API) -- build the channel or fix the promise, later. Verified consistent by the audit: the notepad (ONE notepad -- the run's gm.md, owner-writable through its route, seeded from the package copy), the op's non-reader boundary, every provider act, the spec attributions, the reader, the prompts.

verified: typecheck green both programs, check-repo ALL CLEAN with both new bans active, the ban regexes proven by direct test (agent/agents/multi-agent and LLM/LLMs caught; AGENTS.md and the assistant pass), and final greps confirming every remaining "GM" is a protocol term and every remaining "agent"/"LLM" is a quoting entry or a record's day-words. The developer's own edits ride along: the operator queue strike (the inventory line done, the loopback typo, "external sec review"), and the handoff prepared -- the queue renumbered, the fresh-run item's garbled line repaired, the commit count brought current (seven await the push), template and box marked committed, a stray paragraph break fixed. detention stays untracked WIP, untouched.
This commit is contained in:
2026-11-19 09:56:56 +00:00
parent e60fd63d2b
commit ccdd9ea129
28 changed files with 529 additions and 285 deletions
+135 -90
View File
@@ -1,22 +1,37 @@
# AGENTS.md -- the agent's own notes # AGENTS.md -- the assistant's own notes
Working notes for the agent working this repo. Not project Working notes for the assistant working this repo (the developer's
assistant -- see DICTIONARY's roles inventory). Not project
documentation -- the project's homes are README (architecture, protocol, documentation -- the project's homes are README (architecture, protocol,
observables), ROADMAP (decisions, steal list, substrate plan), observables), ROADMAP (decisions, steal list, substrate plan),
QUESTIONS (the decision queue -- open items only), DECISIONS (the QUESTIONS (the decision queue -- open items only), DECISIONS (the
resolved record, keyed by the old queue numbers), DICTIONARY (the resolved record, keyed by the old queue numbers), DICTIONARY (the
terms of art), HANDOFF (working state). This file is terms of art, the roles inventory included), HANDOFF (working state).
memory the agent owes itself across sessions. This file is memory the assistant owes itself across sessions.
## Working with the GM Naming (the roles inventory, 2026-11-19): "GM" always means a run's
GM -- the human who plays the GM side of one run, the same person the
machinery records as the run's owner. The human I work with is "the
developer." I am "the assistant." The admin surfaces' human is "the
op." Pre-inventory records (DECISIONS entries, old round titles) keep
their day's "GM" -- a dated note in DECISIONS maps it. And the role
line that is never crossed: the assistant is not the player.
Player-facing instructions (the prompts) are not for the assistant
to follow -- they are for the assistant to understand how the player
would interpret them. The class word for the model seats is
"inferencer" (developer, 2026-11-19): "agent" and "LLM" are
lint-banned, seats are named, and "model" stays the machinery's
noun -- a registry entry, never a seat.
- **Their LLM tokens are free (2026-11-14): never economise on usage.** ## Working with the developer
- **Their inference tokens are free (2026-11-14): never economise on usage.**
Run live tests freely; don't hesitate over spend or trim prompts, Run live tests freely; don't hesitate over spend or trim prompts,
manifests, or transcripts to save tokens. manifests, or transcripts to save tokens.
- The GM drafts creative content; the agent drafts mechanical content. - The developer drafts creative content; the assistant drafts
"I draft, you cut" runs both directions. They edit files directly and mechanical content. "I draft, you cut" runs both directions. They
say "check it out" -- always re-read before reviewing or editing; the edit files directly and say "check it out" -- always re-read before
last read never still holds. reviewing or editing; the last read never still holds.
- They think across several lines at once and answer in batches; - They think across several lines at once and answer in batches;
silence on a proposal usually means "not persuaded, moving on." silence on a proposal usually means "not persuaded, moving on."
Discuss in prose -- question dialogs have been dismissed twice. Discuss in prose -- question dialogs have been dismissed twice.
@@ -25,37 +40,39 @@ memory the agent owes itself across sessions.
after being told four-plus times.) after being told four-plus times.)
- Reviewing their creative work: check coherence against the rest of - Reviewing their creative work: check coherence against the rest of
the system, flag ripples, name what works and why -- the verdict on the system, flag ripples, name what works and why -- the verdict on
creative content is theirs. GM-private files (gm.md) are never edited creative content is theirs. The developer's gm.md files (authored
and only flagged. content, the package author's seat) are never edited and only
- **No legacy (GM, 2026-11-18):** when a shape changes, change it, flagged.
- **No legacy (developer, 2026-11-18):** when a shape changes, change it,
then fix what's broken in a one-time manual migration -- no then fix what's broken in a one-time manual migration -- no
permanent tolerance paths in the code, logs included (GM, same permanent tolerance paths in the code, logs included (developer, same
day: mechanical drift in logs that doesn't change meaning is fine day: mechanical drift in logs that doesn't change meaning is fine
-- the log serves a purpose, and the purpose isn't broken because -- the log serves a purpose, and the purpose isn't broken because
the server got an update; it is not court evidence). The one the server got an update; it is not court evidence). The one
boundary is meaning, not bytes: a migration that would change boundary is meaning, not bytes: a migration that would change
what a story says is a GM decision; shape-preserving rewrites what a story says is a developer decision; shape-preserving rewrites
(envelope fields, event spellings, machinery records -- never (envelope fields, event spellings, machinery records -- never
message content) are mechanical and mine to do. message content) are mechanical and mine to do.
- Standing agreements (folded from the handoff's working-agreements - Standing agreements (folded from the handoff's working-agreements
section when it slimmed, 2026-11-15): character and world work is section when it slimmed, 2026-11-15): character and world work is
done together, unhurried ("we'll get there together"); the GM runs done together, unhurried ("we'll get there together"); the developer
on organic memory and takes no notes -- the system is the prosthesis, runs on organic memory and takes no notes -- the system is the
their lever is narrative, never mechanical; they answer point-by-point prosthesis, their lever is narrative, never mechanical; they answer
and expect pushback in both directions; gm.md is GM-private, never point-by-point and expect pushback in both directions; gm.md is
pasted to any model; rolls (`pick`) are legitimate at drafting time -- authored content, never pasted to any model; rolls (`pick`) are
rolled values are proposals with the alternates listed for easy legitimate at drafting time -- rolled values are proposals with the
swaps; hard limits in `system.md` are absolute. alternates listed for easy swaps; hard limits in `system.md` are
absolute.
## Writing prompt-bound text ## Writing prompt-bound text
- **Plainness over subtlety.** Learned 2026-11-13: my content-stance - **Plainness over subtlety.** Learned 2026-11-13: my content-stance
prose was aphoristic ("the weather is hers", "the camera keeps to prose was aphoristic ("the weather is hers", "the camera keeps to
her side") and the GM -- the co-designer -- could not decode most of her side") and the developer -- the co-designer -- could not decode
it. Their rewrite named the thing (erotica), stated rules as most of it. Their rewrite named the thing (erotica), stated rules
behavior (strike down unwanted advances; don't play anticipated as behavior (strike down unwanted advances; don't play anticipated
leads to please the GM), and stated the thesis outright (nothing leads to please the developer), and stated the thesis outright
lives in a special bucket). Match that register. (nothing lives in a special bucket). Match that register.
- Metaphor survives only when cashed out in the same breath -- "tense - Metaphor survives only when cashed out in the same breath -- "tense
is the camera: present while the scene plays -- example -- past to is the camera: present while the scene plays -- example -- past to
summarise -- example" passed their red pen. A metaphor left uncashed summarise -- example" passed their red pen. A metaphor left uncashed
@@ -71,7 +88,7 @@ memory the agent owes itself across sessions.
Input-side counterexamples (routing examples, "Refuse" cases) are Input-side counterexamples (routing examples, "Refuse" cases) are
safe and stay. safe and stay.
- The handbook's point-of-order example deliberately leaves the - The handbook's point-of-order example deliberately leaves the
paren unclosed (GM, 2026-11-15): people write OOC that way in the paren unclosed (developer, 2026-11-15): people write OOC that way in the
wild, the substrate supports it (closing paren optional, ruled in wild, the substrate supports it (closing paren optional, ruled in
invariants), and the example shows the tolerated form. Don't flag invariants), and the example shows the tolerated form. Don't flag
it as a typo. it as a typo.
@@ -92,10 +109,10 @@ memory the agent owes itself across sessions.
costs 9 minutes of real traffic. Amended procedure: back state/ up costs 9 minutes of real traffic. Amended procedure: back state/ up
to temp first, smoke on the clean slate, then clean-replace it back to temp first, smoke on the clean slate, then clean-replace it back
(see the Copy-Item lesson) before the debug server restarts. (see the Copy-Item lesson) before the debug server restarts.
- `git add -A` STAGES THE GM'S WIP PACKAGES (near-miss 2026-11-18: - `git add -A` STAGES THE DEVELOPER'S WIP PACKAGES (near-miss 2026-11-18:
packages/box and packages/detention rode `add -A` into the index packages/box and packages/detention rode `add -A` into the index
and only the status read caught them -- they are untracked until and only the status read caught them -- they are untracked until
the GM says otherwise). Stage by path, or `git restore --staged the developer says otherwise). Stage by path, or `git restore --staged
packages/box packages/detention` after any broad add. packages/box packages/detention` after any broad add.
- The edit tool matches bytes, and the console renders dashes - The edit tool matches bytes, and the console renders dashes
unreliably. When an edit fails on text that "looks right," dump char unreliably. When an edit fails on text that "looks right," dump char
@@ -153,10 +170,10 @@ memory the agent owes itself across sessions.
node_modules: copy server.json in from the main repo before the node_modules: copy server.json in from the main repo before the
mock server starts (it exits without one), and run npm.cmd mock server starts (it exits without one), and run npm.cmd
install before typecheck (2026-11-15, this worktree). install before typecheck (2026-11-15, this worktree).
- The remote (2026-11-15, GM): origin at - The remote (2026-11-15, developer): origin at
`ssh://code@code.fleshless.org:2290/hackmaster/tiny-worlds.git`, `ssh://code@code.fleshless.org:2290/hackmaster/tiny-worlds.git`,
branch mistress tracks origin/mistress. The ssh key takes a branch mistress tracks origin/mistress. The ssh key takes a
PASSPHRASE, so pushes are the GM's -- an agent-side `git push` is PASSPHRASE, so pushes are the developer's -- an assistant-side `git push` is
non-interactive and dies on auth; the network to that host also non-interactive and dies on auth; the network to that host also
has hiccups, so a connection timeout is not proof the server is has hiccups, so a connection timeout is not proof the server is
down (bit once: push attempt got auth, then the port went silent down (bit once: push attempt got auth, then the port went silent
@@ -164,6 +181,33 @@ memory the agent owes itself across sessions.
## State pointers ## State pointers
- **The roles inventory is BUILT (2026-11-19): the repo's humans and
inferencers are named seats, and the vocabulary is swept.** "GM" always
means a run's GM (same person as the run's owner -- one role, two
names); the human I work with is "the developer"; I am "the
assistant"; admin's human is "the op"; the package author is the
off-platform seat (the machinery sees the publisher); the reader
is membership-free. The assistant is NOT the player:
player-facing instructions are to understand the player's
interpretation, never to follow. The word "agent" is retired with
the same stroke (lint-banned in rule 4, lowercase like "window";
AGENTS.md the filename consumed as-is, "Windows" the OS the
precedent): every inferencer seat is named, living prose says the name.
And the class word is ruled: "inferencer(s)" for the seats together,
"LLM" lint-banned beside "agent", "model" kept as the machinery's
noun (a registry entry, never a seat) -- a model is what the
registry lists, an inferencer is who a seat is. The
inventory lives in
DICTIONARY ("The people and the models"); the naming convention
is stated in AGENTS's header; DECISIONS carries a dated note
mapping pre-inventory "GM" attributions to the developer (its
entries keep their day's words). Root prompts and model-facing
strings were already correct (run's GM) and untouched; the
packages' fiction is exempt from the retired-terms lint (rule 4
scopes to the substrate, README + root prompts). The
developer's operator queue line ("inventorise possible human
roles") is struck by them.
- **The provider-flow round is BUILT (2026-11-19): discovery is the - **The provider-flow round is BUILT (2026-11-19): discovery is the
probe, the key path opens only on a 401/403, no automatic probe, the key path opens only on a 401/403, no automatic
retries anywhere, and failures never cache.** The add takes only retries anywhere, and failures never cache.** The add takes only
@@ -212,7 +256,7 @@ memory the agent owes itself across sessions.
slash (opencode/free) and the router splits before decoding. slash (opencode/free) and the router splits before decoding.
Uncommitted, on top of the superseded vector round. Uncommitted, on top of the superseded vector round.
- **The provider-vector round is BUILT (2026-11-18, GM ruling "we - **The provider-vector round is BUILT (2026-11-18, developer ruling "we
can do it right away"): server.json's endpoint became `endpoints`, can do it right away"): server.json's endpoint became `endpoints`,
a list of (baseUrl, auth) pairs, auth optional.** The scaffold's a list of (baseUrl, auth) pairs, auth optional.** The scaffold's
prerequisite -- the free keyless default and the op's real key prerequisite -- the free keyless default and the op's real key
@@ -230,7 +274,7 @@ memory the agent owes itself across sessions.
runs the same steps over TWO synthetic endpoints (mock-a/mock-b) runs the same steps over TWO synthetic endpoints (mock-a/mock-b)
so the merge and tagging are smoke-proven. Config files: the so the merge and tagging are smoke-proven. Config files: the
example carries the vector with the opencode free endpoint first example carries the vector with the opencode free endpoint first
(keyless) -- the pending GM call is whether the free default (keyless) -- the pending developer call is whether the free default
ships in the scaffold or stays example-only; the dev server.json ships in the scaffold or stays example-only; the dev server.json
hand-migrated to the vector. Verified: typecheck green both hand-migrated to the vector. Verified: typecheck green both
programs, smoke ALL PASS (+the vector assertion: two endpoints, programs, smoke ALL PASS (+the vector assertion: two endpoints,
@@ -250,23 +294,23 @@ memory the agent owes itself across sessions.
- **The deployment box exists and is oriented (2026-11-18): a burble - **The deployment box exists and is oriented (2026-11-18): a burble
VM, bare but ready.** The connection specifics (address, port, VM, bare but ready.** The connection specifics (address, port,
key) live in `.ssh/box.md` -- gitignored on purpose, this note key) live in `.ssh/box.md` -- gitignored on purpose, this note
stays generic (GM, 2026-11-18). A small single-core Debian 13 VM, stays generic (developer, 2026-11-18). A small single-core Debian 13 VM,
passwordless sudo, almost nothing installed; a 4G swapfile landed passwordless sudo, almost nothing installed; a 4G swapfile landed
(fstab'd, swappiness 10). Ruled, not yet built: TLS terminates in (fstab'd, swappiness 10). Ruled, not yet built: TLS terminates in
caddy (automatic TLS-ALPN-01 -- the 443-only challenge, right for caddy (automatic TLS-ALPN-01 -- the 443-only challenge, right for
the HTTPS-only forward), node stays loopback http behind the the HTTPS-only forward), node stays loopback http behind the
proxy; node via nvm at the current stable branch, NO version pin proxy; node via nvm at the current stable branch, NO version pin
(GM, 2026-11-18 -- apt's node is too old for node:sqlite; our (developer, 2026-11-18 -- apt's node is too old for node:sqlite; our
DatabaseSync usage is kept as an alias through node 26, so DatabaseSync usage is kept as an alias through node 26, so
current-stable is safe, though dev still runs 22.15); the deploy current-stable is safe, though dev still runs 22.15); the deploy
pipeline is its own discussion (a gitea runner the leading idea). pipeline is its own discussion (a gitea runner the leading idea).
Orientation only -- nothing runs there yet, no code deployed, no Orientation only -- nothing runs there yet, no code deployed, no
caddy installed. caddy installed.
- **The conflict-persistence round is BUILT (2026-11-18, committed - **The conflict-persistence round is BUILT (2026-11-18, committed
53f992a with the rewind round and the GM's reminder edit): 53f992a with the rewind round and the developer's reminder edit):
conflicts stay in the contwin and are self-contained.** The old conflicts stay in the contwin and are self-contained.** The old
view policy treated conflicts as transient (visible only while view policy treated conflicts as transient (visible only while
the latest word, elided after) -- the GM overruled it: a mistake the latest word, elided after) -- the developer overruled it: a mistake
remains visible so it is not made again. Self-contained means the remains visible so it is not made again. Self-contained means the
conflict DESCRIBES ITS PROBLEM IN FULL, quoting the offending conflict DESCRIBES ITS PROBLEM IN FULL, quoting the offending
emission, because the block it answers strips from the view emission, because the block it answers strips from the view
@@ -295,7 +339,7 @@ memory the agent owes itself across sessions.
-- delete-by-list is the backstop, the print is the fix). -- delete-by-list is the backstop, the print is the fix).
- **The rewind round is BUILT (2026-11-17, verified into 11-18, - **The rewind round is BUILT (2026-11-17, verified into 11-18,
committed 53f992a): committed 53f992a):
the GM's take-back, riding the send.** The GM took "session the GM's take-back, riding the send.** The developer took "session
rewind" off their operator queue and simplified the design past rewind" off their operator queue and simplified the design past
my cut-event proposal: physical truncation, not typed entries -- my cut-event proposal: physical truncation, not typed entries --
fork is the preservation story (no fork, no archaeology), and fork is the preservation story (no fork, no archaeology), and
@@ -353,7 +397,7 @@ memory the agent owes itself across sessions.
that precedent decided the presentation: its own authoritative that precedent decided the presentation: its own authoritative
system chunk at the freshest end, NEVER a canon-point stamp, which system chunk at the freshest end, NEVER a canon-point stamp, which
would read as her words). Schemaless JSON in the tag, one would read as her words). Schemaless JSON in the tag, one
universal invariants rule (the GM wrote it: optional, free-form universal invariants rule (the developer wrote it: optional, free-form
json GM curates, examples deliberately non-box -- clothes, grades; json GM curates, examples deliberately non-box -- clothes, grades;
"you may propose adding things" is her schema-evolution channel), "you may propose adding things" is her schema-evolution channel),
details learnt in-place (the mind-verb philosophy: the substrate details learnt in-place (the mind-verb philosophy: the substrate
@@ -393,21 +437,21 @@ memory the agent owes itself across sessions.
typecheck green both programs, check-repo clean, browser pass typecheck green both programs, check-repo clean, browser pass
zero console errors (staging, pending marker, the ride, the scan zero console errors (staging, pending marker, the ride, the scan
re-render, machinery lines). Docs: README's protocol passage re-render, machinery lines). Docs: README's protocol passage
carries the sheet (NOT in the memory tiers table -- the GM ruled carries the sheet (NOT in the memory tiers table -- the developer ruled
it belongs in neither memories nor records; the first draft put it belongs in neither memories nor records; the first draft put
a row there and was wrong), the identity tier lost its loose a row there and was wrong), the identity tier lost its loose
"character sheet" name (the term is technical now), DICTIONARY "character sheet" name (the term is technical now), DICTIONARY
gains the sheet entry with the dice-retired/sheet-arrived gains the sheet entry with the dice-retired/sheet-arrived
history, ROADMAP gains the bookkeeper extension (the parked history, ROADMAP gains the bookkeeper extension (the parked
arithmetic-sibling agent: staged edits, curator fallback, arithmetic sibling -- the bookkeeper: staged edits, curator fallback,
per-package opt-in). The GM's prompt-side edits ride the same per-package opt-in). The developer's prompt-side edits ride the same
round: invariants' sheet section, the reminder's inventory line, round: invariants' sheet section, the reminder's inventory line,
la-caramba gm.md lore (the spine discussion). PARKED with the la-caramba gm.md lore (the spine discussion). PARKED with the
GM: the box package (WIP, theirs) is the first consumer; the developer: the box package (WIP, theirs) is the first consumer; the
bookkeeper agent; a live turn on a real model with a sheet. bookkeeper; a live turn on a real model with a sheet.
- **The progress round is BUILT COMPLETE (2026-11-17, committed - **The progress round is BUILT COMPLETE (2026-11-17, committed
bbaf336): the streaming provider, the refine meter, and the turn bbaf336): the streaming provider, the refine meter, and the turn
meter are all done and live-proven.** The GM's plan: abandon meter are all done and live-proven.** The developer's plan: abandon
Chloe, start a fresh run from the top (the huge max-effort result Chloe, start a fresh run from the top (the huge max-effort result
prompted it -- her one max turn thought prompted it -- her one max turn thought
11,371 chars, 9x her session max, with real continuity work inside; 11,371 chars, 9x her session max, with real continuity work inside;
@@ -424,16 +468,16 @@ memory the agent owes itself across sessions.
The refine meter (discovery.mjs + view-home admin block): the job The refine meter (discovery.mjs + view-home admin block): the job
carries steps {total, done, label, chars} -- total = models + the carries steps {total, done, label, chars} -- total = models + the
curator's two (thinking, writing), known at scrape; the bar moves curator's two (thinking, writing), known at scrape; the bar moves
ONLY on real completions (GM, 2026-11-17: no step has a knowable ONLY on real completions (developer, 2026-11-17: no step has a knowable
duration, the point is meaningful feedback, not smooth fill), the duration, the point is meaningful feedback, not smooth fill), the
label names the running call down to the ladder sample, every label names the running call down to the ladder sample, every
completion lands a receipt line (elapsed seconds + verdict), and completion lands a receipt line (elapsed seconds + verdict), and
the lines SURVIVE the job (the receipt renders until the next the lines SURVIVE the job (the receipt renders until the next
refine -- GM ruling: no reason to delete the log); the curator's refine -- developer ruling: no reason to delete the log); the curator's
thinking step closes at the first prose delta (the streaming thinking step closes at the first prose delta (the streaming
boundary -- why the provider went first), writing at the resolve, boundary -- why the provider went first), writing at the resolve,
a dead call closes both; a rejected job keeps its lines for the a dead call closes both; a rejected job keeps its lines for the
post-mortem. The 2s poll is the transport (GM-ruled fine; SSE was post-mortem. The 2s poll is the transport (developer-ruled fine; SSE was
rejected -- EventSource can't send the Bearer header). The TURN rejected -- EventSource can't send the Bearer header). The TURN
meter (loop.mjs s.progress per provider call, GET /progress route meter (loop.mjs s.progress per provider call, GET /progress route
+ scale, view-play placeholder + 1s poll): no true max exists for + scale, view-play placeholder + 1s poll): no true max exists for
@@ -441,12 +485,12 @@ memory the agent owes itself across sessions.
usage arithmetic proves it; the route mirrors the loop's param usage arithmetic proves it; the route mirrors the loop's param
resolution, ~4 chars a token); else the scale is her own history resolution, ~4 chars a token); else the scale is her own history
-- the longest PAST assistant turn in chars, thinking and prose -- the longest PAST assistant turn in chars, thinking and prose
both, the authored opening included (GM, 2026-11-17: a guesstimate, both, the authored opening included (developer, 2026-11-17: a guesstimate,
an informed one). 100%-crossing push-back is GEOMETRIC: grow the an informed one). 100%-crossing push-back is GEOMETRIC: grow the
scale by 1.25x until the count fits, so the bar lands anywhere in scale by 1.25x until the count fits, so the bar lands anywhere in
(80%,100%] per bracket and re-brackets on each crossing -- it never (80%,100%] per bracket and re-brackets on each crossing -- it never
pins (a count just under a grown bracket can still round to 100%, pins (a count just under a grown bracket can still round to 100%,
named to the GM as working as designed). No scale (draft-before- named to the developer as working as designed). No scale (draft-before-
opening edge) falls to a chunk-driven strip: twelve segments, one opening edge) falls to a chunk-driven strip: twelve segments, one
lit, stepping ONLY when chars arrived -- never a free-running lit, stepping ONLY when chars arrived -- never a free-running
spinner. NO live partial prose in the transcript (the log is the spinner. NO live partial prose in the transcript (the log is the
@@ -463,7 +507,7 @@ memory the agent owes itself across sessions.
glm-5.3 turns at effort max, zero console errors): chars tick, the glm-5.3 turns at effort max, zero console errors): chars tick, the
phase flips thinking->writing at the streaming boundary, the scale phase flips thinking->writing at the streaming boundary, the scale
re-anchors to her new longest after each turn. The REAL refine ran re-anchors to her new longest after each turn. The REAL refine ran
2026-11-17 end to end (GM-authorized): 13 models in 541s, the meter 2026-11-17 end to end (developer-authorized): 13 models in 541s, the meter
behaved exactly to spec (curator thinking ticked 4k->17k chars behaved exactly to spec (curator thinking ticked 4k->17k chars
across polls), and the registry gained the effort measurements -- across polls), and the registry gained the effort measurements --
defaults now glm-5.3-max (the deterministic lex re-pick, as defaults now glm-5.3-max (the deterministic lex re-pick, as
@@ -490,7 +534,7 @@ memory the agent owes itself across sessions.
measured for mean thinking (2 samples), efforts recorded per measured for mean thinking (2 samples), efforts recorded per
model, effortDefault = the argmax mean over minimal..max ('none' model, effortDefault = the argmax mean over minimal..max ('none'
is the off switch, never a default candidate; null when the model is the off switch, never a default candidate; null when the model
shows no thinking or nothing moved). The knob (GM's rulings: not shows no thinking or nothing moved). The knob (developer's rulings: not
her call, hidden entirely -- never in the mind verb, never in the her call, hidden entirely -- never in the mind verb, never in the
<model> display block, BOTH the loop's live push and renderView's <model> display block, BOTH the loop's live push and renderView's
via-derived block filter it; it rides the via record, raw shows via-derived block filter it; it rides the via record, raw shows
@@ -516,7 +560,7 @@ memory the agent owes itself across sessions.
the whole ladder on both families without 400s, and the whole ladder on both families without 400s, and
reasoning_effort 'none' doubles as a standardized thinking-off reasoning_effort 'none' doubles as a standardized thinking-off
switch. The registry on disk predates the probe -- efforts land switch. The registry on disk predates the probe -- efforts land
at the next refine (the GM's one click, post-curator-review). at the next refine (the op's one click, post-curator-review).
- **The state-scan round is BUILT (2026-11-16, evening): the log is - **The state-scan round is BUILT (2026-11-16, evening): the log is
the one truth for status and agenda, the db tiers are retired.** the one truth for status and agenda, the db tiers are retired.**
scanState (server/session.mjs) derives each kind newest-wins scanState (server/session.mjs) derives each kind newest-wins
@@ -528,11 +572,11 @@ memory the agent owes itself across sessions.
the only place her seven items live, the reception note still the only place her seven items live, the reception note still
shows the GM what sank. The stamp renders canonical formats: shows the GM what sank. The stamp renders canonical formats:
status comma-separated, agenda markdown bullets (the grammar status comma-separated, agenda markdown bullets (the grammar
invariants teaches -- the GM added the line themselves). The GM's invariants teaches -- the developer added the line themselves). The GM's
block edits are overrides: the pane editors STAGE (paneEditor block edits are overrides: the pane editors STAGE (paneEditor
reworked -- no save callback, staged state + pending marker + reworked -- no save callback, staged state + pending marker +
discard), the send attaches them to POST /turn, node logs the discard), the send attaches them to POST /turn, node logs the
override field on the GM turn (the log never mutates -- GM, override field on the GM turn (the log never mutates -- developer,
2026-11-16: "mutate during the contwin composition... the model 2026-11-16: "mutate during the contwin composition... the model
sees the blocks overwritten with GM's edits attached to her sees the blocks overwritten with GM's edits attached to her
turn"; append-if-empty; OOC turns refuse edits, client and turn"; append-if-empty; OOC turns refuse edits, client and
@@ -574,7 +618,7 @@ memory the agent owes itself across sessions.
deliverable, deliberately separate. The composer: rows=6 floor, deliverable, deliberately separate. The composer: rows=6 floor,
field-sizing: content grows it with the turn, max-height 50vh field-sizing: content grows it with the turn, max-height 50vh
caps with internal scroll (rows is the no-support fallback -- caps with internal scroll (rows is the no-support fallback --
field-sizing is the thing the GM remembered Firefox doing; it field-sizing is the thing the developer remembered Firefox doing; it
wasn't in use, now it is). The footer moved under the transcript's wasn't in use, now it is). The footer moved under the transcript's
column only (the input's width is the pane's width), padding column only (the input's width is the pane's width), padding
aligned to main's. The pane stick-to-bottom was DEAD CODE all aligned to main's. The pane stick-to-bottom was DEAD CODE all
@@ -602,13 +646,13 @@ memory the agent owes itself across sessions.
not deliberate" line; the host's network hiccups killed the curator not deliberate" line; the host's network hiccups killed the curator
call twice -- the fallback (machine labels, deterministic call twice -- the fallback (machine labels, deterministic
defaults) carried the job exactly as designed, and the call now defaults) carried the job exactly as designed, and the call now
retries once; the 5.2/5.3-max flip was the dv alias (GM-confirmed, retries once; the 5.2/5.3-max flip was the dv alias (developer-confirmed,
one model behind both ids) and the pick rule now ranks on the one model behind both ids) and the pick rule now ranks on the
reasoning bucket (within-bucket counts are noise -- the thresholds reasoning bucket (within-bucket counts are noise -- the thresholds
sit in the endpoint's observed gaps), full ties settling sit in the endpoint's observed gaps), full ties settling
sort-lex-pick-bottom (GM rule, 2026-11-16; the mock's tie pair sort-lex-pick-bottom (developer rule, 2026-11-16; the mock's tie pair
mock/mock-tie asserts it in the smoke). The dv endpoint mock/mock-tie asserts it in the smoke). The dv endpoint
aliases 5.2 to 5.3 (GM, 2026-11-16) -- curator.md tells the curator aliases 5.2 to 5.3 (developer, 2026-11-16) -- curator.md tells the curator
to name likely twins instead of inventing distinctions. The to name likely twins instead of inventing distinctions. The
tunables UX round is BUILT (2026-11-16): the knob definitions tunables UX round is BUILT (2026-11-16): the knob definitions
table + explicit override toggles + shared hint bar live in table + explicit override toggles + shared hint bar live in
@@ -619,12 +663,12 @@ memory the agent owes itself across sessions.
the start lint admits req as conversation machinery so a record the start lint admits req as conversation machinery so a record
riding the slidwin tail never refuses a start); the housekeeping riding the slidwin tail never refuses a start); the housekeeping
pass log names its model via the clerk's new --model flag; the pass log names its model via the clerk's new --model flag; the
hint texts are the GM's drafts verbatim pending their red pen. The hint texts are the developer's drafts verbatim pending their red pen. The
mind verb is BUILT (2026-11-16, same sitting): <mind> JSON in a mind verb is BUILT (2026-11-16, same sitting): <mind> JSON in a
player turn sets its sampling for its NEXT turn -- rulings: tag player turn sets its sampling for its NEXT turn -- rulings: tag
form, one-shot, no GM lock, JSON inside the tag, max_tokens form, one-shot, no GM lock, JSON inside the tag, max_tokens
excluded (a budget, not a mind), no prompt-side parameter excluded (a budget, not a mind), no prompt-side parameter
explanations (native in base training -- the GM documents the explanations (native in base training -- the developer documents the
verb themselves); bounds enforced in loop.mjs's KNOB_BOUNDS with verb themselves); bounds enforced in loop.mjs's KNOB_BOUNDS with
the range named in the conflict, the heal restatement is the the range named in the conflict, the heal restatement is the
statement that counts, derive() makes a statement live until a statement that counts, derive() makes a statement live until a
@@ -645,7 +689,7 @@ memory the agent owes itself across sessions.
goes pure (old logs' rides strip -- never GM words), the goes pure (old logs' rides strip -- never GM words), the
agenda-set verb evicts over-cap silently for GM and player agenda-set verb evicts over-cap silently for GM and player
alike, the authored-carryover lint requires a model turn. The alike, the authored-carryover lint requires a model turn. The
opening event is RETIRED with the same stroke (GM's package edit opening event is RETIRED with the same stroke (the developer's package edit
moved the initial status into her authored opening turn; the moved the initial status into her authored opening turn; the
start gate seeds the clerk from her last authored turn's blocks; start gate seeds the clerk from her last authored turn's blocks;
old carryovers keep their events as inert history -- and the old carryovers keep their events as inert history -- and the
@@ -664,7 +708,7 @@ memory the agent owes itself across sessions.
auto-mints on fresh deployment to state/bootstrap-invite.txt; op auto-mints on fresh deployment to state/bootstrap-invite.txt; op
mints/revokes invites and users; revocation destroys identity (new mints/revokes invites and users; revocation destroys identity (new
invite = new person). Ownership is RESOLVED, never maintained -- invite = new person). Ownership is RESOLVED, never maintained --
run.json keeps dead owner ids, the API reads them as ownerless (GM run.json keeps dead owner ids, the API reads them as ownerless (the developer
overruled my file-sweep; resolution won). Fork = atomic copy, owner overruled my file-sweep; resolution won). Fork = atomic copy, owner
replaced, `forked: unixtime` stamped, no lineage. Packages split replaced, `forked: unixtime` stamped, no lineage. Packages split
system (repo) / user (state/packages, published). Reads: the story system (repo) / user (state/packages, published). Reads: the story
@@ -682,7 +726,7 @@ memory the agent owes itself across sessions.
migrated (CHECK widened) -- her db is agenda-ready. The per-turn migrated (CHECK widened) -- her db is agenda-ready. The per-turn
reminder (DECISIONS #34, steal #11 done): reminder.md is repo-shared, reminder (DECISIONS #34, steal #11 done): reminder.md is repo-shared,
rides after every GM turn as its own system chunk, one live copy rides after every GM turn as its own system chunk, one live copy
(older elide); its CONTENT is the GM's -- my draft is a proposal, (older elide); its CONTENT is the developer's -- my draft is a proposal,
the handbook duplicate-cut is their red pen. the handbook duplicate-cut is their red pen.
- Substrate design round complete (2026-11-13); rulings live in ROADMAP - Substrate design round complete (2026-11-13); rulings live in ROADMAP
("The harness") and HANDOFF. Bridge retired before ever going live; ("The harness") and HANDOFF. Bridge retired before ever going live;
@@ -708,14 +752,14 @@ memory the agent owes itself across sessions.
`Get-NetTCPConnection -LocalPort 7350` -- a forgotten instance holds `Get-NetTCPConnection -LocalPort 7350` -- a forgotten instance holds
the port and silently answers with OLD code while the new one dies the port and silently answers with OLD code while the new one dies
on bind (bit me once; two accidental live turns resulted). on bind (bit me once; two accidental live turns resulted).
- Gotcha (2026-11-14, GM): **never call browser.screenshot** -- the - Gotcha (2026-11-14, developer): **never call browser.screenshot** -- the
image return breaks the session (glm-5.3 is not multimodal; the GM image return breaks the session (glm-5.3 is not multimodal; the developer
had to rewind once). Verify UI text-safely: browser.snapshot had to rewind once). Verify UI text-safely: browser.snapshot
(accessibility tree), browser.console, browser.network. If real (accessibility tree), browser.console, browser.network. If real
vision is ever needed, the endpoint carries multimodal vision is ever needed, the endpoint carries multimodal
deepseek-v4.1 -- but prefer never needing it. deepseek-v4.1 -- but prefer never needing it.
- Gotcha (2026-11-14, GM): **no JS alert()/confirm()/prompt() in the - Gotcha (2026-11-14, developer): **no JS alert()/confirm()/prompt() in the
SPA** -- they block the embedded browser pane (the GM sat locked out SPA** -- they block the embedded browser pane (the developer sat locked out
of their input once while a test confirm hung on my dialog-tool of their input once while a test confirm hung on my dialog-tool
fumbling). In-page UI only: the banner for notices, two-click arm fumbling). In-page UI only: the banner for notices, two-click arm
for confirms. for confirms.
@@ -758,7 +802,7 @@ memory the agent owes itself across sessions.
the a11y tree (no refs) -- evaluate is the only handle on them. the a11y tree (no refs) -- evaluate is the only handle on them.
- Test-state discipline (2026-11-14): the deployment's state/ is real - Test-state discipline (2026-11-14): the deployment's state/ is real
-- never leave test users or invites in it. Smoke against --mock, -- never leave test users or invites in it. Smoke against --mock,
then Remove-Item state/ and every test run (all but the GM's real then Remove-Item state/ and every test run (all but the developer's real
ones) before calling it done. A stale bootstrap file is harmless ones) before calling it done. A stale bootstrap file is harmless
(dead once a superuser exists), but test users make the deployment (dead once a superuser exists), but test users make the deployment
NOT fresh and block the real bootstrap. NOT fresh and block the real bootstrap.
@@ -772,15 +816,15 @@ memory the agent owes itself across sessions.
memory of tool calls but NOT their effects -- the server, files, and memory of tool calls but NOT their effects -- the server, files, and
databases keep them. After any rewind, external state is the truth: databases keep them. After any rewind, external state is the truth:
re-read it, and never assume authorship of found content (I once re-read it, and never assume authorship of found content (I once
credited the GM with a GM-turn that pre-rewind me had written). credited the developer with a GM-turn that pre-rewind me had written).
- Open tails (handoff, 2026-11-14, evening): **housekeeper.md review - Open tails (handoff, 2026-11-14, evening): **housekeeper.md review
is still the next creative step** -- the GM's dry-run verdict was is still the next creative step** -- the developer's dry-run verdict was
"works, but not as expected; I never saw the prompt"; iterate with "works, but not as expected; I never saw the prompt"; iterate with
the replay button (nothing applied). **Status discipline: RESOLVED** the replay button (nothing applied). **Status discipline: RESOLVED**
by the agenda (DECISIONS #32/#33). **Verbosity**: completions by the agenda (DECISIONS #32/#33). **Verbosity**: completions
lengthened 103 -> 668 chars across session one; the per-turn reminder lengthened 103 -> 668 chars across session one; the per-turn reminder
is the countermeasure now built -- the next live session is the test. is the countermeasure now built -- the next live session is the test.
**Irene is broken and never runs again (GM, 2026-11-16, superseding **Irene is broken and never runs again (developer, 2026-11-16, superseding
the calibration retirement): her run (4f261452) is kept exactly as the calibration retirement): her run (4f261452) is kept exactly as
it is -- logs and db untouched, no replay, no continuation, no it is -- logs and db untouched, no replay, no continuation, no
compatibility designed for her. Reading her files on disk (the compatibility designed for her. Reading her files on disk (the
@@ -809,7 +853,7 @@ memory the agent owes itself across sessions.
op's one-time first start under multiuser (HANDOFF step 1), then op's one-time first start under multiuser (HANDOFF step 1), then
the first real housekeeping pass (step 2). Plan of record: the first real housekeeping pass (step 2). Plan of record:
HANDOFF ("The dormant-session rework"); status: HANDOFF ("Where we HANDOFF ("The dormant-session rework"); status: HANDOFF ("Where we
are"). En-route fix flagged to the GM: the roll retirement had are"). En-route fix flagged to the developer: the roll retirement had
missed bundle.mjs's tool list; missed bundle.mjs's tool list;
removed. Working lessons from the build: the mock model's script removed. Working lessons from the build: the mock model's script
keys on assistant replies counted CUMULATIVELY across the log keys on assistant replies counted CUMULATIVELY across the log
@@ -860,7 +904,7 @@ memory the agent owes itself across sessions.
personality. (Prior rounds, committed: SPA module refactor + personality. (Prior rounds, committed: SPA module refactor +
terminology through c51d310; multiuser + agenda + reminder through terminology through c51d310; multiuser + agenda + reminder through
89a2c16 -- abf8ef3 is its dead pre-amend twin.) 89a2c16 -- abf8ef3 is its dead pre-amend twin.)
- Format house rules, same sitting (2026-11-15, GM, from their - Format house rules, same sitting (2026-11-15, developer, from their
operator's queue): ASCII bytes in every tracked file (the ENCODING operator's queue): ASCII bytes in every tracked file (the ENCODING
is the problem, never the visual -- rendered glyphs travel is the problem, never the visual -- rendered glyphs travel
ASCII-safe: the middle dot is \u00b7 in JS strings, entities in ASCII-safe: the middle dot is \u00b7 in JS strings, entities in
@@ -871,25 +915,26 @@ memory the agent owes itself across sessions.
test/check-repo.mjs; the repo swept clean (43 files), style.css test/check-repo.mjs; the repo swept clean (43 files), style.css
de-capped (source-case labels now -- waits match source text), the de-capped (source-case labels now -- waits match source text), the
setup editor's dirty marker authored into the DOM. The audit pass setup editor's dirty marker authored into the DOM. The audit pass
(same day, GM-ordered) grew the check to NINE rules -- read its (same day, developer-ordered) grew the check to NINE rules -- read its
header for the list; the found-and-fixed: four html comments in header for the list; the found-and-fixed: four html comments in
prose files (la-caramba's backdrop rode one into every bundle), prose files (la-caramba's backdrop rode one into every bundle),
README's "256K-class window", ROADMAP's "rides the prelude". The README's "256K-class window", ROADMAP's "rides the prelude". The
lint's carve-outs are rulings, not sloppiness: historical records lint's carve-outs are rulings, not sloppiness: historical records
keep their day's words, gm.md is GM-private, contwin glosses may keep their day's words, gm.md is GM-private (the run's GM's
file), contwin glosses may
name the context window, and the clerk's paper->status migration name the context window, and the clerk's paper->status migration
code is the ruled one-time code is the ruled one-time
exception (which is why the term check scopes to living prose, not exception (which is why the term check scopes to living prose, not
code). code).
gm.md note: the sweep once touched packages/boutique/gm.md's gm.md note: the sweep once touched packages/boutique/gm.md's
typography; moot since the GM emptied the package. typography; moot since the developer emptied the package.
- Working lessons (prior builds): the newest GM - Working lessons (prior builds): the newest GM
turn must keep its <status>/<agenda> blocks (that ride is the turn must keep its <status>/<agenda> blocks (that ride is the
status/agenda blocks' only channel from session two on); any new path that reads a status/agenda blocks' only channel from session two on); any new path that reads a
run file for sending goes through expandVars (turn0() initially run file for sending goes through expandVars (turn0() initially
didn't); the transcript must surface failed session-open notes didn't); the transcript must surface failed session-open notes
(ingest), not print success unconditionally; after changing a (ingest), not print success unconditionally; after changing a
default, re-run the primary path (the start button broke for the GM default, re-run the primary path (the start button broke for the developer
because post-redesign tests never pressed it); ownership is resolved because post-redesign tests never pressed it); ownership is resolved
against the users table, never swept on disk; same-verb delta blocks against the users table, never swept on disk; same-verb delta blocks
combine into one apply, never execute in sequence. Rename-mechanics combine into one apply, never execute in sequence. Rename-mechanics
@@ -900,10 +945,10 @@ memory the agent owes itself across sessions.
is never a later pair's old name, and grep dispatch tables after. is never a later pair's old name, and grep dispatch tables after.
CLI note: the run summary is `report` now; `status` is the tier CLI note: the run summary is `report` now; `status` is the tier
verb. verb.
- Postulates (GM, 2026-11-14): female PCs only (names are gendered; - Postulates (developer, 2026-11-14): female PCs only (names are gendered;
DECISIONS #2 closed by it). packages/detention is GM WIP (2026-11-17): DECISIONS #2 closed by it). packages/detention is developer WIP (2026-11-17):
never commit it, never edit it unprompted -- it goes in when they say. never commit it, never edit it unprompted -- it goes in when they say.
Boutique: the GM emptied it wholesale Boutique: the developer emptied it wholesale
(2026-11-15 -- it kept being a noisy problem); placeholder files (2026-11-15 -- it kept being a noisy problem); placeholder files
only, no content anywhere. Still do not fix or design it only, no content anywhere. Still do not fix or design it
unprompted -- its design round is where content returns. The unprompted -- its design round is where content returns. The
@@ -919,14 +964,14 @@ memory the agent owes itself across sessions.
(2026-11-15, DECISIONS #9: strict everywhere, a refused line hands (2026-11-15, DECISIONS #9: strict everywhere, a refused line hands
back un-eaten, the log records the expanded line -- continuation back un-eaten, the log records the expanded line -- continuation
carryovers stay expansion-free forever). carryovers stay expansion-free forever).
- Exposure rule (GM, 2026-11-14): everything that enters the bundle - Exposure rule (developer, 2026-11-14): everything that enters the bundle
is inspectable read-only in the SPA (system.md, invariants.md, the is inspectable read-only in the SPA (system.md, invariants.md, the
assembled system message in the bundle card); anything that prompts assembled system message in the bundle card); anything that prompts
an internal agent (housekeeper.md) is never exposed. Don't hide an internal inferencer (housekeeper.md) is never exposed. Don't hide
bundle parts, don't surface agent prompts. bundle parts, don't surface the internal inferencers' prompts.
- Dates principle (revised 2026-11-14, GM): **no model-facing surface - Dates principle (revised 2026-11-14, developer): **no model-facing surface
renders a date** -- ring views, search results, everything the renders a date** -- ring views, search results, everything the
player-model sees. Memory doesn't timestamp; when something happened player sees. Memory doesn't timestamp; when something happened
lives in the entry prose. Internal stamps (created/last_touched) are lives in the entry prose. Internal stamps (created/last_touched) are
real, mechanical (LRU/overflow/sinking), never rendered; GM-facing real, mechanical (LRU/overflow/sinking), never rendered; GM-facing
CLI keeps them. The manifest and seed carry no date keys at all -- CLI keeps them. The manifest and seed carry no date keys at all --
@@ -934,8 +979,8 @@ memory the agent owes itself across sessions.
stamp was rewriting story time). Supersedes the story-date ruling stamp was rewriting story time). Supersedes the story-date ruling
below. below.
- Watch: the "never open with world narration" rule was cut as - Watch: the "never open with world narration" rule was cut as
superfluous by the GM -- reinstate only if testing shows drift. superfluous by the developer -- reinstate only if testing shows drift.
- README observable #14 reads correctly as-is (GM, 2026-11-15): a - README observable #14 reads correctly as-is (developer, 2026-11-15): a
turn is one thing -- the reminder's zero-or-one-action plus turn is one thing -- the reminder's zero-or-one-action plus
bounded speech is the structure OF the thing, not a looser count. bounded speech is the structure OF the thing, not a looser count.
Don't re-flag the wording. Don't re-flag the wording.
@@ -946,7 +991,7 @@ memory the agent owes itself across sessions.
- Open decisions live in QUESTIONS.md -- read it first; the resolved - Open decisions live in QUESTIONS.md -- read it first; the resolved
record is DECISIONS.md (the old queue, kept by number). QUESTIONS is record is DECISIONS.md (the old queue, kept by number). QUESTIONS is
open items only now (2026-11-15 split). Remaining: #19c only (seed open items only now (2026-11-15 split). Remaining: #19c only (seed
voice, GM may revisit -- non-blocking). #16 closed with the provider voice, the developer may revisit -- non-blocking). #16 closed with the provider
round (2026-11-18: the housekeeper inherits the player spec's round (2026-11-18: the housekeeper inherits the player spec's
provider default), the turn-surgery details with the rewind round. provider default), the turn-surgery details with the rewind round.
- The tree is usually dirty by design; git status is not an alarm. - The tree is usually dirty by design; git status is not an alarm.
+8
View File
@@ -9,6 +9,14 @@ keys -- the rest of the doc set points here. The live design lives
in README / ROADMAP / DICTIONARY / the prompts; this file is how it in README / ROADMAP / DICTIONARY / the prompts; this file is how it
got there. Anything still open lives in QUESTIONS.md, never here. got there. Anything still open lives in QUESTIONS.md, never here.
A note on one old name (2026-11-19, the roles inventory): entries
written before the inventory attribute rulings to "GM" -- that hat
is the developer (DICTIONARY's roles inventory maps every seat).
Likewise "the agent" in old entries is the assistant. The entries
keep their day's words; read "GM" in a ruling attribution as "the
developer," and "GM" in play-protocol contexts as "a run's GM,"
which is what it still means today.
## Play-side (before window one) ## Play-side (before window one)
### 1. The PC token in system.md -- RESOLVED (2026-11-12) ### 1. The PC token in system.md -- RESOLVED (2026-11-12)
+93 -29
View File
@@ -8,25 +8,74 @@ WORDS.
## The people and the models ## The people and the models
- **the GM** -- the human running the world: every NPC, every The roles inventory (2026-11-19): every human and inferencer seat this
consequence, all retcons. Runs on organic memory; the model's canon project can refer to, in one place. A role is a seat, not a person --
files are the prosthesis. Always a human, never a model. one human wears many hats (the op can also be a run's GM; the
- **the player** -- the player-model: the LLM playing the one PC. developer is usually the package author), and no seat implies any
other.
**Human roles:**
- **the developer** -- writes the substrate, upstream of every
deployment: the repo's publisher, the ruling-maker, the red pen.
Holds no seat on anyone's deployment, sees no one's runs. In this
repo's records, ruling attributions name the developer.
- **the deployment operator (the op)** -- the superuser of one
deployment: claims the bootstrap invite, mints and revokes invites
and users, manages the providers and the registry. Recovery is
filesystem access. The whole of admin -- and nothing else: the op
is not a reader of runs' private surfaces (owner-gating holds
even against the op).
- **the deployment user** -- any claimed identity on a deployment: a
token, nothing more. Can read every story, fork any run (forking
makes it theirs), create runs, and publish packages.
- **the package author** -- writes a package: the world, the
character, the opening. An off-platform seat -- authorship travels
with the files (a package published on a forum was authored by
someone who never touches the deployment that runs it); the
machinery only ever sees the publisher, the user who published the
copy (recorded as the package's owner).
- **a run's GM (the GM)** -- the human who plays the GM side of one
run: every NPC, every consequence, all retcons, the sheet, the
rewind. Runs on organic memory; the canon files are the
prosthesis. The same person the machinery records as the run's
owner -- one role, two names, never split (the fork creates a new
GM seat over a branching canon). Always a human, never a model.
When this repo says "GM" without qualification, it means this
seat.
- **the reader** -- anyone reading a story: the audience doctrine's
third party. Defined by the act, not by membership -- on-platform
it is any signed-in user on the story surface; off-platform it is
anyone the story text reaches, no invite, no token, no row in any
table.
**Inferencer roles:**
- **the assistant** -- the developer's inferencer collaborator, the same
seat as the developer: works the repo, never a deployment. NOT the
player -- player-facing instructions are not for the assistant to
follow, only to understand how the player would interpret them
(developer, 2026-11-19).
- **the player** -- the inferencer playing the one PC.
The two parties who play are the GM and the player (2026-11-14, 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 developer) -- and the player is always the model: humans are never "the
player" (DECISIONS #28); a human in the app is a GM (of their own player" (DECISIONS #28); a human in the app is a GM (of their own
runs), a reader of other people's stories, or the op. runs), a reader of other people's stories, or the op.
- **the PC** -- the one character the player-model plays. Female by - **the PC** -- the one character the player plays. Female by
postulate (README Scope); the shared prompts say "she" throughout. postulate (README Scope); the shared prompts say "she" throughout.
- **the housekeeper** -- a fresh model invocation after each session, - **the housekeeper** -- a fresh inferencer invocation after each session,
reading the transcript and the rings; emits a manifest. Judgment, reading the transcript and the rings; emits a manifest. Judgment,
never clerical work; never plays, never edits files. Its prompt never clerical work; never plays, never edits files. Its prompt
(housekeeper.md) is substrate-internal and never exposed. (housekeeper.md) is substrate-internal and never exposed.
- **the curator** -- the one-shot inferencer invocation at refine,
labeling the battery's adjudicated results into the presentation
layer. Strictly validated; a failure falls back to the machine
list.
- **the bookkeeper** -- PARKED, unbuilt: the housekeeper's
arithmetic sibling, computing the sheet's deltas from the
setting's rules prose. Sheet-only authority, per-package opt-in.
- **the clerk** -- `tool/memory.mjs`: validates, applies, renders, - **the clerk** -- `tool/memory.mjs`: validates, applies, renders,
dumps. Fails loudly, never drifts silently. Code, never a model. 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 story state
@@ -103,8 +152,8 @@ e
character, ring-b, ring-a. Session-specific: the craft files are character, ring-b, ring-a. Session-specific: the craft files are
the session's own frozen copies (from the package for session one, the session's own frozen copies (from the package for session one,
from the previous session afterwards, editable during dormancy). from the previous session afterwards, editable during dormancy).
Everything in it is inspectable read-only in the SPA; agent prompts Everything in it is inspectable read-only in the SPA; the internal
never enter it. models' prompts never enter it.
- **the carryover** -- every session's opening material, one format - **the carryover** -- every session's opening material, one format
(`carryover.jsonl`, raw log events). Session one's is authored in (`carryover.jsonl`, raw log events). Session one's is authored in
the package: her opening, the events before the story's first live the package: her opening, the events before the story's first live
@@ -173,7 +222,7 @@ e
renders it as if she had stated it -- mutated in place at her renders it as if she had stated it -- mutated in place at her
newest blocks. The log keeps her words verbatim; the raw surfaces newest blocks. The log keeps her words verbatim; the raw surfaces
show the record; the model sees only state. show the record; the model sees only state.
- **the sheet** -- the GM's ledger of arbitrated run state (GM, - **the sheet** -- the GM's ledger of arbitrated run state (developer,
2026-11-17): schemaless JSON inside a `<sheet>` block, the 2026-11-17): schemaless JSON inside a `<sheet>` block, the
setting's prose gives the fields meaning. The second state setting's prose gives the fields meaning. The second state
channel, split from status/agenda by truth model: those are channel, split from status/agenda by truth model: those are
@@ -210,7 +259,7 @@ e
run). Re-enterable during dormancy: every run re-copies and run). Re-enterable during dormancy: every run re-copies and
re-applies, and hand edits made in between are overwritten. The re-applies, and hand edits made in between are overwritten. The
dry-run replay changes nothing. The only word for it (2026-11-14, dry-run replay changes nothing. The only word for it (2026-11-14,
GM): the old shorthand "the wrap" is retired. developer): the old shorthand "the wrap" is retired.
- **the log** -- the housekeeping record, `sessions/<n>/log/<pass>.md`: - **the log** -- the housekeeping record, `sessions/<n>/log/<pass>.md`:
what the housekeeper declared, cross-checked against the dump diff. what the housekeeper declared, cross-checked against the dump diff.
The `events` table is the journal underneath; both are write-only for The `events` table is the journal underneath; both are write-only for
@@ -230,7 +279,7 @@ e
- **$TOKENs / vars** -- template variables the prompts declare - **$TOKENs / vars** -- template variables the prompts declare
themselves; setup collects them; the run's `settings.vars` holds themselves; setup collects them; the run's `settings.vars` holds
the answers. the answers.
- **deltas** -- RETIRED (2026-11-16, GM): the diff verbs - **deltas** -- RETIRED (2026-11-16, developer): the diff verbs
(`<lost>`/`<gained>` on the status, `<add>`/`<drop>` on the (`<lost>`/`<gained>` on the status, `<add>`/`<drop>` on the
agenda) are gone with the full-block protocol -- she emits whole agenda) are gone with the full-block protocol -- she emits whole
lists now, and the miss-conflicts (bad drop indexes, not-in-status lists now, and the miss-conflicts (bad drop indexes, not-in-status
@@ -239,7 +288,7 @@ e
- **conflict** -- the self-heal message: a `<conflict>` block sent as - **conflict** -- the self-heal message: a `<conflict>` block sent as
its own GM-side message, clean of prose; the model adjusts in the its own GM-side message, clean of prose; the model adjusts in the
same exchange. Capped at 3 heals per turn. Conflicts stay in the same exchange. Capped at 3 heals per turn. Conflicts stay in the
contwin (GM, 2026-11-18) -- a mistake remains visible so it is not contwin (developer, 2026-11-18) -- a mistake remains visible so it is not
made again -- which is why every conflict is self-contained: it made again -- which is why every conflict is self-contained: it
describes its problem in full, quoting the offending emission, describes its problem in full, quoting the offending emission,
because the block it answers strips from the view and an old because the block it answers strips from the view and an old
@@ -256,7 +305,7 @@ e
in the session log: no model-facing surface ever renders them (she in the session log: no model-facing surface ever renders them (she
must not remember roads not taken; the housekeeper must not file must not remember roads not taken; the housekeeper must not file
fiction-that-never-was). fiction-that-never-was).
- **roll** -- RETIRED (2026-11-15, GM): the model-facing dice tool is - **roll** -- RETIRED (2026-11-15, developer): the model-facing dice tool is
gone; chance in play is variant literature. The clerk's `pick` gone; chance in play is variant literature. The clerk's `pick`
survives as the GM's drafting dice -- CLI-only, never model-facing. survives as the GM's drafting dice -- CLI-only, never model-facing.
- **the reminder** -- `reminder.md`: the turn-composition procedure, - **the reminder** -- `reminder.md`: the turn-composition procedure,
@@ -300,7 +349,7 @@ e
- **the meter** -- the context meter: prompt-token usage of the last - **the meter** -- the context meter: prompt-token usage of the last
call against the contwin; loud past 85%. call against the contwin; loud past 85%.
- **contwin** -- the context window, under its own name (coined - **contwin** -- the context window, under its own name (coined
2026-11-14, GM: the word "window" is beyond overloaded, so even 2026-11-14, developer: the word "window" is beyond overloaded, so even
this use got renamed). The config key in server.json is `contwin` this use got renamed). The config key in server.json is `contwin`
(`contextWindow` is still accepted). (`contextWindow` is still accepted).
- **mock mode** -- `--mock`: the scripted fake model that proves the - **mock mode** -- `--mock`: the scripted fake model that proves the
@@ -324,7 +373,7 @@ e
render to a model. render to a model.
- Ids are anonymous hex; display is "Package / PC"; run ids carry no - Ids are anonymous hex; display is "Package / PC"; run ids carry no
facts, so nothing ever needs renaming. facts, so nothing ever needs renaming.
- **ASCII bytes, everywhere (2026-11-15, GM).** No unicode in any - **ASCII bytes, everywhere (2026-11-15, developer).** No unicode in any
tracked file -- the encoding is the problem, never the visual: tracked file -- the encoding is the problem, never the visual:
glyphs that must render travel ASCII-safe (HTML entities, `\u` glyphs that must render travel ASCII-safe (HTML entities, `\u`
escapes in JS), never verbatim. Punctuation conventions: the em escapes in JS), never verbatim. Punctuation conventions: the em
@@ -332,7 +381,7 @@ e
middle dot renders via `\u00b7`. Gitignored state (runs/, state/, middle dot renders via `\u00b7`. Gitignored state (runs/, state/,
server.json) is per-deployment and exempt. Enforced by server.json) is per-deployment and exempt. Enforced by
`test/check-repo.mjs`. `test/check-repo.mjs`.
- **No text-mutating CSS (2026-11-15, GM).** Rendered text must - **No text-mutating CSS (2026-11-15, developer).** Rendered text must
match authored text -- the testing trap is any divergence. Banned: match authored text -- the testing trap is any divergence. Banned:
`text-transform` (any value, inline styles included), generated `text-transform` (any value, inline styles included), generated
content (`content:`, `::before`/`::after` included), caps font content (`content:`, `::before`/`::after` included), caps font
@@ -347,7 +396,7 @@ e
GM-private, and a line naming contwin may gloss it as the context GM-private, and a line naming contwin may gloss it as the context
window. The first run caught real drift: README said "a 256K-class window. The first run caught real drift: README said "a 256K-class
window" (now contwin). window" (now contwin).
- Renames are clean (2026-11-14, GM: no legacy hauling). No - Renames are clean (2026-11-14, developer: no legacy hauling). No
dual-accept shims: a renamed thing accepts only its new name, old dual-accept shims: a renamed thing accepts only its new name, old
data migrates once (the clerk normalizes on open), and anything data migrates once (the clerk normalizes on open), and anything
left on the old name fails loudly. Upstream words (the DOM's left on the old name fails loudly. Upstream words (the DOM's
@@ -355,10 +404,10 @@ e
## Ruled renames ## Ruled renames
- **paper -> status** (2026-11-14, GM). One name for the thing on - **paper -> status** (2026-11-14, developer). One name for the thing on
every surface a model or human reads: the prompts (invariants.md, every surface a model or human reads: the prompts (invariants.md,
housekeeper.md, the rendered status view), the SPA, the docs' housekeeper.md, the rendered status view), the SPA, the docs'
living prose. Amended later the same day (GM: "I don't like living prose. Amended later the same day (developer: "I don't like
hauling legacy around" -- renames are clean, no dual-accept hauling legacy around" -- renames are clean, no dual-accept
shims): the machinery renamed too -- the `status`/`status-apply`/ shims): the machinery renamed too -- the `status`/`status-apply`/
`status-set`/`status-ingest` verbs (the run summary command is `status-set`/`status-ingest` verbs (the run summary command is
@@ -366,7 +415,7 @@ e
`detail.status` field, the `status-*` journal ops. Old data `detail.status` field, the `status-*` journal ops. Old data
migrates once, in the clerk; historical records (resolved migrates once, in the clerk; historical records (resolved
QUESTIONS entries, build logs) keep the vocabulary of their day. QUESTIONS entries, build logs) keep the vocabulary of their day.
- **window -> session** (2026-11-14, GM). Reasons: to a user, - **window -> session** (2026-11-14, developer). Reasons: to a user,
"closing a window" means exiting the program; and "context window" "closing a window" means exiting the program; and "context window"
already owns the word here -- one project, one window, and it is already owns the word here -- one project, one window, and it is
the context window (that last carve-out was superseded later the the context window (that last carve-out was superseded later the
@@ -379,7 +428,7 @@ e
logs carry `window`-kind notes (readers accept both), pre-rename logs carry `window`-kind notes (readers accept both), pre-rename
manifests carry the `window` key (the clerk dual-accepts), and manifests carry the `window` key (the clerk dual-accepts), and
pre-rename dumps embed their own old schema and self-migrate. pre-rename dumps embed their own old schema and self-migrate.
- **the window machinery renamed too** (2026-11-14, GM: "invisibles - **the window machinery renamed too** (2026-11-14, developer: "invisibles
gone as well"). What survived the first sweep as private plumbing gone as well"). What survived the first sweep as private plumbing
is renamed like everything else we own: element ids is renamed like everything else we own: element ids
`session-info`/`session-open`, the route `POST /sessions`, the `session-info`/`session-open`, the route `POST /sessions`, the
@@ -388,17 +437,17 @@ e
rename migration, data-preserving). Words we do not own are rename migration, data-preserving). Words we do not own are
consumed from upstream as-is: the DOM's `window`, the OS's consumed from upstream as-is: the DOM's `window`, the OS's
window. window.
- **context window -> contwin** (2026-11-14, GM). The word "window" - **context window -> contwin** (2026-11-14, developer). The word "window"
is retired entirely -- even the context window gets its own name, is retired entirely -- even the context window gets its own name,
so nothing in the project says "window" on any surface. The config so nothing in the project says "window" on any surface. The config
key is `contwin`; the old `contextWindow` key is dual-accepted so key is `contwin`; the old `contextWindow` key is dual-accepted so
existing deployments keep booting. Same coinage pattern, later the existing deployments keep booting. Same coinage pattern, later the
same day: the carry's mechanism is the **slidwin** (2026-11-15, same day: the carry's mechanism is the **slidwin** (2026-11-15,
GM) -- the migrating live range across session boundaries. GM) -- the migrating live range across session boundaries.
- **wrap -> housekeeping** (2026-11-14, GM). "Housekeeping" is the - **wrap -> housekeeping** (2026-11-14, developer). "Housekeeping" is the
only word; the shorthand "the wrap" is retired from strings and only word; the shorthand "the wrap" is retired from strings and
living prose alike. living prose alike.
- **turn-0 -> the carryover** (2026-11-15, GM). The opening beat was - **turn-0 -> the carryover** (2026-11-15, developer). The opening beat was
never really one turn: the package now ships `carryover.jsonl` -- a never really one turn: the package now ships `carryover.jsonl` -- a
sequence of log events, the same format every session's carryover sequence of log events, the same format every session's carryover
uses, ending however the author chooses (her turn means the GM uses, ending however the author chooses (her turn means the GM
@@ -407,12 +456,27 @@ e
described her). One canonical format; the turn-0 machinery (the described her). One canonical format; the turn-0 machinery (the
file, the send-as-first-GM-turn path, status-ingest) is deleted, file, the send-as-first-GM-turn path, status-ingest) is deleted,
never dual-accepted. never dual-accepted.
- **seed -> memory.json** (2026-11-15, GM). The name must say - **seed -> memory.json** (2026-11-15, developer). The name must say
memory-only on its face: the file is the mock session-0 memory-only on its face: the file is the mock session-0
housekeeping manifest, housekeeper vocabulary, applied at run housekeeping manifest, housekeeper vocabulary, applied at run
creation through the standard apply path. The seed verb dissolves creation through the standard apply path. The seed verb dissolves
(creation applies it; "the run already has its rings" is the whole (creation applies it; "the run already has its rings" is the whole
of re-apply refusal), and "seed" retires from living prose. of re-apply refusal), and "seed" retires from living prose.
- **agent -> the named seats** (2026-11-19, developer). The word was
doing too many jobs at once -- the assistant, the housekeeper, the
curator, a hypothetical status-keeper, all collapsed into one
ambiguous noun. The roles inventory names every seat; living prose
says the name. "Agent" retires from the substrate exactly like
"window" did: lint-banned in rule 4, the filename AGENTS.md
consumed as-is ("Windows" the OS is the precedent), historical
records keeping their day's words.
- **LLM -> inferencer** (2026-11-19, developer). The seats are named
(the player, the housekeeper, the curator, the assistant); the
class word for all of them together is "inferencer(s)". "Model"
survives as the machinery's noun -- a registry entry, a provider's
listed model, the model box -- never a seat: a model is what the
registry lists, an inferencer is who a seat is. "LLM" retires
from the substrate, lint-banned beside "agent".
## Open naming questions ## Open naming questions
+100 -11
View File
@@ -9,6 +9,96 @@ file is the "where did we leave off" map.
## Where we are ## Where we are
- **The roles inventory is BUILT (2026-11-19, GM-designed in
conversation): every human and LLM seat named, the repo swept to
it.** DICTIONARY's "The people and the models" section is now the
inventory: six human roles (the developer, the deployment
operator, the deployment user, the package author, a run's GM --
the same person the machinery records as the run's owner, one
role two names, never split -- and the reader, defined by the
act, membership-free: on-platform any signed-in user, off-platform
anyone the story text reaches) and the LLM roles (the assistant,
the player, the housekeeper, the curator, the clerk -- code,
never a model -- and the bookkeeper, parked). The mappings the
design conversation pinned: the package author is an off-platform
seat (authorship travels with the files; the machinery sees only
the publisher as the package's owner); hats stack, seats don't
(the op can also be a run's GM); the GM seat is per run (a fork
creates a second one); the developer and the assistant sit
upstream of every deployment. The naming convention, stated in
AGENTS and DICTIONARY both: "GM" always means a run's GM,
everywhere; ruling attributions name the developer; I am "the
assistant"; the op stays "the op." And the role line that is
never crossed (developer, 2026-11-19): the assistant is NOT the
player -- player-facing instructions are for the assistant to
understand how the player would interpret them, never to follow.
The sweep: 125 ruling attributions rewritten across living prose
and code comments ("(GM, date)" in every spelling, date-first and
wrapped forms included), AGENTS.md fully re-voiced (the header
rewritten, "the agent" -> "the assistant", the developer-meaning
prose fixed line by line), README's "invited players" -> "invited
users" and its four stragglers, QUESTIONS' #19c line, the gm.md
carve-out wording in AGENTS and the lint (the file is the run
GM's private file; the flagging target is the developer; the
non-editor is the assistant). Deliberately untouched: the root
prompts and every model-facing string (GM there was always the
run's GM), the packages' fiction, DECISIONS/HANDOFF/ROADMAP as
records -- DECISIONS gained one dated header note mapping the old
usage instead of a rewrite (the record is the record). And the
word "agent" retired with the same stroke (developer, 2026-11-19):
lint-banned in rule 4 exactly like "window" -- lowercase
/\bagents?\b/ fails, the filename AGENTS.md consumed as-is
("Windows" the OS the precedent) -- the living prose fixes were
the exposure rule's "internal agent prompts" -> "the internal
models' prompts" (AGENTS, README's layout, DICTIONARY's bundle
entry, the lint's own rule-8 comment) and the bookkeeper's
"arithmetic-sibling agent" -> "the bookkeeper"; DICTIONARY's
renames section carries the retirement entry. Then the class word
(developer, same day): "inferencer(s)" for the model seats
together, "LLM" lint-banned beside "agent" -- and "model" kept as
the machinery's noun, a registry entry, never a seat (a model is
what the registry lists, an inferencer is who a seat is). The
sweep that followed: 25 fixes (the exposure rule's "internal
inferencers", README's "inference key" and its Roles section
re-voiced -- "the player = one PC", "the housekeeper = a separate
inferencer invocation" -- the #22 attribution comments in the
three call sites, the prompts' one "player-model" in
housekeeper.md, the inventory's own heading "Inferencer roles").
The runtime log markers ("llm <model> u:<id>") are mechanical
records and keep their spelling.
Then the duties audit (developer, 2026-11-19, along the what-hats-
do lines: the developer maintains the repo and is the system
packages author by consequence; the op maintains a deployment; a
user's only reach is the API; a run's GM maintains their run).
Found and fixed: README's Housekeeping section was pre-split era
text -- "every housekeeping pass should end in a commit" and
"confess in the commit message" (runs/ is gitignored, the
developer's commit duty assigned to the run flow), the dead
packages/<story>/dumps and packages/<story>/db paths (the dump is
per-session under runs/), "canon/ stays committed", and
"single-human" (multiuser since 2026-11-14) -- rewritten to the
current paths with the audit's hat named (the dump cross-check is
the operator side's; the GM reviews through the server). The
CLI-attributed-to-the-GM lines now say what they are:
deployment-side filesystem reach, --gm-authorized writes,
whoever's hand runs it (the protocol passage, quickstart step 7,
which also dropped its "commit", the booting intro names its hat
switches, step 5 names the API twin). "The host" -> "the op" in
the pitch. One mechanical fiction PARKED on the ROADMAP deferred
list instead of fixed: the tiers table's "until the GM unlocks it
in the story" promises a records-unlock channel that does not
exist (records is a creation-time settings bool, settings.json is
read-only in the API) -- build the channel or fix the promise,
later. Verified clean by the audit: the notepad (ONE notepad --
the run's gm.md, owner-writable, seeded from the package copy),
the op's non-reader boundary, every provider act, the spec
attributions, the reader, the prompts.
The
developer's operator queue line is theirs to strike. Verified:
typecheck green both programs, check-repo clean, a final grep
confirming every remaining "GM" in the sweep scope is a protocol
term or a roles-inventory mention.
- **The provider-flow round is BUILT and verified (2026-11-19, - **The provider-flow round is BUILT and verified (2026-11-19,
GM-designed in conversation): discovery is the probe, the key GM-designed in conversation): discovery is the probe, the key
path opens only on refusal, and the retry story is settled path opens only on refusal, and the retry story is settled
@@ -257,8 +347,8 @@ file is the "where did we leave off" map.
restraints as income-producing assets); still missing: the opening restraints as income-producing assets); still missing: the opening
turn, real memory seeds, a gm.md (the task stream, the facility's turn, real memory seeds, a gm.md (the task stream, the facility's
voice, the release-target ruling) -- its current seeds are voice, the release-target ruling) -- its current seeds are
la-caramba leftovers. `packages/detention/` and la-caramba leftovers. `packages/detention/` is WIP, untouched;
`packages/template/` are also WIP, untouched. template and box are committed (`e60fd63`).
- **The deployment thread (2026-11-18): the box is oriented, the - **The deployment thread (2026-11-18): the box is oriented, the
story is ruled, the build has not started.** A burble VM (Debian story is ruled, the build has not started.** A burble VM (Debian
13, single-core, 4G swap live; connection specifics in the 13, single-core, 4G swap live; connection specifics in the
@@ -276,7 +366,7 @@ file is the "where did we leave off" map.
via nvm at the current stable branch; the pipeline is a gitea via nvm at the current stable branch; the pipeline is a gitea
runner on the box, stage-and-signal, no test gates in it (the runner on the box, stage-and-signal, no test gates in it (the
smoke needs clean state, which the box can never give). The smoke needs clean state, which the box can never give). The
The provider round (above) settled the scaffold's provider provider round (above) settled the scaffold's provider
story: the o/f singleton ships, auto-added and discovered on the story: the o/f singleton ships, auto-added and discovered on the
empty provider list -- playable with zero secrets. Unverified: empty provider list -- playable with zero secrets. Unverified:
whether the free models pass the discovery battery's tool probe whether the free models pass the discovery battery's tool probe
@@ -287,11 +377,10 @@ makes the parked short-list rule suddenly relevant).
temp pid file; sessions rebuilt for Chloe and Irene at boot). temp pid file; sessions rebuilt for Chloe and Irene at boot).
state/ holds the refined registry (per-provider shape on disk, state/ holds the refined registry (per-provider shape on disk,
migrated in the no-legacy pass) and the provider config migrated in the no-legacy pass) and the provider config
('llm-exan-tech', default glm-5.3 at max). Five commits await ('llm-exan-tech', default glm-5.3 at max). Seven commits await
the GM's push (`bbaf336`, `5279dd3`, `eefb721`, `53f992a`, the developer's push (`bbaf336`, `5279dd3`, `eefb721`, `53f992a`,
`14b9b01` -- the ssh key takes a passphrase, pushes are the `14b9b01`, `e60fd63`, and this round -- the ssh key takes a
GM's), with the provider round and the no-legacy pass staged passphrase, pushes are the developer's).
beside them.
## Immediate next steps, in order ## Immediate next steps, in order
@@ -313,9 +402,9 @@ beside them.
box-side install (nvm + current stable node, runner box-side install (nvm + current stable node, runner
registration). The first start under multiuser rides this: the registration). The first start under multiuser rides this: the
op's bootstrap-invite claim happens ON the box. op's bootstrap-invite claim happens ON the box.
2. **The fresh run.** Create it from la caramba 2. **The fresh run.** Create it from la caramba (re-edit its
its files), pick the model and the effort at create time, and files as desired), pick the model and the effort at create time, and
play -- on the debug server or the deployment, the GM's choice. play -- on the debug server or the deployment, the developer's choice.
It carries everything new at once: the 2026-11-17 prompt set's It carries everything new at once: the 2026-11-17 prompt set's
first live test (the audience doctrine, the typography rule, first live test (the audience doctrine, the typography rule,
the no-echo teaching), the reminder's checked-action metrics, the no-echo teaching), the reminder's checked-action metrics,
+1 -1
View File
@@ -10,7 +10,7 @@ DICTIONARY.md, or the prompts. Tiered by urgency, FIFO within a tier.
### 19c. The seed's voice register -- OPEN, DEFERRED ### 19c. The seed's voice register -- OPEN, DEFERRED
The GM may revisit later; non-blocking, since the seed copy stays The developer may revisit later; non-blocking, since the seed copy stays
editable until the first session-open applies it. The rest of #19 is editable until the first session-open applies it. The rest of #19 is
settled (DECISIONS #19). settled (DECISIONS #19).
+52 -38
View File
@@ -26,8 +26,8 @@ must weigh stays close, and the rings stay legible.
The memory test is not the end product. It exists to arrive at a usable The memory test is not the end product. It exists to arrive at a usable
roleplaying harness -- something people can enjoy making long stories roleplaying harness -- something people can enjoy making long stories
on. The end shape: clone and run it yourself, or get an invite to a on. The end shape: clone and run it yourself, or get an invite to a
running instance. The LLM key lives on the backend, so invited players running instance. The inference key lives on the backend, so invited users
get the functionality without the host disclosing secrets and without get the functionality without the op disclosing secrets and without
bringing their own model. Correspondingly: this repo ships code and bringing their own model. Correspondingly: this repo ships code and
authored content only -- no run state, and never a secret in cleartext authored content only -- no run state, and never a secret in cleartext
(the config pattern is a committed example plus a gitignored real (the config pattern is a committed example plus a gitignored real
@@ -38,10 +38,10 @@ housekeeping job, and SPA -- see `node server/main.mjs` and open
## Roles ## Roles
- **Human = the GM.** The world, every NPC, all consequences, all retcons. - **Human = the GM.** The world, every NPC, all consequences, all retcons.
Runs on organic memory -- no notes. The model's canon files are the prosthesis. Runs on organic memory -- no notes. The canon files are the prosthesis.
- **Player-model = one PC.** Inner life, voice, choices. Nothing else. Reads - **The player = one PC.** Inner life, voice, choices. Nothing else. Reads
memory, never writes it. memory, never writes it.
- **Housekeeper-model = a separate invocation**, fresh context, run after each - **The housekeeper = a separate inferencer invocation**, fresh context, run after each
session. Reads the transcript and the rendered rings; emits a **manifest** of session. Reads the transcript and the rendered rings; emits a **manifest** of
semantic operations. Judgment, no clerical work. semantic operations. Judgment, no clerical work.
- **`tool/memory.mjs` = the clerk.** Validates and applies manifests, - **`tool/memory.mjs` = the clerk.** Validates and applies manifests,
@@ -65,7 +65,7 @@ or otherwise PC ever needs support, this is the line to revisit.
A deployment is one clone plus `state/` and `runs/` (all gitignored A deployment is one clone plus `state/` and `runs/` (all gitignored
state) and an optional `server.json` -- bind and contwin only; the state) and an optional `server.json` -- bind and contwin only; the
provider entities live in `state/config.json`, server-written, provider entities live in `state/config.json`, server-written,
SPA-managed, zero manual file edits. The LLM key lives on the backend SPA-managed, zero manual file edits. The inference key lives on the backend
need neither the key nor a local clone. Identity is a token, nothing need neither the key nor a local clone. Identity is a token, nothing
else: no usernames, no passwords, no external IDPs. A single-use else: no usernames, no passwords, no external IDPs. A single-use
invite code -- spent codes are recorded forever and rejected loudly on invite code -- spent codes are recorded forever and rejected loudly on
@@ -105,7 +105,7 @@ forking makes that cheap -- stories outlive identities by design.
- **Models are per-run picks of full specs.** A pick is - **Models are per-run picks of full specs.** A pick is
{provider, model, effort} -- there is no unset effort (it {provider, model, effort} -- there is no unset effort (it
substantially changes inference quality, so it is a property of the substantially changes inference quality, so it is a property of the
pick, GM 2026-11-18), and the per-run sampling-knob layer is pick, developer 2026-11-18), and the per-run sampling-knob layer is
retired: params are per-turn, the <mind> verb's alone. The retired: params are per-turn, the <mind> verb's alone. The
provider's default pair (the op's selection, also the refine provider's default pair (the op's selection, also the refine
curator) pre-selects the create flow; a run's owner overrides curator) pre-selects the create flow; a run's owner overrides
@@ -115,7 +115,7 @@ forking makes that cheap -- stories outlive identities by design.
from the config, a model gone from its registry, a model the from the config, a model gone from its registry, a model the
battery disqualified -- the run blocks with the note naming what battery disqualified -- the run blocks with the note naming what
died until the GM sets it up again. died until the GM sets it up again.
- Every logged LLM call records the acting user. Quotas and limits are - Every logged inferencer call records the acting user. Quotas and limits are
an extension point, not built. an extension point, not built.
- All dates and times are UTC everywhere. No time zones, ever. - All dates and times are UTC everywhere. No time zones, ever.
@@ -151,7 +151,11 @@ Through the CLI below, or through the SPA: home -> new run -> pick a
package -> edit the copied prompts (project prompts inspectable package -> edit the copied prompts (project prompts inspectable
read-only alongside) -> **start** -- which takes dormant session one read-only alongside) -> **start** -- which takes dormant session one
live: the carryover is linted, the bundle freezes, the opening live: the carryover is linted, the bundle freezes, the opening
consumes into the log, in one action. consumes into the log, in one action. The steps below walk every hat
on one head -- the package author's files (1-4), the deployment-side
create (5), the GM's start (6); on a real deployment they split: a
user drafts and creates through the SPA, and the package files are
the author's, wherever they sit.
1. **Backdrop** -- write `packages/<story>/backdrop.md`: the world as everyone 1. **Backdrop** -- write `packages/<story>/backdrop.md`: the world as everyone
in it knows it. Public knowledge, general setting. Neither memory nor in it knows it. Public knowledge, general setting. Neither memory nor
@@ -187,7 +191,9 @@ consumes into the log, in one action.
one truth of a draft; afterwards it is inert provenance, one truth of a draft; afterwards it is inert provenance,
read-only. Pre-existing records are not its business -- file those read-only. Pre-existing records are not its business -- file those
ahead of play with `file --gm`. ahead of play with `file --gm`.
5. **Create the run** -- `node tool/memory.mjs create <story> <pc-name>`: 5. **Create the run** -- `node tool/memory.mjs create <story> <pc-name>`
(the API create route wraps the same clerk call; through the SPA
it is home -> new run):
the package is copied into `runs/<id>/` -- the craft prompt the package is copied into `runs/<id>/` -- the craft prompt
(`handbook.md`) rides along, battery included -- landing where it (`handbook.md`) rides along, battery included -- landing where it
lives from now on: the bundle files and the session-0 artifacts in lives from now on: the bundle files and the session-0 artifacts in
@@ -331,8 +337,10 @@ consumes into the log, in one action.
reception -- only the picked one's blocks apply, and the unpicked reception -- only the picked one's blocks apply, and the unpicked
rest never render on any model-facing surface. Records work rest never render on any model-facing surface. Records work
travels the tools (`records_search`/`file`/`amend`/`discard`) when travels the tools (`records_search`/`file`/`amend`/`discard`) when
the run provides them; the CLI equivalents remain for the GM (`--gm` the run provides them; the CLI equivalents remain the
marks GM-authorized writes). The full play protocol -- format, deployment-side path -- `--gm` marks the writes as GM-authorized,
and the CLI itself is filesystem reach, whoever's hand runs it
(the op's, or the developer's on a dev box). The full play protocol -- format,
one-thing-per-turn, thoughts off the page, intent-form, immersion one-thing-per-turn, thoughts off the page, intent-form, immersion
over realism -- lives in `system.md`, `invariants.md`, and over realism -- lives in `system.md`, `invariants.md`, and
`handbook.md`. Through the server, the model's OOC is the `ask_gm` `handbook.md`. Through the server, the model's OOC is the `ask_gm`
@@ -348,7 +356,7 @@ consumes into the log, in one action.
-- thinking never crosses the wire, variant turns carry only the -- thinking never crosses the wire, variant turns carry only the
picked one, and the opening carryover renders as ordinary history picked one, and the opening carryover renders as ordinary history
(during dormancy the carryover endpoint previews it the same way). (during dormancy the carryover endpoint previews it the same way).
4. **Close a session:** just stop. No in-band ritual; the player-model has no 4. **Close a session:** just stop. No in-band ritual; the player has no
end-of-session duties. The stop moves the session's tail into the end-of-session duties. The stop moves the session's tail into the
next dormant session's carryover, freezes this one, and runs next dormant session's carryover, freezes this one, and runs
housekeeping over what remains. housekeeping over what remains.
@@ -365,8 +373,11 @@ consumes into the log, in one action.
`sessions/<n+1>/log/<n>.md`, re-renders the views. A rejected manifest changes `sessions/<n+1>/log/<n>.md`, re-renders the views. A rejected manifest changes
nothing and says why. The server's pass rebases first -- each run nothing and says why. The server's pass rebases first -- each run
re-copies the finished session's db, so re-runs never double-apply. re-copies the finished session's db, so re-runs never double-apply.
7. **Review the log, veto or edit as desired, commit.** GM edits go through 7. **Review the log, veto or edit as desired.** Memory edits go
`insert` / `delete` / `revive` commands. through the `insert` / `delete` / `revive` commands -- the CLI is
deployment-side filesystem reach, its writes `--gm`-authorized; a
run's GM without that reach reviews through the server instead
(the housekeeping log, the rendered rings, the story).
## The memory model ## The memory model
@@ -527,9 +538,9 @@ minors, gratuitous violence. These live in `system.md`; edit them there.
## Housekeeping ## Housekeeping
This directory is a git repo. Every housekeeping pass should end in a commit. The **primary audit surface is the per-session dump**
The **primary audit surface is `packages/<story>/dumps/memory.sql`** -- the canonical dump: (`runs/<id>/sessions/<n>/dumps/memory.sql`): id-ordered, one row per
id-ordered, one row per line, auto-written by every mutation. Because the line, auto-written by every mutation. Because the
ordering is by id, diffs are position-stable -- a touch is one changed line, ordering is by id, diffs are position-stable -- a touch is one changed line,
a promotion is one changed line, an eviction is one changed line. Diffing a promotion is one changed line, an eviction is one changed line. Diffing
two consecutive dumps reconstructs exactly the operations that were applied, two consecutive dumps reconstructs exactly the operations that were applied,
@@ -539,20 +550,23 @@ Cross-check it against the session's log: the log is what the housekeeper
*declared*, the dump-diff is what *actually happened*. Any disagreement is *declared*, the dump-diff is what *actually happened*. Any disagreement is
either a tool bug or a hand edit -- and hand edits have a contract: all either a tool bug or a hand edit -- and hand edits have a contract: all
mutations go through the tool, so the dump never drifts. (If you ever poke mutations go through the tool, so the dump never drifts. (If you ever poke
the db with a sqlite browser, run `dump` afterwards and confess in the the db with a sqlite browser, run `dump` afterwards.) The dump is
commit message.) filesystem state, so this cross-check belongs to the deployment's
operator side; a run's GM reviews a pass through the server instead --
the housekeeping log, the rendered rings, the story.
The dump is restorable SQL and the **committed truth**; the binary The dump is restorable SQL; the binary `memory.db` (one per session,
`packages/<story>/db/memory.db` is a gitignored local cache -- fresh clone: copied forward at stop) is rebuilt from it by
`node tool/memory.mjs restore` (per run). The `canon/` views stay committed `node tool/memory.mjs restore` (per run). The `canon/` views stay as
as provenance -- exactly what the models were sent -- and `log/` + provenance -- exactly what the models were sent -- and `log/` +
`manifests/` remain the human-readable record. `manifests/` remain the human-readable record.
The housekeeper may be a different model than the player -- cheaper, or more The housekeeper may run a different model than the player -- cheaper, or more
pedantic, whatever housekeeping needs. The two prompts are independent. pedantic, whatever housekeeping needs. The two prompts are independent.
**Substrate:** `server/` -- a zero-dependency `node:http` service **Substrate:** `server/` -- a zero-dependency `node:http` service
(`node server/main.mjs [--mock]`), loopback, single-human, synchronous (`node server/main.mjs [--mock]`), multiuser (bearer-token
identities, the deployment section above), synchronous
JSON. Boot-rebuilds open sessions from the session logs on start; the JSON. Boot-rebuilds open sessions from the session logs on start; the
append-only jsonl is the truth, the live context is a view under append-only jsonl is the truth, the live context is a view under
policy (thinking never goes back, old tool results elide to stubs -- policy (thinking never goes back, old tool results elide to stubs --
@@ -599,14 +613,14 @@ the request returns with the question, the answer call resumes it,
and a refresh re-presents it after a restart. The old and a refresh re-presents it after a restart. The old
`tool/bridge.mjs` is deleted: it never went live, and the server `tool/bridge.mjs` is deleted: it never went live, and the server
reached mock-parity (2026-11-14). reached mock-parity (2026-11-14).
Config is self-healing state, not a hand-edited file (GM, 2026-11-18): Config is self-healing state, not a hand-edited file (developer, 2026-11-18):
the provider entities -- slug, baseUrl, optional key, the op's the provider entities -- slug, baseUrl, optional key, the op's
default model spec -- live in `state/config.json`, written only by default model spec -- live in `state/config.json`, written only by
the server, managed from the SPA's admin block. `server.json` the server, managed from the SPA's admin block. `server.json`
(gitignored, optional) is the static remainder: `bind` and `contwin` (gitignored, optional) is the static remainder: `bind` and `contwin`
(the context budget in tokens). No legacy config shapes are read: (the context budget in tokens). No legacy config shapes are read:
shape changes come with one-time migrations, not permanent tolerance shape changes come with one-time migrations, not permanent tolerance
(the no-legacy rule, GM, 2026-11-18). Boot always succeeds: a fresh clone with nothing comes (the no-legacy rule, developer, 2026-11-18). Boot always succeeds: a fresh clone with nothing comes
up serving and mints the superuser invite, and -- the self-heal up serving and mints the superuser invite, and -- the self-heal
rule, broadly: an error that can be mechanically fixed to a rule, broadly: an error that can be mechanically fixed to a
reasonable degree without requiring human input gets fixed -- the reasonable degree without requiring human input gets fixed -- the
@@ -617,7 +631,7 @@ fix) and running its discovery in the background. The list is never
empty in lifetime either: opencode/free is removable only while empty in lifetime either: opencode/free is removable only while
another provider stands. Custom providers add from the SPA taking another provider stands. Custom providers add from the SPA taking
only the endpoint (a slug and a baseUrl -- never a key): discovery only the endpoint (a slug and a baseUrl -- never a key): discovery
runs on add and IS the probe (GM, 2026-11-19). A working keyless runs on add and IS the probe (developer, 2026-11-19). A working keyless
listing never sees a key field; a recognizable auth refusal (401/403) listing never sees a key field; a recognizable auth refusal (401/403)
stands the provider broken and opens the key path -- the key rides stands the provider broken and opens the key path -- the key rides
the auth route, checked on reception, saved only on success, asked the auth route, checked on reception, saved only on success, asked
@@ -638,9 +652,9 @@ the server plus a fiction-first UI, a
GM console, and the housekeeping job runner -- and the GM console, and the housekeeping job runner -- and the
tool-calling part is the smallest component, because the provider does the tool-calling part is the smallest component, because the provider does the
structured emission and the clerk already speaks function-shaped. If structured emission and the clerk already speaks function-shaped. If
player-side status maintenance proves too costly for the player-model's player-side status maintenance proves too costly for the player's
attention, the fallback is a dedicated status-keeper agent reading attention, the fallback is a dedicated status-keeper invocation
transcripts -- same pattern as the housekeeper, smaller job. reading transcripts -- same pattern as the housekeeper, smaller job.
**Model discovery** is per provider, the op's acts from the SPA's **Model discovery** is per provider, the op's acts from the SPA's
admin block, and the registry it writes (`state/models.json`, one admin block, and the registry it writes (`state/models.json`, one
@@ -665,7 +679,7 @@ stand-in on a bad model day (the op gets no advice, not machine
advice). The curator's output is strictly validated; any failure advice). The curator's output is strictly validated; any failure
falls back to the machine list, so refine can never be blocked by a falls back to the machine list, so refine can never be blocked by a
bad model day. The battery's measured effortDefault is pre-fill and bad model day. The battery's measured effortDefault is pre-fill and
hint only -- nothing rides implicitly anymore (GM, 2026-11-18, hint only -- nothing rides implicitly anymore (developer, 2026-11-18,
amending 2026-11-16: with effort a property of the pick, the amending 2026-11-16: with effort a property of the pick, the
selection prompt pre-selects and the recommendation informs, no selection prompt pre-selects and the recommendation informs, no
silent layer). The adjudication cache (`state/refine-cache.json`) silent layer). The adjudication cache (`state/refine-cache.json`)
@@ -676,11 +690,11 @@ worse; reasoning effort substantially changes inference quality) --
so churn is cheap: discovery re-runs freely (opencode/free rotates so churn is cheap: discovery re-runs freely (opencode/free rotates
its models), and a refine that sees the same tuple reuses the its models), and a refine that sees the same tuple reuses the
cached verdict, refreshing it in place when it re-probes. Failures cached verdict, refreshing it in place when it re-probes. Failures
never cache (GM, 2026-11-19): a failure is the absence of a never cache (developer, 2026-11-19): a failure is the absence of a
measurement, not a measurement -- every refine re-probes the models measurement, not a measurement -- every refine re-probes the models
that failed the last one, so a transient error never pins a false that failed the last one, so a transient error never pins a false
verdict, and a model that fails for real costs one cheap probe per verdict, and a model that fails for real costs one cheap probe per
refine. No inference call retries itself (GM, 2026-11-19, the refine. No inference call retries itself (developer, 2026-11-19, the
universal rule): every call is user-initiated and every act has its universal rule): every call is user-initiated and every act has its
manual retry -- the send again, the housekeeping re-run, the refine manual retry -- the send again, the housekeeping re-run, the refine
button; a dead curator call lands the machine-label fallback, which button; a dead curator call lands the machine-label fallback, which
@@ -700,7 +714,7 @@ handbook.md the craft tier, shipped default -- copied into each
purview, time skips, content stance, hard limits) purview, time skips, content stance, hard limits)
housekeeper.md the housekeeping prompt -- repo-fed at housekeeping, never copied housekeeper.md the housekeeping prompt -- repo-fed at housekeeping, never copied
into a run, never user-facing: it prompts the into a run, never user-facing: it prompts the
internal housekeeper agent, never the bundle internal housekeeper, never the bundle
(system.md and invariants.md are bundle parts and (system.md and invariants.md are bundle parts and
are inspectable read-only in the SPA) are inspectable read-only in the SPA)
curator.md the registry curator prompt -- repo-fed at refine, curator.md the registry curator prompt -- repo-fed at refine,
@@ -717,7 +731,7 @@ DECISIONS.md the resolved record -- every answered question, kept
verbatim with its day's words; the citation numbers verbatim with its day's words; the citation numbers
DICTIONARY.md the terms of art -- the ruled names, one source of DICTIONARY.md the terms of art -- the ruled names, one source of
truth; a rename rules here first, then sweeps truth; a rename rules here first, then sweeps
AGENTS.md the agent's own working notes -- style lessons, gotchas, AGENTS.md the assistant's own working notes -- style lessons, gotchas,
state pointers state pointers
config.json the default package config.json the default package
package.json dev tooling only -- the runtime is zero-dependency; package.json dev tooling only -- the runtime is zero-dependency;
@@ -747,7 +761,7 @@ server/ the substrate: a zero-dependency node:http service
boot-resumes interrupted stops and reopens live boot-resumes interrupted stops and reopens live
sessions from the session logs on sessions from the session logs on
start; bootstraps the fresh-deployment superuser start; bootstraps the fresh-deployment superuser
invite; the request log and every LLM call carry the invite; the request log and every inferencer call carry the
acting user; four projections of the state: GET acting user; four projections of the state: GET
/session (raw, the audit surface), GET /table (the /session (raw, the audit surface), GET /table (the
play view), GET /story (the whole deliverable), play view), GET /story (the whole deliverable),
+10 -3
View File
@@ -6,10 +6,9 @@ be worked through one by one; statuses in caps, decisions dated.
## Operator's queue (don't edit, don't work on) ## Operator's queue (don't edit, don't work on)
- inventorise possible human roles (clear distinction between GM and the developer) - revisit the debug mode, hardcode loopback
- revisit the debug mode, hardcode loobpack
- "create new package" in SPA - "create new package" in SPA
- sec review - external sec review
- refactor to add first-class GM agent - refactor to add first-class GM agent
- entirely safe-for-work package. space? vault? - entirely safe-for-work package. space? vault?
- revisit what fetch does and SPA reactivity - revisit what fetch does and SPA reactivity
@@ -321,6 +320,14 @@ Status: DEFERRED.
create-time vs setup-time) is interface craft for a later pass. create-time vs setup-time) is interface craft for a later pass.
## Deferred tasks (ruled out of the dormant-session rework, 2026-11-15) ## Deferred tasks (ruled out of the dormant-session rework, 2026-11-15)
- **The records mid-run unlock (found in the 2026-11-19 duties
audit).** README's memory tiers table promises records access
"none -- until the GM unlocks it in the story", but no such
channel exists: `records` is a settings bool fixed at creation,
`settings.json` is read-only in the file API, and a mid-run flip
is an op filesystem edit during dormancy. Either build the unlock
channel (a dormancy-editable setting at minimum, an in-story
trigger at most) or fix the table's promise.
- **Save-as-package beyond drafts.** Today it fires only from - **Save-as-package beyond drafts.** Today it fires only from
never-started runs. Opening it to any dormancy raises unanswered never-started runs. Opening it to any dormancy raises unanswered
questions: which carryover rides (the dormant session's story tail questions: which carryover rides (the dormant session's story tail
+1 -1
View File
@@ -1,7 +1,7 @@
# Role # Role
You are the housekeeper. You did not play in this session; you read it after You are the housekeeper. You did not play in this session; you read it after
the fact. A player-model lived one character through the session below; the the fact. A player lived one character through the session below; the
human GM ran everything else. Your job is to maintain that character's human GM ran everything else. Your job is to maintain that character's
memory -- not by editing files, but by emitting a **manifest** of semantic memory -- not by editing files, but by emitting a **manifest** of semantic
operations. A script applies your manifest to the memory database; if a operations. A script applies your manifest to the memory database; if a
+1 -1
View File
@@ -190,7 +190,7 @@ const RECORD_TOOLS = [
/** @param {string} runId @returns {import('./shapes.mjs').ToolDef[]} */ /** @param {string} runId @returns {import('./shapes.mjs').ToolDef[]} */
export function toolList(runId) { export function toolList(runId) {
// Records are OFF for now (GM, 2026-11-17): their verbs mutate the // Records are OFF for now (developer, 2026-11-17): their verbs mutate the
// session db, and a rewind does not compensate db state -- until the // session db, and a rewind does not compensate db state -- until the
// verbs are rewind-compatible the manifest carries ask_gm alone, // verbs are rewind-compatible the manifest carries ask_gm alone,
// whatever the run's settings say. The CLI's --gm path is // whatever the run's settings say. The CLI's --gm path is
+1 -1
View File
@@ -39,7 +39,7 @@ function visibleBytes(lines, eff, i) {
return String(e.m.content ?? '').replace(STRIP_BLOCKS, '').length; return String(e.m.content ?? '').replace(STRIP_BLOCKS, '').length;
} }
if (e.m.role === 'user') { if (e.m.role === 'user') {
// conflict traffic stays in the contwin (GM, 2026-11-18) -- a // conflict traffic stays in the contwin (developer, 2026-11-18) -- a
// carried conflict renders in the new session, so it costs like // carried conflict renders in the new session, so it costs like
// the prose it now is // the prose it now is
return String(e.m.content ?? '').length; return String(e.m.content ?? '').length;
+12 -12
View File
@@ -1,7 +1,7 @@
// server/discovery.mjs -- model discovery: the per-provider registry. // server/discovery.mjs -- model discovery: the per-provider registry.
// //
// Two steps, both op acts from the SPA's admin block, both per // Two steps, both op acts from the SPA's admin block, both per
// provider (GM, 2026-11-18): // provider (developer, 2026-11-18):
// - discover: scrape one provider's surface (GET /models) -- API // - discover: scrape one provider's surface (GET /models) -- API
// metadata only, zero inference. Writes that provider's registry // metadata only, zero inference. Writes that provider's registry
// section, resetting it to preliminary; the other sections are // section, resetting it to preliminary; the other sections are
@@ -75,7 +75,7 @@ function bucket(tokens) {
* configured provider slug. A provider absent from the config has * configured provider slug. A provider absent from the config has
* no section (removal deletes it); a provider not yet discovered * no section (removal deletes it); a provider not yet discovered
* has none either. No legacy shapes are read (the no-legacy rule, * has none either. No legacy shapes are read (the no-legacy rule,
* GM, 2026-11-18): shape changes come with one-time migrations of * developer, 2026-11-18): shape changes come with one-time migrations of
* the file, not permanent tolerance in the reader. * the file, not permanent tolerance in the reader.
* @returns {?ModelRegistry} */ * @returns {?ModelRegistry} */
export function registry() { export function registry() {
@@ -220,7 +220,7 @@ async function thinkingTokens(ctx, slug, id, params) {
* (two samples, the battery's granularity). The default is the * (two samples, the battery's granularity). The default is the
* level with the highest observed mean -- `none` is never a * level with the highest observed mean -- `none` is never a
* candidate, it is the off switch. A model that shows no thinking, * candidate, it is the off switch. A model that shows no thinking,
* or that no level moves, gets null. Pre-fill and hint only (GM, * or that no level moves, gets null. Pre-fill and hint only (developer,
* 2026-11-18): with effort a property of the model pick, the * 2026-11-18): with effort a property of the model pick, the
* measured default never rides a turn implicitly -- it pre-selects * measured default never rides a turn implicitly -- it pre-selects
* the selection dropdown and informs the curator's recommendation. * the selection dropdown and informs the curator's recommendation.
@@ -305,7 +305,7 @@ async function probeOne(ctx, slug, m, say = () => {}, effort = '') {
/** The cache key: the full spec tuples on both sides -- the probed /** The cache key: the full spec tuples on both sides -- the probed
* model at the effort the deployment will actually send, and the * model at the effort the deployment will actually send, and the
* curator at its own spec. Reasoning effort substantially changes * curator at its own spec. Reasoning effort substantially changes
* inference quality (GM, 2026-11-18), so an entry adjudicated under * inference quality (developer, 2026-11-18), so an entry adjudicated under
* one tuple never speaks for another. * one tuple never speaks for another.
* @param {string} slug @param {string} id @param {string} effort @param {string} cm @param {string} ce @returns {string} */ * @param {string} slug @param {string} id @param {string} effort @param {string} cm @param {string} ce @returns {string} */
function cacheKey(slug, id, effort, cm, ce) { function cacheKey(slug, id, effort, cm, ce) {
@@ -373,9 +373,9 @@ async function curate(ctx, slug, probed, curatorSpec, user, onProgress = null) {
{ role: 'system', content: fs.readFileSync(CURATOR_PROMPT, 'utf8').trim() }, { role: 'system', content: fs.readFileSync(CURATOR_PROMPT, 'utf8').trim() },
{ role: 'user', content: JSON.stringify(facts, null, 2) }, { role: 'user', content: JSON.stringify(facts, null, 2) },
]); ]);
// attribution (#22): every LLM call names the acting user // attribution (#22): every inferencer call names the acting user
console.log(`${new Date().toISOString().slice(11, 19)} llm ${curatorSpec.model} u:${user?.id ?? '?'}`); console.log(`${new Date().toISOString().slice(11, 19)} inferencer ${curatorSpec.model} u:${user?.id ?? '?'}`);
// no automatic retries (GM, 2026-11-19): every inference call is // no automatic retries (developer, 2026-11-19): every inference call is
// user-initiated and every act has its manual retry -- the refine // user-initiated and every act has its manual retry -- the refine
// button again. A dead call lands the fallback, which is the // button again. A dead call lands the fallback, which is the
// designed outcome, not a degraded one // designed outcome, not a degraded one
@@ -409,7 +409,7 @@ async function curate(ctx, slug, probed, curatorSpec, user, onProgress = null) {
if (!list.length) return { list: [], note: 'fallback: the curator listed nothing', recommendation: null }; if (!list.length) return { list: [], note: 'fallback: the curator listed nothing', recommendation: null };
// the recommendation: intel only, strictly validated -- a passing // the recommendation: intel only, strictly validated -- a passing
// model at a ladder level. Anything else is no advice, never // model at a ladder level. Anything else is no advice, never
// machine advice (GM, 2026-11-18: on a bad model day the op gets // machine advice (developer, 2026-11-18: on a bad model day the op gets
// no recommendation, not a deterministic stand-in) // no recommendation, not a deterministic stand-in)
let recommendation = null; let recommendation = null;
const r = /** @type {{ model?: unknown, effort?: unknown }|null|undefined} */ (parsed.recommend); const r = /** @type {{ model?: unknown, effort?: unknown }|null|undefined} */ (parsed.recommend);
@@ -432,7 +432,7 @@ export function refine(ctx, slug, user) {
if (!provider) throw new HttpError(404, `no such provider: ${slug}`); if (!provider) throw new HttpError(404, `no such provider: ${slug}`);
const section = sectionOf(slug); const section = sectionOf(slug);
if (!section) throw new HttpError(409, `nothing to refine on '${slug}' -- run its discovery first`); if (!section) throw new HttpError(409, `nothing to refine on '${slug}' -- run its discovery first`);
// the curator IS the selected default (GM, 2026-11-18) -- refine // the curator IS the selected default (developer, 2026-11-18) -- refine
// requires the selection // requires the selection
const curatorSpec = provider.default; const curatorSpec = provider.default;
if (!curatorSpec) { if (!curatorSpec) {
@@ -445,7 +445,7 @@ export function refine(ctx, slug, user) {
// the meter: one step per model's battery (a cache hit closes its // the meter: one step per model's battery (a cache hit closes its
// step instantly -- it is a completion, not a wait) plus the // step instantly -- it is a completion, not a wait) plus the
// curator's two (thinking, writing). No step has a duration to // curator's two (thinking, writing). No step has a duration to
// guess at (GM, 2026-11-17): the bar moves only on real // guess at (developer, 2026-11-17): the bar moves only on real
// completions, the label names the call running now, and every // completions, the label names the call running now, and every
// completion lands a receipt line -- the lines survive the job, so // completion lands a receipt line -- the lines survive the job, so
// a rejected pass keeps its post-mortem // a rejected pass keeps its post-mortem
@@ -484,7 +484,7 @@ export function refine(ctx, slug, user) {
} else { } else {
probed.push(await probeOne(ctx, slug, m, (s) => say(`battery ${i + 1}/${scraped.length}: ${m.id} -- ${s}`), curatorSpec.effort)); probed.push(await probeOne(ctx, slug, m, (s) => say(`battery ${i + 1}/${scraped.length}: ${m.id} -- ${s}`), curatorSpec.effort));
fresh.push(probed[probed.length - 1]); fresh.push(probed[probed.length - 1]);
// failures never cache (GM, 2026-11-19): a failure is the // failures never cache (developer, 2026-11-19): a failure is the
// absence of a measurement, not a measurement -- the next // absence of a measurement, not a measurement -- the next
// refine always re-probes it, so the receipt says so // refine always re-probes it, so the receipt says so
line(`${m.id}: ${verdict(probed[probed.length - 1])}${probed[probed.length - 1].inference === false ? ' -- never cached, retried at every refine' : ''}`); line(`${m.id}: ${verdict(probed[probed.length - 1])}${probed[probed.length - 1].inference === false ? ' -- never cached, retried at every refine' : ''}`);
@@ -543,7 +543,7 @@ export function refine(ctx, slug, user) {
// the cache write-back: every final PASSING entry lands under // the cache write-back: every final PASSING entry lands under
// its key -- the labeled result, not the bare probe (the cached // its key -- the labeled result, not the bare probe (the cached
// entry IS the verdict, curation included), a re-probe refreshes // entry IS the verdict, curation included), a re-probe refreshes
// in place, the survivors persist. Failures never cache (GM, // in place, the survivors persist. Failures never cache (developer,
// 2026-11-19): only a measurement is worth keeping -- a failure // 2026-11-19): only a measurement is worth keeping -- a failure
// is retried at every refine until it stops being one // is retried at every refine until it stops being one
for (const [i, m] of models.entries()) { for (const [i, m] of models.entries()) {
+4 -4
View File
@@ -6,7 +6,7 @@
// carryover, freeze the finished one, then run the pass. With a // carryover, freeze the finished one, then run the pass. With a
// dormant latest it is the RE-RUN: rebase the dormant session's db // dormant latest it is the RE-RUN: rebase the dormant session's db
// from the finished one's frozen copy and apply a fresh manifest. // from the finished one's frozen copy and apply a fresh manifest.
// Re-enterable by ruling: a fresh LLM call each time (non- // Re-enterable by ruling: a fresh inferencer call each time (non-
// idempotent), but never double-applying -- the rebase resets, and // idempotent), but never double-applying -- the rebase resets, and
// hand edits made in between are overwritten (the armed button warns). // hand edits made in between are overwritten (the armed button warns).
// //
@@ -233,7 +233,7 @@ async function runPass(ctx, runId, n, user) {
async function callHousekeeper(ctx, runId, messages, user) { async function callHousekeeper(ctx, runId, messages, user) {
const meta = ctx.runMeta?.(runId) ?? /** @type {RunMeta} */ ({}); const meta = ctx.runMeta?.(runId) ?? /** @type {RunMeta} */ ({});
// the run's own housekeeper pick, else the player spec's provider's // the run's own housekeeper pick, else the player spec's provider's
// default (GM, 2026-11-18: the housekeeper inherits -- per-provider // default (developer, 2026-11-18: the housekeeper inherits -- per-provider
// defaults mean no separate deployment default exists to fall to) // defaults mean no separate deployment default exists to fall to)
let spec = specFromMeta(meta.models?.housekeeper, 'housekeeper'); let spec = specFromMeta(meta.models?.housekeeper, 'housekeeper');
if (!spec) { if (!spec) {
@@ -244,8 +244,8 @@ async function callHousekeeper(ctx, runId, messages, user) {
if (!spec) throw new Error('no housekeeper model resolved (the run\'s housekeeper pick, or its player provider\'s default)'); if (!spec) throw new Error('no housekeeper model resolved (the run\'s housekeeper pick, or its player provider\'s default)');
gateSpec(ctx, spec, 'housekeeper'); gateSpec(ctx, spec, 'housekeeper');
const params = { reasoning_effort: spec.effort }; const params = { reasoning_effort: spec.effort };
// attribution (#22): every LLM call names the acting user // attribution (#22): every inferencer call names the acting user
console.log(`${new Date().toISOString().slice(11, 19)} llm ${spec.model} u:${user?.id ?? '?'}`); console.log(`${new Date().toISOString().slice(11, 19)} inferencer ${spec.model} u:${user?.id ?? '?'}`);
const data = await providerFor(ctx, spec.provider).chat(spec.model, messages, undefined, params); const data = await providerFor(ctx, spec.provider).chat(spec.model, messages, undefined, params);
return { content: data.choices[0].message.content ?? '', model: spec.model }; return { content: data.choices[0].message.content ?? '', model: spec.model };
} }
+14 -14
View File
@@ -4,7 +4,7 @@
// pauses mid-turn -- the whole tool-call batch waits (pairing stays // pauses mid-turn -- the whole tool-call batch waits (pairing stays
// sound), the request returns with the pending question, and the // sound), the request returns with the pending question, and the
// answer call resumes the loop. GM prose goes pure (the full-block // answer call resumes the loop. GM prose goes pure (the full-block
// protocol, GM 2026-11-16): no cache blocks ride any turn -- her // protocol, developer 2026-11-16): no cache blocks ride any turn -- her
// <status>/<agenda>/<mind> blocks ride at her own tail, the view // <status>/<agenda>/<mind> blocks ride at her own tail, the view
// stamps the scan's newest values at her most recent turn, and the // stamps the scan's newest values at her most recent turn, and the
// log is the one truth (the state scan -- the db holds no copy). A // log is the one truth (the state scan -- the db holds no copy). A
@@ -61,7 +61,7 @@ function needSession(ctx, runId) {
export async function gmTurn(ctx, runId, line, user, override = null, sheet = null, send = null) { export async function gmTurn(ctx, runId, line, user, override = null, sheet = null, send = null) {
const s = needSession(ctx, runId); const s = needSession(ctx, runId);
if (s.pendingAsk) throw new HttpError(409, 'a question is pending -- answer it first (POST /ask)'); if (s.pendingAsk) throw new HttpError(409, 'a question is pending -- answer it first (POST /ask)');
// the staleness guard (GM, 2026-11-17): the client states the log it // the staleness guard (developer, 2026-11-17): the client states the log it
// composed against. The log only moves through sends, so a mismatch // composed against. The log only moves through sends, so a mismatch
// means a stale tab -- refuse before anything rides, rewind or not // means a stale tab -- refuse before anything rides, rewind or not
if (send?.expect != null && send.expect !== s.lines.length) { if (send?.expect != null && send.expect !== s.lines.length) {
@@ -77,7 +77,7 @@ export async function gmTurn(ctx, runId, line, user, override = null, sheet = nu
} catch (e) { } catch (e) {
throw new HttpError(400, `the line was not sent -- ${e.message}`); throw new HttpError(400, `the line was not sent -- ${e.message}`);
} }
// the rewind (GM, 2026-11-17): the target GM turn and everything // the rewind (developer, 2026-11-17): the target GM turn and everything
// after it leave the log, and this send takes its place. The commit // after it leave the log, and this send takes its place. The commit
// happens here -- after the line expanded cleanly, so a refusal // happens here -- after the line expanded cleanly, so a refusal
// truncates nothing -- and as one landing with the turn: the log is // truncates nothing -- and as one landing with the turn: the log is
@@ -151,7 +151,7 @@ async function runLoop(ctx, runId, user) {
for (;;) { for (;;) {
const view = renderView(s); const view = renderView(s);
// the request's resolved spec: the full inference identity // the request's resolved spec: the full inference identity
// {provider, model, effort} (GM, 2026-11-18) -- there is no unset // {provider, model, effort} (developer, 2026-11-18) -- there is no unset
// effort, it is a property of the pick. The mind layer is the // effort, it is a property of the pick. The mind layer is the
// only params source now: per-turn, hers, spent on completion // only params source now: per-turn, hers, spent on completion
// (the per-run knob layer is retired). The current call's // (the per-run knob layer is retired). The current call's
@@ -179,8 +179,8 @@ async function runLoop(ctx, runId, user) {
via = { model: spec.model, provider: spec.provider, params }; via = { model: spec.model, provider: spec.provider, params };
} else { } else {
via = { model: spec.model, provider: spec.provider, params }; via = { model: spec.model, provider: spec.provider, params };
// attribution (#22): every LLM call names the acting user // attribution (#22): every inferencer call names the acting user
console.log(`${new Date().toISOString().slice(11, 19)} llm ${spec.model} u:${user?.id ?? '?'}`); console.log(`${new Date().toISOString().slice(11, 19)} inferencer ${spec.model} u:${user?.id ?? '?'}`);
// the turn meter's live record: one per provider call (a heal // the turn meter's live record: one per provider call (a heal
// or tool round restarts it), fed by the streaming deltas // or tool round restarts it), fed by the streaming deltas
s.progress = { phase: 'thinking', thinking: 0, prose: 0, started: Date.now() }; s.progress = { phase: 'thinking', thinking: 0, prose: 0, started: Date.now() };
@@ -246,7 +246,7 @@ async function runLoop(ctx, runId, user) {
} }
// the status and agenda ride the turn text (the picked variant's, // the status and agenda ride the turn text (the picked variant's,
// for variant literature). The full-block protocol (GM, // for variant literature). The full-block protocol (developer,
// 2026-11-16): a present block is a whole-list SET -- absent // 2026-11-16): a present block is a whole-list SET -- absent
// means unchanged, never blank; a present-but-empty block is a // means unchanged, never blank; a present-but-empty block is a
// deliberate clear. Same-verb blocks combine into one set. No // deliberate clear. Same-verb blocks combine into one set. No
@@ -275,9 +275,9 @@ async function runLoop(ctx, runId, user) {
} }
// the <model> block is display-only: the read side of the mind // the <model> block is display-only: the read side of the mind
// verb, never hers to emit. The <sheet> block is the same // verb, never hers to emit. The <sheet> block is the same
// (GM, 2026-11-17) -- the GM's ledger, changes propose in prose. // (developer, 2026-11-17) -- the GM's ledger, changes propose in prose.
// Both guards quote the offending emission: a conflict must be // Both guards quote the offending emission: a conflict must be
// self-contained (GM, 2026-11-18) -- it stays in the contwin, and // self-contained (developer, 2026-11-18) -- it stays in the contwin, and
// the block it answers strips from the view, so the quote is the // the block it answers strips from the view, so the quote is the
// only visible trace of what went wrong // only visible trace of what went wrong
if (/<model>/.test(text)) { if (/<model>/.test(text)) {
@@ -308,7 +308,7 @@ async function runLoop(ctx, runId, user) {
} }
/** A model spec as run.json carries it: the {provider, model, /** A model spec as run.json carries it: the {provider, model,
* effort} object (the no-legacy rule, GM, 2026-11-18 -- the * effort} object (the no-legacy rule, developer, 2026-11-18 -- the
* bare-string era migrated away in the same pass). Malformed * bare-string era migrated away in the same pass). Malformed
* records refuse loud. * records refuse loud.
* @param {unknown} raw @param {'player'|'housekeeper'} role @returns {?import('./shapes.mjs').ModelSpec} */ * @param {unknown} raw @param {'player'|'housekeeper'} role @returns {?import('./shapes.mjs').ModelSpec} */
@@ -324,7 +324,7 @@ function specFromMeta(raw, role) {
throw new HttpError(409, `the run's ${role} model record is malformed -- set it again in the model box`); throw new HttpError(409, `the run's ${role} model record is malformed -- set it again in the model box`);
} }
/** The invalidation gate (GM, 2026-11-18): the settings the run /** The invalidation gate (developer, 2026-11-18): the settings the run
* came with must still be carried. A provider gone from the * came with must still be carried. A provider gone from the
* config, a model gone from its provider's registry, a model the * config, a model gone from its provider's registry, a model the
* battery disqualified -- all one state: the run blocks until the * battery disqualified -- all one state: the run blocks until the
@@ -359,11 +359,11 @@ export { specFromMeta, gateSpec, resolveSpec };
// --- the mind verb ------------------------------------------------------------ // --- the mind verb ------------------------------------------------------------
// //
// <mind>{"temperature": 1.4}</mind> -- the player sets its own sampling // <mind>{"temperature": 1.4}</mind> -- the player sets its own sampling
// knobs for its NEXT turn, to reflect the character's mind (GM, // knobs for its NEXT turn, to reflect the character's mind (developer,
// 2026-11-16: tag form, one-shot, no GM lock; the block carries a // 2026-11-16: tag form, one-shot, no GM lock; the block carries a
// JSON object -- models emit JSON natively; the parameters need no // JSON object -- models emit JSON natively; the parameters need no
// model-facing explanation, they live native in base training). // model-facing explanation, they live native in base training).
// max_tokens is excluded by ruling (GM, 2026-11-16) -- it is a // max_tokens is excluded by ruling (developer, 2026-11-16) -- it is a
// budget, not a mind. A substrate verb like the deltas: parsed from // budget, not a mind. A substrate verb like the deltas: parsed from
// the picked variant's text after the final message, merged over the // the picked variant's text after the final message, merged over the
// run and deployment layers for every call of the next turn, then // run and deployment layers for every call of the next turn, then
@@ -411,7 +411,7 @@ function quote(s) {
* all blocks combined (last wins per key, the same-verb rule). Every * all blocks combined (last wins per key, the same-verb rule). Every
* wrong thing is named -- the caller rides the conflict path, and * wrong thing is named -- the caller rides the conflict path, and
* she heals by restating. The errors carry what she wrote: a * she heals by restating. The errors carry what she wrote: a
* conflict must describe its problem in full (GM, 2026-11-18), even * conflict must describe its problem in full (developer, 2026-11-18), even
* when the problem originates in the turn it immediately follows -- * when the problem originates in the turn it immediately follows --
* the block itself strips from the view, the conflict is what * the block itself strips from the view, the conflict is what
* remains. * remains.
+11 -11
View File
@@ -42,7 +42,7 @@ const MOCK = process.argv.includes('--mock');
const DEBUG = process.argv.includes('--debug'); // identity bypass: everyone is the superuser const DEBUG = process.argv.includes('--debug'); // identity bypass: everyone is the superuser
// server.json is the static, non-secret remainder: bind and contwin. // server.json is the static, non-secret remainder: bind and contwin.
// Optional (GM, 2026-11-18) -- the provider entities live in // Optional (developer, 2026-11-18) -- the provider entities live in
// state/config.json (server-written, SPA-managed). Nothing here gates // state/config.json (server-written, SPA-managed). Nothing here gates
// the boot: a fresh deployment with no config at all comes up // the boot: a fresh deployment with no config at all comes up
// serving, mints the superuser invite, and shows the global // serving, mints the superuser invite, and shows the global
@@ -60,7 +60,7 @@ if (fs.existsSync(SERVER_JSON)) {
} }
} }
let providerCfg = providers.readConfig(); let providerCfg = providers.readConfig();
// the self-heal rule (GM, 2026-11-18), stated broadly: an error that // the self-heal rule (developer, 2026-11-18), stated broadly: an error that
// can be mechanically fixed to a reasonable degree without requiring // can be mechanically fixed to a reasonable degree without requiring
// human input gets fixed. The empty provider list is one: the // human input gets fixed. The empty provider list is one: the
// anonymous fallback is added and discovered, as a background job -- // anonymous fallback is added and discovered, as a background job --
@@ -90,7 +90,7 @@ const ctxBase = { mock: MOCK, cfg, providerCfg, providers: providersMap, session
/** @type {Ctx} */ /** @type {Ctx} */
const ctx = /** @type {Ctx} */ (ctxBase); const ctx = /** @type {Ctx} */ (ctxBase);
// the auto-added providers discover in the background -- no LLM // the auto-added providers discover in the background -- no inferencer
// calls, one GET each, zero cost; a dead network shows as the probe // calls, one GET each, zero cost; a dead network shows as the probe
// record on the card (o/f's auth failure reads as upstream breakage, // record on the card (o/f's auth failure reads as upstream breakage,
// never a prompt) plus the banner, whose fix path is the same add act // never a prompt) plus the banner, whose fix path is the same add act
@@ -453,7 +453,7 @@ route('GET', '/api/providers', async ({ user }) => {
}; };
}); });
// the probe (GM, 2026-11-19): discovery IS the health check -- every // the probe (developer, 2026-11-19): discovery IS the health check -- every
// path that scrapes a provider records the outcome on the entity, so // path that scrapes a provider records the outcome on the entity, so
// the card reads the last probe, never a stored machine. 401/403 is // the card reads the last probe, never a stored machine. 401/403 is
// the ask (custom providers only -- an auth failure on o/f is // the ask (custom providers only -- an auth failure on o/f is
@@ -486,7 +486,7 @@ async function runProbe(slug) {
} }
} }
// add a provider (GM, 2026-11-19): {builtin: true} or {slug, // add a provider (developer, 2026-11-19): {builtin: true} or {slug,
// baseUrl} -- never a key (the auth route is the only key path). // baseUrl} -- never a key (the auth route is the only key path).
// Discovery is the probe: an auth refusal (401/403) leaves the // Discovery is the probe: an auth refusal (401/403) leaves the
// provider standing broken -- the SPA asks for the key, checked on // provider standing broken -- the SPA asks for the key, checked on
@@ -532,7 +532,7 @@ route('POST', '/api/providers', async ({ body, user }) => {
// set or replace a custom provider's key (the o/f singleton never // set or replace a custom provider's key (the o/f singleton never
// takes one -- its purpose is to be the anonymous fallback; a 401 // takes one -- its purpose is to be the anonymous fallback; a 401
// from it is upstream breakage, not a prompt). Probe-then-save (GM, // from it is upstream breakage, not a prompt). Probe-then-save (developer,
// 2026-11-19): the candidate key is checked on reception -- a key // 2026-11-19): the candidate key is checked on reception -- a key
// that still meets the refusal is never saved, the previous state // that still meets the refusal is never saved, the previous state
// returns, and the ask stays open for the next attempt. // returns, and the ask stays open for the next attempt.
@@ -563,7 +563,7 @@ route('POST', '/api/providers/:slug/auth', async ({ params, body, user }) => {
} }
}); });
// remove a custom provider's key (GM, 2026-11-19): the op's control // remove a custom provider's key (developer, 2026-11-19): the op's control
// for a provider that went public -- or the first half of a key // for a provider that went public -- or the first half of a key
// replacement, the second half being the ask, which re-opens when // replacement, the second half being the ask, which re-opens when
// the keyless probe meets the 401 again. The removal stands whatever // the keyless probe meets the 401 again. The removal stands whatever
@@ -1199,7 +1199,7 @@ function readOverride(body) {
return override; return override;
} }
// The sheet record (GM, 2026-11-17): the GM's ledger of arbitrated run // The sheet record (developer, 2026-11-17): the GM's ledger of arbitrated run
// state, riding the GM turn like the override. Schemaless by ruling -- // state, riding the GM turn like the override. Schemaless by ruling --
// a plain JSON object, any fields, semantics living in the setting's // a plain JSON object, any fields, semantics living in the setting's
// prose; the route's only law is object-ness (an array or a scalar is // prose; the route's only law is object-ness (an array or a scalar is
@@ -1214,7 +1214,7 @@ function readSheet(body) {
return /** @type {Record<string, unknown>} */ (body.sheet); return /** @type {Record<string, unknown>} */ (body.sheet);
} }
// The rewind and the staleness guard (GM, 2026-11-17), both optional // The rewind and the staleness guard (developer, 2026-11-17), both optional
// fields on the send, both native API with no UX rules riding here: // fields on the send, both native API with no UX rules riding here:
// rewind names the GM turn (a log line index) this send replaces -- // rewind names the GM turn (a log line index) this send replaces --
// the target and everything after it leave the log; expect states the // the target and everything after it leave the log; expect states the
@@ -1261,13 +1261,13 @@ route('POST', '/api/runs/:id/ask', async ({ params, body, user }) => {
return { ok: true, ...(await ctx.enqueue(params.id, async () => answerAsk(ctx, params.id, answer, user, expect))) }; return { ok: true, ...(await ctx.enqueue(params.id, async () => answerAsk(ctx, params.id, answer, user, expect))) };
}); });
// the turn meter's read (GM, 2026-11-17): the live progress record // the turn meter's read (developer, 2026-11-17): the live progress record
// the streaming callback feeds, plus the scale the bar guesstimates // the streaming callback feeds, plus the scale the bar guesstimates
// against -- the session's own history: her longest past turn in // against -- the session's own history: her longest past turn in
// characters (thinking and prose both, the units the meter counts). // characters (thinking and prose both, the units the meter counts).
// No history means no scale: the client falls back to the // No history means no scale: the client falls back to the
// chunk-driven animation. (The old max_tokens budget layer is gone // chunk-driven animation. (The old max_tokens budget layer is gone
// with the per-run params: no surface sets one anymore -- GM, // with the per-run params: no surface sets one anymore -- developer,
// 2026-11-18.) Owner-only machinery; a plain read, never queued. // 2026-11-18.) Owner-only machinery; a plain read, never queued.
route('GET', '/api/runs/:id/progress', async ({ params, user }) => { route('GET', '/api/runs/:id/progress', async ({ params, user }) => {
requireOwner(user, params.id); requireOwner(user, params.id);
+3 -3
View File
@@ -1,13 +1,13 @@
// server/providers.mjs -- the provider entities. // server/providers.mjs -- the provider entities.
// //
// A provider is a first-class thing (GM, 2026-11-18): a user-named // A provider is a first-class thing (developer, 2026-11-18): a user-named
// slug, a baseUrl, optional auth, and the op's default model spec for // slug, a baseUrl, optional auth, and the op's default model spec for
// it -- {model, effort}, never params (those are per-turn, the <mind> // it -- {model, effort}, never params (those are per-turn, the <mind>
// verb's alone). state/config.json is the truth, written only by the // verb's alone). state/config.json is the truth, written only by the
// server; the SPA is the surface, zero hand edits. No legacy shapes // server; the SPA is the surface, zero hand edits. No legacy shapes
// are read: the config is born in this shape, and shape changes come // are read: the config is born in this shape, and shape changes come
// with one-time migrations, not permanent tolerance (the no-legacy // with one-time migrations, not permanent tolerance (the no-legacy
// rule, GM, 2026-11-18). // rule, developer, 2026-11-18).
// //
// The built-in singleton: opencode/free -- the anonymous, keyless // The built-in singleton: opencode/free -- the anonymous, keyless
// fallback, the harness thesis in one entry (playable with zero // fallback, the harness thesis in one entry (playable with zero
@@ -106,7 +106,7 @@ export function addBuiltin(cfg) {
return p; return p;
} }
/** The removal guard (GM, 2026-11-18): the singleton goes only when /** The removal guard (developer, 2026-11-18): the singleton goes only when
* a custom provider stands in its place -- the empty list is an * a custom provider stands in its place -- the empty list is an
* error state, and the fallback is what keeps it unreachable. * error state, and the fallback is what keeps it unreachable.
* @param {DeployCfg} cfg @param {string} slug @returns {string} an error message, or '' when removable */ * @param {DeployCfg} cfg @param {string} slug @returns {string} an error message, or '' when removable */
+12 -12
View File
@@ -20,7 +20,7 @@
// (the last few and every ask_gm answer stay), old GM-side // (the last few and every ask_gm answer stay), old GM-side
// <status>/<conflict> blocks elide from GM prose -- the current status // <status>/<conflict> blocks elide from GM prose -- the current status
// rides the newest GM turn -- and conflict messages never elide: a // rides the newest GM turn -- and conflict messages never elide: a
// mistake stays visible so it is not made again (GM, 2026-11-18). // mistake stays visible so it is not made again (developer, 2026-11-18).
/** @typedef {import('./shapes.mjs').LogEvent} LogEvent */ /** @typedef {import('./shapes.mjs').LogEvent} LogEvent */
/** @typedef {import('./shapes.mjs').LiveSession} LiveSession */ /** @typedef {import('./shapes.mjs').LiveSession} LiveSession */
/** @typedef {import('./shapes.mjs').PendingAsk} PendingAsk */ /** @typedef {import('./shapes.mjs').PendingAsk} PendingAsk */
@@ -254,7 +254,7 @@ export function cleanBlockList(text, kind) {
/** The state scan: newest-wins across her emissions (the picked /** The state scan: newest-wins across her emissions (the picked
* variant's text), the GM's records, and the boundary note. The sheet * variant's text), the GM's records, and the boundary note. The sheet
* (GM, 2026-11-17) is the second channel: arbitrated run state, never * (developer, 2026-11-17) is the second channel: arbitrated run state, never
* her words -- its sources are the GM's turn records and the note, * her words -- its sources are the GM's turn records and the note,
* each record a whole set (absent key means dropped, never kept), and * each record a whole set (absent key means dropped, never kept), and
* it never caps, never cleans: the GM's ledger is exactly what the GM * it never caps, never cleans: the GM's ledger is exactly what the GM
@@ -367,7 +367,7 @@ export function findStalledStop(runId) {
return null; return null;
} }
// --- rewind: the GM's take-back (GM, 2026-11-17) ------------------------------ // --- rewind: the GM's take-back (developer, 2026-11-17) ------------------------------
// //
// The in-place rollback of the live session, deliberately destructive: // The in-place rollback of the live session, deliberately destructive:
// the target GM turn and everything after it leave the log, and the // the target GM turn and everything after it leave the log, and the
@@ -421,7 +421,7 @@ export function rewindTo(s, idx) {
// the authored carryover's event vocabulary: her opening as msg // the authored carryover's event vocabulary: her opening as msg
// events (user = the GM, assistant = her). The opening event is // events (user = the GM, assistant = her). The opening event is
// RETIRED (GM, 2026-11-16): old carryovers keep theirs as inert // RETIRED (developer, 2026-11-16): old carryovers keep theirs as inert
// history -- tolerated here, never applied. A continuation // history -- tolerated here, never applied. A continuation
// carryover is real conversation: msg, tool, note, and req events // carryover is real conversation: msg, tool, note, and req events
// (a failed request's record is machinery like a note), read as // (a failed request's record is machinery like a note), read as
@@ -447,7 +447,7 @@ export function lintCarryover(lines, { authored }) {
if (m.reasoning_content) errors.push(`${at}: thinking is runtime metadata`); if (m.reasoning_content) errors.push(`${at}: thinking is runtime metadata`);
if (e.reminder) errors.push(`${at}: the reminder rides every GM turn on its own`); if (e.reminder) errors.push(`${at}: the reminder rides every GM turn on its own`);
if (e.conflictOnly) errors.push(`${at}: conflict traffic is runtime machinery`); if (e.conflictOnly) errors.push(`${at}: conflict traffic is runtime machinery`);
// the sheet's transport (GM, 2026-11-19, the box round): the // the sheet's transport (developer, 2026-11-19, the box round): the
// record is the only channel -- the tag is view machinery, // record is the only channel -- the tag is view machinery,
// composed by renderView, never authored by anyone. Hers would // composed by renderView, never authored by anyone. Hers would
// never apply (the scan holds the GM's record) and primes the // never apply (the scan holds the GM's record) and primes the
@@ -506,7 +506,7 @@ export function lintCarryover(lines, { authored }) {
} }
}); });
if (authored && openings > 1) errors.push('at most one opening event'); if (authored && openings > 1) errors.push('at most one opening event');
// the full-block protocol (GM, 2026-11-16): the initial status rides // the full-block protocol (developer, 2026-11-16): the initial status rides
// her last turn in the carryover -- an authored carryover without // her last turn in the carryover -- an authored carryover without
// model turns has no canon point to stamp // model turns has no canon point to stamp
if (authored && !lines.some((e) => e.t === 'msg' && e.m?.role === 'assistant')) { if (authored && !lines.some((e) => e.t === 'msg' && e.m?.role === 'assistant')) {
@@ -629,7 +629,7 @@ export function startSession(runId, { override = false } = {}) {
errors: [(mr.err || mr.out || 'reapply failed').split('\n')[0]], errors: [(mr.err || mr.out || 'reapply failed').split('\n')[0]],
}); });
} }
// the full-block protocol (GM, 2026-11-16): the initial state // the full-block protocol (developer, 2026-11-16): the initial state
// rides her last authored turn -- the scan reads her blocks, the // rides her last authored turn -- the scan reads her blocks, the
// stamp renders them, the panes derive them. No seeding, no // stamp renders them, the panes derive them. No seeding, no
// second home: her opening turn IS the seed. The opening event // second home: her opening turn IS the seed. The opening event
@@ -653,7 +653,7 @@ export function startSession(runId, { override = false } = {}) {
{ t: 'bundle', m: system, part: 'system' }, { t: 'bundle', m: system, part: 'system' },
...bundle.map((m, i) => /** @type {LogEvent} */ ({ t: 'bundle', m, part: partNames[i] })), ...bundle.map((m, i) => /** @type {LogEvent} */ ({ t: 'bundle', m, part: partNames[i] })),
...carry, ...carry,
// the rewind floor (GM, 2026-11-17): the opening -- authored or // the rewind floor (developer, 2026-11-17): the opening -- authored or
// carried -- is frozen; live play starts at this line, and a // carried -- is frozen; live play starts at this line, and a
// rewind may only ever target GM turns below it // rewind may only ever target GM turns below it
{ t: 'note', kind: 'start' }, { t: 'note', kind: 'start' },
@@ -709,7 +709,7 @@ export function renderView(s, keepToolResults = 4) {
// override, the boundary note -- the state scan's newest-wins). // override, the boundary note -- the state scan's newest-wins).
// The status is the game world as of her turn; after it the GM's // The status is the game world as of her turn; after it the GM's
// turn happens, then her new turn -- the context must read as that // turn happens, then her new turn -- the context must read as that
// same sequence of events (GM, 2026-11-16) // same sequence of events (developer, 2026-11-16)
const st = scanState(s.lines); const st = scanState(s.lines);
let lastProse = -1; let lastProse = -1;
s.lines.forEach((e, i) => { s.lines.forEach((e, i) => {
@@ -744,7 +744,7 @@ export function renderView(s, keepToolResults = 4) {
content = content.replace(STRIP_HERS, '').trim(); content = content.replace(STRIP_HERS, '').trim();
if (e.via && Object.keys(e.via.params ?? {}).length) { if (e.via && Object.keys(e.via.params ?? {}).length) {
// the via-derived block is the mind verb's read side: // the via-derived block is the mind verb's read side:
// reasoning_effort is hidden from her (GM, 2026-11-16 -- // reasoning_effort is hidden from her (developer, 2026-11-16 --
// not her call), it rides the raw surfaces only // not her call), it rides the raw surfaces only
const shownVia = { ...e.via.params }; const shownVia = { ...e.via.params };
delete shownVia.reasoning_effort; delete shownVia.reasoning_effort;
@@ -769,7 +769,7 @@ export function renderView(s, keepToolResults = 4) {
if (e.m.tool_calls?.length) m.tool_calls = e.m.tool_calls; if (e.m.tool_calls?.length) m.tool_calls = e.m.tool_calls;
msgs.push(m); msgs.push(m);
} else if (e.conflictOnly) { } else if (e.conflictOnly) {
// the self-heal channel stays in the contwin (GM, 2026-11-18): // the self-heal channel stays in the contwin (developer, 2026-11-18):
// a mistake remains visible so it is not made again. This is // a mistake remains visible so it is not made again. This is
// why conflicts must be self-contained -- describe the problem // why conflicts must be self-contained -- describe the problem
// in full, quoting the offending emission, because the // in full, quoting the offending emission, because the
@@ -790,7 +790,7 @@ export function renderView(s, keepToolResults = 4) {
} }
} }
} }
// the sheet chunk (GM, 2026-11-17): arbitrated run state renders as // the sheet chunk (developer, 2026-11-17): arbitrated run state renders as
// its OWN authoritative system chunk at the freshest end -- never a // its OWN authoritative system chunk at the freshest end -- never a
// canon-point stamp, which would read as her words. One live copy by // canon-point stamp, which would read as her words. One live copy by
// construction (assembled once per view, not logged per turn). An // construction (assembled once per view, not logged per turn). An
+5 -5
View File
@@ -66,7 +66,7 @@ export {};
* scan reads it newest-wins (it loses to any emission inside the * scan reads it newest-wins (it loses to any emission inside the
* tail by position). */ * tail by position). */
/** @typedef {{ t: 'note', kind: 'state', status?: string[], agenda?: string[], sheet?: Record<string, unknown> }} StateNote */ /** @typedef {{ t: 'note', kind: 'state', status?: string[], agenda?: string[], sheet?: Record<string, unknown> }} StateNote */
/** start: the frozen-opening boundary (rewind, GM, 2026-11-17) -- /** start: the frozen-opening boundary (rewind, developer, 2026-11-17) --
* written once at start, right after the consumed carryover: the * written once at start, right after the consumed carryover: the
* opening (authored or carried) above it is what a rewind can never * opening (authored or carried) above it is what a rewind can never
* reach. A session whose log predates the build carries none, and * reach. A session whose log predates the build carries none, and
@@ -95,7 +95,7 @@ export {};
/** The turn meter's live record: what the streaming callback knows. `phase` is what is arriving now; `started` is the provider call's epoch ms. */ /** The turn meter's live record: what the streaming callback knows. `phase` is what is arriving now; `started` is the provider call's epoch ms. */
/** @typedef {{ phase: 'thinking'|'prose', thinking: number, prose: number, started: number }} TurnProgress */ /** @typedef {{ phase: 'thinking'|'prose', thinking: number, prose: number, started: number }} TurnProgress */
/** One model spec: the complete inference request identity (GM, /** One model spec: the complete inference request identity (developer,
* 2026-11-18) -- which provider routes it, the model id, and the * 2026-11-18) -- which provider routes it, the model id, and the
* reasoning effort, all three required (there is no unset effort: * reasoning effort, all three required (there is no unset effort:
* it substantially changes inference quality, so it is a property * it substantially changes inference quality, so it is a property
@@ -106,7 +106,7 @@ export {};
/** run.json: lineage, ownership, and the run's model picks -- full /** run.json: lineage, ownership, and the run's model picks -- full
* specs, per role. (The retired per-run params layer is gone * specs, per role. (The retired per-run params layer is gone
* entirely, GM, 2026-11-18: params are per-turn via <mind>, and the * entirely, developer, 2026-11-18: params are per-turn via <mind>, and the
* no-legacy rule migrated the last carrier away.) */ * no-legacy rule migrated the last carrier away.) */
/** @typedef {{ package: string, created?: string, owner?: ?string, forked?: number, models?: { player?: ?ModelSpec, housekeeper?: ?ModelSpec } }} RunMeta */ /** @typedef {{ package: string, created?: string, owner?: ?string, forked?: number, models?: { player?: ?ModelSpec, housekeeper?: ?ModelSpec } }} RunMeta */
@@ -125,7 +125,7 @@ export {};
* thinking-token count. efforts is the reasoning-effort probe: the * thinking-token count. efforts is the reasoning-effort probe: the
* measured mean thinking per level of the ladder; effortDefault is * measured mean thinking per level of the ladder; effortDefault is
* the level with the highest observed mean -- pre-fill and hint * the level with the highest observed mean -- pre-fill and hint
* only (GM, 2026-11-18: with effort a property of the pick, nothing * only (developer, 2026-11-18: with effort a property of the pick, nothing
* rides implicitly anymore; it pre-selects the selection prompt's * rides implicitly anymore; it pre-selects the selection prompt's
* dropdown and informs the curator's recommendation, no more). */ * dropdown and informs the curator's recommendation, no more). */
/** @typedef {{ id: string, input: ?number, output: ?number, status?: 'unrefined', inference?: boolean, fail?: string, think?: ?number, reasoning?: 'off'|'low'|'standard'|'deep'|null, offSwitch?: Record<string, unknown>|null, efforts?: ?Record<string, number>, effortDefault?: ?string, latency?: ?number, family?: ?string, label?: ?string, description?: ?string, roles?: { player: boolean, housekeeper: boolean } }} RegistryModel */ /** @typedef {{ id: string, input: ?number, output: ?number, status?: 'unrefined', inference?: boolean, fail?: string, think?: ?number, reasoning?: 'off'|'low'|'standard'|'deep'|null, offSwitch?: Record<string, unknown>|null, efforts?: ?Record<string, number>, effortDefault?: ?string, latency?: ?number, family?: ?string, label?: ?string, description?: ?string, roles?: { player: boolean, housekeeper: boolean } }} RegistryModel */
@@ -135,7 +135,7 @@ export {};
* provider removal. recommendation is the curator's overall-best * provider removal. recommendation is the curator's overall-best
* {model, effort} -- intel only, shown post-refine, applied by the * {model, effort} -- intel only, shown post-refine, applied by the
* op's click, never auto-landed and never deterministic on a bad * op's click, never auto-landed and never deterministic on a bad
* model day (GM, 2026-11-18: on a bad day the op gets no advice, * model day (developer, 2026-11-18: on a bad day the op gets no advice,
* not machine advice). */ * not machine advice). */
/** @typedef {{ phase: 'preliminary'|'refined', discovered: string, refined: ?string, models: RegistryModel[], curator?: ?string, recommendation?: ?{ model: string, effort: string } }} RegistrySection */ /** @typedef {{ phase: 'preliminary'|'refined', discovered: string, refined: ?string, models: RegistryModel[], curator?: ?string, recommendation?: ?{ model: string, effort: string } }} RegistrySection */
+1 -1
View File
@@ -3,7 +3,7 @@
// A player turn may be variant literature: several complete candidate // A player turn may be variant literature: several complete candidate
// turns in one <variants> block (one <variant> each), each carrying // turns in one <variants> block (one <variant> each), each carrying
// its own substrate verbs. The loop picks one at random on reception // its own substrate verbs. The loop picks one at random on reception
// -- genuine chaos over curation, by GM ruling -- and only the picked // -- genuine chaos over curation, by developer ruling -- and only the picked
// variant ever renders on a model-facing surface; the unpicked rest // variant ever renders on a model-facing surface; the unpicked rest
// survive in the session log alone (she must not remember roads not // survive in the session log alone (she must not remember roads not
// taken; the housekeeper must not file fiction-that-never-was). // taken; the housekeeper must not file fiction-that-never-was).
+33 -16
View File
@@ -2,44 +2,46 @@
// git-tracked files; no server needed: // git-tracked files; no server needed:
// node test/check-repo.mjs // node test/check-repo.mjs
// //
// 1. ASCII bytes everywhere (GM, 2026-11-15). No unicode in any // 1. ASCII bytes everywhere (developer, 2026-11-15). No unicode in any
// tracked file; gitignored state (runs/, state/, server.json) is // tracked file; gitignored state (runs/, state/, server.json) is
// per-deployment and exempt. The ENCODING is the problem, never // per-deployment and exempt. The ENCODING is the problem, never
// the visual: rendered glyphs travel ASCII-safe (\u escapes in // the visual: rendered glyphs travel ASCII-safe (\u escapes in
// JS, entities in HTML), never verbatim bytes. // JS, entities in HTML), never verbatim bytes.
// 2. No text-mutating CSS (GM, 2026-11-15). Rendered text must // 2. No text-mutating CSS (developer, 2026-11-15). Rendered text must
// match authored text: no text-transform (any value, inline // match authored text: no text-transform (any value, inline
// styles included), no generated content (content:, ::before and // styles included), no generated content (content:, ::before and
// ::after included), no caps font variants. Authored content is // ::after included), no caps font variants. Authored content is
// fine -- want caps on screen, write caps in the source. // fine -- want caps on screen, write caps in the source.
// 3. No HTML comments in prose or prompt files (GM, 2026-11-14): // 3. No HTML comments in prose or prompt files (developer, 2026-11-14):
// purpose descriptions live in README, AGENTS, or code comments. // purpose descriptions live in README, AGENTS, or code comments.
// gm.md files are exempt -- GM-private, flagged to the GM, never // gm.md files are exempt -- the run's GM's private file, authored
// agent-edited. // content: flagged to the developer, never assistant-edited.
// 4. Retired terms stay retired (DICTIONARY rules the terms). The // 4. Retired terms stay retired (DICTIONARY rules the terms). The
// rule is about the substrate (GM, 2026-11-19): README and the // rule is about the substrate (developer, 2026-11-19): README and the
// root prompts never say the wrap, prelude, paper (the old // root prompts never say the wrap, prelude, paper (the old
// status), window (the old session; a line naming contwin may // status), window (the old session; a line naming contwin may
// gloss it as the context window), turn-0, seed (memory.json is // gloss it as the context window), turn-0, seed (memory.json is
// the name). A banned word in a package's prose is fine -- the // the name), agent and LLM (every inferencer seat is named in the roles
// inventory; the filename AGENTS.md is consumed as-is, like
// "Windows" the OS). A banned word in a package's prose is fine -- the
// packages are the fiction, and their words are the story's. // packages are the fiction, and their words are the story's.
// Historical records keep the vocabulary of their day; gm.md is // Historical records keep the vocabulary of their day; gm.md is
// GM-private, flagged never fixed. // the run's GM's private file, flagged never fixed.
// 5. Zero-dependency runtime (GM, 2026-11-13, amended 2026-11-15): // 5. Zero-dependency runtime (developer, 2026-11-13, amended 2026-11-15):
// every import is node: builtin or relative -- no runtime deps, // every import is node: builtin or relative -- no runtime deps,
// no package-manager requirement to run. Dev tooling is exempt // no package-manager requirement to run. Dev tooling is exempt
// (typescript rides devDependencies; nothing imports it). // (typescript rides devDependencies; nothing imports it).
// 6. UTC discipline (GM, 2026-11-14): no locale- or timezone- // 6. UTC discipline (developer, 2026-11-14): no locale- or timezone-
// dependent date formatting in code. No time zones, ever. // dependent date formatting in code. No time zones, ever.
// 7. web/ static files never start with "api" -- the server's route // 7. web/ static files never start with "api" -- the server's route
// guard matches the /api prefix, so web/api.mjs 404s as a bogus // guard matches the /api prefix, so web/api.mjs 404s as a bogus
// API route (bit once, 2026-11-14). // API route (bit once, 2026-11-14).
// 8. The bundle boundary (GM, 2026-11-14): server/bundle.mjs names // 8. The bundle boundary (developer, 2026-11-14): server/bundle.mjs names
// neither gm.md (never model-facing) nor housekeeper.md (agent // neither gm.md (never model-facing) nor housekeeper.md (the
// prompts never enter the bundle). // internal inferencers' prompts never enter the bundle).
// 9. Seeds carry no date keys (GM, 2026-11-14): no model-facing // 9. Seeds carry no date keys (developer, 2026-11-14): no model-facing
// surface renders a date; story time lives in prose. // surface renders a date; story time lives in prose.
// 10. No laptop-visible facts (GM, 2026-11-15): this machine's // 10. No laptop-visible facts (developer, 2026-11-15): this machine's
// username and home paths appear nowhere -- tracked tree, // username and home paths appear nowhere -- tracked tree,
// historical blobs, commit messages -- and every commit is // historical blobs, commit messages -- and every commit is
// always from Mute (author and committer, name and email, every // always from Mute (author and committer, name and email, every
@@ -55,7 +57,7 @@ const fail = (msg) => { console.log(`FAIL ${msg}`); failures++; };
const files = execFileSync('git', ['ls-files'], { encoding: 'utf8' }).split('\n').filter(Boolean); const files = execFileSync('git', ['ls-files'], { encoding: 'utf8' }).split('\n').filter(Boolean);
const ROOT_PROMPTS = new Set(['system.md', 'invariants.md', 'handbook.md', 'housekeeper.md', 'reminder.md']); const ROOT_PROMPTS = new Set(['system.md', 'invariants.md', 'handbook.md', 'housekeeper.md', 'reminder.md']);
// rule 4's scope: the substrate's prose only (GM, 2026-11-19) -- // rule 4's scope: the substrate's prose only (developer, 2026-11-19) --
// README and the root prompts. The packages are the fiction; a // README and the root prompts. The packages are the fiction; a
// banned word there is the story's own business // banned word there is the story's own business
const substrateProse = (f) => f === 'README.md' || ROOT_PROMPTS.has(f); const substrateProse = (f) => f === 'README.md' || ROOT_PROMPTS.has(f);
@@ -136,6 +138,21 @@ for (const f of files) {
} }
if (/turn-0/i.test(line)) fail(`${f}:${i + 1} retired term: "turn-0" (the carryover)`); if (/turn-0/i.test(line)) fail(`${f}:${i + 1} retired term: "turn-0" (the carryover)`);
if (/\bseed(ed|s|ing)?\b/i.test(line)) fail(`${f}:${i + 1} retired term: "seed" (memory.json -- her starting memories)`); if (/\bseed(ed|s|ing)?\b/i.test(line)) fail(`${f}:${i + 1} retired term: "seed" (memory.json -- her starting memories)`);
// lowercase "agent(s)" is retired (developer, 2026-11-19): the
// word did too many jobs at once -- every inferencer seat is named in
// the roles inventory (the assistant, the housekeeper, the
// curator, the player). The filename AGENTS.md is consumed
// as-is, exactly like "Windows" the OS.
if (/\bagents?\b/.test(line)) {
fail(`${f}:${i + 1} retired term: "agent" (the named seats -- DICTIONARY's roles inventory)`);
}
// "LLM" joins agent in retirement (developer, 2026-11-19): the
// class word is "inferencer(s)", the seats are named. "model"
// stays the machinery's noun -- a registry entry, a provider's
// listed model -- never a seat.
if (/\bLLMs?\b/.test(line)) {
fail(`${f}:${i + 1} retired term: "LLM" (inferencer -- the class word, DICTIONARY's roles inventory)`);
}
}); });
} }
+11 -11
View File
@@ -1,6 +1,6 @@
// test/smoke.mjs -- end-to-end multiuser pass against the --mock // test/smoke.mjs -- end-to-end multiuser pass against the --mock
// server. Covers: bootstrap, claim, spent-invite rejection, second // server. Covers: bootstrap, claim, spent-invite rejection, second
// user, the provider round (GM, 2026-11-18: the self-heal boot -- // user, the provider round (developer, 2026-11-18: the self-heal boot --
// the empty provider list auto-added and discovered; the op acts // the empty provider list auto-added and discovered; the op acts
// ride the per-provider surface -- the binary add choice, the o/f // ride the per-provider surface -- the binary add choice, the o/f
// singleton's authless guard, the selection {model, effort} that // singleton's authless guard, the selection {model, effort} that
@@ -13,11 +13,11 @@
// every turn, the pass log's model), the mind verb (the player sets // every turn, the pass log's model), the mind verb (the player sets
// its sampling for its next turn: one-shot, JSON, bounds enforced, // its sampling for its next turn: one-shot, JSON, bounds enforced,
// conflict-healed, carried unconsumed across a session boundary, // conflict-healed, carried unconsumed across a session boundary,
// inherited by a fork), the rewind (GM, 2026-11-17: the send that // inherited by a fork), the rewind (developer, 2026-11-17: the send that
// carries it replaces its target GM turn -- physical truncation, the // carries it replaces its target GM turn -- physical truncation, the
// frozen-opening floor, the sheet records of the dead range reverting, // frozen-opening floor, the sheet records of the dead range reverting,
// the staleness guard on every send), the conflict channel's // the staleness guard on every send), the conflict channel's
// persistence (GM, 2026-11-18: conflicts stay in the contwin and are // persistence (developer, 2026-11-18: conflicts stay in the contwin and are
// self-contained -- the offending emission quoted, because the block // self-contained -- the offending emission quoted, because the block
// it answers strips from the view), the full-block protocol // it answers strips from the view), the full-block protocol
// (whole-list status // (whole-list status
@@ -238,7 +238,7 @@ ok('invite mint is op-only', r.status === 403);
JSON.stringify(Object.keys(cacheFile.entries ?? {}))); JSON.stringify(Object.keys(cacheFile.entries ?? {})));
} }
// 7c. the add-flow machine (GM, 2026-11-19): discovery is the probe. // 7c. the add-flow machine (developer, 2026-11-19): discovery is the probe.
// A keyless working endpoint never sees a key field; a 401/403 stands // A keyless working endpoint never sees a key field; a 401/403 stands
// the provider broken and opens the key path (checked on reception, // the provider broken and opens the key path (checked on reception,
// saved on success, asked again on refusal -- a failed candidate // saved on success, asked again on refusal -- a failed candidate
@@ -479,7 +479,7 @@ ok('her mind tags are write-only (stripped from the view)',
ok('an emitted <model> block strips from the view', ok('an emitted <model> block strips from the view',
her1.every((m) => !/\n<model>/.test(String(m.content ?? ''))), ''); her1.every((m) => !/\n<model>/.test(String(m.content ?? ''))), '');
const viewConflicts = view1.filter((m) => m.role === 'user' && /^<conflict>/.test(String(m.content ?? ''))); const viewConflicts = view1.filter((m) => m.role === 'user' && /^<conflict>/.test(String(m.content ?? '')));
ok('past conflicts stay in the context (a mistake remains visible, GM 2026-11-18)', ok('past conflicts stay in the context (a mistake remains visible, developer 2026-11-18)',
viewConflicts.length === 2, `${viewConflicts.length} render`); viewConflicts.length === 2, `${viewConflicts.length} render`);
ok('a conflict describes its problem in full (the stripped emission quoted)', ok('a conflict describes its problem in full (the stripped emission quoted)',
viewConflicts.some((m) => /yours said: \{"temperature": 0\.1\}/.test(String(m.content ?? ''))), ''); viewConflicts.some((m) => /yours said: \{"temperature": 0\.1\}/.test(String(m.content ?? ''))), '');
@@ -572,7 +572,7 @@ r = await call(`/runs/${runId}/turn`, { method: 'POST', token: op, body: { line:
ok('an override cannot ride an OOC turn', r.status === 400 && /OOC/.test(r.data.error), r.data.error ?? ''); ok('an override cannot ride an OOC turn', r.status === 400 && /OOC/.test(r.data.error), r.data.error ?? '');
// 12b. models: the run's spec picks {provider, model, effort}, // 12b. models: the run's spec picks {provider, model, effort},
// registry-gated, owner-only. The per-run params layer is gone (GM, // registry-gated, owner-only. The per-run params layer is gone (developer,
// 2026-11-18): the <mind> verb is the only sampling source, per-turn // 2026-11-18): the <mind> verb is the only sampling source, per-turn
r = await call(`/runs/${forkId}/model`, { method: 'POST', token: ash, body: { player: { provider: 'mock-b', model: 'mock-cheap', effort: 'low' }, housekeeper: { provider: 'mock-a', model: 'mock-tie', effort: 'max' } } }); r = await call(`/runs/${forkId}/model`, { method: 'POST', token: ash, body: { player: { provider: 'mock-b', model: 'mock-cheap', effort: 'low' }, housekeeper: { provider: 'mock-a', model: 'mock-tie', effort: 'max' } } });
ok('set spec picks', ok('set spec picks',
@@ -796,7 +796,7 @@ r = await call(`/runs/${runId}/session`, { token: op });
const liveGm = [...r.data.entries].reverse().find((e) => e.t === 'msg' && e.m.role === 'user' && !e.conflictOnly); const liveGm = [...r.data.entries].reverse().find((e) => e.t === 'msg' && e.m.role === 'user' && !e.conflictOnly);
ok('the log records the expanded line', /name out loud: Smokina/.test(String(liveGm?.m.content ?? '')) && !/@PC\b/.test(String(liveGm?.m.content ?? '')), String(liveGm?.m.content ?? '').slice(0, 90)); ok('the log records the expanded line', /name out loud: Smokina/.test(String(liveGm?.m.content ?? '')) && !/@PC\b/.test(String(liveGm?.m.content ?? '')), String(liveGm?.m.content ?? '').slice(0, 90));
// 23. the sheet (GM, 2026-11-17): the GM's ledger of arbitrated run // 23. the sheet (developer, 2026-11-17): the GM's ledger of arbitrated run
// state -- records ride GM turns newest-wins, render as their own // state -- records ride GM turns newest-wins, render as their own
// authoritative chunk (never a stamp at her canon point), cross the // authoritative chunk (never a stamp at her canon point), cross the
// boundary on the state note, and stay read-only for her (the guard) // boundary on the state note, and stay read-only for her (the guard)
@@ -881,7 +881,7 @@ ok('the sheet crossed the boundary (the note feeds the new session\'s scan)', JS
ok('session 5 renders the sheet chunk from the carried note', chunk?.content === '<sheet>{}</sheet>', chunk?.content ?? 'no chunk'); ok('session 5 renders the sheet chunk from the carried note', chunk?.content === '<sheet>{}</sheet>', chunk?.content ?? 'no chunk');
} }
// 23b. the sheet's transport at the lint (the box round, GM, 2026-11-19): // 23b. the sheet's transport at the lint (the box round, developer, 2026-11-19):
// the record is the only channel, the tag is view machinery -- the // the record is the only channel, the tag is view machinery -- the
// authored gate names every wrong shape, the boundary note is checked // authored gate names every wrong shape, the boundary note is checked
// on both kinds, and her carried emission stays legitimate history // on both kinds, and her carried emission stays legitimate history
@@ -918,7 +918,7 @@ ok('the sheet crossed the boundary (the note feeds the new session\'s scan)', JS
], { authored: false }).length === 0, ''); ], { authored: false }).length === 0, '');
} }
// 24. the rewind (GM, 2026-11-17): the GM's take-back. The send that // 24. the rewind (developer, 2026-11-17): the GM's take-back. The send that
// carries rewind replaces the target GM turn -- the target and // carries rewind replaces the target GM turn -- the target and
// everything after it leave the log (physical truncation; fork is the // everything after it leave the log (physical truncation; fork is the
// preservation story). The floor is the start marker (the frozen // preservation story). The floor is the start marker (the frozen
@@ -975,7 +975,7 @@ ok('the sheet crossed the boundary (the note feeds the new session\'s scan)', JS
ok('the story drops the cut range', r.data.sessions.every((s) => s.turns.every((t) => !/Rewind battery two/.test(t.text))), 'the dropped prose survived in the story'); ok('the story drops the cut range', r.data.sessions.every((s) => s.turns.every((t) => !/Rewind battery two/.test(t.text))), 'the dropped prose survived in the story');
} }
// 24b. invalidation and the removal guard (GM, 2026-11-18): a run's // 24b. invalidation and the removal guard (developer, 2026-11-18): a run's
// picks are settings the run came with -- when the server stops // picks are settings the run came with -- when the server stops
// carrying them (the provider removed), the run blocks until the GM // carrying them (the provider removed), the run blocks until the GM
// sets them up again; and the o/f singleton is removable only while // sets them up again; and the o/f singleton is removable only while
@@ -986,7 +986,7 @@ ok('the sheet crossed the boundary (the note feeds the new session\'s scan)', JS
r = await call('/providers', { method: 'POST', token: op, body: { slug: 'mock-c', baseUrl: 'https://mock.c.example/v1' } }); r = await call('/providers', { method: 'POST', token: op, body: { slug: 'mock-c', baseUrl: 'https://mock.c.example/v1' } });
ok('a custom provider adds and discovers', r.status === 200 && r.data.models > 0, JSON.stringify(r.data)); ok('a custom provider adds and discovers', r.status === 200 && r.data.models > 0, JSON.stringify(r.data));
// the failures-never-cache rule (GM, 2026-11-19): a failure is the // the failures-never-cache rule (developer, 2026-11-19): a failure is the
// absence of a measurement, not a measurement -- mock-fail lands // absence of a measurement, not a measurement -- mock-fail lands
// its verdict fresh at every refine, while the passing models // its verdict fresh at every refine, while the passing models
// persist from the cache // persist from the cache
+2 -2
View File
@@ -299,7 +299,7 @@ function openDb() {
} }
// One normalizer brings any events table to the current schema // One normalizer brings any events table to the current schema
// (2026-11-14, GM: no legacy hauling -- renames are clean, old data // (2026-11-14, developer: no legacy hauling -- renames are clean, old data
// migrates once): the column `window` -> `session`, the journal op // migrates once): the column `window` -> `session`, the journal op
// values `paper-*` -> `status-*`, and the CHECK widened to the full // values `paper-*` -> `status-*`, and the CHECK widened to the full
// op list. The rebuild copies through a check-free intermediate -- // op list. The rebuild copies through a check-free intermediate --
@@ -1171,7 +1171,7 @@ function cmdDiscard(ridStr, reason) {
dumpDb(db); dumpDb(db);
} }
// --- her status and agenda: RETIRED (GM, 2026-11-16) ------------------------------- // --- her status and agenda: RETIRED (developer, 2026-11-16) -------------------------------
// //
// The full-block protocol made her logged blocks the model's only // The full-block protocol made her logged blocks the model's only
// channel, and a second home in the db was a stale mirror, not a // channel, and a second home in the db was a stale mirror, not a
+1 -1
View File
@@ -1,6 +1,6 @@
// web/knobs.mjs -- the reasoning-effort ladder and its select. // web/knobs.mjs -- the reasoning-effort ladder and its select.
// //
// The per-run sampling knobs are retired (GM, 2026-11-18): params are // The per-run sampling knobs are retired (developer, 2026-11-18): params are
// per-turn and only hers -- the <mind> verb sets them for one turn, // per-turn and only hers -- the <mind> verb sets them for one turn,
// nothing stores them. Reasoning effort is a property of the model // nothing stores them. Reasoning effort is a property of the model
// pick (there is no unset effort), so its select lives inside the // pick (there is no unset effort), so its select lives inside the
+2 -2
View File
@@ -35,7 +35,7 @@ body {
/* play keeps the two-column transcript + aside layout; the footer /* play keeps the two-column transcript + aside layout; the footer
(the composer) sits under the transcript's column only -- the (the composer) sits under the transcript's column only -- the
input's width is the pane's width (GM, 2026-11-16) */ input's width is the pane's width (developer, 2026-11-16) */
body.play { body.play {
grid-template: grid-template:
"header header" auto "header header" auto
@@ -449,7 +449,7 @@ footer {
display: none; display: none;
} }
body.play footer { display: flex; flex-wrap: wrap; } body.play footer { display: flex; flex-wrap: wrap; }
/* the rewind note (GM, 2026-11-17): a full-width row above the /* the rewind note (developer, 2026-11-17): a full-width row above the
composer while a rewind is armed -- it names the cut and explains composer while a rewind is armed -- it names the cut and explains
the tint (the colour alone says that something is pending, not the tint (the colour alone says that something is pending, not
what dies) */ what dies) */
+5 -5
View File
@@ -18,7 +18,7 @@
import { $, el } from './dom.mjs'; import { $, el } from './dom.mjs';
// splits text into spans: *italics* = narration, **bold** = emphasis. // splits text into spans: *italics* = narration, **bold** = emphasis.
// Colour-only (GM, 2026-11-16): the workbench renders no faces -- // Colour-only (developer, 2026-11-16): the workbench renders no faces --
// same glyphs, same widths, only paint differs, and the input's // same glyphs, same widths, only paint differs, and the input's
// caret can never drift from what it overlays. The asterisks stay // caret can never drift from what it overlays. The asterisks stay
// on screen: the authored text is the rendered text // on screen: the authored text is the rendered text
@@ -42,7 +42,7 @@ function renderSpans(target, text) {
// delta tags on player turns always render as chips. The workbench's // delta tags on player turns always render as chips. The workbench's
// register renderer -- colour-only, source verbatim; the story view // register renderer -- colour-only, source verbatim; the story view
// carries its own (view-story.mjs), the book's typography is not the // carries its own (view-story.mjs), the book's typography is not the
// tool's (GM, 2026-11-16). // tool's (developer, 2026-11-16).
/** @param {HTMLElement} target @param {?string} text @param {{ extract?: boolean }} opts @returns {{ status: ?string, conflict: ?string, agenda: ?string }} */ /** @param {HTMLElement} target @param {?string} text @param {{ extract?: boolean }} opts @returns {{ status: ?string, conflict: ?string, agenda: ?string }} */
function renderContent(target, text, { extract }) { function renderContent(target, text, { extract }) {
let body = String(text ?? ''); let body = String(text ?? '');
@@ -131,7 +131,7 @@ function renderContent(target, text, { extract }) {
// table-side display. The state machinery (status, agenda, the // table-side display. The state machinery (status, agenda, the
// retired delta tags) renders nowhere in the prose pane -- the // retired delta tags) renders nowhere in the prose pane -- the
// dedicated panes carry the derived state, the transcript // dedicated panes carry the derived state, the transcript
// carries the prose (GM, 2026-11-16) // carries the prose (developer, 2026-11-16)
const wrap = document.createElement('div'); const wrap = document.createElement('div');
wrap.className = 'tags'; wrap.className = 'tags';
for (const t of tags) { for (const t of tags) {
@@ -334,7 +334,7 @@ export function renderTranscript(entries, { onConflict, onRaw, onRewind } = {})
} }
flushBundle(); flushBundle();
if (e.t === 'msg' && e.reminder) { if (e.t === 'msg' && e.reminder) {
// the reminder never renders in the prose pane (GM, 2026-11-16): // the reminder never renders in the prose pane (developer, 2026-11-16):
// it is the same every turn -- the raw tab keeps every copy, // it is the same every turn -- the raw tab keeps every copy,
// the audit surface is its home // the audit surface is its home
continue; continue;
@@ -359,7 +359,7 @@ export function renderTranscript(entries, { onConflict, onRaw, onRewind } = {})
continue; continue;
} }
if (e.t === 'note') { if (e.t === 'note') {
// the state receipts never render in the prose pane (GM, // the state receipts never render in the prose pane (developer,
// 2026-11-16): the status/agenda notes -- the old delta applies // 2026-11-16): the status/agenda notes -- the old delta applies
// and the whole-list sets alike -- duplicate the panes; the raw // and the whole-list sets alike -- duplicate the panes; the raw
// tab keeps every receipt // tab keeps every receipt
+4 -4
View File
@@ -129,7 +129,7 @@ async function renderAdmin(seq) {
/** @param {import('./shapes.mjs').ProviderPayload} p @returns {string} */ /** @param {import('./shapes.mjs').ProviderPayload} p @returns {string} */
function providerStateLine(p) { function providerStateLine(p) {
if (p.phase === 'none') { if (p.phase === 'none') {
// the probe record is the card's truth (GM, 2026-11-19): an auth // the probe record is the card's truth (developer, 2026-11-19): an auth
// refusal opens the key path (never on o/f -- its auth failure is // refusal opens the key path (never on o/f -- its auth failure is
// upstream breakage, not a prompt); any other failure names // upstream breakage, not a prompt); any other failure names
// itself; no probe yet is a provider that was never scraped // itself; no probe yet is a provider that was never scraped
@@ -193,7 +193,7 @@ function renderProviderCard(p, seq) {
}); });
acts.appendChild(disc); acts.appendChild(disc);
acts.appendChild(refi); acts.appendChild(refi);
// the key control (GM, 2026-11-19): remove re-probes the keyless // the key control (developer, 2026-11-19): remove re-probes the keyless
// endpoint -- a provider gone public lands working, a locked one // endpoint -- a provider gone public lands working, a locked one
// re-opens the ask (that is the key-replacement path). o/f never // re-opens the ask (that is the key-replacement path). o/f never
// carries a key, so the control never shows on it. // carries a key, so the control never shows on it.
@@ -215,7 +215,7 @@ function renderProviderCard(p, seq) {
} }
card.appendChild(acts); card.appendChild(acts);
// the ask (GM, 2026-11-19): a provider whose last probe met an auth // the ask (developer, 2026-11-19): a provider whose last probe met an auth
// refusal opens the key path -- the token is checked on reception, // refusal opens the key path -- the token is checked on reception,
// saved on success, asked again on the next refusal // saved on success, asked again on the next refusal
if (p.probe?.outcome === 'auth' && p.slug !== 'opencode/free') { if (p.probe?.outcome === 'auth' && p.slug !== 'opencode/free') {
@@ -362,7 +362,7 @@ function fmtStamp(iso) {
return iso ? `${iso.slice(0, 10)} ${iso.slice(11, 19)} UTC` : '?'; return iso ? `${iso.slice(0, 10)} ${iso.slice(11, 19)} UTC` : '?';
} }
// the add flow (GM, 2026-11-19): the binary choice, and the probe // the add flow (developer, 2026-11-19): the binary choice, and the probe
// decides the key path. o/f is one click; custom opens the inline // decides the key path. o/f is one click; custom opens the inline
// form taking ONLY the endpoint -- a working keyless listing never // form taking ONLY the endpoint -- a working keyless listing never
// sees a key field. A 401/403 stands the provider broken and opens // sees a key field. A 401/403 stands the provider broken and opens
+4 -4
View File
@@ -25,7 +25,7 @@ import { renderRaw, renderTranscript, stickBottom, viaLine } from './transcript.
/** @type {?string} */ let rawRun = null; /** @type {?string} */ let rawRun = null;
let rawOpen = false; let rawOpen = false;
// --- the rewind (GM, 2026-11-17) ------------------------------------------------- // --- the rewind (developer, 2026-11-17) -------------------------------------------------
// //
// The GM's take-back, staged client-side and committed by the send: // The GM's take-back, staged client-side and committed by the send:
// clicking rewind on one of your turns fills the box with that turn's // clicking rewind on one of your turns fills the box with that turn's
@@ -431,7 +431,7 @@ function setInput(ok) {
// Her turn can run for minutes on a max-effort model, and a held-open // Her turn can run for minutes on a max-effort model, and a held-open
// request gives no sign of life. The progress route carries the // request gives no sign of life. The progress route carries the
// streaming callback's live record (the phase in flight, its running // streaming callback's live record (the phase in flight, its running
// chars) plus the scale the bar guesstimates against (GM, 2026-11-17: // chars) plus the scale the bar guesstimates against (developer, 2026-11-17:
// a guesstimate, but an informed one): the only true budget is // a guesstimate, but an informed one): the only true budget is
// max_tokens when the knobs set one (reasoning counts inside it), // max_tokens when the knobs set one (reasoning counts inside it),
// else her own history -- the longest turn she has completed in this // else her own history -- the longest turn she has completed in this
@@ -717,7 +717,7 @@ $('gm-send').addEventListener('click', sendTurn);
$('gm-input').addEventListener('keydown', (e) => { $('gm-input').addEventListener('keydown', (e) => {
if (e.key === ' ' && e.ctrlKey) { e.preventDefault(); sendTurn(); } if (e.key === ' ' && e.ctrlKey) { e.preventDefault(); sendTurn(); }
}); });
// text in the box blocks the rewind gesture (GM, 2026-11-17): the // text in the box blocks the rewind gesture (developer, 2026-11-17): the
// button disables and renames rather than hiding, so the affordance // button disables and renames rather than hiding, so the affordance
// says what unlocks it. Clearing the box re-enables it // says what unlocks it. Clearing the box re-enables it
$('gm-input').addEventListener('input', syncRewind); $('gm-input').addEventListener('input', syncRewind);
@@ -727,7 +727,7 @@ $('rewind-cancel').addEventListener('click', cancelRewind);
// -- the pre behind a transparent-text textarea renders the tokens in // -- the pre behind a transparent-text textarea renders the tokens in
// place. Every character stays (the asterisks too) so the caret never // place. Every character stays (the asterisks too) so the caret never
// desyncs from the visible glyphs, and the tokens are colour-only // desyncs from the visible glyphs, and the tokens are colour-only
// (GM, 2026-11-16): real faces shift advance widths and dragged the // (developer, 2026-11-16): real faces shift advance widths and dragged the
// caret with them -- same glyphs, same widths, only paint differs // caret with them -- same glyphs, same widths, only paint differs
const SIGIL_RE = /@(PC|Package)\b/g; const SIGIL_RE = /@(PC|Package)\b/g;
const VAR_RE = /\$([A-Za-z_][A-Za-z0-9_]*)/g; const VAR_RE = /\$([A-Za-z_][A-Za-z0-9_]*)/g;
+1 -1
View File
@@ -17,7 +17,7 @@ import { navigate, runGone } from './router.mjs';
/** @typedef {import('./shapes.mjs').StoryResponse} StoryResponse */ /** @typedef {import('./shapes.mjs').StoryResponse} StoryResponse */
// the story's own renderer, deliberately not the workbench's (GM, // the story's own renderer, deliberately not the workbench's (developer,
// 2026-11-16: one rule -- the table and the composer render // 2026-11-16: one rule -- the table and the composer render
// colour-only, source text verbatim; the book is the deliverable and // colour-only, source text verbatim; the book is the deliverable and
// earns its typography). Real faces, asterisks spent: *italics* is // earns its typography). Real faces, asterisks spent: *italics* is
+2 -2
View File
@@ -111,7 +111,7 @@ export function paneEditor({ section, body, empty, placeholder, rows, format, to
} }
// the sheet pane: the same stage-and-ride pattern as the block panes, // the sheet pane: the same stage-and-ride pattern as the block panes,
// JSON-typed -- the GM's ledger of arbitrated run state (GM, // JSON-typed -- the GM's ledger of arbitrated run state (developer,
// 2026-11-17: the model reads it, never writes it; her proposals // 2026-11-17: the model reads it, never writes it; her proposals
// arrive in prose). A record is a whole set: staging replaces the // arrive in prose). A record is a whole set: staging replaces the
// entire object, an empty object is a deliberate empty ledger. Bad // entire object, an empty object is a deliberate empty ledger. Bad
@@ -224,7 +224,7 @@ export function fmtCeiling(tokens) {
} }
// the model picks: per role a full spec {provider, model, effort} -- // the model picks: per role a full spec {provider, model, effort} --
// there is no unset effort (GM, 2026-11-18), and the params layer is // there is no unset effort (developer, 2026-11-18), and the params layer is
// the <mind> verb's alone (per-turn, nothing stored). The health // the <mind> verb's alone (per-turn, nothing stored). The health
// line under the rows is the invalidation surface: a pick the server // line under the rows is the invalidation surface: a pick the server
// no longer carries names what died and stays visible until the GM // no longer carries names what died and stays visible until the GM