Skip to content

Exercise run-time routing levels in three of gh-aw's own workflows #78456

Done

Description

@rabeckett

#77588 let a workflow's model: expression resolve to a router level at run time, as requested in #77587. None of
gh-aw's own workflows uses it yet, so the feature only runs in unit tests and the private sandbox. Following review
feedback on that PR, we'd like a few real workflows to exercise it every day without changing what they do.

We propose converting one workflow per engine that supports run-time routing: code-scanning-fixer (Copilot,
balanced, every six hours), static-analysis-report (Claude on Copilot inference, balanced, daily) and
schema-consistency-checker (Codex on Copilot inference, economy, daily). Each replaces its engine.model-routing
block with a model expression that falls back to the level it uses today, and gains an optional level choice for
manual dispatch that defaults to that same level:

model: ${{ inputs.level || 'router/balanced' }}

Scheduled runs have no inputs, so they route exactly as before, and a manual run changes level only if someone picks
another one. code-scanning-fixer resolves the level in its existing pre-activation job instead, which covers the path
where a pre-activation output selects the model. Each workflow also sets concurrency.job-discriminator, which gh-aw
expects once a dispatch input exists. Runs of each workflow are already serialized by its workflow-level concurrency
group, so this changes nothing in practice.

The three run regularly and reliably, have no sub-agents, allowed-model lists or running experiments, and together
cover the Copilot, Claude and Codex model settings. The routed firewall configuration they compile to is identical to
today's.

One repository test, TestRecompileDefaultModelRouting_EligibleLocksOnly, assumes every lock with a routing decision
step uses the implicit default, so it needs to recognize the run-time decision step as well.

After merge, one manual dispatch of each workflow at a non-default level, checked with gh aw audit, confirms that the
chosen level reaches the router in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementmodel-routingworkflows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions