06/18 Update CLAUDE.md & notification_matrix.py
This commit is contained in:
@@ -28,6 +28,7 @@ issue_created : admin ✗ director ✗ inspector ✗ pm ✗ cust
|
||||
issue_updated_customer : admin ✗ director ✗ inspector ✗ pm ✗ customer ✓
|
||||
verification_requested : admin ✓ director ✓ inspector ✗ pm ✗ customer ✗
|
||||
sla_alert : admin ✓ director ✗ inspector ✗ pm ✗ customer ✗ (assignee + followers implicit)
|
||||
score_alert : admin ✓ director ✓ inspector ✗ pm ✗ customer ✗ (facility score drop cron)
|
||||
"""
|
||||
|
||||
import json
|
||||
@@ -58,6 +59,7 @@ MATRIX_EVENTS = {
|
||||
'issue_updated_customer': 'Issue updated (customer)',
|
||||
'verification_requested': 'Verification requested',
|
||||
'sla_alert': 'SLA at-risk / breached',
|
||||
'score_alert': 'Facility score trend alert (significant drop)',
|
||||
}
|
||||
|
||||
# Default enabled state: (event_key, role_key) → True/False
|
||||
@@ -147,6 +149,13 @@ MATRIX_DEFAULTS = {
|
||||
('sla_alert', 'project_manager'): False,
|
||||
('sla_alert', 'customer'): False,
|
||||
('sla_alert', 'custom'): False,
|
||||
# score_alert — facility rolling-avg score drop detected by cron
|
||||
('score_alert', 'admin'): True,
|
||||
('score_alert', 'director'): True,
|
||||
('score_alert', 'inspector'): False,
|
||||
('score_alert', 'project_manager'): False,
|
||||
('score_alert', 'customer'): False,
|
||||
('score_alert', 'custom'): False,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user