Skip to content

Bring module-input.md back under the size a skill file may be - #6826

Merged
leaf-agent merged 1 commit into
mainfrom
fable-package-interface
Nov 23, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fable-package-interface

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

main fails test_every_skill_file_reads_in_one_command: skills/leaf/references/module-input.md is 30,004 characters, 4 over the 30,000 a skill file may be. #6777 left it 7 under and #6816 added to it; each passed its own checks, and they merged ten minutes apart. Every pull request's test job fails on it until this lands.

This cuts one sentence from the onPress paragraph, "Keep press-local work in these callbacks.", which gave a rule with no reason beside the two callbacks it names. The file is 29,962 characters.

The file has sat at the limit since #6777, so the next addition breaks it again. Max hasn't read this. Tests: tests/model/test_interact_layer.py -k reads_in_one_command, which fails on main and passes here.

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

main fails test_every_skill_file_reads_in_one_command: the file is 30,004
characters after #6777 and #6816 each added to it. This cuts one sentence of
the onPress paragraph that gave a rule without a reason; the file is 29,962.
leaf-agent added a commit that referenced this pull request Nov 23, 2026
…er the missed stage after the page's reports (#6861)

The page-code reading (`src/leaf/render_gate/page_code.py`) reported two
facts in a form that depended on timing. On macOS runners both came out
wrong often enough to fail
`test_plain_check_reports_page_request_failures_but_ignores_optional_assets`,
the recovered-frame failure in #6767:

- **A failed request's frame kept the bootstrap's marks.** A failure can
reach the checker before the bootstrap's address rewrite does. When it
did, the image 404 named its frame
`…/v1.html?t=test-page-key&_leaf-recovered`, with the host key the
bootstrap strips from the address bar, and the render check's reading
disagreed with `run_page_code`'s. Each failure still takes its frame's
address when it arrives, as it did before, and `frame_address` now
removes the marks `bootstrap.js` removes and spells the query left as
the bootstrap's `URLSearchParams` does, so a marked and a rewritten
address read the same. Those marks are `ADDRESS_MARKS` in
`render_checks.py`, and a test holds them to the bootstrap's list. Model
tests cover a marked address, its rewritten spelling, and a navigation
between two failures.
- **The missed stage could come before the runtime's report.**
`findings` appended `not-ready` before waiting for the runtime's report,
and the report can reach the console during that wait, so the report
sometimes followed the stage. The stage now joins the reports after the
wait, which is the order the findings' docstring states. A wait that
raises still leaves the stage in `reports` for `run_page_code`'s error
path.

Verified with `ci` dispatches of 54 copies of the test on the
`test-macos` runner:

- Current `main` failed 8 of 54, every one on the recovered frame ([run
45127377819](https://github.com/max-sixty/leaf/actions/runs/45127377819)).
- With only the frame change, 2 of 54 failed, both on the stage order
([run
45127381246](https://github.com/max-sixty/leaf/actions/runs/45127381246)).
- This head passed 54 of 54 ([run
45151463262](https://github.com/max-sixty/leaf/actions/runs/45151463262)).

The PR's `test` job fails only
`test_every_skill_file_reads_in_one_command`, on
`skills/leaf/references/module-input.md` at 30002 bytes; this diff
doesn't touch that file, `main`'s own push run fails the same way ([run
45133210016](https://github.com/max-sixty/leaf/actions/runs/45133210016)),
and #6826 fixes it. Locally, the test, its Firefox sibling,
`tests/model/test_render_gate.py`, and the other `run_page_code` and
render-check page-code consumers pass.

#6767 also tracks a Firefox wheel defect in `keepFoot` and the
smooth-revision-above Firefox case, which this leaves open.

Refs #6767 — automated triage

---------

Co-authored-by: leaf-agent <[email protected]>
Co-authored-by: Claude <[email protected]>
@leaf-agent
leaf-agent merged commit a72a730 into main Nov 23, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fable-package-interface branch November 23, 2026 12:48
max-sixty added a commit that referenced this pull request Nov 23, 2026
…two full module references have room (#6895)

`module-input.md` was 40 characters under the 30,000 a skill file may be
and `module-authoring.md` 312 under, so the next sentence added to
either fails `test_every_skill_file_reads_in_one_command`, as #6816 did
on main (#6826). This moves "Previews" to `module-previews.md` and
"Generated controls" to `module-controls.md`, each word for word, and
points every reference to either section at its new file, code comments
included. `module-input.md` is now 22,941 characters and
`module-authoring.md` 24,907. `SKILL.md` and `module-authoring.md`'s
list route to the two new files.

What the diff doesn't show:

- **Scores**, main against this branch, Claude Code, 4 runs each:
`widget-interface-serves-the-task` 4 of 4 each, and all 4 branch runs
opened `module-controls.md`; `widget-list-keeps-focus` 4 of 4 each. No
case covers previews.
- **The limit is on a command's whole output**, so `wc -l … && cat
module-input.md` was already over it on main. In
`widget-owned-context-keys`, all 4 branch runs read the file with that
one command; on main one run tried it, and all 4 read the file with a
second call.
- **One eval case changes.** `widget-owned-context-keys` failed 4 of 4
on both arms: its prompt's "also works standalone" predates the section
on a widget that runs off Leaf, and all 8 answers read it as that, for
which the reference asks the opposite of the rubric. The prompt now says
the classifier is also used with no thread or margin representative, and
3 of 4 pass.

max-sixty chose to merge this from the session's Leaf page, which
carries this account; it follows from a hazard listed there. Tests:
`tests/model/test_interact_layer.py`, `test_product_page.py`,
`test_theme_tokens.py` and `tests/runtime/widget-api.test.mjs`.

> _This was written by Claude Code on behalf of max-sixty_
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