monitor: a permanently failed alert delivery leaves no trace on any operator surface #288
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#288
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
internal/monitor/notify.go:261—_ = o.notifier.Deliver(ctx, d)discards the typed error thatinternal/notify/notify.go:110deliberately returns after exhausting its retries. There is no durable outbox, so a permanently failed alert-contact email leaves no trace anywhere — and this channel is the one designed to survive a fleet outage (the moment it fails is exactly the moment it matters).The alert itself standing on the status surface is not enough: the operator relying on email doesn't know the email never went.
Acceptance
Filed from the 2026-08-05 fail-loud audit (three-agent pre-production sweep; findings verified against code).
Fixed in
436b208(onorigin/main).internal/monitor/notify.goOrchestrator.deliverdiscarded the typed exhausted-retries error the production notifier returns (internal/notify/notify.go:110), so a permanently failed alert-contact email left no trace on any operator surface.delivernow records each real alert-contact delivery outcome into a newContactDeliverymark (Failed,At,AlertID,Detail), read where the contact is managed viaOrchestrator.AlertContactDelivery(): an exhausted delivery reads a failure carrying the alert and the error text, a delivery that goes through clears it, andSetAlertContactclears any stale mark. The raise stays best-effort (a failed send never un-raises the alert).Red-first tests in
internal/monitor/contact_test.go: exhausted delivery ⇒ failure readable from the monitor surface, clears on a recovered re-delivery; a contact change clears a standing failure.go test/go vet/golangci-lintgreen (monitor, notify).