Repository navigation
Ask the everyday gate for the key line's rows - #307
Conversation
tests/CLAUDE.md had grown to 51KB, most of it the mechanism of one harness helper each — how `panel_settled` finishes the shell carry, what `watched` listens to, why `_until` prints both ends of its wait — and the helpers' own docstrings said the same things again. The file now keeps the laws a test author needs before choosing a mechanism and a map to the helpers that carry each one, at 32KB. The facts only the file held moved to their code: the ring reading's whole contract onto `RINGS_DRAWN`, the shut-panel half of `trappedMargins` onto that probe, why the probe wait is the driver's onto `wait_for_probe`, and one paragraph each onto `leaf_page`, `select`, `round_trip`, `told`, `undo`, `refuse`, `page_dir`, `_no_page_outlives_its_test`, and the launcher test. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01EDSAWYR4GqyuzouhN8qk78
Three references named sections the fan-out removed and now name the sections or docstrings that carry the rule; seven added paragraphs repeated text beside them and are cut to what was new; the ring reading's comment names `ring_faults` rather than a constant that never existed and says the element mark now answers the keyboard instead of asserting the defect and its fix at once; the `trappedMargins` paragraph in tests/CLAUDE.md keeps the turn that made it the exception; and the five rules the move had left homeless are back: `serve(..., seed_log=False)`, releasing held animations, the quote-scroll edges, retries as second sends, and what `primed` still owns. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01EDSAWYR4GqyuzouhN8qk78
The rows are painted by a registration the boot makes, not by anything a widget or the page asks for, so a runtime that loses that registration keeps every other everyday assertion green while no reader can see a key; the nightly keyboard tests were the first to notice. On a shipped page at rest the line carries `c` and `r`, so the smoke test asks for a non-empty row set after presentation. It passes on main and fails on the cutover branch before its fix. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01EDSAWYR4GqyuzouhN8qk78
# Conflicts: # tests/CLAUDE.md
…swered main's own rewrite of tests/CLAUDE.md (#304) kept the testing rules in the document and made its headings addresses. This branch had moved the same rules into the helpers they describe, so on that base every paragraph it added was a second copy: the probe timeout, the traffic ledger, `data-lf-applied`, the `aborted` refusal, autouse ordering, `HOLD_MOTION`'s release, the whole ring reading. Those are reverted to main. What is left is what main does not have. The everyday suite now asks the key line for rows: a line with none in it draws no console error and leaves every other everyday assertion green, which a planted empty `lineRows` confirms. `ring_faults` is also spelled as the code spells it, in the document and in test_render_conversations.py; `RING_FAULTS` is nothing.
`The page holds still under the user's aim` is the first sentence of `## Layout and motion`, not a heading, and #301 cited it as one from chrome.css and docs/site.css. Cite the heading, which is the address.
# Conflicts: # docs/site.css
leaf-agent
left a comment
There was a problem hiding this comment.
The test_smoke.py assertion is the right shape and it isn't vacuous — keylineMore is el("button", "lf-key-more"), a single class token that .lf-key does not match, so with lineRows returning nothing the selector goes to zero rather than finding the permanent More keycap. The RING_FAULTS → ring_faults rename is complete: ring_faults is the name in tests/render_cases_layout.py, and grepping the tree for RING_FAULTS returns exactly the two occurrences this diff fixes. ## Layout and motion is a real heading in skills/leaf/assets/CLAUDE.md.
One thing to fix before this lands: the docs/site.css hunk is dead on main. 34edfa11 deleted the file, and the nav.sitenav rules moved to docs/package/theme.css without the long comment — grep -rn "hold still" docs/ on main returns nothing. So there is no citation left under docs/ to repoint, and this is the PR's only merge conflict (test-merging the head into origin/main gives CONFLICT (modify/delete): docs/site.css; the other four files auto-merge). Rebase and drop the hunk rather than porting it into docs/package/theme.css.
Also, The page holds still under the user's aim is not the first sentence of ## Layout and motion — that sentence reads "The page must hold still under the reader's aim." The quoted phrase does not appear in the document at all, which makes skills/leaf/assets/theme.css the remaining instance of exactly what this branch is closing: in the font-variant-numeric comment it says That is the movement "the page holds still under the user's aim" forbids, quoting words no document contains. It names no file, so it slips the rule as you worded it, but it's the same dangling quote one file over.
Checks
.lf-keychips:chip()inskills/leaf/assets/runtime/keyboard/keyline.jsbuildsel("span", "lf-key")and setsspan.hiddenfromrow === REFERENCE || (!shelf && !shown.has(row));keylineMoreis appended separately withlf-key-more.grep -rn 'ring_faults\|RING_FAULTS'over*.pyand*.md: definition attests/render_cases_layout.py, call sites intest_render_conversations.py/test_render_controls.py/render_support.py, and the twoRING_FAULTSstrings this diff edits. Nothing else.- Test-merge:
git merge --no-commit --no-ffofrefs/pull/307/headontoorigin/mainin a scratch worktree — one conflict,docs/site.css(DU). - The base here is
1bcbff95, three commits behindmain, which is why the deletion isn't visible in the PR's own diff.
The red review check on this head is tend-review failing during the bot outage window, not a verdict — this review is that run's replacement, posted from the scheduled notifications poll. ci / test and ci / lint are green, but they ran against the pre-34edfa11 base, so they never saw the conflict above.
The everyday suite never asked whether a reader can see a key. A key line with no rows in it is silent — the chrome paints, the console stays clean, and every other everyday assertion holds — so the whole boot cutover ran against a gate that would not have noticed. One assertion closes that: at rest a page shows `c` and `r`, and a planted `lineRows` returning nothing fails it while `errors` stays empty. The boot's own failure to register a painter is loud and already covered. This branch started much larger. It was fanning `tests/CLAUDE.md` out into the helpers each rule describes, written before #304 rewrote that document keeping the rules in place and its headings as addresses. Both were the same job done opposite ways, and #304 landed first, so every paragraph this branch added — the probe timeout, the traffic ledger, `data-lf-applied`, the `aborted` refusal, autouse ordering, `HOLD_MOTION`'s release, the ring reading — became a second copy of a rule that now has a home. Those files are back at main's version. `ring_faults` is also spelled here the way the code spells it. `RING_FAULTS` appeared in the document and in a comment in `test_render_conversations.py`, and is not a name in the tree. Three citations named something that is not there. `## Layout and motion` opens "The page must hold still under the reader's aim", and #301 quoted a paraphrase of that sentence as though it were a heading, from `chrome.css` and from `docs/site.css`. main has since deleted `docs/site.css` outright, so that one is gone with the file. `chrome.css` and `skills/leaf/assets/theme.css` now name the heading, which is the address. Every quoted citation in the tree resolves against a heading in the document it names, and the phrase itself appears nowhere. 🤖 Generated with [Claude Code](https://claude.com/claude-code) > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
The everyday suite never asked whether a reader can see a key. A key line with no rows in it is silent — the chrome paints, the console stays clean, and every other everyday assertion holds — so the whole boot cutover ran against a gate that would not have noticed. One assertion closes that: at rest a page shows
candr, and a plantedlineRowsreturning nothing fails it whileerrorsstays empty. The boot's own failure to register a painter is loud and already covered.This branch started much larger. It was fanning
tests/CLAUDE.mdout into the helpers each rule describes, written before #304 rewrote that document keeping the rules in place and its headings as addresses. Both were the same job done opposite ways, and #304 landed first, so every paragraph this branch added — the probe timeout, the traffic ledger,data-lf-applied, theabortedrefusal, autouse ordering,HOLD_MOTION's release, the ring reading — became a second copy of a rule that now has a home. Those files are back at main's version.ring_faultsis also spelled here the way the code spells it.RING_FAULTSappeared in the document and in a comment intest_render_conversations.py, and is not a name in the tree.Three citations named something that is not there.
## Layout and motionopens "The page must hold still under the reader's aim", and #301 quoted a paraphrase of that sentence as though it were a heading, fromchrome.cssand fromdocs/site.css. main has since deleteddocs/site.cssoutright, so that one is gone with the file.chrome.cssandskills/leaf/assets/theme.cssnow name the heading, which is the address. Every quoted citation in the tree resolves against a heading in the document it names, and the phrase itself appears nowhere.🤖 Generated with Claude Code