the rewind and conflict-persistence rounds, plus the GM's reminder edit: the take-back and the honest error record.

The rewind (GM, 2026-11-17): "session rewind" came off the operator queue and was redesigned simpler than the turn-surgery proposal -- physical truncation, not typed cut events; fork is the preservation story (fork before rewinding keeps the branch, no fork no archaeology), and the derivation model made the simple design free: status, agenda, and the sheet are all scanState-derived from the log, so a cut re-derives every channel with zero compensation, and every log reader (the view, the scan, the carry walk, the story, housekeeping) sees the same shorter log with nothing new between them. As built: the send commits the rewind -- POST /turn takes optional rewind (a log line index naming one of your turns; that turn and everything after it leave the log, the send replaces it) and optional expect (the log line count the client composed against; the log only moves through sends, so a mismatch means a stale tab and refuses before anything rides -- the ask answer carries it too); gmTurn's order is pendingAsk-refusal -> expect -> expand -> truncate -> land, one commit inside the activity lock, a crash between truncate and land leaving a consistent shorter log and no rewound-but-waiting state ever existing; 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 reads the LAST marker (a carried log may hold an older one inside its opening), and a pre-build log refuses loudly as unmarked; the player-facing records tools are OFF until rewind-compatible (their verbs mutate the session db, which a truncation does not compensate; the manifest carries ask_gm alone whatever the settings gate says, while the CLI's --gm filings never ride a turn and stand, rewind-safe by construction); and /retry never existed -- resending the same words after a rewind IS the retry (the GM had no recollection of where the idea came from; dropped, subsumed). The SPA stages the gesture client-side until the send: a per-GM-turn rewind control (the transcript walk's onRewind, offered live and ask-free only), two-click armed, the target's EXPANDED words auto-filling the composer (the log is truth, $vars baked), a composer tint plus a note naming the cut in entries (the colour alone says something is pending, not what dies), cancel restoring the pre-gesture state, text in the box disabling the buttons under the rename "to rewind delete your current input" (a visible affordance, not hiding), and a failed send keeping the gesture armed only on a 400 (anything else may have moved the log). The gm.md desync is parked to ROADMAP's deferred list (notes taken at turn 30 surviving a rewind to 20, orphaned from the narrative -- nothing mechanical is safe there, fork covers it meanwhile). Verified: typecheck green on both programs, smoke ALL PASS with +14 rewind assertions (the floor refusals, her-turn refusal, the stale-expect 409, the truncation 45->42 lines, the dead-range sheet record reverting, the story dropping the cut, the marker surviving), restart + reminder checks green, check-repo clean after staging, and a browser pass committing a real rewind through the UI end to end (the gesture staged, cancelled, re-staged, edited, sent: 20 turns to 8 on the table, the wire body exactly {line, expect, rewind}, zero console errors).

The conflict-persistence round (GM, 2026-11-18): 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) -- overruled: 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, and the quote is the only visible trace of what went wrong. As built: renderView renders conflictOnly unconditionally (the lastGmIdx elision gone, the variable with it); a shared quote() helper (trim, collapse whitespace, cap at 160 -- enough to identify the mistake, never a wall) feeds the guards ("yours said: {...}" on <model> and <sheet>, "(you set: ...)" on the mind verb's per-key refusals, "-- yours: {the block}" on mind JSON that does not parse; the out-of-bounds mind already carried "(got 7)" and keeps its exact form); and the ripple caught: carry.mjs's visibleBytes counted conflicts as zero-cost on the grounds they "elide 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 story keeps omitting conflicts (machinery, not deliverable) and invariants' one line still reads true, so no prompt-side change was needed. Verified: smoke ALL PASS with +3 assertions (both session-1 conflicts rendering in the view despite being old news, the model-guard quote, the sheet-guard quote), restart + reminder checks green, check-repo clean.

The GM's prompt-side edit rides the same commit: the reminder's decision passage gains the checked-action metrics -- three probes for when an action should be written as intent (external conditions: the lever; scope expansion: the mall; unilateral canonisation: the gasp at what is inside), each example attempt-form under the handbook's "the attempt, never the outcome", and the third deliberately bending that line with the price named in the same breath (the reaction is hers to have, the contents never hers to say, and the dud reveal embraced as a subversion vehicle -- purview taught as a negotiation, not a prohibition); the impulsive/irrational line now names the channel ("mention it in the narration"); the two tab-indented continuations normalized to the file's spaces.

Also: the smoke's final line now prints the draft id (a smoke draft survived cleanup because "run ids" never named it -- caught on the runs listing, deleted, the print is the fix). Docs: README's protocol passage carries the rewind and the conflict lifetime, with the records-off notes in the substrate section, the tiers table, and the layout; DECISIONS #15 gains the full amendment (the ruling record: a-g, expect, the ask refusal, records-off, the gm.md park); QUESTIONS' turn-surgery details closed (retry dropped, truncation ruled); ROADMAP's surgery sections built-and-amended, the operator queue line removed, the gm.md desync parked; DICTIONARY gains the rewind entry and amends the conflict and view entries. The box package and detention stay untracked WIP, untouched.
This commit is contained in:
2026-11-18 17:24:37 +00:00
parent eefb721675
commit 53f992a5e0
19 changed files with 806 additions and 297 deletions
+106 -1
View File
@@ -70,6 +70,23 @@ memory the agent owes itself across sessions.
- 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 GM'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 GM 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
@@ -137,7 +154,86 @@ memory the agent owes itself across sessions.
## State pointers
- **The sheet round is BUILT (2026-11-17, staged, uncommitted): the
- **The conflict-persistence round is BUILT (2026-11-18, GM ruling):
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 GM 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):
the GM's take-back, riding the send.** The GM 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
@@ -522,6 +618,15 @@ memory the agent owes itself across sessions.
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-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;