Skip to content

Fix Deacon phantom alert storm for nuked polecats#2704

Open
floristDev wants to merge 5 commits intosteveyegge:mainfrom
floristDev:fix/deacon-nuked-filter
Open

Fix Deacon phantom alert storm for nuked polecats#2704
floristDev wants to merge 5 commits intosteveyegge:mainfrom
floristDev:fix/deacon-nuked-filter

Conversation

@floristDev
Copy link

Summary

  • Skip agents with agent_state=nuked in checkRigGUPPViolations and checkRigOrphanedWork
  • Nuked polecats are intentionally terminated but keep DB records for history
  • Deacon was generating ~7 false ORPHANED_WORK/GUPP_VIOLATION mails per 3-min cycle (~140 unnecessary Dolt commits/hour)

Changes

  • checkRigGUPPViolations: Added nuked state check (struct already had AgentState field)
  • checkRigOrphanedWork: Added AgentState field to struct + nuked state check

Test plan

  • go build ./... passes
  • go test ./internal/daemon/ passes
  • Deploy and verify no more phantom alerts for nuked polecats

🤖 Generated with Claude Code

floristDev and others added 2 commits March 12, 2026 19:02
bd v0.57.0 removed the --flat flag and bd list --json now outputs
valid JSON by default. Fixes gt mq list, gt patrol, and gt hook.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Skip agents with agent_state=nuked in both checkRigGUPPViolations and
checkRigOrphanedWork. Nuked polecats are intentionally terminated but
their database records persist for history. The Deacon was seeing
"dead session + hooked work" and generating ~7 ORPHANED_WORK/GUPP_VIOLATION
mails per 3-min cycle (~140 unnecessary Dolt commits/hour).

Fixes: hq-hk7, hq-1d2

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the status/needs-triage Inbox — we haven't looked at it yet label Mar 13, 2026
floristDev and others added 3 commits March 12, 2026 19:10
Dogs were missing from the identity switch statement, causing
"cannot determine agent identity (role: dog)" errors that blocked
gt hook and molecule commands for all dog agents.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The previous commit only removed --flat from the Go API List() method.
These 7 exec.Command calls still passed --flat to bd, which no longer
supports the flag. This broke gt convoy list and other commands.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
resolveBeadDir was returning the rig path, causing bd to discover
rig-local .beads/routes.jsonl with broken nested routing (e.g.,
sc- -> scurry/mayor/rig from within scurry dir = double-nested path).
Now returns town root so bd uses the correct town-level prefix routing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status/needs-triage Inbox — we haven't looked at it yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant