diff --git a/AGENTS.md b/AGENTS.md index 7f65e75..70b1690 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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, observables), ROADMAP (decisions, steal list, substrate plan), QUESTIONS (the decision queue -- open items only), DECISIONS (the resolved record, keyed by the old queue numbers), DICTIONARY (the -terms of art), HANDOFF (working state). This file is -memory the agent owes itself across sessions. +terms of art, the roles inventory included), HANDOFF (working state). +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, manifests, or transcripts to save tokens. -- The GM drafts creative content; the agent drafts mechanical content. - "I draft, you cut" runs both directions. They edit files directly and - say "check it out" -- always re-read before reviewing or editing; the - last read never still holds. +- The developer drafts creative content; the assistant drafts + mechanical content. "I draft, you cut" runs both directions. They + edit files directly and say "check it out" -- always re-read before + reviewing or editing; the last read never still holds. - They think across several lines at once and answer in batches; silence on a proposal usually means "not persuaded, moving on." 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.) - Reviewing their creative work: check coherence against the rest of the system, flag ripples, name what works and why -- the verdict on - creative content is theirs. GM-private files (gm.md) are never edited - and only flagged. -- **No legacy (GM, 2026-11-18):** when a shape changes, change it, + creative content is theirs. The developer's gm.md files (authored + content, the package author's seat) are never edited and only + 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 - 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 -- the log serves a purpose, and the purpose isn't broken because the server got an update; it is not court evidence). The one 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 message content) are mechanical and mine to do. - Standing agreements (folded from the handoff's working-agreements section when it slimmed, 2026-11-15): character and world work is - done together, unhurried ("we'll get there together"); the GM runs - on organic memory and takes no notes -- the system is the prosthesis, - their lever is narrative, never mechanical; they answer point-by-point - and expect pushback in both directions; gm.md is GM-private, never - pasted to any model; rolls (`pick`) are legitimate at drafting time -- - rolled values are proposals with the alternates listed for easy - swaps; hard limits in `system.md` are absolute. + done together, unhurried ("we'll get there together"); the developer + runs on organic memory and takes no notes -- the system is the + prosthesis, their lever is narrative, never mechanical; they answer + point-by-point and expect pushback in both directions; gm.md is + authored content, never pasted to any model; rolls (`pick`) are + legitimate at drafting time -- rolled values are proposals with the + alternates listed for easy swaps; hard limits in `system.md` are + absolute. ## Writing prompt-bound text - **Plainness over subtlety.** Learned 2026-11-13: my content-stance prose was aphoristic ("the weather is hers", "the camera keeps to - her side") and the GM -- the co-designer -- could not decode most of - it. Their rewrite named the thing (erotica), stated rules as - behavior (strike down unwanted advances; don't play anticipated - leads to please the GM), and stated the thesis outright (nothing - lives in a special bucket). Match that register. + her side") and the developer -- the co-designer -- could not decode + most of it. Their rewrite named the thing (erotica), stated rules + as behavior (strike down unwanted advances; don't play anticipated + leads to please the developer), and stated the thesis outright + (nothing lives in a special bucket). Match that register. - Metaphor survives only when cashed out in the same breath -- "tense is the camera: present while the scene plays -- example -- past to 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 safe and stay. - 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 invariants), and the example shows the tolerated form. Don't flag 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 to temp first, smoke on the clean slate, then clean-replace it back (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 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. - The edit tool matches bytes, and the console renders dashes 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 mock server starts (it exits without one), and run npm.cmd 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`, 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 has hiccups, so a connection timeout is not proof the server is 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 +- **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 probe, the key path opens only on a 401/403, no automatic 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. 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`, a list of (baseUrl, auth) pairs, auth optional.** The scaffold's 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) so the merge and tagging are smoke-proven. Config files: the 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 hand-migrated to the vector. Verified: typecheck green both 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 VM, bare but ready.** The connection specifics (address, port, 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 (fstab'd, swappiness 10). Ruled, not yet built: TLS terminates in caddy (automatic TLS-ALPN-01 -- the 443-only challenge, right for the HTTPS-only forward), node stays loopback http behind the 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 current-stable is safe, though dev still runs 22.15); the deploy pipeline is its own discussion (a gitea runner the leading idea). Orientation only -- nothing runs there yet, no code deployed, no caddy installed. - **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 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 conflict DESCRIBES ITS PROBLEM IN FULL, quoting the offending 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). - **The rewind round is BUILT (2026-11-17, verified into 11-18, 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 my cut-event proposal: physical truncation, not typed entries -- 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 system chunk at the freshest end, NEVER a canon-point stamp, which 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; "you may propose adding things" is her schema-evolution channel), 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 zero console errors (staging, pending marker, the ride, the scan 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 a row there and was wrong), the identity tier lost its loose "character sheet" name (the term is technical now), DICTIONARY gains the sheet entry with the dice-retired/sheet-arrived history, ROADMAP gains the bookkeeper extension (the parked - arithmetic-sibling agent: staged edits, curator fallback, - per-package opt-in). The GM's prompt-side edits ride the same + arithmetic sibling -- the bookkeeper: staged edits, curator fallback, + per-package opt-in). The developer's prompt-side edits ride the same round: invariants' sheet section, the reminder's inventory line, la-caramba gm.md lore (the spine discussion). PARKED with the - GM: the box package (WIP, theirs) is the first consumer; the - bookkeeper agent; a live turn on a real model with a sheet. + developer: the box package (WIP, theirs) is the first consumer; the + bookkeeper; a live turn on a real model with a sheet. - **The progress round is BUILT COMPLETE (2026-11-17, committed 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 prompted it -- her one max turn thought 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 carries steps {total, done, label, chars} -- total = models + the 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 label names the running call down to the ladder sample, every completion lands a receipt line (elapsed seconds + verdict), and 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 boundary -- why the provider went first), writing at the resolve, 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 meter (loop.mjs s.progress per provider call, GET /progress route + 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 resolution, ~4 chars a token); else the scale is her own history -- 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 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 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 lit, stepping ONLY when chars arrived -- never a free-running 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 phase flips thinking->writing at the streaming boundary, the scale 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 across polls), and the registry gained the effort measurements -- 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 model, effortDefault = the argmax mean over minimal..max ('none' 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 display block, BOTH the loop's live push and renderView's 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 reasoning_effort 'none' doubles as a standardized thinking-off 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 one truth for status and agenda, the db tiers are retired.** 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 shows the GM what sank. The stamp renders canonical formats: 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 reworked -- no save callback, staged state + pending marker + 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 sees the blocks overwritten with GM's edits attached to her 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, field-sizing: content grows it with the turn, max-height 50vh 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 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 @@ -602,13 +646,13 @@ memory the agent owes itself across sessions. not deliberate" line; the host's network hiccups killed the curator call twice -- the fallback (machine labels, deterministic 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 reasoning bucket (within-bucket counts are noise -- the thresholds 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 - 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 tunables UX round is BUILT (2026-11-16): the knob definitions 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 riding the slidwin tail never refuses a start); the housekeeping 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): JSON in a player turn sets its sampling for its NEXT turn -- rulings: tag form, one-shot, no GM lock, JSON inside the tag, max_tokens 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 the range named in the conflict, the heal restatement is the 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 agenda-set verb evicts over-cap silently for GM and player 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 start gate seeds the clerk from her last authored turn's blocks; 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 mints/revokes invites and users; revocation destroys identity (new 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 replaced, `forked: unixtime` stamped, no lineage. Packages split 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 reminder (DECISIONS #34, steal #11 done): reminder.md is repo-shared, 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. - Substrate design round complete (2026-11-13); rulings live in ROADMAP ("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 the port and silently answers with OLD code while the new one dies on bind (bit me once; two accidental live turns resulted). -- Gotcha (2026-11-14, GM): **never call browser.screenshot** -- the - image return breaks the session (glm-5.3 is not multimodal; the GM +- Gotcha (2026-11-14, developer): **never call browser.screenshot** -- the + image return breaks the session (glm-5.3 is not multimodal; the developer had to rewind once). Verify UI text-safely: browser.snapshot (accessibility tree), browser.console, browser.network. If real vision is ever needed, the endpoint carries multimodal deepseek-v4.1 -- but prefer never needing it. -- Gotcha (2026-11-14, GM): **no JS alert()/confirm()/prompt() in the - SPA** -- they block the embedded browser pane (the GM sat locked out +- Gotcha (2026-11-14, developer): **no JS alert()/confirm()/prompt() in the + 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 fumbling). In-page UI only: the banner for notices, two-click arm 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. - Test-state discipline (2026-11-14): the deployment's state/ is real -- 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 (dead once a superuser exists), but test users make the deployment 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 databases keep them. After any rewind, external state is the truth: 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 - 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 the replay button (nothing applied). **Status discipline: RESOLVED** by the agenda (DECISIONS #32/#33). **Verbosity**: completions lengthened 103 -> 668 chars across session one; the per-turn reminder 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 it is -- logs and db untouched, no replay, no continuation, no 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 the first real housekeeping pass (step 2). Plan of record: 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; removed. Working lessons from the build: the mock model's script 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 + terminology through c51d310; multiuser + agenda + reminder through 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 is the problem, never the visual -- rendered glyphs travel 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 de-capped (source-case labels now -- waits match source text), the 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 prose files (la-caramba's backdrop rode one into every bundle), README's "256K-class window", ROADMAP's "rides the prelude". The 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 code is the ruled one-time exception (which is why the term check scopes to living prose, not code). 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 turn must keep its / blocks (that ride is the status/agenda blocks' only channel from session two on); any new path that reads a run file for sending goes through expandVars (turn0() initially didn't); the transcript must surface failed session-open notes (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 against the users table, never swept on disk; same-verb delta blocks 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. CLI note: the run summary is `report` now; `status` is the tier verb. -- Postulates (GM, 2026-11-14): female PCs only (names are gendered; - DECISIONS #2 closed by it). packages/detention is GM WIP (2026-11-17): +- Postulates (developer, 2026-11-14): female PCs only (names are gendered; + 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. - Boutique: the GM emptied it wholesale + Boutique: the developer emptied it wholesale (2026-11-15 -- it kept being a noisy problem); placeholder files only, no content anywhere. Still do not fix or design it 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 back un-eaten, the log records the expanded line -- continuation 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 assembled system message in the bundle card); anything that prompts - an internal agent (housekeeper.md) is never exposed. Don't hide - bundle parts, don't surface agent prompts. -- Dates principle (revised 2026-11-14, GM): **no model-facing surface + an internal inferencer (housekeeper.md) is never exposed. Don't hide + bundle parts, don't surface the internal inferencers' prompts. +- Dates principle (revised 2026-11-14, developer): **no model-facing surface 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 real, mechanical (LRU/overflow/sinking), never rendered; GM-facing 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 below. - Watch: the "never open with world narration" rule was cut as - superfluous by the GM -- reinstate only if testing shows drift. -- README observable #14 reads correctly as-is (GM, 2026-11-15): a + superfluous by the developer -- reinstate only if testing shows drift. +- README observable #14 reads correctly as-is (developer, 2026-11-15): a turn is one thing -- the reminder's zero-or-one-action plus bounded speech is the structure OF the thing, not a looser count. 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 record is DECISIONS.md (the old queue, kept by number). QUESTIONS is 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 provider default), the turn-surgery details with the rewind round. - The tree is usually dirty by design; git status is not an alarm. diff --git a/DECISIONS.md b/DECISIONS.md index d2553d1..7eaa075 100644 --- a/DECISIONS.md +++ b/DECISIONS.md @@ -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 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) ### 1. The PC token in system.md -- RESOLVED (2026-11-12) diff --git a/DICTIONARY.md b/DICTIONARY.md index 6567b21..7f37fee 100644 --- a/DICTIONARY.md +++ b/DICTIONARY.md @@ -8,25 +8,74 @@ WORDS. ## The people and the models -- **the GM** -- the human running the world: every NPC, every - consequence, all retcons. Runs on organic memory; the model's canon - files are the prosthesis. Always a human, never a model. -- **the player** -- the player-model: the LLM playing the one PC. +The roles inventory (2026-11-19): every human and inferencer seat this +project can refer to, in one place. A role is a seat, not a person -- +one human wears many hats (the op can also be a run's GM; the +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, - 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 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. -- **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, never clerical work; never plays, never edits files. Its prompt (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, 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 @@ -103,8 +152,8 @@ e character, ring-b, ring-a. Session-specific: the craft files are the session's own frozen copies (from the package for session one, from the previous session afterwards, editable during dormancy). - Everything in it is inspectable read-only in the SPA; agent prompts - never enter it. + Everything in it is inspectable read-only in the SPA; the internal + models' prompts never enter it. - **the carryover** -- every session's opening material, one format (`carryover.jsonl`, raw log events). Session one's is authored in 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 newest blocks. The log keeps her words verbatim; the raw surfaces 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 `` block, the setting's prose gives the fields meaning. The second state 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 re-applies, and hand edits made in between are overwritten. The 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//log/.md`: what the housekeeper declared, cross-checked against the dump diff. The `events` table is the journal underneath; both are write-only for @@ -230,7 +279,7 @@ e - **$TOKENs / vars** -- template variables the prompts declare themselves; setup collects them; the run's `settings.vars` holds the answers. -- **deltas** -- RETIRED (2026-11-16, GM): the diff verbs +- **deltas** -- RETIRED (2026-11-16, developer): the diff verbs (``/`` on the status, ``/`` on the agenda) are gone with the full-block protocol -- she emits whole lists now, and the miss-conflicts (bad drop indexes, not-in-status @@ -239,7 +288,7 @@ e - **conflict** -- the self-heal message: a `` block sent as 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 - 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 describes its problem in full, quoting the offending emission, 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 must not remember roads not taken; the housekeeper must not file 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` survives as the GM's drafting dice -- CLI-only, never model-facing. - **the reminder** -- `reminder.md`: the turn-composition procedure, @@ -300,7 +349,7 @@ e - **the meter** -- the context meter: prompt-token usage of the last call against the contwin; loud past 85%. - **contwin** -- the context window, under its own name (coined - 2026-11-14, GM: the word "window" is beyond overloaded, so even + 2026-11-14, developer: the word "window" is beyond overloaded, so even this use got renamed). The config key in server.json is `contwin` (`contextWindow` is still accepted). - **mock mode** -- `--mock`: the scripted fake model that proves the @@ -324,7 +373,7 @@ e render to a model. - Ids are anonymous hex; display is "Package / PC"; run ids carry no 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: glyphs that must render travel ASCII-safe (HTML entities, `\u` escapes in JS), never verbatim. Punctuation conventions: the em @@ -332,7 +381,7 @@ e middle dot renders via `\u00b7`. Gitignored state (runs/, state/, server.json) is per-deployment and exempt. Enforced by `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: `text-transform` (any value, inline styles included), generated 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 window. The first run caught real drift: README said "a 256K-class 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 data migrates once (the clerk normalizes on open), and anything left on the old name fails loudly. Upstream words (the DOM's @@ -355,10 +404,10 @@ e ## 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, 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 shims): the machinery renamed too -- the `status`/`status-apply`/ `status-set`/`status-ingest` verbs (the run summary command is @@ -366,7 +415,7 @@ e `detail.status` field, the `status-*` journal ops. Old data migrates once, in the clerk; historical records (resolved QUESTIONS entries, build logs) keep the vocabulary of their day. -- **window -> session** (2026-11-14, GM). Reasons: to a user, +- **window -> session** (2026-11-14, developer). Reasons: to a user, "closing a window" means exiting the program; and "context window" already owns the word here -- one project, one window, and it is the context window (that last carve-out was superseded later the @@ -379,7 +428,7 @@ e logs carry `window`-kind notes (readers accept both), pre-rename manifests carry the `window` key (the clerk dual-accepts), and pre-rename dumps embed their own old schema and self-migrate. -- **the window machinery renamed too** (2026-11-14, GM: "invisibles +- **the window machinery renamed too** (2026-11-14, developer: "invisibles gone as well"). What survived the first sweep as private plumbing is renamed like everything else we own: element ids `session-info`/`session-open`, the route `POST /sessions`, the @@ -388,17 +437,17 @@ e rename migration, data-preserving). Words we do not own are consumed from upstream as-is: the DOM's `window`, the OS's window. -- **context window -> contwin** (2026-11-14, GM). The word "window" +- **context window -> contwin** (2026-11-14, developer). The word "window" is retired entirely -- even the context window gets its own name, so nothing in the project says "window" on any surface. The config key is `contwin`; the old `contextWindow` key is dual-accepted so existing deployments keep booting. Same coinage pattern, later the same day: the carry's mechanism is the **slidwin** (2026-11-15, 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 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 sequence of log events, the same format every session's carryover 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 file, the send-as-first-GM-turn path, status-ingest) is deleted, 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 housekeeping manifest, housekeeper vocabulary, applied at run creation through the standard apply path. The seed verb dissolves (creation applies it; "the run already has its rings" is the whole 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 diff --git a/HANDOFF.md b/HANDOFF.md index ec34d77..89baec0 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -9,6 +9,96 @@ file is the "where did we leave off" map. ## 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 u:") 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//dumps and packages//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, GM-designed in conversation): discovery is the probe, the key 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 turn, real memory seeds, a gm.md (the task stream, the facility's voice, the release-target ruling) -- its current seeds are - la-caramba leftovers. `packages/detention/` and - `packages/template/` are also WIP, untouched. + la-caramba leftovers. `packages/detention/` is WIP, untouched; + template and box are committed (`e60fd63`). - **The deployment thread (2026-11-18): the box is oriented, the story is ruled, the build has not started.** A burble VM (Debian 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 runner on the box, stage-and-signal, no test gates in it (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 empty provider list -- playable with zero secrets. Unverified: 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). state/ holds the refined registry (per-provider shape on disk, migrated in the no-legacy pass) and the provider config -('llm-exan-tech', default glm-5.3 at max). Five commits await -the GM's push (`bbaf336`, `5279dd3`, `eefb721`, `53f992a`, -`14b9b01` -- the ssh key takes a passphrase, pushes are the -GM's), with the provider round and the no-legacy pass staged -beside them. +('llm-exan-tech', default glm-5.3 at max). Seven commits await +the developer's push (`bbaf336`, `5279dd3`, `eefb721`, `53f992a`, +`14b9b01`, `e60fd63`, and this round -- the ssh key takes a +passphrase, pushes are the developer's). ## Immediate next steps, in order @@ -313,9 +402,9 @@ beside them. box-side install (nvm + current stable node, runner registration). The first start under multiuser rides this: the op's bootstrap-invite claim happens ON the box. -2. **The fresh run.** Create it from la caramba - its files), pick the model and the effort at create time, and - play -- on the debug server or the deployment, the GM's choice. +2. **The fresh run.** Create it from la caramba (re-edit its + files as desired), pick the model and the effort at create time, and + 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 first live test (the audience doctrine, the typography rule, the no-echo teaching), the reminder's checked-action metrics, diff --git a/QUESTIONS.md b/QUESTIONS.md index 995e1c0..89b7e3a 100644 --- a/QUESTIONS.md +++ b/QUESTIONS.md @@ -10,7 +10,7 @@ DICTIONARY.md, or the prompts. Tiered by urgency, FIFO within a tier. ### 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 settled (DECISIONS #19). diff --git a/README.md b/README.md index 94bd01b..1d344c5 100644 --- a/README.md +++ b/README.md @@ -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 roleplaying harness -- something people can enjoy making long stories 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 -get the functionality without the host disclosing secrets and without +running instance. The inference key lives on the backend, so invited users +get the functionality without the op disclosing secrets and without bringing their own model. Correspondingly: this repo ships code and authored content only -- no run state, and never a secret in cleartext (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 - **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. -- **Player-model = one PC.** Inner life, voice, choices. Nothing else. Reads + Runs on organic memory -- no notes. The canon files are the prosthesis. +- **The player = one PC.** Inner life, voice, choices. Nothing else. Reads 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 semantic operations. Judgment, no clerical work. - **`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 state) and an optional `server.json` -- bind and contwin only; the 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 else: no usernames, no passwords, no external IDPs. A single-use 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 {provider, model, effort} -- there is no unset effort (it 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 verb's alone. The provider's default pair (the op's selection, also the refine 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 battery disqualified -- the run blocks with the note naming what 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. - 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 read-only alongside) -> **start** -- which takes dormant session one 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//backdrop.md`: the world as everyone 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, read-only. Pre-existing records are not its business -- file those ahead of play with `file --gm`. -5. **Create the run** -- `node tool/memory.mjs create `: +5. **Create the run** -- `node tool/memory.mjs create ` + (the API create route wraps the same clerk call; through the SPA + it is home -> new run): the package is copied into `runs//` -- the craft prompt (`handbook.md`) rides along, battery included -- landing where it 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 rest never render on any model-facing surface. Records work travels the tools (`records_search`/`file`/`amend`/`discard`) when - the run provides them; the CLI equivalents remain for the GM (`--gm` - marks GM-authorized writes). The full play protocol -- format, + the run provides them; the CLI equivalents remain the + 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 over realism -- lives in `system.md`, `invariants.md`, and `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 picked one, and the opening carryover renders as ordinary history (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 next dormant session's carryover, freezes this one, and runs housekeeping over what remains. @@ -365,8 +373,11 @@ consumes into the log, in one action. `sessions//log/.md`, re-renders the views. A rejected manifest changes 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. -7. **Review the log, veto or edit as desired, commit.** GM edits go through - `insert` / `delete` / `revive` commands. +7. **Review the log, veto or edit as desired.** Memory edits go + 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 @@ -527,9 +538,9 @@ minors, gratuitous violence. These live in `system.md`; edit them there. ## Housekeeping -This directory is a git repo. Every housekeeping pass should end in a commit. -The **primary audit surface is `packages//dumps/memory.sql`** -- the canonical dump: -id-ordered, one row per line, auto-written by every mutation. Because the +The **primary audit surface is the per-session dump** +(`runs//sessions//dumps/memory.sql`): id-ordered, one row per +line, auto-written by every mutation. Because the 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 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 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 -the db with a sqlite browser, run `dump` afterwards and confess in the -commit message.) +the db with a sqlite browser, run `dump` afterwards.) The dump is +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 -`packages//db/memory.db` is a gitignored local cache -- fresh clone: -`node tool/memory.mjs restore` (per run). The `canon/` views stay committed -as provenance -- exactly what the models were sent -- and `log/` + +The dump is restorable SQL; the binary `memory.db` (one per session, +copied forward at stop) is rebuilt from it by +`node tool/memory.mjs restore` (per run). The `canon/` views stay as +provenance -- exactly what the models were sent -- and `log/` + `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. **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 append-only jsonl is the truth, the live context is a view under 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 `tool/bridge.mjs` is deleted: it never went live, and the server 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 default model spec -- live in `state/config.json`, written only by the server, managed from the SPA's admin block. `server.json` (gitignored, optional) is the static remainder: `bind` and `contwin` (the context budget in tokens). No legacy config shapes are read: 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 rule, broadly: an error that can be mechanically fixed to a 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 another provider stands. Custom providers add from the SPA taking 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) stands the provider broken and opens the key path -- the key rides 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 tool-calling part is the smallest component, because the provider does the structured emission and the clerk already speaks function-shaped. If -player-side status maintenance proves too costly for the player-model's -attention, the fallback is a dedicated status-keeper agent reading -transcripts -- same pattern as the housekeeper, smaller job. +player-side status maintenance proves too costly for the player's +attention, the fallback is a dedicated status-keeper invocation +reading transcripts -- same pattern as the housekeeper, smaller job. **Model discovery** is per provider, the op's acts from the SPA's 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 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 -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 selection prompt pre-selects and the recommendation informs, no 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 its models), and a refine that sees the same tuple reuses the 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 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 -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 manual retry -- the send again, the housekeeping re-run, the refine 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) housekeeper.md the housekeeping prompt -- repo-fed at housekeeping, never copied 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 are inspectable read-only in the SPA) 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 DICTIONARY.md the terms of art -- the ruled names, one source of 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 config.json the default package 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 sessions from the session logs on 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 /session (raw, the audit surface), GET /table (the play view), GET /story (the whole deliverable), diff --git a/ROADMAP.md b/ROADMAP.md index 158d427..dfbad92 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -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) -- inventorise possible human roles (clear distinction between GM and the developer) -- revisit the debug mode, hardcode loobpack +- revisit the debug mode, hardcode loopback - "create new package" in SPA -- sec review +- external sec review - refactor to add first-class GM agent - entirely safe-for-work package. space? vault? - 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. ## 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 never-started runs. Opening it to any dormancy raises unanswered questions: which carryover rides (the dormant session's story tail diff --git a/housekeeper.md b/housekeeper.md index fdd9ac9..01c2201 100644 --- a/housekeeper.md +++ b/housekeeper.md @@ -1,7 +1,7 @@ # Role 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 memory -- not by editing files, but by emitting a **manifest** of semantic operations. A script applies your manifest to the memory database; if a diff --git a/server/bundle.mjs b/server/bundle.mjs index c209ccc..193cb74 100644 --- a/server/bundle.mjs +++ b/server/bundle.mjs @@ -190,7 +190,7 @@ const RECORD_TOOLS = [ /** @param {string} runId @returns {import('./shapes.mjs').ToolDef[]} */ 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 // verbs are rewind-compatible the manifest carries ask_gm alone, // whatever the run's settings say. The CLI's --gm path is diff --git a/server/carry.mjs b/server/carry.mjs index 783d616..139927c 100644 --- a/server/carry.mjs +++ b/server/carry.mjs @@ -39,7 +39,7 @@ function visibleBytes(lines, eff, i) { return String(e.m.content ?? '').replace(STRIP_BLOCKS, '').length; } 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 // the prose it now is return String(e.m.content ?? '').length; diff --git a/server/discovery.mjs b/server/discovery.mjs index 67ca555..9b97885 100644 --- a/server/discovery.mjs +++ b/server/discovery.mjs @@ -1,7 +1,7 @@ // server/discovery.mjs -- model discovery: the per-provider registry. // // 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 // metadata only, zero inference. Writes that provider's registry // 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 * no section (removal deletes it); a provider not yet discovered * 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. * @returns {?ModelRegistry} */ export function registry() { @@ -220,7 +220,7 @@ async function thinkingTokens(ctx, slug, id, params) { * (two samples, the battery's granularity). The default is the * level with the highest observed mean -- `none` is never a * 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 * measured default never rides a turn implicitly -- it pre-selects * 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 * model at the effort the deployment will actually send, and the * 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. * @param {string} slug @param {string} id @param {string} effort @param {string} cm @param {string} ce @returns {string} */ 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: 'user', content: JSON.stringify(facts, null, 2) }, ]); - // attribution (#22): every LLM call names the acting user - console.log(`${new Date().toISOString().slice(11, 19)} llm ${curatorSpec.model} u:${user?.id ?? '?'}`); - // no automatic retries (GM, 2026-11-19): every inference call is + // attribution (#22): every inferencer call names the acting user + console.log(`${new Date().toISOString().slice(11, 19)} inferencer ${curatorSpec.model} u:${user?.id ?? '?'}`); + // no automatic retries (developer, 2026-11-19): every inference call is // user-initiated and every act has its manual retry -- the refine // button again. A dead call lands the fallback, which is the // 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 }; // the recommendation: intel only, strictly validated -- a passing // 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) let recommendation = null; 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}`); const section = sectionOf(slug); 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 const curatorSpec = provider.default; 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 // step instantly -- it is a completion, not a wait) plus the // 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 // completion lands a receipt line -- the lines survive the job, so // a rejected pass keeps its post-mortem @@ -484,7 +484,7 @@ export function refine(ctx, slug, user) { } else { 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]); - // 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 // 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' : ''}`); @@ -543,7 +543,7 @@ export function refine(ctx, slug, user) { // the cache write-back: every final PASSING entry lands under // its key -- the labeled result, not the bare probe (the cached // 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 // is retried at every refine until it stops being one for (const [i, m] of models.entries()) { diff --git a/server/housekeeping.mjs b/server/housekeeping.mjs index 91f3d7d..3268243 100644 --- a/server/housekeeping.mjs +++ b/server/housekeeping.mjs @@ -6,7 +6,7 @@ // carryover, freeze the finished one, then run the pass. With a // 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. -// 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 // 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) { const meta = ctx.runMeta?.(runId) ?? /** @type {RunMeta} */ ({}); // 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) let spec = specFromMeta(meta.models?.housekeeper, 'housekeeper'); 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)'); gateSpec(ctx, spec, 'housekeeper'); const params = { reasoning_effort: spec.effort }; - // attribution (#22): every LLM call names the acting user - console.log(`${new Date().toISOString().slice(11, 19)} llm ${spec.model} u:${user?.id ?? '?'}`); + // attribution (#22): every inferencer call names the acting user + 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); return { content: data.choices[0].message.content ?? '', model: spec.model }; } diff --git a/server/loop.mjs b/server/loop.mjs index 3b3b2a3..3228155 100644 --- a/server/loop.mjs +++ b/server/loop.mjs @@ -4,7 +4,7 @@ // pauses mid-turn -- the whole tool-call batch waits (pairing stays // sound), the request returns with the pending question, and the // 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 // // blocks ride at her own tail, the view // 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 @@ -61,7 +61,7 @@ function needSession(ctx, runId) { export async function gmTurn(ctx, runId, line, user, override = null, sheet = null, send = null) { const s = needSession(ctx, runId); 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 // means a stale tab -- refuse before anything rides, rewind or not 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) { 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 // happens here -- after the line expanded cleanly, so a refusal // truncates nothing -- and as one landing with the turn: the log is @@ -151,7 +151,7 @@ async function runLoop(ctx, runId, user) { for (;;) { const view = renderView(s); // 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 // only params source now: per-turn, hers, spent on completion // (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 }; } else { via = { model: spec.model, provider: spec.provider, params }; - // attribution (#22): every LLM call names the acting user - console.log(`${new Date().toISOString().slice(11, 19)} llm ${spec.model} u:${user?.id ?? '?'}`); + // attribution (#22): every inferencer call names the acting user + 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 // or tool round restarts it), fed by the streaming deltas 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, - // 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 // means unchanged, never blank; a present-but-empty block is a // deliberate clear. Same-verb blocks combine into one set. No @@ -275,9 +275,9 @@ async function runLoop(ctx, runId, user) { } // the block is display-only: the read side of the mind // verb, never hers to emit. The 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 - // 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 // only visible trace of what went wrong if (//.test(text)) { @@ -308,7 +308,7 @@ async function runLoop(ctx, runId, user) { } /** 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 * records refuse loud. * @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`); } -/** 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 * config, a model gone from its provider's registry, a model the * battery disqualified -- all one state: the run blocks until the @@ -359,11 +359,11 @@ export { specFromMeta, gateSpec, resolveSpec }; // --- the mind verb ------------------------------------------------------------ // // {"temperature": 1.4} -- 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 // JSON object -- models emit JSON natively; the parameters need no // 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 // the picked variant's text after the final message, merged over the // 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 * wrong thing is named -- the caller rides the conflict path, and * 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 -- * the block itself strips from the view, the conflict is what * remains. diff --git a/server/main.mjs b/server/main.mjs index 46c734b..f3b7e7f 100644 --- a/server/main.mjs +++ b/server/main.mjs @@ -42,7 +42,7 @@ const MOCK = process.argv.includes('--mock'); const DEBUG = process.argv.includes('--debug'); // identity bypass: everyone is the superuser // 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 // the boot: a fresh deployment with no config at all comes up // serving, mints the superuser invite, and shows the global @@ -60,7 +60,7 @@ if (fs.existsSync(SERVER_JSON)) { } } 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 // human input gets fixed. The empty provider list is one: the // 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} */ 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 // 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 @@ -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 // 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 @@ -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). // Discovery is the probe: an auth refusal (401/403) leaves the // 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 // 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 // that still meets the refusal is never saved, the previous state // 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 // replacement, the second half being the ask, which re-opens when // the keyless probe meets the 401 again. The removal stands whatever @@ -1199,7 +1199,7 @@ function readOverride(body) { 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 -- // 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 @@ -1214,7 +1214,7 @@ function readSheet(body) { return /** @type {Record} */ (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: // rewind names the GM turn (a log line index) this send replaces -- // 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))) }; }); -// 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 // against -- the session's own history: her longest past turn in // characters (thinking and prose both, the units the meter counts). // No history means no scale: the client falls back to the // 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. route('GET', '/api/runs/:id/progress', async ({ params, user }) => { requireOwner(user, params.id); diff --git a/server/providers.mjs b/server/providers.mjs index 1b00067..b0a0861 100644 --- a/server/providers.mjs +++ b/server/providers.mjs @@ -1,13 +1,13 @@ // 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 // it -- {model, effort}, never params (those are per-turn, 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 // are read: the config is born in this shape, and shape changes come // 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 // fallback, the harness thesis in one entry (playable with zero @@ -106,7 +106,7 @@ export function addBuiltin(cfg) { 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 * error state, and the fallback is what keeps it unreachable. * @param {DeployCfg} cfg @param {string} slug @returns {string} an error message, or '' when removable */ diff --git a/server/session.mjs b/server/session.mjs index 8835695..e094a86 100644 --- a/server/session.mjs +++ b/server/session.mjs @@ -20,7 +20,7 @@ // (the last few and every ask_gm answer stay), old GM-side // / blocks elide from GM prose -- the current status // 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').LiveSession} LiveSession */ /** @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 * 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, * 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 @@ -367,7 +367,7 @@ export function findStalledStop(runId) { 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 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 // 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 // carryover is real conversation: msg, tool, note, and req events // (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 (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`); - // 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, // composed by renderView, never authored by anyone. Hers would // 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'); - // 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 // model turns has no canon point to stamp 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]], }); } - // 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 // stamp renders them, the panes derive them. No seeding, no // 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' }, ...bundle.map((m, i) => /** @type {LogEvent} */ ({ t: 'bundle', m, part: partNames[i] })), ...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 // rewind may only ever target GM turns below it { t: 'note', kind: 'start' }, @@ -709,7 +709,7 @@ export function renderView(s, keepToolResults = 4) { // 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 // 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); let lastProse = -1; s.lines.forEach((e, i) => { @@ -744,7 +744,7 @@ export function renderView(s, keepToolResults = 4) { content = content.replace(STRIP_HERS, '').trim(); if (e.via && Object.keys(e.via.params ?? {}).length) { // 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 const shownVia = { ...e.via.params }; 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; msgs.push(m); } 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 // why conflicts must be self-contained -- describe the problem // 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 // canon-point stamp, which would read as her words. One live copy by // construction (assembled once per view, not logged per turn). An diff --git a/server/shapes.mjs b/server/shapes.mjs index eccbee1..6a4d897 100644 --- a/server/shapes.mjs +++ b/server/shapes.mjs @@ -66,7 +66,7 @@ export {}; * scan reads it newest-wins (it loses to any emission inside the * tail by position). */ /** @typedef {{ t: 'note', kind: 'state', status?: string[], agenda?: string[], sheet?: Record }} 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 * opening (authored or carried) above it is what a rewind can never * 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. */ /** @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 * reasoning effort, all three required (there is no unset effort: * 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 * specs, per role. (The retired per-run params layer is gone - * entirely, GM, 2026-11-18: params are per-turn via , and the + * entirely, developer, 2026-11-18: params are per-turn via , and the * no-legacy rule migrated the last carrier away.) */ /** @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 * measured mean thinking per level of the ladder; effortDefault is * 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 * 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|null, efforts?: ?Record, 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 * {model, effort} -- intel only, shown post-refine, applied by the * 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). */ /** @typedef {{ phase: 'preliminary'|'refined', discovered: string, refined: ?string, models: RegistryModel[], curator?: ?string, recommendation?: ?{ model: string, effort: string } }} RegistrySection */ diff --git a/server/variants.mjs b/server/variants.mjs index 95faa22..8a2bb3d 100644 --- a/server/variants.mjs +++ b/server/variants.mjs @@ -3,7 +3,7 @@ // A player turn may be variant literature: several complete candidate // turns in one block (one each), each carrying // 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 // survive in the session log alone (she must not remember roads not // taken; the housekeeper must not file fiction-that-never-was). diff --git a/test/check-repo.mjs b/test/check-repo.mjs index 0d3e559..3692ac5 100644 --- a/test/check-repo.mjs +++ b/test/check-repo.mjs @@ -2,44 +2,46 @@ // git-tracked files; no server needed: // 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 // per-deployment and exempt. The ENCODING is the problem, never // the visual: rendered glyphs travel ASCII-safe (\u escapes in // 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 // styles included), no generated content (content:, ::before and // ::after included), no caps font variants. Authored content is // 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. -// gm.md files are exempt -- GM-private, flagged to the GM, never -// agent-edited. +// gm.md files are exempt -- the run's GM's private file, authored +// content: flagged to the developer, never assistant-edited. // 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 // status), window (the old session; a line naming contwin may // 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. // Historical records keep the vocabulary of their day; gm.md is -// GM-private, flagged never fixed. -// 5. Zero-dependency runtime (GM, 2026-11-13, amended 2026-11-15): +// the run's GM's private file, flagged never fixed. +// 5. Zero-dependency runtime (developer, 2026-11-13, amended 2026-11-15): // every import is node: builtin or relative -- no runtime deps, // no package-manager requirement to run. Dev tooling is exempt // (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. // 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 // API route (bit once, 2026-11-14). -// 8. The bundle boundary (GM, 2026-11-14): server/bundle.mjs names -// neither gm.md (never model-facing) nor housekeeper.md (agent -// prompts never enter the bundle). -// 9. Seeds carry no date keys (GM, 2026-11-14): no model-facing +// 8. The bundle boundary (developer, 2026-11-14): server/bundle.mjs names +// neither gm.md (never model-facing) nor housekeeper.md (the +// internal inferencers' prompts never enter the bundle). +// 9. Seeds carry no date keys (developer, 2026-11-14): no model-facing // 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, // historical blobs, commit messages -- and every commit is // 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 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 // banned word there is the story's own business 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 (/\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)`); + } }); } diff --git a/test/smoke.mjs b/test/smoke.mjs index 5588107..cc40c9c 100644 --- a/test/smoke.mjs +++ b/test/smoke.mjs @@ -1,6 +1,6 @@ // test/smoke.mjs -- end-to-end multiuser pass against the --mock // 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 // ride the per-provider surface -- the binary add choice, the o/f // 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 // its sampling for its next turn: one-shot, JSON, bounds enforced, // 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 // frozen-opening floor, the sheet records of the dead range reverting, // 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 // it answers strips from the view), the full-block protocol // (whole-list status @@ -238,7 +238,7 @@ ok('invite mint is op-only', r.status === 403); 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 // the provider broken and opens the key path (checked on reception, // 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 block strips from the view', her1.every((m) => !/\n/.test(String(m.content ?? ''))), ''); const viewConflicts = view1.filter((m) => m.role === 'user' && /^/.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`); ok('a conflict describes its problem in full (the stripped emission quoted)', 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 ?? ''); // 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 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' } } }); 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); 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 // authoritative chunk (never a stamp at her canon point), cross the // 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 === '{}', 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 // authored gate names every wrong shape, the boundary note is checked // 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, ''); } -// 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 // everything after it leave the log (physical truncation; fork is the // 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'); } -// 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 // carrying them (the provider removed), the run blocks until the GM // 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' } }); 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 // its verdict fresh at every refine, while the passing models // persist from the cache diff --git a/tool/memory.mjs b/tool/memory.mjs index fc0aa7c..c6c8d76 100644 --- a/tool/memory.mjs +++ b/tool/memory.mjs @@ -299,7 +299,7 @@ function openDb() { } // 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 // values `paper-*` -> `status-*`, and the CHECK widened to the full // op list. The rebuild copies through a check-free intermediate -- @@ -1171,7 +1171,7 @@ function cmdDiscard(ridStr, reason) { 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 // channel, and a second home in the db was a stale mirror, not a diff --git a/web/knobs.mjs b/web/knobs.mjs index 635cb0c..b98d62e 100644 --- a/web/knobs.mjs +++ b/web/knobs.mjs @@ -1,6 +1,6 @@ // 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 verb sets them for one turn, // nothing stores them. Reasoning effort is a property of the model // pick (there is no unset effort), so its select lives inside the diff --git a/web/style.css b/web/style.css index a164b7c..429b744 100644 --- a/web/style.css +++ b/web/style.css @@ -35,7 +35,7 @@ body { /* play keeps the two-column transcript + aside layout; the footer (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 { grid-template: "header header" auto @@ -449,7 +449,7 @@ footer { display: none; } 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 the tint (the colour alone says that something is pending, not what dies) */ diff --git a/web/transcript.mjs b/web/transcript.mjs index c5c61d6..0f6bcbc 100644 --- a/web/transcript.mjs +++ b/web/transcript.mjs @@ -18,7 +18,7 @@ import { $, el } from './dom.mjs'; // 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 // caret can never drift from what it overlays. The asterisks stay // 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 // register renderer -- colour-only, source verbatim; the story view // 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 }} */ function renderContent(target, text, { extract }) { let body = String(text ?? ''); @@ -131,7 +131,7 @@ function renderContent(target, text, { extract }) { // table-side display. The state machinery (status, agenda, the // retired delta tags) renders nowhere in the prose pane -- the // 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'); wrap.className = 'tags'; for (const t of tags) { @@ -334,7 +334,7 @@ export function renderTranscript(entries, { onConflict, onRaw, onRewind } = {}) } flushBundle(); 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, // the audit surface is its home continue; @@ -359,7 +359,7 @@ export function renderTranscript(entries, { onConflict, onRaw, onRewind } = {}) continue; } 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 // and the whole-list sets alike -- duplicate the panes; the raw // tab keeps every receipt diff --git a/web/view-home.mjs b/web/view-home.mjs index 4e4bd23..a2e5947 100644 --- a/web/view-home.mjs +++ b/web/view-home.mjs @@ -129,7 +129,7 @@ async function renderAdmin(seq) { /** @param {import('./shapes.mjs').ProviderPayload} p @returns {string} */ function providerStateLine(p) { 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 // upstream breakage, not a prompt); any other failure names // itself; no probe yet is a provider that was never scraped @@ -193,7 +193,7 @@ function renderProviderCard(p, seq) { }); acts.appendChild(disc); 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 // re-opens the ask (that is the key-replacement path). o/f never // carries a key, so the control never shows on it. @@ -215,7 +215,7 @@ function renderProviderCard(p, seq) { } 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, // saved on success, asked again on the next refusal 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` : '?'; } -// 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 // form taking ONLY the endpoint -- a working keyless listing never // sees a key field. A 401/403 stands the provider broken and opens diff --git a/web/view-play.mjs b/web/view-play.mjs index 6c38a55..ac2e60b 100644 --- a/web/view-play.mjs +++ b/web/view-play.mjs @@ -25,7 +25,7 @@ import { renderRaw, renderTranscript, stickBottom, viaLine } from './transcript. /** @type {?string} */ let rawRun = null; 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: // 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 // request gives no sign of life. The progress route carries the // 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 // max_tokens when the knobs set one (reasoning counts inside it), // 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) => { 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 // says what unlocks it. Clearing the box re-enables it $('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 // place. Every character stays (the asterisks too) so the caret never // 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 const SIGIL_RE = /@(PC|Package)\b/g; const VAR_RE = /\$([A-Za-z_][A-Za-z0-9_]*)/g; diff --git a/web/view-story.mjs b/web/view-story.mjs index f8db95c..33593af 100644 --- a/web/view-story.mjs +++ b/web/view-story.mjs @@ -17,7 +17,7 @@ import { navigate, runGone } from './router.mjs'; /** @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 // colour-only, source text verbatim; the book is the deliverable and // earns its typography). Real faces, asterisks spent: *italics* is diff --git a/web/widgets.mjs b/web/widgets.mjs index 092af23..1de4a81 100644 --- a/web/widgets.mjs +++ b/web/widgets.mjs @@ -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, -// 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 // arrive in prose). A record is a whole set: staging replaces the // 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} -- -// 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 verb's alone (per-turn, nothing stored). The health // line under the rows is the invalidation surface: a pick the server // no longer carries names what died and stays visible until the GM