Repository navigation
Expand and contain the interaction gallery - #354
Conversation
leaf-agent
left a comment
There was a problem hiding this comment.
Two findings, both about seams rather than the replays themselves — the scenarios and the containment story read well, and the remember: false opt-out covers exactly the reachable readerStore writers (PANEL_KEY, TRAY_KEY); drawn-edge and bindings only write on gestures the frame never makes. Details inline.
One coordination note, no verdict attached: #353 rewrites the same regions of runtime/interaction-gallery.js — it replaces the module-level placements table and the document.querySelector("#bg-motion-...") lookups with stage-relative reads, which is the direction the new send-comment/swipe-card scenarios already take via demo.figure. Whichever lands second will need a real merge, not a textual one.
leaf-agent
left a comment
There was a problem hiding this comment.
Both earlier findings are closed out, and I checked the fixes rather than the commit message: per-demo load() with the loadState === "ready" gate does keep a hung frame off the frame-free tabs, and the presented-state read is now capped the same way the adapter lookup is; the frozen scenario context and its packages.md entry give the Swipe module a declared surface instead of Demo's privates. One new finding on that commit, inline.
…ion-gallery # Conflicts: # skills/leaf/assets/runtime/interaction-gallery.js
leaf-agent
left a comment
There was a problem hiding this comment.
One finding, on the swipe deck's new projected exit motion: it reads a facet shape projection never emits, so the branch is dead on the real path and the test that covers it constructs the shape by hand. Details inline; the packages.md sentence and the test docstring both rest on the same reading.
Separately, and not a finding against this PR: test_a_control_a_widget_built_is_told_from_a_label_it_wrote is red on main at 4cbef417 today, deterministically — I ran it in a worktree at the base and it fails with the same single spent control at opacity: 1. 378e35e5 is the repair, and right now it only lands when this feature PR does.
How I checked the facet shape
Patched the deck instance's renderState on SWIPE_PAGE to record Object.keys(state.verdict) for every projection-driven call, then pressed Keep and let the round trip settle:
REAL PROJECTION FACET KEYS: ['units,value']
And the standing state after a reload, which is the other case the branch is meant to serve:
{"value": {"session-queue": ["swipe-b","swipe-c","swipe-d"],
"session-pass": ["already-passed"],
"session-keep": ["already-kept","swipe-a"]},
"units": {"swipe-a": {"action": "swipe", "value": "session-keep",
"detail": {"card": "swipe-a", "to": "session-keep", "index": 1}}}}action and detail live on the unit, never on the facet — which is what runtime/projection.js's header says under "A facet with a non-widget unit has units, mapping each standing unit to that same facet shape", and what the unchanged packages.md line directly above this PR's addition says too.
leaf-agent
left a comment
There was a problem hiding this comment.
The unit read is right and the reload half holds — I reproduced both: a real appended swipe now projects the echo through the production state feed, and the reload restores the same standing unit at rest. One finding on the other half of "old news", inline: the suppression rests entirely on the presentation stamp, and a revision activation replaces main and reconciles after it, so the standing swipe replays there.
…ion-gallery # Conflicts: # tests/test_render_widgets.py
…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]>
…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]>
…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]>
…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]>
…2332) Small cleanups from the code-quality survey of the browser runtime's state, delivery and traffic code. Each removes a second writer, reader or check of something the runtime already states once. **State and delivery** - `data-lf-traffic`'s `pending` has one writer: traffic.js watches the published `effective.sending` from `mountApplication`, painting only when the attempts change. `afterEnqueue` loses the presentation promise no caller read. `pending` now clears with the publication that accepts or refuses an attempt, slightly before the drain finishes settling it. - The application publisher reads its own receipts when naming a reply's parent or an undo's target; one `admittedId` helper states that rule for `derive`, `nameParent` and `nameUndo`. - `runtime.undoing` and `runtime.restoringState` go. The pending ledger already covers an undo in flight, and a gesture that leaves the ledger on accept now repaints keys on that edge. Nothing inside `paintReading`'s scope plays motion any more, so #354's "a refusal's restore does not animate" was already lost; whether it should animate stays open. - `delivery.js` classifies an `/api/event` answer once (`readEventAnswer`) for both senders, and its four retry tails are one `retry()`. - `state-feed.js` releases its read slot in one place and names the quiet-feed guard; the reading's own completions keep their narrower guards. - The 2-second tick no longer retries a drag-deferred projection; the drag's release already does, and `onDeferredReady` presents and releases directly, including when the release lands during a state application (the pass queues behind it). - Redundant checks in the state read path go: a duplicate `Leaf-View-Revision` header, guards on a `Response` an awaited fetch always returns, an `overtaken` check `canAdopt` repeats, and `questions` defaults in `queues.js`. **Requests** - `layer-client.js` has one JSON request primitive, `requestJson`, used by the file API, deferred data values, media upload and samples. Behaviour changes: sample allocation and release are now layer-admitted (a stale-layer allocation reloads instead of failing as "The sample document did not start Leaf", and a refused key there is observed); a non-JSON body fails as `<what>: HTTP <status>` rather than a `SyntaxError`; upload and deferred-value fallbacks read "image upload: HTTP n" and "deferred value: HTTP n", and a deferred value refused for another layer says "Leaf's layer changed while requesting deferred value". - `storage.js` reads the served delivery script once (`DELIVERY`, `WEBSITE_DELIVERY`, `layerRoot`), replacing four selectors and two derivations of the layer root. The `script[data-lf-entry]` seam harnesses use is unchanged. **Presentation** - `other_leaves` drops closed neighbours, so they stop travelling in `/api/state` and the Leaves drawer no longer filters them. The Python neighbour fixture becomes a waiting page. - One phrase table words every activity count; a Leaves row's hover no longer repeats the queued and pending counts its line already says. - Widget Questions are filtered once, and `questionItem` picks its subject and `ends` in one switch. - The window resize handler stops running `pageShifted` a second time; its synchronous layout pass stays and is documented. **API surface** - Thirteen re-exports only the render gate's probes and tests read move from `widget-api.js` to `check-api.js`, which every probe may now import; `application.js`'s `shallowSigs` trampoline goes. Not done: the probes' JSON-body fallback for a probe without `Leaf-Layer` stays. `live_shell.py` says a static host may serve the derived tree, and `test_a_failed_bootstrap_hears_a_static_registry_generation` holds that a headerless static host can supervise startup, so removing it would drop that support. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Bumps the dependencies group with 10 updates: | Package | From | To | | --- | --- | --- | | [tree-sitter](https://github.com/tree-sitter/py-tree-sitter) | `0.26.1` | `0.27.0` | | [turbohtml](https://github.com/tox-dev/turbohtml) | `1.15.11` | `1.16.4` | | [watchdog](https://github.com/gorakhargosh/watchdog) | `7.1.0` | `7.1.1` | | [axe-playwright-python](https://github.com/pamelafox/axe-playwright-python) | `0.1.8` | `0.1.9` | | [pyyaml](https://github.com/yaml/pyyaml) | `6.0.3` | `6.0.4` | | [ty](https://github.com/astral-sh/ty) | `0.0.104` | `0.0.108` | | [ruff](https://github.com/astral-sh/ruff) | `0.17.5` | `0.17.6` | | [datamodel-code-generator](https://github.com/datamodel-code-generator/datamodel-code-generator) | `0.96.0` | `0.100.0` | | [hypothesis](https://github.com/HypothesisWorks/hypothesis) | `6.170.15` | `6.170.17` | | [selenium](https://github.com/SeleniumHQ/Selenium) | `4.52.0` | `4.54.0` | Updates `tree-sitter` from 0.26.1 to 0.27.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tree-sitter/py-tree-sitter/releases">tree-sitter's releases</a>.</em></p> <blockquote> <h2>v0.27.0</h2> <h3>Additions:</h3> <ul> <li><code>Query.copy()</code></li> <li><code>Query.__copy__()</code></li> </ul> <h3>Changes:</h3> <ul> <li><code>LookaheadIterator.current_symbol_name</code> returns <code>None</code> when invalid</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/tree-sitter/py-tree-sitter/commit/79cb0b8e43cf12a9cdbd6613956176d1695020a2"><code>79cb0b8</code></a> fix(parser): fix use after free in dealloc</li> <li><a href="https://github.com/tree-sitter/py-tree-sitter/commit/a451e3103cee5a2990aeeccf36c04a19b948f284"><code>a451e31</code></a> chore: release 0.27.0</li> <li><a href="https://github.com/tree-sitter/py-tree-sitter/commit/811213637ca8c17f52b3e4085cb50236ab4ad6c2"><code>8112136</code></a> fix(types): matches & captures can have keyword arguments</li> <li><a href="https://github.com/tree-sitter/py-tree-sitter/commit/08c14760b33ac28705f996d408628f88769700b0"><code>08c1476</code></a> test: add parallelism tests</li> <li><a href="https://github.com/tree-sitter/py-tree-sitter/commit/ef4b62ca9e70f6d5f0ce56a59134ee069cf3c4db"><code>ef4b62c</code></a> feat(query_cursor): release the GIL for expensive queries</li> <li><a href="https://github.com/tree-sitter/py-tree-sitter/commit/9a4ddce8b34f64da7ad8a3fc1e220bc9c179bd70"><code>9a4ddce</code></a> feat(query): release the GIL for expensive queries</li> <li><a href="https://github.com/tree-sitter/py-tree-sitter/commit/3b1a3d5d17870b353a7589cdf063521708aee894"><code>3b1a3d5</code></a> feat(parser): release the GIL for large buffers</li> <li><a href="https://github.com/tree-sitter/py-tree-sitter/commit/4a8753910f5bbbd4368ad88fe1357a823506aa53"><code>4a87539</code></a> fix(query): prevent double free of predicate</li> <li><a href="https://github.com/tree-sitter/py-tree-sitter/commit/cb92a454132d6dd1cea315e660b8a5b6027561a6"><code>cb92a45</code></a> refactor(node)!: hash nodes based on xxHash</li> <li><a href="https://github.com/tree-sitter/py-tree-sitter/commit/d1707f1f032486f165acbfc9e7431a74d5b7ecab"><code>d1707f1</code></a> refactor(range)!: hash ranges based on xxHash</li> <li>Additional commits viewable in <a href="https://github.com/tree-sitter/py-tree-sitter/compare/v0.26.1...v0.27.0">compare view</a></li> </ul> </details> <br /> Updates `turbohtml` from 1.15.11 to 1.16.4 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tox-dev/turbohtml/releases">turbohtml's releases</a>.</em></p> <blockquote> <h2>v1.16.4</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h3>Bug fixes</h3> <ul> <li>An empty <code>lang</code> or <code>xml:lang</code> now marks an element's language as unknown, as HTML specifies, so <code>:lang()</code> no longer inherits an ancestor's language through it: <code><div lang=en><p lang=""></code> stopped matching <code>:lang(en)</code>. A quoted empty range, <code>:lang("")</code>, matches elements whose language is unknown or never declared, where it matched nothing before. <code>css_to_xpath</code> translates both the same way (<a href="https://redirect.github.com/tox-dev/turbohtml/pull/2556">#2556</a>) by <a href="https://github.com/gaborbernat"><code>@gaborbernat</code></a>.</li> <li><code>to_markdown</code> with <code>converters</code> keeps <code>*</code>/<code>**</code> delimiters on emphasis that ends in punctuation unless a converted element writes right after it. Before, passing any converters made such runs fall back to raw <code><em></code> and <code><strong></code> tags, even when no converted element was near them (<a href="https://redirect.github.com/tox-dev/turbohtml/pull/2557">#2557</a>) by <a href="https://github.com/gaborbernat"><code>@gaborbernat</code></a>.</li> </ul> <p><a href="https://pypi.org/project/turbohtml/1.16.4/">🐍 PyPI release</a></p> <p><a href="https://github.com/tox-dev/turbohtml/compare/1.16.3...1.16.4">📜 Full Changelog</a></p> <h2>v1.16.3</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h3>Bug fixes</h3> <ul> <li><code>turbohtml.etree</code> covers three more <code>lxml.html</code> behaviors: <code>ElementTree.iter</code> iterates from the root element, <code>ElementView.nsmap</code> returns an empty mapping, and <code>to_lxml</code> / <code>to_lxml_html</code> strip characters XML cannot carry from text, tails and attribute values instead of raising <code>ValueError</code> or dropping the attribute (<a href="https://redirect.github.com/tox-dev/turbohtml/pull/2552">#2552</a>) by <a href="https://github.com/gaborbernat"><code>@gaborbernat</code></a>.</li> <li>XPath on a <code>from_lxml()</code> copy resolves absolute paths from a document, as lxml does. The copy was a detached tree, so <code>//h1</code> inside a predicate searched only below the predicate's context node and <code>/html</code> matched nothing (<a href="https://redirect.github.com/tox-dev/turbohtml/pull/2553">#2553</a>) by <a href="https://github.com/gaborbernat"><code>@gaborbernat</code></a>.</li> <li><code>turbohtml.etree</code>'s <code>document_fromstring</code>, <code>fromstring</code> and <code>fragment_fromstring</code> make a <code>\<template></code>'s content its children, as lxml does, and keep a <code>\<template shadowrootmode></code> as an ordinary template instead of attaching a shadow root. Before, <code>len()</code>, iteration and <code>itertext()</code> on a template saw nothing, and a declarative shadow root's content was missing from <code>text_content()</code> and XPath. <code>strip_elements</code> now reaches template content (<a href="https://redirect.github.com/tox-dev/turbohtml/pull/2554">#2554</a>) by <a href="https://github.com/gaborbernat"><code>@gaborbernat</code></a>.</li> </ul> <p><a href="https://pypi.org/project/turbohtml/1.16.3/">🐍 PyPI release</a></p> <p><a href="https://github.com/tox-dev/turbohtml/compare/1.16.2...1.16.3">📜 Full Changelog</a></p> <h2>v1.16.2</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h3>Bug fixes</h3> <ul> <li><code>to_markdown()</code> writes breaks inside emphasis as Markdown hard breaks again when visible text separates them, as in <code><em>[Image OCR]<br>text<br>[End OCR]</em></code>, instead of raw <code><br></code> tags. Only breaks with nothing visible between them, which would end the paragraph, stay tags (<a href="https://redirect.github.com/tox-dev/turbohtml/pull/2551">#2551</a>) by <a href="https://github.com/gaborbernat"><code>@gaborbernat</code></a>.</li> </ul> <p><a href="https://pypi.org/project/turbohtml/1.16.2/">🐍 PyPI release</a></p> <p><a href="https://github.com/tox-dev/turbohtml/compare/1.16.1...1.16.2">📜 Full Changelog</a></p> <h2>v1.16.1</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h3>Bug fixes</h3> <ul> <li><code>rewrite()</code> now raises <code>MemoryError</code> when running out of memory after its first edit, instead of calling the next handler with the error pending, which raised <code>SystemError</code> (<a href="https://redirect.github.com/tox-dev/turbohtml/pull/2540">#2540</a>) by <a href="https://github.com/gaborbernat"><code>@gaborbernat</code></a>.</li> <li><code>to_markdown()</code> keeps the whitespace of a <code><pre></code>, <code><textarea></code> or <code><listing></code> it writes as raw HTML inside a table cell. The cell's text is folded onto one line, which turned each run of spaces and each line break in such an element into a single space; its line feeds and space runs are now written as character references (<a href="https://redirect.github.com/tox-dev/turbohtml/pull/2541">#2541</a>) by <a href="https://github.com/gaborbernat"><code>@gaborbernat</code></a>.</li> <li>A streaming <code>Tokenizer</code> keeps a long named character reference run in one text token, as <code>tokenize()</code> does, instead of splitting its text once it passed 4096 code points (<a href="https://redirect.github.com/tox-dev/turbohtml/pull/2542">#2542</a>) by <a href="https://github.com/gaborbernat"><code>@gaborbernat</code></a>.</li> <li><code>minify_css</code> no longer reads memory it never wrote when an allocation fails inside a nested rule's selector or inside a function folded within another function's arguments; it raises <code>MemoryError</code> as everywhere else (<a href="https://redirect.github.com/tox-dev/turbohtml/pull/2543">#2543</a>) by <a href="https://github.com/gaborbernat"><code>@gaborbernat</code></a>.</li> <li><code>minify_js()</code> raises <code>MemoryError</code> again when an allocation for its scope analysis or fold bookkeeping fails, instead of returning its output (<a href="https://redirect.github.com/tox-dev/turbohtml/pull/2544">#2544</a>) by <a href="https://github.com/gaborbernat"><code>@gaborbernat</code></a>.</li> <li>Text nested past the 512-level depth cap keeps its source order when the adoption agency moves its parent back under the cap: <code><a></code>, 500 open elements and eight <code><div></code>s followed by <code><p>y<a>x</code> used to read <code>xy</code> (<a href="https://redirect.github.com/tox-dev/turbohtml/pull/2545">#2545</a>) by <a href="https://github.com/gaborbernat"><code>@gaborbernat</code></a>.</li> <li>A parse that ran out of memory while its open-element stack grew past 64 entries could read past the end of an internal array, and link resolution raised <code>SystemError</code> instead of <code>MemoryError</code> when percent-encoding a link ran out of memory (<a href="https://redirect.github.com/tox-dev/turbohtml/pull/2546">#2546</a>) by <a href="https://github.com/gaborbernat"><code>@gaborbernat</code></a>.</li> <li>The parser keeps the DOM within its documented 512-level cap when the adoption agency moves a subtree, when closing a form or a misnested <code><a></code> removes an element from the middle of the open-element stack, and when it copies a selected option into a deep <code><selectedcontent></code>: such markup used to nest elements past 512 levels, <code><form><div></form></code> repeated 600 times reaching 1019 (<a href="https://redirect.github.com/tox-dev/turbohtml/pull/2548">#2548</a>) by <a href="https://github.com/gaborbernat"><code>@gaborbernat</code></a>.</li> <li>Pickling a node no longer recurses once per tree level. A node pickles as one flat list of its subtree's nodes, so a tree at the 512-level depth cap pickles on Python 3.11, where it raised <code>RecursionError</code>, and in a thread with a small stack, where a tree a few hundred levels deep crashed the interpreter on Python 3.11 to 3.13. The payload is a third smaller and both pickling and unpickling are faster; pickles written by earlier releases still load (<a href="https://redirect.github.com/tox-dev/turbohtml/pull/2549">#2549</a>) by <a href="https://github.com/gaborbernat"><code>@gaborbernat</code></a>.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/tox-dev/turbohtml/blob/main/docs/changelog.rst">turbohtml's changelog</a>.</em></p> <blockquote> <p>########### Changelog ###########</p> <p>.. towncrier-draft-entries:: Unreleased</p> <p>.. towncrier release notes start</p> <p>.. _release-1-16-5:</p> <hr /> <p>v1.16.5 (2026-11-23)</p> <hr /> <p>.. _release-1-16-5-fixed:</p> <h1>Fixed</h1> <ul> <li><code>minify_css</code> merges two rules with the same selector when an <code>@media</code> or <code>@supports</code> block it dropped for a later identical copy was the only thing between them. Before, only minifying the output a second time merged them (:pr:<code>2561</code>) by :user:<code>gaborbernat</code>.</li> <li><code>minify_js</code> with <code>mangle</code> no longer renames a <code>let</code>, <code>const</code> or <code>class</code> onto the name of an unread top-level <code>var</code> declared in the same loop or block, which wrote a redeclaration and so invalid JavaScript, such as <code>for(const a of x)var a</code>. A regression in 1.16.0 (:pr:<code>2562</code>) by :user:<code>gaborbernat</code>.</li> <li>Parsing documents with many unclosed elements and stray end tags no longer takes quadratic time (:pr:<code>2564</code>) by :user:<code>gaborbernat</code>.</li> <li>Resolve absolute XPath expressions from the root of trees built with <code>etree.Element</code> or parsed as single-element fragments with <code>etree.fragment_fromstring</code> (:pr:<code>2560</code>) by :user:<code>gaborbernat</code>.</li> </ul> <p>.. _release-1-16-4:</p> <hr /> <p>v1.16.4 (2026-11-22)</p> <hr /> <p>.. _release-1-16-4-fixed:</p> <h1>Fixed</h1> <ul> <li>An empty <code>lang</code> or <code>xml:lang</code> now marks an element's language as unknown, as HTML specifies, so <code>:lang()</code> no longer inherits an ancestor's language through it: <code><div lang=en><p lang=""></code> stopped matching <code>:lang(en)</code>. A quoted empty range, <code>:lang("")</code>, matches elements whose language is unknown or never declared, where it matched nothing before. <code>css_to_xpath</code> translates both the same way (:pr:<code>2556</code>) by :user:<code>gaborbernat</code>.</li> <li><code>to_markdown</code> with <code>converters</code> keeps <code>*</code>/<code>**</code> delimiters on emphasis that ends in punctuation unless a converted element writes right after it. Before, passing any converters made such runs fall back to raw <code><em></code> and <code><strong></code> tags, even when no converted element was near them (:pr:<code>2557</code>) by :user:<code>gaborbernat</code>.</li> </ul> <p>.. _release-1-16-3:</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/tox-dev/turbohtml/commit/5ab32d403b0427edf5e8660b023ac124cb49e3c2"><code>5ab32d4</code></a> release 1.16.4</li> <li><a href="https://github.com/tox-dev/turbohtml/commit/630300dfc183795e9791548d76896c7d7c423a1a"><code>630300d</code></a> 🐛 fix(markdown): read past unconverted elements (<a href="https://redirect.github.com/tox-dev/turbohtml/issues/2557">#2557</a>)</li> <li><a href="https://github.com/tox-dev/turbohtml/commit/42533356e5dc89c86b6f4c21c377f3ccbba7b88c"><code>4253335</code></a> 🐛 fix(css): treat an empty lang as unknown (<a href="https://redirect.github.com/tox-dev/turbohtml/issues/2556">#2556</a>)</li> <li><a href="https://github.com/tox-dev/turbohtml/commit/216e4886035cd686439bbec338efba805c509ef5"><code>216e488</code></a> 🐛 fix(ci): retry the html5lib-tests clone (<a href="https://redirect.github.com/tox-dev/turbohtml/issues/2558">#2558</a>)</li> <li><a href="https://github.com/tox-dev/turbohtml/commit/f08ad264ede87e39a3b5f34f4f87cfbee58d6aae"><code>f08ad26</code></a> release 1.16.3</li> <li><a href="https://github.com/tox-dev/turbohtml/commit/ca17e426bdc16bb0ab1f1e19625d61c6a5fe61d4"><code>ca17e42</code></a> 🐛 fix(etree): match lxml on iter, nsmap, to_lxml (<a href="https://redirect.github.com/tox-dev/turbohtml/issues/2552">#2552</a>)</li> <li><a href="https://github.com/tox-dev/turbohtml/commit/6d39ea5c1c1e2b692fa052e34b367368a72f4838"><code>6d39ea5</code></a> 🐛 fix(etree): expose template content like lxml (<a href="https://redirect.github.com/tox-dev/turbohtml/issues/2554">#2554</a>)</li> <li><a href="https://github.com/tox-dev/turbohtml/commit/f1541ac3700e65004231bc2e009aac89282b7375"><code>f1541ac</code></a> 🐛 fix(etree): root from_lxml copies in a document (<a href="https://redirect.github.com/tox-dev/turbohtml/issues/2553">#2553</a>)</li> <li><a href="https://github.com/tox-dev/turbohtml/commit/9fa4a35d649bf7d2ec1250e6c33ed48cc091af5c"><code>9fa4a35</code></a> release 1.16.2</li> <li><a href="https://github.com/tox-dev/turbohtml/commit/b80b5c3d83d6ce1129ab348c06393b9e00ad584b"><code>b80b5c3</code></a> 🐛 fix(markdown): keep hard breaks in emphasis (<a href="https://redirect.github.com/tox-dev/turbohtml/issues/2551">#2551</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tox-dev/turbohtml/compare/1.15.11...1.16.4">compare view</a></li> </ul> </details> <br /> Updates `watchdog` from 7.1.0 to 7.1.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/gorakhargosh/watchdog/releases">watchdog's releases</a>.</em></p> <blockquote> <h2>7.1.1</h2> <ul> <li>[core] Allow pattern matching to evaluate relative paths against the watched root directory, supporting intuitive non-recursive patterns (e.g. <code>*.json</code>, <code>logs/*.log</code>) under <code>full_match()</code>. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1430">#1430</a> Thanks to <a href="https://github.com/prateek-dagar"><code>@prateek-dagar</code></a>)</li> <li>[core] <code>RegexMatchingEventHandler</code> now accepts a single string for <code>ignore_regexes</code>, as it already does for regexes, instead of compiling each character as a separate regex. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1419">#1419</a>, thanks to <a href="https://github.com/arieleven"><code>@arieleven</code></a>)</li> <li>[observers] Fix race condition between <code>Observer.start()</code> and <code>Observer.schedule()</code>, and release observer lock during event handler dispatch to prevent blocking concurrent <code>schedule()</code> and <code>unschedule()</code> calls. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1044">#1044</a>, thanks to <a href="https://github.com/prateek-dagar"><code>@prateek-dagar</code></a>)</li> <li>[fsevents] Fix compiler warnings in the C extension. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1411">#1411</a>, thanks to <a href="https://github.com/BoboTiG"><code>@BoboTiG</code></a>)</li> <li>[inotify] A recursive watch that hits the inotify watch or instance limit (<code>ENOSPC</code>, <code>EMFILE</code>) on a subdirectory raises <code>OSError</code> from <code>start()</code> and <code>schedule()</code> again, as in 6.0.0, instead of silently watching part of the tree. A subdirectory created later that cannot be watched is logged as a warning. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1454">#1454</a>, thanks to <a href="https://github.com/Kernel-Hunter"><code>@Kernel-Hunter</code></a>)</li> <li>[inotify] Defer allocating an observer's inotify instance and reader thread until its first scheduled watch. Empty observers no longer consume inotify instances; resource-limit errors are raised by <code>schedule()</code> rather than construction. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1432">#1432</a>, thanks to <a href="https://github.com/kushaldave002"><code>@kushaldave002</code></a>)</li> <li>[inotify] Do not log an error when <code>InotifyEmitter.queue_events()</code> is invoked while the emitter is inactive. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1462">#1462</a>, thanks to <a href="https://github.com/prateek-dagar"><code>@prateek-dagar</code></a>)</li> <li>[inotify] Events read before a kernel queue overflow are delivered instead of discarded, ahead of the <code>EventsLostEvent</code>. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1440">#1440</a>, thanks to <a href="https://github.com/KurathSec"><code>@KurathSec</code></a> and <a href="https://github.com/fstrasz"><code>@fstrasz</code></a>)</li> <li>[inotify] Properly format the duplicate-callback <code>RuntimeWarning</code> message. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1435">#1435</a>, thanks to <a href="https://github.com/BoboTiG"><code>@BoboTiG</code></a>)</li> <li>[inotify] Refactor watch tracking from flat string path dictionaries to a hierarchical directory tree (<code>DirNode</code>), making recursive subtree moves atomic operations with cycle detection and ancestor placeholder pruning. ("1459, thanks to <a href="https://github.com/prateek-dagar"><code>@prateek-dagar</code></a>)</li> <li>[inotify] Report lost events: after a kernel queue overflow, each watch gets an <code>EventsLostEvent</code> for its directory or file, dispatched to the new <code>FileSystemEventHandler.on_events_lost()</code> once the watches are repaired. Pattern and regex handlers (and so tricks) receive it only through <code>on_events_lost()</code>. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1440">#1440</a>, thanks to <a href="https://github.com/fstrasz"><code>@fstrasz</code></a>)</li> <li>[inotify] Stop watching directories moved out of a watched tree and emit synthetic deletion/moved events for their subdirectories. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/354">#354</a>, thanks to <a href="https://github.com/prateek-dagar"><code>@prateek-dagar</code></a>)</li> <li>[kqueue] Queue each event once per kqueue wakeup. A move reported the parent <code>DirModifiedEvent</code> twice, and a write reported <code>FileModifiedEvent</code> twice. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1442">#1442</a>, thanks to <a href="https://github.com/karolyi"><code>@karolyi</code></a>)</li> <li>[kqueue] Register the kevents when the emitter is created, not on the emitter thread's first <code>kqueue.control()</code> call. Deletes, renames and attribute changes made in between were lost, every time on free-threaded Python. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1445">#1445</a>, thanks to <a href="https://github.com/karolyi"><code>@karolyi</code></a>)</li> <li>[kqueue] Stop the emitter with a <code>DirDeletedEvent</code> when the watched directory is removed or moved, instead of letting its thread die with <code>FileNotFoundError</code>. The kevents read in the same batch are still reported. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1436">#1436</a>, thanks to <a href="https://github.com/karolyi"><code>@karolyi</code></a>)</li> <li>[windows] A <code>ReadDirectoryChangesW</code> or <code>ReadDirectoryChangesExW</code> buffer overflow is now signalled instead of being silently dropped as zero events. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1019">#1019</a>, thanks to <a href="https://github.com/MohammedAlkindi"><code>@MohammedAlkindi</code></a>)</li> <li>[windows] Deliver events while the watched tree keeps changing: <code>DirectoryChangeReader.get_events()</code> now returns within its timeout instead of waiting until no buffer has arrived for a full timeout. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1469">#1469</a>, thanks to <a href="https://github.com/zzoraemon043"><code>@zzoraemon043</code></a>)</li> <li>[windows] Make the <code>DirectoryChangeReader</code> thread a daemon so an unstopped observer does not block interpreter exit. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1470">#1470</a>, thanks to <a href="https://github.com/devskad"><code>@devskad</code></a>)</li> <li>[windows] Report lost events: when the <code>ReadDirectoryChangesW</code> buffer of a watch overflows, the watch gets an <code>EventsLostEvent</code>, dispatched to <code>FileSystemEventHandler.on_events_lost()</code>, as on inotify. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1440">#1440</a>, thanks to <a href="https://github.com/fstrasz"><code>@fstrasz</code></a>)</li> <li>[windows] <code>WindowsApiObserver</code>, <code>WindowsApiEmitter</code>, and <code>DirectoryChangeReader</code> accept a notify_filter bitmask, the <code>dwNotifyFilter</code> passed to <code>ReadDirectoryChangesW</code> and <code>ReadDirectoryChangesExW</code>. The default is still <code>WATCHDOG_FILE_NOTIFY_FLAGS</code>, including <code>FILE_NOTIFY_CHANGE_LAST_ACCESS</code>. Mask that flag out (<code>WATCHDOG_FILE_NOTIFY_FLAGS & ~FILE_NOTIFY_CHANGE_LAST_ACCESS</code>) when access-time updates are not useful. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1447">#1447</a>, thanks to <a href="https://github.com/gero-robert"><code>@gero-robert</code></a>)</li> <li>[dirsnapshot] Avoid duplicate create or delete events when a renamed file has another hard link in the watched directory. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1425">#1425</a>, thanks to <a href="https://github.com/parijat1222q"><code>@parijat1222q</code></a>)</li> <li>[dirsnapshot] Capture Linux birth times while taking a snapshot so deleted paths retain their historical identity during move detection. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1429">#1429</a>, thanks to <a href="https://github.com/FFspiky"><code>@FFspiky</code></a>)</li> <li>[dirsnapshot] Detect replacements at the same path when an inode is reused but the entry type or available birth time changes, instead of missing the replacement or reporting it as a modification. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1464">#1464</a>, thanks to <a href="https://github.com/anticipate218"><code>@anticipate218</code></a>)</li> <li>[dirsnapshot] Fix false move detection on inode recycling by verifying file type, birth time, and nanosecond stat invariants. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/992">#992</a>, <a href="https://redirect.github.com/gorakhargosh/watchdog/issues/303">#303</a>, thanks to <a href="https://github.com/prateek-dagar"><code>@prateek-dagar</code></a>)</li> <li>[watchmedo] Without <code>--command</code>, shell-command printed every event as <code>"<type> <object> from <src> to"</code> with an empty destination. It now prints the destination for moved events only. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1448">#1448</a>, thanks to <a href="https://github.com/Kernel-Hunter"><code>@Kernel-Hunter</code></a>)</li> <li>[ci] Run the test suite in FreeBSD 14 (kqueue, also on free-threaded 3.13t) and FreeBSD 15 (inotify) VMs on pull requests. (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1445">#1445</a>, thanks to <a href="https://github.com/karolyi"><code>@karolyi</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst">watchdog's changelog</a>.</em></p> <blockquote> <p>7.1.1</p> <pre><code> 2026-11-20 • `full history <https://github.com/gorakhargosh/watchdog/compare/v7.1.0...v7.1.1>`__ <p><strong>Other Changes</strong></p> <ul> <li>[core] Allow pattern matching to evaluate relative paths against the watched root directory, supporting intuitive non-recursive patterns (e.g. <code>*.json</code>, <code>logs/*.log</code>) under <code>full_match()</code>. (<code>[#1430](https://github.com/gorakhargosh/watchdog/issues/1430) &lt;https://github.com/gorakhargosh/watchdog/issues/1430&gt;</code>__ Thanks to <a href="https://github.com/prateek-dagar"><code>@prateek-dagar</code></a>)</li> <li>[core] <code>RegexMatchingEventHandler</code> now accepts a single string for <code>ignore_regexes</code>, as it already does for <code>regexes</code>, instead of compiling each character as a separate regex. (<code>[#1419](https://github.com/gorakhargosh/watchdog/issues/1419) &lt;https://github.com/gorakhargosh/watchdog/pull/1419&gt;</code>__, thanks to <a href="https://github.com/arieleven"><code>@arieleven</code></a>)</li> <li>[observers] Fix race condition between <code>Observer.start()</code> and <code>Observer.schedule()</code>, and release observer lock during event handler dispatch to prevent blocking concurrent <code>schedule()</code> and <code>unschedule()</code> calls. (<code>[#1044](https://github.com/gorakhargosh/watchdog/issues/1044) &lt;https://github.com/gorakhargosh/watchdog/issues/1044&gt;</code>__, thanks to <a href="https://github.com/prateek-dagar"><code>@prateek-dagar</code></a>)</li> <li>[fsevents] Fix compiler warnings in the C extension. (<code>[#1411](https://github.com/gorakhargosh/watchdog/issues/1411) &lt;https://github.com/gorakhargosh/watchdog/issues/1411&gt;</code>__, thanks to <a href="https://github.com/BoboTiG"><code>@BoboTiG</code></a>)</li> <li>[inotify] A recursive watch that hits the inotify watch or instance limit (<code>ENOSPC</code>, <code>EMFILE</code>) on a subdirectory raises <code>OSError</code> from <code>start()</code> and <code>schedule()</code> again, as in 6.0.0, instead of silently watching part of the tree. A subdirectory created later that cannot be watched is logged as a warning. (<code>[#1454](https://github.com/gorakhargosh/watchdog/issues/1454) &lt;https://github.com/gorakhargosh/watchdog/issues/1454&gt;</code>__, thanks to <a href="https://github.com/Kernel-Hunter"><code>@Kernel-Hunter</code></a>)</li> <li>[inotify] Defer allocating an observer's inotify instance and reader thread until its first scheduled watch. Empty observers no longer consume inotify instances; resource-limit errors are raised by <code>schedule()</code> rather than construction. (<code>[#1432](https://github.com/gorakhargosh/watchdog/issues/1432) &lt;https://github.com/gorakhargosh/watchdog/issues/1432&gt;</code>__, thanks to <a href="https://github.com/kushaldave002"><code>@kushaldave002</code></a>)</li> <li>[inotify] Do not log an error when <code>InotifyEmitter.queue_events()</code> is invoked while the emitter is inactive. (<code>[#1462](https://github.com/gorakhargosh/watchdog/issues/1462) &lt;https://github.com/gorakhargosh/watchdog/issues/1462&gt;</code>__, thanks to <a href="https://github.com/prateek-dagar"><code>@prateek-dagar</code></a>)</li> <li>[inotify] Events read before a kernel queue overflow are delivered instead of discarded, ahead of the <code>EventsLostEvent</code>. (<code>[#1440](https://github.com/gorakhargosh/watchdog/issues/1440) &lt;https://github.com/gorakhargosh/watchdog/issues/1440&gt;</code>__, thanks to <a href="https://github.com/KurathSec"><code>@KurathSec</code></a> and <a href="https://github.com/fstrasz"><code>@fstrasz</code></a>)</li> <li>[inotify] Properly format the duplicate-callback <code>RuntimeWarning</code> message. (<code>[#1435](https://github.com/gorakhargosh/watchdog/issues/1435) &lt;https://github.com/gorakhargosh/watchdog/issues/1435&gt;</code>__, thanks to <a href="https://github.com/BoboTiG"><code>@BoboTiG</code></a>)</li> <li>[inotify] Refactor watch tracking from flat string path dictionaries to a hierarchical directory tree (<code>DirNode</code>), making recursive subtree moves atomic operations with cycle detection and ancestor placeholder pruning. (<code>[#1459](https://github.com/gorakhargosh/watchdog/issues/1459) &lt;https://github.com/gorakhargosh/watchdog/pull/1459&gt;</code>__, thanks to <a href="https://github.com/prateek-dagar"><code>@prateek-dagar</code></a>)</li> <li>[inotify] Report lost events: after a kernel queue overflow, each watch gets an <code>EventsLostEvent</code> for its directory or file, dispatched to the new <code>FileSystemEventHandler.on_events_lost()</code> once the watches are repaired. Pattern and regex handlers (and so tricks) receive it only through <code>on_events_lost()</code>. (<code>[#1440](https://github.com/gorakhargosh/watchdog/issues/1440) &lt;https://github.com/gorakhargosh/watchdog/issues/1440&gt;</code>__, thanks to <a href="https://github.com/fstrasz"><code>@fstrasz</code></a>)</li> <li>[inotify] Stop watching directories moved out of a watched tree and emit synthetic deletion/moved events for their subdirectories. (<code>[#354](https://github.com/gorakhargosh/watchdog/issues/354) &lt;https://github.com/gorakhargosh/watchdog/issues/354&gt;</code>__, thanks to <a href="https://github.com/prateek-dagar"><code>@prateek-dagar</code></a>)</li> <li>[kqueue] Queue each event once per kqueue wakeup. A move reported the parent <code>DirModifiedEvent</code> twice, and a write reported <code>FileModifiedEvent</code> twice. (<code>[#1442](https://github.com/gorakhargosh/watchdog/issues/1442) &lt;https://github.com/gorakhargosh/watchdog/issues/1442&gt;</code>__, thanks to <a href="https://github.com/karolyi"><code>@karolyi</code></a>)</li> <li>[kqueue] Register the kevents when the emitter is created, not on the emitter thread's first <code>kqueue.control()</code> call. Deletes, renames and attribute changes made in between were lost, every time on free-threaded Python. (<code>[#1445](https://github.com/gorakhargosh/watchdog/issues/1445) &lt;https://github.com/gorakhargosh/watchdog/pull/1445&gt;</code>__, thanks to <a href="https://github.com/karolyi"><code>@karolyi</code></a>)</li> <li>[kqueue] Stop the emitter with a <code>DirDeletedEvent</code> when the watched directory is removed or moved, instead of letting its thread die with <code>FileNotFoundError</code>. The kevents read in the same batch are still reported. (<code>[#1436](https://github.com/gorakhargosh/watchdog/issues/1436) &lt;https://github.com/gorakhargosh/watchdog/issues/1436&gt;</code>__, thanks to <a href="https://github.com/karolyi"><code>@karolyi</code></a>)</li> <li>[windows] A <code>ReadDirectoryChangesW</code> or <code>ReadDirectoryChangesExW</code> buffer overflow is now signalled instead of being silently dropped as zero events. (<code>[#1019](https://github.com/gorakhargosh/watchdog/issues/1019) &lt;https://github.com/gorakhargosh/watchdog/issues/1019&gt;</code>__, thanks to <a href="https://github.com/MohammedAlkindi"><code>@MohammedAlkindi</code></a>)</li> <li>[windows] Deliver events while the watched tree keeps changing: <code>DirectoryChangeReader.get_events()</code> now returns within its timeout instead of waiting until no buffer has arrived for a full timeout. (<code>[#1469](https://github.com/gorakhargosh/watchdog/issues/1469) &lt;https://github.com/gorakhargosh/watchdog/issues/1469&gt;</code>__, thanks to <a href="https://github.com/zzoraemon043"><code>@zzoraemon043</code></a>)</li> <li>[windows] Make the <code>DirectoryChangeReader</code> thread a daemon so an unstopped observer does not block interpreter exit. (<code>[#1470](https://github.com/gorakhargosh/watchdog/issues/1470) &lt;https://github.com/gorakhargosh/watchdog/issues/1470&gt;</code>__, thanks to <a href="https://github.com/devskad"><code>@devskad</code></a>)</li> <li>[windows] Report lost events: when the <code>ReadDirectoryChangesW</code> buffer of a watch overflows, the watch gets an <code>EventsLostEvent</code>, dispatched to <code>FileSystemEventHandler.on_events_lost()</code>, as on inotify. (<code>[#1440](https://github.com/gorakhargosh/watchdog/issues/1440) &lt;https://github.com/gorakhargosh/watchdog/issues/1440&gt;</code>__, thanks to <a href="https://github.com/fstrasz"><code>@fstrasz</code></a>)</li> <li>[windows] <code>WindowsApiObserver</code>, <code>WindowsApiEmitter</code>, and <code>DirectoryChangeReader</code> accept a <code>notify_filter</code> bitmask, the <code>dwNotifyFilter</code> passed to <code>ReadDirectoryChangesW</code> and <code>ReadDirectoryChangesExW</code>. The default is still <code>WATCHDOG_FILE_NOTIFY_FLAGS</code>, including <code>FILE_NOTIFY_CHANGE_LAST_ACCESS</code>. Mask that flag out (<code>WATCHDOG_FILE_NOTIFY_FLAGS &amp; ~FILE_NOTIFY_CHANGE_LAST_ACCESS</code>) when access-time updates are not useful. (<code>[#1447](https://github.com/gorakhargosh/watchdog/issues/1447) &lt;https://github.com/gorakhargosh/watchdog/issues/1447&gt;</code>__, thanks to <a href="https://github.com/gero-robert"><code>@gero-robert</code></a>)</li> <li>[dirsnapshot] Avoid duplicate create or delete events when a renamed file has another hard link in the watched directory. (<code>[#1425](https://github.com/gorakhargosh/watchdog/issues/1425) &lt;https://github.com/gorakhargosh/watchdog/issues/1425&gt;</code>__, thanks to <a href="https://github.com/parijat1222q"><code>@parijat1222q</code></a>)</li> <li>[dirsnapshot] Capture Linux birth times while taking a snapshot so deleted paths retain their historical identity during move detection. (<code>[#1429](https://github.com/gorakhargosh/watchdog/issues/1429) &lt;https://github.com/gorakhargosh/watchdog/issues/1429&gt;</code>__, thanks to <a href="https://github.com/FFspiky"><code>@FFspiky</code></a>)</li> <li>[dirsnapshot] Detect replacements at the same path when an inode is reused but the entry type or available birth time changes, instead of missing the replacement or reporting it as a modification. (<code>[#1464](https://github.com/gorakhargosh/watchdog/issues/1464) &lt;https://github.com/gorakhargosh/watchdog/pull/1464&gt;</code>__, thanks to <a href="https://github.com/anticipate218"><code>@anticipate218</code></a>)</li> <li>[dirsnapshot] Fix false move detection on inode recycling by verifying file type, birth time, and nanosecond stat invariants. (<code>[#992](https://github.com/gorakhargosh/watchdog/issues/992) &lt;https://github.com/gorakhargosh/watchdog/issues/992&gt;</code><strong>, <code>[#303](https://github.com/gorakhargosh/watchdog/issues/303) &lt;https://github.com/gorakhargosh/watchdog/issues/303&gt;</code></strong> Thanks to <a href="https://github.com/prateek-dagar"><code>@prateek-dagar</code></a>)</li> <li>[watchmedo] Without <code>--command</code>, <code>shell-command</code> printed every event as "<type> <object> from <src> to" with an empty destination. It now prints the destination for moved events only. (<code>[#1448](https://github.com/gorakhargosh/watchdog/issues/1448) &lt;https://github.com/gorakhargosh/watchdog/pull/1448&gt;</code>__, thanks to <a href="https://github.com/Kernel-Hunter"><code>@Kernel-Hunter</code></a>)</li> <li>[ci] Run the test suite in FreeBSD 14 (kqueue, also on free-threaded 3.13t) and FreeBSD 15 (inotify) VMs on pull requests. (<code>[#1445](https://github.com/gorakhargosh/watchdog/issues/1445) &lt;https://github.com/gorakhargosh/watchdog/pull/1445&gt;</code>__, thanks to <a href="https://github.com/karolyi"><code>@karolyi</code></a>) </code></pre></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/gorakhargosh/watchdog/commit/c012432bec2fa7c1301a1a47c4a87adac0f97bac"><code>c012432</code></a> feat: version v7.1.1 [skip ci] (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1474">#1474</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/d7cc7a373f17c94960b9d87f995139440d9d10fd"><code>d7cc7a3</code></a> [macOS] Fix compiler warnings in the C extension (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1475">#1475</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/ad972768863a6e451c066337ca9e1ceaa8663252"><code>ad97276</code></a> chore(deps): bump types-pyyaml from 6.0.12.20261103 to 6.0.12.20261113 (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/23">#23</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/746c36d7fa8e299b46ed0f31d92419d3aa88662f"><code>746c36d</code></a> chore(deps): bump ruff from 0.17.4 to 0.17.5 (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/24">#24</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/d0c1ca60bdf04f7b8138b79c1c221cb350eb8af5"><code>d0c1ca6</code></a> fix(windows): bound get_events() by its timeout while buffers keep arriving (...</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/a051ccaa71e3e0300914d5d52fd5ad9fccdcf1c9"><code>a051cca</code></a> fix(windows): make the DirectoryChangeReader thread a daemon (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1472">#1472</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/7cd20d25b0801e0b157ba11047f4270099025ced"><code>7cd20d2</code></a> feat(utils): add removed_in target version to deprecation helpers (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1473">#1473</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/19bc342fba73f067219e4403db9c7789dc4f25d0"><code>19bc342</code></a> fix(inotify): stop watching directories moved out of the tree (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1468">#1468</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/6fd883ab9bda96a5e11ab884ae3424011bcefa6e"><code>6fd883a</code></a> fix(inotify): demote inactive emitter queue_events log to debug (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1467">#1467</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/625b0360654933f09de65bbd8cb909b39fe11262"><code>625b036</code></a> fix: snapshot detection of same-path replacements (<a href="https://redirect.github.com/gorakhargosh/watchdog/issues/1464">#1464</a>)</li> <li>Additional commits viewable in <a href="https://github.com/gorakhargosh/watchdog/compare/v7.1.0...v7.1.1">compare view</a></li> </ul> </details> <br /> Updates `axe-playwright-python` from 0.1.8 to 0.1.9 <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pamelafox/axe-playwright-python/blob/main/CHANGELOG.md">axe-playwright-python's changelog</a>.</em></p> <blockquote> <h2>[0.1.9] - November 2, 2026</h2> <ul> <li>Upgraded axe-core JS version to v4.14.0. You may see the number of violations change as a result, as new axe-core versions sometimes add new rules and update existing ones.</li> <li>This axe-core upgrade fixes relative <code>@import</code> URLs in stylesheets being resolved against the page URL instead of the stylesheet URL, which caused spurious 404 requests and incomplete <code>css-orientation-lock</code> results.</li> <li>Fixed <code>generate_report()</code> raising <code>TypeError</code> when a violation targets an element inside shadow DOM (nested target selectors). Shadow DOM targets are now shown as <code>host >>> element</code>.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/pamelafox/axe-playwright-python/commits">compare view</a></li> </ul> </details> <br /> Updates `pyyaml` from 6.0.3 to 6.0.4 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/yaml/pyyaml/releases">pyyaml's releases</a>.</em></p> <blockquote> <h2>6.0.4</h2> <h2>What's Changed</h2> <ul> <li>Added support for Python 3.15.</li> <li>Dropped support for EoL Python 3.8, 3.9.</li> <li>Fixed exponential merge key expansion (<a href="https://redirect.github.com/yaml/pyyaml/issues/937">#937</a>).</li> <li>Exposed libyaml 0.2.6 recursion control API (<a href="https://redirect.github.com/yaml/pyyaml/issues/1010">#1010</a>) - no-op when missing.</li> <li>Bumped wheel builds to libyaml 0.2.6.</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/yaml/pyyaml/compare/6.0.3...6.0.4">https://github.com/yaml/pyyaml/compare/6.0.3...6.0.4</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/yaml/pyyaml/blob/6.0.4/CHANGES">pyyaml's changelog</a>.</em></p> <blockquote> <p>6.0.4 (2026-11-20)</p> <ul> <li><a href="https://redirect.github.com/yaml/pyyaml/pull/937">yaml/pyyaml#937</a> -- Fix merge key performance</li> <li><a href="https://redirect.github.com/yaml/pyyaml/pull/1010">yaml/pyyaml#1010</a> -- Expose libyaml recursion control API (no-op on libyaml < 0.2.6)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/yaml/pyyaml/commit/575f0e87bcc3b95f4df8da4aaddb0bef4e4553fc"><code>575f0e8</code></a> Release 6.0.4 (<a href="https://redirect.github.com/yaml/pyyaml/issues/1012">#1012</a>)</li> <li><a href="https://github.com/yaml/pyyaml/commit/36a9c4f95d641e49f09c8db23a24d0adedd94fea"><code>36a9c4f</code></a> Dos in merge key (<a href="https://redirect.github.com/yaml/pyyaml/issues/937">#937</a>) (<a href="https://redirect.github.com/yaml/pyyaml/issues/1011">#1011</a>)</li> <li><a href="https://github.com/yaml/pyyaml/commit/124810b9e368ed24a7c3f6245064a84d35eaf584"><code>124810b</code></a> Expose/test libyaml recursion controls (<a href="https://redirect.github.com/yaml/pyyaml/issues/1010">#1010</a>)</li> <li><a href="https://github.com/yaml/pyyaml/commit/98d4a6b35ea3055fb04a989df842b215ff09520f"><code>98d4a6b</code></a> Minimal CI refresh for 3.15 (<a href="https://redirect.github.com/yaml/pyyaml/issues/971">#971</a>)</li> <li>See full diff in <a href="https://github.com/yaml/pyyaml/compare/6.0.3...6.0.4">compare view</a></li> </ul> </details> <br /> Updates `ty` from 0.0.104 to 0.0.108 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ty/releases">ty's releases</a>.</em></p> <blockquote> <h2>0.0.108</h2> <h2>Release Notes</h2> <p>Released on 2026-11-22.</p> <h3>Breaking changes</h3> <ul> <li>Replace <code>mismatched-type-name</code> with eight rules. In configuration, CLI flags, and suppression comments, use the rule for each constructor you want to configure. (<a href="https://redirect.github.com/astral-sh/ruff/pull/29957">#29957</a>) <ul> <li><code>mismatched-newtype-name</code>, <code>mismatched-typevar-name</code>, <code>mismatched-paramspec-name</code>, <code>mismatched-typevartuple-name</code>, <code>mismatched-typeddict-name</code>, and <code>mismatched-type-alias-name</code> warn by default.</li> <li><code>mismatched-enum-name</code> and <code>mismatched-namedtuple-name</code> are disabled by default. They check names only when ty can infer a single string literal.</li> </ul> </li> </ul> <h3>Bug fixes</h3> <ul> <li>Fix a crash when a class unpacks a <code>Generic</code> base whose required type parameter follows one with a default. The <code>invalid-generic-class</code> diagnostic now points to the type parameters in the unpacked base. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30630">#30630</a>)</li> <li>Correctly check arguments forwarded through a <code>ParamSpec</code> when an unpacked tuple supplies both a wrapper's own positional parameters and arguments for the callback. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30594">#30594</a>)</li> <li>Fix false errors in nested calls that pass a lambda through an unresolved <code>ParamSpec</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30547">#30547</a>)</li> <li>Preserve the type inferred for each overload when one overload leaves a parameter unannotated and another supplies an expected type. This avoids treating the call as ambiguous and inferring an <code>Unknown</code> result. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30549">#30549</a>)</li> <li>Preserve type-variable relationships through aliases such as <code>type Id[T] = T</code>, so ty can infer a generic call's result from the callback's return type. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30590">#30590</a>)</li> <li>Fix a bug where disabling <code>invalid-generic-class</code> also silenced <code>shadowed-type-variable</code> diagnostics in nested classes. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30588">#30588</a>)</li> <li>Fix a bug where suppressing an <code>invalid-paramspec</code> error on <code>*args</code> with <code># ty: ignore</code> caused the error to reappear on <code>**kwargs</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30595">#30595</a>)</li> </ul> <h3>LSP server</h3> <ul> <li>Fix a bug in <a href="https://docs.astral.sh/ty/features/language-server/#fine-grained-incrementality">incremental updates</a> that caused ty to re-index unchanged files containing standalone calls when you edited another file. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30759">#30759</a>)</li> <li>Speed up <a href="https://docs.astral.sh/ty/features/language-server/#code-completions">member completions</a> when a partial name is typed by looking up documentation only for matching names. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30714">#30714</a>)</li> <li>Speed up <a href="https://docs.astral.sh/ty/features/language-server/#contextual-information">semantic highlighting</a> for part of a file by skipping functions, classes, and <code>from</code> imports outside the requested range. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30665">#30665</a>)</li> <li>Speed up <a href="https://docs.astral.sh/ty/features/language-server/#code-folding">folding range requests</a> for files with large single-line statements. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30696">#30696</a>)</li> <li>Speed up <a href="https://docs.astral.sh/ty/features/language-server/#contextual-information">inlay hints</a> by skipping signature lookups for calls without positional arguments or when argument-name hints are disabled. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30688">#30688</a>)</li> <li>Speed up <a href="https://docs.astral.sh/ty/features/language-server/#contextual-information">signature help</a>, which shows a function's parameters and their types as you type a call. This affects editors that request parameter label offsets, especially for ASCII signatures with UTF-16 positions. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30711">#30711</a>)</li> </ul> <h3>CLI</h3> <ul> <li>Keep warnings and debug logs above progress bars during indexing and checking, and show progress bars during verbose runs. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30527">#30527</a>)</li> <li>Generate <code>ty check --output-format gitlab</code> reports faster when the same rule produces many diagnostics in one file. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30724">#30724</a>)</li> </ul> <h3>Diagnostic improvements</h3> <ul> <li>Rename the <code>uv-metadata</code> diagnostic to <code>project-manager</code> and clarify whether uv failed to load project metadata or set up a script environment. When <code>project-manager.script = "uv"</code> is set and ty cannot run a supported version of uv, the script diagnostic points to that setting. Concise output now includes uv's error when it cannot resolve a script's dependencies. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30528">#30528</a>)</li> </ul> <h3>Core type checking</h3> <ul> <li>Recognize <code>TypeVar</code>, <code>ParamSpec</code>, <code>TypeVarTuple</code>, <code>NewType</code>, and <code>TypeAliasType</code> definitions even when their names are only known at runtime. By default, ty warns that it cannot verify the name and continues to use the defined type. (<a href="https://redirect.github.com/astral-sh/ruff/pull/29957">#29957</a>)</li> <li>Infer the same type (<code>float*</code>) for <code>-0.5</code> and <code>+0.5</code> as for <code>0.5</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30720">#30720</a>)</li> </ul> <h3>Performance improvements</h3> <h4>Calls and overloads</h4> <ul> <li>Reuse more argument type compatibility checks across calls. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30483">#30483</a>)</li> <li>Speed up repeated calls to overloaded functions when the same argument types match several overloads. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30640">#30640</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ty/blob/main/CHANGELOG.md">ty's changelog</a>.</em></p> <blockquote> <h2>0.0.108</h2> <p>Released on 2026-11-22.</p> <h3>Breaking changes</h3> <ul> <li>Replace <code>mismatched-type-name</code> with eight rules. In configuration, CLI flags, and suppression comments, use the rule for each constructor you want to configure. (<a href="https://redirect.github.com/astral-sh/ruff/pull/29957">#29957</a>) <ul> <li><code>mismatched-newtype-name</code>, <code>mismatched-typevar-name</code>, <code>mismatched-paramspec-name</code>, <code>mismatched-typevartuple-name</code>, <code>mismatched-typeddict-name</code>, and <code>mismatched-type-alias-name</code> warn by default.</li> <li><code>mismatched-enum-name</code> and <code>mismatched-namedtuple-name</code> are disabled by default. They check names only when ty can infer a single string literal.</li> </ul> </li> </ul> <h3>Bug fixes</h3> <ul> <li>Fix a crash when a class unpacks a <code>Generic</code> base whose required type parameter follows one with a default. The <code>invalid-generic-class</code> diagnostic now points to the type parameters in the unpacked base. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30630">#30630</a>)</li> <li>Correctly check arguments forwarded through a <code>ParamSpec</code> when an unpacked tuple supplies both a wrapper's own positional parameters and arguments for the callback. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30594">#30594</a>)</li> <li>Fix false errors in nested calls that pass a lambda through an unresolved <code>ParamSpec</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30547">#30547</a>)</li> <li>Preserve the type inferred for each overload when one overload leaves a parameter unannotated and another supplies an expected type. This avoids treating the call as ambiguous and inferring an <code>Unknown</code> result. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30549">#30549</a>)</li> <li>Preserve type-variable relationships through aliases such as <code>type Id[T] = T</code>, so ty can infer a generic call's result from the callback's return type. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30590">#30590</a>)</li> <li>Fix a bug where disabling <code>invalid-generic-class</code> also silenced <code>shadowed-type-variable</code> diagnostics in nested classes. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30588">#30588</a>)</li> <li>Fix a bug where suppressing an <code>invalid-paramspec</code> error on <code>*args</code> with <code># ty: ignore</code> caused the error to reappear on <code>**kwargs</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30595">#30595</a>)</li> </ul> <h3>LSP server</h3> <ul> <li>Fix a bug in <a href="https://docs.astral.sh/ty/features/language-server/#fine-grained-incrementality">incremental updates</a> that caused ty to re-index unchanged files containing standalone calls when you edited another file. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30759">#30759</a>)</li> <li>Speed up <a href="https://docs.astral.sh/ty/features/language-server/#code-completions">member completions</a> when a partial name is typed by looking up documentation only for matching names. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30714">#30714</a>)</li> <li>Speed up <a href="https://docs.astral.sh/ty/features/language-server/#contextual-information">semantic highlighting</a> for part of a file by skipping functions, classes, and <code>from</code> imports outside the requested range. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30665">#30665</a>)</li> <li>Speed up <a href="https://docs.astral.sh/ty/features/language-server/#code-folding">folding range requests</a> for files with large single-line statements. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30696">#30696</a>)</li> <li>Speed up <a href="https://docs.astral.sh/ty/features/language-server/#contextual-information">inlay hints</a> by skipping signature lookups for calls without positional arguments or when argument-name hints are disabled. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30688">#30688</a>)</li> <li>Speed up <a href="https://docs.astral.sh/ty/features/language-server/#contextual-information">signature help</a>, which shows a function's parameters and their types as you type a call. This affects editors that request parameter label offsets, especially for ASCII signatures with UTF-16 positions. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30711">#30711</a>)</li> </ul> <h3>CLI</h3> <ul> <li>Keep warnings and debug logs above progress bars during indexing and checking, and show progress bars during verbose runs. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30527">#30527</a>)</li> <li>Generate <code>ty check --output-format gitlab</code> reports faster when the same rule produces many diagnostics in one file. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30724">#30724</a>)</li> </ul> <h3>Diagnostic improvements</h3> <ul> <li>Rename the <code>uv-metadata</code> diagnostic to <code>project-manager</code> and clarify whether uv failed to load project metadata or set up a script environment. When <code>project-manager.script = "uv"</code> is set and ty cannot run a supported version of uv, the script diagnostic points to that setting. Concise output now includes uv's error when it cannot resolve a script's dependencies. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30528">#30528</a>)</li> </ul> <h3>Core type checking</h3> <ul> <li>Recognize <code>TypeVar</code>, <code>ParamSpec</code>, <code>TypeVarTuple</code>, <code>NewType</code>, and <code>TypeAliasType</code> definitions even when their names are only known at runtime. By default, ty warns that it cannot verify the name and continues to use the defined type. (<a href="https://redirect.github.com/astral-sh/ruff/pull/29957">#29957</a>)</li> <li>Infer the same type (<code>float*</code>) for <code>-0.5</code> and <code>+0.5</code> as for <code>0.5</code>. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30720">#30720</a>)</li> </ul> <h3>Performance improvements</h3> <h4>Calls and overloads</h4> <ul> <li>Reuse more argument type compatibility checks across calls. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30483">#30483</a>)</li> <li>Speed up repeated calls to overloaded functions when the same argument types match several overloads. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30640">#30640</a>)</li> <li>Check overloaded calls with <code>**</code>-unpacked mappings faster by reusing the inferred type for each keyword. (<a href="https://redirect.github.com/astral-sh/ruff/pull/30638">#30638</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/astral-sh/ty/commit/d6717a9aac3c44fe31fc35eac4196d02ae46fc7c"><code>d6717a9</code></a> Bump version to 0.0.108 (<a href="https://redirect.github.com/astral-sh/ty/issues/5083">#5083</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/8eef928f25b870a62f1341b0c4c858874dd9ec89"><code>8eef928</code></a> Rewrite changelogs when preparing ty releases (<a href="https://redirect.github.com/astral-sh/ty/issues/5078">#5078</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/85b1fd0529bb76664ae04268458ce7fb83f6e3dc"><code>85b1fd0</code></a> Bump version to 0.0.107 (<a href="https://redirect.github.com/astral-sh/ty/issues/5073">#5073</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/c2e9b0529e71493398f5ab8edcdd5f753fc53a10"><code>c2e9b05</code></a> Replace the PR template's Test Plan with optional reviewer notes (<a href="https://redirect.github.com/astral-sh/ty/issues/5068">#5068</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/4fbc381a809a150d71a6fda84cb4fcb87450a6f2"><code>4fbc381</code></a> Update PEP 723 typing FAQ to recommend project-manager.script (<a href="https://redirect.github.com/astral-sh/ty/issues/5065">#5065</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/6290d860365d0fcc3e77a8715eaf921db6cfb5ec"><code>6290d86</code></a> Update script guide to mention <code>project-manager.script</code> (<a href="https://redirect.github.com/astral-sh/ty/issues/5064">#5064</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/65a9fed5de63914a8ce4fccd44f09744f44ae7a1"><code>65a9fed</code></a> Modernize ruff configuration and scripts (<a href="https://redirect.github.com/astral-sh/ty/issues/5060">#5060</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/523fabd73500e468efeb02781245f2374e97c733"><code>523fabd</code></a> Bump version to 0.0.106 (<a href="https://redirect.github.com/astral-sh/ty/issues/5059">#5059</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/5351a20a62f86ad0b79270ae087988530b99aa9c"><code>5351a20</code></a> Auto-generate reference documentation for ty-extensions (<a href="https://redirect.github.com/astral-sh/ty/issues/5056">#5056</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/d83e035ab6fd33895ff185037fff9b5a8ed51d20"><code>d83e035</code></a> Trigger the VS Code extension release after stable ty releases (<a href="https://redirect.github.com/astral-sh/ty/issues/5028">#5028</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ty/compare/0.0.104...0.0.108">compare view</a></li> </ul> </details> <br /> Updates `ruff` from 0.17.5 to 0.17.6 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ruff/releases">ruff's releases</a>.</em></p> <blockquote> <h2>0.17.6</h2> <h2>Release Notes</h2> <p>Released on 2026-11-19.</p> <h3>Preview features</h3> <ul> <li>[<code>flake8-type-checking</code>] Add a fix for <code>runtime-string-union</code> (<code>TC010</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/15635">#15635</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Fix handling of parenthesized duplicate items (<code>B033</code>, <code>RUF068</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/30493">#30493</a>)</li> <li>[<code>pyflakes</code>] Fix false negative when a name is assigned more than once (<code>F823</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/30524">#30524</a>)</li> <li>[<code>pylint</code>] Avoid false positive when collection is modified in loop (<code>PLR1733</code>, <code>PLR1736</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/30466">#30466</a>)</li> <li>[<code>ruff</code>] Avoid syntax error in <code>useless-finally</code> fix for inline <code>try</code> bodies (<code>RUF072</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/30349">#30349</a>)</li> <li>Treat relative imports from <code>.__future__</code> as ordinary imports (<a href="https://redirect.github.com/astral-sh/ruff/pull/30260">#30260</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-simplify</code>] Avoid redundant <code>bool</code> wrappers in <code>SIM208</code> fixes (<a href="https://redirect.github.com/astral-sh/ruff/pull/30457">#30457</a>)</li> <li>[<code>pyflakes</code>] Ignore <code>__traceback_hide__</code> in <code>unused-variable</code> (<code>F841</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/29600">#29600</a>)</li> </ul> <h3>Performance</h3> <ul> <li>Decode in-memory notebooks directly from their source string (<a href="https://redirect.github.com/astral-sh/ruff/pull/30385">#30385</a>)</li> <li>Short-circuit exact qualified-name checks (<a href="https://redirect.github.com/astral-sh/ruff/pull/30058">#30058</a>)</li> <li>Stream JSON diagnostics to the output writer (<a href="https://redirect.github.com/astral-sh/ruff/pull/30384">#30384</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Fix the multiline string example in Known Deviations from Black (<a href="https://redirect.github.com/astral-sh/ruff/pull/30447">#30447</a>)</li> <li>Include the category in individual rule documentation pages (<a href="https://redirect.github.com/astral-sh/ruff/pull/30503">#30503</a>)</li> </ul> <h3>Other changes</h3> <ul> <li>Update Rust toolchain to 1.100 and MSRV to 1.98 (<a href="https://redirect.github.com/astral-sh/ruff/pull/30416">#30416</a>)</li> </ul> <h…
Adds focused replays for Comment, Threads, and Swipe beside the existing suggestion and board demos. Document-global chrome runs inside contained Leaf frames, so each replay uses production controls and transition code without changing the surrounding gallery or writing events.
The Swipe replay remains package-owned through the documented interaction-scenario contract. The Comment and Threads specimens reuse the production composer, inline-thread, panel, and shell-layout paths, while a gallery-only adapter exposes those transitions without posting gestures. Each specimen loads independently, and a contained startup failure marks only that specimen unavailable.
Standing projected state also settles without widget motion during live revision activation, so previously classified cards do not replay when replacement markup arrives.
Browser coverage checks the real widgets, outer-page isolation, restored-tab startup, reduced motion, published-site loading, Swipe projection, and in-place revision activation.