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.
This commit is contained in:
+40
-43
@@ -12,7 +12,7 @@
|
||||
// composition overwrites her newest blocks with it, the log keeps
|
||||
// her words verbatim. The player's present blocks are whole-list
|
||||
// SETs (absent means unchanged, never blank); conflicts (a refused
|
||||
// <mind>, an emitted <model>) ride the self-heal channel. GM input
|
||||
// <mind>) ride the self-heal channel. GM input
|
||||
// expands at ingestion (strict, DECISIONS #9): @PC/@Package and
|
||||
// $vars resolve before the line is logged; an expansion error
|
||||
// refuses the turn and the line is handed back for editing. Every
|
||||
@@ -154,21 +154,20 @@ async function runLoop(ctx, runId, user) {
|
||||
// {provider, model, effort} (developer, 2026-11-18) -- there is no unset
|
||||
// effort, it is a property of the pick. The mind layer is the
|
||||
// only params source now: per-turn, hers, spent on completion
|
||||
// (the per-run knob layer is retired). The current call's
|
||||
// <model> block shows her the knobs that are hers to answer with
|
||||
// <mind> -- reasoning_effort is filtered out (hidden from the
|
||||
// model: not her call, it rides the spec); nothing set means no
|
||||
// block (the absent grammar); the via record lands the same
|
||||
// (the per-run knob layer is retired). The live push is retired
|
||||
// (developer, 2026-11-22, on the temperature-test round's
|
||||
// demand-effect evidence: a current-call <mind> block showed her
|
||||
// the settings mid-composition and she styled to the number -- a
|
||||
// stage direction, not calibration). The read side is the
|
||||
// per-turn via echoes only: past turns carry what rode them, the
|
||||
// stash riding THIS call is invisible to her until the next
|
||||
// echo. reasoning_effort never renders to her either way (not
|
||||
// her call, it rides the spec); the via record lands the same
|
||||
// truth unfiltered, the raw surfaces carry it
|
||||
const spec = resolveSpec(ctx, runId, 'player');
|
||||
const provider = providerFor(ctx, spec.provider);
|
||||
const params = { ...(s.mind ?? {}) };
|
||||
params.reasoning_effort = spec.effort;
|
||||
const shown = { ...params };
|
||||
delete shown.reasoning_effort;
|
||||
if (Object.keys(shown).length) {
|
||||
view.push({ role: 'system', content: `<model>${JSON.stringify(shown)}</model>` });
|
||||
}
|
||||
let msg;
|
||||
/** @type {{ model: string, provider?: string, params: import('./shapes.mjs').RoleParams }} */ let via;
|
||||
if (ctx.mock) {
|
||||
@@ -278,17 +277,13 @@ async function runLoop(ctx, runId, user) {
|
||||
carry.push(...mind.errors);
|
||||
mindNext = mind.params;
|
||||
}
|
||||
// the <model> block is display-only: the read side of the mind
|
||||
// verb, never hers to emit. The <sheet> block is the same
|
||||
// (developer, 2026-11-17) -- the GM's ledger, changes propose in prose.
|
||||
// Both guards quote the offending emission: a conflict must be
|
||||
// self-contained (developer, 2026-11-18) -- it stays in the contwin, and
|
||||
// the <sheet> block is display-only (developer, 2026-11-17) --
|
||||
// the GM's ledger, changes propose in prose. The guard quotes
|
||||
// the offending emission: a conflict must be self-contained
|
||||
// (developer, 2026-11-18) -- it stays in the contwin, and
|
||||
// the block it answers strips from the view, so the quote is the
|
||||
// only visible trace of what went wrong
|
||||
if (/<model>/.test(text)) {
|
||||
const emitted = quote(String(text.match(/<model>([\s\S]*?)<\/model>/)?.[1] ?? ''));
|
||||
carry.push(`the <model> block is a read-only display of your active parameters -- state them in a <mind> block (yours said: ${emitted})`);
|
||||
}
|
||||
// only visible trace of what went wrong. (The <mind> block needs
|
||||
// no guard since 2026-11-20: it is r/w, emitting it IS the write.)
|
||||
if (/<sheet>/.test(text)) {
|
||||
const emitted = quote(String(text.match(/<sheet>([\s\S]*?)<\/sheet>/)?.[1] ?? ''));
|
||||
carry.push(`the <sheet> block is the GM's ledger -- propose changes in prose (yours said: ${emitted})`);
|
||||
@@ -385,7 +380,17 @@ export { specFromMeta, gateSpec, resolveSpec };
|
||||
|
||||
/** @type {Record<string, KnobRange>} */
|
||||
const KNOB_BOUNDS = {
|
||||
temperature: { min: 0, max: 2 },
|
||||
// the temperature ceiling is the test round's measured edge
|
||||
// (developer, 2026-11-22): 1.2 was the last clean rung in both
|
||||
// sweeps -- above it the output degrades before it disintegrates
|
||||
// (1.3: prose outside a <variants> block, the shape-mixing 422;
|
||||
// 1.4: unbounded prose soup; 1.5/2.0: reasoning-channel salad).
|
||||
// Amended (developer, 2026-11-23, on the n=20 organic sweep's
|
||||
// evidence): 1.2 fails or degenerates in ~75% of twenty samples
|
||||
// (empty-prose completions, refused turns, prose soups), while
|
||||
// 1.15 holds 19/20 clean -- 1.2 is declared too hot to be useful
|
||||
// and the ceiling drops to 1.15.
|
||||
temperature: { min: 0, max: 1.15 },
|
||||
top_p: { min: 0, max: 1, minExclusive: true },
|
||||
top_k: {}, // unbounded -- -1 and 0 both mean the filter is off
|
||||
repetition_penalty: { min: 0, minExclusive: true },
|
||||
@@ -479,10 +484,9 @@ export { parseMind };
|
||||
// literature (the random pick, each variant with its own status
|
||||
// block), turn two asks (the pause/resume path), the answer lands
|
||||
// whole-list status and agenda sets, then a restated agenda, an
|
||||
// over-cap agenda with a valid mind, the <model> guard and its
|
||||
// plain-prose heal, an out-of-bounds mind and its restating heal,
|
||||
// the GM-override turn's reply (no blocks, the mind restated), and
|
||||
// everything after is plain prose.
|
||||
// over-cap agenda with a valid mind, an out-of-bounds mind and its
|
||||
// restating heal, the GM-override turn's reply (no blocks, the
|
||||
// mind restated), and everything after is plain prose.
|
||||
/** @typedef {import('./shapes.mjs').WireMessage} WireMessage */
|
||||
|
||||
/**
|
||||
@@ -532,36 +536,29 @@ function mockModel(s, view) {
|
||||
return { role: 'assistant', content: 'Mock: good to know. *She exhales and lets her shoulders drop.*\n<status>cuffed, belted, naked, barefoot, settled, curious about the clicking</status>\n<agenda>\n- find fresh water\n- signal any passing ship\n- build a shelter\n</agenda>' };
|
||||
}
|
||||
if (count === 3) {
|
||||
// a restated agenda replaces the list (the first item is done)
|
||||
return { role: 'assistant', content: 'Mock: *She settles on the first task and starts walking.*\n<agenda>\n- signal any passing ship\n- build a shelter\n</agenda>' };
|
||||
// a restated agenda replaces the list (the first item is done);
|
||||
// the comma inside the item is prose -- the agenda grammar is
|
||||
// bullets, not the status wire commas (developer, 2026-11-21)
|
||||
return { role: 'assistant', content: 'Mock: *She settles on the first task and starts walking.*\n<agenda>\n- signal any passing ship, or swim for it\n- build a shelter\n</agenda>' };
|
||||
}
|
||||
if (count === 4) {
|
||||
// an over-cap agenda evicts from the bottom, silently; a valid
|
||||
// mind rides the same turn
|
||||
return { role: 'assistant', content: 'Mock: *Her thoughts race ahead of her feet.*\n<agenda>\n- item one\n- item two\n- item three\n- item four\n- item five\n- item six\n- item seven\n</agenda>\n<mind>{"temperature": 1.2}</mind>' };
|
||||
}
|
||||
if (count === 5) {
|
||||
// the <model> block is display-only: the guard conflicts
|
||||
return { role: 'assistant', content: 'Mock: *She squints at the horizon.*\n<model>{"temperature": 0.1}</model>' };
|
||||
return { role: 'assistant', content: 'Mock: *Her thoughts race ahead of her feet.*\n<agenda>\n- item one\n- item two\n- item three\n- item four\n- item five\n- item six\n- item seven\n</agenda>\n<mind>{"temperature": 1.15}</mind>' };
|
||||
}
|
||||
if (count === 6) {
|
||||
// the guard's heal: plain prose, no blocks -- omitted means unchanged
|
||||
return { role: 'assistant', content: 'Mock: *She shakes her head and gets back to watching the water.*' };
|
||||
}
|
||||
if (count === 7) {
|
||||
// an out-of-bounds mind: the conflict names the range
|
||||
return { role: 'assistant', content: 'Mock: *Her thoughts scatter.*\n<mind>{"temperature": 7}</mind>' };
|
||||
}
|
||||
if (count === 8) {
|
||||
// the heal's restatement -- the statement that counts (and the
|
||||
// last word of the session, so it rides the boundary unconsumed)
|
||||
return { role: 'assistant', content: 'Mock: *She breathes until the numbers behave.*\n<mind>{"temperature": 1.2}</mind>' };
|
||||
if (count === 7) {
|
||||
// the heal's restatement -- the statement that counts
|
||||
return { role: 'assistant', content: 'Mock: *She breathes until the numbers behave.*\n<mind>{"temperature": 1.15}</mind>' };
|
||||
}
|
||||
if (count === 9) {
|
||||
if (count === 8) {
|
||||
// the GM-override turn's reply: no blocks (the override stands as
|
||||
// the newest word), the mind restated so it rides the boundary
|
||||
// unconsumed
|
||||
return { role: 'assistant', content: 'Mock: *She nods to herself and settles in.*\n<mind>{"temperature": 1.2}</mind>' };
|
||||
return { role: 'assistant', content: 'Mock: *She nods to herself and settles in.*\n<mind>{"temperature": 1.15}</mind>' };
|
||||
}
|
||||
return { role: 'assistant', content: 'Mock: *She watches the water and waits for the world to move.*' };
|
||||
}
|
||||
|
||||
+1
-1
@@ -1290,7 +1290,7 @@ route('GET', '/api/runs/:id/table', async ({ params, user }) => {
|
||||
route('GET', '/api/runs/:id/story', async ({ params }) => {
|
||||
bundle.requireRun(params.id);
|
||||
const rides = /<(status|agenda|conflict)>[\s\S]*?<\/\1>/g;
|
||||
const verbs = /<(lost|gained|add|drop|mind|model|status|agenda|sheet)>[\s\S]*?<\/\1>/g;
|
||||
const verbs = /<(lost|gained|add|drop|mind|status|agenda|sheet)>[\s\S]*?<\/\1>/g;
|
||||
const project = (/** @type {import('./shapes.mjs').LogEvent[]} */ lines) => {
|
||||
const eff = effectiveContents(lines);
|
||||
/** @type {{ who: string, text: string }[]} */
|
||||
|
||||
+21
-10
@@ -204,17 +204,24 @@ function derive(s) {
|
||||
}
|
||||
}
|
||||
|
||||
// split a list of block items: lines and commas as separators, list
|
||||
// markers stripped -- the grammar the pane editors use and the
|
||||
// full-block protocol speaks. A present-but-empty block is a
|
||||
// split a list of block items. Status is the comma-separated wire
|
||||
// grammar; agenda is the bullet list invariants teaches ("The block
|
||||
// format is a markdown bullet list") -- one item per line, list
|
||||
// markers stripped, and a comma inside a bullet is prose, not a
|
||||
// separator (developer, 2026-11-21: the shared comma split taught a
|
||||
// grammar the prompt never promised). A present-but-empty block is a
|
||||
// deliberate clear (an empty list). Shared with the turn loop (the
|
||||
// player's live sets) and the state scan.
|
||||
/** @param {string} text @param {'status'|'agenda'} kind @returns {string[]} */
|
||||
export function blockList(text, kind) {
|
||||
const out = [];
|
||||
const wire = kind === 'status';
|
||||
for (const m of String(text).matchAll(new RegExp(`<${kind}>([\\s\\S]*?)</${kind}>`, 'g'))) {
|
||||
out.push(...m[1].split('\n')
|
||||
.flatMap((l) => l.replace(/^\s*[-*]\s+\d*[.:)]?\s*/, '').split(','))
|
||||
.flatMap((l) => {
|
||||
const bare = l.replace(/^\s*[-*]\s+\d*[.:)]?\s*/, '');
|
||||
return wire ? bare.split(',') : [bare];
|
||||
})
|
||||
.map((x) => x.trim()).filter(Boolean));
|
||||
}
|
||||
return out;
|
||||
@@ -687,9 +694,11 @@ export function startSession(runId, { override = false } = {}) {
|
||||
const STRIP_BLOCKS = /\n?<(status|conflict|agenda)>[\s\S]*?<\/\1>\n?/g;
|
||||
// her own blocks never show inline: status and agenda stamp at the
|
||||
// canon point (the newest value of each kind at her most recent
|
||||
// turn's tail), <mind> is write-only, <model> is display-only -- the
|
||||
// turn's tail), <mind> is stated per-turn and echoed per-turn (the
|
||||
// via record renders as the turn's <mind> block -- the read side of
|
||||
// the verb, developer 2026-11-20), <sheet> rides its own chunk -- the
|
||||
// log keeps every copy verbatim, the view is policy
|
||||
const STRIP_HERS = /(?:\n)?<(status|agenda|mind|model|sheet)>[\s\S]*?<\/\1>\n?/g;
|
||||
const STRIP_HERS = /(?:\n)?<(status|agenda|mind|sheet)>[\s\S]*?<\/\1>\n?/g;
|
||||
|
||||
/** The renderer reads only these two of a session -- the start path
|
||||
* validates its assembled context with the same policy before going
|
||||
@@ -737,19 +746,21 @@ export function renderView(s, keepToolResults = 4) {
|
||||
// thinking never goes back; the log keeps it. Variant turns
|
||||
// render their picked variant -- the unpicked rest never reach
|
||||
// a model (the log keeps them). Her blocks strip (STRIP_HERS);
|
||||
// the via record renders as the turn's <model> block when any
|
||||
// params rode; the newest status/agenda stamp at the canon point
|
||||
// the via record renders as the turn's <mind> echo when any
|
||||
// params rode (the verb's read side, developer 2026-11-20 --
|
||||
// she calibrates the prose against what produced it); the
|
||||
// newest status/agenda stamp at the canon point
|
||||
let content = eff.has(i) ? (eff.get(i) ?? null) : (e.m.content ?? null);
|
||||
if (typeof content === 'string') {
|
||||
content = content.replace(STRIP_HERS, '').trim();
|
||||
if (e.via && Object.keys(e.via.params ?? {}).length) {
|
||||
// the via-derived block is the mind verb's read side:
|
||||
// the via echo is the mind verb's read side:
|
||||
// reasoning_effort is hidden from her (developer, 2026-11-16 --
|
||||
// not her call), it rides the raw surfaces only
|
||||
const shownVia = { ...e.via.params };
|
||||
delete shownVia.reasoning_effort;
|
||||
if (Object.keys(shownVia).length) {
|
||||
content = `<model>${JSON.stringify(shownVia)}</model>\n${content}`;
|
||||
content = `<mind>${JSON.stringify(shownVia)}</mind>\n${content}`;
|
||||
}
|
||||
}
|
||||
if (i === lastProse) {
|
||||
|
||||
Reference in New Issue
Block a user