Repository navigation
Add a top-level routing opt-out and deprecate nested model routing - #79117
Conversation
Keep speed objectives and model overrides intact during migration. Report the specific migration in workflows and shared imports. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
🔎 PR Code Quality Reviewer is reviewing code quality for this pull request... |
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
🚀 PR Specification Reviewer has started processing this pull request |
|
✅ Test Quality Sentinel completed test quality analysis. Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. 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. Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error.
|
|
✅ Ponytail Reviewer completed successfully! Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. 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.
|
|
Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. 🏗️ Design Decision Gate — ADR RequiredThis PR makes significant changes to core business logic: 221 added lines under The branch already contains I did not commit a second draft. This decision already has a record in this PR, and a duplicate would split it across two files.
📋 What to do next
Once a complete ADR is linked, this gate re-runs and checks that the implementation matches the Decision. 🧭 Suggested alternatives (drafted from the ADR text; verify before committing)
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The published opt-out example uses model-routing: true, which the schema rejects, causing compilation to fail rather than disabling routing.
1 open issue
What changed in this PR
This PR adds a top-level routing opt-out to gh-aw and begins the nested-routing deprecation window for #78930, following the smoke workflow migration in #79106. Speed routing remains supported; runtime and routing-table removal are separate work.
Changes:
- Support
model-routing: falsein workflows and shared imports while preserving model override precedence. - Warn on legacy nested declarations and test opt-out behavior, conflicts, and unchanged routing objectives.
- Update schemas, migration guidance, reference documentation, and release notes.
| File | Description |
|---|---|
pkg/workflow/model_routing_test.go |
Update notice expectations and allow migration warnings. |
pkg/workflow/model_routing_default.go |
Recognize top-level choices and update opt-out notices. |
pkg/workflow/model_router_value_test.go |
Test opt-outs, precedence, conflicts, and migration warnings. |
pkg/workflow/engine_resolution.go |
Apply opt-outs after engine and import resolution. |
pkg/workflow/compiler_orchestrator_workflow.go |
Use opt-out-aware engine resolution during compilation. |
pkg/workflow/compiler_orchestrator_tools.go |
Emit authored nested-routing warnings. |
pkg/parser/schemas/main_workflow_schema.json |
Accept top-level false and describe nested deprecation. |
pkg/parser/model_routing_deprecation.go |
Generate migration guidance for legacy routing. |
pkg/parser/import_processor.go |
Expose imported opt-out state. |
pkg/parser/import_extract_frontmatter.go |
Warn on imported legacy declarations and reject conflicts. |
pkg/parser/import_extract_engine.go |
Extract top-level opt-outs from imports. |
pkg/parser/import_accumulator.go |
Carry imported opt-outs into parser results. |
docs/src/content/docs/specs/model-alias-specification.md |
Specify opt-out and migration requirements. |
docs/src/content/docs/reference/model-routing.md |
Document migration and shared routing configuration. |
docs/src/content/docs/reference/frontmatter.md |
Introduce the opt-out and link migration guidance. |
docs/src/content/docs/reference/frontmatter-full.md |
Refresh generated routing descriptions and examples. |
docs/src/content/docs/reference/engines/pi.md |
Document Pi’s top-level opt-out. |
docs/src/content/docs/reference/engines/copilot.md |
Document Copilot’s top-level opt-out. |
docs/src/content/docs/reference/engines/codex.md |
Document Codex’s top-level opt-out. |
docs/src/content/docs/reference/engines/claude.md |
Document Claude’s top-level opt-out. |
docs/src/content/docs/reference/engines.md |
Update general engine opt-out guidance. |
docs/adr/78930-disable-implicit-routing-without-a-model.md |
Record the migration decision and release boundaries. |
.github/aw/syntax-engine.md |
Update authoring guidance for opt-outs and deprecation. |
.changeset/deprecate-nested-model-routing.md |
Announce the opt-out and migration warnings. |
Review effort: Balanced (adaptive)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Part of #78930, following #79106. This is the compiler migration window, not the removal of the speed objective.
Use top-level
model-routing: falsein a workflow or shared import to opt out without pinning a model. Model overrides and the engine default keep their existing precedence. A router selector or shortlist cannot be combined with the opt-out.Compiling the old
engine.model-routingform gives one migration warning per authored declaration. A cost route points to the matching selector. A speed route explains that there is no equivalent: it still selects for speed until the author deliberately picks a cost level. Nothing is silently converted and no firewall options, tables, or existing locks are removed.ADR-79117: Disable implicit routing without choosing a model records why omission, pinning, and
router/offare not equivalent. This addresses the Design Decision Gate feedback.Validation
go test ./pkg/workflow -run 'TestCompile(RouterOptOut|LegacyRoutingMigrationWarnings|DefaultModelRouting|RouterModelValue)' -count=1: 138 tests and subtests passed. Covers local and shared opt-outs, model overrides, invalid combinations, and unchanged compiled speed objectives and candidates.make fmt,make check-instruction-prefixes, andmake agent-report-progresspassed. All 366 maintained workflows compiled without lock drift.model-routing: false. Its regression assertion failed before the generator fix and passed afterward. Three unrelateddispatch-repositoryassertions also fail on the unmodified base.mainsince merge as of 2026-11-18 21:53 UTC. No live smoke was dispatched; the next scheduled routed SDK smoke is the independent runtime check for that migration.