Skip to content

t216: Orphaned PR scanner — run eagerly after worker evaluation, not just Phase 6 throttled #911

@github-actions

Description

@github-actions

Task ID: t216 | Status: open
Assignee: @marcusquinn | Logged: 2026-02-10 | Started: 2026-02-10T04:36:28Z
Tags: bugfix supervisor self-improvement

Notes

Currently scan_orphaned_prs() only runs in Phase 6 of the pulse with a 10-minute throttle. Workers that create PRs but get evaluated as task_only (because the PR wasn't in the DB) must wait for the next throttle window. Fix: (1) After any worker evaluates as complete (task_only), immediately check GitHub for open PRs on that task's branch (feature/tXXX) — this is a targeted single-PR lookup, not a full scan, so no throttle needed. (2) If found, link the PR and transition to pr_review instead of deployed. (3) Keep the full Phase 6 scan as a safety net for edge cases. This eliminates the gap where t204 created PR #886 but the supervisor marked it deployed (task_only).


Synced from TODO.md by issue-sync-helper.sh

Metadata

Metadata

Assignees

Labels

bugAuto-created from TODO.md tag

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions