Repository navigation
Description
Role
Vision / parent roadmap for milestone v1.15.x — Alert Rules — not a single mega-implementation ticket.
Implementation ships via child issues below (and stacked PRs). Keep this issue open as the umbrella until the Alert Rules vision is substantially realized across children (or explicitly retired). Do not close this because one foundation PR landed.
Roadmap priority
2 (after Notifications v1.14)
Parent
#492 (Notifications vision — channel delivery is Priority 1; this is the rules engine)
Goal
Provide configurable notification rules per project and (later) organization.
Developers should define custom conditions that trigger notifications and bind opaque destination ids. Delivery (email, Slack, Discord, Teams, Telegram, webhooks) is owned by Notifications — not by Alert Rules.
Separation of concerns
| Capability | Owns |
|---|---|
| Alert Rules | Condition[] (AND), thresholds/windows, cooldown/dedupe, opaque destinationIds |
| Notifications (v1.14) | fireProjectAlert / enqueue, Notification Center, provider send paths |
Rules must not embed provider-specific send logic beyond calling into existing dispatch.
Preferred rule model
IF condition1 AND condition2 AND …
→ notify destinationIds[] # opaque; Notifications resolves providers
Not a rigid one-condition / one-provider design. Prefer destinationIds over first-class destination = "email"|"slack"|… on the rule.
Examples
IF error count ≥ 25 in 15m AND environment = production
→ destinationIds: [project-email, <slack-webhook-id>]
IF sessions drop by 50%
→ destinationIds: [project-email]
IF new error group detected AND 50+ users affected
→ destinationIds: [<discord-webhook-id>]
Child issues (implementation slices)
#493 (this issue — vision only)
|
+---- #532 Condition model + ERROR_COUNT evaluator + opaque destinationIds + MVP UI (PR #531)
+---- #533 Dashboard multi-condition / edit UX
+---- #534 Additional conditions + scheduled evaluator
+---- #535 Integration (migrate built-in spike/quota into AlertRule)
+---- #536 Release (v1.15.0)
| Slice | Issue |
|---|---|
| Foundation | #532 — PR #531 |
| Dashboard UI polish | #533 |
| Extended conditions + scheduled evaluation | #534 |
| Integration (built-in → rules) | #535 |
| Release v1.15.x | #536 |
Related
- Parent vision: #492
- Notification Center: #508
- Closed #97 covered basic spike + quota alerts — this supersedes with a general rules engine
- Channel integrations: #223 #224 #225 #499 #500
- Docs: docs/ALERT-RULES.md
Out of scope for this parent issue
- Any single-channel provider CRUD/dispatch (belongs on Notifications / channel children)
- Closing this issue because foundation PR Alert rules foundation: Condition[] + opaque destinationIds (#532) #531 merged
- Starting the v1.15.x release until #536 is ready
Activity
unjica commentedon Jul 17, 2026
Foundation slice #532 shipped in v1.15.0 (release; PR #531 → #537).
This parent vision issue stays open — remaining children: #533–#535 (and further work under milestone v1.15.x).
unjica commentedon Jul 18, 2026
Reopened for v1.15.2 release/smoke; will close after production health verification per RELEASE.md practice.
unjica commentedon Jul 18, 2026
Closed after successful v1.15.2 production deploy + smoke (health 1.15.2, migrations applied, SYSTEM builtin backfill OK). Remaining follow-up (dual-write cleanup of spike/quota fields from alert_settings) can be tracked separately if needed.
Add configurable alert rules with ERROR_COUNT evaluation.