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:
+11
-11
@@ -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 <model> block strips from the view',
|
||||
her1.every((m) => !/\n<model>/.test(String(m.content ?? ''))), '');
|
||||
const viewConflicts = view1.filter((m) => m.role === 'user' && /^<conflict>/.test(String(m.content ?? '')));
|
||||
ok('past conflicts stay in the context (a mistake remains visible, GM 2026-11-18)',
|
||||
ok('past conflicts stay in the context (a mistake remains visible, developer 2026-11-18)',
|
||||
viewConflicts.length === 2, `${viewConflicts.length} render`);
|
||||
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 <mind> verb is the only sampling source, per-turn
|
||||
r = await call(`/runs/${forkId}/model`, { method: 'POST', token: ash, body: { player: { provider: 'mock-b', model: 'mock-cheap', effort: 'low' }, housekeeper: { provider: 'mock-a', model: 'mock-tie', effort: 'max' } } });
|
||||
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 === '<sheet>{}</sheet>', chunk?.content ?? 'no chunk');
|
||||
}
|
||||
|
||||
// 23b. the sheet's transport at the lint (the box round, GM, 2026-11-19):
|
||||
// 23b. the sheet's transport at the lint (the box round, developer, 2026-11-19):
|
||||
// the record is the only channel, the tag is view machinery -- the
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user