Repository navigation
Description
Size: 4 slices, about 380 changed lines. Depends on: none. Compost: Click-to-flip, neighbour-jump, interleaving and mixed strategies stay unbuilt and get no implementation issues until Direct manipulation is cultivated; the copy must not promise them — 2 — plan 1 on #107 and #108 — promotes the click/jump half only; the mixed-strategies half stays for #60.
Story. The app still treats the trajectory as a film: “Walk it” computes every row from the seed before the reader can touch it (src/routes/+page.svelte:401-425, :522-530), and the slider is the only way to move (:604-612). This issue makes the reader's choices the timeline. After “Walk it” the app holds one row — the encoded input — and no future. Clicking a prose or chip token pins the inspector (the same graph built by buildNeighborGraph in src/lib/strategies/neighbor-graph.ts:155-205), makes the current token's neighbour nodes clickable, and a click appends exactly one row: the chosen neighbour replaces the token at that position, every other position is copied, and the inspector follows the new token. Acting while scrubbed back to an earlier row discards the rows after it and branches from there. Undo pops the last row. The slider becomes a history scrubber; the total-timesteps input is hidden in this mode. No trajectory is computed or cached on the way in.
Show. Run npm run dev, click “Walk it”. The readout should show t = 0 / 0 and the input text, with no future. Click a token; the inspector pins. Click a neighbour; the token changes and the readout becomes t = 1 / 1. Scrub back to 0, click a different token and jump: the row at 1 is replaced, not appended at 2. Undo returns to 0. A short recorded run in the PR:
t=0 The quick brown fox
jump position 2 -> slow t=1 The quick slow fox
jump position 3 -> dog t=2 The quick slow dog
undo t=1 The quick slow fox
(Use the real GPT-2 token positions; the words are illustrative.)
Acceptance criteria.
- AC1 — the Show above is reproduced by a local
npm run e2espec (or a recorded manual run if e2e is skipped): thet = 0 / 0start, the pinned inspector, the jump, the branch from an earlier row, and the undo. - AC2 — entering explore with non-empty input creates a timeline with one row,
T = 0,t = 0,trajectoryStore.statusisready, and no workercomputerequest is posted. A unit test on the hand-walk model and a page test/spy assert this. - AC3 — a click (and Enter/Space) on a prose token or chip pins the inspector with the clicked position and time; the pinned inspector remains while the pointer moves into it; Escape or its close button unpins. Hover still previews without pinning.
- AC4 — only neighbour nodes adjacent to the token at the pinned time are clickable; nodes that are neighbours of earlier trajectory nodes are inert. Clicking one appends one row from the visible row: the chosen token replaces that position, every other cell equals the visible row,
Tincreases by one, andtmoves to the new row. A unit test covers append and the branch-from-earlier-tcase. - AC5 — undo removes the last row, sets
tto the new last index, and is a no-op atT = 0; a jump after undo appends from the restored row. Unit test. - AC6 — the slider ranges only over built rows (
0..T), and its total-timesteps input is not editable in hand-walk mode; arrow keys and the step buttons cannot move past either end. - AC7 — the hand-walk rows never enter
TrajectoryCache; its size is unchanged across jumps, branches and undo. - AC8 — changing strategy or schedule mid-walk leaves existing rows untouched; only subsequent actions and inspector queries use the new strategy/schedule.
- AC9 —
npm run check,npm run lint,npx prettier --check .andnpm run testpass.
Not doing.
- The full-neighbourhood scroll list — issue 2. This issue can only pick the current token's neighbours that the graph already shows.
- Random flip and one-step diffusion — issue 3. Specific jumps here use no RNG.
- Redo, a branch tree, or named saved branches; acting from an earlier row discards the future.
- Per-step strategy/schedule provenance; a mid-walk change applies to future actions and inspector reads only.
- Clicking trajectory nodes to scrub; the slider covers that.
- Mixed strategies — Kernel algebra: mixtures, composition, product-of-experts #60.
- Touch gestures and modifier-key-only actions; explicit click/Enter and visible buttons only.
Open questions.
- Should a specific jump to a neighbour outside the active strategy's candidate set be allowed? I propose yes — a forced jump, with its inspector edge weight shown as
0or—— because direct choice is the point. - Should the hand-walk horizon cap at
scheduleStore.T(300 by default), or may specific jumps grow past it? I propose cap atT; random flips in issue 3 needbeta(t). - Should the inspector follow the jumped token at the same screen position, or close and require a new click? I propose follow and re-query; the tooltip may stay where it was.
- Does “click a token” include tokens in historical rows, with a jump branching from that row? I propose yes; the visible row is the branch point.
Activity
Enniwhere commentedon Nov 23, 2026
Walked 2026-11-23.
What is there. Explore is a film:$(T+1)\times L$ rows, the slider scrubs them, and the inspector queries a column for
+page.svelteposts onecomputespec as soon as text and a tokenizer exist,trajectoryStorecaches densebuildNeighborGraph, which draws the chain plus the 1-hop neighbourhood of every visited token. Hand-walk inverts this: one row in, no compute or cache; a neighbour click appends one copied row; an earlier row branches; undo pops.Decided.
anchorStepcannot say which node is current or adjacent now; add a focus step tobuildNeighborGraph(or a focus field onNeighborGraph) and keep the chain.trajectoryStore;TrajectoryCacheand the worker'scomputepath stay untouched, per AC2/AC7.T(300 by default). In this slice every clickable node is already in the active candidate set, so the forced-jump question waits for issue 2.tto the new last row.Tneed rewriting with the code; capacity remains 300.Still open.
BetaReadoutand the schedule picker still sit beside a timeline they no longer drive. Hide, quiet, or re-caption?Enniwhere commentedon Nov 23, 2026
Story. Open the app and the input is already the timeline:
t = 0 / 0, the text as row 0, no future. The walk supersedes the Show's "click Walk it": explore is the default screen and the precomputed film goes. Click a token and its inspector pins at that position and row. Click one of the current token's neighbour nodes and exactly one row is appended — the chosen token replaces that position, every other cell is copied, andtfollows. Acting while scrubbed back discards the rows after that point and branches from there. Undo pops the tail. The slider becomes a history scrubber and the total-steps field is read-only, because the reader's choices, not a seed, now decide what comes next.Smallest version. One row on load, pin, neighbour jump, branch, undo, nothing computed ahead. It leaves out the film mode, the full-neighbourhood scroll list, random flips, redo and branch trees, forced jumps outside the candidate set, provenance and touch. Cost: about 410 added, 130 deleted, four slices. Two things beyond the issue's own list are argued for and are small: flipping the default mode (one line in
viewStore) and exploiting deletions — the compute-request effect, the progress bar and phase labels, and the three film-era e2e assertions go, which is most of the deleted total. The Edit screen survives as an optional destination from the input bar; moving the textarea inline buys nothing here.BetaReadoutis hidden in hand-walk, but the schedule picker stays: the inspector still reads past edges under it, and random flips will need it. No provenance badge or kernel-changed note — weights are read under the current kernel, as the walk accepted.Soil check. The
Trajectorytype's(T+1) × Lrows andtokensAt, plustrajectoryStore.queryNeighbors, are already the right seam;TrajectoryCacheandrequest()stay untouched (AC7).buildNeighborGraphand the worker'sneighborshandler already build the tooltip's chain plus 1-hop graph — add a focus step and draw only the focus's neighbourhood, so AC4 is structural and earlier neighbours never exist.InlineTokensandTokenChipsalready carryrole="button",tabindex=0and focus previews; click/Enter is one handler each.TimeSlideralready steps and clamps; a no-input flag covers AC6. Delete the compute-request effect (src/routes/+page.svelte:406–425), the progress bar andtrajStatus(~40 lines), thescheduleStore.Tclamps incanStep/handleKeydown, and three e2e tests whose subject is the removed random process. Two small corrections in the same area: onemaxStepderived replaces the threescheduleStore.Treads and the duplicate clamp (~15 lines, the tending item), andneighbor-graph.ts's comment calling a trajectory edge "the true probability the walk used" is no longer true — it is the current kernel's read.Not doing.
0 / 0with no progress UI.Slices. Repo cap is 400 changed lines per commit (
.omhu.json); the gate stops at 500.statusready and no request, the slider over0..Twith the total read-only, and Undo disabled unless at the tail. Tests: append, branch, undo, no-op atT = 0, and ready-without-compute at the store seam.buildNeighborGraphtakes a focus step and builds only that step's 1-hop neighbourhood; the tooltip is told the focus so the ring and ramp are right. Click/Enter/Space on a prose token or chip pins position and time; Escape or close unpins; the pinned tooltip survives the pointer entering it; hover still previews when nothing is pinned. Test: the chain is intact and earlier-step neighbour nodes are absent.t, and re-queries the inspector at the same position. Scrub-then-jump replaces the future; undo pops and restores; a strategy or schedule change re-queries only. Tests: jump, branch-from-earlier, undo-then-jump.Tprose inREADME.md,DESIGN.md§3.2/§5,AboutPanel.svelteand.omhu/MAP.md; COMPOST lines; version bump (feat→ minor). This slice is the estimate's swing — if it passes the cap it splitsS4a/S4b.Net lines. About 410 added, 130 deleted, ~540 changed.
This touches the main screen's state model and retires tests, so it deserves a review. Next step:
/implement 113.fix(#113): hide the beta readout in hand-walk
Enniwhere commentedon Nov 24, 2026
Plan: fix the GPT-2 source switch and the review follow-ups
Same issue #113 / PR #116; no new version bump (the PR already carries
1.18.0). Five slices.Diagnosis
src/routes/+page.svelte:479-486both reads and writesembeddingStore.sourceId. While the tokenizer iswords, clicking GPT-2 sets the source togpt2, the effect re-runs, and it writesgloveback. The card is not broken; the effect is re-tracking its own output. Fix by reading and writing the source insideuntrack(...)so the effect still selects the one valid source when the word tokenizer becomes active, but a user source click no longer re-runs it.Slices
src/routes/+page.svelte:479-486: wrap theembeddingStore.sourceIdread/write inuntrack(...); update the comment.untrackis already imported.e2e/embedding-source.spec.ts: wait for app ready, selectembedding-knn, clickembedding-source-glove-840b-300d, wait for the source picker to re-enable, clickembedding-source-gpt2, assertaria-checked=trueon the GPT-2 card andtokenizer-gpt2, then switch back to GloVe.setTime(t)insrc/routes/+page.svelte: settrajectoryStore.t, thenif (pinned) unpin(). Use it inTimeSliderontchange(+page.svelte:641-643) and the ArrowLeft/ArrowRight branches (+page.svelte:165-172).e2e/hand-walk.spec.ts: after the undo, pin a token, scrub to 0, assert the tooltip is hidden, then pin again before the existing branch assertion.src/lib/engine/hand-walk.test.ts:seedrandom.alea('hand-walk-differential\0'), a naivenumber[][]reference, ~2,000 random jumps (including out-of-rangefrom/position) and undos, comparing return values,T,rows, andtokensAt.npm run test.β₂ = … ← β readoutline atDESIGN.md:105. Keep the unusedBetaReadout.sveltefor the future film mode.npx prettier --check ..SeedControlusage at+page.svelte:9and:704-711, deletesrc/lib/components/SeedControl.svelte, and remove the now-unusedreroll()(src/lib/stores/trajectory.svelte.ts:140-142) andrandomSeedimport (:3). Keep theseedfield:_wrapTrailstill reads it.npm run check,npm run test; no e2e needed.Acceptance
embedding-knnactive and the word tokenizer loaded, clicking GPT-2 selects GPT-2 and the tokenizer follows. GloVe is still selected automatically when arriving from the word tokenizer; switching back to GloVe works.HandWalkand the naive reference diverge; the existing hand-picked tests stay.DESIGN.mdno longer advertises a β readout that the app does not render; the Advanced panel has no inert seed control.node scripts/verify.mjspasses (check, lint, prettier, test), andnpm run e2epasses locally for the new and updated specs.Decisions / scope
untrackis the minimal change. TheselectTokenizerloading guard atsrc/lib/stores/tokenizer.svelte.ts:13-30is a separate latent race — the source picker is disabled while the tokenizer loads — so it stays out of this plan.reroll; keepseedbecause theTrajectorywrapper and cache key still use it. If the film mode needs the control, git history has it.TrajectoryCacheor worker changes, no film-mode work. The source fix is UI-only.1.18.0for Hand-walk the timeline: click a token, jump to a neighbour, undo #113. If these split into a new issue, the final slice bumps to1.18.1.HEAD, with/tmp/opencode/probe3.mjsas the blocker repro. The existing round 1approveis not final for this bug.Smoke steps
npm run e2e— the newembedding-sourcespec and the updatedhand-walkspec.embedding-knn, select GloVe, then GPT-2; confirm the source card and tokenizer switch, then switch back to GloVe. Pin a token, scrub, confirm the inspector closes; re-pin, jump, undo, branch.fix(#113): stop the word-tokenizer default from overwriting a source …
fix(#113): close the pinned inspector when the timeline moves
test(#113): fuzz the hand-walk against a naive trail
docs(#113): drop the stale beta readout from the design sketch
chore(#113): drop the inert seed control
feat(#113): hand-walk the timeline (#116)