Repository navigation
Default eligible no-model workflows to cost/balanced model routing on GitHub Copilot - #76313
Conversation
Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
An experiment-name collision can incorrectly enable routing, and inconsistent defaulting produces different routing behavior between CLI and programmatic compilation.
9 open issues
Avoid collisions with experiment output names · New Apply routing defaults consistently across parsing entry points · New Preserve imported empty model declarations · New Normalize Pi options before checking routing opt-out · New Emit defaulting notices only during compilation · New Check sandbox agent environment for model overrides · New Exclude the privileged Docker runtime from routing · New Skip routing when manual approval uses a different environment · New Treat templated arguments as uncertain for routing · New
What changed in this PR
Adds cost/balanced model routing to the gh-aw compiler for eligible workflows without an explicit model on GitHub Copilot inference, addressing #76312.
Changes:
- Adds conservative routing eligibility checks and an explicit
engine.model-routing: falseopt-out. - Introduces activation-time model-variable bypasses that guard firewall configuration, engine execution, and routing metadata.
- Updates schema, documentation, regression coverage, and generated workflow locks.
| File | Description |
|---|---|
pkg/workflow/pi_subagent_validation_test.go |
Keeps disabled-Bash coverage explicitly non-routed. |
pkg/workflow/pi_bare_inline_skills_test.go |
Opts existing Pi skill fixtures out of routing. |
pkg/workflow/model_routing.go |
Tracks implicit routing and guards conversation preparation. |
pkg/workflow/model_routing_test.go |
Adds default-routing and secondary-agent isolation coverage. |
pkg/workflow/model_routing_subagents_test.go |
Updates the import-merge test call. |
pkg/workflow/model_routing_default.go |
Implements eligibility, runtime decisions, and notices. |
pkg/workflow/model_env_vars_test.go |
Exercises activation decisions and runtime configuration branches. |
pkg/workflow/engine.go |
Preserves explicit routing opt-outs during extraction. |
pkg/workflow/engine_validation.go |
Accepts opt-outs when validating routing imports. |
pkg/workflow/docker_firewall_pin_compile_test.go |
Preserves non-routed image-pinning coverage. |
pkg/workflow/copilot_engine_execution.go |
Guards Copilot model settings and routing flags. |
pkg/workflow/compiler_yaml_step_lifecycle.go |
Makes activation metadata reflect the routing decision. |
pkg/workflow/compiler_yaml_ai_execution.go |
Guards routing-enabled usage metadata. |
pkg/workflow/compiler_types.go |
Adds the batch default-routing counter. |
pkg/workflow/compiler_steering_issue.go |
Guards steering metadata for runtime routing. |
pkg/workflow/compiler_orchestrator_workflow.go |
Applies routing defaults after file parsing. |
pkg/workflow/compiler_orchestrator_engine.go |
Tracks explicit choices and merges imported opt-outs. |
pkg/workflow/compiler_mutators.go |
Exposes the batch routing count. |
pkg/workflow/compiler_activation_context.go |
Adds the routing decision step and job output. |
pkg/workflow/command_precision_test.go |
Keeps command-parsing coverage non-routed. |
pkg/workflow/codex_engine.go |
Retains model arguments only on non-routed runs. |
pkg/workflow/claude_engine.go |
Guards Claude model settings for implicit routing. |
pkg/workflow/awf_command_builder.go |
Emits runtime-selectable routed and plain firewall configurations. |
pkg/workflow/awf_agent_timeout_test.go |
Keeps timeout coverage explicitly non-routed. |
pkg/workflow/aw_info_model_config_test.go |
Marks the non-routed metadata fixture explicitly. |
pkg/parser/schemas/main_workflow_schema.json |
Allows false as the routing opt-out. |
pkg/cli/compile_pipeline.go |
Prints aggregated default-routing notices. |
docs/src/content/docs/reference/model-routing.md |
Documents eligibility, bypasses, and opt-out behavior. |
docs/src/content/docs/reference/frontmatter-full.md |
Documents both routing configuration formats. |
docs/src/content/docs/reference/engines/pi.md |
Describes Pi’s implicit routing behavior. |
docs/src/content/docs/reference/engines/copilot.md |
Describes Copilot defaults and variable bypasses. |
docs/src/content/docs/reference/engines/codex.md |
Describes GitHub-backed Codex routing defaults. |
docs/src/content/docs/reference/engines/claude.md |
Describes GitHub-backed Claude routing defaults. |
docs/src/content/docs/reference/engines.md |
Summarizes routing defaults across supported engines. |
actions/setup/js/model_routing_contract.test.cjs |
Covers runs where activation disables routing. |
.github/workflows/smoke-work-queue-worker.lock.yml |
Regenerates the worker with guarded routing. |
.github/workflows/smoke-work-queue-dispatcher.lock.yml |
Regenerates the dispatcher with guarded routing. |
.github/workflows/firewall.lock.yml |
Regenerates the SDK workflow with guarded routing. |
.github/workflows/engine-conformance-copilot.lock.yml |
Regenerates Copilot conformance with guarded routing. |
Review effort: Max (auto)
Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
…odel-routing # Conflicts: # .github/workflows/agent-performance-analyzer.lock.yml # .github/workflows/agentic-token-audit.lock.yml # .github/workflows/agentic-token-optimizer.lock.yml # .github/workflows/architecture-guardian.lock.yml # .github/workflows/auditor.lock.yml # .github/workflows/aw-issue-clustering.lock.yml # .github/workflows/breaking-change-checker.lock.yml # .github/workflows/ci-coach.lock.yml # .github/workflows/cli-consistency-checker.lock.yml # .github/workflows/copilot-opt.lock.yml # .github/workflows/copilot-pr-merged-report.lock.yml # .github/workflows/copilot-pr-nlp-analysis.lock.yml # .github/workflows/copilot-pr-prompt-analysis.lock.yml # .github/workflows/craft.lock.yml # .github/workflows/daily-agent-of-the-day-blog-writer.lock.yml # .github/workflows/daily-ambient-context-optimizer.lock.yml # .github/workflows/daily-assign-issue-to-user.lock.yml # .github/workflows/daily-compiler-quality.lock.yml # .github/workflows/daily-compiler-threat-spec-optimizer.lock.yml # .github/workflows/daily-declarative-engine-improver.lock.yml # .github/workflows/daily-ecosystem-explorer.lock.yml # .github/workflows/daily-experiment-report.lock.yml # .github/workflows/daily-formal-spec-verifier.lock.yml # .github/workflows/daily-geo-optimizer.lock.yml # .github/workflows/daily-graft-intelligence.lock.yml # .github/workflows/daily-pr-review-cursor.lock.yml # .github/workflows/daily-regression-audit-kiro.lock.yml # .github/workflows/daily-report-dispatcher.lock.yml # .github/workflows/daily-safe-output-integrator.lock.yml # .github/workflows/daily-schema-audit-cursor.lock.yml # .github/workflows/daily-secrets-analysis.lock.yml # .github/workflows/daily-security-observability.lock.yml # .github/workflows/daily-spdd-spec-planner.lock.yml # .github/workflows/daily-spec-coverage-kiro.lock.yml # .github/workflows/daily-squid-image-scan.lock.yml # .github/workflows/daily-syntax-error-quality.lock.yml # .github/workflows/daily-team-status.lock.yml # .github/workflows/daily-testify-uber-super-expert.lock.yml # .github/workflows/daily-trajectory-grader-implementer.lock.yml # .github/workflows/daily-work-queue-formal-verification.lock.yml # .github/workflows/daily-work-queues-report.lock.yml # .github/workflows/daily-workflow-security-model.lock.yml # .github/workflows/daily-workflow-updater.lock.yml # .github/workflows/dataflow-pr-discussion-dataset.lock.yml # .github/workflows/dead-code-remover.lock.yml # .github/workflows/delight.lock.yml # .github/workflows/deployment-incident-monitor.lock.yml # .github/workflows/dev-hawk.lock.yml # .github/workflows/dictation-prompt.lock.yml # .github/workflows/docs-noob-tester.lock.yml # .github/workflows/draft-pr-cleanup.lock.yml # .github/workflows/engine-conformance-copilot.lock.yml # .github/workflows/engine-conformance-dispatcher.lock.yml # .github/workflows/enterprise-docs-audit.lock.yml # .github/workflows/eslint-factory-dispatcher.lock.yml # .github/workflows/eslint-miner.lock.yml # .github/workflows/firewall-escape.lock.yml # .github/workflows/firewall.lock.yml # .github/workflows/layout-spec-maintainer.lock.yml # .github/workflows/mcp-inspector.lock.yml # .github/workflows/mergefest.lock.yml # .github/workflows/objective-impact-report.lock.yml # .github/workflows/org-health-report.lock.yml # .github/workflows/plan.lock.yml # .github/workflows/pr-finisher.lock.yml # .github/workflows/pr-nitpick-reviewer.lock.yml # .github/workflows/refiner.lock.yml # .github/workflows/release.lock.yml # .github/workflows/repository-quality-improver.lock.yml # .github/workflows/security-compliance.lock.yml # .github/workflows/slide-deck-maintainer.lock.yml # .github/workflows/smoke-checkout-pr-dispatch.lock.yml # .github/workflows/smoke-copilot-dynamic-workflow.lock.yml # .github/workflows/smoke-create-cross-repo-pr.lock.yml # .github/workflows/smoke-issues.lock.yml # .github/workflows/smoke-multi-pr.lock.yml # .github/workflows/smoke-project.lock.yml # .github/workflows/smoke-security-alerts.lock.yml # .github/workflows/smoke-update-cross-repo-pr.lock.yml # .github/workflows/smoke-work-queue-dispatcher.lock.yml # .github/workflows/smoke-work-queue-worker.lock.yml # .github/workflows/smoke-workflow-call-with-inputs.lock.yml # .github/workflows/spec-extractor.lock.yml # .github/workflows/spec-librarian.lock.yml # .github/workflows/stale-pr-cleanup.lock.yml # .github/workflows/tidy.lock.yml # .github/workflows/ubuntu-image-analyzer.lock.yml # .github/workflows/visual-regression-checker.lock.yml # .github/workflows/weekly-blog-post-writer.lock.yml # .github/workflows/weekly-editors-health-check.lock.yml # .github/workflows/workflow-health-manager.lock.yml # .github/workflows/workflow-skill-extractor.lock.yml Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
|
🍳 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": "af7052c8bd87e73c58f2e0f98700b51b06e0063c",
"kind": "requested",
"schema_version": "1",
"state": "c295ffc1bbf239df61f1366b5fc2ec82e3d59182953a9671e90558491c1914b7",
"work": [
"1612451f13c5d54618082aa0d5b67fe89e2c3d1f16e5cfc6506fa9a24c2e9a24",
"57b160f058c0cf0ae8470606e768b98956d9e31df7d52cc35017efdeeaeffab1",
"cabafb2817b103330ac0d1e2e098f214c40c4ca2be128895a8b14391f7e3306f"
],
"workflow": "pr-sous-chef"
}
|
…odel-routing Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
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": "bd60599622c652bb39b8425b0063b21a3bf6a1e5",
"kind": "requested",
"schema_version": "1",
"state": "2b56a046a44fd9629a9c36853d969bc81bccd1c9e69842d2364f6fee6ca89d9f",
"work": [],
"workflow": "pr-sous-chef"
}
|
…odel-routing # Conflicts: # .github/workflows/agent-performance-analyzer.lock.yml # .github/workflows/agentic-token-audit.lock.yml # .github/workflows/agentic-token-optimizer.lock.yml # .github/workflows/architecture-guardian.lock.yml # .github/workflows/auditor.lock.yml # .github/workflows/aw-issue-clustering.lock.yml # .github/workflows/breaking-change-checker.lock.yml # .github/workflows/ci-coach.lock.yml # .github/workflows/cli-consistency-checker.lock.yml # .github/workflows/copilot-opt.lock.yml # .github/workflows/copilot-pr-merged-report.lock.yml # .github/workflows/copilot-pr-nlp-analysis.lock.yml # .github/workflows/copilot-pr-prompt-analysis.lock.yml # .github/workflows/craft.lock.yml # .github/workflows/daily-agent-of-the-day-blog-writer.lock.yml # .github/workflows/daily-ambient-context-optimizer.lock.yml # .github/workflows/daily-assign-issue-to-user.lock.yml # .github/workflows/daily-compiler-quality.lock.yml # .github/workflows/daily-compiler-threat-spec-optimizer.lock.yml # .github/workflows/daily-declarative-engine-improver.lock.yml # .github/workflows/daily-ecosystem-explorer.lock.yml # .github/workflows/daily-experiment-report.lock.yml # .github/workflows/daily-formal-spec-verifier.lock.yml # .github/workflows/daily-geo-optimizer.lock.yml # .github/workflows/daily-graft-intelligence.lock.yml # .github/workflows/daily-pr-review-cursor.lock.yml # .github/workflows/daily-regression-audit-kiro.lock.yml # .github/workflows/daily-report-dispatcher.lock.yml # .github/workflows/daily-safe-output-integrator.lock.yml # .github/workflows/daily-schema-audit-cursor.lock.yml # .github/workflows/daily-secrets-analysis.lock.yml # .github/workflows/daily-security-observability.lock.yml # .github/workflows/daily-spdd-spec-planner.lock.yml # .github/workflows/daily-spec-coverage-kiro.lock.yml # .github/workflows/daily-squid-image-scan.lock.yml # .github/workflows/daily-syntax-error-quality.lock.yml # .github/workflows/daily-team-status.lock.yml # .github/workflows/daily-testify-uber-super-expert.lock.yml # .github/workflows/daily-trajectory-grader-implementer.lock.yml # .github/workflows/daily-work-queue-formal-verification.lock.yml # .github/workflows/daily-work-queues-report.lock.yml # .github/workflows/daily-workflow-security-model.lock.yml # .github/workflows/daily-workflow-updater.lock.yml # .github/workflows/dataflow-pr-discussion-dataset.lock.yml # .github/workflows/dead-code-remover.lock.yml # .github/workflows/delight.lock.yml # .github/workflows/deployment-incident-monitor.lock.yml # .github/workflows/dev-hawk.lock.yml # .github/workflows/dictation-prompt.lock.yml # .github/workflows/docs-noob-tester.lock.yml # .github/workflows/draft-pr-cleanup.lock.yml # .github/workflows/engine-conformance-copilot.lock.yml # .github/workflows/engine-conformance-dispatcher.lock.yml # .github/workflows/enterprise-docs-audit.lock.yml # .github/workflows/eslint-factory-dispatcher.lock.yml # .github/workflows/eslint-miner.lock.yml # .github/workflows/firewall-escape.lock.yml # .github/workflows/firewall.lock.yml # .github/workflows/layout-spec-maintainer.lock.yml # .github/workflows/mcp-inspector.lock.yml # .github/workflows/mergefest.lock.yml # .github/workflows/objective-impact-report.lock.yml # .github/workflows/org-health-report.lock.yml # .github/workflows/plan.lock.yml # .github/workflows/pr-finisher.lock.yml # .github/workflows/pr-nitpick-reviewer.lock.yml # .github/workflows/refiner.lock.yml # .github/workflows/release.lock.yml # .github/workflows/repository-quality-improver.lock.yml # .github/workflows/security-compliance.lock.yml # .github/workflows/slide-deck-maintainer.lock.yml # .github/workflows/smoke-checkout-pr-dispatch.lock.yml # .github/workflows/smoke-copilot-dynamic-workflow.lock.yml # .github/workflows/smoke-create-cross-repo-pr.lock.yml # .github/workflows/smoke-issues.lock.yml # .github/workflows/smoke-multi-pr.lock.yml # .github/workflows/smoke-project.lock.yml # .github/workflows/smoke-security-alerts.lock.yml # .github/workflows/smoke-update-cross-repo-pr.lock.yml # .github/workflows/smoke-work-queue-dispatcher.lock.yml # .github/workflows/smoke-work-queue-worker.lock.yml # .github/workflows/smoke-workflow-call-with-inputs.lock.yml # .github/workflows/spec-extractor.lock.yml # .github/workflows/spec-librarian.lock.yml # .github/workflows/stale-pr-cleanup.lock.yml # .github/workflows/tidy.lock.yml # .github/workflows/ubuntu-image-analyzer.lock.yml # .github/workflows/visual-regression-checker.lock.yml # .github/workflows/weekly-blog-post-writer.lock.yml # .github/workflows/weekly-editors-health-check.lock.yml # .github/workflows/workflow-health-manager.lock.yml # .github/workflows/workflow-skill-extractor.lock.yml Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
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": "4ecdb22c6450e8f24d9fcce664ec07aec2ca30e5",
"kind": "requested",
"schema_version": "1",
"state": "08752d6f18da73b91224379ba055a954031b865a6491f1bd8d694716f0f35219",
"work": [
"42e5d572d9d75b7168fe7d0aeda0717cc07e65ed240f6d299e6fec661214f1ac",
"8acb61a077717e3a460018aacdfde96fd489f77606cd36169e2328d9079b75bb"
],
"workflow": "pr-sous-chef"
}
|
…odel-routing # Conflicts: # .github/workflows/agent-performance-analyzer.lock.yml # .github/workflows/agentic-token-audit.lock.yml # .github/workflows/agentic-token-optimizer.lock.yml # .github/workflows/architecture-guardian.lock.yml # .github/workflows/auditor.lock.yml # .github/workflows/aw-issue-clustering.lock.yml # .github/workflows/breaking-change-checker.lock.yml # .github/workflows/ci-coach.lock.yml # .github/workflows/cli-consistency-checker.lock.yml # .github/workflows/copilot-opt.lock.yml # .github/workflows/copilot-pr-merged-report.lock.yml # .github/workflows/copilot-pr-nlp-analysis.lock.yml # .github/workflows/copilot-pr-prompt-analysis.lock.yml # .github/workflows/craft.lock.yml # .github/workflows/daily-agent-of-the-day-blog-writer.lock.yml # .github/workflows/daily-ambient-context-optimizer.lock.yml # .github/workflows/daily-assign-issue-to-user.lock.yml # .github/workflows/daily-compiler-quality.lock.yml # .github/workflows/daily-compiler-threat-spec-optimizer.lock.yml # .github/workflows/daily-declarative-engine-improver.lock.yml # .github/workflows/daily-ecosystem-explorer.lock.yml # .github/workflows/daily-experiment-report.lock.yml # .github/workflows/daily-formal-spec-verifier.lock.yml # .github/workflows/daily-geo-optimizer.lock.yml # .github/workflows/daily-graft-intelligence.lock.yml # .github/workflows/daily-pr-review-cursor.lock.yml # .github/workflows/daily-regression-audit-kiro.lock.yml # .github/workflows/daily-report-dispatcher.lock.yml # .github/workflows/daily-safe-output-integrator.lock.yml # .github/workflows/daily-schema-audit-cursor.lock.yml # .github/workflows/daily-secrets-analysis.lock.yml # .github/workflows/daily-security-observability.lock.yml # .github/workflows/daily-spdd-spec-planner.lock.yml # .github/workflows/daily-spec-coverage-kiro.lock.yml # .github/workflows/daily-squid-image-scan.lock.yml # .github/workflows/daily-syntax-error-quality.lock.yml # .github/workflows/daily-team-status.lock.yml # .github/workflows/daily-testify-uber-super-expert.lock.yml # .github/workflows/daily-trajectory-grader-implementer.lock.yml # .github/workflows/daily-work-queue-formal-verification.lock.yml # .github/workflows/daily-work-queues-report.lock.yml # .github/workflows/daily-workflow-security-model.lock.yml # .github/workflows/daily-workflow-updater.lock.yml # .github/workflows/dataflow-pr-discussion-dataset.lock.yml # .github/workflows/dead-code-remover.lock.yml # .github/workflows/delight.lock.yml # .github/workflows/deployment-incident-monitor.lock.yml # .github/workflows/dev-hawk.lock.yml # .github/workflows/dictation-prompt.lock.yml # .github/workflows/docs-noob-tester.lock.yml # .github/workflows/draft-pr-cleanup.lock.yml # .github/workflows/engine-conformance-copilot.lock.yml # .github/workflows/engine-conformance-dispatcher.lock.yml # .github/workflows/enterprise-docs-audit.lock.yml # .github/workflows/eslint-factory-dispatcher.lock.yml # .github/workflows/eslint-miner.lock.yml # .github/workflows/firewall-escape.lock.yml # .github/workflows/firewall.lock.yml # .github/workflows/layout-spec-maintainer.lock.yml # .github/workflows/mcp-inspector.lock.yml # .github/workflows/mergefest.lock.yml # .github/workflows/objective-impact-report.lock.yml # .github/workflows/org-health-report.lock.yml # .github/workflows/plan.lock.yml # .github/workflows/pr-finisher.lock.yml # .github/workflows/pr-nitpick-reviewer.lock.yml # .github/workflows/refiner.lock.yml # .github/workflows/release.lock.yml # .github/workflows/repository-quality-improver.lock.yml # .github/workflows/security-compliance.lock.yml # .github/workflows/slide-deck-maintainer.lock.yml # .github/workflows/smoke-checkout-pr-dispatch.lock.yml # .github/workflows/smoke-copilot-dynamic-workflow.lock.yml # .github/workflows/smoke-create-cross-repo-pr.lock.yml # .github/workflows/smoke-issues.lock.yml # .github/workflows/smoke-multi-pr.lock.yml # .github/workflows/smoke-project.lock.yml # .github/workflows/smoke-security-alerts.lock.yml # .github/workflows/smoke-update-cross-repo-pr.lock.yml # .github/workflows/smoke-work-queue-dispatcher.lock.yml # .github/workflows/smoke-work-queue-worker.lock.yml # .github/workflows/smoke-workflow-call-with-inputs.lock.yml # .github/workflows/spec-extractor.lock.yml # .github/workflows/spec-librarian.lock.yml # .github/workflows/stale-pr-cleanup.lock.yml # .github/workflows/tidy.lock.yml # .github/workflows/ubuntu-image-analyzer.lock.yml # .github/workflows/visual-regression-checker.lock.yml # .github/workflows/weekly-blog-post-writer.lock.yml # .github/workflows/weekly-editors-health-check.lock.yml # .github/workflows/workflow-health-manager.lock.yml # .github/workflows/workflow-skill-extractor.lock.yml Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Merged All 365 workflows compile; focused routing tests, WASM build/Node goldens, impacted Go tests, 41 JS tests, and standard Go lint pass. The final gate remains blocked by existing custom-linter diagnostics in the broader PR. Secret scanning is clean; CodeQL skipped the test-only fix. No PR merge, workflow dispatch, or CI retry was performed. |
|
🎉 This pull request is included in a new release. Release: |


Eligible main-agent workflows that choose no model and no routing now get
engine.model-routingwithgoal: cost,mode: balancedby default. This applies only on GitHub Copilot inference. Explicit choices are preserved. Model variables (vars.GH_AW_MODEL_AGENT_<ENGINE>,vars.GH_AW_DEFAULT_MODEL_<ENGINE>) still win at run time, andengine.model-routing: falseopts out.Eligibility (
pkg/workflow/model_routing_default.go)copilot,claude,codex,pi, with both the effective provider and the credential provider on GitHub Copilot.copilot-requests: writealone does not switch Claude or Codex to Copilot. Claude and Codex keep their model-family candidates.modelorengine.model, including aliases,auto, expressions and empty valuesengine.model-routingengine.fallback-modelsengine.envkey thatisModelRoutingOverrideEnvKeyrecognizesconfig,api-target,auth, or a durable engineengine.argsBASE_URL, effort orCOPILOT_PROVIDER_*keys inengine.envRuntime precedence (activation, before AWF)
resolve-model-routingstep and amodel_routingoutput. The agent variable wins over the default variable. If either is nonempty, the run takes the legacy non-routed path.$GH_AW_MODEL_ROUTING.COPILOT_MODEL,GH_AW_MODEL_AGENT_CLAUDE/_CODEXand the--modelargs are set only on the non-routed path.GH_AW_MODEL_ROUTING,GH_AW_MODEL_ROUTING_ENABLED,GH_AW_INFO_MODEL_CONFIG, and the steeringGH_AW_ENGINE_MODEL.Opt-out
engine.model-routingis nowoneOf: [object, const false]. There is notrueshorthand and no top-level field.EngineConfig.ModelRoutingDisabledkeepsfalsedistinct from absent through extraction and import merging. The main workflow'sfalsebeats imported routing; an imported routing object beats an importedfalse.Diagnostics
Detection, evals, sub-agents
Recompiled locks
92 locks changed. Each is a
copilot-engine workflow on GitHub Copilot inference that chooses no model or routing in its source or imports, and each now carries the runtime-guarded default.Unchanged, by reason:
Tests
model_routing_test.go: theTestCompileDefaultModelRouting_*tests for acceptance cases A–G, plusTestRecompileDefaultModelRouting_EligibleLocksOnly(case H). They decode both the routed and plain AWF config branches.model_env_vars_test.go:TestDefaultModelRoutingActivationHonorsModelVariablesruns the generated activation step and AWF-config script under bash. It covers neither variable, each variable alone, and both set (agent wins).TestCompiledRoutedWorkflowDoesNotRouteDetectionOrEvals,TestRoutedEnginesDoNotRouteThreatDetectionandmodel_routing_contract.test.cjswith implicit and non-routed cases.Docs
reference/model-routing.md: new "Default routing for workflows without a model" section. The explicitmode: autoadvice is now separated from the implicit balanced default.reference/engines.mdandreference/engines/{copilot,claude,codex,pi}.md.frontmatter-full.md: only themodel-routingentry was edited, by hand, because the generator also emits unrelated stale changes.Not verified: no live runs for the default-routing case (A) or the model-variable bypass case (E); those need separate authorization.