Skip to content

Scan log noise on C/C++ repos: .clang-format claimed as yaml then refuted; 'Unregistered rule hardcoded_secrets in yaml' warning #5467

Closed

Description

@squid-protocol

Problem

Two warnings appear on clean scans of most C/C++ DOOM ports and make a clean log impossible:

  1. CLASSIFICATION REFUTATION: '.clang-format' was claimed as 'yaml' via Metadata Anchor (.clang-format) (Tier 1), but its Intent Density is an outlier (Zero-Density Threshold (LOC: 147, Signals: 0)). Rejected. — 7 ports (chocolate, crispy, woof, nugget, eternity, zandronum, vizdoom...). The anchor is right (.clang-format is YAML); the refutation then fires because config YAML carries no logic signals. Anchor: gitgalaxy/standards/language_lens.py:~460; refutation: gitgalaxy/metrics/statistical_auditor.py:490-492. Also seen: Sibling Anchor (.c) refutations on data-only .h (4) and Sibling Anchor (C++) (1).
  2. [DIAGNOSTIC] Unregistered rule 'hardcoded_secrets' found in 'yaml'. Ignoring to preserve schema. repeated per YAML file (gitgalaxy/core/detector.py:3897): a rule present in the yaml definition but not in the schema.

Acceptance

  • Tier-0/1 anchored config formats (yaml/json/toml/ini) are exempt from the Zero-Density refutation (or the refutation keeps the language and only marks low intent); refutation lines for anchored files are gone.
  • The yaml hardcoded_secrets rule is registered in the schema or removed from the yaml definition; the warning no longer appears.
  • A clean scan of chocolate-doom logs no WARNING lines other than the documented engine-wide ones.

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

    @squid-protocol
    OwnerAuthor

    Closing: no port in the 39-port corpus fails the log-health check at engine 0e2bf4ade (round 5, #5457); .clang-format refutation and the yaml rule warning are gone. Any new log problem will be caught by the DOOM crucible gate.

    🤖 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

    bugcore-engineneeds:doom-corpuspriority: lowscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions