Repository navigation
Repair the three nightly tests the interaction gallery left red - #359
Conversation
The live interaction gallery injects its playback row from the runtime and leaves the authored page owning it, which is what all three failures are. The page drew `outline: var(--here-ring)` on the injected presses without naming the ring, so the census counted a rule the floor below could not divide by. It was drawing it twice over: `offer` marks those buttons `data-lf-offer="button"`, so the theme's pressable floor already carries the hand, the hover tint, the disabled treatment, and a ring that names itself. The page's copies are gone and the floor's answer stands alone. The row is also a control row nothing had declared. Declaring it means proving it holds still, and it did not: the toggle rewrites its own word as a demo runs, so pressing Replay moved the toggle beside it, and the live status line changed length on the same line as both presses. The toggle now reserves one width for every word it cycles through, and the status stands under the two presses at every width rather than only on a phone. `interaction-playback` is the archetype; an archetype may now name an `example`, because a demo is a scenario the module names rather than markup the synthetic stability page can compose. The gallery's own counts had moved on too: #341 added a live undecided suggestion and a second stored version, so the injected-surfaces walk sees twelve asks and three version rows. `tests/test_site.py` asserted the status line's `margin-left: 0` at 390px, which the layout change makes vacuous; it now reads the invariant that replaced it. `uv run pytest tests --run-nightly` passes, 2096 tests. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q7ZBoNLYxFVhWgDsXH1RTx
leaf-agent
left a comment
There was a problem hiding this comment.
The three reds are correctly diagnosed and the ring and count repairs are right — the page's :focus-visible copy was drawing an unnamed second ring over theme.css's pressable floor, and examples/developer/versions/ really does hold v1 and v2 now, so 3 rows is the true count. One finding, on the width reservation, plus a note on where it lives.
The reservation is a number, and the layer already has the helper for it. Inline on min-width: 9ch.
It also only holds on this one page. scripts/corpus.py copies each source's <main> and none of its <head>, so examples/corpus.html carries the gallery markup with none of these rules — grep interaction-control examples/corpus.html is empty. The corpus is the page test_the_composed_corpus_declares_every_control_row_archetype sweeps, so after this change it counts interaction-playback as a declared archetype while that row, in that page, has no reservation, no --aim-floor min-height and no pill. The new example key exists because the mechanism can't be composed onto CONTROL_STABILITY_PAGE; a reserve call in interaction-gallery.js would need neither, because it travels with the row the runtime injects.
Duplicate. #353 fixes the same three readings on the same files (it is mine; it takes the reserve route and also rehomes the scenarios' #bg-motion-* lookups onto the stage). Whichever way you go, one of the two should close — I'm happy to close #353 if you'd rather take this one.
Merging main brought the playground package, so the gallery's Asks tray gained another row between the first run and this one. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q7ZBoNLYxFVhWgDsXH1RTx
`min-width: 9ch` was a number standing in for the widest word, and it was written in the gallery's own head. `scripts/corpus.py` copies each source's `<main>` and none of its `<head>`, so the generated corpus carries this row with no rule for it at all — and the corpus is the page the archetype sweep walks. The declaration promised a row that holds still on a page where nothing held it. `reserve` is the layer's answer to exactly this, and the banner already uses it for the same reason. Calling it where the runtime builds the row measures every word the toggle can say and travels with the row into whatever page it is injected into. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q7ZBoNLYxFVhWgDsXH1RTx
|
Both findings taken — thank you, the The reservation. The status line. I have left this one on its own line under the two presses rather than reserving its width. Its longest word is a sentence — "Ready — motion will start only when you press Play" — so a reservation holds the row open at that width in every state, and on its own line the length changes move nothing. That also lets On #353. It got there first on the reservation, and it also rehomes the scenarios'
|
…walk to the pill ring (#367) ## Problem The nightly leg of [`ci` on `59d0aa3`](https://github.com/max-sixty/leaf/actions/runs/34060060243) went red on three readings. Two were the interaction gallery and landed with #359; the third, `test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus`, still reproduces on `ac3342a4` and is a different seam — #366 names it as outstanding and does not reach it. The census reports the resolve icon action's focus ring clipped in `ship-review`, in the page and in the comments: ``` in the page of ship-review, the ring on button.lf-btn.lf-resolve.lf-icon-action.lf-ui "" is not all there: its left edge is under button.lf-react-trigger.lf-ui "" (ring 1143,466,1179,502 vs 1119,467,1145,493, sampled 1144,484) ``` The reaction trigger is painted above the message head and turns opaque exactly while the message is focus-within — which is when the resolve control beside it is wearing a ring. It stood off that control's own box by 2px, and the ring is 4px wide of it, so two of those pixels were behind the trigger. Two independent PRs put the rows there: the icon action (#347) and the trigger's offset (#349), each correct about the box it measured. ## Solution Both copies of the rule — the chrome sheet's, and the frozen-conversation mirror in `theme.css` — now stand the trigger off the ring rather than off the box, naming the band as `--here-ring-w` plus the offset each sheet's own focus rule states, and keeping the 2px gap that was already there measured outwards from the ring. Clearing that fault makes the census reach its last assertion for the first time, and it reports the `pill` ring painted nowhere the corpus can be walked to. That one is pre-existing and was masked behind the clip: the strip's trigger wore `lf-pill lf-react-trigger` until #349 made it an icon, so the palette chips behind the press are now the only focusable boxes left drawing that ring — and no walk opens a palette. A `a reaction palette` walk scope presses a message's trigger and stands on the chips. ## Testing - `tests/test_render_controls.py` in full on this branch: 81 passed. - The everyday suite (898 passed, 6 skipped) and `pre-commit run --all-files` pass. - Bug-back for each half, on this branch's own tree: reverting the two CSS rules returns the 2 clipping faults over 714 stops; reverting the walk scope alone returns `1 of the layer's 45 rings are painted nowhere the corpus can be walked to: pill`. <details><summary>Scope, and what this deliberately leaves to other PRs</summary> The same run's other two readings are #359's and merged. `test_the_composed_corpus_declares_every_control_row_archetype` is red on `main` for the playground package's Reset / Copy instruction / Apply card row; #366 declares that archetype, so it is left out of this branch — an earlier revision of this one carried a second implementation of it and it was dropped once #366 appeared. #365 touches `reactions.js` and `chrome.css` but neither the trigger's offset rule nor the `lf-pill` class on a chip, so the walk scope added here keeps its subject if that lands first. </details> --- Automated fix for [failed run](https://github.com/max-sixty/leaf/actions/runs/34060060243) Co-authored-by: leaf-agent <[email protected]>
Three nightly tests have been red on
mainsince #341, and nightly runs aftermainmoves, so PR CI andwt mergeboth stay green while nobody sees them. All three are the same seam: the live interaction gallery injects its playback row from the runtime and leaves the authored page owning it.The ring census. The page drew
outline: var(--here-ring)on the injected presses without naming the ring, so the floor below divided by a population short of it. It was drawing the ring twice over:offermarks those buttonsdata-lf-offer="button", so the theme's pressable floor already carries the hand, the hover tint, the disabled treatment, and a ring that names itself. The page's copies are gone and the floor's answer stands alone. No other authored page in the corpus draws the layer's ring.The control-row sweep. The row is a control row nothing had declared. Declaring it means proving it holds still, and it did not: the toggle rewrites its own word as a demo runs — Loading…, Play, Pause, Played — so pressing Replay moved the button beside it, and the live status line changed length on the same line as both presses. The toggle now reserves the width of every word it can say, through
reserve, the layer's own helper, called where the runtime builds the row —scripts/corpus.pycopies each source's<main>and none of its<head>, so a rule in the gallery's head would not reach the generated corpus, which is the page this sweep actually walks. The status line stands under the two presses at every width rather than only on a phone; reserving its width instead would hold the row open at the width of its longest sentence.interaction-playbackis the new archetype; an archetype may now name anexample, because a demo is a scenario the module names rather than markup the synthetic stability page can compose, so its proof runs on the gallery itself. Replay is the press for the same reason the diff's review press is: the button that has to hold still is the toggle, and pressing Replay is what sends it through every word it has.The injected-surfaces walk. The gallery's own counts had moved on: #341 added a live undecided suggestion and a second stored version, and merging
mainbrought the playground package's ask, so the walk now sees thirteen asks and three version rows.tests/test_site.pyasserted the status line'smargin-left: 0at 390px, which the layout change makes vacuous; it now reads the invariant that replaced it.Checks
uv run pre-commit run --all-filesis clean, anduv run pytest tests --run-nightlypassed whole — 2096 tests — on this branch beforemainmoved under it.On the merged tree that full run reports 11 failures. A paired control, a detached checkout of
ca4ac82dwith none of this branch on it, fails 10 of the same tests, so they arrived with the eight PRs that landed while the first run was going. The eleventh,test_a_failed_preview_bootstrap_hears_the_replacement_server[theme.css], passes on its own here and on the control: a flake in a 27-minute run. The three tests this PR is about pass.Nightly is red on
mainfor two reasons this PR does not reach, both worth someone's attention:test_the_composed_corpus_declares_every_control_row_archetypefails onmainfor that reason now instead;.lf-resolve.lf-icon-action(Use icon actions for conversation controls #347) has the left edge of its focus ring under.lf-react-trigger(Replace reaction labels with agent feedback emoji #349) in the ship-review thread, two independent PRs whose rows now overlap by two pixels, whichtest_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpusreports as 2 faults over 714 stops.Plus pre-existing reds in
test_render_anchors,test_render_export,test_render_projectionandtest_render_widgets, all present on the control. #340 is the standing fix for the shape of this: nightly modules a PR touches never run before it lands.Overlapping PRs
#353 repairs the same three readings, and opened while this branch's first suite was running. It took the
reserveroute from the start, which is where this one has now arrived; it also rehomes the scenarios'#bg-motion-*lookups onto the stage, which this does not. One of the two should close, and which is Max's call.Note for #351
#351 deletes this same block of gallery CSS and rehomes none of it, which would leave the injected buttons without their pill shape or their
--aim-flooraim target. Whichever lands first, the other conflicts here.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q7ZBoNLYxFVhWgDsXH1RTx