You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Package render checks pass a composition where package names are required #4577
Package render checks currently fail before exercising widgets: start_throwaway_page passes a LayerComposition to _record, whose selected argument is iterated as package names. The result is TypeError: 'LayerComposition' object is not iterable at src/leaf/vendoring.py:401, reached from src/leaf/render_gate/widget_quality.py:225.
Both parameters of tests/browser/test_public_api.py::test_package_render_checks_every_exercised_output_before_withdrawal fail this way on unchanged main at 69ece092d. Reproduction: uv run pytest tests/browser/test_public_api.py::test_package_render_checks_every_exercised_output_before_withdrawal -q -n0 (2 failed). This was also confirmed with the unmodified render_checks.py restored, while investigating #4231; it occurs before browser output observation and is a separate repair.
Preserve package selection and composition ownership when correcting the caller/API mismatch, then verify both valid and invalid output-contract cases reach their assertions.
Fixed by #4608: throwaway render pages now select the package through the normal page initialization path, rather than passing a composed layer as package names.
Verified on main at c64d09ab235771cce5975ef2a358cbac71fa71a7: uv run pytest tests/browser/test_public_api.py::test_package_render_checks_every_exercised_output_before_withdrawal -q -n0 passed both cases (2 passed). The valid output produces no errors, and the invalid output reaches its invalid-output contract assertions. Closing as resolved.
Activity
fix: cancel output observation when its page closes (#4578)
leaf-agent commentedon Oct 28, 2026
Fixed by #4608: throwaway render pages now select the package through the normal page initialization path, rather than passing a composed layer as package names.
Verified on main at
c64d09ab235771cce5975ef2a358cbac71fa71a7:uv run pytest tests/browser/test_public_api.py::test_package_render_checks_every_exercised_output_before_withdrawal -q -n0passed both cases (2 passed). The valid output produces no errors, and the invalid output reaches itsinvalid-outputcontract assertions. Closing as resolved.