Skip to content

Fold the banner, floor every control, reserve the rail, and wrap the diff: ten pieces from a UI and UX review - #209

Merged
max-sixty merged 48 commits into
mainfrom
ui-ux-review
Sep 2, 2026
Merged

max-sixty merged 48 commits into
mainfrom
ui-ux-review

Conversation

@max-sixty

@max-sixty max-sixty commented Sep 2, 2026 •

Copy link
Copy Markdown
Owner

A UI and UX review of the layer, run as a Leaf page, and the ten pieces picked from it as "Now", each built with a test. The review page is the record of what was found and why each piece was picked; this description is the map to the diff.

What changed

The banner folds instead of clipping. Its addresses fold into one overflow menu in a stated order when the row runs out of width, and the status line is the one thing that gives up width; the newest-version chip is marked urgent so the menu's door says when it holds news (runtime/banner-shelf.js, runtime/chrome-style.js). The versions menu hangs from the button that opens it, and its two ways out say their direction (runtime/version.js).

Every control has a box a reader can hit. One theme rule gives every pressable in the layer a floor of 24px on a fine pointer and 44px on a coarse one, and one marker, the data-lf-offer value, says what a reader can press, so the cursor and the outline come from the theme rather than from each widget (chrome-style.js, packages/default/theme.css). A receipt is a flat Button, not a press (runtime/living-margin.js).

The margin rail is reserved before the first gesture, so the page no longer narrows when the reader's first mark lands (runtime/margin-layout.js). The inline thread card has a floor, and it follows its marker when the page reflows under it (living-margin.js).

A reader who lands is handed their place and their way in. The skip link rests transparent and stands where an ask arrival lands, an ask arrival stands on the decision rather than below the fold, an empty Asks tray says what it is empty of, and the resting key line shows only presses that say something back, with the priority no row declared cut from the register (runtime/keyboard/, runtime/decisions/, runtime/trays.js).

