Repository navigation
Raise expert-review workflows AI-credit budget to 2000 (#9115) - #9156
Merged
Amaury Levé (Evangelink) merged 1 commit intoJun 15, 2026
Merged
Conversation
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]>
Contributor
There was a problem hiding this comment.
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: 2000in both expert-review workflow definitions (reviewandreview-on-open). - Recompiled both workflow lock files so the generated firewall config embeds
maxAiCredits: 2000and the workflow env reflectsGH_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
Azat Mukhametshin (azat-msft)
approved these changes
Jun 15, 2026
Amaury Levé (Evangelink)
deleted the
dev/amauryleve/issue-9115-review-aic
branch
June 15, 2026 15:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #9115.
Problem
The Expert Code Review agentic workflows failed with
AI Credits Budget Exceeded— the run used1002.64of the1000AI-credit cap. Neitherreview-on-open.agent.mdnorreview.agent.mdsetmax-ai-credits, so they fell back to the defaultGH_AW_DEFAULT_MAX_AI_CREDITS || '1000'.Both workflows run the
expert-revieweragent (viashared/review-shared.md), which fans out into ~21 dimension sub-agents onclaude-opus-4.6— inherently expensive, so 1000 AIC is too tight.Fix
Set
max-ai-credits: 2000(matching the existing convention incode-simplifier.md/perf-improver.md) on both consumers of the shared review config and recompiled the lock files withgh 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":2000andGH_AW_MAX_AI_CREDITS: "2000".