gm-input expansion built from the roadmap (DECISIONS #9's strictness ruling): the GM's line and ask answers expand at ingestion -- @PC/@Package and $vars resolve before the log, an unresolved token refuses the turn with a 400 naming it and nothing appended; the log records the expanded line, keeping continuation carryovers expansion-free by construction; smoke +4 (the $Bogus refusal, the log provably unchanged, a live sigil turn, the expanded line in the log) -- 115/115 all pass; the GM input gains a highlight overlay (the setup editor's stack pattern transplanted): *italics* render italic, **bold** renders bold, @PC/@Package gold, $vars green, every character kept on screen (the asterisks too) so the caret never desyncs, bold/italics matched per-line like the transcript renderer; the box rekeys -- Enter is a plain newline, Ctrl+Space sends, placeholder updated; and a pre-existing bug the live pass caught: failed-action banners were wiped by the render() that follows every action (the runGone trap) -- sendTurn, sendAnswer, and startRun now set the banner after the render; browser-proven end to end: tokens highlight in place, Enter newlines, the refusal loop shows the banner and restores the line un-eaten and still highlighted, the sigil expands in the log, zero console errors; the roadmap item struck as built, DECISIONS #9 amended to same-day-built, README's substitution paragraph and AGENTS' identity-model bullet carry the live-input rule; typecheck green on both programs, check-repo clean
This commit is contained in:
@@ -234,6 +234,19 @@ pen). Absent/empty file = no ride. The reminder is now the experiment:
|
||||
|
||||
## Small / non-blocking
|
||||
|
||||
### 9. Unresolved-token check in expandVars -- RESOLVED (2026-11-15, GM)
|
||||
Added beyond the literal ask: any leftover `$WORD` after substitution
|
||||
fails loudly. Keep, or relax to silent pass-through? (2026-11-12)
|
||||
|
||||
Resolution: strict, everywhere -- the authored carryover's start
|
||||
lint, and live GM input at ingestion (GM-input expansion, built the
|
||||
same day: expansion errors refuse the turn, the failed line is
|
||||
handed back to the GM un-eaten). No silent pass-through anywhere;
|
||||
the model never sees a raw var. What makes strict affordable is the
|
||||
failure UX, ruled with it: the refused prose comes back for editing
|
||||
and resubmit -- the SPA's send path already practiced exactly this
|
||||
for failed sends.
|
||||
|
||||
### 10. Orphan tool messages are silently tolerated -- RESOLVED BY DEFAULT (2026-11-13)
|
||||
Probe finding: a tool result without a preceding tool_calls is accepted
|
||||
by the endpoint and simply ignored -- a desynced pairing won't 400. Should
|
||||
|
||||
Reference in New Issue
Block a user