Skip to content

Raise Repo Assist fallback AI credit cap to prevent guardrail-triggered agent aborts#7440

Merged
lpcox merged 2 commits into
mainfrom
copilot/fix-repo-assist-ai-credits
Jun 12, 2026
Merged

Raise Repo Assist fallback AI credit cap to prevent guardrail-triggered agent aborts#7440
lpcox merged 2 commits into
mainfrom
copilot/fix-repo-assist-ai-credits

Conversation

Copilot AI commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Repo Assist scheduled runs are failing when usage narrowly exceeds the default AI credit guardrail (1000), causing the Copilot engine to terminate before completing work. This PR increases Repo Assist’s fallback cap to add headroom while preserving the same guardrail mechanism.

  • Workflow guardrail adjustment

    • Updated repo-assist.lock.yml to increase the fallback GH_AW_MAX_AI_CREDITS from 1000 to 1200.
    • Applied the change in both places where the workflow sets/propagates the fallback value so runtime config and downstream env are consistent.
  • Behavioral impact

    • Keeps org/repo variable override behavior unchanged (vars.GH_AW_DEFAULT_MAX_AI_CREDITS still takes precedence).
    • Only changes the fallback used when that variable is unset.
# .github/workflows/repo-assist.lock.yml
GH_AW_MAX_AI_CREDITS="${{ vars.GH_AW_DEFAULT_MAX_AI_CREDITS || '1200' }}"
GH_AW_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_MAX_AI_CREDITS || '1200' }}

GitHub Advanced Security started work on behalf of lpcox June 12, 2026 15:34 View session
GitHub Advanced Security finished work on behalf of lpcox June 12, 2026 15:36
GitHub Advanced Security started work on behalf of lpcox June 12, 2026 15:41 View session
Copilot AI changed the title [WIP] Fix Repo Assist workflow by increasing max AI credits limit Raise Repo Assist fallback AI credit cap to prevent guardrail-triggered agent aborts Jun 12, 2026
GitHub Advanced Security finished work on behalf of lpcox June 12, 2026 15:43
Copilot finished work on behalf of lpcox June 12, 2026 15:43
Copilot AI requested a review from lpcox June 12, 2026 15:43
@lpcox lpcox marked this pull request as ready for review June 12, 2026 15:48
Copilot AI review requested due to automatic review settings June 12, 2026 15:48

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

This PR increases the fallback AI credit cap used by the Repo Assist scheduled workflow to reduce guardrail-triggered aborts when usage slightly exceeds the current default, while keeping the existing vars.GH_AW_DEFAULT_MAX_AI_CREDITS override behavior unchanged.

Changes:

  • Raised the fallback GH_AW_MAX_AI_CREDITS from 1000 to 1200 in the agent step where the AWF config is generated.
  • Raised the same fallback value in the downstream env: propagation to keep runtime config and job environment consistent.
Show a summary per file
File Description
.github/workflows/repo-assist.lock.yml Bumps the workflow’s fallback max AI credits from 1000 → 1200 in both the runtime assignment and propagated env var.

Copilot's findings

Tip

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

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

@lpcox lpcox merged commit d27fef5 into main Jun 12, 2026
40 checks passed
@lpcox lpcox deleted the copilot/fix-repo-assist-ai-credits branch June 12, 2026 15:50
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