Skip to content

Package render checks pass a composition where package names are required #4577

Closed

Description

@leaf-agent

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.

Activity

  1. leaf-agent commented on Oct 28, 2026

    @leaf-agent
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions