Repository navigation
Simplify render-gate fault coverage - #678
Conversation
leaf-agent
left a comment
There was a problem hiding this comment.
The consolidation holds up where I checked it: the roles are disjoint, so
unreadSyntax's one-finding-per-role Map still attributes all four faults
independently, and the dark comment-ink-on-add-tint guard survives on
CODE_CONTROL_PAGE's default-shadow. Selected run green locally
(test_the_render_gate_rejects_invalid_visual_inventory_records,
test_the_render_gate_validates_a_registered_visual_inventory,
test_the_render_gate_reports_code_the_reader_cannot_tell_from_its_block,
test_render_reports_a_word_the_printed_page_loses,
test_render_reports_words_a_widget_puts_out_of_reach — 5 passed in 34.56s).
One control does not survive the move, and it is the kind this PR exists to
remove: flat-shadow renders identically to default-shadow, so
CODE_CONTROL_PAGE carries two copies of the same reading. Detail inline.
Summary
The invalid visual-inventory case falls from about 123 seconds to 2.15 seconds. Across the four consolidated cases, full render-gate calls fall from 17 to 5, and the batch removes 45 net lines.
Validation
Exact head
11b94db2b6d801c3b3901f142d701fe3f8b513aa:uv run pre-commit run --all-filesuv run pytest -q -n0 tests/test_render_gate.py::test_the_render_gate_reports_code_the_reader_cannot_tell_from_its_block— passedParent
700a2207a03d3ed49050abd3a350a901595f2468before removing the redundant fixture:uv run pytest tests— 1,058 passed in 92.65suv run pytest tests --run-nightly --durations=50— 2,590 passed in 1,219.07s