Skip to content

Withhold visual actions for malformed live part inventories - #2749

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-38359427323-visual-actions
Oct 13, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-38359427323-visual-actions

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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 visualParts selection. 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.

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
leaf-agent merged commit faa7f52 into main Oct 13, 2026
2 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38359427323-visual-actions branch October 13, 2026 12:15
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant