Skip to content

Aperture Gate 3.2: Monolithic Amalgamation drops whole single-file engines (gore doom.go 860 fns, PureDOOM.h 767 fns) #5459

Closed

Description

@squid-protocol

Problem

Gate 3.2 (gitgalaxy/core/aperture.py:674-684) blocks any file over 30,000 LOC as an amalgamation "exceeding safe regex boundaries". Two DOOM ports are a single file each, so the port vanishes:

  • gore/doom.go (43,874 lines, 860 functions per ctags) — the entire Go port; GitGalaxy reports 86 functions for the repo.
  • puredoom/PureDOOM.h (48,604 lines, 767 functions) — the entire engine as a single-header library.
    Large single-file sources are a real class (sqlite3.c, stb/miniaudio/dr_libs single headers, generated-once-then-maintained ports).

Class: files over the size limit

member status evidence
hand-written single-file program (doom.go) dropped gore
single-header library (PureDOOM.h, stb-style) dropped puredoom
true amalgamation of vendored lib (sqlite3.c) dropped (arguably right when vendored; vendoring is #4545's job) —

Acceptance

  • Files over the limit are scanned (chunked/streamed extraction or extractor-level timeouts) instead of dropped, or dropped only when separately identified as vendored/generated; the backtracking risk is bounded by a measured budget, not a LOC cut.
  • Fixture: a >30k-line synthetic C and Go file with known function count is extracted completely within a time budget.
  • Rescan gore and puredoom: function counts within 3% of ctags.

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
    core-engine
    priority: high
    needs:doom-corpus
    scope:core
    on Oct 18, 2026
  2. squid-protocol commented on Oct 19, 2026

    @squid-protocol
    OwnerAuthor

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

  3. squid-protocol commented on Oct 19, 2026

    @squid-protocol
    OwnerAuthor

    Closing: done. PR #5481 merged; gore doom.go (now 1,025 functions) and PureDOOM are scanned at engine 0e2bf4ade. Gore's +8.4% vs ctags is a ctags miss: tree-sitter agrees exactly (0.0%), and the scorer now passes on either oracle (#5617). Golden crucible is green on current PRs. The DOOM work is being re-aimed at engine value (see #5457).

    🤖 Generated with Claude Code

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-engineneeds:doom-corpuspriority: highscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions