Files
tiny-worlds/test/check-reminder.mjs
T
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

52 lines
2.3 KiB
JavaScript

// test/check-reminder.mjs -- unit-verifies the reminder elision
// policy: the live context carries exactly one reminder (the newest),
// sitting at the freshest end, next to the one system trio from the
// bundle. Run against a run id that has GM turns:
// node test/check-reminder.mjs <runId>
import { loadSession, renderView, listSessions } from '../server/session.mjs';
const runId = process.argv[2];
if (!runId) {
console.error('usage: node test/check-reminder.mjs <runId>');
process.exit(1);
}
// the newest session that has a log (a dormant latest has none)
let s = null;
for (const n of [...listSessions(runId)].reverse()) {
try {
s = loadSession(runId, n);
break;
} catch {}
}
if (!s) {
console.error(`no session log under runs/${runId}/sessions/*/log.jsonl`);
process.exit(1);
}
const view = renderView(s);
const sys = view.filter((m) => m.role === 'system');
let fails = 0;
const ok = (name, cond, extra = '') => {
console.log(`${cond ? 'PASS' : 'FAIL'} ${name}${extra ? ` -- ${extra}` : ''}`);
if (!cond) fails++;
};
const logged = s.lines.filter((e) => e.reminder).length;
ok(`log keeps every copy (${logged})`, logged >= 1, `${logged}`);
// the sheet chunk (when the run keeps a ledger) is its own live
// system surface at the freshest end -- the reminder policy tolerates
// exactly one of them
const sheetChunks = sys.filter((m) => /^<sheet>/.test(String(m.content ?? '').trim()));
ok('view carries exactly two system chunks (the trio + the newest reminder)',
sys.length === 2 + sheetChunks.length && sheetChunks.length <= 1, `${sys.length}`);
// mid-call the reminder is the last message; after the model's reply it
// sits immediately before that reply -- either way it follows the newest
// GM turn at the freshest end of the context. Only her latest reply
// and the sheet chunk may follow it
const ri = view.findIndex((m) => m.role === 'system' && /How to compose your turn/i.test(m.content));
const after = view.slice(ri + 1);
const tail = view.slice(-3).map((m) => m.role).join(',');
ok('the reminder rides at the freshest end',
after.every((m) => m.role === 'assistant' || (m.role === 'system' && /^<sheet>/.test(String(m.content ?? '').trim()))) && after.length <= 2, tail);
console.log(fails ? `\n${fails} FAILURES` : '\nALL PASS');
process.exit(fails ? 1 : 0);