Commit a0f192c
fix: daemon idle reaper checks work bead assignee before killing polecats (#3294)
* fix: resolve CI failures — lint, test expectations, and missing dummy binaries
- Add nolint:unparam to writeTemplate for unused hooksDir parameter
- Update TestBuildRefineryPatrolVars_FullConfig to expect judgment_enabled
and review_depth vars added to buildRefineryPatrolVars
- Add dummy opencode binary to PATH in TestRunHooksSyncNonClaudeAgent so
agent resolution doesn't fall back to claude
- Add dummy agent binaries to scaffoldWorkspace in doctor tests so
template agent sync checks can actually detect non-Claude agents
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: daemon idle reaper checks work bead assignee before killing polecats
The idle reaper checked agent bead hook_bead to determine if a polecat
had active work, but updateAgentHookBead was made a no-op (declaring
work bead assignee as authoritative). This caused the reaper to kill
working polecats whose agent bead hook_bead pointed to stale/closed
beads from previous swarms.
Add hasAssignedOpenWork() fallback: before killing a polecat as
"working-no-hook", query bd list for beads assigned to this polecat
with hooked/in_progress/open status. If any exist, the polecat has
active work and should not be reaped.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent d34e11c commit a0f192c
File tree
0 file changed
+0
-0
lines changed0 file changed
+0
-0
lines changed
0 commit comments