Skip to content

aperture: well-known library directory names are vendored (Part of #5464) - #5550

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5464-20261018T2328Z
Oct 19, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5464-20261018T2328Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5464 (follows #5512, which landed mechanisms (a) and (b)). Part of #5457.

What

Mechanism (c): a directory named after a well-known third-party library with no license file of its own is vendored. Decision (acceptance item): a known-library name list (KNOWN_LIBRARY_NAMES in aperture.py), not an upstream-header fingerprint: the list is reviewable and cheap, a fingerprint needs a per-library corpus. A trailing version is dropped (jpeg-6, zlib-1.2.11); the name must match exactly (zlib_wrapper, zlibs stay scanned); a directory carrying the root's own license is the project's own copy and stays scanned. _has_root_license / _root_license_set split out of _has_foreign_license.

Class: vendored trees by naming shape

shape status
(a) third_party_*, *_libs done in #5512
(b) foreign-license dir, any name done in #5512
(c) known library name, no license (zlib, jpeg-6, lzma, gdtoa, nlohmann, miniz, ...) this PR, tests
first-party sdl/ backends stay scanned (unchanged)
(c) unlisted library names / bundled single files Sibling gaps: unlisted names stay scanned until added to the list

Evidence

Detector walk over doom-study/repos (no full rescans): psydoom -> third_party_libs; eternity -> zlib, libpng, source/nlohmann, snes_spc, acsvm; zandronum -> zlib, lzma, gdtoa, jpeg-6b, dumb, game-music-emu, ...; vizdoom -> src/vizdoom/{zlib,lzma,gdtoa,jpeg-6b,bzip2}; doom3-bfg -> jpeg-6, zlib; odamex -> libraries/{zlib,jsoncpp,libpng,fmt}; doomsday -> external/zlib, nlohmann. First-party src/sdl not listed.
Gates: pr_gates --fast 6/6 (after dropping fmt: skip, RUF028), --ratchets 8/8 (golden unchanged), tests/core_engine + tree-wide guards green, test_vendored_dirs_4545.py 44 pass.

Lessons for agents

  • A # fmt: skip on a closing brace of a multi-line set literal trips ruff RUF028 in the baseline-gated lint; let ruff format lay it out.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 18, 2026 19:42
)

Mechanism (c): zlib, jpeg-6, lzma, gdtoa, nlohmann, ... with no license file of their own.
A name list (version suffix dropped); a dir carrying the root's own license stays scanned.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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 00:13
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 00:21
@squid-protocol
squid-protocol merged commit f60dfb0 into main Oct 19, 2026
74 checks passed
@squid-protocol
squid-protocol deleted the churn/5464-20261018T2328Z branch October 19, 2026 00:32
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