Skip to content

Raise expert-review workflows AI-credit budget to 2000 (#9115) - #9156

Merged
Amaury Levé (Evangelink) merged 1 commit into
mainfrom
dev/amauryleve/issue-9115-review-aic
Jun 15, 2026
Merged

Amaury Levé (Evangelink) merged 1 commit into
mainfrom
dev/amauryleve/issue-9115-review-aic

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Fixes #9115.

Problem

The Expert Code Review agentic workflows failed with AI Credits Budget Exceeded — the run used 1002.64 of the 1000 AI-credit cap. Neither review-on-open.agent.md nor review.agent.md set max-ai-credits, so they fell back to the default GH_AW_DEFAULT_MAX_AI_CREDITS || '1000'.

Both workflows run the expert-reviewer agent (via shared/review-shared.md), which fans out into ~21 dimension sub-agents on claude-opus-4.6 — inherently expensive, so 1000 AIC is too tight.

Fix

Set max-ai-credits: 2000 (matching the existing convention in code-simplifier.md / perf-improver.md) on both consumers of the shared review config and recompiled the lock files with gh aw compile --strict (0 errors / 0 warnings).

  • .github/workflows/review-on-open.agent.md (+ .lock.yml)
  • .github/workflows/review.agent.md (+ .lock.yml)

Verified the compiled lock files now embed "maxAiCredits":2000 and GH_AW_MAX_AI_CREDITS: "2000".

The Expert Code Review workflows run the expert-reviewer agent, which fans out into ~21 dimension sub-agents on claude-opus-4.6. The default 1000 AI-credit budget was barely exceeded (1002.64), causing the workflow to fail. Set max-ai-credits: 2000 on both consumers of shared/review-shared.md and recompiled the lock files.

Co-authored-by: Copilot <[email protected]>
Copilot AI review requested due to automatic review settings June 15, 2026 14:37
@Evangelink
Amaury Levé (Evangelink) enabled auto-merge (squash) June 15, 2026 14:39

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.

Pull request overview

Raises the AI-credit budget for the Expert Code Review agentic workflows so they stop failing with AI Credits Budget Exceeded when running the expert-reviewer fan-out (per #9115).

Changes:

  • Set max-ai-credits: 2000 in both expert-review workflow definitions (review and review-on-open).
  • Recompiled both workflow lock files so the generated firewall config embeds maxAiCredits: 2000 and the workflow env reflects GH_AW_MAX_AI_CREDITS: "2000".
Show a summary per file
File Description
.github/workflows/review.agent.md Adds max-ai-credits: 2000 to the command-triggered expert review workflow frontmatter.
.github/workflows/review.agent.lock.yml Regenerated lock to bake in maxAiCredits: 2000 and updated derived env values.
.github/workflows/review-on-open.agent.md Adds max-ai-credits: 2000 to the PR-ready trigger workflow frontmatter.
.github/workflows/review-on-open.agent.lock.yml Regenerated lock to bake in maxAiCredits: 2000 and updated derived env values.

Copilot's findings

  • Files reviewed: 4/4 changed files
  • Comments generated: 0

@Evangelink
Amaury Levé (Evangelink) merged commit a200396 into main Jun 15, 2026
23 checks passed
@Evangelink
Amaury Levé (Evangelink) deleted the dev/amauryleve/issue-9115-review-aic branch June 15, 2026 15:00
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.

[aw] Expert Code Review (on PR ready) failed

3 participants