Skip to content

change_classifier: .py scan and ground-truth scopes read git's file list, not the disk (Part of #6302) - #6311

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

The only real failure in main's Full Suite Gate run 40037955445 (test_the_committed_list_is_fresh, ubuntu/macOS 3.11 part 2) was fixed by #6306 for _known_names. This PR sweeps the same-mechanism siblings: scan() and ground_truth_scopes() globbed .py files from the working tree. A shared _repo_files/_py_files helper now uses git ls-files --cached --others --exclude-standard (disk fallback without git), so an ignored or scratch file can't change the committed docs_read_by_tests.txt or the ground-truth plan.

Tests

  • New: git-view test (ignored scratch excluded, new unignored file included, root vs recursive) and a no-git fallback test.
  • tests/tools -k "classifier or ground_truth_plan or critical_path": 115 passed; audit_check.py: all clear; committed list unchanged.

Part of #6302 (not Closes): it closes when Full Suite Gate next succeeds on main; no run has happened since #6306 merged, so it needs a workflow_dispatch.

Lessons for agents

Any test/generator that renders a committed artifact from the tree must list files via git, not glob: earlier tests in the same job leave ignored files behind.

🤖 Generated with Claude Code

…om git, not the disk (Part of #6302)

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]>
@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 01:27
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 01:27
@squid-protocol
squid-protocol merged commit eb4c895 into main Oct 24, 2026
51 checks passed
@squid-protocol
squid-protocol deleted the churn/6302-20261024T0121Z branch October 24, 2026 01:36
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