Repository navigation
tests/tools: shared change classifier, ground_truth_plan skips unread docs and unreached tools (Part of #6278) - #6288
Merged
Conversation
… language_status docs and unreached tools (Part of #6278) change_classifier.py maps a path to an area and, from a generated list of docs/.claude/*.md paths that tests and engine code name (docs_read_by_tests.txt, freshness-tested), says whether code the Mainframe Ground Truth job runs reads it. ground_truth_plan.is_input asks it for docs/language_status/* and tests/tools modules; every other skip stays the NON_INPUTS list. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…r (Part of #6278) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 23, 2026 19:28
squid-protocol
enabled auto-merge (squash)
October 23, 2026 19:29
This was referenced Oct 23, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slice 1 of #6278: one shared change classifier, and
ground_truth_plan.pyas its first consumer.Owner decisions
Owner OK (2026-10-23): TOP PRIORITY, ahead of the DOOM work; workflow edits approved for this issue.
What changed
tests/tools/change_classifier.py:area(path)(agent-config, test-read-doc, prose, test-tooling, tests, engine, workflow, other), a generated scan ofdocs/...,.claude/...and*.mdreferences (AST: string constants, f-string pieces,a / "b"chains, directory aliases), andread_by_ground_truth/runs_in_ground_truth, which ask whether code the Mainframe Ground Truth job runs names a path. Stdlib only.tests/tools/docs_read_by_tests.txt: the generated list (change_classifier.py --write); a freshness test fails when stale. It is.txtbecause*.jsonis gitignored.ground_truth_plan.is_input:docs/language_status/*was all input. It is now an input only when job code names the file (register*.md,oracle_assumptions.md,port_blockers.md,cobolrt_rules.json,progress.*stay inputs;zos_probes.jsonand unread files skip). Atests/tools/*.pymodule nothing the job reaches (workflow-run tools included) also skips (e.g.ladder_refresh.py). Planners stay inputs. Every other skip is the unchanged NON_INPUTS list..claudeMarkdown, the zos_probes pair, a register*.mdbeside it, an unreadable list (full), and the scanner and area cases.Why the classifier narrows only those two: its scan over-approximates, and generic readers (
docs/**patterns inpost_merge_dispatch,.claude/*intest_generated_docs) reach almost every docs path, so using it everywhere would have lost today's skips. A wrong answer here can only run a job, never skip a needed one.Class / Sibling gaps
Class: "a required workflow's plan job decides skip from hand-listed path patterns instead of from what its tests actually read".
Siblings:
det_sweep_plan.py,ci_shard_plan.py,db2_shard_plan.py,crucible_shard_plan.py,suite_shard_plan.pyeach keep their own lists (slices 2-6 of the issue). Pre-existing:ci_layout.pylazily importspost_merge_dispatch, whichground_truth_planlists as a skip (not touched). RootREADME.mdis named by fixtures intests/core_engine, so a bare name is deliberately never placed on a root or code file.Remaining slices
Slices 2-6 of #6278: move the other plan jobs onto the classifier.
Savings
Mainframe Ground Truth is ~15% of 2,646 runner-min over 29 PR branches, ~13.7 runner-min per PR on average, and far more on a branch where it runs on every push (14 jobs on one). Each PR touching only unread
docs/language_statusfiles,.claude, prose or unreached tools now plans "none" (the required check still reports and passes).Verification
94 passed (
test_change_classifier,test_ground_truth_plan,test_source_reads),audit_checkall clear,time_ratchet check0 over the limit,ruff formatclean.pr_gates --fastwas queued behind another agent's mutation run for the only heavy slot and was cancelled, so it did not run here.Checklist: partial [c:a9d05f0b] -- slice 1 only; plan jobs other than ground-truth still use their own lists
Checklist: done [c:ac144b93] -- every new skip is named by a test in
test_ground_truth_plan.pyLessons for agents
PATTERN_HOLDERS) from any "reached by" closure.heavy-run.shcan wait for hours when one slot is held by a mutation run: checkpgrep -af heavy-runfirst.tests/test_source_reads.pyrejectserrors="replace"in tools too: decode UTF-8, then Latin-1.🤖 Generated with Claude Code