Files
tiny-worlds/HANDOFF.md
T
mute eebc1993dd the night rounds: the GM-input rework and the reasoning-effort knob -- the workbench renders no faces: the composer overlay and the transcript share colour-only tokens (.narration dim, .emph accent), source verbatim, asterisks tinted and kept on screen, so the input's caret can never drift (the old overlay's real bold/italic shifted advance widths -- keeping every character preserved count, not width; the scrollbar-gutter match killed the second drift source); the story view carries its OWN renderer (view-story storyBody/storySpans) -- the book keeps real bold/italic with the asterisks spent, narration italic via #story-scoped CSS, one rule for the tool and typography for the deliverable, deliberately separate; the composer is turn-shaped: rows=6 floor, field-sizing: content grows it with the turn (the thing the GM remembered Firefox doing -- it was never in use), max-height 50vh caps with internal scroll, the footer moved under the transcript's column only so the input's width is the pane's; the transcript's stick-to-bottom was DEAD CODE all along (#transcript has no height or overflow -- main is the scroller, the scrollTop assignments were no-ops in every browser): stickBottom scrolls main and re-asserts next frame (Firefox's scroll anchoring can reclaim a same-tick scroll around a content wipe), main carries overflow-anchor: none; the prose pane drops its machinery by ruling: the status/agenda chips and the retired delta tags strip (the panes carry the derived state), the reminder card never renders (it is the same every turn -- the raw tab keeps every copy), and the status/agenda note receipts (the old delta applies and the whole-list sets alike) skip the prose walk while the raw keeps them; the model dropdown collapsed to one plain list of ids sorted, ceilings riding along (the family grouping left the user guessing what a family name means, and the curator's tier labels only made sense inside their groups); and the reasoning-effort round: the battery probes the ladder (probeEfforts -- each of none/minimal/low/medium/high/xhigh/max measured for mean thinking, two samples, efforts recorded per model, effortDefault the argmax mean over minimal..max, 'none' never a candidate -- it is the off switch; null when the model shows no thinking), the knob is first-class and the GM's alone (GM, 2026-11-16: hidden from the model, not her call -- never in the mind verb, never in the <model> display block, and renderView's via-derived block filters it too, both surfaces; it rides the via record for the raw surfaces), its unset state SENDS the measured max-mean default (the one knob with an honestly nameable default -- the registry measured it; layers run override > deployment > registry per-model, explicit null clears to nothing), the first non-numeric knob (RoleParams carries the string, the /model route validates against the ladder, the knob row a select whose unset label names what rides and rebuilds on model-select change); the GLM ladder verified live by hand before the build (low suppresses to a third of baseline, max elevates about double, the whole ladder accepted on both families without 400s, and reasoning_effort 'none' doubles as a standardized thinking-off switch); the model dropdown, the composer, and the knob UX browser-proven with zero console errors (the pass caught the unreachable-helpers bug: code after a factory's return never runs, a hoisted function referencing the uninitialized const throws silently mid-fill and stale rows render); smoke ALL PASS with the effort battery (the canned mock ladders, the default riding a bare turn's via, the override riding the next turn, the bogus-level 400, the null clear, no reasoning_effort in any <model> block) + restart + reminder + repo checks green, typecheck green on both programs; ROADMAP gains the distant extension point (n-choice inference composed by a turn-editor agent) and the operator's queue moved there from QUESTIONS by the GM; HANDOFF prepared as the handoff (the typing-round bullet trimmed into the rounds list, the server line now truthful -- the debug server runs, the registry bullet carries the six-knob state and the pending-effort refine)
2026-11-16 23:52:58 +00:00

231 lines
14 KiB
Markdown

# Handoff -- working state
A living document: trim items as they complete. Durable decisions live in
`README.md` (architecture, protocol, observables), `ROADMAP.md` (SOTA
review, steals, extension points), and the prompts (`system.md`,
`housekeeper.md`). Unanswered questions live in `QUESTIONS.md`, the
decision queue; the agent's own working notes live in `AGENTS.md`. This
file is the "where did we leave off" map.
## Where we are
- **Everything is built, proven, and committed (through the
2026-11-16 night rounds -- see the git log).** The
full scope, each round mock-proven end to end and live-proven
where live could reach: the MVP substrate (clerk, server,
housekeeping job, SPA), multiuser (token identity, invites, fork,
user packages, story-only reads), the agenda, the per-turn reminder,
the variant round (variant literature, the crypto pick), the entity
round (/story, /table, the slidwin carry), the dormant-session
rework (the universal session lifecycle, move-at-stop, the start
lint, rebaseable housekeeping, carryover.jsonl + memory.json
packages), the format house rules (nine-rule check-repo), the
naming round, the JSDoc typing round (server, clerk, web), and the
2026-11-16 rounds: the play-protocol batch (OOC GM turns carry no
cache blocks; memory.json editable as authored draft material,
applied by the start gate over a fresh db; /story filters OOC
whole; the per-turn raw control on the table), and model discovery
(the two-step op act, the registry, registry-gated model use, the
five named knobs), the tunables UX round (the knob definitions
table with the hints and probed bounds, the explicit override
toggle, the shared hint bar, and the request recording -- resolved
model + effective params on every msg event, failed calls
included), the mind verb (the player sets its own sampling
for its next turn: <mind> JSON, one-shot, max_tokens excluded,
bounds enforced and conflict-healed, carried unconsumed across a
session boundary), and the full-block protocol (whole-list
status/agenda at her turn tail, stamped at the canon point, the
<model> display blocks, GM prose pure, silent over-cap eviction,
the delta verbs retired), and the state-scan round (2026-11-16,
evening): the log is the one truth for status and agenda -- the
db tiers retired (schema, verbs, canon views, dump sections gone;
old runs keep dead tables, never read, Irene hands-off),
scanState derives each kind newest-wins across her emissions, the
GM's override records, and the boundary state note; the agenda
cap applies on every derivation (an over-cap list is never
derivable -- the raw log is the only place her seven items live);
the stamp renders the canonical formats (status comma-separated,
agenda markdown bullets, the grammar invariants teaches); the
GM's block edits ride the turn (the pane editors stage, the send
attaches, node logs the override field on the GM turn, the
composition renders it as hers -- append-if-empty, OOC turns
refuse edits, the out-of-band POST routes retired); stop writes
the state note at the carry head (the resume-reconcile skips
it); the start gate's n=1 seeding died (her authored opening
turn IS the seed); continuation carryovers are writable in the
file editor during dormancy), and the GM-input round (2026-11-16,
night): the workbench renders no faces -- the composer overlay and
the transcript share colour-only tokens, source verbatim (the
caret-drift died with the faces), the story view carries its own
renderer (the book keeps bold/italic, asterisks spent), the
composer is turn-shaped (six-line floor, field-sizing growth,
50vh cap, the input's width is the pane's), and the transcript's
stick-to-bottom actually scrolls now (it was dead code -- main is
the scroller, not the div), and the reasoning-effort round
(2026-11-16, late night): the battery probes the effort ladder
per model (efforts + effortDefault in the registry), the knob is
first-class and the GM's alone -- hidden from the model (never in
the mind verb, never in the <model> block, riding the via record
for the raw surfaces), its unset state sends the measured
max-mean default, explicit null clears, the knob row a select
that follows the picked model. The design record lives in README /
DICTIONARY / ROADMAP; the build history in the git log.
- **The project is named: Tiny Worlds.** The invariant it names is
stated in README's premise -- each package is a tiny world on
purpose. The repo lives at `C:\data\opencode\tiny-worlds`; the
rename from `rp-test` is complete end to end (robocopy + session
repoint + a one-time sqlite edit of opencode's own db to repoint
the project record -- the desktop UI cannot delete or repoint
projects, anomalyco/opencode#28030). Launch sessions from the new
path.
- **Irene is broken and never runs again (GM, 2026-11-16).** Her logs
and db stay exactly as they are -- no compatibility is designed for
her, no replay, no continuation. What still works is reading her
files on disk (the calibration comparisons); anything live is off
the table. Her frozen session-1 bundle keeps its old handbook copy:
an artifact, hands off.
- **The live story is "La Caramba / Chloe"** (run 15001de3, gitignored
state, glm-5.3-high, owner debug): session one open, 52 GM + 53
player turns. The clean reminder/agenda experiment runs there --
her turn-length curve bends back down late-session where Irene's
ran away, and her reasoning blocks grow into real continuity work
(the calibration comparison against Irene is 2026-11-16
conversation, not a doc). She is MIGRATED to the log-as-truth
design (2026-11-16, same day): her most recent turn carries the
whole-list `<status>`/`<agenda>` blocks, hand-applied from the db's
values before the tiers retired -- her next context stamps them,
the panes derive them, and her db's dead tables sit as residue,
never read. Her older `<lost>/<gained>` tags stay as history (the
view leaves them, the story strips them). Her first stop carries
the first real housekeeping pass, the slidwin test, and the
boundary state note (step 2).
- **Model discovery is built and live-proven (2026-11-16).** The
two-step op act (discover: the free metadata scrape; refine: the
deterministic battery + the curator pass), the registry
(state/models.json -- the truth of selectable models; a fresh
deployment has none and model use is disabled), registry-gated
model routes and turn loop, and the named knobs per
role, run layer over deployment layer -- the five numeric ones
(temperature, top_p, top_k, repetition_penalty, max_tokens) sent
only when set, plus reasoning_effort (2026-11-16, late night --
the sixth, an enum whose unset state sends the measured default;
see the rounds bullet above).
Live-verified against the real endpoint across three refine runs:
gev fails the tool probe and drops (capability detection, no
names in code), off-switch spellings verified per model, the
curator pass curated (after two network-hiccup failures that
exercised the fallback exactly as designed -- machine labels,
deterministic defaults, job applied), and the alias rule works
("measures identical to X -- likely the same model behind both
ids"). The registry on disk is the alias-aware curated run.
RESOLVED (GM, 2026-11-16): the glm-5.2-max vs glm-5.3-max flip was
the dv endpoint's alias all along (one model behind both ids), and
the general rule is ruled and built: the pick ranks on the
reasoning bucket, not the raw token count (within a bucket the
differences are sampling noise -- the thresholds sit in the
endpoint's own observed gaps), and a full tie settles
sort-lex-pick-bottom. The mock registry carries a canned tie pair
(mock / mock-tie, same bucket, same windows) and the smoke asserts
the lex-bottom pick. The on-disk registry still names glm-5.2-max
as its default (the coin-flip run) -- inert while server.json
pins its own pick; the next refine re-picks deterministically
(glm-5.3-max, the lex bottom) and brings the effort measurements
(the registry predates the probe). PENDING: the curator.md review
(GM-led, the housekeeper.md precedent).
- **The server runs in debug mode** (the GM's session:
`node server/main.mjs --debug` -- auth bypassed, loopback-bound).
state/ holds the registry (models.json, the alias-aware curated
run) plus the debug boot's bootstrap-invite mint (no user ever
claimed; the first NORMAL start mints the real bootstrap invite
to state/bootstrap-invite.txt and the console).
## Immediate next steps, in order
1. **First start under multiuser (op, one-time).** Start the server,
claim the bootstrap invite (`state/bootstrap-invite.txt` and the
console both carry it). Discovery is already done -- the registry
is on disk (models.json), so the selectors are populated from the
first load; re-running refine after the curator.md review
regenerates it in one click. No migration code exists, by ruling.
2. **Play Chloe to her first stop -- the memory test begins there.**
Her first close-and-housekeep carries the first real housekeeping
pass: review the manifest and the session log against the dump
diff (the audit surface). Everything from the session lives only
in context and in her logged blocks until this lands. The pass
ends in DORMANCY -- the review window is the point (edit
rings/prompts, then start). Her session two is also the
full-block protocol's first live run: the new prompts +
substrate meet her there, the boundary state note carries her
status and agenda across, and her session-one delta tags ride
the carry as history (the view leaves them, the story strips
them). Irene is broken and never runs again -- her files stay
as they are, reading only.
3. **Prompt reviews (GM-led).** housekeeper.md: read it, tweak,
replay -- the dry-run button re-runs housekeeping over the
session log with nothing applied. curator.md likewise: read it,
red-pen, re-run refine.
4. **Keep playing -- and watch the experiments.** Observables #12
(the status stays small and matches the transcripts -- now
structural under the state scan) and #14 (turn
lengthening -- the reminder is the countermeasure under test,
and Chloe's curve bends back down where Irene's ran away), plus
the fresh watchables: does thread-tracking move to the agenda;
cross-channel drift; whether description-only "empty turns" stay
on her side of the purview line; the protocol's own firsts --
whether she restates her blocks every turn or only on change,
whether the `<model>` blocks teach her anything (self-
calibration), and whether she ever states a `<mind>`. The
override's own watchable: whether a GM block edit reads as her
state to her (it must -- the composition is the design) and
whether she adopts or fights it on her next emission. The
effort knob's watchable: whether max-effort changes her texture
and her cost curve -- the first knob that changes how much she
thinks, not how she samples.
Variantary: the metric's curve (`/story` variance -- how often,
how many candidates), coin-flip personality (choices offloaded
to chance that should be character), and whether her variants
stay same-turn alternatives rather than sequences.
## Not yet exercised (expect first-use friction)
- **First start under multiuser** (step 1) -- nothing live has
touched the auth spine, invites, fork, or the non-owner reads yet;
all are mock-proven only.
- **A knob riding a real request** -- the knobs, their explicit-override
UX, and the request recording are smoke- and browser-proven, but no
live turn has carried one; the max-reasoning defaults are likewise
unplayed (Chloe runs -high; no turn has run on a -max model). The
effort knob doubly so: the registry on disk predates the probe, so
no live turn has carried reasoning_effort either -- the first
refine (the op's one click, post-curator-review) brings the
measured defaults, and the GLM ladder is already verified live by
hand (low suppresses, max elevates).
- **The full-block protocol against a live model** -- whole-list
emission, the stamping, the `<model>` blocks, and whether she ever
states a `<mind>` are all unexercised live; Chloe's session two
(post-review-window) is the first run of it. Her session-one turns
carry the old delta tags as history; the view leaves them (her
words), the story strips them. Her migrated blocks (the last
turn's whole lists) are in-context from her next turn, but she has
not EMITTED a whole list herself yet -- her first own emission is
still unplayed.
- **The GM override against a live model** -- the staging UX, the
turn-riding record, and the composition are smoke- and
browser-proven, but no live turn has carried one; whether a live
model reads the composed state as hers and adopts it is the open
question.
- ask_gm in live flow (pause/resume is mock-proven; the live model
simply made its own choices so far -- by design), the self-heal
conflict path in live flow (mock-proven; capped at 3 heals a turn),
the agenda and the reminder against a live model, records tools
through the server (needs a records-enabled run).
- The slidwin carry against a real session boundary in earnest
(Chloe's first stop), the story read as the review surface, the
OOC-hole showing in practice, and everything variantary live: the
pick against a real model, the metric's curve, coin-flip
personality.
- A live housekeeping rejection, and the recovery-apply path on a
real manifest.
- The in-flow missed-update prediction (ROADMAP, system-1 entry) --
measurable from the second real session on.