Description
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 unmodifiedmain(451619f3) as well.
The failures were mostly documentation exposure, which roughly doubled in many directory groups. Examples:
matlab/eeglab42.86 → 85.71cobol/che-che4z_nist_ccvs8549.34 → 98.68lua/pandoc25.93 → 51.85health/avg_documentation50.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 namesExpected
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
fix(core): scan results no longer depend on the checkout's absolute p…
Signal hygiene: #1090 + #4238 + #4239 (#4258)