Avenger: enforce 8-minute runtime budget and failure-driven repair flow - #53021
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job by analyzing logs and implementing fix
Avenger: enforce 8-minute runtime budget and failure-driven repair flow
Aug 16, 2026
pelikhan
marked this pull request as ready for review
August 16, 2026 03:20
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Avenger toward failure-driven CI repairs with an eight-minute prompt budget.
Changes:
- Adds targeted CI-failure inspection and conditional remediation.
- Prohibits broad or long-running validation commands.
- Regenerates compiled workflow metadata.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/avenger.md |
Revises Avenger’s repair prompt and runtime guidance. |
.github/workflows/avenger.lock.yml |
Synchronizes generated metadata and description. |
Review details
Suppressed comments (1)
.github/workflows/avenger.md:195
- The mandatory failure triage is still Step 3, after the checkout has been merged and the potentially broad recompile step has been considered. Because the execution guidelines explicitly say to process steps in sequence, this does not implement the PR's stated “inspect the failing CI signal first, then remediate” flow. Move this inspection directly after Step 0 and perform merge/recompile only after an actionable failure category is known.
## Step 3: Inspect the failing CI run first (mandatory)
Use the CI Run ID from pre-check and identify the first failed job and failing signal before running any local validation:
- Files reviewed: 2/2 changed files
- Comments generated: 2
- Review effort level: Balanced
|
|
||
| ## Runtime Budget (Hard Requirement) | ||
|
|
||
| - Finish the entire run (analysis + fix + validation + PR/noop) within **8 minutes**. |
| - **Be efficient**: Avoid verbose analysis; act directly. | ||
| - **One issue at a time**: Confirm the current step passes before moving to the next. | ||
| - **Token Budget Awareness**: Hard limit is 50 turns. If approaching the limit, commit what you have and create the PR. | ||
| - **Runtime Budget Awareness**: Hard limit is 8 minutes. Prefer a small complete fix over broad validation. |
Contributor
|
🎉 This pull request is included in a new release. Release: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Avenger workflow was failing in the
agentjob because the prompt encouraged broad, long-running local checks that exceeded the execution window. This update tightens the prompt so Avenger finishes within 8 minutes by triaging from the failing CI run first and only running targeted remediation.Problem framing
Prompt changes for bounded execution
go build ./...go test ./.../go test ./pkg/...sleep+pgrep+ repeatedtail).Failure-driven repair sequence
${{ needs.check_ci_status.outputs.ci_run_id }}first.noopexit for non-actionable infra/transient failures.Compiled workflow parity
avenger.lock.ymlto keep compiled workflow metadata and prompt body in sync.