Skip to content

aperture: Lexical Monotony keeps a file with one named function (Part of #5460) - #5575

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5460-20261019T0406Z
Oct 19, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5460-20261019T0406Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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.py Gate 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.py monotony case changed to a no-definition body (its single function 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

… 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]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 19, 2026 04:30
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 04:41
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 558dd82 into main Oct 19, 2026
78 checks passed
@squid-protocol
squid-protocol deleted the churn/5460-20261019T0406Z branch October 19, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant