Files
mute 8ef96c7ac5 the mind goes read-write and the temperature research lands: <model> retires, the live push dies, the clamp settles at 1.15 -- with the two-subturn design and the session's records riding along
The mind r/w round (2026-11-20, on the box run's live evidence: her fifth turn slipped the channel, the emission came out <model>, the guard's heal doubled a story passage): the via echo renders as the per-turn <mind> block (the block on a turn shows the params its prose was inferred with -- calibration pairs exactly), the <model> guard and its mock cue are deleted, STRIP_HERS and the story verbs drop the tag, reasoning_effort stays hidden from her, and the one-shot rule stands (r/w is the tag, not persistence). The box run's log was migrated in the same stroke, no-legacy: the refused emission became the valid mind write it tried to be, the conflict and heal left, the bundle system message regenerated under the new invariants. En-route: check-reminder's logged-turns floor relaxes to >= 1. The native-markup round's first act rides adjacent (2026-11-21): the box log's markup debris cleaned and verified through the real machinery (scan, view, story projection), and the agenda grammar is BULLETS -- blockList is kind-dependent now (status keeps its wire commas, agenda splits lines only), the pane and chip parsers match, and a comma-carrying mock item proves the grammar in the smoke. The two paused guards from that round never get built -- the blocks problem dissolves downstream into real tool calls.

Then the temperature research (2026-11-22/23; TEMP-RESEARCH.md, new at root, is the full record -- scope, the reusable fork-and-edit recipe and its gotchas, the failure taxonomy, hedges, open questions). Two blind sweeps of the box run first: prose VOICE tracks temperature blind (the composed-to-impulsive gradient survives with the number hidden), prose CONTENT was demand effect (round 1's traces read the visible <mind> block and styled to it -- a stage direction, not calibration), so the live push is RETIRED: the loop never renders the current call's settings into her view again, the per-turn via echoes are the whole read side. Thinking is temperature-robust through 1.2 and dies above it in four distinct shapes (shape-mixing 422, unbounded prose soup, reasoning-channel salad, instant salad). The n=20 organic ladder (320 forks, the box run's own moment) put the cliff at 1.2 proper: of twenty turns, 8 empty-prose, 5 soups, 2 refusals -- so the clamp drops to 1.15 ("we declare 1.2 too hot to be useful", GM, 2026-11-23; KNOB_BOUNDS moved, the smoke's conflict-range text with it). Side finding at scale: the restatement attractor -- blind, 50-85% of turns re-state their own <mind>, the value pinned near her recent emissions regardless of what rode.

Round 4 (2026-11-24) audits that corpus for content and changes no code: soft inference errors are temperature-FLAT (the ~30% breakfast error is structural, every rung), CONFABULATION IS A THRESHOLD AT 1.0 (fabrication-heavy reasoning 1.4% below the line vs 26.7% at or above; attribute drift below, invented events above; 1.15 bimodal at 8/20 -- the clamp is outcome-safe, not content-safe), and every mechanical axis is flat under the band: reasoning length, prose length, wall time, register proxies. Under the threshold, temperature is a pure voice knob.

On that evidence the two-subturn turn is DESIGNED (ROADMAP, designed-not-built): (a) full view + max effort + constant mid-band temp, the recall seat; (b) draft + tool oks + low effort + variable temp, the voice seat, the draft's register as the dial's zero point; the state blocks become real tool calls, retiring the strip lists, the strict lint, the block grammar, and the prose-to-blocks seam whole. The 2026-11-28 amendments complete it: the native tool loop carries her thread content-borne across rounds (the "thinking never returns" doctrine was transport fact -- the provider drops the field; the reader-facing rule stands), a purpose param on every tool call, the append-only prefix with the reminder as the one per-call exception (four flavors: orient, continue, draft-now, and (b)'s render contract), the recall tool (player search over its whole run; read-only, therefore rewind-safe by construction -- the records tools retire and their journaled-mutator compensation debt dies unfunded), and inline [...] annotations as the author-to-machine layer, the rationale block retained as the optional whole-turn scope. Three new ROADMAP sections ride: the status scan (the wake-up questions; location, inventory, and weather channels; meters pending), the package-declared ledger (the box order tool and the boutique shop as one mechanism; the measured 45% arithmetic re-derivation tax it kills), and the scene box with its paperdoll agent (TTI register, renderer-neutral, the model never draws a pixel). The helpfulness sweep (75 turns of the run's own reasoning: 62 CLEAN, 13 TRACE, 0 AFFECTED; onset at the punishment-arc OOC turns) and the live reading failures (the legs pronoun, the gag-speech riddle, the shed mind write) are recorded as the evidence base for the reading-rules piece.

The GM's prompt-side edits ride the same commit: invariants' r/w mind section and the agenda's no-trimming/no-metaphor lines (landed against observed behavior in the box run's thinking blocks), the clamp example already reading 1.15, system.md's injection-exception rename, README's protocol passages, DICTIONARY's updates, and the box package's backdrop and carryover content pass. The calibration materials (calibration.md, packager-calibration.md -- the A/B outputs, the flake record, the wrong-woman verdict) are committed as research records at the GM's staging. detention stays untracked WIP.

Verified across the sittings: typecheck green on both programs, smoke ALL PASS (the mind-r/w battery with the mock's script renumber, the clamp's conflict-range text, the comma-carrying agenda item), restart + reminder checks green, check-repo clean, and the debug server restarted on the real state. The substrate deltas in this commit are the mind r/w, the push retirement, and the clamp; everything else is the record.
2026-11-28 23:45:39 +00:00

1204 lines
74 KiB
Markdown

