Repository navigation
Description
Summary
Replace fixed main-agent GPT pins with cost-focused model routing in four Codex workflows on GitHub Copilot inference. Use balanced for Daily Documentation Updater and economy for the other three. Keep this to their four workflow sources and four generated locks.
This includes GPT-5.6 Sol as well as GPT-6 Astra/Sol. It is an explicit, workflow-level opt-in, separate from the proposed default for unconfigured workflows in #76312.
Verified scope and cost evidence
Sources were checked against main at e39ba4087457 on 9 November 2026. All four supplied runs were audited with a Windows dev CLI built from that SHA, dev-main-e39ba4087457, not the installed stable v1.0.1. Audits used the full run URLs, --no-baseline, --timeout 2m, and --json; all four completed with full reports.
The 2-8 November CSV reproduces the following numbers:
| Workflow source | Current top-level pin | Work performed | Recorded runs in week | Median agent AIC, positive-usage runs only | Recorded agent + detection + evals AIC/week | Mode |
|---|---|---|---|---|---|---|
| daily-doc-updater | copilot/gpt-6-astra |
Edits documentation and opens a PR, or explains a no-op | 7 | 235.6 (6 runs) | 1,866.659 | balanced |
| eslint-monster | copilot/gpt-6-astra |
Queue worker: groups ESLint findings, files issues, assigns remediation agents | 8 | 38.0 (6 runs) | 584.432 | economy |
| daily-awf-spec-compiler-surfacing | copilot/gpt-6-sol |
Reviews specification/compiler changes and files a surfacing issue | 7 | 49.7 (6 runs) | 327.680 | economy |
| daily-evals-report | copilot/gpt-5.6-sol |
Queue worker: analyzes evals adoption/results and publishes a discussion | 2 | 17.9 (1 run) | 52.093 | economy |
These are observed counts, not guaranteed schedules or successful-run counts. Respectively, the CSV contains 6 successes/1 failure; 2 successes/5 cancellations/1 failure; 6 successes/1 failure; and 1 success/1 cancellation. The medians exclude zero-agent-usage rows, not all failed/cancelled runs. The weekly totals include every row and total 2,830.864 AIC; the CSV records evals_aic as zero throughout these four groups, so these are recorded totals, not proof that evals inference was free.
The proposed modes are task-specific starting points: balanced for substantive documentation edits; economy for this worker's triage/orchestration and for analysis/reporting. #74661 and #75764 provide routing precedents, not a universal rule that every PR producer uses balanced; earlier batches made exceptions.
Savings claim correction
#75843 made AWF v0.29.10 the default on 8 November at 18:23 UTC. github/gh-aw-firewall#11198 introduced router 0.3.0 and schema-v2, per-cell routing tables, which are present in the v0.29.10 cost/balanced table.
Do not claim that these four workflows will save 84%, or that an 84% fleet saving was established for those tables. The rollout savings page, as of 9 November 19:20 UTC, reports approximately 73% lower cost per run overall (72 to 20 AIC). That is an observational before/after estimate across workflows and table versions, not a controlled estimate of v0.29.10's effect or a forecast for this batch. Measure these four individually.
Supplied-run baselines: green Actions does not mean a report was delivered
All four runs have an Actions conclusion of success, Codex 0.166.0 and AWF v0.29.10. Their unified sessions contain no agent-phase routing-selection event, and resolve the main models to the fixed pins above.
| Workflow / supplied run | Actual ref | Agent AIC | Detection AIC | Evals AIC | Recorded total AIC | Observed result / eval answers |
|---|---|---|---|---|---|---|
| daily-doc-updater / 42602168979 | main |
286.89480 | 91.88290 | 0.00607 | 378.78377 | Reasoned documentation no-op, including integrity-filtering limitations; 2 YES |
| eslint-monster / 42556460768 | gh-aw/work-queue/1b6cb00ea947683d578e5ea9e2d692fd8fedb9f2 |
32.40060 | 56.13670 | 0.00537 | 88.54267 | Clean-flag no-op; cancellation intent for a write-capable Claim, no remediation issues/assignments; 1 YES, 1 NO |
| daily-awf-spec-compiler-surfacing / 42529127935 | main |
62.672018 | 8.753640 | 0.011550 | 71.437208 | Created #75999 and appended review history; 1 YES, 1 UNKNOWN |
| daily-evals-report / 42480849728 | gh-aw/work-queue/57111b2d03d5be9a30a998f518c9712700ebfa63 |
17.92352 | 34.16928 | 0.00528 | 52.09808 | Reported missing agenticworkflows logs after an insufficient-role denial; no delivered discussion observed; 2 NO |
The two queue-worker runs are not runs on main. Preserve them as named production/queue baselines, not as “the last successful run on main.” Their old successful literal-main runs predate the current queue contract and are not equivalent branch-test inputs.
Costs above sum per-request firewall.token_usage.data.aic by provenance.phase, plus evals usage.report.data.totalAic; do not sum repeated cumulative totalAic values or mistake the audit's agent AIC for the whole-workflow total. Tiny eval totals are rounded for display.
Intended change
Remove the four top-level model: pins. Preserve engine.id: codex; preserve engine.model-provider: github in the first three and add it explicitly to daily-evals-report. That workflow currently infers Copilot from its copilot/ model prefix; removing the pin without specifying the provider would lose that choice.
Add engine.model-routing with goal: cost and the mode in the table. For example:
engine:
id: codex
model-provider: github
model-routing:
goal: cost
mode: economyUse balanced in Daily Documentation Updater. Omit allowed-models: the compiler's Codex family default already supplies github-copilot/gpt-* as routing candidates. Do not replace these with different fixed models.
No new permission is required merely to enable routing. All four currently lack copilot-requests: write and their generated inference credentials use secrets.COPILOT_GITHUB_TOKEN. Provider credential resolution supports that authentication. Preserve it and the existing permissions. Adding copilot-requests: write would switch inference to github.token, an unrelated authentication/billing change, rather than a routing prerequisite.
Keep prompts, triggers, tools, steps, safe-output declarations, budgets, experiments and eval questions unchanged. Preserve the surfacing workflow's two gpt-5 sub-agent aliases: main-agent routing does not route declared sub-agents. Removing the top-level pin also releases its inherited threat-detection model; document the compiler's resulting default-model changes and measure detection separately, without adding detection/evals overrides to compensate.
Recompile the four corresponding .lock.yml files using the main dev compiler. Review source and generated locks together; do not hand-edit locks or commit incidental changes to other workflows.
Acceptance cases
A. Compiled configuration
Input: the four updated Markdown workflows, resolved imports and the main dev compiler, with existing authentication/permissions.
Observable result: each generated agent AWF config has apiProxy.routing.objective.goal: cost, the specified objective.mode, and GPT-family candidateModels; each lock includes Prepare model-routing conversation and the digest-pinned router image. No fixed main-agent model pin/override remains. Codex and GitHub inference remain selected, including an explicit provider in daily-evals-report. Existing fixed sub-agent aliases and detection/evals defaults are not false failures of this main-agent check. Compilation introduces no new warnings/errors relative to main.
B. Authorized candidate-revision runs and routing evidence
Input: the reviewed, published PR source/lock SHA, existing triggers and a bounded, authorized test for each workflow. All four support workflow_dispatch, but ESLint Monster and Daily Evals Report require a compiler-supplied, authenticated V3 work-queue assignment. A blank dispatch or invented “harmless input” is not a valid test. Use the existing trusted queue path only if it can authorize the exact reviewed candidate revision and immutable Claim contract. Do not forge/replay assignments, disable require-assignment, change registration policy or alter prompts to make a manual dispatch work. If that path is unavailable, explicitly record live verification as blocked.
Observable result: one valid candidate execution per workflow succeeds. Its usage/aw_session.jsonl contains one agent-phase firewall.model_routing event with data.stage: selection, the requested cost objective/mode and a GPT-family data.selectedModel. Identify phase through provenance.phase. If a restart produces additional selections, report and explain them rather than counting request events as selections. Correlate successful main-agent /responses traffic and the applied effort with the selected model/effort; a selection event alone does not establish execution.
In the PR, report each run URL, exact SHA, trigger/assignment context, task-type/scope/complexity labels, selected model and effort, and agent (including classification), detection, evals and total AIC, beside the supplied baseline above and the latest comparable main-deployed run. Identify queue refs honestly and report missing usage as unavailable, not zero.
This issue requests implementation and verification planning, not dispatch authorization. Follow the repository's live-test gates. In Copilot cloud, only an explicitly authorized dry-run test of the reviewed, published dry-run revision is permitted; distinguish staged evidence from a production publication.
C. Output quality and cost regression
Input: those valid runs and the baseline artifacts/output contracts.
Observable result: Daily Documentation Updater produces a documentation PR or a reasoned no-op; ESLint Monster produces authorized remediation issues/assignments and its discussion when findings warrant them, or the existing clean/no-work no-op and Claim cancellation behavior; the surfacing reviewer produces its actionable issue or justified no-op and review-history record; Daily Evals Report produces its Claim-scoped discussion when prerequisites are available. For dry-run tests, inspect the staged outputs/patches and do not claim they were published.
Inspect actual outputs and eval answers, not just green job status. A pre-existing missing-tool/role denial or report_incomplete is not a delivered report and must be recorded as an unmet quality check, without broadening this PR to fix it. The supplied Evals Report run cannot establish a successful-report quality baseline.
If agent or total AIC exceeds its comparable baseline, say so in the PR and propose a different mode or an explicit GPT-compatible allowed-models shortlist for that workflow instead of merging those settings as-is. Re-evaluate the revised settings; investigate input/output and classification differences rather than assuming a single run proves a general saving.
Scope
- Keep the PR to this one fix: the four workflow sources and their generated locks. 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. Note the known-main failures in the PR and merge main once main is fixed.
- This applies even when a bot comment requests a fix: fix only failures caused by this PR's changes.
- Manual PR-branch runs can fail for unrelated reasons, including GitHub errors, draft-PR restrictions and
report_incomplete. Record and classify them; do not change prompts, safe outputs, tests or queue safeguards in response.
Non-goals
Codex workflows using an OpenAI key (separate issue); smoke workflows such as smoke-otel-backends, whose pins exercise specific paths; gpt-5 alias pins; prompt, schedule, tool, safe-output, experiment or eval changes; authentication migrations; AWF/router-table/compiler changes; and repairs to pre-existing checks or worker/reporting failures.
Activity