Skip to content

Propagate invocation-cap guardrail signal in Repo Assist failure handling - #74

Draft
cocallaw with Copilot wants to merge 2 commits into
mainfrom
copilot/aw-fix-ai-credits-rate-limit
Draft

Propagate invocation-cap guardrail signal in Repo Assist failure handling#74
cocallaw with Copilot wants to merge 2 commits into
mainfrom
copilot/aw-fix-ai-credits-rate-limit

Conversation

Copilot AI commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Repo Assist runs could hit Copilot HTTP 429 while consuming only a small fraction of configured max AI credits, but the workflow wasn’t surfacing the explicit budget/invocation-cap guardrail signal in failure reporting. This made rate-limit incidents appear ambiguous in generated issue diagnostics.

  • Failure-signal wiring

    • Added missing env passthrough in conclusionHandle agent failure so failure reporting receives the explicit guardrail signal:
      • GH_AW_INVOCATION_CAP_EXCEEDED: ${{ needs.agent.outputs.invocation_cap_exceeded || 'false' }}
  • Behavioral impact

    • Aligns failure classification with agent outputs when 429 is tied to invocation-cap/budget guardrails.
    • Prevents “rate limit without budget guardrail signal” mismatches in Repo Assist incident issues.
  • Patch excerpt

    env:
      GH_AW_AI_CREDITS_RATE_LIMIT_ERROR: ${{ needs.agent.outputs.ai_credits_rate_limit_error || 'false' }}
      GH_AW_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_MAX_AI_CREDITS || '1000' }}
      GH_AW_INVOCATION_CAP_EXCEEDED: ${{ needs.agent.outputs.invocation_cap_exceeded || 'false' }}

Co-authored-by: cocallaw <11371083+cocallaw@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix rate limit handling for Copilot API in workflow Propagate invocation-cap guardrail signal in Repo Assist failure handling Aug 6, 2026
Copilot AI requested a review from cocallaw August 6, 2026 19:46
@github-actions github-actions Bot mentioned this pull request Aug 7, 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.

[aw] AzRetirementMonitor Repo Assist hit AI credits rate limit

2 participants