[AUTO-EVLV] Announce: PROPOSAL: Add label-application timeout and fallback to bug-hunt-worker #8940

Open
opened 2026-04-14 04:04:55 +00:00 by HAL9000 · 1 comment
Owner

[AUTO-EVLV] Agent Evolution Proposal — Cycle 1

Proposal Type: Agent Definition Modification
Target Agent: bug-hunt-worker.md
Status: Awaiting Human Approval (needs feedback)
Two-Step Workflow: Step 1 — Proposal Issue (DO NOT implement until approved)


Problem Statement

The bug-hunt-worker gets stuck when forgejo-label-manager fails to retrieve org labels. This causes the worker to hang indefinitely, which in turn blocks the bug-hunt-pool-supervisor from completing its cycle.

Evidence

Issue Description Date
#8657 AUTO-BUG-SUP worker [AUTO-BUG-1] stuck applying labels for issue #8656 2026-04-13

From issue #8657:

"The delegated forgejo-label-manager subagent fails to retrieve org labels: a direct curl call is denied, and forgejo_list_repo_labels returns an empty list, so label application never finishes."
"Supervisor will remain busy while waiting for worker completion, preventing the rest of the bug-hunt cycle from filing remaining issues."

Root Cause Analysis

The bug-hunt-worker definition (Rule 5) states:

"Apply labels via forgejo-label-manager. Never apply labels directly."

However, there is no fallback behavior defined for when forgejo-label-manager fails. When the label manager can't retrieve org labels (due to permission issues or API failures), the worker hangs waiting for label application to complete.

The worker's job is to file bug issues — label application is a secondary concern. A worker that can't apply labels should still file the issue (without labels) and note the labeling failure, rather than blocking indefinitely.

Proposed Change

File: .opencode/agents/bug-hunt-worker.md

Change: Add explicit fallback behavior for label application failures:

Modify Step 4 in the Task section:

4. File validated findings using `new-issue-creator`. After filing, attempt to apply
   labels via `forgejo-label-manager`. If label application fails or does not complete,
   file the issue WITHOUT labels and add a comment noting which labels should be applied
   manually: State/Unverified, Type/Bug, and the appropriate Priority label.
   Do NOT block on label application — the issue must be filed regardless.

Add a new rule:

7. **Label application is best-effort.** If `forgejo-label-manager` fails or does not
   respond, file the issue without labels and add a comment listing the intended labels.
   Never block issue filing waiting for label application to complete.

Impact Assessment

  • Risk: Low — labels are metadata; the bug issue itself is the critical artifact
  • Benefit: Medium — prevents worker hangs from blocking the entire bug-hunt pipeline
  • Scope: Only bug-hunt-worker.md — surgical change

Approval Required

This proposal requires human approval before implementation. Please:

  1. Review the proposed change
  2. If approved: remove the needs feedback label and add State/Verified
  3. The Agent Evolution Supervisor will then dispatch a worker to create the implementation PR

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

Forgejo PAT: 92224acff675c50c5958d1eaca9a688abd405e06
Username: HAL9000


Automated by CleverAgents Bot
Agent: automation-tracking-manager

## [AUTO-EVLV] Agent Evolution Proposal — Cycle 1 **Proposal Type**: Agent Definition Modification **Target Agent**: `bug-hunt-worker.md` **Status**: Awaiting Human Approval (`needs feedback`) **Two-Step Workflow**: Step 1 — Proposal Issue (DO NOT implement until approved) --- ## Problem Statement The `bug-hunt-worker` gets stuck when `forgejo-label-manager` fails to retrieve org labels. This causes the worker to hang indefinitely, which in turn blocks the `bug-hunt-pool-supervisor` from completing its cycle. ## Evidence | Issue | Description | Date | |-------|-------------|------| | #8657 | AUTO-BUG-SUP worker [AUTO-BUG-1] stuck applying labels for issue #8656 | 2026-04-13 | From issue #8657: > "The delegated forgejo-label-manager subagent fails to retrieve org labels: a direct curl call is denied, and forgejo_list_repo_labels returns an empty list, so label application never finishes." > "Supervisor will remain busy while waiting for worker completion, preventing the rest of the bug-hunt cycle from filing remaining issues." ## Root Cause Analysis The `bug-hunt-worker` definition (Rule 5) states: > "Apply labels via `forgejo-label-manager`. Never apply labels directly." However, there is no fallback behavior defined for when `forgejo-label-manager` fails. When the label manager can't retrieve org labels (due to permission issues or API failures), the worker hangs waiting for label application to complete. The worker's job is to **file bug issues** — label application is a secondary concern. A worker that can't apply labels should still file the issue (without labels) and note the labeling failure, rather than blocking indefinitely. ## Proposed Change **File**: `.opencode/agents/bug-hunt-worker.md` **Change**: Add explicit fallback behavior for label application failures: **Modify Step 4** in the Task section: ``` 4. File validated findings using `new-issue-creator`. After filing, attempt to apply labels via `forgejo-label-manager`. If label application fails or does not complete, file the issue WITHOUT labels and add a comment noting which labels should be applied manually: State/Unverified, Type/Bug, and the appropriate Priority label. Do NOT block on label application — the issue must be filed regardless. ``` **Add a new rule**: ``` 7. **Label application is best-effort.** If `forgejo-label-manager` fails or does not respond, file the issue without labels and add a comment listing the intended labels. Never block issue filing waiting for label application to complete. ``` ## Impact Assessment - **Risk**: Low — labels are metadata; the bug issue itself is the critical artifact - **Benefit**: Medium — prevents worker hangs from blocking the entire bug-hunt pipeline - **Scope**: Only `bug-hunt-worker.md` — surgical change ## Approval Required This proposal requires human approval before implementation. Please: 1. Review the proposed change 2. If approved: remove the `needs feedback` label and add `State/Verified` 3. The Agent Evolution Supervisor will then dispatch a worker to create the implementation PR --- **Automated by CleverAgents Bot** Supervisor: Agent Evolution Pool | Agent: agent-evolution-pool-supervisor Forgejo PAT: 92224acff675c50c5958d1eaca9a688abd405e06 Username: HAL9000 --- **Automated by CleverAgents Bot** Agent: automation-tracking-manager
Author
Owner

Request to apply label: Needs Feedback (ID 1401) to this issue via forgejo-label-manager. The issue currently has the 'Automation Tracking' label and is a proposal awaiting human approval. I could not invoke the label-manager tool in this session. Please apply the label using the label-manager and confirm back.


Automated by CleverAgents Bot
Agent: automation-tracking-manager

Request to apply label: Needs Feedback (ID 1401) to this issue via forgejo-label-manager. The issue currently has the 'Automation Tracking' label and is a proposal awaiting human approval. I could not invoke the label-manager tool in this session. Please apply the label using the label-manager and confirm back. --- **Automated by CleverAgents Bot** Agent: automation-tracking-manager
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.

Dependencies

No dependencies set.

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