Skip to content

change_classifier: known doc names from tracked files (Part of #6302) - #6306

Merged
squid-protocol merged 1 commit into
mainfrom
churn/6302-20261024T0015Z
Oct 24, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/6302-20261024T0015Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Part of #6302 (main red: Full Suite Gate, test_the_committed_list_is_fresh, ubuntu + macOS, run 40037955445 on af15bc7).

Cause: change_classifier._known_names globbed docs/ and .claude/ on disk. An earlier test in the CI job materialises the git-ignored docs/language_status/evidence_report/*/report.json, so report.json became a known basename and the render gained an est/report.json ref the committed list lacks. A hermeticity bug, not a flake.

Fix: _known_names reads git ls-files (tracked only), falling back to the disk glob without git. The committed docs_read_by_tests.txt needed no change. New test builds a temp git repo with an ignored and a tracked doc.

Class / Sibling gaps

Class: a generated-list scanner (or its freshness test) whose output depends on untracked or git-ignored files present on disk, so the result differs between a clean checkout and a CI job that already ran other tests.

Member Status Evidence
change_classifier._known_names (tests/tools/change_classifier.py) fixed here, with a test the only member that decides what goes into docs_read_by_tests.txt
other tests/tools generated-list builders that glob docs/ or .claude/ on disk none found grep rglob tests/tools/*.py for docs/_ROOTS hits only _known_names
scan() walks tests/, gitgalaxy/ and root *.py on disk handled .py sources are tracked; a stray file there would be a different bug, not this mechanism

Sibling gaps: none; every member found is handled.

Facts checked: list fresh at HEAD; freshness test passes with an ignored est/report.json present; audit_check.py all clear.

Cross-repo: none.

Lessons for agents

A generated-list freshness test must not depend on ignored or materialised files on disk: scan tracked files (git ls-files).

🤖 Generated with Claude Code

…an earlier test left on disk (Part of #6302)

test_the_committed_list_is_fresh failed in the Full Suite Gate because the git-ignored evidence report's
report.json, materialised by an earlier test in the job, became a known basename and added a ref to the render.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 24, 2026 00:32
@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 00:34
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit c4650e1 into main Oct 24, 2026
51 checks passed
@squid-protocol
squid-protocol deleted the churn/6302-20261024T0015Z branch October 24, 2026 00:42
squid-protocol added a commit that referenced this pull request Oct 24, 2026
…om git, not the disk (Part of #6302) (#6311)

Sibling of #6306: the .py collection globbed the working tree, so an ignored or scratch file an earlier test left
behind could change the committed docs_read_by_tests.txt the same way report.json did. One _repo_files/_py_files
helper now serves _known_names, scan and ground_truth_scopes (git's tracked + new-not-ignored view, disk without git).

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant