Skip to content

Gate 4.3 drops hand-written source whose comments say 'generated by' (room4doom wgpu.rs, 1,947 lines) #4559

Closed

Description

@squid-protocol

Problem

Gate 4.3 (Machine-Generated Source Sensor, gitgalaxy/core/aperture.py ~L602; pattern ~L193) excludes a file when its header matches (?i)(?:<auto-generated>|\bdo not edit\b|auto-generated|automatically generated|this file is generated|generated by \S+). The generated by \S+ alternative fires on ordinary prose that mentions something being generated, so hand-written source is silently dropped.

Evidence

room4doom tools/editor/src/render/wgpu.rs (1,947 lines, hand-written) is excluded because line 28 is the doc comment:

/// `params.x` fill modes; the shader's midpoint thresholds are generated by `surface_wgsl`.

Found by the #4542/#4543 worker (PR #4550) after its fixes let the other 7 room4doom editor files through. Clone: /srv/storage_16tb/projects/gitgalaxy/doom-study/repos/room4doom.

Acceptance criteria

  • Gate 4.3 matches generator banners, not prose: anchor the patterns to a banner-style comment (e.g. a comment line that starts with "Generated by", "Code generated by … DO NOT EDIT" per Go convention, @generated, <auto-generated>), and/or require the match within the first N lines and outside sentence context.
  • Keep the existing COBOL/BMS/DCLGEN carve-outs (Aperture excludes checked-in BMS symbolic-map copybooks as machine-generated #4365) and the declared-port behaviour.
  • Tests: wgpu.rs line 28 style prose is admitted; real banners (protoc, Go // Code generated … DO NOT EDIT., @generated, <auto-generated>, "This file is generated") are still blocked.
  • Golden drift attributed.

🤖 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