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
+11 -11
View File
@@ -42,7 +42,7 @@ const MOCK = process.argv.includes('--mock');
const DEBUG = process.argv.includes('--debug'); // identity bypass: everyone is the superuser
// 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<string, unknown>} */ (body.sheet);
}
// The rewind and the staleness guard (GM, 2026-11-17), both optional
// The rewind and the staleness guard (developer, 2026-11-17), both optional
// fields on the send, both native API with no UX rules riding here:
// 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);