Skip to content

Route nine Claude Code workflows still on claude-sonnet-5 through Copilot model routing - #74666

Merged
SivaKesava1 merged 3 commits into
mainfrom
copilot/model-routing-clause-code-workflows
Nov 4, 2026
Merged

SivaKesava1 merged 3 commits into
mainfrom
copilot/model-routing-clause-code-workflows

Conversation

Copilot AI commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Nine Claude Code workflows still run on the default model, claude-sonnet-5. This moves them to Copilot model routing, the same way as Sergo, Static Analysis Report and Instructions Janitor. Estimated saving is about 2,000–2,500 AIC/week.

Workflow changes (.github/workflows/*.md)

permissions:
  copilot-requests: write
engine:
  id: claude
  model-provider: github
  model-routing:
    goal: cost
    mode: economy   # balanced for daily-vulnhunter-scan, developer-docs-consolidator
  • engine: claude shorthand: replaced with the block above.
  • Existing engine: blocks: gained model-provider and model-routing; their other fields are unchanged.
  • model: claude-sonnet-5: removed from daily-vulnhunter-scan and semantic-function-refactor.
  • Kept as before: prompts, steps, sub-agents (small/large aliases), experiments and safe outputs. No model pins or allowed-models were added.
Workflow Mode
daily-vulnhunter-scan balanced
developer-docs-consolidator balanced
semantic-function-refactor economy
lockfile-stats economy
step-name-alignment economy
daily-astrostylelite-markdown-spellcheck economy
daily-safeoutputs-git-simulator economy
github-mcp-tools-report economy
daily-elixir-credo-snippet-audit economy

Lock files (only these nine were recompiled)

  • All nine:
    • turn routing on and add the "Prepare model-routing conversation" step;
    • pin the AWF router image;
    • set COPILOT_GITHUB_TOKEN: ${{ github.token }};
    • no longer reference secrets.ANTHROPIC_API_KEY.
  • daily-vulnhunter-scan and semantic-function-refactor: threat detection moves from the claude-sonnet-5 pin to its default model.
  • Unrelated lines: main already has lock drift from Add dependency-free OTLP protobuf support for Azure Monitor #74594, so each of the nine locks also gains OTEL_EXPORTER_OTLP_PROTOCOL lines. No other locks are touched.

Review notes

  • New compile warnings: five sub-agents now warn that their alias "may be incompatible with the claude engine's model-routing API": config-simulator, tool-list-diff, tool-doc-writer, file-cataloger and tone-analyzer. The small/large aliases can resolve to non-Claude models (mini, gpt-*, gemini-pro). The aliases are kept as the issue asks.
  • Checks failing outside this diff: make agent-finish hits failures in code and workflows this PR doesn't touch, so these are believed to fail on main too; that hasn't been confirmed on a clean main checkout.
    • golint: from [avenger] Fix update handling of conflicted workflows #74552.
    • test-integration: TestDownloadWorkflowLogsForTargets*.
    • test-js: send_otlp_span, awf_reflect_summary, copilot_sdk_mcp_config, and model_pin_check on agent-persona-explorer.md.
    • test-scripts: USE-001.
    • Also failing: validate-otel-contract, fix, security-govulncheck.
  • CodeQL: the check timed out, so there is no CodeQL result for this PR.
  • Follow-up: the issue's "Check" section is not done here. It covers auditing the first routed runs against the AIC/run column, watching for Opus high/xhigh picks, and comparing PR acceptance and VulnHunter findings with recent runs.

Copilot AI changed the title [WIP] Route nine Claude Code workflows to Copilot Route nine Claude Code workflows still on claude-sonnet-5 through Copilot model routing Nov 4, 2026
Copilot AI requested a review from SivaKesava1 November 4, 2026 00:28
@SivaKesava1
SivaKesava1 marked this pull request as ready for review November 4, 2026 00:29
Copilot AI adaptive review requested due to automatic review settings November 4, 2026 00:29
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Nov 4, 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 from Ponytail Reviewer · routed: gpt56 max · ~2 AIC · ⌖ ~1 AIC · ⊞ 118 · ◷

Generated by Ponytail Reviewer for #74666

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

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 from Design Decision Gate 🏗️ · routed: gpt56 max · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.7K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 4, 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.

Generated from Test Quality Sentinel · routed: gpt56 max · ~2 AIC · ⌖ ~1 AIC · ⊞ 6.3K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (pr-code-quality-reviewer)
reviewed_at: 2026-11-04T00:33:44Z
review_event: REQUEST_CHANGES
top_themes: [Claude model-routing compatibility, incompatible sub-agent aliases]
files_reviewed: [.github/workflows/developer-docs-consolidator.md]
comment_count: 1

Note

This comment is managed by comment memory.

Expand the saved memory block to view or edit the persistent context for this thread.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

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

@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.

The routing migration retains known-incompatible sub-agent aliases.

Highlights
  • small/large aliases can resolve to non-Claude models under the new Claude routing configuration.
  • The compiler warnings documented in the PR and the repository routing guidance indicate possible endpoint/tool incompatibility and startup failure.

Please pin Claude-compatible sub-agent models (or remove those overrides), then recompile and verify the routed workflows.

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

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

Five preserved sub-agent aliases resolve to non-Claude model families under the new provider, triggering compatibility warnings that require runtime validation, while first-run cost and output-quality checks remain outstanding.

No open issues 🎉

What changed in this PR

Moves nine Claude Code workflows to cost-focused Copilot model routing, implementing the configuration changes in #74661 while retaining Claude Code as the agent engine.

Changes:

  • Enables GitHub-backed inference and copilot-requests: write, using economy for seven workflows and balanced for VulnHunter and Developer Docs Consolidator.
  • Removes two explicit Sonnet 5 pins while preserving prompts, tools, sub-agents, and safe outputs.
  • Regenerates lock files with routing setup, GitHub-token authentication, runtime model metadata, and telemetry protocol settings from #74594.

Cost savings and output quality remain subject to the planned first-run audits.

File Description
.github/​workflows/​step-name-alignment.md Enables economy routing and Copilot permission.
.github/​workflows/​semantic-function-refactor.md Removes the Sonnet pin and enables economy routing.
.github/​workflows/​lockfile-stats.md Replaces engine shorthand with economy routing.
.github/​workflows/​lockfile-stats.lock.yml Generates routing, token authentication, and Copilot threat detection.
.github/​workflows/​github-mcp-tools-report.md Enables economy routing for tools reporting.
.github/​workflows/​github-mcp-tools-report.lock.yml Generates routing and updates sub-agent model-resolution metadata.
.github/​workflows/​developer-docs-consolidator.md Enables balanced routing for documentation consolidation.
.github/​workflows/​daily-vulnhunter-scan.md Removes the Sonnet pin and enables balanced routing.
.github/​workflows/​daily-safeoutputs-git-simulator.md Enables economy routing for Git simulation.
.github/​workflows/​daily-elixir-credo-snippet-audit.md Enables economy routing for Credo audits.
.github/​workflows/​daily-elixir-credo-snippet-audit.lock.yml Generates routing and GitHub-token authentication for inference and evaluations.
.github/​workflows/​daily-astrostylelite-markdown-spellcheck.md Enables economy routing for spelling fixes.

Review effort: Balanced (auto)

@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 /codebase-design and /grill-with-docs. Requesting changes because the new Claude routing leaves five inline sub-agent model warnings that can become runtime delegation failures.

📋 Key themes
  • daily-safeoutputs-git-simulator.md: large can resolve outside the Claude family.
  • github-mcp-tools-report.md: two small workers can resolve outside the Claude family.
  • developer-docs-consolidator.md: two small workers can resolve outside the Claude family.

The compiler reproduced all five warnings. Claude CLI sessions use one wire API for the parent and sub-agents, so replace these broad aliases with Claude-family aliases such as sonnet/haiku or exact claude-* IDs, then recompile. The PR description already records these warnings, but retaining them risks failed or silently degraded workers.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: gpt56 max · ~15 AIC · ⌖ ~1 AIC · ⊞ 5.4K
Comment /matt to run again

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Note

The pull request was not created — a fallback review issue was created instead due to protected file changes: #74703

PR finisher pass: pinned the routed sub-agents to Claude models (file-cataloger/tone-analyzer/tool-list-diff/tool-doc-writer → claude-haiku-4.5, config-simulator → claude-sonnet-5) in the three workflow sources, which should clear the model-routing compatibility warnings. Submitted for publication, not confirmed pushed. Lock files were not regenerated in the submission (generated YAML excluded), so a maintainer needs to run make recompile. The merge with main failed because the sandbox has no git credentials; the branch still needs a base update. Review replies and resolutions are deferred until the fix is published. I did not run make agent-report-progress, only a compile check. CI needs a maintainer re-trigger.

PR_FINISHER_WORK_SUMMARY: PR finisher dispatch requested for the listed outstanding work.
Sous-chef head: 1b0c62b
Sous-chef work: 09598fe2d7226915513374b68d99e621af8f6d047bb8e7d56f96ac62bebc0db9 111dcd83da286ef2e937841b2cb3e381894aaafcaeb38fd27eacd0646c7034ce bc9c79809b4b7d0d1f9178a6e06868c7c4902dcb92dd69cbc6e43fd34b55a781 d63b0639156ae57a7d80c98e3c7d8f8a078e439f9b8baacbae887e0fb4552070
Sous-chef state: 7a795dcf4ed1c8b2594a5fe581e5611970ce982fba83928a0da1b6e25696d16a

Generated by 🏁 PR Finisher · copilot · auto · ~22 AIC · ⌖ ~1 AIC · ⊞ 10.7K · ◷

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Note

The pull request was not created — a fallback review issue was created instead due to protected file changes: #74706

PR finisher pass: changed the flagged sub-agent aliases to Claude ids (claude-haiku-4.5 for the small workers in developer-docs-consolidator and github-mcp-tools-report; claude-sonnet-4-6 for config-simulator). The change is submitted for publication, not confirmed pushed.

  • Validation: make recompile ran, and no warnings remain for these three workflows. Lock files were deliberately excluded from the submission. make agent-report-progress was not run.
  • Not done: make merge-main failed with an SSL/fetch error (no credentials), so the branch was not updated with main. A maintainer needs to do that.
  • Review replies and thread resolutions are deferred until the fix is published.
  • Needs a maintainer: lock files must be regenerated and CI re-triggered.

PR_FINISHER_WORK_SUMMARY:

  1. Update this branch with the latest main using make merge-main.

2-5. Review threads on sub-agent aliases (developer-docs-consolidator, github-mcp-tools-report, daily-safeoutputs-git-simulator).

Sous-chef head: 1b0c62b
Sous-chef work: 09598fe2d7226915513374b68d99e621af8f6d047bb8e7d56f96ac62bebc0db9 111dcd83da286ef2e937841b2cb3e381894aaafcaeb38fd27eacd0646c7034ce bc9c79809b4b7d0d1f9178a6e06868c7c4902dcb92dd69cbc6e43fd34b55a781 d63b0639156ae57a7d80c98e3c7d8f8a078e439f9b8baacbae887e0fb4552070
Sous-chef state: 7a795dcf4ed1c8b2594a5fe581e5611970ce982fba83928a0da1b6e25696d16a

Generated by 🏁 PR Finisher · copilot · auto · ~25 AIC · ⌖ ~1 AIC · ⊞ 10.7K · ◷

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Note

The pull request was not created — a fallback review issue was created instead due to protected file changes: #74709

PR finisher

Submitted for publication (not confirmed pushed): the sub-agent aliases flagged in the review threads (small in developer-docs-consolidator and github-mcp-tools-report, large in daily-safeoutputs-git-simulator) are pinned to Claude models (claude-haiku-4.5 / claude-sonnet-5) so they match the routed Claude engine. Lock files were recompiled locally, but generated YAML is excluded from the submission; a maintainer should run make recompile.

Limits: merging main failed (no network/credentials for the missing objects), so the branch is not updated. Review replies and resolutions are deferred until the fix is published. I did not run the full make agent-report-progress (the PR notes pre-existing failures outside this diff). CI is stale and needs a maintainer re-trigger.

PR finisher dispatch requested for the following outstanding work:

Sous-chef head: 1b0c62b
Sous-chef work: 09598fe2d7226915513374b68d99e621af8f6d047bb8e7d56f96ac62bebc0db9 111dcd83da286ef2e937841b2cb3e381894aaafcaeb38fd27eacd0646c7034ce bc9c79809b4b7d0d1f9178a6e06868c7c4902dcb92dd69cbc6e43fd34b55a781 d63b0639156ae57a7d80c98e3c7d8f8a078e439f9b8baacbae887e0fb4552070
Sous-chef state: 7a795dcf4ed1c8b2594a5fe581e5611970ce982fba83928a0da1b6e25696d16a

Generated by 🏁 PR Finisher · copilot · auto · ~22 AIC · ⌖ ~1 AIC · ⊞ 10.7K · ◷

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

PR finisher: no changes submitted

  • Merge with main: failed. git merge origin/main needs objects from the promisor remote and the fetch fails (SSL certificate not trusted, no credentials). Nothing changed locally. Please run make merge-main.
  • Review threads (sub-agent small/large aliases in developer-docs-consolidator, github-mcp-tools-report, daily-safeoutputs-git-simulator): not addressed, so none were replied to or resolved. The PR description says the aliases were kept on purpose, so this is a maintainer design decision: drop the model: aliases so sub-agents inherit the Claude parent, or accept the compiler warnings. Either choice changes lock files.

CI is not re-triggered.

PR finisher dispatch requested for the following outstanding work: merge main, and review threads on sub-agent aliases.
Sous-chef head: 1b0c62b
Sous-chef work: 09598fe2d7226915513374b68d99e621af8f6d047bb8e7d56f96ac62bebc0db9 111dcd83da286ef2e937841b2cb3e381894aaafcaeb38fd27eacd0646c7034ce bc9c79809b4b7d0d1f9178a6e06868c7c4902dcb92dd69cbc6e43fd34b55a781 d63b0639156ae57a7d80c98e3c7d8f8a078e439f9b8baacbae887e0fb4552070
Sous-chef state: 7a795dcf4ed1c8b2594a5fe581e5611970ce982fba83928a0da1b6e25696d16a

Generated by 🏁 PR Finisher · copilot · auto · ~18 AIC · ⌖ ~1 AIC · ⊞ 10.7K · ◷

@SivaKesava1
SivaKesava1 dismissed stale reviews from github-actions[bot] and github-actions[bot] November 4, 2026 04:52

Addressed: the sub-agent alias warnings were checked with routed runs of all nine workflows on this branch (all requests 200; small resolved to Claude Haiku 5.5). #74661 keeps the aliases unchanged. Threads answered and resolved.

@SivaKesava1
SivaKesava1 merged commit f3dc438 into main Nov 4, 2026
179 checks passed
@SivaKesava1
SivaKesava1 deleted the copilot/model-routing-clause-code-workflows branch November 4, 2026 04:53
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.0

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Model routing: route nine Claude Code workflows that still run on claude-sonnet-5

3 participants