Repository navigation
Choose the routing level at run time in three workflows - #78457
Conversation
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]>
There was a problem hiding this comment.
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
Two issues here: (1)inputs.levelmay be undefined on scheduled runs, which can break… · New Two issues here: (1)inputs.levelmay be undefined on scheduled runs, which can break… · Newinputscontext may be undefined for scheduled runs; referencinginputs.levelcan fail… · Newinputscontext is not guaranteed to exist on non-workflow_dispatchevents (e.g.,schedule) in… · New This changes the fallback from the previously locked default ('agent') to'claude-sonnet-5'. If… · New
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_dispatchinputlevelto select router level at run time; scheduled runs keep existing defaults. - Introduce job-level
concurrency.job-discriminatorand update job concurrency group naming to incorporategithub.run_id. - Update
TestRecompileDefaultModelRouting_EligibleLocksOnlyto 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
There was a problem hiding this comment.
🔵 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
inputscontext is not guaranteed to exist on non-workflow_dispatchevents (e.g.,schedule) in…inputscontext may be undefined for scheduled runs; referencinginputs.levelcan fail… Two issues here: (1)inputs.levelmay be undefined on scheduled runs, which can break… Two issues here: (1)inputs.levelmay be undefined on scheduled runs, which can break… This changes the fallback from the previously locked default ('agent') to'claude-sonnet-5'. If…
Review effort: Balanced
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: 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.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: 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.
|
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: 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.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅ Matt Pocock Skills ReviewerOutcome: 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.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: 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.
|
There was a problem hiding this comment.
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
Comment MemoryPeek at saved memory (spec-review-history)History |
Comment MemoryPeek at saved memory (review-history)History |
There was a problem hiding this comment.
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
inputsis empty on schedule runs, not an error.dependabot-burneralready readsinputs.objectivethe same way, so the existing “fails evaluation” threads don’t apply.- The
claude-sonnet-5fallback instatic-analysis-reportis 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-discriminatoronly changes job-level group names. - The job list for
code-scanning-fixeris unchanged.on.stepsis an established mechanism that the compiler reads, so the pre-activationpick-levelstep is valid.
Suggestions (non-blocking)
- Add a direct unit case for
declaresModelOrRoutingChoicecoveringengine.modelexpressions (inline comment onmodel_routing_test.go). - Keep the balanced default in sync between the
levelinput and the shell fallback incode-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
|
@pelikhan this is ready for review at 6412cda. CI is green (77 checks passed, none failing), the branch is clean against Validation: I dispatched each workflow from this branch at its default level and at another level, and audited every run with
All six runs succeeded. Reviews: Copilot's balanced review reports no open issues. The Matt Pocock reviewer's two suggestions (a unit case for I ran the routing tests locally, not the full local gate. The few local failures I saw also fail on Could you merge if it looks good? |
jwadkably293-creator
left a comment
There was a problem hiding this comment.
routing/dynamic-routing-coverage
|
🎉 This pull request is included in a new release. Release: |


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) andschema-consistency-checker(Codex on Copilot inference) replace theirengine.model-routingblock with a modelexpression that falls back to the level they use today, and gain an optional
levelchoice for manual dispatch thatdefaults to the same level. Scheduled runs have no inputs, so they keep routing exactly as before.
code-scanning-fixerresolves the level in its existing pre-activation job, which covers the case where apre-activation output selects the model.
Each workflow also sets
concurrency.job-discriminator, which gh-aw asks for once a dispatch input exists. Runs ofeach 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: ittreated 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