githubnext / githubnext/ado-aw

[aw] Cyclomatic Complexity Reducer failed

Open
#2,142 0 comments 0 reactions 0 assignees View on GitHub
agentic-workflows
Dominant language
Rust
Stars
23
Forks
8
Avg merge
4d 9h
Merged PRs (30d)
22

Description

### Workflow Failure

**Workflow:** [Cyclomatic Complexity Reducer](https://github.com/githubnext/ado-aw/blob/main/.github/workflows/cyclomatic-complexity-reducer.md)
**Branch:** main
**Run:** https://github.com/githubnext/ado-aw/actions/runs/34580852777

> [!WARNING]
> **Engine Failure**: The `copilot` engine terminated unexpectedly.

**Last agent output:**
```
│ grep -n "pub struct ExecutionContext" -A 40 src/safe_outputs/mod.rs | head -50
└ 1 line…
Let's now write out the refactor. I'll extract these helper functions:
1. `resolve_pr_target` — repo alias, target, branch resolution
2. `validate_and_load_patch` — patch existence/size/hash/path checks, returns `PreparedPatch`
3. `apply_patch_and_collect_changes` — worktree creation, checkout, patch apply, change collection
4. `push_and_create_pull_request` — base commit, push, PR creation, completion options
● Read create_pull_request.rs
│ src/safe_outputs/create_pull_request.rs
└ L622:1320 (488 lines read)
```

### 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/ado-aw/actions/runs/34580852777
````

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 cyclomatic-complexity-reducer failure in https://github.com/githubnext/ado-aw/actions/runs/34580852777`

> [!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 [Cyclomatic Complexity Reducer](https://github.com/githubnext/ado-aw/actions/runs/34580852777) · 236.3 AIC · [◷](https://github.com/search?q=repo%3Agithubnext%2Fado-aw+is%3Aissue+%22gh-aw-workflow-id%3A+cyclomatic-complexity-reducer%22&type=issues)
> - [x] expires on Sep 18, 2026, 9:10 AM UTC

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the failed Cyclomatic Complexity Reducer run and the debugging guidance in the issue. Inspect src/safe_outputs/mod.rs and src/safe_outputs/create_pull_request.rs, especially the area where the agent attempted the refactor. Done means identifying and fixing the engine failure, then confirming the workflow completes successfully on a subsequent run.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.