Skip to content

aperture: ignore a title line above the same license text (Fixes #5525) - #5590

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

squid-protocol merged 1 commit into
mainfrom
churn/5525-20261019T0855Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #5525 (regression from #5512 / Part of #5464).

Change

_license_family() kept a fixed 40-char prefix, so a module LICENSE with a title line above the root's text (gson's gson/LICENSE, Google Gson + Apache-2.0) looked foreign and gson/ was marked vendored. Families now keep a 240-char window; new _same_license() matches when the 40-char head of one occurs in the other (symmetric, so a titled root works too; empty matches only empty). Used by _has_foreign_license and _has_root_license.

Class table

member status
titled module copy under bare root fixed, tested (4 title styles x Apache/GPL/MIT)
titled root, bare module copy fixed, tested
copyright/address variation plus title tested
container rule (libs/ of titled modules) fixed, tested
known-library-name rule (_has_root_license) fixed, tested
genuinely different titled license, licenses/ dir, empty LICENSE still foreign, tested

Gates

  • test_vendored_dirs_4545.py: 65 passed; pr_gates --fast 6/6; --ratchets 8/8
  • call_graph_resolution.py java --ci: OK, back to 99.8% precision / 64.9% recall / 66.5% resolution recall
  • crucible_check.py (both legs): PASS, no golden diff

Lessons for agents

  • A bare cat > file before a heredoc-less command hangs the shell; write files with the Edit/Write tools.

🤖 Generated with Claude Code

…a dir vendored (Fixes #5525)

The license-family compare kept a fixed 40-char prefix, so gson/LICENSE ("Google Gson" + the root's
Apache-2.0) differed from the root and gson/ was dropped as vendored. Families now keep a 240-char window
and match when the head of one occurs in the other (both directions; empty matches only empty).

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 09:09
@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 09:16
@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 6af200e into main Oct 19, 2026
78 checks passed
@squid-protocol
squid-protocol deleted the churn/5525-20261019T0855Z branch October 19, 2026 09:30
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.

aperture: a module LICENSE with a title line above the root's license marks a first-party dir vendored (gson/, Java call-resolution recall 64.9 -> 2.7)

1 participant