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
+38 -9
View File
@@ -282,7 +282,19 @@ consumes into the log, in one action.
with a pointer at the channel, the same guard `<model>` has.
Numbers that affect play live on the sheet, never in prose
alone -- prose numbers die with the contwin; sheet
numbers ride the scan forever. The mind verb rides the
numbers ride the scan forever. The rewind (2026-11-17) is the
GM's take-back, and it rides the send: a turn may carry
`rewind` -- a log line index naming one of your turns -- and
that send replaces the named turn, everything after it leaving
the log outright (physical truncation; fork is the preservation
story -- fork before rewinding keeps the branch, no fork no
archaeology). The state channels re-derive to the cut: a sheet
record or override inside the dead range reverts with it. The
floor is the frozen opening (the start marker right after the
carryover), never reached past; a pending ask refuses the send.
Every send also carries `expect` -- the log line count it was
composed against -- so a stale tab refuses before anything
rides. The mind verb rides the
same channel:
`<mind>{"temperature": 1.4}</mind>` in a player turn sets its
sampling knobs for its NEXT turn -- one-shot, JSON inside the
@@ -296,7 +308,12 @@ consumes into the log, in one action.
prose, rendered from the via record, the current call included,
suppressed when nothing is set; emitting one is refused with a
pointer at `<mind>`. The sampling itself becomes hers to speak
with. A player turn takes one of four shapes --
with. The self-heal channel's lifetime (2026-11-18): a conflict
stays in the contwin -- a mistake remains visible so it is not
made again -- and every conflict is self-contained, describing
its problem in full with the offending emission quoted, because
the block it answers strips from the view and an old conflict
cannot lean on the turn it follows. A player turn takes one of four shapes --
literature, variant literature, tool call, OOC message (the
reminder teaches them); variant literature is the randomness
channel: several complete candidate turns in one `<variants>`
@@ -357,7 +374,7 @@ Memory is **seven tiers**:
| **status** | descriptions of her immediate situation, admitted by a three-part gate: non-normal, acute, turn-affecting | stamped at her most recent turn's tail, the scan's derived value | **the player** (whole-list `<status>` block in its turns; absent = unchanged); GM override riding a turn, composing as hers |
| **agenda** | her hot queue of intentions -- what she's working towards right now; a fixed-cap recency buffer (new on top, overflow evicts the bottom), disposable by design | stamped at her most recent turn's tail, the scan's derived value (capped at five -- her full list lives only in the log) | **the player** (whole-list `<agenda>` block in its turns; over-cap never derivable); GM override riding a turn, composing as hers |
| **rings A/B** | salient memory -- facts, on her mind, MRU-evicted | always | housekeeper manifest |
| **records** | her files -- the card index, the ledger. Narrow query only, hard cap 10 (in the tool, not the prompt), never bulk-loaded | never -- on demand | **the player** (`file`/`amend`/`discard` at her desk); GM files ahead of play; housekeeper only `archive`s |
| **records** | her files -- the card index, the ledger. Narrow query only, hard cap 10 (in the tool, not the prompt), never bulk-loaded | never -- on demand | **the player** (`file`/`amend`/`discard` at her desk); GM files ahead of play; housekeeper only `archive`s. The player's records tools are off until rewind-compatible (2026-11-17) -- the CLI path stands |
| **cold** | forgotten or vetoed | never -- not even queryable | GM only (`revive`) |
The boundary that keeps the tiers honest: **stances are feelings (status,
@@ -376,6 +393,10 @@ tool refuses queries and record ops when the flag is off, and the rendered
views tell the model the current truth. Unlocking mid-story is a narrative
act: narrate the discovery (the salvaged manifest), flip the flag,
re-render -- the next session and the next housekeeping both see it.
(The player-facing records tools are off until they are
rewind-compatible, 2026-11-17: the flag keeps gating, the manifest
simply does not carry the verbs; the GM's CLI filings are
unaffected.)
The query discipline is an instruction test in itself: queries must be
narrow (what this beat needs, not a fishing expedition), and **a miss is a
@@ -529,8 +550,11 @@ ask_gm answers never do, a ruling must not vanish -- old GM-side
status blocks elide, her own blocks strip, and the derived state
stamps at her most recent turn's tail).
Tool-call pairing is validated before every call. The tool list is
the capability surface: ask_gm always; records only when the run's
gate allows. Chance in play is not a tool: she answers with **variant
the capability surface: ask_gm always; records are OFF for now
(2026-11-17: their verbs mutate the session db, which a rewind does
not compensate -- until they are rewind-compatible the manifest
carries ask_gm alone, whatever the settings gate says; the CLI's
--gm filings never ride a turn and stand). Chance in play is not a tool: she answers with **variant
literature** -- several complete candidate turns in one `<variants>`
block -- and the server picks one at random on reception; the pick is
logged, and the unpicked variants never render on any model-facing
@@ -706,12 +730,15 @@ server/ the substrate: a zero-dependency node:http service
model routes, and the turn loop gate on
bundle.mjs run context: prompt assembly (the trio system message,
the GM-message bundle, @ sigils + $ vars), the tool manifest
and its clerk dispatch
and its clerk dispatch (records off until
rewind-compatible, 2026-11-17)
session.mjs session lifecycle (dormant -> live -> finished: the
start lint and the session-0 memory apply, freeze
and consume; stop with the
move-at-stop slidwin), the append-only typed
jsonl, the view renderer (the stamping at the
move-at-stop slidwin), the typed
jsonl (append-only save the rewind's sanctioned
truncation), the rewind floor (the start
marker), the view renderer (the stamping at the
canon point, elision, thinking-strip,
variant resolution, pairing check)
loop.mjs the turn loop: ask_gm pause/resume, the
@@ -720,7 +747,9 @@ server/ the substrate: a zero-dependency node:http service
stamping), conflict carry, the variant pick, the
mind verb (one-shot <mind> layer over the knob
resolution, bounds enforced, the <model> guard),
the request record (via / req events); the
the request record (via / req events), the
rewind send (the expect staleness guard, the
truncation commit); the
scripted mock model
variants.mjs variant literature: strict parsing of the
<variants> block (malformed refuses loud, nothing