Skip to content

Choose the routing level at run time in three workflows - #78457

Merged
pelikhan merged 1 commit into
mainfrom
routing/dynamic-routing-coverage
Nov 16, 2026
Merged

pelikhan merged 1 commit into
mainfrom
routing/dynamic-routing-coverage

Conversation

@rabeckett

Copy link
Copy Markdown
Collaborator

This gives the run-time routing path from #77588 daily coverage on each engine, without changing what the workflows
do. code-scanning-fixer (Copilot), static-analysis-report (Claude on Copilot inference) and
schema-consistency-checker (Codex on Copilot inference) replace their engine.model-routing block with a model
expression that falls back to the level they use today, and gain an optional level choice for manual dispatch that
defaults to the same level. Scheduled runs have no inputs, so they keep routing exactly as before.
code-scanning-fixer resolves the level in its existing pre-activation job, which covers the case where a
pre-activation output selects the model.

Each workflow also sets concurrency.job-discriminator, which gh-aw asks for once a dispatch input exists. Runs of
each workflow are already serialized by its workflow-level concurrency group, so only the job-level group names
change. The compiled firewall routing configuration, the job list and the threat-detection model on a routed run are
the same as before.

The first real workflows on this path exposed a gap in TestRecompileDefaultModelRouting_EligibleLocksOnly: it
treated every lock with a routing decision step as the implicit default. It now recognizes the run-time decision step
and requires its workflow to declare the model.

Fixes #78456

code-scanning-fixer (Copilot), static-analysis-report (Claude) and
schema-consistency-checker (Codex) now choose their routing level from
their model expression instead of an engine.model-routing block, so the
run-time routing path from #77588 runs on each engine. Scheduled runs keep
their current level; a manual dispatch defaults to it and can pick another.
code-scanning-fixer resolves the level in its pre-activation job.

TestRecompileDefaultModelRouting_EligibleLocksOnly now tells the dynamic
decision step apart from the implicit routing default.

Co-authored-by: Copilot <[email protected]>
@rabeckett
rabeckett requested a balanced review from Copilot November 16, 2026 21:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

5 open issues
What changed in this PR

Adds run-time selection of routing level (via a level workflow_dispatch input) for three agentic workflows while keeping scheduled behavior unchanged, and updates routing lock validation to account for the new run-time decision step (Fixes #78456).

Changes:

  • Add optional workflow_dispatch input level to select router level at run time; scheduled runs keep existing defaults.
  • Introduce job-level concurrency.job-discriminator and update job concurrency group naming to incorporate github.run_id.
  • Update TestRecompileDefaultModelRouting_EligibleLocksOnly to require workflows using run-time routing resolution to declare a model.
File Description
pkg/​workflow/​model_routing_test.go Adjusts lock eligibility test to recognize run-time routing resolution and require model declaration.
.github/​workflows/​static-analysis-report.md Adds level input and switches from engine.model-routing to a model expression fallback.
.github/​workflows/​static-analysis-report.lock.yml Regenerates lock with routing-resolution step, updated concurrency grouping, and model selector plumbing.
.github/​workflows/​schema-consistency-checker.md Adds level input and switches from engine.model-routing to a model expression fallback.
.github/​workflows/​schema-consistency-checker.lock.yml Regenerates lock with routing-resolution step, updated concurrency grouping, and model selector plumbing.
.github/​workflows/​code-scanning-fixer.md Adds level input and resolves level via pre-activation output, then uses it as engine.model.
.github/​workflows/​code-scanning-fixer.lock.yml Regenerates lock with routing-resolution step, updated concurrency grouping, and model selector plumbing.

Review effort: Lite

Copilot stopped reviewing on behalf of rabeckett due to an error November 16, 2026 21:40
@rabeckett
rabeckett requested a balanced review from Copilot November 16, 2026 21:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Activation-time routing couples cross-job dependencies, firewall configuration, model selection, and threat detection across Copilot, Claude, and Codex, requiring broader runtime validation than limited-scope automated approval can provide.

No open issues 🎉

5 resolved since last review

Review effort: Balanced

@rabeckett
rabeckett marked this pull request as ready for review November 16, 2026 22:28
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated by PR Specification Reviewer for #78457 · copilot · gpt56 · ~4 AIC · ⌖ ~1 AIC · ⊞ 1.6K · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

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.

Generated by Ponytail Reviewer for #78457 · codex · routed: gpt61 medium · ~3 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~5 AIC · ⌖ ~1 AIC · ⊞ 1.5K · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

Matt Pocock Skills Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~9 AIC · ⌖ ~2 AIC · ⊞ 6.6K · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

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.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the changed workflow sources and routing test. I found no additional actionable correctness or regression issues in the changed lines beyond the existing review threads, which already cover the input-expression and fallback concerns. The generated lock files were not independently revalidated because this is a static review using the pre-fetched diff.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~5 AIC · ⌖ ~1 AIC · ⊞ 1.5K
Comment /review to run again

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (spec-review-history)
{"id":"ldg-ad6b2252-4774-4e74-9a57-baad1307dc87","parents":[],"payload":{"id":"ldg-54856511-eb2f-4e86-90a7-18aa1c55e046","operation":"append","value":{"finding_count":0,"head_sha":"6412cdaf2ec5c4e0f6924f025a40b92aa550bb72","outcome":"aligned"}},"sha":"sha256:1650fdae4d5cd2120139d5d6abbcec6e94242b009cb68beb3c97cb3ebd601c23","timestamp":"2026-11-16T22:37:32.555Z","type":"ledger_append","version":1}
History

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-82335a8d-960c-49b4-b9a4-2c5dc335dd75","parents":[],"payload":{"id":"ldg-0b9455d9-2e6b-4ee8-8470-a60f4857fa50","operation":"append","value":{"finding_count":0,"head_sha":"6412cdaf2ec5c4e0f6924f025a40b92aa550bb72","outcome":"no_findings"}},"sha":"sha256:3af987bd5de552da36ab50f283e4347730aa42871db7703b2e86280a8130b793","timestamp":"2026-11-16T22:38:26.416Z","type":"ledger_append","version":1}
History

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skills-Based Review 🧠

Applied /tdd and /codebase-design. The run-time routing change checks out: the compiled locks match a fresh build from source (cron minutes aside), the targeted tests pass, and scheduled runs keep their current routing.

📋 Verification & Findings

Verified

  • inputs is empty on schedule runs, not an error. dependabot-burner already reads inputs.objective the same way, so the existing “fails evaluation” threads don’t apply.
  • The claude-sonnet-5 fallback in static-analysis-report is the compiler’s standard Claude default and matches other locks. The change from 'agent' is intentional.
  • Concurrency: the workflow-level group still serializes runs; job-discriminator only changes job-level group names.
  • The job list for code-scanning-fixer is unchanged. on.steps is an established mechanism that the compiler reads, so the pre-activation pick-level step is valid.

Suggestions (non-blocking)

  • Add a direct unit case for declaresModelOrRoutingChoice covering engine.model expressions (inline comment on model_routing_test.go).
  • Keep the balanced default in sync between the level input and the shell fallback in code-scanning-fixer.md (inline comment).

@copilot please address the inline suggestions above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~9 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again

Comment thread pkg/workflow/model_routing_test.go Resolved
@rabeckett

Copy link
Copy Markdown
Collaborator Author

@pelikhan this is ready for review at 6412cda. CI is green (77 checks passed, none failing), the branch is clean against main, and every review thread is resolved. It enables the run-time routing level from #77588 on three workflows, as you suggested, with no change to their scheduled behavior.

Validation: I dispatched each workflow from this branch at its default level and at another level, and audited every run with gh aw audit:

Workflow Engine Default dispatch Other level
code-scanning-fixer Copilot SDK, via pre-activation balanced, claude-sonnet-5.5 economy, claude-haiku-5.5
static-analysis-report Claude on Copilot balanced, claude-sonnet-5.5 economy, claude-haiku-5.5
schema-consistency-checker Codex on Copilot economy, gpt-6.1-terra balanced, gpt-6.1-terra

All six runs succeeded. aw_info and usage/aw_session.jsonl record the requested level, and threat detection stayed on its default model. Scheduled runs have no inputs, so they keep today's levels, and the compiled routing configuration is identical to main's.

Reviews: Copilot's balanced review reports no open issues. The Matt Pocock reviewer's two suggestions (a unit case for declaresModelOrRoutingChoice, and a comment tying each fallback to its input default) were answered as non-blocking.

I ran the routing tests locally, not the full local gate. The few local failures I saw also fail on main.

Could you merge if it looks good?

@pelikhan
pelikhan merged commit d9eaeb2 into main Nov 16, 2026
647 of 648 checks passed
@pelikhan
pelikhan deleted the routing/dynamic-routing-coverage branch November 16, 2026 23:08

@jwadkably293-creator jwadkably293-creator left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

routing/dynamic-routing-coverage

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.1

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

4 participants