Skip to content

Use GPT-5.5 for Build Failure Analysis model defaults - #17632

Merged
YuliiaKovalova merged 2 commits into
dotnet:mainfrom
YuliiaKovalova:fix-bfa-model-availability
Sep 29, 2026
Merged

YuliiaKovalova merged 2 commits into
dotnet:mainfrom
YuliiaKovalova:fix-bfa-model-availability

Conversation

@YuliiaKovalova

@YuliiaKovalova YuliiaKovalova commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Summary

Fix the unavailable-model regression reported in #17616 (comment).

  • Change the shared analysis and threat-detection fallbacks from claude-sonnet-4.6 to gpt-5.5, covering both automatic/manual and slash-command entry points.
  • Preserve model precedence: GH_AW_MODEL_AGENT_COPILOT or GH_AW_MODEL_DETECTION_COPILOT, then GH_AW_DEFAULT_MODEL_COPILOT, then the supported fallback. Document that overrides must also select an available model.
  • Regenerate both workflow locks with the existing gh-aw v0.86.2 compiler and setup SHA. No PAT selection, validation, permissions, environment protections, triggers, binlog fetching, CLI/container versions, or action pins change.

Confirmed cause

All six cited runs logged COPILOT_MODEL: claude-sonnet-4.6 and HTTP 400: The requested model is not available for integrator "agentic-workflows". Their available-model lists include gpt-5.5, not claude-sonnet-4.6.

In every run, pat_pool and validate_copilot_pat succeeded, agent failed, and detection and safe_outputs were skipped. There are currently no model overrides in repository variables, repository-accessible organization variables, or the copilot-pat-pool environment. The source fallback is therefore the effective model configuration; changing credentials would not address this error.

Validation

  • Compile both workflows with gh aw compile build-failure-analysis build-failure-analysis-command --approve --no-check-update --schedule-seed dotnet/arcade --action-mode action --action-tag 6aab9e5b5c91c615506061f09bedd81a23babe3c --validate.
  • Exercise 108 missing/empty/explicit override combinations across both inference phases and both generated workflows.
  • Verify the generated diff changes only model defaults and frontmatter hashes; all other workflow content, metadata, action pins, and the updater workflow remain unchanged.
  • Repeat compilation and verify both BFA locks, the updater lock, and actions-lock.json remain byte-identical.
  • Compare native actionlint 1.7.12 against the base revision: no new diagnostics. This is not a clean lint result: the same five existing diagnostics concern generated concurrency.queue and github.aw expressions. The compiler's Docker-based actionlint wrapper could not run locally because Docker is unavailable.
  • Complete an eligible upstream end-to-end run and verify analysis, threat detection, safe outputs, and a delivered PR report.

End-to-end verification blockers

The source fix has not yet been exercised in production. copilot-pat-pool permits protected branches only; this fix needs to be merged or placed on a normally protected, maintainer-approved upstream test branch. No environment policy or repository model variables were changed.

On 2026-09-29, none of the currently listed failed arcade-pr builds remained eligible for a useful rerun: their PRs were closed or their recorded head/merge revisions no longer matched. The six original cases map to PR/build pairs 17514/1611034, 17592/1611078, 17621/1611319, 17621/1611339, 17618/1611614, and 17622/1612196; the last build now reports success after a rerun.

After the fix reaches an eligible protected ref, obtain a fresh failed definition-283 build and recheck the PR's current head and merge revisions immediately before dispatching build-failure-analysis.lock.yml with ado-build-id and pr-number. A skipped run, a fork run, or re-running an old workflow revision does not verify this correction. Keep the stale-build and protected-environment safeguards intact.

Use claude-sonnet-5 for both shared fallbacks while preserving phase-specific and default model overrides. Regenerate the automatic and command workflow locks with gh-aw v0.86.2.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings September 29, 2026 09:04

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.

Copilot review overview

🔵 Needs a closer look

The generated production workflows are consistent, but the required protected-environment end-to-end verification remains pending.

Review effort: Balanced
Findings: None

What changed in this PR

Updates Build Failure Analysis workflows to use the available claude-sonnet-5 fallback while preserving model override precedence.

Changes:

  • Updates analysis and threat-detection defaults.
  • Regenerates both automatic and command workflow locks.
File Description
.github/​workflows/​shared/​build-failure-analysis-shared.md Defines the new shared fallback.
.github/​workflows/​build-failure-analysis.lock.yml Regenerates the automatic workflow.
.github/​workflows/​build-failure-analysis-command.lock.yml Regenerates the command workflow.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 884e170a-5bd6-4d6f-ba44-cb950d9ba161
Copilot AI review requested due to automatic review settings September 29, 2026 09:47
@YuliiaKovalova YuliiaKovalova changed the title Fix unavailable Build Failure Analysis model defaults Use GPT-5.5 for Build Failure Analysis model defaults Sep 29, 2026

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.

Copilot review overview

🔵 Needs a closer look

The generated changes appear consistent, but production end-to-end verification remains pending.

Review effort: Balanced
Findings: None

@YuliiaKovalova
YuliiaKovalova enabled auto-merge (squash) September 29, 2026 10:48
@YuliiaKovalova
YuliiaKovalova merged commit 61ef744 into dotnet:main Sep 29, 2026
2 of 6 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 29, 2026
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