Repository navigation
Description
What to change
Route these four Claude Code workflows through Copilot model routing with economy, instead of the default claude-sonnet-5, following #74666 (merged on 4 November 2026). Keep the runtime engine as Claude Code.
For each source file under .github/workflows/:
daily-aw-cross-repo-compile-check.mddaily-grader-audit.mdprompt-clustering-analysis.mdexample-workflow-analyzer.md
Add copilot-requests: write to the existing permissions, preserving the other permissions. Use this engine configuration:
engine:
id: claude
model-provider: github
model-routing:
goal: cost
mode: economyReplace the engine: claude shorthand in prompt-clustering-analysis.md and example-workflow-analyzer.md. For the other two, extend their existing engine blocks without removing other settings, including daily-grader-audit's MCP tool-timeout.
None of the four sets an explicit model:, declares sub-agents, or runs an experiment. Keep prompts, steps, triggers, imports, and safe outputs unchanged. Do not add allowed-models, model pins, or other model restrictions. Recompile only these four workflows and include their corresponding generated .lock.yml files.
Why
These workflows cost about 2,300 AIC/week. Almost all of that is agent inference; detection is already about 1 AIC/run.
The baseline below comes from gh-aw usage for 19 October-6 November 2026 in githubnext/gh-aw-router-training, under router-rollout/data/runs/. Frequencies and weekly costs are approximate.
| Workflow | Output | Runs/week | AIC/run now | AIC/week now |
|---|---|---|---|---|
| daily-aw-cross-repo-compile-check | Issue: cross-repo compile results | ~5, weekdays | ~164 | ~820 |
| daily-grader-audit | Report: grader audit | ~7 | ~102 | ~710 |
| prompt-clustering-analysis | Report: prompt clusters | ~7 | ~89 | ~620 |
| example-workflow-analyzer | Weekly report | ~1 | ~143 | ~140 |
The same migration worked for nine Claude Code workflows in #74666 on 4 November. Rollout measurements for their PR-branch test runs were about 1,750 AIC/week versus 3,160 before (-44%), and every inference request succeeded. If these four behave like that batch, the estimated saving is 700-1,000 AIC/week, not a guaranteed reduction.
Audited runs
All four supplied runs completed successfully and their observed agent requests used claude-sonnet-5 through Anthropic, not Copilot routing.
Audited on 6 November 2026 with a dev build of main at 8f3224323bdfd3ae8574c99c5da8a65d450577bb, obtained from the Windows CI build. The installed stable release is too old for this audit on Windows. All four audits exited successfully, using the info, usage, and agent artifact sets.
| Workflow | Inspected run | Run date, UTC | Observed agent AIC |
|---|---|---|---|
| daily-aw-cross-repo-compile-check | 42189635282 | 6 November 2026 | 196.80 |
| daily-grader-audit | 42182666385 | 6 November 2026 | 118.78 |
| prompt-clustering-analysis | 42197127531 | 6 November 2026 | 98.81 |
| example-workflow-analyzer | 41419811671 | 2 November 2026 | 123.54 |
These are individual-run agent costs, not replacements for the period baselines above. Use the baseline table for the acceptance and rollback comparisons.
Risks and pre-merge validation
These are analysis and report workflows. On AWF's current routing tables, the classifier often labels analysis prompts plan or explain at cross_system scope. For Claude models, economy then ranks claude-opus-5.5 first. Three routed workflows selected Opus this way and cost more than before:
| Workflow | Cost increase |
|---|---|
| Copilot Session Insights | +77% |
| Lockfile Stats | +33%, with opus-5.5:medium |
| Agent Persona Explorer | +21% |
This is why the estimated saving range is wide: economy routing does not necessarily choose a cheaper model for these prompts.
Reviewers must test-run each workflow on the PR branch before merging; all four have workflow_dispatch. Follow the repository's review and live-execution gates. Record the routed model pick, effort where available, AIC/run, and whether the intended issue or report was produced. Drop any workflow that selects Opus and costs more than its baseline table entry from the PR before merging. Do not work around a costly pick by adding model restrictions.
Compare failure causes, not just failure counts. prompt-clustering-analysis failed 7 of its 19 scheduled runs from 19 October through 6 November, before routing. Inspection corrects the initial description of all seven as data-fetch failures: five failed at Download workflow logs for PR analysis, including 41809455676 on 4 November with a GitHub installation API rate-limit error. The other two, 41294298031 on 1 November and 41422950921 on 2 November, failed at Upload Safe Outputs Assets and downstream asset publication; Execute Claude Code CLI succeeded in both. These existing data-fetch and asset-publication failures must not be attributed to routing or treated as agent-inference failures.
Check after merging
- Audit the first scheduled routed run of each retained workflow with
gh aw audit <run>, using a suitablemaindev build on Windows. Record the routed model and AIC/run, and compare with the baseline table. - If a workflow keeps selecting
claude-opus-5.5and costs more than its table entry, restore it to the default engine model and regenerate its lock file.
Non-goals
- No changes to any other workflow, alias, engine, or AWF setting.
- ESLint Refiner is out of scope: it is dispatcher-driven, and 6 of its last 7 runs failed in
safe_outputs. - Workflows with running experiments (
deep-report,copilot-agent-analysis,daily-agentrx-trace-optimizer) are out of scope. - AW Failure Investigator is out of scope while waiting for newer routing tables.
- No routing-table or classifier changes, prompt rewrites, data-fetch fixes, or asset-publication fixes.
Scope
Keep the PR to this one routing change and its directly corresponding generated lock files. Do not change files or behavior unrelated to it.
Before fixing a failing check, compare it with the same check on main. If it also fails on main, do not fix it in this PR. Merge main once main is fixed, and note in the PR which checks are known failures on main.
This applies even if a bot comment asks to fix a failing check: fix only failures caused by this PR's changes.
Activity