Disable daily AI credits guardrail for Expert Code Review workflow - #14314
Conversation
|
Hello @copilot, I noticed that you’re changing an .swr file or any file under src/Package/MSBuild.VSSetup.. Please make sure to validate this change by an experimental VS insertion. This is accomplished by pushing to an exp/* branch, which requires write permissions to this repo. |
Co-authored-by: JanProvaznik <25267098+JanProvaznik@users.noreply.github.com>
|
@ViktorHofer let's do either this PR or set the GH_AW_DEFAULT_MAX_DAILY_AI_CREDITS repo variable to something higher like 100000 |
|
Cool, I didn't know about this credits cap. Thanks |
There was a problem hiding this comment.
Pull request overview
Disables the per-workflow 24h “daily AI Credits” spending cap for the Expert Code Review (command) slash-command workflow (/review), addressing the guardrail exhaustion reported in #14312 by explicitly opting out via frontmatter and updating the compiled lock workflow accordingly.
Changes:
- Add
max-daily-ai-credits: -1toreview.agent.mdfrontmatter to disable the per-workflow daily AI Credits guardrail. - Regenerate
review.agent.lock.ymlto remove the guardrail job wiring (activation guardrail step, related outputs/env, and downstream gating).
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/review.agent.md | Adds frontmatter setting to disable the daily AI Credits guardrail for the /review workflow. |
| .github/workflows/review.agent.lock.yml | Updates the compiled workflow to remove the daily AI Credits guardrail step/outputs and related gating logic. |
Copilot's findings
- Files reviewed: 2/2 changed files
- Comments generated: 0
The
Expert Code Review (command)agentic workflow hit its per-workflow daily AI Credits guardrail (5.7K used vs. the 5K default cap), blocking/reviewruns until the 24h window resets. Per the remediation steps in the failure issue, disable the guardrail for this workflow.Context
GH_AW_DEFAULT_MAX_DAILY_AI_CREDITS)./review), so runs are already opt-in and bounded by the shared PAT pool budget, making the fixed daily cap unnecessarily restrictive.Changes Made
review.agent.md: addedmax-daily-ai-credits: -1to the frontmatter to explicitly disable the guardrail.review.agent.lock.yml: regenerated viagh aw compile(v0.79.8), removing the guardrail wiring:Check daily workflow token guardrailstep, itsGH_AW_MAX_DAILY_AI_CREDITSenv, anddaily_ai_credits_*outputsdaily_ai_credits_exceededgating on theagentand conclusion jobs, plus thesafe-output-artifact-clientcondition andGH_AW_DAILY_AI_CREDITS_*conclusion envfrontmatter_hashmetadata to match the new sourceTesting
Notes
review.agentonly; other agentic workflows retain the default cap.gh-aw@v0.79.8from source (thegh awextension cannot be installed in the sandbox); a maintainer re-runninggh aw compileshould produce an identical result.