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:
+14
-14
@@ -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
|
||||
// <status>/<agenda>/<mind> 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 <model> block is display-only: the read side of the mind
|
||||
// verb, never hers to emit. The <sheet> block is the same
|
||||
// (GM, 2026-11-17) -- the GM's ledger, changes propose in prose.
|
||||
// (developer, 2026-11-17) -- the GM's ledger, changes propose in prose.
|
||||
// Both guards quote the offending emission: a conflict must be
|
||||
// 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 (/<model>/.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 ------------------------------------------------------------
|
||||
//
|
||||
// <mind>{"temperature": 1.4}</mind> -- the player sets its own sampling
|
||||
// knobs for its NEXT turn, to reflect the character's mind (GM,
|
||||
// knobs for its NEXT turn, to reflect the character's mind (developer,
|
||||
// 2026-11-16: tag form, one-shot, no GM lock; the block carries a
|
||||
// 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.
|
||||
|
||||
Reference in New Issue
Block a user