Skip to content

Support AWF task-level model routing in the Copilot engine - #64403

Closed
lpcox with Copilot wants to merge 2 commits into
mainfrom
copilot/support-awf-routing
Closed

lpcox with Copilot wants to merge 2 commits into
mainfrom
copilot/support-awf-routing

Conversation

Copilot AI commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Copilot workflows could not use AWF’s task-level routing: the compiler omitted routing configuration, and the harness used compile-time model settings that could conflict with AWF’s selection. This change adds routing configuration and makes the Copilot runtime follow the selected model, endpoint, and effort.

  • Workflow configuration: Add engine.model-routing with goal, mode, and allowed models. The compiler emits AWF routing configuration and provider-qualified model IDs, writes the rendered prompt to a trusted conversation file, and requires AWF v0.28.29 or newer with pinned router images.
  • Copilot runtime: Read the selection from /reflect, override model and wire API, and apply the selected effort in CLI, SDK, and sub-agent paths. Routed runs skip model fallback and alias rewriting.
  • Failure handling: Treat routing mismatches and AWF exit 78 as terminal routing failures, distinct from generic agent or HTTP 403 failures.
engine:
  id: copilot
  model-routing:
    goal: cost
    mode: balanced
    allowed-models: [claude-haiku-4.5, gpt-5.4-mini]

Copilot AI changed the title [WIP] Add support for AWF task-level model routing in Copilot engine Support AWF task-level model routing in the Copilot engine Sep 30, 2026
Copilot AI requested a review from lpcox September 30, 2026 05:18
@lpcox lpcox closed this Sep 30, 2026
@github-actions
github-actions Bot deleted the copilot/support-awf-routing branch October 8, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support AWF task-level model routing in the Copilot engine

2 participants