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

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

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

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

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

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

verified: typecheck green both programs, check-repo ALL CLEAN with both new bans active, the ban regexes proven by direct test (agent/agents/multi-agent and LLM/LLMs caught; AGENTS.md and the assistant pass), and final greps confirming every remaining "GM" is a protocol term and every remaining "agent"/"LLM" is a quoting entry or a record's day-words. The developer's own edits ride along: the operator queue strike (the inventory line done, the loopback typo, "external sec review"), and the handoff prepared -- the queue renumbered, the fresh-run item's garbled line repaired, the commit count brought current (seven await the push), template and box marked committed, a stray paragraph break fixed. detention stays untracked WIP, untouched.
This commit is contained in:
2026-11-19 09:56:56 +00:00
parent e60fd63d2b
commit ccdd9ea129
28 changed files with 529 additions and 285 deletions
+33 -16
View File
@@ -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)`);
}
});
}