Skip to content

Set Copilot BYOK fallback model to Sonnet 4.5 and regenerate lockfiles#34215

Merged
pelikhan merged 2 commits into
mainfrom
copilot/replace-byok-default-model
May 23, 2026
Merged

Set Copilot BYOK fallback model to Sonnet 4.5 and regenerate lockfiles#34215
pelikhan merged 2 commits into
mainfrom
copilot/replace-byok-default-model

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 23, 2026

This updates Copilot BYOK’s implicit fallback from the generic default sentinel to claude-sonnet-4.5 (the current Copilot default). Generated workflow lockfiles are recompiled so runtime model fallbacks are consistent with the new default.

  • Default model behavior

    • Changed CopilotBYOKDefaultModel to claude-sonnet-4.5 in constants.
    • Updated fallback semantics used when GH_AW_MODEL_*_COPILOT is unset.
  • Spec/docs alignment

    • Updated Copilot BYOK constant documentation and spec assertion to match the new fallback value.
  • Compiled workflow output

    • Regenerated .lock.yml files under .github/workflows/ so emitted env defaults now resolve to claude-sonnet-4.5 for both agent and detection paths.
# Before
COPILOT_MODEL: ${{ vars.GH_AW_MODEL_AGENT_COPILOT || 'default' }}

# After
COPILOT_MODEL: ${{ vars.GH_AW_MODEL_AGENT_COPILOT || 'claude-sonnet-4.5' }}

Copilot AI and others added 2 commits May 23, 2026 13:24
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Set Copilot BYOK default model to Sonnet 4.5 and recompile Set Copilot BYOK fallback model to Sonnet 4.5 and regenerate lockfiles May 23, 2026
Copilot AI requested a review from pelikhan May 23, 2026 13:30
@pelikhan pelikhan marked this pull request as ready for review May 23, 2026 13:30
Copilot AI review requested due to automatic review settings May 23, 2026 13:30
@pelikhan pelikhan merged commit fcb0d61 into main May 23, 2026
@pelikhan pelikhan deleted the copilot/replace-byok-default-model branch May 23, 2026 13:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Copilot BYOK implicit model fallback to use claude-sonnet-4.5 instead of the generic default sentinel, and regenerates compiled workflow lockfiles so runtime model fallbacks match that new default.

Changes:

  • Updated constants.CopilotBYOKDefaultModel to claude-sonnet-4.5 and refreshed its inline documentation.
  • Updated constants spec assertions / README docs to match the new fallback value.
  • Regenerated .github/workflows/*.lock.yml files to emit claude-sonnet-4.5 as the fallback for GH_AW_INFO_MODEL and COPILOT_MODEL when GH_AW_MODEL_*_COPILOT is unset.
Show a summary per file
File Description
pkg/constants/spec_test.go Updates spec assertion for CopilotBYOKDefaultModel to claude-sonnet-4.5.
pkg/constants/README.md Updates documented Copilot BYOK default model fallback value.
pkg/constants/engine_constants.go Changes CopilotBYOKDefaultModel constant to claude-sonnet-4.5 and updates comment.
.github/workflows/workflow-skill-extractor.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/workflow-normalizer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/workflow-health-manager.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/workflow-generator.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/weekly-safe-outputs-spec-review.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/weekly-issue-summary.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/weekly-editors-health-check.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/weekly-blog-post-writer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/visual-regression-checker.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/video-analyzer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/update-astro.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/uk-ai-operational-resilience.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/ubuntu-image-analyzer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/tidy.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/test-workflow.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/test-quality-sentinel.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/test-project-url-default.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/test-dispatcher.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/terminal-stylist.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/technical-doc-writer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/super-linter.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/sub-issue-closer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/stale-repo-identifier.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/stale-pr-cleanup.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/spec-librarian.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/spec-extractor.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/smoke-workflow-call.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/smoke-workflow-call-with-inputs.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/smoke-update-cross-repo-pr.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/smoke-test-tools.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/smoke-temporary-id.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/smoke-service-ports.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/smoke-project.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/smoke-otel-backends.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/smoke-multi-pr.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/smoke-create-cross-repo-pr.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/smoke-copilot.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/smoke-copilot-arm.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/smoke-ci.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/slide-deck-maintainer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/security-review.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/security-compliance.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/research.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/repository-quality-improver.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/repo-tree-map.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/repo-audit-analyzer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/release.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/refiner.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/refactoring-cadence.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/q.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/python-data-charts.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/pr-triage-agent.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/pr-nitpick-reviewer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/pr-description-caveman.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/pr-code-quality-reviewer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/plan.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/pdf-summary.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/otlp-data-quality-validator.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/org-health-report.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/notion-issue-summary.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/metrics-collector.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/mergefest.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/mcp-inspector.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/linter-miner.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/layout-spec-maintainer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/jsweep.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/issue-triage-agent.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/hippo-embed.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/gpclean.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/glossary-maintainer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/functional-pragmatist.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/firewall.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/firewall-escape.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/example-permissions-warning.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/draft-pr-cleanup.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/docs-noob-tester.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/discussion-task-miner.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/dictation-prompt.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/dev-hawk.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/deployment-incident-monitor.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/dependabot-repair.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/dependabot-go-checker.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/dependabot-burner.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/delight.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/dead-code-remover.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/dataflow-pr-discussion-dataset.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-workflow-updater.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-testify-uber-super-expert.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-team-status.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-syntax-error-quality.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-spdd-spec-planner.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-skill-optimizer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-sentrux-report.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-semgrep-scan.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-security-observability.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-secrets-analysis.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-safe-output-integrator.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-repo-chronicle.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-regulatory.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-performance-summary.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-news.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-model-inventory.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-mcp-concurrency-analysis.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-malicious-code-scan.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-issues-report.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-hippo-learn.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-geo-optimizer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-firewall-report.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-file-diet.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-experiment-report.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-compiler-threat-spec-optimizer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-compiler-quality.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-cli-tools-tester.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-cli-performance.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-assign-issue-to-user.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-architecture-diagram.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/daily-agent-of-the-day-blog-writer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/craft.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/copilot-pr-prompt-analysis.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/copilot-pr-nlp-analysis.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/copilot-pr-merged-report.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/copilot-opt.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/copilot-cli-deep-research.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/contribution-check.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/constraint-solving-potd.lock.yml Regenerated lockfile; pins actions/github-script to SHA and updates Copilot model fallback.
.github/workflows/code-simplifier.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/code-scanning-fixer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/cli-consistency-checker.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/ci-coach.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/chaos-pr-bundle-fuzzer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/breaking-change-checker.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/brave.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/bot-detection.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/aw-portfolio-yield.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/artifacts-summary.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/architecture-guardian.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/archie.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/agentic-token-optimizer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/agentic-token-audit.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/agent-persona-explorer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/agent-performance-analyzer.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/ace-editor.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.
.github/workflows/ab-testing-advisor.lock.yml Regenerated lockfile to use claude-sonnet-4.5 as Copilot model fallback.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 146/146 changed files
  • Comments generated: 1

Comment on lines +268 to +270
// Use Claude Sonnet 4.5 as the explicit default model for Copilot BYOK mode.
// This matches the current Copilot default model.
CopilotBYOKDefaultModel = "claude-sonnet-4.5"
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.

3 participants