Skip to content

Stop gating pages on the frame trim and advising a table of contents - #1242

Merged
max-sixty merged 1 commit into
mainfrom
cut-noisy-layout-checks
Sep 26, 2026
Merged

max-sixty merged 1 commit into
mainfrom
cut-noisy-layout-checks

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

This removes the two noisiest layout readings from version check. I measured them on 29 agent-written pages:

  • Frame-trim inset (trappedMargins, splitEdges) fired on 4 pages (6 boxes). One was a real but minor lopsided card. The other five were about 14px of spacing nobody would see, and two of those failed their page outright.
  • Missing-outline advice fired on 12 of 29 pages, every dashboard among them, and was never a real problem.

What changes

  • --render no longer runs the frame-trim probes. They stay as the suite's reading of Leaf's own theme: test_page_fixture_renders now reads both on every shipped example, beside the existing panel and code-frame tests. Dropping --lf-block-frame from .callout fails the sweep on security-boundary.
  • missing_outline is removed, along with the x-outline and x-page-navigation registry keys, since nothing else read them. The lf-toc description still states the default: two or more headings take one.
  • The guidance, probe table, validation.md, theme comments and --render's success line no longer promise either check.

uv run pytest tests: 1435 passed. The two failures under load in test_interact_contract.py pass when run alone. npm run test:runtime passes.

🤖 Generated with Claude Code

This was written by Claude Code on behalf of max-sixty

On 29 agent-written pages, these two readings fired most and were right least.
The inset reading failed two pages outright over about 14px of spacing nobody
would see, and caught one minor real case in six boxes. The outline advice
fired on 12 of 29 pages, every dashboard among them, with no real problem.

- trappedMargins and splitEdges leave `version check --render`. They stay as
  the suite's reading of Leaf's own theme: the corpus sweep
  (test_page_fixture_renders) now reads both on every shipped example, beside
  the panel and code-frame tests that already held the layer.
  test_the_gate_reports_a_trapped_margin_in_the_page_and_not_in_the_layer goes,
  since the gate no longer reports either half.
- missing_outline goes, with the x-outline and x-page-navigation keys it alone
  read. The lf-toc description still states the default, and its test goes
  with it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit b88eef2 into main Sep 26, 2026
5 checks passed
@max-sixty
max-sixty deleted the cut-noisy-layout-checks branch September 26, 2026 21:59
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.

2 participants