Skip to content

Scan results depend on the scanned checkout's absolute path #4058

Closed

Description

@squid-protocol

What we found

Scanning the same language-crucible v1.6.0 tree with the same engine commit gives different results depending on the directory the corpus is checked out under.

  • With the corpus at /srv/storage_16tb/projects/crucible-preview/language-crucible, both golden-master modes pass.
  • With the identical tree at /home/joe/.claude/jobs/<id>/tmp/corpus/language-crucible, both modes fail. This was reproduced on unmodified main (451619f3) as well.

The failures were mostly documentation exposure, which roughly doubled in many directory groups. Examples:

  • matlab/eeglab 42.86 → 85.71
  • cobol/che-che4z_nist_ccvs85 49.34 → 98.68
  • lua/pandoc 25.93 → 51.85
  • health/avg_documentation 50.734 → 56.826

systemic_bottlenecks/undocumented_critical_path changed as well.

Why nothing caught it

CI and the documented pin-bump procedure always check the corpus out as a sibling named language-crucible under an ordinary path. Nothing scans the same tree from two different parent directories, so a dependency on the absolute path never shows up.

Suspected mechanism (unconfirmed)

APERTURE_CONFIG's directory denylist (gitgalaxy/standards/gitgalaxy_config.py, around line 247) includes tmp, temp, docs, legal, site and logs. If any classification compares those names against components of the absolute path rather than the path relative to the scan root, any parent directory named tmp (or docs, legal, ...) would change how files are classified. The bad path above has a tmp component; the good one does not.

Repro

git clone --branch v1.6.0 https://github.com/squid-protocol/language-crucible.git /tmp/x/language-crucible
LANGUAGE_CRUCIBLE_PATH=/tmp/x/language-crucible LANGUAGE_CRUCIBLE_ALLOW_UNPINNED=1 \
  python -m pytest -m golden_crucible tests/test_golden_crucible.py
# compare with a checkout under a parent path containing no denylisted names

Expected

Results depend only on paths relative to the scan root, so the same tree gives byte-identical output from any location. A regression test should scan one fixture tree from two parent directories, one of them containing a denylisted name, and assert identical output.

Activity

  1. added
    bug
    core-engine
    data-integrity
    priority: high
    on Oct 3, 2026
  2. added a commit that references this issue on Oct 3, 2026
  3. added
    scope:core
    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:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions