Skip to content

fix(daemon): deduplicate Dolt alerts and use nudge instead of mail#3474

Open
outdoorsea wants to merge 1 commit intogastownhall:mainfrom
outdoorsea:pr/daemon-dedup-alerts
Open

fix(daemon): deduplicate Dolt alerts and use nudge instead of mail#3474
outdoorsea wants to merge 1 commit intogastownhall:mainfrom
outdoorsea:pr/daemon-dedup-alerts

Conversation

@outdoorsea
Copy link
Copy Markdown
Contributor

Summary

  • Deduplicates Dolt health alerts to prevent alert storms flooding the inbox
  • Switches routine agent-to-agent Dolt alerts from gt mail send (permanent Dolt commit) to gt nudge (zero cost)
  • Follows the communication hygiene principle: mail only for messages that must survive session death

Test plan

  • Dolt alerts deduplicated — same alert not sent repeatedly
  • Nudge used for routine alerts, mail reserved for escalations
  • Builds clean

🤖 Generated with Claude Code

@github-actions github-actions bot added the status/needs-triage Inbox — we haven't looked at it yet label Apr 1, 2026
@outdoorsea outdoorsea force-pushed the pr/daemon-dedup-alerts branch from b8b3578 to c3d5238 Compare April 1, 2026 23:33
jw409 added a commit to jw409/gastown-upstream that referenced this pull request Apr 2, 2026
- Add doltAlertTracker with fingerprint-based cooldowns (5min) to
  prevent wisp storms during Dolt crash loops
- Switch sendCrashAlert and sendUnhealthyAlert from gt mail send to
  gt nudge (ephemeral, zero-cost — no Dolt commit per alert)
- Keep escalation on gt mail send (must survive session death) with
  --wisp-type escalation tag
- Remove witness mail fan-out; witnesses detect degraded state via
  DOLT_UNHEALTHY signal file instead
- Reset alert tracker when backoff resets after healthy period
- Fix wispTypeToCategory test to match current 2-arg signature
- Add nolint:misspell annotations for bead ID references (gt-ect)
- Fix serialised → serialized typo in convoy_manager

Fixes gastownhall#3474
…q-fo5)

- Add doltAlertTracker with 5-minute cooldown to suppress alert storms
- Switch sendCrashAlert and sendUnhealthyAlert from gt mail to gt nudge
- Remove witness fan-out from crash/unhealthy/escalation alerts
  (witnesses detect degraded state via DOLT_UNHEALTHY signal file)
- Add --wisp-type escalation to sendEscalationMail
- Reset alert tracker on recovery in maybeResetBackoff
@outdoorsea outdoorsea force-pushed the pr/daemon-dedup-alerts branch from c3d5238 to c26024e Compare April 2, 2026 18:18
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