githubnext / githubnext/gh-aw-test

[aw] Test Copilot Close Pull Request could not verify daily AI credits

Open
#15,789 1 comment 0 reactions 0 assignees View on GitHub
agentic-workflows cascade-suspected
Dominant language
Shell
Stars
8
Forks
5
PR merge metrics
No merged PRs in 30d

Description

### Workflow Failure

**Workflow:** [Test Copilot Close Pull Request](https://github.com/githubnext/gh-aw-test/blob/15778/merge/.github/workflows/test-copilot-close-pull-request.md)
**Branch:** test-pr-1789447315-15567-9150
**Run:** https://github.com/githubnext/gh-aw-test/actions/runs/34929833060
**Pull Request:** [#15778](https://github.com/githubnext/gh-aw-test/pull/15778)

> [!WARNING]
> **Daily Workflow AI Credits Could Not Be Verified**: The agent was not started because the daily guardrail could not prove complete AI Credits accounting for earlier workflow runs.

**Guardrail status:** `transient_error`

**Reason:** Daily workflow AI Credits are unknown: Missing accounting for executed agent component in run 34927995631 (attempt 1, job 104250361801, conclusion success): agent/token_usage.jsonl is empty; agent_usage.jsonl is missing; agent_usage.json is missing

The guardrail fails closed either because a billable component's usage artifact is missing, empty, or unreadable, or because the guardrail could not reach the GitHub API to verify prior runs. The detailed reason above identifies the specific cause.

This means a billable component in a prior run completed without leaving a valid accounting record. Inspect the affected prior run and its component logs. Once that run leaves the rolling 24-hour window, the guardrail can evaluate the remaining runs normally.

### 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/githubnext/gh-aw-test/actions/runs/34929833060
````

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 test-copilot-close-pull-request failure in https://github.com/githubnext/gh-aw-test/actions/runs/34929833060`

> [!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 [Test Copilot Close Pull Request](https://github.com/githubnext/gh-aw-test/actions/runs/34929833060) · [◷](https://github.com/search?q=repo%3Agithubnext%2Fgh-aw-test+is%3Aissue+%22gh-aw-workflow-id%3A+test-copilot-close-pull-request%22&type=issues)
> - [x] expires on Sep 22, 2026, 4:43 AM UTC

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with debug.md and the Test Copilot Close Pull Request workflow linked in the issue. Inspect prior run 34927995631, job 104250361801, and its component logs to understand why agent/token_usage.jsonl was empty and the other accounting files were missing. Done means the guardrail correctly handles completed runs with valid AI-credit accounting and the workflow no longer reports this failure incorrectly.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
ci-cd
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.