Skip to content

graph-accuracy-audit: plan job selects gates by changed language/tool/baseline (Part of #6501) - #6503

Merged
squid-protocol merged 2 commits into
mainfrom
churn/6501-20261024T1647Z
Oct 24, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/6501-20261024T1647Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #6501 (slice 1 of the language-audit plan-job family; CI cost, #6278).

What

graph-accuracy-audit.yml gets a stdlib plan job (tests/tools/graph_accuracy_plan.py, uses change_classifier.area() for the "no gate" reason) that maps changed files to gates:

changed gates
language_standards/languages/<lang>.py that language's call gate (if any) + import-graph (if in import_graph_corpus.json) + span anchoring
a gate's tool/baseline/adapter that gate; scip_callgraph.py -> java, rust; clang_callgraph.py -> c, cpp; ts_callgraph.js -> typescript, javascript; go_callgraph/ -> go
core (detector, prism, call_resolver, network_risk_sensor), the workflow, the planner, crucible pins, the corpus list, any other language_standards file all gates
anything else none (check still reports success)

The job graph-accuracy-audit keeps its name, needs: plan with always(), so a failed plan resolves to every gate. Node/TS, JDK + scip-java cache, rustup + cargo cache, Go, the import-graph corpus fetch and the language-crucible clone each run only when a selected gate needs them; the lanes skip unselected gates (want). One runner, parallel lanes (#5501) kept. Haskell/Dart/Swift/PowerShell-only changes install no JDK, Rust, Go or Node.

Class / Sibling gaps

Class: a broad-paths: per-language audit workflow with no plan job, so every toolchain installs and every gate runs. Covered here: graph-accuracy-audit.yml. Sibling gaps (same plan shape, one PR each or one for the family; none needs a burned-estate program): call-graph-accuracy-audit.yml; tree-sitter-accuracy-audit.yml + -history.yml; tri-comparison-audit.yml + -history.yml; graph-comparison-history.yml; detection-accuracy-audit.yml. Not done: the rustup toolchain cache (not shown to be the slowest install; unmeasured).

Replay of the last 50 merged PRs (graph_accuracy_plan.py --replay 50)

  • Runs started: 16/50 (32%) before and after (the paths: filter is unchanged; the plan only narrows what a started run does). Merged PRs that edited this workflow (at least four of the 16) rightly plan all 10 gates.
  • Gates run across those 16 runs: 134 of 160 (-16%); 3 PRs ran 1-3 gates, 12 ran all 10. Most remaining "all" runs are workflow/shared-core edits; the language-only PRs in the sample (dart.py + shared patterns) still plan 10 because _shared_patterns.py is shared.
  • Runner-min per run, before/after: not measured yet (no CI run of this change). Estimate from the issue's measurement (median 8.7 min): a Haskell-only change drops four toolchain installs and eight gates, leaving import-graph + span anchoring (span is ~5 min over two shards), so about 5-6 min vs 8.7, no installs. I will read the real numbers off this PR's first full run and edit this section.

Tests

tests/tools/test_graph_accuracy_plan.py (66 cases): every gate language, languages without a gate need no toolchain, adapter sharing, core/shared/unknown -> all, docs/tests/engine-tools -> none, union, non-PR event / empty diff -> all, failed plan -> all, call-c vs call-cpp prefix, replay counts; workflow agreement (every lane gate is planned, every toolchain step is switch-gated, job name/needs/always/draft gate, paths: covers the planner's inputs). Also green: test_workflow_inputs, test_workflow_draft_gate, test_ci_retry, test_sweep_plan, test_source_reads, pr_gates --fast 7/7, audit_check.py clear.

Notes

🤖 Generated with Claude Code

…ol/baseline; toolchains install only for them (Part of #6501)

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 17:00
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

…iff can move them (Part of #6501)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@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 enabled auto-merge (squash) October 24, 2026 17:18
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 25f758e into main Oct 24, 2026
42 checks passed
@squid-protocol
squid-protocol deleted the churn/6501-20261024T1647Z branch October 24, 2026 17:47
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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