Skip to content

Alias wildcards should skip models AWF marks as not automatically selectable #78800

Done

Description

@rabeckett

gh-aw resolves model aliases in the engine harness, before the agent starts, against the model list in AWF's /reflect. That list contains every model the org's Copilot catalogue returns, including models that can't run an agent. So a wildcard like copilot/gpt-6* can pick an evaluation or utility model. This caused #76961, where auto resolved to gpt-6-luna-decisions, which only serves /v1/decisions. It also caused #72353, with gpt-5.6-luna-utility, which isn't enabled in the Copilot picker.

AWF's own resolver had the same gap. github/gh-aw-firewall#11741 describes it, and github/gh-aw-firewall#11740 fixes it there and defines the rule once. A model can't be chosen automatically when the provider marks it as not enabled in the picker, or when it lists only non-agent endpoints. Models without that metadata stay eligible. With that change, each routing_models entry in /reflect includes automatic_selection_eligible. When that is false, it also includes automatic_selection_reason (model_picker_disabled or no_agent_endpoint).

AWF is the source of truth for this, so gh-aw should read the field rather than recompute it. When gh-aw expands an alias pattern that contains *, it should treat models marked ineligible as non-matches, so resolution moves on to the next pattern. Explicit choices should keep resolving as written. That covers a model ID written directly and an alias entry without *, such as the built-in evals alias, which targets the decisions model on purpose. If /reflect doesn't publish the field (an older AWF), behaviour should stay as it is today. This should apply everywhere gh-aw resolves aliases against /reflect: the main model for each engine and sub-agent models. actions/setup/js/engine_subagent_models.cjs already narrows the /reflect model list by endpoint for sub-agents, so there's a precedent. Using the catalogue from the run in #76961, auto and large would resolve to gpt-5.3-codex, and gpt-5 would no longer pick gpt-5.6-luna-utility.

Once an AWF release includes the change, DefaultFirewallVersion should be moved to it. The alias docs (the model tables reference and the glossary entry) should also say that wildcards skip models AWF marks as not automatically selectable.

Activity

  1. added
    bug
    on Nov 17, 2026
  2. github-actions commented on Nov 20, 2026

    @github-actions
    Contributor

    Assigned to @rabeckett, who recently worked on model routing shortlists (#79076, #79106), the area this alias-wildcard bug touches.

    Generated by 🔧 Daily Assign Issue To User · copilot · routed: haiku55 xhigh · ~4 AIC · ⌖ ~1 AIC · ⊞ 2.6K · ◷

  3. added a commit that references this issue on Nov 20, 2026
    6238b13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugmodel-routing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions