Repository navigation
Closed
Labels
Milestone
Description
Part of #6278 (CI cost). Owner 2026-10-24: tune the new call-graph gates, and every workflow from now on is built for speed (.claude/rules/ci-workflows.md).
Measured (2026-10-23 00:00Z to 10-24 16:30Z)
- The runner pool is the bottleneck. A job-level sample at 16:23–16:30Z on 10-24 found 18–22 jobs running (pool 20, all
ubuntu-latest) and 41–68 jobs queued. Queued jobs had waited a median of 1.5–8 min, and up to 37 min. graph-accuracy-audit.yml: 118 PR runs, of which 62 did work (the rest were drafts or skipped). Median 8.7 min wall, p90 15.9 min, about 654 runner-min in total.- Many of those runs came from PRs for Haskell, Dart, PowerShell and Swift rule changes. None of those languages has a call-resolution gate, yet each run installed Node + TypeScript, JDK 21 + scip-java, the Rust 1.90 toolchain, Go 1.24 and libclang, and then ran all 10 gates.
- Cause:
paths:includesgitgalaxy/standards/language_standards/**plus core files. There is no plan job, every toolchain step runs unconditionally, and every gate runs.
Change
A plan job (stdlib only, like ground_truth_plan.py / det_sweep_plan.py, using tests/tools/change_classifier.py) maps the changed files to the gates that can move:
| changed | gates |
|---|---|
a language's standard (language_standards/<lang>*) |
that language's call-resolution gate (if it has one) + import-graph (if the language is in tests/import_graph_corpus.json) + span anchoring (covers every language) |
| a gate's own tool, baseline or reference adapter | that gate (+ every gate sharing the adapter: scip_callgraph.py → java, rust; clang_callgraph.py → c, cpp) |
shared core (detector.py, prism.py, call_resolver.py, network_risk_sensor.py), the workflow itself, crucible_pins |
all gates |
| anything else | none: the required check reports success |
- Toolchain steps run only when a selected gate needs them (
if: contains(needs.plan.outputs.gates, ...)): Node/TS for typescript and javascript; JDK + scip-java cache for java; rustup for rust; Go for go; libclang for c and cpp. Cache the rustup toolchain (keyed by version) if it's still the slowest install. - Keep one runner with parallel lanes (Graph Accuracy Audit: split the serial gates into parallel jobs (9.3 min) #5501). Lanes run only the selected gates.
- The plan is tested in both directions: never skip a gate whose inputs changed; a COBOL/PL/I-only change runs span anchoring only (or nothing, if span anchoring doesn't read that language).
Same class: one PR each, or one PR for the family if small
Each of these is a per-language audit with a broad paths: and no plan job. Apply the same plan shape:
call-graph-accuracy-audit.yml(Level 1)tree-sitter-accuracy-audit.yml,tree-sitter-accuracy-history.ymltri-comparison-audit.yml,tri-comparison-history.ymlgraph-comparison-history.ymldetection-accuracy-audit.yml
The other broad PR workflows without a plan (codeql, muninn, estate-crucible, golden-crucible, crucible-path-independence, fact-crosscheck, ports-compile, rosetta-audit, unicode-gauntlet) stay with #6278 slice 4.
Acceptance
- The PR body states, per workflow: the share of the last 50 merged PRs it would now run on versus before (replay the plan, as
sweep_plan.py --replaydoes), and runner-min per run before and after. - A Haskell-only
language_standardschange installs no JDK, Rust, Go or Node, and runs at most span anchoring and import-graph. - Required check names are unchanged and still report on every PR.
Activity
squid-protocol commentedon Oct 24, 2026
Claimed by promoter-bot host
melek, lease renewed 2026-10-24T20:47Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove theclaim:meleklabel.squid-protocol commentedon Oct 24, 2026
Churn run
6501-20261024T1659Z(host melek) ended without a PR. plan approved, sent back to implementaccuracy audits: a plan job runs call-graph/detection only when the d…
.claude: workflow-authoring rule (reach, conditional installs, cost i…
graph-accuracy-audit: plan job selects gates by changed language/tool…
tree-sitter accuracy audit + history: plan job selects languages by d…
pipeline pins: move the tri-comparison apt line numbers after the pla…
tri-comparison audit + history, graph-comparison history: plan jobs s…
squid-protocol commentedon Oct 24, 2026
All listed workflows now have plan jobs on main (#6503 graph-accuracy, #6510 tree-sitter audit+history, #6543 tri/graph history; call-graph and detection audits also carry plan jobs). Replay measurements are in each PR body; required check names unchanged. The small docs/graph_accuracy.md note for the three tri/graph audits is a doc nicety, not acceptance.