Repository navigation
aperture: Lexical Monotony keeps a file with one named function (Part of #5460) - #5575
Merged
Merged
Conversation
… of #5460) Owner ruling 2026-10-19: one named function definition is enough (tables.c); Gate 5.1 now asks _has_definitions(need=1) instead of 2. A file with no definition is still dropped. Golden: types.ts (TypeScript compiler) admitted, the rest is the PageRank cascade. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 19, 2026 04:30
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 19, 2026 04:41
Contributor
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.
Part of #5460.
Change
Owner ruling (2026-10-19): a file with at least one named function definition (e.g.
tables.c) is not dropped by Lexical Monotony.aperture.pyGate 5.1 now calls_has_definitions(lines)(need=1; was need=2 from #5493). A file with no definition is still dropped.Class
Content guards that exclude whole files: hex, array, saturation (#5493), packed payload (#5547) already use definitions; monotony was the last one requiring two. All guard members are now consistent. No sibling gaps.
Tests
test_aperture_payload_guards_5460.py: one-function-around-unrolled-loop now kept; no-definition unrolled file still dropped.test_aperture.pymonotony case changed to a no-definition body (its singlefunction loop()case is now kept by design).Golden
Re-blessed via golden-lock/crucible_check (both legs). Only real move:
typescript_compiler/types.ts(10,671 LOC, hand-written) admitted; remaining diff is the PageRank cascade from that file.Gates
pr_gates --fast 6/6, --ratchets 8/8.
Cross-repo
None.
🤖 Generated with Claude Code