githubnext / githubnext/gh-aw-cao

[aw] EU CRA / Conformity exceeded max AI credits

Closed
#11,947 0 comments 0 reactions 0 assignees View on GitHub
agentic-workflows
Dominant language
JavaScript
Stars
3
Forks
1
Avg merge
49m
Merged PRs (30d)
837

Description

### Workflow Failure

**Workflow:** [EU CRA / Conformity](https://github.com/githubnext/gh-aw-cao/blob/main/.github/workflows/eu-cra-compliance-conformity-release-evidence.md)
**Branch:** main
**Run:** https://github.com/githubnext/gh-aw-cao/actions/runs/35046648475

> [!WARNING]
> **AI Credits Budget Exceeded**
>
> The workflow hit the configured `max-ai-credits` guardrail. Used `30.3` of `100` max.

Increase the limit

Update `max-ai-credits` in your workflow frontmatter:

```yaml
max-ai-credits: 200
```

Tips for reducing AI credit usage

- Review the [cost optimization guidance](https://github.github.com/gh-aw/reference/cost-management/).
- 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.

### Action Required

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

Optimize token consumption

This failure was triggered by a guardrail limit (max-ai-credits). Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.) to analyze token usage and reduce costs:

````
Optimize the agentic workflow token consumption using https://raw.githubusercontent.com/github/gh-aw/main/optimize.md

The workflow run is at https://github.com/githubnext/gh-aw-cao/actions/runs/35046648475
````

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/githubnext/gh-aw-cao/actions/runs/35046648475
````

Manually invoke the agent

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

- Start your agent
- Load the `agentic-workflows` skill from `.github/skills/agentic-workflows/SKILL.md` or
- Type `debug the agentic workflow eu-cra-compliance-conformity-release-evidence failure in https://github.com/githubnext/gh-aw-cao/actions/runs/35046648475`

> [!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:
> ```yaml
> safe-outputs:
> report-failure-as-issue: false
> ```
>
>

> Generated from [EU CRA / Conformity](https://github.com/githubnext/gh-aw-cao/actions/runs/35046648475) · pi · 30.3 AIC · [◷](https://github.com/search?q=repo%3Agithubnext%2Fgh-aw-cao+is%3Aissue+%22gh-aw-workflow-id%3A+eu-cra-compliance-conformity-release-evidence%22&type=issues)
> - [x] expires on Sep 17, 2026, 2:11 AM UTC

Contributor guide

Open the contributing guide

Research direction

Start with .github/workflows/eu-cra-compliance-conformity-release-evidence.md and the linked run 35046648475. Inspect the workflow frontmatter, max-ai-credits failure, and agentic-workflows skill guidance to determine the cause. Done means the workflow completes without the reported AI credit failure and the fix is verified by a rerun.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.