copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

HydraFusion (policy max): router returns models outside the policy universe, then silently falls back to gpt-5.6-luna

Open neumaennl opened this issue 1 month ago • 1 comments

Describe the bug

With HydraFusion selected (policy max), most turns fail at the routing step and silently continue on a lower-tier model. The UI only shows:

HydraFusion routing failed; continuing with gpt-5.6-luna

The session log records the reason:

{
  "type": "session.fusion_route_failed",
  "syntheticModel": "hydrafusion",
  "policy": "max",
  "reason": "invalid_response",
  "errorMessage": "fusion routing returned an invalid response: fusion route references a model outside the selected policy universe: gpt-6.1-sol",
  "fallbackModel": "gpt-5.6-luna"
}

In one session over two days there were 10 routing failures against 3 successful routes:

Model returned by the router Failures
gpt-6.1-sol 9
claude-sonnet-5.5 1

Both rejected models are enabled for the account. The model list the runtime publishes to VS Code in the same session lists gpt-6.1-sol (and claude-sonnet-5.5) with "policyState": "enabled". The server-side router (routeSource: "capi_plan") therefore seems to work with a different model set than the runtime's "policy universe" for max. I couldn't find out how the runtime builds that set.

There are two problems here:

  1. Router and runtime disagree on the allowed models. The router keeps choosing models the runtime then rejects, so most turns never run as HydraFusion.
  2. The fallback is a silent capability downgrade. When the route is rejected, the turn runs on gpt-5.6-luna instead. A user who picked HydraFusion with the max policy for a demanding task (planning, in my case) ends up on a much cheaper model, with only a transient warning.

A related observation: the routes that did succeed under max also only used gpt-5.6-luna (primary/fallback/follow-up) and gpt-5.6-terra (secondary) with the Critique pattern. Higher-tier models such as claude-opus-5.5, which is enabled for the account, were never chosen. Those resolved routes also report "policyVersion": null and "modelUniverseVersion": null, which may be relevant to the mismatch.

Affected version

Copilot runtime 1.0.92-4.unstable.r37397886721.gad270aa (bundled @github/copilot-sdk-linux-x64 1.0.17-unstable.37397886721.gad270aa)

Steps to reproduce the behavior

  1. In VS Code agent mode (Copilot SDK agent host), select HydraFusion as the model. The routing policy is max.
  2. Send a normal multi-step coding/planning request.
  3. The warning "HydraFusion routing failed; continuing with gpt-5.6-luna" appears for most turns.
  4. The session's events.jsonl contains session.fusion_route_failed events with reason: "invalid_response" and "fusion route references a model outside the selected policy universe: ".

This happened consistently over two days. I haven't tested other policies.

Expected behavior

  • The router only returns models that are inside the runtime's policy universe for the selected policy. Models the account has enabled (such as gpt-6.1-sol) should either be in the max universe or not be routed to.
  • If a route is invalid anyway, the fallback should not silently downgrade capability. Either fall back to a model of comparable tier for the selected policy, or fail the turn with a clear, retryable error so the user can pick a model.
  • Ideally, the UI makes it obvious that the turn did not run as HydraFusion.

Additional context

  • VS Code 1.141.0, Windows client with a WSL (Ubuntu) remote; the agent host runs in WSL (Linux x86_64).
  • GitHub Enterprise Cloud account with data residency (*.ghe.com host). I don't know whether the router's model set differs for those tenants.
  • Possibly related: microsoft/vscode#339959 (HydraFusion offered although the runtime rejects it: a different symptom, but the same client/runtime model-policy mismatch) and github/app#4569 (preference for higher-capability routing).
  • I can share more session.fusion_* event fields if that helps.

neumaennl avatar Oct 09 '26 09:10 neumaennl

Confirmed on macOS: policy-universe mismatch and model fallback

[!IMPORTANT] These are two directly observed router failures, not an inference from a slow conversation. Both occurred with HydraFusion policy max.

Environment

Component Observed value
VS Code 1.141.2, build dated 2026-10-14
Copilot runtime from session.start 1.0.92-4.unstable.r37397886721.gad270aa
Host VS Code integrated Copilot agent host on macOS
Evidence window 2026-10-16 11:17 UTC to 2026-10-17 11:17 UTC

Observed failures

UTC time on October 16 Rejected model Reported fallback
13:53:36 gpt-6-luna gpt-5.6-sol
14:30:48 gpt-6.1-sol mai-code-1.1-flash
Sanitized event fields shared by both failures
{
  "type": "session.fusion_route_failed",
  "policy": "max",
  "reason": "invalid_response",
  "errorMessage": "fusion routing returned an invalid response: fusion route references a model outside the selected policy universe: <rejected model>"
}

The rejected and fallback model values are listed separately above. No raw conversation, session identifiers, filesystem paths, credentials, or tool payloads are included.

Why this mattered in my workflow

I selected HydraFusion, but the router returned a model its own policy validator rejected; execution then reported a fallback to a different model. The mai-code-1.1-flash fallback also makes model/context compatibility relevant to #5042, although I did not observe its compaction_static_context_blocked failure.

My broader slowdown had multiple contributors: custom instructions encouraged repeated subagent/review handoffs, and every observed successful route used policy max. Those local orchestration choices do not explain or excuse an invalid policy-universe response, but they mean I cannot attribute all latency or billing to these two router failures.

Mitigation and verification boundary

  • [x] Verified both failure records in local session events.
  • [x] Changed my custom workflow to direct-first rather than mandatory agent chains.
  • [x] Disabled HydraFusion in my contribution profile/workspace as a local mitigation.
  • [ ] No post-upgrade reproduction or controlled performance comparison yet.

Could the router validate candidate models against the selected policy before returning a route, and make any fallback's effective model and context compatibility explicit? Related observations on orchestration and observability are tracked separately in #4849 and #4825.

pimmink avatar Oct 17 '26 12:10 pimmink