Skip to content

Raise Repo Assist AI credit budget to 1500 to stop budget-guardrail failure issues#7883

Merged
lpcox merged 5 commits into
mainfrom
copilot/increase-max-ai-credits
Jun 21, 2026
Merged

Raise Repo Assist AI credit budget to 1500 to stop budget-guardrail failure issues#7883
lpcox merged 5 commits into
mainfrom
copilot/increase-max-ai-credits

Conversation

Copilot AI commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Repo Assist scheduled runs were exceeding the per-run AI credit cap (1.2K used vs 1K configured), causing repeated “AI credits rate limit” failure issue creation despite successful workflow execution. This change aligns the workflow’s configured budget with observed run cost.

  • Workflow budget update

    • Added an explicit per-run budget in source workflow frontmatter:
      • .github/workflows/repo-assist.mdmax-ai-credits: 1500
  • Compiled workflow alignment

    • Recompiled .github/workflows/repo-assist.lock.yml so runtime AWF config and failure-context env both use 1500 for GH_AW_MAX_AI_CREDITS.
    • This keeps generated runtime enforcement and issue metadata consistent with the source workflow budget.
# .github/workflows/repo-assist.md
timeout-minutes: 60
max-ai-credits: 1500
permissions: read-all

GitHub Advanced Security started work on behalf of lpcox June 21, 2026 15:57 View session
GitHub Advanced Security finished work on behalf of lpcox June 21, 2026 15:58
Copilot AI changed the title [WIP] Update max ai credits limit in Repo Assist workflow Raise Repo Assist AI credit budget to 1500 to stop budget-guardrail failure issues Jun 21, 2026
Copilot AI requested a review from lpcox June 21, 2026 16:05
Copilot finished work on behalf of lpcox June 21, 2026 16:05
GitHub Advanced Security started work on behalf of lpcox June 21, 2026 16:18 View session
GitHub Advanced Security finished work on behalf of lpcox June 21, 2026 16:20
@lpcox lpcox marked this pull request as ready for review June 21, 2026 17:09
Copilot AI review requested due to automatic review settings June 21, 2026 17:09

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

Adjusts the Repo Assist agentic workflow’s configured per-run AI credit budget so scheduled runs no longer hit the budget guardrail and create “AI credits rate limit” failure issues despite otherwise-successful execution.

Changes:

  • Adds max-ai-credits: 1500 to the source workflow frontmatter (repo-assist.md).
  • Recompiles the locked workflow to enforce maxAiCredits: 1500 at runtime and propagate GH_AW_MAX_AI_CREDITS=1500 into failure-context env.
Show a summary per file
File Description
.github/workflows/repo-assist.md Sets the source-of-truth per-run AI credit budget to 1500 via frontmatter.
.github/workflows/repo-assist.lock.yml Updates the compiled workflow/runtime config to enforce a 1500 credit cap and keep failure-context metadata consistent.

Copilot's findings

Tip

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

  • Files reviewed: 2/2 changed files
  • Comments generated: 7

Comment thread .github/workflows/repo-assist.lock.yml Outdated
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"85449f1348a579352e2cffaeb0b09444ce83dd5b18b0b6cb88252570c651ae0c","body_hash":"b650bc2164f4675fdf55f265904a4714f72dbbb3c13a333ab03cf46b531a45bf","compiler_version":"v0.79.6","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.60"}}
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_CI_TRIGGER_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"df4cb1c069e1874edd31b4311f1884172cec0e10","version":"v6.0.3"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"5c2fe865bb4dc46e1450f6ee0d0541d759aea73a","version":"v0.79.6"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.2","digest":"sha256:f88e5b17b6b7a600117bc121114d6ce2155c88c983c0c939c5df884f730fa1d6","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.2@sha256:f88e5b17b6b7a600117bc121114d6ce2155c88c983c0c939c5df884f730fa1d6"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.2","digest":"sha256:ee39841d980878ebbb87592903b06d31a1af500c71525c9616f7e8e2a27041a4","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.2@sha256:ee39841d980878ebbb87592903b06d31a1af500c71525c9616f7e8e2a27041a4"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.2","digest":"sha256:2e3a717e5f19a654cd9a2263beb52012b56bcb68562ec5ae2e42f9d156b49591","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.2@sha256:2e3a717e5f19a654cd9a2263beb52012b56bcb68562ec5ae2e42f9d156b49591"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.25","digest":"sha256:c10331ad17668ef89f38f5e356678788a40b0cd5fef96e8f92e1d9c1de47cbaa","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.3.25@sha256:c10331ad17668ef89f38f5e356678788a40b0cd5fef96e8f92e1d9c1de47cbaa"},{"image":"ghcr.io/github/github-mcp-server:v1.1.2","digest":"sha256:30197479d8036c7811892bc07e06f9a05c9ef3cdd79bc59f256d50647f95788c","pinned_image":"ghcr.io/github/github-mcp-server:v1.1.2@sha256:30197479d8036c7811892bc07e06f9a05c9ef3cdd79bc59f256d50647f95788c"}]}
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"2608411f54f83dbc0ef43781afbf22b22c73614526e9a8a79c948238c4fd0459","body_hash":"b650bc2164f4675fdf55f265904a4714f72dbbb3c13a333ab03cf46b531a45bf","compiler_version":"v0.79.8","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.60"}}
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_CI_TRIGGER_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"df4cb1c069e1874edd31b4311f1884172cec0e10","version":"v6.0.3"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"v0.79.8","version":"v0.79.8"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.2","digest":"sha256:f88e5b17b6b7a600117bc121114d6ce2155c88c983c0c939c5df884f730fa1d6","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.2@sha256:f88e5b17b6b7a600117bc121114d6ce2155c88c983c0c939c5df884f730fa1d6"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.2","digest":"sha256:ee39841d980878ebbb87592903b06d31a1af500c71525c9616f7e8e2a27041a4","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.2@sha256:ee39841d980878ebbb87592903b06d31a1af500c71525c9616f7e8e2a27041a4"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.2","digest":"sha256:2e3a717e5f19a654cd9a2263beb52012b56bcb68562ec5ae2e42f9d156b49591","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.2@sha256:2e3a717e5f19a654cd9a2263beb52012b56bcb68562ec5ae2e42f9d156b49591"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.25","digest":"sha256:c10331ad17668ef89f38f5e356678788a40b0cd5fef96e8f92e1d9c1de47cbaa","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.3.25@sha256:c10331ad17668ef89f38f5e356678788a40b0cd5fef96e8f92e1d9c1de47cbaa"},{"image":"ghcr.io/github/github-mcp-server:v1.1.2","digest":"sha256:30197479d8036c7811892bc07e06f9a05c9ef3cdd79bc59f256d50647f95788c","pinned_image":"ghcr.io/github/github-mcp-server:v1.1.2@sha256:30197479d8036c7811892bc07e06f9a05c9ef3cdd79bc59f256d50647f95788c"}]}
Comment thread .github/workflows/repo-assist.lock.yml Outdated
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@5c2fe865bb4dc46e1450f6ee0d0541d759aea73a # v0.79.6
uses: github/gh-aw-actions/setup@v0.79.8
Comment thread .github/workflows/repo-assist.lock.yml Outdated
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@5c2fe865bb4dc46e1450f6ee0d0541d759aea73a # v0.79.6
uses: github/gh-aw-actions/setup@v0.79.8
Comment thread .github/workflows/repo-assist.lock.yml Outdated
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@5c2fe865bb4dc46e1450f6ee0d0541d759aea73a # v0.79.6
uses: github/gh-aw-actions/setup@v0.79.8
Comment thread .github/workflows/repo-assist.lock.yml Outdated
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@5c2fe865bb4dc46e1450f6ee0d0541d759aea73a # v0.79.6
uses: github/gh-aw-actions/setup@v0.79.8
Comment thread .github/workflows/repo-assist.lock.yml Outdated
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@5c2fe865bb4dc46e1450f6ee0d0541d759aea73a # v0.79.6
uses: github/gh-aw-actions/setup@v0.79.8
Comment thread .github/workflows/repo-assist.lock.yml Outdated
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@5c2fe865bb4dc46e1450f6ee0d0541d759aea73a # v0.79.6
uses: github/gh-aw-actions/setup@v0.79.8
@lpcox

lpcox commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Copilot AI commented Jun 21, 2026

Copy link
Copy Markdown
Contributor Author

@copilot address review feedback

Done — all six uses: github/gh-aw-actions/setup references in repo-assist.lock.yml (plus the manifest sha field and the actions comment block) have been updated from the mutable tag @v0.79.8 to the immutable commit SHA @c0338fef4749d08c21f8f975fb0e37efa17dda47 # v0.79.8, matching the pattern used by the other locked workflows in this repo.

Commit: c8e95e4 (or whichever short hash was just pushed)

Copilot finished work on behalf of lpcox June 21, 2026 17:15
GitHub Advanced Security started work on behalf of lpcox June 21, 2026 17:18 View session
GitHub Advanced Security finished work on behalf of lpcox June 21, 2026 17:20
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
GitHub Advanced Security started work on behalf of lpcox June 21, 2026 17:33 View session
GitHub Advanced Security finished work on behalf of lpcox June 21, 2026 17:34
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
GitHub Advanced Security started work on behalf of lpcox June 21, 2026 17:41 View session
GitHub Advanced Security finished work on behalf of lpcox June 21, 2026 17:42
@lpcox lpcox merged commit 8ec1aec into main Jun 21, 2026
27 checks passed
@lpcox lpcox deleted the copilot/increase-max-ai-credits branch June 21, 2026 17:44
@github-actions github-actions Bot mentioned this pull request Jun 21, 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