Repository navigation
Route four Copilot-backed Codex workflows to cost model routing instead of fixed GPT pins - #76330
Conversation
Co-authored-by: SivaKesava1 <[email protected]>
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
There was a problem hiding this comment.
Reviewed the four workflow source changes and the available PR metadata. I found no actionable correctness, security, or maintainability issues on the changed source lines. The generated lock files were excluded from the pre-fetched patch, so their compiled details were not independently assessed in this static review.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
🔵 Needs a closer look
Required routing, applied-effort, output-quality, and per-phase cost checks remain unverified because candidate-revision runs are missing, including authenticated V3 queue executions for both workers.
No open issues 🎉
What changed in this PR
This PR opts four Copilot-backed Codex workflows into gh-aw’s cost-focused model routing, implementing the workflow-level migration requested in #76329 without changing global defaults.
Changes:
- Replaces fixed main-agent models with
cost/balancedrouting for documentation updates andcost/economyfor the other three workflows. - Makes the GitHub provider explicit for
daily-evals-report, preserving existing inference credentials and permissions. - Regenerates all four locks with router configuration, runtime model metadata, and compiler-default detection models; evals models remain unchanged.
Live routing behavior and per-workflow savings remain unverified; no runs have been dispatched.
| File | Description |
|---|---|
.github/workflows/eslint-monster.md |
Replaces the fixed model with cost/economy routing. |
.github/workflows/eslint-monster.lock.yml |
Adds economy routing and runtime model reporting. |
.github/workflows/daily-evals-report.md |
Enables cost/economy routing with an explicit GitHub provider. |
.github/workflows/daily-evals-report.lock.yml |
Adds economy routing while retaining Copilot inference. |
.github/workflows/daily-doc-updater.md |
Replaces the fixed model with cost/balanced routing. |
.github/workflows/daily-doc-updater.lock.yml |
Adds balanced routing and propagates selected-model metadata. |
.github/workflows/daily-awf-spec-compiler-surfacing.md |
Enables cost/economy routing while preserving sub-agent models. |
.github/workflows/daily-awf-spec-compiler-surfacing.lock.yml |
Adds economy routing to the existing cloud-hypervisor configuration. |
Review effort: Balanced (auto)
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /grill-with-docs to the side effects of the plan. The lock files reproduce from source, and one behavior change needs an explicit decision.
📋 Key Themes & Highlights
Key Themes
- Threat-detection model changes implicitly: detection now resolves through the
detectionalias instead of the removed agent pin (see inline comment ondaily-doc-updater.md).
Positive Highlights
- ✅ Compiling the four workflows at
c2b1b07reproduces the committed.lock.ymlfiles exactly, with no drift. - ✅
engine.model-routingandengine.model-providervalidate against the schema, and omittingallowed-modelscorrectly defers to the compiler default. - ✅ Auth and permissions are unchanged (
COPILOT_GITHUB_TOKEN, nocopilot-requests: write). - ✅ The
gpt-5sub-agent aliases in the surfacing workflow are untouched, as the PR states.
Scope
Reviewed the committed head c2b1b07. The pre-fetched diff omits .lock.yml files, so I checked those separately against the compiler.
@copilot please address the review comment above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~2 AIC · ⊞ 6.3K
Comment /matt to run again
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "c2b1b072f9fe1238001edd9ddc54de70e41130b9",
"kind": "requested",
"schema_version": "1",
"state": "96872be7a03902ba4a08a13b58b5adec9a0c8d08267dd5c872c52fb718b9ae08",
"work": [
"34f38971738f6a752a646bd7797a6c8d47fb096e4eb6f91e946a91255433c8c4",
"51e2287c3d1ee41b7e13769862add61dcd292a623cf943abc5968c984e246bcf",
"a121abdb6f7ec1d76bbf7f04ffacc47490c3a82a0a8351c53214073a3902577d"
],
"workflow": "pr-sous-chef"
}
|
|
Category: feature | Risk: medium | Score: 56/100 (impact 32 + urgency 12 + quality 12) | Recommended action: batch_review | Batch: pr-batch:model-routing | Notes: moves Copilot-backed Codex workflows to cost-model routing; useful modernization but not an immediate blocker.
|
1 similar comment
|
Category: feature | Risk: medium | Score: 56/100 (impact 32 + urgency 12 + quality 12) | Recommended action: batch_review | Batch: pr-batch:model-routing | Notes: moves Copilot-backed Codex workflows to cost-model routing; useful modernization but not an immediate blocker.
|
|
Category: feature | Risk: medium | Score: 56/100 (impact 32 + urgency 12 + quality 12) | Recommended action: batch_review | Batch: pr-batch:model-routing | Notes: routes Copilot-backed Codex workflows to cost-model routing.
|
1 similar comment
|
Category: feature | Risk: medium | Score: 56/100 (impact 32 + urgency 12 + quality 12) | Recommended action: batch_review | Batch: pr-batch:model-routing | Notes: routes Copilot-backed Codex workflows to cost-model routing.
|
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "ea299f4bde2781e3d739aa1848aa0d1d8b91c15c",
"kind": "requested",
"schema_version": "1",
"state": "d2eaee2eaba7dcef7bf2d527de349689b9982d73618e46fda4b7706dd5f72d63",
"work": [],
"workflow": "pr-sous-chef"
}
|
…dex-workflows # Conflicts: # .github/workflows/daily-doc-updater.lock.yml # .github/workflows/daily-evals-report.lock.yml # .github/workflows/eslint-monster.lock.yml Co-authored-by: gh-aw-bot <[email protected]>
Merged latest |
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "8706da6fe4642b0764c9385d72c0081354824629",
"kind": "requested",
"schema_version": "1",
"state": "725246d7e2010d5c6adebadf014e5945a2e5b544396a696db642282231564b91",
"work": [
"51e2287c3d1ee41b7e13769862add61dcd292a623cf943abc5968c984e246bcf"
],
"workflow": "pr-sous-chef"
}
|
…dex-workflows Co-authored-by: gh-aw-bot <[email protected]>
Merged latest |
| GH_AW_ROUTING_PROMPT: /tmp/gh-aw/aw-prompts/user.txt | ||
| GH_AW_ROUTING_PROMPT_FALLBACK: /tmp/gh-aw/aw-prompts/prompt.txt | ||
| GH_AW_ROUTING_CONVERSATION_FILE: /tmp/gh-aw/routing-conversation.json | ||
| run: node -e "const fs=require('node:fs'); const path=require('node:path'); const readPrompt=file=>{try{return fs.readFileSync(file,'utf8');}catch(error){if(error.code==='ENOENT')return '';throw error;}}; let prompt=readPrompt(process.env.GH_AW_ROUTING_PROMPT); if (!prompt.trim()) prompt=readPrompt(process.env.GH_AW_ROUTING_PROMPT_FALLBACK); if (!prompt.trim()) throw new Error('Rendered workflow prompt is empty; cannot route this task'); const destination=process.env.GH_AW_ROUTING_CONVERSATION_FILE; fs.mkdirSync(path.dirname(destination),{recursive:true,mode:0o700}); fs.writeFileSync(destination,JSON.stringify([{role:'user',parts:[{text:prompt}]}]),{mode:0o600});" |
|
🎉 This pull request is included in a new release. Release: |
Four Codex workflows that run on GitHub Copilot inference pinned their main agent to a fixed GPT model. This PR replaces those pins with
engine.model-routingset togoal: cost. The diff is limited to the four workflow sources and their regenerated.lock.ymlfiles.Source changes
daily-doc-updatercopilot/gpt-6-astrabalancedeslint-monstercopilot/gpt-6-astraeconomydaily-awf-spec-compiler-surfacingcopilot/gpt-6-soleconomydaily-evals-reportcopilot/gpt-5.6-soleconomydaily-evals-report. This workflow previously got Copilot inference from thecopilot/prefix on its pin. Without the pin, it needsmodel-provider: githubto stay on Copilot.allowed-models. The compiler's default for the Codex family already suppliesgithub-copilot/gpt-*as candidates.secrets.COPILOT_GITHUB_TOKEN. I deliberately left outcopilot-requests: write, because adding it would switch inference togithub.token.gpt-5sub-agent aliases in the surfacing workflow also stay as they are.Compiled locks (acceptance case A)
All four locks contain:
objective: {goal: cost, mode: <mode>}andcandidateModels: ["github-copilot/gpt-*"];gh-aw-firewall/router:0.29.10@sha256:cf7ba6de…;GH_AW_MODEL_AGENT_CODEXis gone andGH_AW_MODEL_ROUTING: 1replaces it;COPILOT_DUMMY_BYOK,githubcopilot.com).Downstream jobs now read
GH_AW_ENGINE_MODELfromneeds.agent.outputs.model, plus the newmodel_effortandmodel_routing_statusoutputs. The pinnedGH_AW_INFO_MODEL_COSTSentry has been dropped.Detection and evals models (same change in all four)
COPILOT_MODELgpt-6-astra/gpt-6-astra/gpt-6-sol/gpt-5.6-sol)${{ vars.GH_AW_MODEL_DETECTION_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'detection' }}GH_AW_MODEL_FALLBACK${{ vars.GH_AW_MODEL_DETECTION_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'auto' }}GH_AW_EVALS_MODELcopilot/gpt-6-luna-decisionsRemoving the pin also removes the model the detection job inherited, so detection now runs on the compiler default. No detection override was added, so detection cost should be measured separately from agent cost.
Live verification (cases B/C)
Nothing has been dispatched yet.
daily-doc-updateranddaily-awf-spec-compiler-surfacingcan run on this branch.eslint-monsteranddaily-evals-reportneed an authenticated V3 work-queue assignment, so they will be checked on their first queue runs after merge.For each run, compare the agent-phase
firewall.model_routingselection event and the agent, detection and evals AIC against the baselines in the issue.Known unrelated failures
pkg/cli.TestDownloadWorkflowLogsForTargetsConcurrentAndResilientandTestDownloadWorkflowLogsForTargetsUsesOneWallClockTimeoutfailed in the paralleltest-integrationrun. Both passed three times when run alone, and this PR changes no Go code. They were not run against main.