[triage-generated] [bug] Dev loop picks closed issues - must verify state before starting work #1470

Closed
opened 2026-03-24 22:38:56 +00:00 by Timmy · 1 comment
Owner

Bug

The dev loop picks issues from queue.json without checking if they are still open in Gitea. All 47 queued issues were closed (repo was archived) but the loop kept trying them, causing 0% success across 50+ cycles.

Acceptance Criteria

  1. Before starting work on any issue, check Gitea API for state:open
  2. If closed, skip it and log the skip
  3. Auto-prune closed issues from queue.json
  4. Loop should never report issue:null

Files

  • .loop/DEVELOPMENT_LOOP_PROCESS.md
  • Loop runner prompt

Priority: P0

## Bug The dev loop picks issues from queue.json without checking if they are still open in Gitea. All 47 queued issues were closed (repo was archived) but the loop kept trying them, causing 0% success across 50+ cycles. ## Acceptance Criteria 1. Before starting work on any issue, check Gitea API for state:open 2. If closed, skip it and log the skip 3. Auto-prune closed issues from queue.json 4. Loop should never report issue:null ## Files - .loop/DEVELOPMENT_LOOP_PROCESS.md - Loop runner prompt ## Priority: P0
Author
Owner

Fix submitted: Timmy_Foundation/sovereign-orchestration PR (timmy/issue-1470 branch).

Three-layer defense:

  1. get_next_task() checks issue state via Gitea API before returning a task — closed issues are auto-cancelled
  2. read_issue step raises IssueClosedError if issue is not open — hard gate even if task slips through
  3. prune_closed_issues() method for bulk cleanup of stale queued tasks

The loop will never waste cycles on closed issues again.

Fix submitted: Timmy_Foundation/sovereign-orchestration PR (timmy/issue-1470 branch). **Three-layer defense:** 1. `get_next_task()` checks issue state via Gitea API before returning a task — closed issues are auto-cancelled 2. `read_issue` step raises `IssueClosedError` if issue is not open — hard gate even if task slips through 3. `prune_closed_issues()` method for bulk cleanup of stale queued tasks The loop will never waste cycles on closed issues again.
Timmy closed this issue 2026-03-25 02:10:03 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1470