Repository navigation
Read a standing reaction off its fill, not the lifecycle mark #371 retired - #385
Merged
Merged
Conversation
…tired #371 left the corner witness to busy and took settled out of the Button grammar, so a standing reaction paints no mark of its own. It updated test_render_margin.py, but the three readings in test_render_reactions.py that assert the same witness are nightly-only, so nothing ran them until main had already moved. The palette pill now reads from the fill it keeps once the pointer has gone, which is what separates it from a hovered idle pill painting the same colour, and the seated mark in an exported copy reads the absence of a witness on both sides of the pointer.
max-sixty
pushed a commit
that referenced
this pull request
Sep 7, 2026
…frame (#394) ## Problem `ci` on main failed on [run 34084018735](https://github.com/max-sixty/leaf/actions/runs/34084018735) with 19 nightly failures. Most of them are the interaction gallery's contained frames taking the page's focus, which #383 fixes, and the reaction readings #371 retired, which landed as #385. Two survive on today's main (`e6adf0b2`) and neither is covered by either. `test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus` times out waiting for `pageSettled`, because the corpus never settles once the ring walk stands on a control in a docked margin cluster: `layoutMarginRows` floats that cluster out of static flow to read where it can hang and docks it back, a document tree has one focus, so the move blurs the control and the restore focuses it again — and `keyboard/dispatch.js` answers that pair by painting the standing chrome. That paint's layout asks for the next placement, so the page laid its margin out, rebuilt its whole key line and refolded its banner row on every frame for as long as the reader stood there. This is the second time this cycle has closed on a different edge; #298 cut the `dockSeats` one. #373 cuts the other edge of this same loop, and has the same ring test green: it keeps a docked row docked while the room it answered about holds, so `moveHost` is never reached in the case that loops. The two compose rather than compete — that one removes a caller's reason to move the host, this one stops any placement move from painting the standing chrome, so it also holds for the callers it does not touch (`float`, the inline `target.after`, and both branches of the Page-map render). Either can land alone and fixes the failing run; landing both is deliberate belt-and-braces, and neither is based on the other. `test_a_reload_mid_flight_never_wedges_round_trip` waits the corpus's whole answer-all cascade out inside one 30-second budget, and the corpus gained an ask in #354. The fact under test — that a ledger carried across a navigation does not wedge the new document — has already settled on that document's first trip. ## Solution `runtime.placingChrome` says a chrome placement is in flight, `moveHost` raises it around the move and the focus it hands straight back, and the focus painters skip while it stands. `moveHost` asks for the paint itself in the one case the placement really did move the reader: the control they were standing on did not survive it. The flag lives in `context.js` rather than beside `living-margin.js`'s existing `settlingOptionsFocus` because what has to know is every reader of where the reader stands, not just the options state machine. The gate test now waits for the new document's first trip rather than for its whole cascade, so the reading stops tracking how many asks the corpus happens to carry. It waits on the press's own attempt leaving the outbox's `pending`, which is delivery with retries folded in: `acked` is counted in a `finally` around the fetch, so a post that throws counts one and is retried, and an empty `pending` is only the momentary gap between the cascade's trips. ## Testing - `test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus`: red on `e6adf0b2`, green with this change. It is the gate — I could not reduce the cycle to a small fixture, and dropped a candidate regression test that passed with the change reverted rather than land coverage that says nothing. - `test_a_reload_mid_flight_never_wedges_round_trip`: red under `-n4` on `e6adf0b2`, green with this change. Its new reading still fails on a wedged first trip: with `/api/event` aborted on the reloaded document it gives up on `sends=16 acked=16 pending=1`, the shape `acked > 0` would have gone green on. - `uv run pre-commit run --all-files`. - The full `--run-nightly` run promised when this opened never got posted — that session ended before it finished. CI runs the nightly cases of `tests/test_render_gate.py` on this PR, the module it touches; the rest of the nightly suite the runtime change drives runs after main moves. <details><summary>How the cycle was found</summary> At the failing wait, `moving()` reported three running transitions on one `.lf-margin-button-label`, restarting continuously. A document-wide `MutationObserver` over one second on that page showed the whole chrome rebuilding at frame rate with nothing dispatched: 125 `lf-key` inserts and 125 removals, 52 `.lf-btn.lf-others` moves between `lf-banner-actions` and `lf-banner-menu`, 50 same-value `style` writes on `nav.lf-living-margin`, and 25 moves of one `.lf-margin-item.lf-docked` between `MAIN` and its `SECTION`. A stack captured inside a `focusout` listener named the mover: ``` at /runtime/living-margin.js:2073 | at moveHost (/runtime/living-margin.js:2379) | at moveExternalHost (/runtime/living-margin.js:2073) | at Object.float (/runtime/living-margin.js:1644) ``` with a second identical one from `Object.dock`, 50 focusouts per second between them, and `requestAnimationFrame` stacks from `paintHere` and from `layoutMarginRows`'s dispatch at 25 per second each. </details> --- Automated fix for [failed run](https://github.com/max-sixty/leaf/actions/runs/34084018735) --------- Co-authored-by: leaf-agent <[email protected]>
max-sixty
pushed a commit
that referenced
this pull request
Sep 7, 2026
…us and its exported copy (#383) ## Problem The nightly leg of [`ci` on `edd1c5a`](https://github.com/max-sixty/leaf/actions/runs/34083084673) went red on 17 readings. All but two came from one cause, and every one of them reproduces deterministically on that commit and on today's `main`. #354 gave the interaction gallery three contained frames, and each of them runs a whole second Leaf page. A Leaf page arrives: `restoreArrangements()` puts back the workspace this reader last had open, and `letGo()` puts them on the page's own body. Both run inside the frame, and a document has one focus — so `document.activeElement` out on the gallery became the `<iframe>`, and whatever the reader was holding was let go of. That is what closed the crowded margin cluster mid-test, dropped every `.lf-target-hint` on the corpus, and took `#bg-choice-ask` off its focus. The export half is separate and had been masked by the reading in front of it: the frame's `srcdoc` names the runtime, the theme, and the gallery adapter on a server a standalone file has not got, so an exported copy opened with four CORS failures. Its `<kbd>` chord caption was authored hidden, so the copy also held words with no script left to reveal them. ## Solution `data-lf-contained` marks both sides of the boundary — the frame element out in the gallery and the body of the page inside it. A contained page arrives restoring no arrangement and placing no focus, and the bake drops a contained frame with the scripts. The chord caption now lives with its own visibility rather than in authored markup. On a page that is not contained nothing changes: every guard reads a constant that is false there. Arrival is only half of it. The framed chrome still places focus once a replay runs it — a shown `<dialog>` runs the browser's focusing steps whatever the page around it wants. So the frame's body is written `inert` beside the mark: an inert subject ends those steps before they reach anything, so the focus never crosses the boundary and there is nothing to hand back. The replays are unaffected, because they drive that chrome through the adapter rather than by pointing at it. Measured on the `Open and close Threads` tab: without the line the reader loses the tab they just pressed the moment the framed panel opens, and `g T` and `w` then reach a document they cannot see. `inert` is the same one-line fix #393 carries, arrived at from the other side. The two conflict textually — both write it into `loadFrameDocument` on the line this branch marks the body on — and resolving either way is taking one copy of the line. `test_a_contained_replay_leaves_the_page_around_it_standing` pins both halves: it fails on `main` with `assert 'IFRAME' != 'IFRAME'` at arrival, and on the arrival fix alone at the replay, where the reader is no longer standing on the tab they pressed. Two readings are restated rather than repaired, because the gallery really did change: its swipe specimen sits in an unselected tab, so one margin row is withheld and the posture clear runs for it. (The Ask count 13 → 14 landed separately in #376.) <details><summary>The 17 readings, and what each was</summary> Focus taken by a frame — 14: `test_the_feature_gallery_keeps_its_real_actions_reachable[1440/1200/700/390]`, `test_ask_addresses_follow_the_feature_gallery_s_visible_margin_controls[1200/390]`, `test_margin_target_hover_requires_pointer_movement`, `test_a_workspace_lands_one_responsive_layout_and_carries_the_column_to_it[1440/1600]`, `test_selection_hints_do_not_name_page_content_behind_a_covering_panel`, `test_a_shipped_log_opens_its_example_on_a_live_thread`, `test_other_responses_can_turn_the_compact_field_into_a_suggestion`, and both `test_an_exported_page_fixture_stands_on_its_own` cases, which failed on the caption before they could reach the CORS errors. Restated: `test_an_unchanged_heartbeat_restates_no_margin_name[gallery]`, `test_the_feature_gallery_exercises_the_injected_core_surfaces`. **Not this branch's**: `test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus` fails the same way on `06daeef3`, one commit before #354 — `pageSettled` never becomes true in the response bar of `ship-review`. It took [run 34079766897](https://github.com/max-sixty/leaf/actions/runs/34079766897) down too, so it is a red `main` of its own and I am carrying it separately. </details> ## Testing `uv run pytest tests` (899 passed), and the complete nightly modules the change reaches: `test_render_margin.py`, `test_render_navigation.py`, `test_render_export.py`, `test_render_semantic_selection.py`, `test_render_pages.py`, `test_render_widgets.py`, `test_site.py` — all green. The new test was checked against a tree with the two runtime guards reverted, where it fails. For the focus half added since: `test_site.py` (31 passed), and every gallery, contained-frame, export, standalone, accessibility and drawing reading in the suite (130 passed), plus `test_render_margin.py` whole and the two readings elsewhere this branch clears (83 passed). With the `inert` line alone removed, the contained-replay reading fails on the tab losing focus. ## One flake carried too `test_unchanged_margin_refresh_cost_is_bounded_by_refresh_count` took this branch's first CI run down at `LayoutCount: 29` against a bound of 20, and it does the same on `6b77b0a9` with none of this branch on it — once in six runs there, once in seven here. The corpus carries the gallery's contained frames, and a frame still arriving lays itself out in the measured page's own process, which counted against five dispatches that touch nothing reads as the heartbeat forcing layout. Both corpus cost measurements — that one and `test_margin_layout_batches_the_composed_page_without_refolding_controls`, which measures the same page the same way — now wait for the frames to be ready before opening the CDP session: fourteen runs green after, where it failed twice in thirteen before. ## What this does not clear One reading on `main` is still red and is not this branch's: `test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus`, which I re-ran on this tree after #385 landed. It is tracked in #396, where the two possible repairs are written out — both are a product decision rather than a mechanical one. <details><summary>What it looks like</summary> The walk hangs on `pageSettled` in the response bar of `ship-review`: three transitions on one reaction chip's `.lf-margin-button-label` — opacity, transform, visibility, the label reveal — restart before they finish, indefinitely. `startTime` moves forward and `currentTime` goes back to 0 between two samples a second apart. Last green on [`934bfc4c`](https://github.com/max-sixty/leaf/actions/runs/34077249270); red from `06daeef3` (#365), which is what made a reaction a margin button with a label. The other readings that were red beside it have since been repaired on `main` and pass here: the three `test_render_reactions.py` cases went with #385, and `test_render_gate.py::test_a_reload_mid_flight_never_wedges_round_trip` passes on this tree. </details> ## Rebuilt on #378 #378 landed while this was open and rebuilt the contained page without `srcdoc`. The mark and the `inert` write both go on the document `loadFrameDocument` writes, and the frame element carries the mark beside it. `main` is merged in and the branch is green: `uv run pytest tests` (901 passed), and `test_site.py` and `test_render_margin.py` complete under `--run-nightly` (112 passed). --- Automated fix for [failed run](https://github.com/max-sixty/leaf/actions/runs/34083084673) --------- Co-authored-by: leaf-agent <[email protected]>
max-sixty
pushed a commit
that referenced
this pull request
Sep 7, 2026
…frame (#394) ## Problem `ci` on main failed on [run 34084018735](https://github.com/max-sixty/leaf/actions/runs/34084018735) with 19 nightly failures. Most of them are the interaction gallery's contained frames taking the page's focus, which #383 fixes, and the reaction readings #371 retired, which landed as #385. Two survive on today's main (`e6adf0b2`) and neither is covered by either. `test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus` times out waiting for `pageSettled`, because the corpus never settles once the ring walk stands on a control in a docked margin cluster: `layoutMarginRows` floats that cluster out of static flow to read where it can hang and docks it back, a document tree has one focus, so the move blurs the control and the restore focuses it again — and `keyboard/dispatch.js` answers that pair by painting the standing chrome. That paint's layout asks for the next placement, so the page laid its margin out, rebuilt its whole key line and refolded its banner row on every frame for as long as the reader stood there. This is the second time this cycle has closed on a different edge; #298 cut the `dockSeats` one. #373 cuts the other edge of this same loop, and has the same ring test green: it keeps a docked row docked while the room it answered about holds, so `moveHost` is never reached in the case that loops. The two compose rather than compete — that one removes a caller's reason to move the host, this one stops any placement move from painting the standing chrome, so it also holds for the callers it does not touch (`float`, the inline `target.after`, and both branches of the Page-map render). Either can land alone and fixes the failing run; landing both is deliberate belt-and-braces, and neither is based on the other. `test_a_reload_mid_flight_never_wedges_round_trip` waits the corpus's whole answer-all cascade out inside one 30-second budget, and the corpus gained an ask in #354. The fact under test — that a ledger carried across a navigation does not wedge the new document — has already settled on that document's first trip. ## Solution `runtime.placingChrome` says a chrome placement is in flight, `moveHost` raises it around the move and the focus it hands straight back, and the focus painters skip while it stands. `moveHost` asks for the paint itself in the one case the placement really did move the reader: the control they were standing on did not survive it. The flag lives in `context.js` rather than beside `living-margin.js`'s existing `settlingOptionsFocus` because what has to know is every reader of where the reader stands, not just the options state machine. The gate test now waits for the new document's first trip rather than for its whole cascade, so the reading stops tracking how many asks the corpus happens to carry. It waits on the press's own attempt leaving the outbox's `pending`, which is delivery with retries folded in: `acked` is counted in a `finally` around the fetch, so a post that throws counts one and is retried, and an empty `pending` is only the momentary gap between the cascade's trips. ## Testing - `test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus`: red on `e6adf0b2`, green with this change. It is the gate — I could not reduce the cycle to a small fixture, and dropped a candidate regression test that passed with the change reverted rather than land coverage that says nothing. - `test_a_reload_mid_flight_never_wedges_round_trip`: red under `-n4` on `e6adf0b2`, green with this change. Its new reading still fails on a wedged first trip: with `/api/event` aborted on the reloaded document it gives up on `sends=16 acked=16 pending=1`, the shape `acked > 0` would have gone green on. - `uv run pre-commit run --all-files`. - The full `--run-nightly` run promised when this opened never got posted — that session ended before it finished. CI runs the nightly cases of `tests/test_render_gate.py` on this PR, the module it touches; the rest of the nightly suite the runtime change drives runs after main moves. <details><summary>How the cycle was found</summary> At the failing wait, `moving()` reported three running transitions on one `.lf-margin-button-label`, restarting continuously. A document-wide `MutationObserver` over one second on that page showed the whole chrome rebuilding at frame rate with nothing dispatched: 125 `lf-key` inserts and 125 removals, 52 `.lf-btn.lf-others` moves between `lf-banner-actions` and `lf-banner-menu`, 50 same-value `style` writes on `nav.lf-living-margin`, and 25 moves of one `.lf-margin-item.lf-docked` between `MAIN` and its `SECTION`. A stack captured inside a `focusout` listener named the mover: ``` at /runtime/living-margin.js:2073 | at moveHost (/runtime/living-margin.js:2379) | at moveExternalHost (/runtime/living-margin.js:2073) | at Object.float (/runtime/living-margin.js:1644) ``` with a second identical one from `Object.dock`, 50 focusouts per second between them, and `requestAnimationFrame` stacks from `paintHere` and from `layoutMarginRows`'s dispatch at 25 per second each. </details> --- Automated fix for [failed run](https://github.com/max-sixty/leaf/actions/runs/34084018735) --------- Co-authored-by: leaf-agent <[email protected]>
max-sixty
pushed a commit
that referenced
this pull request
Sep 7, 2026
…us and its exported copy (#383) ## Problem The nightly leg of [`ci` on `edd1c5a`](https://github.com/max-sixty/leaf/actions/runs/34083084673) went red on 17 readings. All but two came from one cause, and every one of them reproduces deterministically on that commit and on today's `main`. #354 gave the interaction gallery three contained frames, and each of them runs a whole second Leaf page. A Leaf page arrives: `restoreArrangements()` puts back the workspace this reader last had open, and `letGo()` puts them on the page's own body. Both run inside the frame, and a document has one focus — so `document.activeElement` out on the gallery became the `<iframe>`, and whatever the reader was holding was let go of. That is what closed the crowded margin cluster mid-test, dropped every `.lf-target-hint` on the corpus, and took `#bg-choice-ask` off its focus. The export half is separate and had been masked by the reading in front of it: the frame's `srcdoc` names the runtime, the theme, and the gallery adapter on a server a standalone file has not got, so an exported copy opened with four CORS failures. Its `<kbd>` chord caption was authored hidden, so the copy also held words with no script left to reveal them. ## Solution `data-lf-contained` marks both sides of the boundary — the frame element out in the gallery and the body of the page inside it. A contained page arrives restoring no arrangement and placing no focus, and the bake drops a contained frame with the scripts. The chord caption now lives with its own visibility rather than in authored markup. On a page that is not contained nothing changes: every guard reads a constant that is false there. Arrival is only half of it. The framed chrome still places focus once a replay runs it — a shown `<dialog>` runs the browser's focusing steps whatever the page around it wants. So the frame's body is written `inert` beside the mark: an inert subject ends those steps before they reach anything, so the focus never crosses the boundary and there is nothing to hand back. The replays are unaffected, because they drive that chrome through the adapter rather than by pointing at it. Measured on the `Open and close Threads` tab: without the line the reader loses the tab they just pressed the moment the framed panel opens, and `g T` and `w` then reach a document they cannot see. `inert` is the same one-line fix #393 carries, arrived at from the other side. The two conflict textually — both write it into `loadFrameDocument` on the line this branch marks the body on — and resolving either way is taking one copy of the line. `test_a_contained_replay_leaves_the_page_around_it_standing` pins both halves: it fails on `main` with `assert 'IFRAME' != 'IFRAME'` at arrival, and on the arrival fix alone at the replay, where the reader is no longer standing on the tab they pressed. Two readings are restated rather than repaired, because the gallery really did change: its swipe specimen sits in an unselected tab, so one margin row is withheld and the posture clear runs for it. (The Ask count 13 → 14 landed separately in #376.) <details><summary>The 17 readings, and what each was</summary> Focus taken by a frame — 14: `test_the_feature_gallery_keeps_its_real_actions_reachable[1440/1200/700/390]`, `test_ask_addresses_follow_the_feature_gallery_s_visible_margin_controls[1200/390]`, `test_margin_target_hover_requires_pointer_movement`, `test_a_workspace_lands_one_responsive_layout_and_carries_the_column_to_it[1440/1600]`, `test_selection_hints_do_not_name_page_content_behind_a_covering_panel`, `test_a_shipped_log_opens_its_example_on_a_live_thread`, `test_other_responses_can_turn_the_compact_field_into_a_suggestion`, and both `test_an_exported_page_fixture_stands_on_its_own` cases, which failed on the caption before they could reach the CORS errors. Restated: `test_an_unchanged_heartbeat_restates_no_margin_name[gallery]`, `test_the_feature_gallery_exercises_the_injected_core_surfaces`. **Not this branch's**: `test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus` fails the same way on `06daeef3`, one commit before #354 — `pageSettled` never becomes true in the response bar of `ship-review`. It took [run 34079766897](https://github.com/max-sixty/leaf/actions/runs/34079766897) down too, so it is a red `main` of its own and I am carrying it separately. </details> ## Testing `uv run pytest tests` (899 passed), and the complete nightly modules the change reaches: `test_render_margin.py`, `test_render_navigation.py`, `test_render_export.py`, `test_render_semantic_selection.py`, `test_render_pages.py`, `test_render_widgets.py`, `test_site.py` — all green. The new test was checked against a tree with the two runtime guards reverted, where it fails. For the focus half added since: `test_site.py` (31 passed), and every gallery, contained-frame, export, standalone, accessibility and drawing reading in the suite (130 passed), plus `test_render_margin.py` whole and the two readings elsewhere this branch clears (83 passed). With the `inert` line alone removed, the contained-replay reading fails on the tab losing focus. ## One flake carried too `test_unchanged_margin_refresh_cost_is_bounded_by_refresh_count` took this branch's first CI run down at `LayoutCount: 29` against a bound of 20, and it does the same on `6b77b0a9` with none of this branch on it — once in six runs there, once in seven here. The corpus carries the gallery's contained frames, and a frame still arriving lays itself out in the measured page's own process, which counted against five dispatches that touch nothing reads as the heartbeat forcing layout. Both corpus cost measurements — that one and `test_margin_layout_batches_the_composed_page_without_refolding_controls`, which measures the same page the same way — now wait for the frames to be ready before opening the CDP session: fourteen runs green after, where it failed twice in thirteen before. ## What this does not clear One reading on `main` is still red and is not this branch's: `test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus`, which I re-ran on this tree after #385 landed. It is tracked in #396, where the two possible repairs are written out — both are a product decision rather than a mechanical one. <details><summary>What it looks like</summary> The walk hangs on `pageSettled` in the response bar of `ship-review`: three transitions on one reaction chip's `.lf-margin-button-label` — opacity, transform, visibility, the label reveal — restart before they finish, indefinitely. `startTime` moves forward and `currentTime` goes back to 0 between two samples a second apart. Last green on [`934bfc4c`](https://github.com/max-sixty/leaf/actions/runs/34077249270); red from `06daeef3` (#365), which is what made a reaction a margin button with a label. The other readings that were red beside it have since been repaired on `main` and pass here: the three `test_render_reactions.py` cases went with #385, and `test_render_gate.py::test_a_reload_mid_flight_never_wedges_round_trip` passes on this tree. </details> ## Rebuilt on #378 #378 landed while this was open and rebuilt the contained page without `srcdoc`. The mark and the `inert` write both go on the document `loadFrameDocument` writes, and the frame element carries the mark beside it. `main` is merged in and the branch is green: `uv run pytest tests` (901 passed), and `test_site.py` and `test_render_margin.py` complete under `--run-nightly` (112 passed). --- Automated fix for [failed run](https://github.com/max-sixty/leaf/actions/runs/34083084673) --------- Co-authored-by: leaf-agent <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The nightly leg of
cione0b2563went red on 21 readings. Three of them are the reactions module asserting a paint #371 deliberately retired:test_selected_reactions_keep_neutral_button_furniture[light],[dark], andtest_a_copy_keeps_a_standing_reaction_as_a_mark_and_drops_the_press, all failing onassert ... MARGIN_STATE_WITNESS ... is True→assert False is True.#371 left the lifecycle corner mark to
busyand tooksettledout ofBUTTON_GRAMMARentirely, dropping themarginButtonState(pill, "settled")call frompaintReactionStandingand the[data-lf-state="settled"]::afterrule fromchrome.css. It restatedtest_render_margin.pyfor that, including the note that "a standing reaction mark exists only while its reaction stands, so its presence is the whole of what it says and it carries no lifecycle paint on top" — buttest_render_reactions.pyis nightly-only and #371 touched no file that would have made CI run it, so the three readings there went unseen until main had already moved.Solution
The tests, restated to what #371 shipped.
MARGIN_STATE_WITNESSbecomesPAINTS_LIFECYCLE_MARK, since since #371busyis the only state that paints one and the reactions module now reads its absence.The palette pill reads from the fill it holds with the pointer parked at the origin. Hover lays down the same
var(--chip), so the fill alone cannot separate them — what can is that a standing pill keeps it once the pointer has gone, and that is where every reading inassert_selected_facewas already taken. One assertion is added so the comparison cannot go vacuous:neutral_hover["fill"] != resting["fill"], because if hover ever laid down the resting fill thenselectedwould collapse intorestingand the whole sequence would hold of a pill that painted nothing.The seated mark in an exported copy reads the absence of a witness on both sides of the pointer. Its presence is already asserted by the
glyphcomparison above it; what the pointer half owes is that no paint arrives with the cursor, and a lifecycle witness in a file would state a state nothing in a file can leave.Not this branch's: the other 18 readings. Fourteen are the contained-frame focus cause #383 is already carrying, plus
test_draw_mode_cursor_matches_the_widget_controls_it_capturesandtest_the_feature_gallery_exercises_core_reader_workflows, which are the same cause reached through a swallowedpage.keyboard.pressrather than a lost.lf-target-hint— commented on that PR.test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpusis the separatepageSettledtimeout #383's body already names as a red main of its own.test_a_reload_mid_flight_never_wedges_round_tripis unclassified.Testing
uv run pytest tests/test_render_reactions.py -q -n0— 46 passed, where the three named readings fail onmain.uv run pytest tests -q— 901 passed, 6 skipped.pre-commit run --files tests/test_render_reactions.pyclean.Bug-backed: with
.lf-margin-button.lf-react[aria-pressed="true"]'sbackground: var(--chip)replaced bytransparent, both parametrized furniture cases fail on'fill': 'rgb(45, 41, 34)' != 'rgba(0, 0, 0, 0)'— the restated reading still catches a standing pill that stops painting.Automated fix for failed run