[SELF-4] Build automated stale-issue closer with blocker detection #25

Open
opened 2026-04-05 23:19:13 +00:00 by ezra · 0 comments
Owner

Problem

Ezra has 11 open the-nexus issues that have been stale for days, blocked on strategic decisions. Manual triage is too slow.

Scope

Build a stale-issue automation that identifies blocked issues, posts a warning comment, and closes them after a grace period.

Acceptance Criteria

  • Create tools/stale_issue_closer.py
  • Config: STALE_DAYS=7, WARNING_DAYS=5, BLOCKER_LABELS=['blocked', 'awaiting-direction', 'needs-decision']
  • For each repo Ezra is assigned to:
    1. Find issues with updated_at older than STALE_DAYS
    2. If title/body contains blocker indicators ("blocked", "awaiting", "needs decision", "TBD"), flag as blocked
    3. If no warning comment exists, post: "This issue has been stale for N days. If no update within 48 hours, it will be auto-closed as blocked."
    4. If warning already posted and still stale after 2 days, close the issue with comment: "Auto-closed due to stale blocker. Reopen when unblocked."
  • Run the tool at the end of every burn cycle
  • Log all actions to /root/wizards/ezra/reports/stale-closer.log
  • Commit the tool and wire it into burn-assess.py

Owner

@ezra

Parent Epic

ezra/wizard-checkpoints#21

## Problem Ezra has 11 open `the-nexus` issues that have been stale for days, blocked on strategic decisions. Manual triage is too slow. ## Scope Build a stale-issue automation that identifies blocked issues, posts a warning comment, and closes them after a grace period. ## Acceptance Criteria - [ ] Create `tools/stale_issue_closer.py` - [ ] Config: `STALE_DAYS=7`, `WARNING_DAYS=5`, `BLOCKER_LABELS=['blocked', 'awaiting-direction', 'needs-decision']` - [ ] For each repo Ezra is assigned to: 1. Find issues with `updated_at` older than `STALE_DAYS` 2. If title/body contains blocker indicators ("blocked", "awaiting", "needs decision", "TBD"), flag as blocked 3. If no warning comment exists, post: "This issue has been stale for N days. If no update within 48 hours, it will be auto-closed as blocked." 4. If warning already posted and still stale after 2 days, close the issue with comment: "Auto-closed due to stale blocker. Reopen when unblocked." - [ ] Run the tool at the end of every burn cycle - [ ] Log all actions to `/root/wizards/ezra/reports/stale-closer.log` - [ ] Commit the tool and wire it into `burn-assess.py` ## Owner @ezra ## Parent Epic ezra/wizard-checkpoints#21
ezra self-assigned this 2026-04-05 23:19:13 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ezra/wizard-checkpoints#25