# AGENTS.md -- the assistant's own notes
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, the roles inventory included), HANDOFF (working state).
This file is memory the assistant owes itself across sessions.
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.
## 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 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.
- **Commit discipline: they commit when pieces are in place. Never
propose, nudge, or ask about committing.** (Learned 2026-11-13,
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. 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 (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 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 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 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
is a riddle.
- **No HTML comments in prose or prompt files** (2026-11-14): purpose
descriptions live in README (layout), AGENTS, or as comments in the
substrate code. Generated views carry their do-not-edit warning in
the clerk, not in the output. The views are pure memory: run state
(records availability) rides the phase-3 housekeeping invocation,
not the ring headers.
- Output-style counterexamples prime what they prohibit (far context
can't suppress, only prime). State tests and positives instead.
Input-side counterexamples (routing examples, "Refuse" cases) are
safe and stay.
- The handbook's point-of-order example deliberately leaves 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.
## Environment gotchas
- Shell command strings: plain ASCII only -- em-dashes and fancy quotes
get rejected.
- PowerShell's `Copy-Item -Recurse $src $dst` MERGES into an existing
$dst (and nests $src as a child when it exists) -- it never
replaces. Restoring a dir wholesale wants `Remove-Item $dst` first,
then the copy (bitten 2026-11-18 restoring state/ after the smoke:
the first attempt left the smoke's deployment.db at the top level
with the backup nested inside it).
- **state/ is precious now (2026-11-18):** the real refine wrote the
measured registry into state/models.json, which the old smoke
procedure ("Remove-Item state/") would destroy -- re-running refine
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 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 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
codes via PowerShell before retrying; or transcribe from a fresh
read, never from memory. **The three-space trap (bitten 2026-11-13
and 2026-11-14):** the read tool prefixes each line with `N: `, so
continuation-line indentation LOOKS one space deeper than it is --
eyeballing a " the package" was really " the package". Never
count indentation from the rendered display: dump the exact line
with `node -e` + JSON.stringify and transcribe from that when an
edit keeps failing on text that reads right.
- `node:sqlite` prints an ExperimentalWarning on every clerk call --
harmless, filtered in bridge context.
- Session logs, dumps, and views are generated; never hand-edit them.
- There is no server.json (deleted 2026-11-19 -- it held only the
dead bind and the declared contwin): the provider entities live in
state/config.json, and the op's real key for the `dv` provider is
whatever the config carries (opencode's own config sits at
`~/.config/opencode/opencode.jsonc`, auth at
`~/.local/share/opencode/auth.json`).
- The repo lives at `C:\data\opencode\tiny-worlds` (renamed from
`rp-test` with the project name, 2026-11-15). The rename could not
happen in place -- the running app held the old dir -- so the move
was robocopy + session repoint, plus a one-time sqlite edit of
opencode's own db (`~/.local/share/opencode/opencode.db`) to
repoint the project record and drop the stale duplicate project
the desktop UI cannot delete (anomalyco/opencode#28030). The old
dir and the db backup are gone; the rename is complete. Always
launch from the new path.
- The test scripts: `smoke.mjs` expects a CLEAN state/ plus a running
`--mock` server, prints its run ids, and leaves a temp token file
for `restart-check.mjs`; `check-reminder.mjs` takes a run id --
one whose NEWEST LOGGED session has GM turns (post-smoke that is
the fork lineage, e.g. the refork id in the token file; the source
run's newest logged session is the near-empty session 4, and
aiming it there fails on 0 reminders -- learned 2026-11-15);
`check-repo.mjs` needs no server. The smoke cannot run twice --
the second run dies on the dirty state (learned 2026-11-15): stop
the server, Remove-Item state/ and runs/, restart, run once. Clean
up state/ and the smoke runs afterwards -- only the real runs
stay. The type gate: `npm.cmd run typecheck` runs TWO no-emit
tsc passes over the JSDoc annotations -- `tsconfig.json` (server
+ tool, node types) and `tsconfig.web.json` (web/, DOM libs; node
types ride along because server/shapes.mjs's Provider typedef
pulls provider.mjs into the web program). Dev-only tooling
(typescript + @types/node in devDependencies, node_modules
gitignored); the runtime stays zero-dependency (DECISIONS #4
amended 2026-11-15). All four phases are typed under strict:
server core, the clerk, and web/. Typing lessons (2026-11-15,
the round): assigning an any (api()/JSON.parse result) to a
`?T` variable does NOT strip the null -- declare the variable
plain `T` and let definite assignment carry the try/catch (the
catch returns); under the web program's DOM+node merge the
browser timers resolve to node's overloads, so annotate them
`?ReturnType<typeof setTimeout>` and `clearTimeout(x ??
undefined)`.
- A fresh git worktree has no node_modules: run npm.cmd
install before typecheck (2026-11-15, this worktree). No config
file is needed to boot -- the server comes up on loopback:7350
(RP_PORT overrides) with whatever state/ holds.
- 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 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
for minutes). The developer pushes mid-stream without ceremony:
never count unpushed commits from a doc's running tally -- ask
git (`git log origin/mistress..mistress`); the tally drift got
caught 2026-11-19 when HANDOFF said eight and the wire said four.
## State pointers
- **The post-round-4 design session (2026-11-28) settled a batch of
designs, ALL recorded in ROADMAP (amendments to the two-subturn
section + four new sections), nothing built.** The one-line
inventory: (a)'s tool loop carries her thread content-borne
across rounds (the "thinking never returns" doctrine was
transport fact -- the reader-facing rule stands, the view-side
rule is now designable); the reminder is per-call with four
flavors (orient / continue / draft-now / (b)'s render contract);
the recall tool gives the player search over its whole run and
RETIRES the records tools (read-only = rewind-safe; the
journaled-mutator debt died unfunded); inline `[...]` annotations
are the author-to-machine layer with the rationale block retained
as the optional whole-turn scope; the status scan (The Long Dark
wake-up frame) organizes the standing channels -- location,
inventory, weather designed, meters pending the developer's fold
ruling; the ledger is the package-declared economy (the box order
tool and the boutique shop are one mechanism); the scene box is
the player's TTI-register unload, renderer-neutral (the paperdoll
agent reads the same prompt; the model never draws a pixel). The
helpfulness sweep (75 turns: 62 CLEAN / 13 TRACE / 0 AFFECTED,
onset at turn ~35 with the punishment-arc OOC turns, zero
motivation-bending) and the live cases (the legs pronoun, the
gag-speech riddle -- ground truth "please love, leave me in
shambles", decoded to the thematically-primed "if I'm shameless"
and canonized; the shed mind write) are the evidence base for the
developer's reading-rules piece. Their rulings: wrong guesses are
immersive and can be canonized personality; only reasoning budget
matters; hook design is craft, not disease; marginal problem
overall. The run grew to 593 lines mid-session; the wrong decode
rides her minutes until the GM rules on it. Sweep artifacts in
the opencode temp dir (hlp-protocol.txt, hb-NN dumps), volatile.
- **Temperature research round 4 is DONE (2026-11-24, analysis only)
and the two-subturn turn is DESIGNED on its evidence (ROADMAP
carries the full design, designed-not-built): the player's turn
splits into (a) full view + max effort + constant temp -- the
recall seat, parked under the new confabulation threshold -- and
(b) draft + tool oks + low effort + variable temp -- the voice
seat, the draft's register as the dial's zero point.** The
round-4 findings (full record: TEMP-RESEARCH round 4, read before
extending): soft errors temperature-flat; CONFABULATION THRESHOLD
AT 1.0 (heavy fabricators 1.4% cold vs 26.7% warm; cold-band
findings are attribute drift, warm-band ones invented events;
1.15 bimodal at 8/20 -- the clamp is outcome-safe, not
content-safe); all mechanical axes flat under the band (length,
wall time, prose, register proxies) -- under the threshold,
temperature is a pure voice knob with no mechanical curve. The
design retires the blocks problem whole (state blocks become real
tool calls; the two paused native-markup guards never get built)
and resolves the heal-flow question by design (semantic conflicts
re-derive (a), shape failures re-roll (b)). Her <mind> verb drives
(b); the attractor fight, (b)'s visible scope, and (b)'s prompt
are the developer's open calls. The sweep's 321 forks live
OUTSIDE the repo (C:\data\opencode\fork-archive\temp3, kept); the
recount protocol and canon pack are in the opencode temp dir
(volatile).
- **The live mind push is RETIRED (2026-11-22, riding the temperature
test round): `<mind>` echoes calibrate past turns only; the stash
riding the current call is invisible to her mid-composition.** The
evidence: the developer's temperature test (eight disk-forks of the
box run, one synthetic pending mind note each, boot-load armed,
same GM turn, glm-5.3-max at effort max) showed the model READING
the live `<mind>` block and styling to the number -- 0.5's trace:
"low, composed... measured, not manic"; 1.1's: "a bit warmer/more
playful... fits a lighter, cheekier beat" -- a stage direction, not
calibration, so the current-call reveal had to go (developer ruling
2026-11-22: the block's only purpose is calibration of past turns).
As built: loop.mjs keeps assembling params from s.mind (+ the
spec's effort) and lands them on the via record unfiltered, but no
system block rides the view for the current call; the read side is
the per-turn via echoes (past turns carry what rode them, effort
filtered as ever); her write path is untouched (r/w stands, the
stash shows on the NEXT echo). THE TEMPERATURE TEST ITSELF: forks
0.0-2.0 (ids in the results file), coherent band reasoning 6.2k-
15.1k chars with a clean MONOTONIC PLAN-FIDELITY gradient (0.0-0.75
emit exactly what their traces planned, 0.9 emits an unchanged
agenda against its own plan, 1.0/1.1 drop their planned blocks
entirely); 1.5 = 58.9k-char trace, coherent for ~30k then
multilingual token salad to the end, empty prose, 35k tokens,
~30min; 2.0 = salad from the first tokens, 319 chars, empty prose.
The test procedure is now PROVEN MACHINERY: disk-fork the source,
append the synthetic note BEFORE the server ever loads the run
(the API fork loads the session at fork time -- post-fork appends
are invisible; boot-load is the only fresh read), restart once to
arm all forks, then drive turns by API. Full data:
mindtemp-results.json in the opencode temp dir; forks kept on the
developer's word (do not delete without their nod). ROUND 2 (same
sitting, BLIND -- the live push already retired): nine forks
truncated back to the same fork point (line 285), ladder 0.0-1.4.
Coherent through 1.2 (reasoning 4.3k-19.0k chars -- the n=1 noise
floor is high, identical temps swing wildly between rounds); the
failure taxonomy now has FOUR shapes above the band: 1.3 =
SHAPE-MIXING (prose outside a <variants> block, the strict lint's
422, the turn lost whole); 1.4 = UNBOUNDED PROSE SOUP (206k chars,
42.8k tokens, no repetition, cut only by the endpoint ceiling);
r1 1.5 = reasoning-channel salad (coherent ~30k then degenerate);
r1 2.0 = instant salad. THE CLAMP (developer, same day): the mind
verb's temperature ceiling is 1.2 -- KNOB_BOUNDS max 2 -> 1.2,
the conflict names the new range, the heal flow unchanged.
AMENDED (2026-11-23, on the n=20 organic sweep's evidence): max
1.15 -- 1.2 declared too hot to be useful (~75% failure or
degenerate at the rung, 1.15 clean at 19/20). THE
FULL RESEARCH RECORD lives in TEMP-RESEARCH.md (root) -- scope,
method (the reusable fork-and-edit recipe), hedges, results, the
open questions; read it before extending the experiment. Docs:
README's
protocol passage amended. FLAGGED, the developer's seat:
invariants.md's mind section still teaches "higher temperature for
more impulsive mind, lower for more composed" -- the exact
demand-effect lever the test demonstrated; whether that line stays
is their call."
- **The native-markup round, first act DONE (2026-11-21): the log is
cleaned and the agenda grammar is fixed; the two guards are PAUSED
on the developer's word.** The finding: three of her turns carried
fragments of the model family's NATIVE function-call grammar (the
arg-value/tool-call closes -- live control tokens, never render
them in session text; the developer's own warning extends to
files) -- two insertions at the prose-to-blocks seam (52, 58, one
with the token salad, one with a stray fence tick), one closing
substitution (137: the agenda close replaced, which the machinery
swallowed as a DELIBERATE CLEAR -- the silent-clear asymmetry:
variants refuse loud, mind conflicts, but a malformed block reads
as empty). Zero context sources: the vocabulary is endogenous
(training-native, the deepest groove for "structured payload for
machinery"), and the artifacts RIDE THE VIEW (strip lists need
well-formed blocks), so each occurrence primes the next -- the
52-then-58 adjacency is the propagation smoking gun. The
developer's four-point plan: (1) the unclosed-block conflict, (2)
the native-markup lint, (3) the log cleanup, (4) nothing in
prompts ever (counterexamples prime). DONE: (3) -- lines 52/58's
debris removed, 137's agenda closed into the set she stated, note
139 recomputed by the real parser; verified through the machinery
(every block opens and closes, story clean, scan exact). RODE THE
SAME SITTING (the developer's ruling): the agenda grammar is
BULLETS, not the status wire commas -- blockList is kind-dependent
now (status splits commas, agenda splits lines only), the agenda
pane parser and the table chip parser match, one mock item carries
a comma to prove the grammar in the smoke. Her 137 agenda derives
as the four bullets WHOLE ("spend it well" back inside its item).
PAUSED: points 1 and 2, until the developer says. Watch live: the
seam can leak again -- nothing guards it yet; her next turns are
the sample. Also open on the developer's queue: what a conflict
says about the refused turn (the heal flow confused her long
before the markup events). And the escalation path is named if the
bleed recurs despite the guards: real tools for the state verbs
(the native channel by design; costs: transport coupling, the
per-variant state trick breaks).
- **The mind r/w round is BUILT (2026-11-20, on the box run's live
evidence): `<mind>` is read-write, `<model>` is retired.** The
box run's fifth turn slipped the channel (her thinking said
`<mind>`, the emission came out `<model>` -- the display tag aped
from her own turn prefixes; the guard's heal doubled the passage
in the story). The developer's ruling: the asymmetry's reason
(the display as the machinery's neutral report of GM-set knobs)
died with the provider round (the mind layer is the only sampling
source since 2026-11-18) -- the rename finishes what that round
started. As built: the via echo renders as the per-turn `<mind>`
block (the block on a turn shows the params its prose was
inferred with -- calibration pairs exactly), the live push is
the current call's one live `<mind>` block at the freshest end,
her emitted blocks still strip (the echo is machinery-rendered,
never her bytes), the `<model>` guard and its mock cue are
deleted, STRIP_HERS and the story verbs regex drop `model`, and
the one-shot rule STANDS (r/w is the tag, not persistence; a
persistent mind is the named follow-up if the restate ritual
reads as noise). The developer's invariants rewrite rides the
same round (the r/w mind section, the sheet's "Don't write it
yourself", the agenda's no-trimming and no-metaphor lines -- all
landed against observed behavior in the box run's thinking
blocks; their system.md injection-exception rename too). The box
run's log was MIGRATED in the same stroke (one-time, no legacy):
the refused emission became the valid `<mind>` write it tried to
be (her 1.0 is the stash for her next turn -- developer
confirmed), the conflict and the heal left, the bundle system
message regenerated from the current prompts (the run plays the
new invariants), and the sheet's collar order record survived
untouched. En-route: check-reminder's `logged >= 5` floor
relaxed to >= 1 (a three-exchange run is legitimate use of "a
run id that has GM turns"). Verified: typecheck green both
programs, the migrated log verified through the real machinery
(scan, view, story projection -- the em-dash lesson bit again,
escape them in assertion strings), smoke ALL PASS first run (the
mock renumber: '*Dawn breaks.*' now gets the fallthrough plain
prose at count 5, out-of-bounds mind at 6, heal at 7, override
reply at 8), restart + reminder checks green (ebac64b2 included),
check-repo clean, the debug server restarted on the real state.
OPEN, the developer's queue: what a conflict says about the
refused turn (the heal flow confused her -- she re-issued the
whole turn and lightly rewrote it; mind conflicts still heal
that way). The reasoning_effort knob stays hidden from her
(filtered from both the echo and the live push -- unchanged).
- **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
{slug, baseUrl} or {builtin} (apiKey in the body 400s); a
working keyless endpoint never sees a key field; an auth refusal
stands the provider broken with the probe record on the entity
(outcome ok/auth/error, only the explicit acts move it -- usage
errors are transient, the op's to fix, nothing auto-flips); the
auth route is probe-then-save (a refused candidate never reaches
the config, the ask repeats); every other discovery failure
refuses the add with rollback. The remove-key control clears and
re-probes (the replacement path: remove, then the re-opened
ask). o/f never asks, any state. The curator's auto-retry is
deleted (the universal rule: every inference call is manual with
a manual retry; the fallback is the designed outcome). The
adjudication cache skips inference:false entries -- every refine
re-probes its failures, so a transient battery error never pins
a verdict (gev is a 400, not a 200-failure; it re-probes cheap
forever, which self-heals if the backend ever learns tools).
En-route fix the smoke earned: the create route validated
body.spec AFTER the clerk built the run dir -- refused specs
left orphan runs (restart-check's exact count caught it);
validate first, nothing lands on refusal. Verified: typecheck
both programs, smoke ALL PASS (+27), restart + reminder green,
browser pass on the whole UI machine (mock+debug coexist for
drivable UI tests), check-repo clean. Lesson renewed hard: the
edit tool's comment-block transcriptions failed three times this
round -- byte-dump with node + JSON.stringify BEFORE the first
attempt on any multi-line prose edit, never after it fails.
- **The provider round is BUILT (2026-11-18, the
batteries-included arc): providers are entities, config is
server-written state (state/config.json), a fresh clone boots
playable (the o/f singleton auto-added and discovered on the
empty list). Every request resolves a full spec {provider,
model, effort} -- no unset effort, the per-run params layer
retired (the mind verb is the only sampling source). Registry:
per-provider sections in state/models.json; refine caches its
adjudications in state/refine-cache.json keyed by the double
spec tuple. Run picks are invalidatable (the run blocks with a
note until re-picked); the housekeeper inherits the player
provider's default (#16 closed). The dev machine migrated:
provider 'llm-exan-tech' (from server.json's import), 13
measured models preserved, default glm-5.3 at max. Clients
percent-encode provider slugs in paths -- the slug may carry a
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, 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
coexist as entries, they do not replace each other. As built:
one provider client per pair (main.mjs builds the map, config
order = priority order); discovery scrapes EVERY configured
endpoint and tags each model with its base (first-listed wins an
id collision -- the registry is keyed by id, the tag routes);
every call site routes through providerFor (provider.mjs: map
walk + a loud 409 when the registry knows a model whose endpoint
left the config); the registry file's `endpoint` became
`endpoints: string[]` with a one-time normalize-on-open (the
singular-era file migrates in memory, models inherit the one
base -- the measured registry survives unregenerated). The mock
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 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,
every model tagged, mock-cheap on the second base), restart +
reminder checks green, and the live debug server on the REAL
registry (13 models, singular-era on disk) normalizing and
routing glm-5.3 to its base. Standing lesson renewed: template
literals and backticks inside PowerShell-wrapped node -e strings
get EATEN -- multi-line patch scripts go through a temp .cjs
file written by the write tool, never inline. EXTENDED (the
provider round, same day): a node -e REPLACE whose replacement
string contained ${...} ran inside a DOUBLE-quoted PowerShell
string -- PowerShell expanded the ${} to empty, and six template
holes landed in view-home.mjs (dead provider paths, caught in
the browser pass). Any generated replacement containing ${ or
backticks goes through a temp script, no exceptions.
- **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 (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
(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 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 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
(STRIP_HERS takes her <model>/<mind>/<sheet>) -- an old conflict
cannot lean on the turn it immediately follows; the quote is the
only visible trace of what went wrong. As built: renderView's
conflictOnly branch renders unconditionally (the lastGmIdx
elision is gone, the variable with it); the guards quote (loop.mjs
`quote()` -- trim, collapse, cap 160 -- a shared helper): "yours
said: {...}" on the <model> and <sheet> guards, "(you set: ...)"
on the mind verb's per-key refusals, "-- yours: {block}" on mind
JSON that doesn't parse (the out-of-bounds mind already carried
"(got 7)" and keeps its exact form); parseMind's every error now
names what she wrote. Ripples caught: carry.mjs's visibleBytes
counted conflicts as zero-cost ("elides once the story moves on")
-- carried conflicts now render in the new session, so they cost
against the 96KB budget like the prose they are; the housekeeping
transcript already showed conflicts as "[conflict -- answered
in-band]" (untouched). Verified: typecheck both programs, smoke
ALL PASS (+3 assertions: both session-1 conflicts render in the
view, the model-guard quote, the sheet-guard quote), restart +
reminder checks green, check-repo clean. Docs: README's protocol
passage, DICTIONARY's conflict and view entries. The smoke's
final line now prints the draft id too (the 8a899168 leftover:
a smoke draft survived cleanup because "run ids" never named it
-- 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 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
with all state channels derived from the log (scanState), a cut
re-derives everything with zero compensation machinery. As built:
the send (`POST /turn`) carries optional `rewind` (a log line
index naming a GM turn) and `expect` (the log line count it was
composed against -- the staleness guard, a stale tab refuses
before anything rides; the ask answer carries it too); gmTurn's
order is pendingAsk-refusal -> expect -> expand -> truncate ->
land (one commit inside the lock; a crash between truncate and
land leaves a consistent shorter log); the floor is the start
marker -- `{t:'note', kind:'start'}` written once at start right
after the carryover (the frozen opening never unwinds; the rule
is "after the LAST marker" because a carried log may hold an
older one inside its opening; pre-build logs refuse loudly with
the unmarked-opening 409); the CLI records verbs stand but the
MODEL-FACING records tools are OFF (bundle.mjs toolList returns
ask_gm alone) until they are rewind-compatible -- the GM's --gm
filings never ride a turn, rewind-safe by construction. The SPA:
per-GM-turn rewind button (transcript walk's onRewind, live +
no-pending-ask only), two-click armed, the target's EXPANDED
words auto-fill the composer (the log is truth, $vars baked),
tint + note naming the cut (the colour alone says something is
pending, not what dies), cancel restores, text in the box
disables the buttons under the rename "to rewind delete your
current input", a failed send keeps the gesture armed only on
400 (nothing touched the log), /retry never existed -- resend
after rewind IS the retry. The gm.md desync is PARKED (ROADMAP
deferred: notes orphaned from the narrative after a rewind;
nothing mechanical is safe, fork covers it). Verified: typecheck
green both programs, smoke ALL PASS (+14 rewind assertions: the
floor refusals, her-turn refusal, stale-expect refusal, the
truncation 45->42, the sheet revert, the story dropping the cut,
the marker surviving), restart + reminder checks green,
check-repo clean after staging, and a full browser pass on the
refork run (the gesture staged, cancelled, re-staged, edited,
and committed through the real send: 20 turns -> 8 on the
table, wire body {line, expect, rewind}, zero console errors).
Docs: README (protocol passage, the records-off notes x3, the
layout), DECISIONS #15 amendment (the full ruling record),
QUESTIONS closed (retry dropped, truncation ruled), ROADMAP
(steal #2 and the surgery section built-and-amended, the
operator queue line removed, the gm.md park), DICTIONARY (the
rewind entry). The debug server runs the new code (state/
restored from backup, Chloe + Irene rebuilt).
- **The sheet round is BUILT (2026-11-17, committed eefb721 -- the
roadmap audit rides the same commit): the
GM's ledger of arbitrated run state, the second state channel.**
The rulings that shaped it (all from the 2026-11-17 conversation):
status and agenda are NOT on the sheet -- the split is semantic
(self-report: truth is "she said so", the scan caches her words;
the sheet: truth is "the GM set so", the record IS the truth
event -- the override channel promoted to a standing section, and
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 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
teaches the channel, the package teaches the vocabulary). NO
package gating -- the channel is universal, "optional, if given"
makes the invariant forward-compatible in every bundle. The build:
records ride GM turns (readSheet: object-ness only, 400 loud;
OOC turns refuse them like block edits), scanState derives
newest-wins whole-set (absent key drops, {} is a live empty
ledger -- truthy check, never falsy), the boundary note carries
it across stops (stopSession's head note + the dormant read
path), renderView appends the chunk once per assembly (one live
copy by construction), the guard conflicts an emitted <sheet>
("the GM's ledger -- propose changes in prose", the <model>
guard's sibling, healed in-turn cap 3), STRIP_HERS + the story
verbs + the table chip regex all learned 'sheet' (grep every
strip list after adding a tag -- the standing lesson, applied),
and the web: sheetEditor (the paneEditor's JSON sibling in
widgets.mjs -- same stage/pending/discard pattern, bad JSON
refuses at the stage), the third pane in the aside, the send
attaches body.sheet, machinery lines on table and raw
([sheet] {...} -- the GM's ledger). The mock's sheet-guard is
CUE-KEYED not position-keyed (the carried tail shifts counts; a
cue does not shift -- mockModel reads the view, the marked GM
turn gets the emission, the conflict it earns gets the heal; the
FIRST battery attempt hit the script's ask at count 1 because
session 4's log starts the script over -- the battery answers it
and moves on). check-reminder is sheet-aware now (the chunk is a
legitimate third system surface; the count and freshest-end
asserts tolerate exactly one). Verified: smoke ALL PASS (+15
sheet assertions: newest-wins, whole-set, the chunk one-live-copy
-- ANCHOR the chunk match with startsWith, the invariants bundle
itself mentions <sheet> and a bare regex matches it twice), the
guard conflict + heal + never-applies, view/story strips, the
empty ledger, the boundary note, the dormant read, session 5
deriving from the carried note), restart + reminder checks green,
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 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 -- 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
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 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;
the comparison is in the 2026-11-17 conversation). The provider
(provider.mjs chat): every completion STREAMS (vLLM SSE, verified
live: reasoning_content deltas then content deltas, usage rides the
tail chunk via stream_options include_usage) and assembles back
into the same ChatResponse -- callers unchanged, the log records
the assembled message whole, tool_calls stitch by index, malformed
chunks fail loud; optional 5th param onProgress({phase, chars}) is
the meter's feed. One wire delta: streamed messages carry no
provider_specific_fields (vLLM's duplicate reasoning channel +
refusal:null) -- nothing reads it, cosmetic on raw surfaces only.
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 (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 -- 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 (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
a turn except max_tokens when set (reasoning counts inside it --
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 (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 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
one truth; streaming raw text would leak unpicked variants and
half-formed heals) -- the placeholder is a live div at the
transcript foot, rebuilt when a render wipes it, stick-to-bottom
only when the scroller was already at the bottom. The placeholder
(and the refine meter's spans) are INVISIBLE to a11y wait-text
matching -- browser-test them via evaluate DOM probes, never
browser.wait on their text (a whole "frozen meter" scare was this
artifact: the waits matched instantly against unrelated text and
the samples landed within the same second). Live-proven on a
disposable test run (f42403f0, created/played/deleted, three real
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 (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
predicted; server.json still pins glm-5.3, which BEATS the registry
until the op edits it).
Watch: the effort defaults ride unset turns now, and the 2-sample
ladders are noisy (glm-5.3's argmax is max=291 while high=11 --
within-bucket noise by design, but a fresh glm-5.3 run now sends
effort max where nothing rode before -- the test run's turns thought
12k/3.9k/6.5k chars, an order over her prose). New ids this scrape:
auto (standard), glm-5.3-low (off), deepseek-v4.1-flash/-max
(standard, 1M/256k windows)/-nothink (off); the gev family still
fails the tool probe (no --enable-auto-tool-choice on that backend).
The debug server is RUNNING with the new code (port 7350, pid in
the temp pid file; restarted clean after the test run's deletion --
runs/ holds only Chloe and Irene). Chloe's session is open-on-disk
(killed with the old server; the reconcile handles it at next
start).
- **The reasoning-effort round is BUILT (2026-11-16, late night): the
battery probes the effort ladder, the knob is first-class, hidden
from the model, and its default SENDS.** The probe (discovery.mjs
probeEfforts): each level of EFFORT_LEVELS (none/minimal/low/
medium/high/xhigh/max -- mirrored in web/knobs.mjs, keep in step)
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 (developer's rulings: not
her call, hidden entirely -- never in the mind verb, never in the
<model> display block, BOTH the loop's live push and renderView's
via-derived block filter it; it rides the via record, raw shows
it): resolveEffort layers run override > deployment (server.json)
> registry per-model default, explicit null clears to nothing.
UNLIKE the numeric knobs the unset state sends -- the registry
measured the default, so it is honest. First non-numeric knob:
RoleParams carries reasoning_effort?: string, the /model route
validates against the ladder, the knob row is a select whose
unset label names what rides ('(default: max)'), and the rows
rebuild on model-select change (the effort context follows the
picked model -- modelsBox's rebuildKnobs). Lessons: the loop's
mock path hardcodes model 'mock' (resolveModel never runs under
--mock, which is why cfg's real glm-5.3 never 409s the smoke);
declare helpers BEFORE the factory's return statement -- code
after return is unreachable, a hoisted function referencing an
uninitialized const throws silently mid-fill and stale rows
render (the browser pass caught it); renderView renders the via
record as the turn's <model> block -- a second <model> surface
beyond the loop's live push, both need the effort filter. The
dv endpoint honors the ladder on the GLMs (probed live: low
suppresses to a third of baseline, max elevates ~2x), accepts
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 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
across her emissions (the picked variant's text), the GM's
override fields, and the boundary state notes; the panes, the run
detail, and the stamp all read it (GET /status and detail.status
are derived reads; no clerk call). The cap is a derivation rule:
an over-cap agenda is never derivable anywhere, the raw log is
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 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 -- 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
server both). stop writes the state note at the carry head
always (the resume-reconcile filters it out before comparing);
the start gate's n=1 seeding is dead (her authored opening turn
IS the seed); continuation carryovers are rw in the file editor
during dormancy (the save lint unchanged). The clerk lost the
status/agenda tiers wholesale (schema, four verbs, canon views,
dump sections, report fields; the events CHECK keeps the
historical op names; old dbs keep dead tables, never read, never
dropped -- Irene is hands-off). Chloe is MIGRATED: her last turn
carries the whole-list blocks hand-applied from her db's values
(the db's now-dead tables agreed at cutover by construction).
Browser lessons of the round: a CSS display rule on a class
BEATS the hidden attribute (the pending marker showed un-staged
-- .pane-pending[hidden] { display: none } is the fix, and any
widget that uses hidden + a display rule needs the [hidden]
override); a widget whose sync() runs on only some paths drifts
(setEditable(true) never synced -- always run the full sync,
unconditionally); the SPA is served with no cache headers, so
the browser heuristically caches ES modules across reloads --
after editing web/ warm them with fetch(url, {cache:'reload'})
from evaluate before judging the page stale or fresh.
- **The GM-input round is BUILT (2026-11-16, night): the composer
reads like a turn, the tokens are colour-only, the stick-to-bottom
works.** The overlay's real bold/italic faces shifted advance
widths and dragged the caret (the "every character stays" trick
preserved count, not width) -- the ruling: no faces on the
workbench at all. One rule, colour-only, source verbatim
(asterisks tinted, kept on screen): the input overlay and the
transcript share the same token classes (.narration dim,
.emph accent), zero drift by construction; the scrollbar-gutter
match killed the second drift source (the textarea's gutter
appearing on scroll while the pre had overflow hidden). The story
view got its OWN renderer (view-story.mjs storyBody/storySpans):
the book keeps real faces, asterisks spent, narration italic via
#story-scoped CSS -- one rule for the tool, typography for the
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 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
along: #transcript has no height/overflow (main is the scroller),
so scrollTop assignments on it were no-ops in every browser --
stickBottom() now scrolls main, re-asserts on the next frame
(Firefox's scroll anchoring can reclaim a same-tick scroll around
a content wipe), main carries overflow-anchor: none.
- **The 2026-11-16 rounds are built and live-proven: the
play-protocol batch and model discovery.** The protocol batch: OOC
GM turns (paren-led, post-expansion) carry no status/agenda blocks;
memory.json is authored draft material, applied by the START gate
(clerk verb `reapply` -- scratch-validated, rebuilds session one's
db; create no longer applies it; hand edits to a draft's rings are
discarded by design); /story omits OOC turns whole; the table's
turns carry a per-turn `raw` control (index-aligned fetch from
/session, thinking + as-sent content inline). Discovery: the
two-step op act (discover = scrape, refine = battery + curator),
state/models.json is the registry and gates all model use (fresh
deployment = disabled; resolution run > server.json > registry
default; server.json's explicit pick BEATS the registry), the five
named knobs ride run.json params over server.json params, sent
only when set. Live lessons: the curator (a -max model) dumped 8K
thinking tokens on the labeling task until curator.md got the "do
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 (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 (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 (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
web/knobs.mjs (every knob text red-pens there), the run detail
and /model responses carry paramDefaults (the deployment layer),
and every provider request records its resolved model + effective
params on the msg event (via; a failed call lands a req event --
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 developer's drafts verbatim pending their red pen. The
mind verb is BUILT (2026-11-16, same sitting): <mind> 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 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
player reply consumes it (restart- and boundary-honest: an
unconsumed mind rides her first turn of the next session); the
mind note + chip render on the table, the story strips the tag,
smoke +7; watch live: whether she ever uses it. The full-block
protocol round is BUILT (2026-11-16, evening, HANDOFF's own
section): the diff verbs are RETIRED everywhere (the clerk's
status-apply/agenda-apply and their dispatch cases deleted --
grep the dispatch after any rename/retirement, the standing
lesson); she emits whole <status>/<agenda> at her turn tail, the
view stamps the newest of each kind at her most recent prose
turn (her own emission -- the silent eviction stays silent to
her, the note shows the GM), <mind> is write-only, every turn
carries its <model> block (via-derived, current call included,
suppressed when nothing is set, emitting one refused), GM prose
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 (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
event's pre-existing DOUBLE-LANDING in every started log,
pre-bundle and in-carry, died with the branch; found on Chloe's
real log, invisible to every reader because the type is skipped
everywhere). The
smoke now IMPORTS renderView and asserts the view policy
directly (the stamp, the strips, the prefixes) -- the pattern
for testing view-only policy that no API surface exposes. Watch
live: Chloe's session two is the protocol's first real run.
- **The multiuser server is built and mock-proven (2026-11-14).**
Design: ROADMAP "The multiuser server" + DECISIONS #22-31 (all
resolved). Identity = bearer token, no usernames/passwords/IDPs;
invites single-use with a permanent spent record; bootstrap invite
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 (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
is the one public surface (any signed-in user, fork button on it);
the table, raw session, carryover, files, status, and gm.md are
owner-only (the story-only ruling, 2026-11-15 -- #28's human-side
open read overturned with it; the model boundary stands, gm.md is
never model-facing). Dates/times always UTC -- house rule. Model
selection:
per-run `models: {player, housekeeper}` over server.json defaults
(#16 narrowed to the default choice only). Signing in is permanent
and per-browser -- no sign-out (lifecycle is a ROADMAP extension
point). The agenda (DECISIONS #32): the player's second block, `<add>`/
`<drop>` deltas, cap-5 recency queue; Irene's events journal
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 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;
REST + SPA is the MVP; runs are per-deployment instances copied from
packages at creation; zero-dependency runtime (dev tooling exempt,
DECISIONS #4 amended 2026-11-15: typescript rides devDependencies,
nothing imports it). Doc set updated to match.
- Build order: ALL FOUR PHASES DONE (2026-11-13/14) -- clerk paper
migration, preset/run split, prompt split, server, housekeeping
job, SPA. The MVP substrate is complete and live-proven end to end
(two real wraps, one full UI-driven session). Remaining roadmap
surface is the "Later" list (turn surgery, memory browser, context
inspector, book export, service step) plus whatever the first real
story surfaces.
Server entry: `node server/main.mjs [--mock] [--debug]` (--debug:
one fixed superuser behind the printed token -- minted into
state/debug-token.txt, printed every boot, pasted on the claim
screen's token field; the users db bypassed, no invite dance --
testing only); the bind is loopback always, the port rides RP_PORT
(default 7350); SPA at
http://127.0.0.1:7350/; POST bodies from PowerShell need
Invoke-RestMethod (curl.exe mangles quotes); background start/stop
via Start-Process -PassThru with a PID file in $env:TEMP.
- Gotcha (2026-11-14): before starting the server, check
`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, 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, 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.
- Browser-tool gotchas (2026-11-14, UI testing): evaluate takes a raw
expression, not an arrow function (an arrow returns the function
uninvoked -- its .value serializes to {} and silently corrupts
whatever you build from it); wait's text matches RENDERED text
(moot for letter case since the all-caps CSS ban, 2026-11-15 --
waits match source text now) and PLACEHOLDERS never match a wait at
all (probe the
textarea via evaluate instead); clickable divs are invisible to the
a11y tree and the keyboard -- clickable things are buttons. Added
2026-11-18 (rewind round): the harness renamed evaluate's param --
it is `script` now, not `expression` (a wrong name fails with
"Missing key", and search() inside execute gives the true
signature); evaluate RETURNS {tab, value} -- use .value or you
build on the wrapper. And a wait's text match is no settlement
proof mid-action: waiting on a word that lives on a BUTTON label
("rewind") matches instantly while the send is still in flight and
the mid-flight DOM looks like failure -- probe the settled state
via evaluate on a later tick instead. Added 2026-11-18 (provider
round): the a11y snapshot does not show the admin block's
dynamically-built provider cards at all (the tree ends at the
static buttons) -- probe such surfaces by DOM (evaluate), never
read a clean snapshot as an empty page; evaluate has no timers
(setTimeout is undefined in its sandbox) -- wait on settled text
instead; and the armed buttons' 5s confirm window expires between
evaluate calls -- arm and fire within one script. Added
2026-11-14 (multiuser round): the a11y snapshot races async renders
-- waiting for static skeleton text ("RUNS", the aside headings)
snapshots BEFORE the fetches land and looks like a rendering bug;
wait for text that only exists post-render (a card name, the
session-info line) or probe the DOM via evaluate. Added
2026-11-16 (tunables round): programmatic element.focus()/.blur()
inside evaluate fire NO focus/focusout events in the automation
context -- a focus-driven UI (the knob hint bar) looks broken when
driven that way; dispatch a FocusEvent('focus') to exercise the
listener, and treat real-focus behavior as a browser guarantee the
automation cannot reproduce. Empty number inputs also vanish from
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 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.
- Naming gotcha (2026-11-14, SPA round): static files under web/ must
not have names starting with "api" -- the server's route guard
matches the /api PREFIX, so web/api.mjs 404'd as a bogus API route
and the app died at module load with an empty <main>. The REST
client module is client.mjs. Any future web file name gets this
check.
- Gotcha (2026-11-14, rewind aftermath): a session rewind erases my
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 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 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 (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
calibration comparisons) is all that's left; the hand-stamp talk
is moot.** Her frozen session-1 bundle keeps its old handbook
copy: an artifact now, hands off.
**Replay-after-housekeeping is dead** (found in the SPA round) --
RESOLVED BY PLAN (2026-11-15): the dormant-session rework kills
the autorestart, and during dormancy the latest log IS the
just-closed session; the replay default never needed to move.
- Active work: the JSDoc typing round is COMPLETE (2026-11-15,
evening) -- all four phases. Phases 1-2 (the server core) are
committed (`f81b188`); phases 3 (the clerk) and 4 (web/, via the
second tsconfig) are committed (`8d4a6b9`) -- typecheck
green on both programs, smoke 110/110, restart-check on a genuine
restart, check-reminder, check-repo, and a full zero-console-error
browser pass over the SPA; test state cleaned. The audit lists of
non-annotation deltas live in HANDOFF ("Where we are"). Working
lessons from the rounds: in checkJs a JSDoc typedef sharing a
name with a runtime import conflicts (TS2440) -- the import
already carries the type, just use the imported name in
annotations; the any/null and DOM-timer lessons live in the type
gate bullet above. The earlier rounds (entity, variant,
dormant-session rework, Irene hand-migration) are all committed
and live in the git log; the next operational steps remain the
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 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
(gated: turns before the first exchange don't count; the conflict
heal is a reply like any other) -- the first build reset the count
on every GM turn, so every direct reply landed on script position 0;
a carried history shifts a session's first script position, and the
smoke knows the exact tail (a hand-driven browser run with a
different tail lands elsewhere in the script -- that is the script,
not a bug). The clerk's --json now means stdout is JSON only
(renderAll used to print view paths under --json; create started
applying memory.json in-process and the route's JSON.parse choked);
every server->clerk spawn passes --quiet. The lint
(check-repo) reads the git INDEX, so a renamed tracked file must be
staged or the lint dies on the ghost; the README layout section
lives inside a code fence with its own deeper indent -- byte-dump,
the read display lies about depth there too. Deferred to ROADMAP:
save-as-package beyond drafts, the carryover
editor. The lint's blind side (bitten 2026-11-15, commit round): it
reads the git INDEX, so UNTRACKED files are invisible to it -- "ALL
CLEAN" before a commit does not cover never-staged files, and the
moment git add -A runs they enter scope (variants.mjs shipped
em-dashes through three green lint runs that way). Lint again after
staging. The checker exempts its own source from the rules that
name what they ban (text-transform, toLocale -- the patterns
themselves). The variant round: roll
retired as a model tool, chance in play is variant literature
(four ruled turn shapes), the loop picks one candidate at random
on reception (crypto, pre-append strict parse, 422 on malformed),
the pick note is the metric, every model-facing surface renders
the picked variant only, thinking never crosses the story wire,
boot resolves a crash between message and pick note. The entity
round: /story = the whole deliverable (literature only, all
sessions, no doubles -- the reading surface the observables
promised); /table = the play view's session projection (the
renamed old /story); the carry = the slidwin (contiguous
raw tail, whole exchanges, smart cutoff counting only prose the
model sees vs 96KB; the housekeeper reads session-minus-tail, so
an event files exactly when it drops out of the carry; the
boundary is invisible to the model, dimmed behind a divider for
the GM). Working lessons: a scripted mock keys its branches on
the count of assistant MESSAGES, not turns (the roll->variants
renumber bit once); README layout lines wrap at 17 spaces of
indent for continuations -- byte-dump before editing, the read
display lies about depth. Smoke 79/79, restart + reminder +
repo checks green. Unexercised live: the pick, the carry at a
real session boundary, the story as reading surface, coin-flip
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, 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
HTML; em dash is --, ellipsis is ...) and no text-mutating CSS:
rendered text must match authored text (no text-transform, no
generated content: incl. ::before/::after, no caps font variants --
inline styles included). Both enforced by
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, 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 (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 developer emptied the package.
- Working lessons (prior builds): the newest GM
turn must keep its <status>/<agenda> 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 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
lesson (2026-11-14): scripted renames with split/join replace EVERY
occurrence -- renaming the clerk's `paper` case to `status` and then
`status` to `report` ate both, leaving no `status` dispatch; the
smoke caught it on the next run. Order rename pairs so a new name
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 (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 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
skip-it carve-outs are retired with the content: the lint covers
packages/ like any living prose, and the clerk's completeness
check now requires non-empty files (an emptied package lists
honestly as MISSING, never "ok").
- Identity model (2026-11-14): @PC/@Package are identity sigils
(settings pc/name); $TOKENs are prompt-declared template vars
(setup inputs -> settings vars). Run ids are anonymous hex --
display is always "Package / PC". Any new prompt-side file reader
goes through expandVars. GM input expands at ingestion too
(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 (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 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 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 --
the housekeeper's date duty is gone (it couldn't ask, and the touch
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 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.
- Defaults taken without asking (2026-11-13): #21 session-open refuses
over an unhousekept session with explicit override; #16 housekeeper
defaults to the player's model; #10 tool-call pairing validation goes
into the server loop.
- 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, 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.
- Edit-tool lesson repeated (2026-11-13): nested-list indentation in
HANDOFF failed twice from memory -- always transcribe oldString from a
fresh read, counting spaces.