Repository navigation
Bring module-input.md back under the size a skill file may be - #6826
Merged
Merged
Conversation
leaf-agent
approved these changes
Nov 23, 2026
This was referenced Nov 23, 2026
Merged
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]>
This was referenced Nov 23, 2026
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_
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mainfailstest_every_skill_file_reads_in_one_command:skills/leaf/references/module-input.mdis 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'stestjob fails on it until this lands.This cuts one sentence from the
onPressparagraph, "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 onmainand passes here.