Repository navigation
tree-sitter accuracy audit + history: plan job selects languages by diff (Part of #6501) - #6510
Conversation
…ol/baseline; toolchains install only for them (Part of #6501) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…iff can move them (Part of #6501) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…iff (Part of #6501) Extends accuracy_audit_plan.py with the tree-sitter and tree-sitter-history audits and a `langs` output (all, or a comma list). Both workflows gain a stdlib-only plan job; the heavy job keeps its check name and runs if: always(), so a failed plan over-runs, never under-runs. The history plan diffs against the last successful push run, not github.event.before. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
PR #6510 @ 5b6aa3c: 1 failed check(s) == full-suite part 2/3 (failure) -- real |
|
No description provided. |
|
No description provided. |
Part of #6501 (slice 3). Slices 1-2 landed in #6503.
What
accuracy_audit_plan.pygains thetree-sitterandtree-sitter-historyaudits and alangsoutput (all, or a comma list). Both workflows get a stdlib-onlyplanjob; the heavy job keeps its check name and runsif: always(), every step gated onneeds.plan.outputs.run != 'false'. A failed plan runs everything (over-run, never under-run).--lang X --ciper selected language, or--all --ci.headSha(notgithub.event.before, which is wrong when pending runs in the concurrency group are replaced). Plan job iscontents: read+actions: read.tree_sitter_accuracy_baseline_<lang>.jsonchange selects that language; alanguages/<lang>.pydiff is judged bylocate()(comments/_metainert; underscore rules NOT inert, the audit reads_dependency_capture); a lens-read key change selects all languages.Class / Sibling gaps
Class: accuracy-audit workflows that run on every PR/push regardless of what changed. Done: graph, call-graph, detection (#6503), tree-sitter audit and history (this PR). Sibling gaps (remaining slices): tri-comparison and graph-comparison-history workflows.
Runner minutes / replay
--replay 50: the number of runs is unchanged (tree-sitter 6 -> 6, since most diffs touch shared inputs), but language corpora scanned drop about 16%: 180 -> 151 (audit), 150 -> 121 (history). The gate is worth its load: the plan job is a few seconds of stdlib Python, and the corpus scans it avoids are the expensive part.Risk
A rule change in one language file can in principle reclassify another language's ambiguous files; the planner does not chase that beyond lens-read keys. Not exercised on CI here.
Evidence
test_accuracy_audit_plan.py149 tests (about 20 new);pr_gates --fast7/7;audit_check.pyclear; tree-wide guards pass;tests/tools/2637 passed, 2 failed (test_db2_wait_bound,test_pin_requirements_check_all: neither touches files in this PR; not checked against main). No engine change, so no golden bless.Lessons for agents
permissionsreplaces the top-level block:gh run listneedsactions: readexplicitly.🤖 Generated with Claude Code