Skip to content

aperture: vendored trees under any name (third_party_*, *_libs, foreign-license dirs) (Part of #5464) - #5512

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5464-vendor-any-name
Oct 18, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5464-vendor-any-name

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5457

What

VendorDirectoryDetector (aperture.py) no longer needs a candidate name before probing a directory. Mechanisms from #5464:

  • (a) third_party_* / third-party-* / 3rdparty-* prefixes are excluded by name, like third_party/ (psydoom third_party_libs/, 367k LOC of SDL2). *_libs / *-libraries / *_deps / *_extern(al) join the container rule (half of non-empty children carry a foreign license).
  • (b) ANY directory carrying a license of its own that differs from the root's is vendored (eternity libpng/, zandronum game-music-emu/ dumb/, doomretro src/yyjson/ src/miniz/). A root license is still required (no root license, no evidence).
  • Licenses compare by family (first 40 normalized chars, copyright lines dropped): fastdoom's FASTDOOM/LICENSE is the root's GPL-2 with another FSF address and must not count as foreign (found by walking the 39-port corpus).
  • Callers (aperture, guidestar_lens, chronometer) drop the is_candidate_name pre-filter (removed with _VERSIONED_DIR; versioned dirs are now just a case of (b)). Aperture probes directories only, never the file component.

Class: vendored trees by naming shape

shape status
third_party_* prefix (psydoom) fixed, test
*_libs container fixed, test
foreign-license dir, any name (libpng, game-music-emu, dumb, yyjson, miniz, bzip2, rnnoise, GeoIP) fixed, tests
first-party src/sdl/, client/sdl/, same-license subdirs stay scanned, test
(c) no-license library dirs (zlib, jpeg-6, lzma, gdtoa, nlohmann, odamex libraries/ <half licensed) not here, see Sibling gaps

Evidence

Detector walk over doom-study/repos (39 ports): psydoom -> third_party_libs; eternity -> libpng, snes_spc, acsvm; zandronum -> dumb, game-music-emu, bzip2, rnnoise, GeoIP, src/timidity, src/sfmt; doomretro -> src/yyjson, src/miniz; fastdoom -> none (after family fix). Full rescans not run.
Gates: pr_gates --fast 6/6, --ratchets 8/8, crucible_check.py (both legs) zero diff, tests/core_engine green, new tests in test_vendored_dirs_4545.py (36 pass).

Open risk

(b) also excludes non-code dirs with their own license (docs/, assets/, wadsrc_*/static, lumps/*): harmless to code metrics, but listed in the walk (edge-classic, gzdoom, srb2, freedoom, helion). A first-party subdir under a different license than the root (dual-licensed repo) is now excluded: by design per the issue.

🤖 Generated with Claude Code

…libs containers, foreign-license directories (Part of #5464)

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 18, 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 18, 2026 17:49
@squid-protocol
squid-protocol enabled auto-merge (squash) October 18, 2026 17:53
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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