Skip to content

One >500-char line in the first 100 lines blocks the whole file, even when it is a comment (room4doom ~8.5k lines, crispy p_map.c) #4543

Closed

Description

@squid-protocol

Problem

A single line over 500 characters within the first 100 lines blocks the whole file as "Saturation", even when that line is a comment. Real source silently drops out of the scan.

Evidence

  • room4doom: 8 files (~8,500 lines) blocked because line 1 is a 600–800 char //! doc comment (tools/editor-core/src/project.rs 907 lines, tools/editor/src/render/wgpu.rs 1,947, tools/geom-kernel/src/sector_build.rs 1,477, ...).
  • crispy-doom src/hexen/p_map.c (real game code) is blocked because line 43 is a 684-char comment.
    The gate is gitgalaxy/core/aperture.py ~L494-510; only .md/.txt/.json/... count as prose.

Acceptance criteria

  • Comment lines (per language comment syntax) don't count toward the minified/saturation gate; the gate still catches minified code and data payloads.
  • The listed files are scanned; tests cover a long comment line in C/C++ and Rust, plus a genuinely minified file that stays blocked.
  • Golden masters / ledgers updated with attributed drift.

Evidence: /srv/storage_16tb/projects/gitgalaxy/doom-study/ (gitgalaxy_issues.md; scans at engine a8510fc). Found by the Doom source-port study (2026-10-06): https://claude.ai/code/artifact/bc877518-b326-4889-9d15-d99287f4f3fc

🤖 Generated with Claude Code

Activity

  1. added
    bug
    data-integrity
    core-engine
    priority: high
    on Oct 6, 2026
  2. added
    scope:frontier
    on Oct 16, 2026
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

    bugcore-enginedata-integritypriority: highscope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions