Skip to content

Vendored code still scanned as first-party when its directory is not a candidate name (psydoom: 367k LOC of SDL2 under third_party_libs/) #5464

Closed

Description

@squid-protocol

Problem

VendorDirectoryDetector (gitgalaxy/core/aperture.py:75-140, #4545) only probes candidate names (libs, libraries, deps, extern(al), versioned dirs, .framework) plus the fixed IGNORED_DIRECTORIES spellings (gitgalaxy/standards/gitgalaxy_config.py:~196). Third-party trees under any other name are scanned as the port's own code and feed size, complexity, risk and SARIF (most of the require( false errors are in these trees).

Class: vendored trees by naming shape (largest in the corpus)

port directory files / coding LOC own license file status
psydoom third_party_libs/libsdl/sdl2 (whole third_party_libs/) 1,133 / 367,279 LICENSE.txt scanned
eternity libpng, zlib 228 / 71,217; 45 / 10,012 LICENSE / — scanned
zandronum, vizdoom game-music-emu, dumb, lzma, gdtoa, zlib ~100 each license.txt / licence.txt / — scanned
doomsday doomsday/external 121 / 48,728 per-subdir scanned (candidate name, <half children licensed)
odamex libraries 102 / 21,132 per-subdir scanned (same)
doom3-bfg neo/renderer/jpeg-6, neo/framework/zlib 62 / 14,262; 33 / 8,263 — scanned
doomretro, inter-doom src/yyjson, src/miniz, lib/miniz 2-3 files, 7-13k LOC LICENSE scanned
eternity source/nlohmann (1 file, 17,980 LOC) — scanned
srb2 src/sdl, odamex client/sdl first-party SDL backends — — correctly scanned (must stay)

Three mechanisms: (a) third_party_* / *_libs spellings; (b) a directory named after a well-known library that carries its own foreign license (libpng, game-music-emu, dumb, yyjson, miniz); (c) well-known library dirs with no license file (zlib, jpeg-6, lzma, gdtoa, nlohmann).

Acceptance

  • (a) and (b) in this issue: prefix/suffix spellings of third-party containers are excluded; any directory carrying a license file that differs from the root's is a candidate (not only candidate names), with the existing half-of-children rule for containers.
  • (c) gets a decision recorded in the issue (known-library name list, or upstream-header fingerprint), implemented or filed as a sibling.
  • First-party sdl/ backends stay scanned. Fixtures for each shape; rescan psydoom/eternity/zandronum.

Part of #5457 (milestone DOOM Port Speedrun).

Evidence: /srv/storage_16tb/projects/gitgalaxy/doom-study/ — round2_findings.md, clean_check.csv, clean_check_details.json; scans in scans_r2/<port>/ at engine 585c243e9; corpus variants_r2.csv (39 ports, pinned SHAs); scorer scripts/clean_check.py.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    data-integrity
    core-engine
    needs:doom-corpus
    scope:core
    on Oct 18, 2026
  2. squid-protocol commented on Oct 18, 2026

    @squid-protocol
    OwnerAuthor

    PR #5512 merged: mechanisms (a) and (b) are done, with fixtures. Leaving this open because two acceptance items remain: (c) no-license library dirs (zlib, jpeg-6, lzma, gdtoa, nlohmann) still need a decision recorded here (known-library name list or upstream-header fingerprint), and the psydoom/eternity/zandronum rescans have not been run.

  3. added a commit that references this issue on Oct 19, 2026
  4. squid-protocol commented on Oct 19, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host nyx, lease renewed 2026-10-19T02:03Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:nyx label.

  5. squid-protocol commented on Oct 19, 2026

    @squid-protocol
    OwnerAuthor

    Closing: all three mechanisms landed (#5512 a+b, #5550 c) and the psydoom/eternity/zandronum rescans are recorded (#5553). Remaining known gap: single vendored headers (eternity concurrentqueue.h) need a header-fingerprint rule; eternity is not a burned estate, so this is frontier and not filed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclaim:nyxcore-enginedata-integrityneeds:doom-corpuspriority: mediumscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions