paperclip/server
Builder e9b1ef846c fix(recovery): skip resolved-dependency backstop candidates with non-invokable assignees
The `reconcileResolvedDependencyWakeBackstop` sweep listed every blocked issue
whose blockers had resolved and enqueued a wake for its assignee. It did not
check whether the assignee was actually invokable, so an issue assigned to a
paused, terminated, or pending_approval agent triggered a fresh wake on every
heartbeat. Each wake failed with `wake_target_not_invokable` (409) and the
same issue re-entered the candidate set the next tick, producing a steady
stream of warnings until an operator intervened.

Add `agents.status NOT IN (paused, terminated, pending_approval)` to the
candidate query, mirroring the atomic guard already used when the heartbeat
flips an agent to `running` (see `services/heartbeat.ts` around the pause
durability update). Both branches of `queryCandidates` (with and without
`blockerIssueId`) now `innerJoin(agents)` and share the filter. Org-chain
invalidity is still evaluated per-candidate at the enqueue path, so no
behavior change for the org-chain case.
2026-08-22 10:58:07 +00:00
..
scripts fix(server): stamp built commit into service.version (#11748) 2026-08-19 21:20:40 -07:00
src fix(recovery): skip resolved-dependency backstop candidates with non-invokable assignees 2026-08-22 10:58:07 +00:00
CHANGELOG.md fix: bound workspace Git scans (#11572) 2026-08-17 22:11:30 -05:00
package.json fix(build): enforce Node 24 across Paperclip (#11792) 2026-08-21 10:17:52 -07:00
tsconfig.json Fix root TypeScript solution config 2026-03-09 14:09:30 -05:00
vitest.config.ts Fix remote-only workspace base refs and pre-adapter retry loops (#11892) 2026-08-21 13:09:44 -07:00