Repository navigation
Choose model routing with model: router and router/economy|balanced|robust - #76617
Conversation
Co-authored-by: SivaKesava1 <[email protected]>
model: router and router/economy|balanced|robust
|
Category: feature | Risk: medium | Score: 62 (impact 35 + urgency 13 + quality 14) | Action: batch_review | Batch: pr-batch:eligible-copilot
|
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Specification Reviewer completed successfully! Commit pushed:
|
|
✅ 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.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Ponytail Reviewer completed successfully!
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.
|
There was a problem hiding this comment.
What this change does: It lets workflows select model routing through the model value and records that choice for audit.
Should fix
- Reuse the existing model configuration parser for the runtime guard. It avoids maintaining two readers for the same routing state.
Verdict: Ship after simplification.
Lean: -13 lines possible.
Generated by ✂️ Ponytail Reviewer for #76617 · codex · routed: gpt61 medium · ~8 AIC · ⌖ ~1 AIC · ⊞ 181
Comment /ponytail to run again
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
Found one correctness issue in router namespace validation.
Finding
- Alias keys under
models:only reject the exact keyrouter, allowing reservedrouter/*names such asrouter/economyto be defined and collide with routing syntax.
No tests were run; this was a static diff review.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~5 AIC · ⌖ ~2 AIC · ⊞ 1.6K
Comment /review to run again
Co-authored-by: Copilot <[email protected]>
Latest |
Triage
|
|
🍳 The prep is done, but CI needs another taste test. Copilot's assigned task has finished; these checks are still failing: Completed task
Please address the remaining CI failures on this PR's existing branch. No merging or CI triggering. Structured data{
"completed_task": 42967278259,
"head": "fe7589eb871eb6ad6a98d89bff040c64e7403203",
"kind": "ci-follow-up",
"schema_version": "1",
"state": "dd4ddd0b8ee8cf4d925a9e8e5215e651b4bc20a5a4170ca260783b9ba1488632",
"work": [
"4ce4dd407e604d374ecd66edfd2afc18c54e2d0b3733dbac37ac8e9c8834fdba"
],
"workflow": "pr-sous-chef"
}
|
…routing Co-authored-by: gh-aw-bot <[email protected]>
Synced the branch with latest |
|
Category: feature | Risk: medium | Score: 76/100 (impact 40 + urgency 21 + quality 15). Recommended action: batch_review. Batch: pr-batch:copilot-platform. Reason: this is the largest scope item in the set and merits a grouped review alongside the other automation changes.
|
|
Category: feature | Risk: medium | Priority: medium | Score: 76/100 (impact 40 + urgency 21 + quality 15)
|
|
Verification at
No workflow is moved to |
|
@copilot Thanks, this matches #76599. A few things before it's ready:
|
|
🎉 This pull request is included in a new release. Release: |
Today a workflow asks for routing with a separate
engine.model-routingblock that has two required fields, and in practice the goal is alwayscost. This PR lets a workflow choose routing through its model value instead:engine.model-routingroutergoal: cost, mode: autorouter/economygoal: cost, mode: economyrouter/balancedgoal: cost, mode: balancedrouter/robustgoal: cost, mode: robustengine.model-routingis unchanged, and so is the implicit default for workflows with no model.Compiler
pkg/workflow/model_router_value.go): once model precedence is resolved, a router value is turned into the existingCopilotModelRoutingConfig, and the main model is cleared.engine.modelbeats top-levelmodel, and a workflow's own model beats an imported one.models.allowed/models.blockedstill narrow the choice, and Claude and Codex keep their model family.router/*values, includingrouter/autoandrouter/Economy. The error lists the valid values.?effort=high.engine.model-routing(including one that is imported), withengine.model-routing: false, or withengine.fallback-models.models.allowed,models.blocked,fallback-models,model-routing.allowed-models, or amodels:alias, and an alias namedrouter.modelorengine.model), evals, or an enclave agent.engine.model-routing. One consequence: Copilot with a customapi-targetstill compiles, as it does withengine.model-routingtoday.GH_AW_INFO_MODEL_CONFIG) gains arouting.requestedfield. Apart from that field, the lock for a router value matches the lock for the equivalentengine.model-routingblock.Run-time guard (
generate_aw_info.cjs)${{ vars.MODEL }}orGH_AW_DEFAULT_MODEL_COPILOT), resolves to a router value, and the run isn't routed, activation fails withERR_CONFIGbefore the agent starts.Audit
gh aw auditshowsrouting.requested(for examplerouter/economy) as the requested model, next to the model the router picked.model_config.AwInfogainsModelConfig, and the unified-session and logs JSONL schemas are updated to match.Docs
model: router. It says a workflow with no model already behaves likemodel: router, and keepsengine.model-routingforgoal: cost-speedand shortlists.modelandengine.modelin the workflow schema, and.github/aw/syntax-engine.mdanddebug-model-engine-misconfiguration.md.routerand therouter/namespace.Not in this PR
These follow the issue's out-of-scope list:
engine.model-routing, or agh aw fixcodemod for it.smallandlargealiases at router values.model: router#76599