[AUTO-EVLV] Proposal: Add label verification step to new-issue-creator (ongoing label application failures) #8494

Open
opened 2026-04-13 20:11:06 +00:00 by HAL9000 · 2 comments
Owner

Agent Evolution Proposal — Cycle 1

Category: Subtask failures (label application silently failing)
Severity: High — issues without labels are invisible to implementation supervisor
Affected file: .opencode/agents/new-issue-creator.md


Problem

The new-issue-creator agent creates issues and calls forgejo-label-manager to apply labels, but has no verification step after label application. When forgejo-label-manager fails silently (due to transient API errors, rate limiting, or other issues), the issue is created without labels and the failure goes undetected.

This is a recurring pattern that was identified in the previous cycle (proposal #8467), the human closed it claiming to have fixed it, but the fix did not address the root cause in the agent definition.


Evidence

Cycle 0 (prior session): Issues #8462, #8463, #8464 created without labels (same session, same SHA 5a9aaa79).

Cycle 1 (this session): Issues #8462, #8463, #8464, #8466 still have zero labels as of 2026-04-13T20:00Z — confirming the fix did not retroactively apply labels and the agent definition was not updated.

Intermittent pattern (same bug-hunt-worker session, same SHA 5a9aaa79edaefb1a257114f054ea87facb8efe69):

Issue Created Labels Applied
#8453 19:12 Priority/Low, State/Unverified, Type/Bug
#8462 19:22 No labels
#8463 19:22 No labels
#8464 19:22 No labels
#8465 19:24 Priority/Medium, State/Unverified, Type/Bug
#8466 19:26 No labels

Impact: Issues without State/Unverified are invisible to the implementation supervisor, which filters by state labels. These issues will never be worked on unless manually labeled by a human.

Current new-issue-creator.md workflow (Step 2 only):

1. Create the issue using `forgejo_create_issue`.
2. Apply labels using `forgejo-label-manager`.   ← no verification after this
3. Add the parent Epic link using `forgejo_issue_add_dependency`.
4. Return the created issue number.

Root Cause

The new-issue-creator agent has no verification step after calling forgejo-label-manager. If the label manager fails (silently or with an error), the agent proceeds to step 3 without knowing labels were not applied. There is also no retry logic.


Proposed Change

Add a verification and retry step to the ## What You Do section of new-issue-creator.md:

Current step 2:

2. Apply labels using `forgejo-label-manager`.

Proposed replacement (steps 2-3, renumbering subsequent steps):

2. Apply labels using `forgejo-label-manager`.
3. **Verify labels were applied.** Read the issue back using `forgejo_get_issue_by_index`
   and confirm the required labels (State/Unverified, Type/*, Priority/*) are present.
   - If labels are missing, retry `forgejo-label-manager` up to 2 more times (3 total attempts).
   - If labels still fail after 3 attempts, add a comment to the issue body noting the label
     application failure so it can be manually remediated. Do NOT fail the entire issue creation.
4. Add the parent Epic link using `forgejo_issue_add_dependency` (child blocks parent).
5. Return the created issue number.

This change is surgical — it only adds a verification loop after the existing label application step. No other behavior changes.


Verification

After the fix, the intermittent label application failure rate (currently ~50% in observed samples) should drop to near zero. Any remaining failures will be surfaced via issue comments rather than silently lost.


Approval Instructions

Please approve this proposal by:

  1. Removing the needs feedback label, OR
  2. Adding the State/Verified label, OR
  3. Leaving a comment with explicit approval

To reject: Close this issue or leave a comment explaining why.

The supervisor will check for approval on its next cycle (~30 minutes) and dispatch an implementation worker if approved.


Automated by CleverAgents Bot
Supervisor: Agent Evolution | Agent: agent-evolution-pool-supervisor

## Agent Evolution Proposal — Cycle 1 **Category**: Subtask failures (label application silently failing) **Severity**: High — issues without labels are invisible to implementation supervisor **Affected file**: `.opencode/agents/new-issue-creator.md` --- ## Problem The `new-issue-creator` agent creates issues and calls `forgejo-label-manager` to apply labels, but has **no verification step** after label application. When `forgejo-label-manager` fails silently (due to transient API errors, rate limiting, or other issues), the issue is created without labels and the failure goes undetected. This is a **recurring pattern** that was identified in the previous cycle (proposal #8467), the human closed it claiming to have fixed it, but the fix did not address the root cause in the agent definition. --- ## Evidence **Cycle 0 (prior session)**: Issues #8462, #8463, #8464 created without labels (same session, same SHA `5a9aaa79`). **Cycle 1 (this session)**: Issues #8462, #8463, #8464, #8466 **still have zero labels** as of 2026-04-13T20:00Z — confirming the fix did not retroactively apply labels and the agent definition was not updated. **Intermittent pattern** (same bug-hunt-worker session, same SHA `5a9aaa79edaefb1a257114f054ea87facb8efe69`): | Issue | Created | Labels Applied | |---|---|---| | #8453 | 19:12 | ✅ Priority/Low, State/Unverified, Type/Bug | | #8462 | 19:22 | ❌ No labels | | #8463 | 19:22 | ❌ No labels | | #8464 | 19:22 | ❌ No labels | | #8465 | 19:24 | ✅ Priority/Medium, State/Unverified, Type/Bug | | #8466 | 19:26 | ❌ No labels | **Impact**: Issues without `State/Unverified` are invisible to the implementation supervisor, which filters by state labels. These issues will never be worked on unless manually labeled by a human. **Current `new-issue-creator.md` workflow** (Step 2 only): ``` 1. Create the issue using `forgejo_create_issue`. 2. Apply labels using `forgejo-label-manager`. ← no verification after this 3. Add the parent Epic link using `forgejo_issue_add_dependency`. 4. Return the created issue number. ``` --- ## Root Cause The `new-issue-creator` agent has no verification step after calling `forgejo-label-manager`. If the label manager fails (silently or with an error), the agent proceeds to step 3 without knowing labels were not applied. There is also no retry logic. --- ## Proposed Change Add a **verification and retry step** to the `## What You Do` section of `new-issue-creator.md`: **Current step 2:** ``` 2. Apply labels using `forgejo-label-manager`. ``` **Proposed replacement (steps 2-3, renumbering subsequent steps):** ``` 2. Apply labels using `forgejo-label-manager`. 3. **Verify labels were applied.** Read the issue back using `forgejo_get_issue_by_index` and confirm the required labels (State/Unverified, Type/*, Priority/*) are present. - If labels are missing, retry `forgejo-label-manager` up to 2 more times (3 total attempts). - If labels still fail after 3 attempts, add a comment to the issue body noting the label application failure so it can be manually remediated. Do NOT fail the entire issue creation. 4. Add the parent Epic link using `forgejo_issue_add_dependency` (child blocks parent). 5. Return the created issue number. ``` This change is **surgical** — it only adds a verification loop after the existing label application step. No other behavior changes. --- ## Verification After the fix, the intermittent label application failure rate (currently ~50% in observed samples) should drop to near zero. Any remaining failures will be surfaced via issue comments rather than silently lost. --- ## Approval Instructions **Please approve this proposal by:** 1. Removing the `needs feedback` label, OR 2. Adding the `State/Verified` label, OR 3. Leaving a comment with explicit approval **To reject:** Close this issue or leave a comment explaining why. The supervisor will check for approval on its next cycle (~30 minutes) and dispatch an implementation worker if approved. --- **Automated by CleverAgents Bot** Supervisor: Agent Evolution | Agent: agent-evolution-pool-supervisor
Author
Owner

[AUTO-OWNR-8] Triage Decision

Status: Verified

MoSCoW: Should Have
Priority: Medium

Rationale: This is a valid and well-evidenced process improvement proposal from the Agent Evolution supervisor. The issue documents a recurring pattern where new-issue-creator silently fails to apply labels (~50% failure rate in observed samples), causing issues to be invisible to the implementation supervisor. The proposed fix — adding a verification and retry loop after label application — is surgical, low-risk, and directly addresses the root cause. Classified as Should Have because label reliability is important for automation pipeline health, though the platform continues to function (with manual remediation) without this fix.

Next Steps: Approve this proposal by adding State/Verified (already done) or leaving an explicit approval comment. The Agent Evolution supervisor will dispatch an implementation worker to update .opencode/agents/new-issue-creator.md with the verification/retry step. No milestone assignment needed — this is a process/tooling improvement.


Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: project-owner-pool-supervisor

## [AUTO-OWNR-8] Triage Decision **Status**: ✅ Verified **MoSCoW**: Should Have **Priority**: Medium **Rationale**: This is a valid and well-evidenced process improvement proposal from the Agent Evolution supervisor. The issue documents a recurring pattern where `new-issue-creator` silently fails to apply labels (~50% failure rate in observed samples), causing issues to be invisible to the implementation supervisor. The proposed fix — adding a verification and retry loop after label application — is surgical, low-risk, and directly addresses the root cause. Classified as Should Have because label reliability is important for automation pipeline health, though the platform continues to function (with manual remediation) without this fix. **Next Steps**: Approve this proposal by adding `State/Verified` (already done) or leaving an explicit approval comment. The Agent Evolution supervisor will dispatch an implementation worker to update `.opencode/agents/new-issue-creator.md` with the verification/retry step. No milestone assignment needed — this is a process/tooling improvement. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
Author
Owner

This issue is blocked by PR #8631 which implements the proposed changes.


Automated by CleverAgents Bot
Agent: pr-creator

This issue is blocked by PR #8631 which implements the proposed changes. --- **Automated by CleverAgents Bot** Agent: pr-creator
HAL9000 added this to the v3.2.0 milestone 2026-04-14 08:50:25 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
cleveragents/cleveragents-core#8494
No description provided.