Real touch swipes through the DevTools protocol; Back and Forward; stacked panes and their
colours against what opened them; pin, close and the map; the selection bar; a long press on a
link; the libraries panel, the menu and the other layouts; landscape at 900 px and back; no
sideways overflow and 40 px targets. PHONE_SHOTS saves each state, light and dark.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
The same forest of forks, laid out a column per page as wide as the screen, each column's panes
stacked down it as on a wide screen (tabs a finger high). A tap on a row, a link or a section
opens it and goes to it; a swipe ends on a page and makes its pane the active one (read at
scrollend, never per frame); the active pane's page is always the one on screen. The trail at the
foot names the focused branch in the panes' colours; its map lists every open pane to go to, pin
or close. No curves: what a pane was opened from takes its colour. Each step from pane to pane is
an entry in the browser's history, so Back goes back a pane and a swipe back is Back. Crossing
900 px keeps the forest and the active pane. Pane buttons always shown, 40 px; status line
detail, key hints and `?` left to the menus; safe areas, 100dvh, the on-screen keyboard; a long
press on a link shows its card above its menu. `/view panes` and `/view column` as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
Which page a scroll rests on, which pane a page swiped to brings forward, a pane's name in the
browser's history (the path of what the panes on the way to it show, so it survives a reload),
and the steps of that history: back or forward to the entry next to it, else a new entry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
The old single-library layout is not opened (the server says to run the migration, which comes
next); the per-document migration, /recover and the old replicas check are gone. A server lock
keeps two servers off one data directory.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
menu.spec.ts becomes nodes.spec.ts: standing on the library root, /n/<id> addresses through a
reload, Back and Forward (and an old /doc/ address), the jump box, a file imported into a node two
levels down with a link relative to its top, exported back the same and copied just after itself,
Move under… by key and by the menu (never under itself; the root offered first), history's f and r
on the node the reader is on, the offline round trip, the node routes over HTTP, and panes and
phone width.
The other specs open a tree by its titles (helpers openAt, openPage, visit: /n/<id>, hoisted in the
column as /doc/ was), make top-level sections from the library page instead of /new, scan with
/linkhere (and check its scope against /linkall's), and expect a section's head on every pane but
the first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
The page has one head for whatever node is the page (crumbs from the library's title, a byline of
sections and nodes, its flags and ⋯); in panes the first pane is the page and every other pane has
a section's head, whatever node it shows. A prompt (a node whose sections cite its sentences) is
folded wherever it shows. The library root's sections open in place like any others; an address
outside the hoisted node un-hoists to the library, and Esc at a hoisted page's top steps out to its
parent's.
What acts on a node and everything under it acts on the node the reader is on (the focused
section, or the one a focused note or selection is in): M moves it under any node (the jump box as
a picker, the root offered too), /duplicate copies it just after itself, /export saves it, /import
reads a file in as its last child (place() prefixes the titles down to the parent), /linkhere scans
it, S lists its links (on the root, the whole library's), history's f filters to it and r reverts
it. Every node's ⋯ offers them.
The documents menu, its mode and keys, /new, /open, /rename and /linkdoc are gone; m is free and
the top bar's left is a plain label with the library's name. Addresses are /n/<node id>, and / the
root; an old /doc/ address shows the library.
Server: /api/docs gives way to /api/nodes/<id>/{tree,export,import}; link jobs take scope "node" or
"library" and pending lists ?node=<id>&subtree=1. Step-1 shims removed: docOf/documents, all of
core/library.ts (IMPORT_MAX and importTree move to seed.ts, address and resolve to address.ts),
docArg, and the old single-document replica check. revertDocTo is revertSubtreeTo.
The page scrolls the focus into view only when the focus, the page or the mode changed, not on a
render for something that arrived in the background; row flags give way on a narrow screen.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
A frame over the whole pane repainted the whole pane at every move (the forks keypress-to-paint
median rose by half a frame); its left, foot and right are now a hairline path in the curves'
layer, under what peeks, cut where the next column or pane covers it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
- Curves are one layer over the panes and their edges, from the window's corner (so its pixels are
the device's; clipped inside the drawing, as a CSS clip resampled it and softened every hairline),
under the menus; the selection bar and a pane peeking out leave holes in it (masks), the peeking
pane's own curves drawn over it. Redrawn when the bar moves or a pane's tab comes or goes.
- A pane in a stack shows its tab only while the rule under its title does not show (data-tab), and
the curve lands in whichever shows, by the same test.
- A pane peeking out is edged all round; the active pane has its other edges in a stronger ink.
- A menu's button pressed while its menu is open closes it (no reopening on the click after).
- A link's underline (solid: a link, an article's link) is drawn by the curve leaving it, line by
line, its own left out, so the two meet exactly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
The browser tests find sections by their titles from the library root and open the
starter trees at /doc/<name made from the title>; a renamed document's address follows
its title. The README's addresses, text-format targets and /api/docs say the same.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
The model has no slug any more (field, ops, canonical row, slugFor, freeSlug, RESERVED,
findDoc). The child of the root a node is under is a derived relation, topOf (docOf and
documents stay as deprecated aliases for the UI until step 2); ancestorsInDoc becomes
ancestorsBelowRoot. Slug keys and a target's old `doc` in stored libraries are ignored.
A node target's path is the titles down from the library root; `rel` marks a path read
below a top (a file being imported, what the agent or a person typed). Where two sections
share a title, the one the link is written in wins. The text format writes /Top title/…,
and ./… inside the exported subtree. The agent may give a node id as a target.
renderContext renders the top's outline in an <outline> tag, and steps down the focus
path when even titles are over budget. Prompts, the reviewer and the scanner speak of
the library, trees and tops; the scanner's unit is the top, with the same behaviour
(scripts/linkEval.ts gives identical metrics).
src/core/library.ts keeps a slug-free shim for the UI's document features (names made
from titles) until step 2 removes them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
- A click anywhere in a pane that is not text, a row or a link makes it the active pane; a click
anywhere else, or Esc, clears a selection.
- The page measures where each pane was opened from, so its column stands in that order.
- A crowded column stacks the panes after the one looked at at its foot, a tab each, so every pane
shows at least its tab; the curve into a tab becomes the tab's line where it meets it (no stub).
- A pane cut off for any reason (covered, too small a share, past the foot) peeks out as tall as its
text needs, without moving the panes around it; curves are redrawn on peek, on a pane's text
changing size (ResizeObserver) and every frame while anything animates.
- The curve joins the active pane's title rule too (the heavy rule alone marks it); a source out
of sight in a pane that still shows is pointed at: dotted, turned at its end toward it; a curve
leaves from a tab's foot only when its pane is folded to the tab.
- The selection bar sits under a pane's tab, takes the room above or below the words, never covers
them; a sticky tab's title is centred under the heavy rule; focus is kept clear of the tab.
- Alt+h / Alt+l: the pane opened from (left) / one opened from this one (right); Alt+k / Alt+j
(Alt+↑ ↓, [ ]): above / below in the column; from a node, a selection or an article; in the pane menu.
- Browser tests (e2e/panes3.spec.ts) with a curve invariant (curveFaults) checked after peeks,
scrolls, resizes, folds, a drag and an article arriving.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
By where their parents stand in the column before, then by where in the parent each was opened from
(src, measured by the page and stored with the view), then in tree order. Panes put in an order by
hand keep it; a pane never placed by hand goes just after the one before it in its own order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
Keys pressed while an article is still arriving are held and then all act at once when it comes;
tabTo looks after each Tab, so on a cold server a burst of held Tabs ran past the words it was
looking for. The page does what was pressed; the test now waits for the article's text.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
- A curve runs on along the rule under its pane's title (any kind of pane: section, page, article,
article section) and draws it, the pane's own rule left out, so the two are one stroke, set on
device pixels (the curves' layer measured from its whole pixel; a hairline is one device pixel).
- The landing: the title's rule when it shows, else the tab's foot, whether the pane is folded down
its column or scrolled past its title. A pane scrolled past its title shows its tab at its top
(an observer on the rule, nothing per scroll or key).
- A curve out of a folded pane whose source is out of sight leaves from the end of its tab's foot,
solid, the foot drawn with it; the stacked pane's own top edge under it is left out.
- Colours: the panes' and curves' colour came out as the neutral ink on every curve (a selector
outweighed the colour's); the neutral is nearer the text's ink. Colour depends on the tree only.
- A covered pane peeks out across and down at once, and stays out while the wheel scrolls it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
Below it a first child still goes on in its parent's colour. A pane stored without a colour (a view
from before colours, or from when the top's first trail had none) is coloured on load by the same
rule, from the stored count.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
The page took the start's answer (running) over the end it had already heard, and
then waited for a job that was over; it also said the job was running after
saying it had finished.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
Only crowded columns are marked; when a column stopped being crowded (a taller window) its panes kept
data-covered, data-over and data-buried from before, which e2e/forks.spec.ts (short window
stacking) saw now and then as a pane still folded to its tab.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
The faint and full colours are both fixed on each pane; the focused branch picks between them by
selector, so only the rules and the curves restyle, not every element in a pane.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
/autolink review, the default with a model, sends each scan's new candidates to
the reviewer and makes the approved links at once as one commit by "reviewer"
(tag review; u takes it back). Rejected ones are kept, not drawn. Without a model,
on a failed call or at a job's cap, everything stays a suggestion and the status
line says why. A browser still on the old default, suggest, moves to review once;
a mode chosen with /autolink is kept.
S now opens the links list beside the text: every link found or made, rejected
and pending, with who decided and the reviewer's reason; 1 2 3 (or a click)
toggle linked · rejected · pending, rejected hidden at first. y links a row (also
one the reviewer rejected), n declines one or removes a link, Y links all pending
shown, Enter goes to the words. Declines kept without a target show the phrase.
D on a link, Remove the link in its menu and /unlink now also decline its words in
the node, in the same commit, so the scanner and the reviewer do not put it back.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
server/links/review.ts asks the configured model to judge the scanner's candidates
as a careful Wikipedia editor would: up to 60 a call, grouped by document and
section, each with its sentence, its section's path, the target's title and
description (and first sentence when cached) and, for a library target, how it
stands to the section. No tools; structured verdicts with a one-line reason. The
prompt names the scanner's known blind spots.
The pending store keeps verdicts, a person's decisions and when an approved link
was handed out, keyed by phrase and target, so a candidate found again is never
judged twice and a rejected phrase is not looked for again. Its file keeps the
old shape; old entries read as pending.
The scan route reviews what it found when asked (at most 2 calls) and hands the
approved links back to be made; jobs review as they go within IE_REVIEW_CALLS
(default 50) calls, with the count in their state. No model, a failed call or
the cap leaves the rest pending, with the reason. The mock reviewer links names
and terms, not single lower-case words, and fails on 'mockfail'.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
The normalised phrase a decline records (nolink:<phrase>) and a target's identity
move from server/links to src/core/links.ts, which the browser can import; the
server modules re-export them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
One pane and the stack of earlier ones beside it read well from there. The browser tests start in
the column (playwright.config.ts) where they mean it; a panes test lets the layout follow the window
(helpers.ts autoLayout). New: auto gives panes at 1366 and the column at 820 and 390.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
Seven hues at one OKLCH lightness and a low chroma, light and dark, ordered so neighbours stay
apart for red-green and blue-yellow colour blindness. The focused branch at full strength, the
others fainter; the active pane's ink rule as before. A tab's foot and a dash on a spine carry the
colour too. /colors line|top|edge|off (and the menu) choose the line, a band across each pane's
top, one down its left edge, or none.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
A pane's colour (an index into a palette of HUES) is fixed when it opens and stored with the view;
the first tree's root trail has none. A view stored before colours is coloured as if opened in
tree order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
The help has a Mouse and touch section and its lede says to click a sentence;
the README says what each surface offers, how it acts (by pressing its key)
and what is left to the keys. The review's status line and the research
panel's Esc are buttons. The column keeps what the keys bring into view out
from under the sticky top bar.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
- One <Menu>: a popover by the pointer or its button, a sheet from the foot on
touch; arrows, Home, End, Enter and Esc, closes on a press outside, and gives
the focus back. Its items come from actions.ts and press their keys.
- A single click on a sentence selects it (as before) and shows a bar over it:
expand e · define d · why y · example x · challenge c · ask : | link w · ⋯,
each with its key. A drag or a double click shows it for those words. In an
article's text too, without link. On a phone it docks at the foot, with ×.
- ⋯ on section rows, a pane's pin and ×, the page's byline and note boxes,
shown when pointed at or focused, never moving the text. A stale flag,
clicked, opens the node's menu, its remedies first.
- Right-click on words, a row, a link, a note or a pane: its menu, Copy
first; the copy key copies the app's selection too. Shift+right-click and
text boxes keep the browser's menu.
- The top bar: undo, redo when there is something to redo, and menu (documents,
jump, history, links, layout, settings, command line, help), sticky in the
column too.
- Key hints in the status line, the history and documents panels and a
suggestion's card are buttons.
- A first visit is told, once, in the status line, that a click on a sentence
offers actions and ? lists the keys.
Browser tests: the bar on a click and on a drag, each ⋯ menu, right-click with
Copy, Shift+right-click untouched, the menu's keys, the sticky bar, Lock naming,
the phone's dock and sheet, and links, Shift-clicks, drags and peeks beside it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
press(key) sends a synthetic keydown through the page's key handler, so a
mouse control does exactly what its key does. actions.ts builds the items of
the selection bar, the ⋯ menus and the right-click menu from a context for
each kind of target (words, a node, a page, a pane, an article's row, the top
bar); each item names its key and runs by pressing it, or runs a command of
the command bar. Unit tests check every item presses its own key and that the
key handler takes that key.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
The badge reads LOCKED, the status line and messages say lock and unlock, p's
help says what it is and that it is not P, and the cascade says a locked node
was flagged, not rewritten. Pin now means only a pane's pin. The stored flag
and the op API keep the old name, pinned, so a live library keeps its locks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
The unit test that failed about one run in six was the lanes property: moving
one curve at a time could stop at a local minimum (two crossings where an
order has none). Up to six curves in a gutter every order is now tried, a
strictly better one replacing the order there, so the bundle still keeps its
order while nothing crosses less. The property now asks for the least and
the counterexample it found is kept as a case.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab