Repository navigation
Withhold visual actions for malformed live part inventories - #2749
Merged
Merged
Conversation
The action planner now reads the registered inventory strictly. A malformed provider invalidates its whole visual action along with part actions until a valid update arrives; other readers may still use tolerant parts for non-control presentation. Focused startup presentation cases pass for initial, history, ready, and anchored phases.
leaf-agent
added a commit
that referenced
this pull request
Oct 13, 2026
The constrained margin scroll test prepends a 300 px scroller, then assumes its new target is visible. In [main CI run 38392091985](https://github.com/max-sixty/leaf/actions/runs/38392091985), browser scroll anchoring left the target and its correctly aligned margin row at `top: -106`; the visibility assertion failed before the test made its first inner scroll. This change brings the new target into view after rendering, then checks the same margin alignment and visibility through every scroll step. The `sticky-ancestor` case failed on current `main` before the change. After it, all three constrained-position cases passed locally (`uv run pytest -q -n0 'tests/browser/test_render_margin.py::test_observed_scroll_retains_the_seat_of_a_constrained_target'`). The run's other failures have separate repairs in #2748, #2749, #2752, and #2753. Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 13, 2026
A malformed package visual inventory now withholds that visual's comment controls without stopping the rest of the page's presentation. The strict read added in #2749 correctly prevented a whole-visual action from surviving an invalid inventory, but its exception escaped from the action planner before `page check --render` could report the inventory fault. The planner now contains that exception for the affected visual; the render gate retains its strict diagnostic. The existing render-gate test failed on `main` with `never-upgraded` and passes with this change, reporting the expected `visual-parts` findings. The four startup phases pass, as do `pnpm run test:runtime` (406 tests). The other failure in [main CI run 38399385979](https://github.com/max-sixty/leaf/actions/runs/38399385979) was the margin label test; #2755 had already repaired it, and its exact test passes on current `main`. Co-authored-by: leaf-agent <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cause
The visual action planner used a tolerant part reader. When a package registered duplicate visual part IDs, that reader returned an empty list and the planner still published the whole-visual action. A malformed presentation could therefore leave a comment control on a partial page.
Change
The planner now requests a strict reading through the existing
visualPartsselection. Its presentation owner withholds all visual actions on the resulting error, and restores them after a valid inventory update.Verification
uv run pytest -q -n 2 tests/browser/test_render_startup.py::test_failed_anchor_presentation_keeps_visual_actions_withheld(4 passed)pnpm run test:runtime(406 passed)Fixes one failure group in CI run 38359427323.