Diff basics. A file header that pins under the banner while its rows scroll, ] [ } { hunk and file keys — from the diff itself, with nothing focused inside it, ] lands on the first hunk and [ on the last — and a Soft wrap switch that paper always takes (packages/diff/widgets/lf-diff.js, packages/diff/theme.css). A page with only a manifest loads the renderer when it first draws lines.

A page loads only the widget modules it uses, and a version or a reply that carries a new tag imports its module before insertion (runtime/widget-loader.js, runtime/version.js, runtime/state-application.js).

The agent's path answers in sentences where leaf was silent, leaf edit included, with --json for the tests that parse it (scripts/leaf/cli.py).

Polish sweep: a reacted passage has a visible mark, every elevation shadow is cast in the scheme's own ink, every word on a surface names one thing, a sheet prints what it can show and nothing it can press, a reader can take an approval back, the diff tools row is declared as a control archetype, and the small-screen map reads its seat from the row's one order.

Reading the diff

The branch merges main seven times; #205 (banner notices, persisted keys) was dispatched from this review and is already on main. The #207 merge takes its single runtime/version.js and diff package: this branch's hunks in the four modules it folded and the theme block it moved are ported there, and readingBlock replaces the blocksOnScreen export as the one reading the decision walk and the keyboard reference start from. The fifth takes 17ed171, which moves each file's "Mark reviewed" press out of its <summary> into a .lf-diff-file row beside it. Two of this branch's rules met that row and are fixed in the merge commit: the pinned summary's z-index covered the press on every file, so the press now shares that level and paints above as the later sibling; and the soft-wrap switch reached its rows through ~ details, which the wrapper broke, so it names the file rows. A review of that merge found the third meeting: once a long file's header pinned, the press stayed absolute at the file's top and drifted off it, its reserved column empty and out of pointer reach for the rest of the file. The press is now a block in the flow ahead of the disclosure, which is pulled back up over it by a negative top margin, and sticks with the summary where it pins; the pull is the disclosure's rather than the press's because a sticky box is held inside its containing block by its margin box, and a negative margin on the press let it outlive its file by 32px at every boundary. The pinned-header test reads the press on the pinned line, reaches it with a pointer, and reads it leaving with its file. The seventh takes #212 (Button states, receipts, overflow), which answers the same question this branch's "Sew a receipt Button flat" answered: what the Button beside a move already made should promise. #212 keeps it a pressable disclosure wearing its phase as a corner mark and states that a settled outcome is receipt text beside Undo, never an inert Button-shaped status; this branch had made it a flat status with no press. The merge takes main's model and drops the flat receipt, its theme rule, and its test; the accessible-name test beside it stays. The choice is flagged in the review page, where the pick that led to the flat receipt stands.

The sixth merge takes #211, which lands a on the region that explains an ask, and 9a59df7's growing comment field. This branch focuses the decision itself on arrival, its controls the next Tab stops, so the walk keeps arriveAt in front of main's region travel, and #211's three arrival tests expect the suggestion focused rather than its Accept, as this branch's own arrival tests do.

The tend review on 1708469 read the whole diff and asked for three things, all in ec55abb: [ with nothing focused inside the diff answered no hunk anywhere and walked the whole file list opening and fetching each one — beyond now answers true in both directions, so the backward walk opens the last file and lands on its last hunk, with a test on a collapsed manifest that counts fetches and open files and fails on the old answer; a comment in twice in served_state/conversation.py; and taken_back(events) rebuilt per event inside the done comprehension, now hoisted as every other reader does.

Verification

On the branch head before the #207 merge (2fe649e): ten render suites 590 passed with one failure, main's own WCAG nested-interactive red on the pr-walkthrough diff review button (since fixed on main by 17ed171); everyday suite 793 passed; pre-commit clean. After merging #207 and #208 (fbc02fe), on a machine at load average 200 shared with another session's suite: everyday suite 797 passed, 1 failed — a test this branch added whose page carries an lf-diagram that #207 moved into the diagram package, fixed in 03cd748 by selecting the package. CI's lint caught an unread console capture in one new test, fixed in the same commit. An independent review of the merge resolution found every branch hunk ported and no defects; its one design note, the widget import spent inside the activation transition, is 3dea60b. A fourth commit dropped two .lf-margin-action minimums as dead under the aim floor and 1b66f16 restores them: the floor's rule sits inside the @scope (.lf-chrome) block and margin items are hoisted into main, outside it, which a margin shape test pins. The thread-card fix carries a test that fails with its listener removed. The b89560d merge ("Asks (3/7)" while standing in an ask) keeps this branch's landing on the decision in the one test both sides touched and takes main's count; the 17 ask and decision tests pass. After the 17ed171 merge and the review fixes, the 19 diff, hunk and control-sweep tests across four render modules pass, the Python sign-off tests pass, and the everyday suite passed on ec55abb (798). After the #211 merge the 27 ask, decision, arrival and response-field tests pass and the everyday suite passed again on the merge (a56cdeb, 798) and on the pinned press (4bf1bb7, 798); CI's lint wrapped one assertion in that test, 7dd0d41. CI on this PR is the clean-machine gate.

This was written by Claude Code on behalf of max-sixty

🤖 Generated with Claude Code

max-sixty and others added 30 commits September 1, 2026 14:29
A comment on words has carried a --mark-ink underline for as long as the
highlight rules have; a reaction on words carried --react and nothing else,
which composites to 1.08:1 over the light paper and 1.18:1 over the dark. The
element anchors already draw the pair this needed — .lf-mark-el solid,
.lf-react-el dashed — so the text half says the same thing on glyphs: 2px
dashed --mark-ink, 9.0:1 light and 6.2:1 dark. A copy's baked <mark> carries
it too, that being the one medium where hovering the words cannot answer.

The wash could not have been the fix. --mark does not reach 1.5:1 against
--paper at any alpha; opaque it stands at 1.38:1.

The three durable-state bands were washed to 40/50/55% of their token, which
put restated, pending and reported at 1.94:1, 1.98:1 and 1.94:1 against the
light paper — under the 3:1 a band drawn instead of a word has to clear. Each
is now mixed to that floor with room (3.59, 3.37, 3.25 light; 4.51, 5.64, 7.15
dark), by three percentages rather than one because the tokens sit at
different luminance. None goes to the token whole: a restated band at solid
--accent is the here ring glyph for glyph, and the ring reading tells one
outline from another by its resolved colour.

ship-review now seeds a standing reaction on a passage, so the mark appears in
an authored page rather than only in the suite.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Nine of the layer's twelve drop shadows were written rgba(0,0,0,α), each with
an alpha of its own between .12 and .24, and a colour written once can only be
right about one ground: at .12 over the light paper a menu lifts its ground by
10 L*, and the same declaration over the dark paper lifts it by 1.4, which is a
shadow in the stylesheet and not on the screen.

--shade is that ink, stated once per scheme — .14 light, .55 dark, which is as
far as the medium goes since the dark paper is already at L* 8.3 and black
takes it to 3.0. Every elevation shadow in the runtime's stylesheet and in the
default package now reads it, including the two that were already spelling it
as a color-mix of --ink.

The per-site alphas are gone with them. Depth is offset and blur, which were
already saying it: a card in the hand is 0 8px 24px against its resting
0 2px 8px, and a second dial saying the same thing is a second dial to keep in
step.

The gate sweeps the page's composed stylesheets for any layer with a non-zero
blur — which is what separates a lift from a ring's `0 0 0 Npx` and from an
inset band — and holds all fourteen of them to naming the token.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Measured on the shipped corpus at 1200x900: a thread's Reopen stood 20px tall,
the panel's reaction pills 22, the banner's page preview 23, and a version's Δ,
a command in the reference, a quote and a gloss mark at around twelve by seven.
Three controls reached the coarse-pointer block; the rest reached neither
floor, so the same presses were small under a finger too. The sweep added here
found two more nobody had named — the settled-group row at 36 and a version row
at 40, both under a finger.

--aim-floor is the floor, 24px and 44px under a coarse pointer, stated in
theme.css where the query is asked once. The runtime's AIMS list and the three
page-layer controls read it, so the coarse block no longer repeats the list at
the other number and a control cannot reach one floor without the other.

A gloss mark keeps its six pixels and hangs a 24px box of its own, because
growing a mark set in a line of prose opens the line. It overlaps the tail of
the phrase, which costs nothing: hovering those words already reveals the same
explanation.

Two controls wore the platform's own focus ring beside siblings wearing the
layer's band — Reopen next to Resolve, and a tab button in a strip. Both now
draw the band, which is also why ship-review seeds a resolved thread and the
ring walk opens the resolved disclosure: Reopen exists on no page the corpus
could walk to.

.lf-pick is held out of the sweep and named there as a handover, not an
exemption: its box is being rewritten alongside the group's pressable rule.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
The menu's rule anchored its top and right edges to the chooser but left the
popover UA style's inset 0 and auto margins standing, so the box centred itself
in the band between the anchored edges and the viewport's far corner: at
1200x900 it opened 410px below and 480px left of its button, over the prose.
State bottom, left, and margin explicitly, and pin the relation with a test
that reads the menu's box against the chooser's own.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
The card took whatever room the window left right of its marker, with no
minimum, so on a page whose left strip holds a sidebar it opened at 72px wide
at 1200x900 with a 22px reply box: the quote wrapped one word to a line and the
placeholder one character. The contract already allows an accepted comment's
thread to come off its marker and cover the page when the margin is too narrow,
but nothing decided where "too narrow" was. Declare --thread-card-floor beside
the card's own width and read it in placement, and name the token in the
contract.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
A fresh agent given only the skill produced a valid, served decision page in two
minutes and sixteen tool calls, both gates green first try. Every point of
friction was in what leaf does not say.

No routed reference named the command that serves a page, so the agent guessed
`leaf server start` from `--help` with `leaf server run` beside it. The Claude
Code contract now opens with the literal command and says what `run` does
instead — it prints the same URL and never exits, so nothing it says reaches the
agent. `serving-pages.md` is routed at the first handoff rather than only at
export and recovery.

`leaf page guidance` on a layer that declares no audiences, and `leaf status …
waiting`, both printed nothing, so a no-op and a wrong call looked alike. Each
now says what it did. Reporting a transition back made `--on` worth refusing on
both routes rather than one: `idle` reaches the status write without passing the
subject, so `idle --on x` would have been read back as a claim the page never
took. `leaf version stamp` and `leaf reply` printed the raw event where the rest
of the CLI prints a sentence; they print one now, with `--json` for the event
itself. Nothing outside the suite reads either command's stdout — not the Codex
adapter, the hook guard, or `scripts/` — so the flag is there for the six test
sites that read a version or a message id back. `leaf comment`, `leaf edit`,
`leaf resolve` and `leaf report` still print bare JSON; they were not part of
this decision.

The quick-page-or-record fork was undecidable for a sign-off page, which is
both. A page declaring `<meta name="lf-review" content="sign-off">` is now
stated to be a record, because sign-off is offered only on a stamped version.

Registry entries are essays, and a worked example teaches faster than a full
entry. Page authoring documents the cheap query that prints `x-example`,
`properties` and `required` first, says which field it leaves out and what that
field alone carries, and names `$idioms` where it tells an author to use the
registry's class idioms.

The Stop hook listed every page the session held on every turn. A session
holding twelve preview fixtures carried about 2KB of "no watcher" into each one,
none of it naming anything a reader was waiting on. That clause is a debt on a
page handed to a reader, and a developer preview is not one, so it now skips a
page carrying the same `preview.json` the browser chrome reads to label it a
preview. It reads the file's presence, not the serve path's validating reader,
which exits the process on a file it will not accept — inside a guard that fails
open by saying nothing, that would silence every page the session holds. The two
clauses that answer for a real reader run above it, so a comment left on a
preview still surfaces. Marking a fixture idle would have quieted the loop too,
and was rejected: `idle` closes the page in the browser, which changes the banner
a visual check is there to read.

The docs transcript now generates its stamp line from the command, the way the
`version check` line beside it already did.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Every Target Button promised a press wherever it stood, so the "Picked up"
beside an answered decision invited one it had nothing to answer with. That
reading is an account of a move the reader already made.

A contributor already declares a Button's promise through `behavior`, so this
adds a fourth value, `receipt`, and the four indication readings wear it: Sent,
Waiting for pickup, Picked up, and the standing outcome that follows them. The
stylesheet gives that value its look through the pattern the other three use.
The glyph keeps its muted ink and its seat in the cluster; the ring, the fill,
the hover lift, the pointer, and the label's ellipsis go. The Button leaves the
accessibility tree as a `status` rather than a control and gives up the rail's
tab stop, which passes to the nearest marker that acts. The page-map walk, its
numbered addresses, and the pointer all still reach it, so a reader listening
hears the phase where it stands. Active raises the same Button back into a
press, in the same seat.

A second test holds the other half of that reading: where a marker stands in the
walk — which location of how many, and how far down — belongs to its accessible
name, where a reader listening needs it, and stays out of the word the Button
paints, where it would read as progress.

Tests: `uv run pytest tests` (782 passed)

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Every page imported every tag the layer declared, so the vocabulary's cost was
the same on every document in it. A triage board with no diff anywhere on it
fetched Pierre's 1.7MB renderer, and `loadShadowRules` fetched the 235KB theme a
second time for shadow trees the page had none of: 118 requests and 3.96MB,
more than half of it for widgets the reader could never see.

`importWidgets(scope)` is the one import-on-demand door. It takes the markup
about to be upgraded, imports each declared tag standing in it once per tab, and
loads the shadow rules only where an x-shadow widget is among them. Three
boundaries introduce markup and all three call it: startup with the document, a
version activation with the incoming main, and the state application with the
frozen markup an agent's reply carries — ahead of the panel building a body,
since buildMsgBody instantiates it synchronously. Each names the tags it needs,
so nothing imports on a mutation after the element is already connected, which
is the one order the startup contract forbids.

lf-diff imports its renderer on first render for the same reason, and the theme
is read once for the tab. `missingUpgrades` now reports the page's own widgets;
that a declared module exists at all was already `package check`'s.

Cold at 1280x800: triage-board 118 requests / 3,993,819 bytes -> 91 /
1,758,222; pr-walkthrough 121 / 7,741,770 -> 106 / 5,731,961, its collapsed
manifest reaching the renderer when a file is opened.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Reading a large review through lf-diff came apart at three points, all measured
on the pr-walkthrough example at 1200x900.

A diff line is `white-space: pre` inside a box that scrolls sideways, so the only
route to the end of a long line was a scrollbar at the foot of the file, some
24,000px below the line being read. On paper there is no bar at all: 40 of that
patch's 2,348 rows printed cut, the worst by 744px, and one of them was the key
line a reader would have opened the page to learn. A Soft wrap switch in the
diff's own header now folds long lines, and paper wraps whether or not the switch
is on, because a sheet cannot be left holding an answer nobody can press. The
switch is a native checkbox the theme reads with `:has()`, so the state has one
home and an exported copy still works it.

The file header was `position: static`, so opening one of 46 files left a
31,916px page with nothing on screen naming the file being read. It now pins
under the banner while its own rows scroll past — the slot the thread panel's run
headings already take over their own list, and `overflow: clip` in place of
`hidden` is what lets it, since only `hidden` also makes the box a scroll
container for its sticky child to be held by.

The 82-command reference answered "diff" with one entry. `]` and `[` now step by
hunk and `}` and `{` by file, contributed to the register as ordinary rows, so
the reference lists them and the key line leads with them while the reader stands
in a patch. A landing scrolls the hunk's first row below the pinned header and
takes the focus: the document's scroll-padding reserves the banner and the
header's own measured height is added to it as the row's scroll-margin, measured
because a wrapped path is a height no stylesheet can work out.

Virtualised rows were considered and left. The widget maps Pierre's rendered rows
one-to-one onto parsed records, hands every one of them to `projectData` as a
commentable datum, and resolves standing line comments by finding that exact
node; print and export then read the same DOM. Windowing would have to keep a
resolution path for rows it has not rendered and a way to materialise all of them
for a print nobody hooks, which is a change to how the diff is addressed rather
than to how it is drawn.

Also fix a race in test_a_failed_fragment_hydration_waits_for_a_reader_retry,
which read its route handler's count beside the request event rather than behind
the response and failed on two runs in five before this branch.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Closing the keyboard reference restored `helpFrom`, which for a reader working
from the page was `document.body` — `letGo` puts them there so Space and
PageDown reach the document's scroll box. Focusing `body` resets the browser's
sequential focus navigation starting point, so a reader who opened the reference
four screens down to look a key up had their next Tab begin at the top of the
document.

What is recorded now is the block they were reading, and closing focuses it and
then lets go of it: focus moves the starting point, blur leaves it where the
focus put it. The reader ends where `letGo` would have put them — standing
nowhere, so `c` still offers the comments rather than the paragraph — with their
Tab carrying on from the words in front of them.

`standAt` is the borrow-and-return `g` addressing already had, moved to
presentation.js beside PAGE_PAINT_ATTRIBUTES, which is what makes a lent
`tabindex` something the runtime must not leave behind. `readingBlock` moves to
view-continuity.js for the same reason: it was the same expression written out
in two places, and now three things ask it.

`.lf-chrome` follows `main`, which is right for reading and was the whole tab
order too, so the banner stood behind every control the author wrote and a
keyboard reader arriving at the top of the document had no way to the layer that
was not the page. One stop stands in front of everything now. It is prepended to
the body because tab order is document order; it rests in `.lf-quiet`, which is
also what the reachability and covered-words readings look past; and it carries
the offer marker, so paper and a copy drop it with every other injected control.
Which banner control it lands is decided by the press taking rather than by a
reading of whether the control looks available — half of them are conditional
and focusing an absent one does nothing at all.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
A tray holding nothing and a tray that has failed to render look the same, and
the page a reader is most likely to open Asks on is the one where they have just
finished — so the blank panel arrived exactly where the good news was. The thread
panel has answered this for as long as it has had an empty state; Asks now
answers it in the same voice, what is true and then what would fill it.

The second half names the agent rather than a gesture, because a reader makes
their own threads and does not make their own asks.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
The banner spent its row the wrong way round. At 1280 the addresses took
their whole intrinsic room first and the status sentence took what was
left, which was 199px of a 497px line: "Claude last checked in 16m ago:
W…". The offline line, the one that says what to do about the server
being gone, came out as "Server offline — reconnectin…". A status
readout that has stopped saying anything is worse than an address behind
a menu.

The sentence now has a floor of its own, stated in the row's own
characters so it survives a type token moving, and takes every pixel the
addresses leave above it; it may wrap to the two lines the banner has
room for, and it can no longer be cut. The row gives up whole addresses
to hold that floor, and gives them up to somewhere a reader can still
reach: what does not fit folds into one popover behind a door at the
row's start, which is where those addresses would have stood. There is
no strip of row left to scroll — on a phone four of seven addresses were
off a 390px screen with nothing but a half-clipped word to say so.

The row also read in two orders. Across the covering breakpoint it
turned round: Threads went from the far right of the banner to the far
left and approval, the page's one committing press, swapped ends with
it, so a reader narrowing the window found every address somewhere else.
The page map had a third seat again, and which of two it took depended
on which way the reader had last crossed 900px. One order now, decided
once, at every width, with the fold deciding only how many of it stand
on the row.

Three things fell out of building it. Renewing the reservations across a
breakpoint is now the crossing's first act rather than a second event
racing the resize, because the fold reads them. `reserve` gives back the
focus it takes while it stands a control out of flow to measure it. And
a status kind changing — work starting, a turn ending, the server going
and coming back — reaches the live region in the banner's own sentence,
which nothing did before; the two reloads the page decides on its own
say what they are for before making them.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
A page whose widgets can raise a page-edge Button took the margin strip only
while a Button stood in it, so the reader's first gesture bought the whole
reservation and the undo handed it back. On the triage board at 1200x900 the
readable column jumped from 216-984 to 187-955 when a card moved and back again
on `z`. The documented contract already forbade that: the rail claim is
monotonic for the document's lifetime, so settling an action cannot shift the
column.

The condition is now what the page declares rather than what is standing in the
margin. A tag whose registry entry has an x-state or x-work channel may raise a
Button, so the runtime writes data-lf-rail on the root at load and never takes
it back. That also answers why the old condition could not work: a row's own
placement depends on the strip, so asking whether one is standing there feeds
the reservation decision back into itself.

Two presence-gated claims become one. The marker rule's --claim-map and the
contribution rule's --claim-rail each came and went with their subject; a single
--claim-rail spends the widest measured contribution over the generated marker's
own fitting, and --strip-r takes the wider of that and the thread card's claim.

A standalone copy takes no gestures, so bake drops the reservation when no
margin item survived into the file. The width stays, as it did before: a decided
change keeps its record and the room that record was reserved for.

The board on that page still gives up its right side when a row arrives level
with it. That is data-lf-yield working as specified, and holding an exhibit off
a row it is not yet beside is a separate question with its own tests.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
The a/A walk scrolls a decision's opening to the top of the window and then
focused the first control that answers it — which is as far down as the
decision's context and evidence are long. Measured on the shipped corpus at
1200x900: the heading at 54px, the focused pick from 847 to 1107 in a 900px
window. The reader was told to look at one thing and stood on another they could
not see, and their next Enter would have worked it.

The arrival lands on the decision now. Its controls are the next Tab stops,
which is what a stop at `tabindex: -1` on the region buys: it keeps its place in
document order and everything inside the decision comes after it. A decision a
page styles boxless generates nothing to stand on and keeps the control as its
landing.

`standOn` stays for what it was always also doing and is not an arrival: handing
a reader back the control they were working when a widget rebuilt itself
underneath them.

It costs one press. A mark's digit row is declared on the mark, so `1` answers
after Tab rather than on the frame the reader arrives — the right way round,
since the addresses are painted down the options and a reader who cannot see
them has no use for them.

The joined-options rule is unchanged and reads better for it: the decision's own
ring is the one an arrival paints, and stepping into the control moves the band
to the exact row rather than doubling it.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
# Conflicts:
#	skills/leaf/packages/default/theme.css
The banner now keeps one button order at every width and folds what it
cannot fit behind its door, so the phone map's seat is no longer "after the
primary feedback controls" but "on the row rather than in the menu", which is
what keeps the index one press away.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
The contents map's start row is the link that names the whole document, and it
carried no text: its word was an attribute the rail form drew with
`content: attr()`, so every reading that asks a link what it says got an empty
string — the accessible name it falls back to, a text dump, the widget's own
outline of the page. On the corpus that is the first entry of `lf-pr-contents`,
pointing at `#lf-pr-contents-section-0` and saying nothing. The word is the
link's text now, and a title with no authored words falls back to the same
"Top" a page with no title gets, so the row is never empty either way.

The key line said one word for two capabilities in two places. The versions
menu binds Tab and Shift-Tab to leaving it forward and backward, and on a
one-version menu both are at their boundary and live together, both saying
"leave versions"; they say which way now. And the page's `c`, standing nowhere
nameable, goes to the room the comments are in and said "threads" beside the
t/T walk's own "threads" — it says "go to threads". Both words come from the
register, where the reference and the announcements read them too.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
The soft-wrap switch gave the next-unreviewed press a neighbour, and a control
with a neighbour is a control row the stability sweep must know: it walks the
composed corpus, finds the press standing beside something, and asks which
mechanism holds that row still. Before the switch the press stood alone in a row
of a label and a count, neither of which the sweep counts as a control, so it was
passed over.

The archetype covers the row's own presses — the next-unreviewed button and the
switch — and its causal case is the switch, which is the press in that row with
something to prove: wrapping rewrites the height of every line under the header
it is made in, and the header's own controls must not move for it. Pressed by its
words rather than its box, which is where a reader aims and what a native label
activation does either way. CONTROL_STABILITY_PAGE gains an inline diff to press
it on.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Twenty of the corpus's 236 injected controls survive the print rule, every one
because its label is the page speaking — and each arrived on paper still dressed
as a control: the command hub's counts as filled pills with a pointer hand, its
worktree heads with a disclosure marker, a decision's links underlined. What
data-lf-said keeps is the word; the shape was never part of that bargain, and on
a sheet where nothing can be pressed it is a promise the page cannot answer. They
give up ground, corner, border, underline, marker and hand, and keep their colour,
which is part of what they say.

A shut disclosure is the same fault from the other side: the words are in the
document, nothing on the sheet says so, and there is no press to open it with.
Six of them printed as stubs on the corpus, one holding 3270px of an exact
source. Paper already opens a settled group's cards and an inactive tab's panel;
<details> was the way of putting content behind a gesture that had been missed.

Removing the survivors outright, which is the other reading of "remove the
injected controls", would delete the words data-lf-said exists to keep — five
decision links, the fleet and stopped summaries, the hub's four counts and five
worktree heads are the page's only statement of those facts.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign-off is one press and the heaviest press on the page: a reader who meant
Threads and hit the button beside it had approved the work, and nothing on the
page or in the log would take it back. `done` was outside UNDOABLE_KINDS, so the
append door refused the undo and the key line never offered it.

It joins them, on the reading a reaction already had: a mark rather than speech —
the agent is told the version is approved, not told something — so the
withdrawal is the whole of the correction. A request stays outside for the
reason it always was, its effect being able to leave the page before the receipt
does.

Three levels had to agree and two were separately wrong. The client offers the
press for the approval the button is currently showing, scoped as paintApproval
scopes what it reads, because taking back a sign-off whose result is nowhere on
this page is a press with nothing to see. And the conversation projection now
reads `done` through `taken_back`, which it did not: an accepted undo would have
left the button saying "✓ Version approved" for ever.

The tooltip is the other half of the same fault. It said "Approve this work"
whether or not the work had been approved, so the one surface that could say
what the press would do next described a press the reader had already made. It
states the approved state and the way out of it.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
The line a reader reads before they have pressed anything opened
`/ search page · s select item · ? more · d / u page down / up`: two ways of
finding something to act on, one way of scrolling a page that scrolls under any
wheel, and not one word about the remark the page exists to collect — `c` and
`r` were display: none until `?`. It reads `c … · r react · ? more` now. The
ranking is the rows' own places in the page scope, which is the register's way
of saying it; search, item selection and reading-page movement stay ordinary
rows the shelf and the reference name, and `page.move` gives up the runtime's
only `linePriority: persistent` declaration.

A coarse pointer is drawn no line at all. Every hint on it names a key the
reader cannot press, and the box they cost stands over the words of a page whose
window is the smallest there is. It takes the More control with it, so a tablet
reaches the reference by `?` and not by pointer — the cost of the decision
rather than an oversight. Everything that reads the line's box now asks whether
there is one: `targets` most of all, where a zero box read as a top of 0 said
the whole window was covered and left `s` naming no items and `/` painting no
match.

The room a scroll region gives up is the band from the line's top to that
region's own foot, not the line's height. The height left out every inset
holding the line off the foot, so 14 of the 20px of air went on the line's own
inset and the document's last line cleared it by five pixels; over a covering
sheet the reservation was short by the whole lift, 148px of line standing on
51px of room. The panel's list is measured to its own foot rather than the
window's, or a grown composer reserves its own height of blank paper twice.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Both are the everyday gate's blind spot rather than new behaviour: test_render_*
does not run on a pull request, so these two went unread until the nightly files
were run whole.

The tray row's own test asserted the arrival's old landing, and now asserts the
decision with the pick one Tab further, exactly as the walk's does. The gloss
test tabbed once from the body and expected the mark; the layer's skip link is
the document's first stop now, so it tabs twice.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
# Conflicts:
#	skills/leaf/assets/leaf.js
#	skills/leaf/assets/runtime/chrome-style.js
#	skills/leaf/assets/runtime/state-application.js
A chip that opened a section and a badge that counted something computed the same
ground, ink, corner and size, so the only way to tell them apart was to press one.
Eight "Do this" request buttons wore `cursor: default` while every banner control
wore `pointer`. A spent one-shot request kept its full-strength border and differed
from a live one only in ink, which greyscale drops and a reader scanning a column
of eight never sees. Nothing about "this is pressable" had an owner, so every
widget drawing a small filled shape had to remember to say it again, and most did
not.

The kernel theme says it once now, against `data-lf-offer` — the marker `offer`
and `selectableOffer` already write on every control a widget builds. The value is
what it reads: a tag or role for a thing to press, the empty string for the rest of
the chrome a widget makes, so a draft's controls row and its edit box are left out
without an exclusion list, and a `.tag` carries no marker at all. Four declarations
follow — the hand, an inset wash under the pointer, reduced opacity for a control
with nothing left to do, and the here ring. The wash is a shadow rather than a
background because `background` is where every layer writes a control's own dress:
a shared rule setting it has to out-specify all of them to be seen and then wins
against the ones that should have won. All four are written to be outranked, so a
widget with a ring or a hover of its own keeps it, and a family that joins the
layer tomorrow wears the floor having written no CSS. They sit inside the theme's
shadow markers, so the floor reaches a widget that declares its own tree too.

A copy must not wear that promise. `data-lf-offer` outlives the role — a press
carrying page words becomes a span in a copy and keeps its words — so the copy now
clears the marker's value where it strips the role, and the hand leaves with the
thing that could have answered it. Guarding in the theme would have meant writing
the guard twice, once for the document and once for the shadow slice, where
`html:not(.lf-copy)` matches nothing.

Two widget defects the same decision covers:

- `lf-options` drew no resting mark on a single-pick card, on the argument that
  the group's frame already said a pick was on offer. Measured on the shipped
  pages that left a card group as blank paper while the row form beside it drew a
  full column of rings for the same question. The mark draws in every form and
  either arity now, and the row form's mark moved from the line's end — about
  620px from the words it answers for — to the leading column, where a card's has
  always stood. It stands there out of flow, in room the group reserves for every
  child: as a cell in the row's own table it took its width from what the row
  happened to hold, which put the labels eight pixels apart and left the add cell
  meeting nothing.
- `lf-draft` ignored a press. Its doors were a pencil 45px away in the margin and
  a double-click nothing advertised. The box is the door now, opening the editor
  with the caret where the press landed. A drag across the words still takes them
  (`reachedForWords`), and the word a double-click means is selected by the browser
  in the textarea the first click opened — so the widget's own Intl.Segmenter
  word-finder goes with it.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
The loader test read the PR walkthrough as a page whose one diff arrives collapsed, and
asserted that nothing on it asks for Pierre at load. Main's #192 stood an inline hunk on
that page so the code-line ring has a stop, and an inline hunk draws its lines at load,
so the walkthrough now needs the renderer the moment it opens — rightly, and the test
went red for it.

The boundary under test is the widget's, not the example's: a manifest of collapsed
files renders its rows without parsing a line, and the renderer comes in when a file is
opened. So the test stands on a fixture whose one diff is that manifest, bound from the
same multi-hunk patch the diff tests already read, and asserts both halves there.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FD52NFnpRiFzLyrR614oqJ
…sk arrival lands

The skip link rested in `.lf-quiet`, clipped to a pixel, which every reading that asks
whether a box is on screen took as a one-pixel control at the top of the document that
the floating comment bar could be standing on. It rests transparent now, the way the
comment note does, takes no pointer until it is focused, and insets its ring, since its
own edge is dropped over whatever the page has under the banner.

The tabs walk in the anchors suite expected an ask arrival to land on the first pick;
"Stand an ask arrival on the decision, not below the fold" lands it on the decision, and
the walk now says so and leaves where the options fall to the arrival's own test.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FD52NFnpRiFzLyrR614oqJ
The polish sweep's ten pieces, on top of main's notice-in-the-banner change. Two
conflicts, both where main's #205 and "Hand a reader back their place" met: the
address chord's imports, and view-continuity's exports, which now carry both the
standing a swap hands back and the block a walk starts from.

The two sides had also written the same primitive twice — main's `focusDestination` in
widget-elements and the sweep's `standAt` in presentation, byte for byte the same body.
One survives, under main's name and in main's module, and the skip link, the address
chord and the keyboard reference call it; `blocksOnScreen` leaves the exports, since
nothing outside its module reads it.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FD52NFnpRiFzLyrR614oqJ
Two lines the merge resolutions left at the wrong indent, the import order and
`__all__` ruff wants in the loader test's files, a capture label on a source nothing
selects a snapshot from, and a comment on the notice that still described the banner
row main had — under the fold, the status line is the one thing on the row that gives
up width.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FD52NFnpRiFzLyrR614oqJ
The widget rule, the polish sweep, and this branch's own pieces were each green on
their own base and disagreed in six places once merged. Each is settled on the side
that states the fact once.

A receipt wore the hand again: the theme's pressable rule reads the offer marker's
value, and a receipt is a press's element with nothing to press, so marginAction now
empties that marker for a receipt and restores it when the Button is raised back.

The covering row's forty-pixel floor outranked the shared aim floor by standing later
at the same weight, so a touch shelf lost four pixels; the rule carries the floor
itself. And the aim floor's stated minimum width let a banner address shrink past its
words, which leaves the row overflowing nothing and the fold with nothing to measure;
an address does not shrink.

The banner menu's shadow predates the scheme's shade token and takes it. The resting
key line's `c` says "go to threads" now, as the register does, so its test and the
report page say the same. Three tests written to an arrival that landed on the first
pick now stand where the arrival lands — on the decision — and Tab once, as the
sweep's own tests do; the shadow-tree test reads the fitting's height, which is the
fact it was after, rather than a minimum the floor now states lower.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FD52NFnpRiFzLyrR614oqJ
"Give every word on a surface one thing to name" made the map's start row say the
document's title in text, where it had drawn an attribute nothing could read. The
compact outline hides that row, print takes the compact form, and so paper dropped a
word the wide screen says — which the render gate refused on the review page. Paper
shows the row: the outline there is the one reading of the route and keeps every word
the map says.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FD52NFnpRiFzLyrR614oqJ
max-sixty and others added 3 commits September 1, 2026 18:36
`leaf edit` printed the edit event as JSON where every other message command answers
in a sentence naming the thread; it says "edited <id> in <thread>" now, and takes
`--json` for the event the way `reply` does, which the one test reading the event asks
for.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FD52NFnpRiFzLyrR614oqJ
"Reduce the resting key line to the presses that say something back" took the last
persistent row off the line, and nothing has declared `linePriority: persistent` since.
The line still carried six branches for it: a third slot in the shortlist, a split
ordering around More, a second pass re-seating the persistent chips after the door, a
yield that only ran when the shortlist had a third member, the validator that admitted
the value, and the register's documentation of it. All of them go, with the contract's
two sentences about them. The ordinary shortlist is two rows and More, and a window too
narrow for that yields hints from the end, as it did.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FD52NFnpRiFzLyrR614oqJ
Main's #207 folded version-activation, version-navigation, version-diff, and
view-continuity into runtime/version.js and moved lf-diff's registry entry and
theme block into the diff package. This branch's hunks in those files are ported
there: the widget import awaited before a version's main is inserted, the two
"leave" rows saying their direction, the urgent mark on the newest-version chip,
and `readingBlock` exported in place of `blocksOnScreen`. The diff package's
theme gains the pinned header, the soft-wrap switch, and the print wrap; its
registry entry describes them. State application keeps both the frozen-markup
import and main's activation serialization.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FD52NFnpRiFzLyrR614oqJ
max-sixty and others added 7 commits September 1, 2026 20:51
…the wrapped line's console

Two tests this branch added met main's #207 in the merge. The sentence test in
test_interact_layer builds its own page and that page holds an lf-diagram, which
now lives in the diagram package, so `page init` selects it the way the file's
other diagram page does. The wrapped-diff-line test took the console errors from
`_bound_diff` and never read them; it asserts they are empty at the end, as its
two siblings do, which is also what CI's lint was asking for.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ts transition

The merge put `await importWidgets(source)` inside activateRevision, which main's
#207 now runs from `activation.install()` under the activation lock and inside
the view transition, so a first-time module fetch was spent while rendering was
paused and other state reads waited. prepareActivation already has the stretch
where the document itself is fetched; the import goes there, beside it, and the
install is synchronous up to settlement again. activateRevision has no other
caller, so the guarantee moves whole.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…eady hold

.lf-margin-action stated min-width and min-height beside a fixed width and height
of the same 32px, and the aim floor this branch added is what a margin Button's
minimum reads now — 24px on a fine pointer, 44px on a coarse one, where the
Button is 44px square anyway. Two declarations that could never decide anything.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
0416883 dropped .lf-margin-action's min-width and min-height as dead under the
aim floor. They are not: the floor's rule sits inside the @scope (.lf-chrome)
block, and a margin item is hoisted into main, outside it, so those two
declarations are the only minimum a margin Button states — which is what the
shadow-target test reads as part of the Button's common shape. Restored as they
were.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
The margin packs its rows a frame after anything moves them — a row registering,
the column resizing under a diagram that finished or a disclosure that opened —
and the card beside a marker was placed once, when it opened. So the page moved
and the card stood beside where its marker used to be. margin-layout.js already
announces the pass that moved the rows; the card now follows in that frame. The
test grows a section above the marker and reads the card against the sum
placeThreadPreview makes; with the listener gone it stays put and fails.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Main's b89560d paints "Asks (3/7)" while the reader stands in an ask on the
walk's list. This branch lands `a` on the decision rather than its first pick,
so the one test both sides touched keeps the decision as the landing and takes
main's count beside it.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
No change. The tend review check failed on every head today because the
bot's own Claude session limit ended its run before a verdict; this empty
commit starts a fresh run to see whether it clears.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read the whole diff plus the enclosing files. The banner fold, the aim floor, the rail reservation and the lazy widget/renderer imports all hold up on the paths I could trace, and the test additions cover them. Three things below.

The one I'd want fixed before this lands is the backward hunk step in lf-diff: with nothing focused inside the shadow tree, [ matches no hunk anywhere and walks the whole file list opening and fetching each one — which is the case the comment directly above stepHunk says it avoids ("rather than every remaining file to discover there is nothing past them"). Forward is fine, because !here returns true there.

max-sixty and others added 5 commits September 1, 2026 22:16
Main's 17ed171 moves each file's "Mark reviewed" press out of its <summary>
into a sibling drawn over the summary line, with the disclosure and the press
together in a `.lf-diff-file` row. Two of this branch's rules met that row.
The summary this branch pins under the banner carries a z-index so the rows
pass beneath it; merged as written, the lifted header covered the press on
every file and a click on it toggled the disclosure instead. The press now
shares the summary's level and, as the later sibling, paints above it. And the
soft-wrap switch reached its rows through `~ details`, the disclosures as the
tools row's siblings; the file rows are the siblings now, so it names them.

Both sides waited on the fragment retry in the hydration test and both put a
one-file diff on the control-stability page: main's response wait and main's
file stand, with the branch's soft-wrap sweep entry beside main's review-press
one. The two focus rings are both kept.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
With nothing focused inside the diff's shadow tree — the host itself focused,
which is where an in-page link to the diff's id leaves a reader — `beyond`
answered true forward and false back, so `[` matched no hunk in any file: the
walk opened every file, fetched each one's lines, and landed nowhere. It answers
true in both directions now; the order is already reversed for a backward step,
so the walk opens the last file and lands on its last hunk, the mirror of `]`
landing on the first. A collapsed manifest is where the difference costs, one
fetch per file, so the new test counts fetches and open files beside the landing.

The conversation view's `done` list carried its comment twice and rebuilt the
withdrawn set once per event inside the comprehension; the set is built once
above the return, as every other reader of it does.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Main's #211 lands `a` on the region that explains an ask rather than on the
ask's own top edge, and this branch focuses the decision itself on arrival
rather than its first control: the walk keeps `arriveAt` and takes main's
travel, and #211's three arrival tests expect the suggestion focused, as this
branch's own do, rather than its Accept. Main's 9a59df7 lets the comment field
grow to its room; its sizing stands, with this branch's `--shade` shadow token
on the focused control beside it.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Main's 17ed171 draws each file's "Mark reviewed" press onto the summary line
from outside the disclosure, and this branch pins that summary under the banner
while the file's rows go past. Merged, the press stood absolute against the
file's top and stayed there: the header scrolled on without it, its reserved
column empty, and the press out of reach for the whole of the file it names —
the long file the pin exists for.

The press is a block in the flow now, first in the file's row, pushed right by
its auto margin and pulled up onto the summary line by a bottom margin that
takes back its own stated height, so the row starts where it did. Where the
summary sticks, so does the press, 5px under the same edge. The wrapper carries
the file's spacing and forms its own block context so those margins meet
nothing outside it. Still a sibling of the disclosure, so the control-row
sweep finds its neighbour as before, and a copy's "✓ Reviewed" mark takes the
press's place on the same terms. The pinned-header test reads the press on the
pinned line and reaches it with a pointer; it fails with the press unpinned.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
CI's lint ran ruff format over the test the pinned press added and wrapped one
assertion; this is that wrap.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read the three commits since the last review plus the two base merges. The beyond fix and the hoisted taken_back are exactly what the earlier threads asked for, and the collapsed-manifest test that counts fetches and open files is the right reading of the walk. The merge resolutions look carefully done — the ~ .lf-diff-file rewrite of the soft-wrap combinator and the press/summary z-index meeting are both right.

One thing on the pinned press, inline.

What I measured

tests/test_render_widgets.py's LONG_LINE_DIFF_PAGE with MULTI_HUNK_PATCH bound, scrolled in 60px steps, reading each file's press box and its summary box (Chrome, 1280x720). At rest and while pinned the press tracks the header at +5px, as the new assertion says. At the step where the first file leaves:

scrollY   file 1 head        file 1 press       file 1 bottom   file 2 head
+420      42 .. 76           47 .. 73           87              96 .. 130
+480      -8 .. 26           33 .. 59           27              42 .. 76
+540      -68 .. -34         -27 .. -1          -33             42 .. 76

At +480 the first file's header has unpinned and is on its way out (-8), its box ends at 27, and its press is still stuck at 33..59 — below its own file's bottom edge, standing over the second file's pinned header (42..76) and its press (47..73). Two "Mark reviewed" chips in the same column, one of them belonging to a file that has entirely left the screen, for about 32px of scroll at every file boundary.

The cause is the -32px bottom margin. Chromium constrains a sticky box's margin box to its containing block, so a negative bottom margin lends the press exactly that much extra travel past .lf-diff-file's bottom. The pinned-header test reads only the arrival, which is why it passes.

Moving the pull from the press's bottom margin onto the disclosure's top margin keeps the layout identical — the press's margin box is 32px tall at the top of the wrapper, the disclosure is pulled back over it, the wrapper's height is unchanged — while the constraint now ends where the file does. Re-measured with the suggestion applied, the first file's press reads 1..27 at scrollY +480 against a file bottom of 27: it leaves with its header. pytest tests/test_render_widgets.py -k diff (4) and tests/test_render_controls.py -k "control_row or archetype or still" (9) pass with it.

Comment thread skills/leaf/packages/diff/theme.css Resolved
The press pulled itself onto the summary line with a negative bottom margin,
and Chromium holds a sticky box inside its containing block by its margin box,
so that margin lent the press 32px of travel past the file's end. At every file
boundary on a long review the header unpinned and went while the press stayed,
standing over the next file's pinned header and that file's own press, for 32px
of scroll.

The pull is the disclosure's now: a negative top margin on the row, with the
press's own margins ending at its box. Same layout, and the sticky constraint
ends where the file does. The pinned-header test reads the departure as well as
the arrival — scrolled to where the file's foot is under the banner's edge, the
press's foot is no lower than the file's — and it fails with the old margin.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The move off the press's bottom margin is right and I measured it holding: on screen the layout is unchanged to the pixel against the previous commit (first file's box 1426..1879 either way), and the new departure assertion fails on the old margin, so it pins the fix rather than the shape. Reading the arrival and the departure in one pass is the right shape for that test.

One thing the move carries onto paper, inline.

Comment thread skills/leaf/packages/diff/theme.css Resolved
max-sixty and others added 2 commits September 1, 2026 23:08
Paper hides an unreviewed file's "Mark reviewed" press, and a hidden box has
no margins, so the pull that used to sit on the press left with it. Moved onto
the row, the pull stayed: `:has()` matches the hidden press, so the row was
drawn 32px above its own wrapper and each file's header 24px inside the file
before it. The print block guards the pull the way it guards the neighbour
rule — no said word on the sheet, no pull.

The wrapped-diff test, which already reads paper, reads where each file's row
starts against its wrapper in both media: zero, where the row would be with no
press at all. It fails at -32 without the guard.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Takes #212, which unifies Button states, receipts, and overflow, and answers
the question this branch's "Sew a receipt Button flat" answered: what the
Button beside a move already made should promise. #212 keeps it a pressable
disclosure wearing its phase as a corner mark, and states that a settled
outcome is receipt text beside Undo, never an inert Button-shaped status. This
branch had made it a flat `status` with no press, no ring, and no tab stop.

Main's model wins the merge: the `receipt` behavior, its theme and chrome
rules, its tab-stop handoff, its reference paragraph, and its test come out,
and the accessible-name test beside it stays. Where both sides changed one
line, both are kept: the label tooltip wraps as main has it and casts its
shadow in this branch's `--shade`, and the anchors test's hit sweep takes
main's margin-item controls while still skipping boxes that take no pointer.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@max-sixty
max-sixty merged commit 2787711 into main Sep 2, 2026
12 checks passed
@max-sixty
max-sixty deleted the ui-ux-review branch September 2, 2026 06:49
leaf-agent added a commit that referenced this pull request Sep 2, 2026
The export gate's band reading asked whether anything under `main` overlapped
the claimed strip. A widget asking for width is drawn past the column by design
and lands in that band while claiming nothing, so a board or a diagram answered
for the rail on three of the five copies that hold a strip: the strip could have
been held open for nothing and the band still read as occupied. Measured by
exporting each example with `.lf-margin-item, aside.sidenote` hidden — a copy
keeping the claim and losing what stands in it — the old reading caught the
defect on design-decision and ship-review only, while the narrowed one catches
it on all five and stays green on the corpus as it stands.

The phone-banner reading follows the address instead of pinning where it lands.
Whether the version folds at 390px is a font-width fact: the assertion #209
shipped reads it still on the row, this suite's fonts fold it away, and the two
cannot both be pinned. What the test is about is that the fold hands the reader
over rather than drops them, which is read now over a row made to fold
something.

The rail paragraph in `skills/leaf/CLAUDE.md` described the code #213 deleted.
`reserveRailForPage` and its `x-state`/`x-work` query are gone; `reserveRail()`
now runs unconditionally as `createLivingMargin` builds, and the bake drops the
reservation unless a margin item survived into the file.
max-sixty pushed a commit that referenced this pull request Sep 2, 2026
…aws them (#218)

## Problem

The nightly leg of `ci` has been red on main since
[de0f296](de0f2967), with seven
cases failing on [run
33614395596](https://github.com/max-sixty/leaf/actions/runs/33614395596).
None is a product regression: each is a test reading the layer the way
it was drawn before #209 landed the banner fold, the reserved rail, and
the wider control floors. #209's own `ci` run was cancelled, so the
nightly modules first ran against it two commits later and every stale
reading surfaced at once.

## Solution

Three readings, brought back onto what the layer now draws.

**The strip a copy holds open**
(`test_an_exported_example_stands_on_its_own`, button-gallery and
ship-review). A strip is what `main` gives up beside itself and
`--lf-shift` re-centres what is left, so on a window wider than the
column plus its strips the leftover room sits outside both. The band was
still read from body's edges, which asks about that leftover — nobody's
claim, and always empty — while the rail's actual residents stood beside
the column. The band is measured from the column's own edges now, and
the question is put to the residents that make the claim
(`aside.sidebar`, `aside.sidenote`, `.lf-margin-item`) rather than to
every descendant of `main`: a widget asking for width is drawn past the
column by design and lands in the band while claiming nothing, so the
wider reading was answered by a board or a diagram on three of the five
copies that hold a strip.

**Three cases that assumed an address the fold now takes.**
`test_covering_workspaces_separate_page_paint_from_chrome_target_paint`
pressed `.lf-decisions` at 560px, where the row has folded it; it uses
the `banner_address` helper written for exactly that.
`test_the_banner_uses_the_page_mark_and_puts_each_edge_by_its_panel`
asserted the focused address stays on the row at 390px, against its own
docstring and against `refold` — whether the version folds at that width
is a font-width fact, so the reading follows the address to wherever the
fold put it, over a row that has been made to fold something. The ring
walk's `offers` gate asked whether `.lf-others` was *visible*, so a
folded address read as a page not offering the tray at all, and the walk
that did open and walk it never recorded the scope.

**A fixture the chip face outgrew.** `LIVE_KEYS_V1` set two links 60px
apart with a chip face 63px wide, so the chord took the second chip down
— the right answer to a crowded line, and the wrong fixture for a test
about a page moving under a press. The links are a clause apart now.

The wide-banner case is the one calibration change: `oneLine > shown *
1.2` cannot hold, because the row's cap *is* the sentence's floor stated
from the other end, so a crowded row leaves the status its floor and no
margin over it. The pressure is stated as the sentence outgrowing its
box, and the fixture's crowding is asserted where the row is read — the
row folded something.

One doc correction rides along, because the export reading rests on it:
the rail paragraph in `skills/leaf/CLAUDE.md` still described the code
#213 deleted. `reserveRailForPage` and its `x-state`/`x-work` query are
gone, `reserveRail()` now runs unconditionally as `createLivingMargin`
builds, and the bake drops the reservation unless a margin item survived
into the file.

## Testing

Each case reproduced locally on `40c1de4` before the change and passes
after. The four touched modules ran whole under `--run-nightly` —
`test_render_controls.py`, `test_render_export.py`,
`test_render_aim.py`, `test_render_projection.py` — 223 passed at
`46ec807`, and `test_render_controls.py` plus `test_render_export.py`
re-ran at 98 passed after the readings above changed. The everyday suite
is 794 passed, 6 skipped. `ruff check` and `ruff format --check` are
clean on the touched files. The PR's own `ci` runs the everyday suite;
the nightly leg these cases live in first runs after main moves.

<details><summary>What the narrowed band reading catches, per
example</summary>

Each example exported twice at 1200px, once as it stands and once with
`aside.sidebar, aside.sidenote, .lf-margin-item { display: none
!important }` appended — a copy keeping the claim and losing what stands
in it, which is the defect the assertion names.

| example | `--strip-r` | `empty` as it stands | residents hidden, `main
*` | residents hidden, claimants |
| --- | --- | --- | --- | --- |
| button-gallery | 95 | `[]` | `[]` | `['right']` |
| corpus | 384 | `[]` | `[]` | `['right']` |
| design-decision | 384 | `[]` | `['right']` | `['right']` |
| postmortem | 384 | `[]` | `[]` | `['right']` |
| ship-review | 59 | `[]` | `['right']` | `['right']` |

The other seven examples claim nothing (`--strip-r: 0`), so `hi - lo >
1` never lets a band be read at all. No copy claims `--strip-l`: the
sidebar strip is written under `html:not(.lf-copy)`, so it is the live
page's alone.

</details>

---------

Co-authored-by: leaf-agent <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants