Skip to content

[aw] Framework Best Practices hit AI credits rate limit #1448

Description

@github-actions

Workflow Failure

Workflow: Framework Best Practices
Branch: main
Run: https://github.com/elastic/ai-github-actions/actions/runs/28379277454

Warning

AI Credits Budget Exceeded

The workflow hit the configured max-ai-credits guardrail. Used 1.1K of 1K max (over by 63.5).

Increase the limit

Update max-ai-credits in your workflow frontmatter:

max-ai-credits: 2000
Tips for reducing AI credit usage
  • Review the cost optimization guidance.
  • Reduce unnecessary model or tool calls in the prompt.
  • Trim large inputs or excess context that does not change the outcome.
  • Split large tasks across smaller runs when possible.

Warning

Engine Failure: The copilot engine terminated unexpectedly.

Last agent output:

**Evidence:** `.github/workflows/gh-aw-fragments/safe-output-review-comment.md:4-5` and `safe-output-resolve-thread.md:4-5` still use TODOs plus fixed `max: 30` / `max: 10`. Workflows expose inputs at `.github/workflows/gh-aw-pr-review.md:63-67`, `gh-aw-mention-in-pr.md:64-73`, and `gh-aw-pr-review-addresser.md:52-56`. Current gh-aw usage already supports dynamic max (`.github/workflows/gh-aw-plan.md:49-80`).
**Why it matters:** Caller-provided limits are ignored, reducing configurability and causing doc/API drift.
**Suggested fix:** Restore `max: ${{ inputs... }}` in both fragments and compile.● Read (General-purpose agent — Audit scripts utilities)
  └ Completed
Authentication failed with provider at http://172.30.0.30:10002 (HTTP 403).
  Check your COPILOT_PROVIDER_API_KEY or COPILOT_PROVIDER_BEARER_TOKEN.
Changes    +0 -0
Duration   7m 35s
Tokens     ↑ 1.9m (1.1m cached) • ↓ 19.8k (9.7k reasoning)
 — not retrying (first-attempt auth failure is non-retryable)

Action Required

Assign this issue to an agent to debug and fix the issue.

Debug with any coding agent

Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.):

Debug the agentic workflow failure using https://raw.githubusercontent.com/github/gh-aw/main/debug.md

The failed workflow run is at https://github.com/elastic/ai-github-actions/actions/runs/28379277454
Manually invoke the agent

Debug this workflow failure using your favorite Agent CLI and the agentic-workflows prompt.

Tip

Stop reporting this workflow as a failure

To stop a workflow from creating failure issues, set report-failure-as-issue: false in its frontmatter:

safe-outputs:
  report-failure-as-issue: false

Generated from Framework Best Practices · 1.1K AIC ·

  • expires on Jul 6, 2026, 2:37 PM UTC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions