Skip to content

feat: warn when no escalation policy pages your personal notification methods - #906

Merged
fclairamb merged 8 commits into
feat/todos-2026-11-16from
feat/todos-2026-11-16-2
Nov 16, 2026
Merged

fclairamb merged 8 commits into
feat/todos-2026-11-16from
feat/todos-2026-11-16-2

Conversation

@fclairamb

@fclairamb fclairamb commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #904: merge it first.

Closes #905

What changed

  • Personal notification methods that can never fire are now flagged (Telegram notifications are missing #905). Telegram, WhatsApp, SMS and DMs set under Account → Notifications only fire when an escalation policy pages the user. Many orgs have no default policy, so those methods were silently dead.
    • GET …/users/me/notification-routes gets a new, additive paging field: {coveredBy: org_default|some_checks|none, policyCount}. It is computed by the new escalationcoverage package and handles user targets, all_admins (admins only) and schedule membership, ignoring soft-deleted policies.
    • Account → Notifications warns when no policy pages you. Admins get a link to the escalation policies; other members are told to ask an admin. A lighter note appears when only some checks page you. All 4 locales are updated.
    • The Telegram bot's link confirmation and the in-app "connected" toast say so too.
    • Alerting → Integrations explains that personal channels live under Account → Notifications.
    • Tests: Go tests for coverage, the API field and the Telegram note; Playwright for the warning and the integrations link.

Decided by autopilot

  • Spec 2026-11-16-02-personal-alerts-silent-without-escalation-policy, Q1 (seed a default policy at org creation?): no, warn only.
  • Same spec, Q2 (one-click "create default policy" for admins?): the recommended answer was yes, but dropped if over budget. It was dropped, so nothing creates a policy from the warning. It can be a follow-up.
  • escalationcoverage re-implements the job's target matching, because the job's fan-out is tied to a live incident. Each copy has a comment pointing at the other.

🤖 Generated with Claude Code

@fclairamb fclairamb added autopilot frozen Batch PR under review: takes only its own fixes, new work goes to the next batch labels Nov 16, 2026
fclairamb and others added 6 commits November 16, 2026 14:51
Closes #905. ListRoutes gains paging.coveredBy (org_default|some_checks|none);
Account -> Notifications shows an alert, the Telegram link confirmation and
toast say the same, Integrations points to personal channels. The optional
one-click default policy button is not implemented.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…on policy

Add Telegram link-confirmation note tests; cross-reference coverage matching with the escalation job.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@fclairamb fclairamb changed the title fix: warn when personal notification methods can never fire feat: warn when no escalation policy pages your personal notification methods Nov 16, 2026
@fclairamb fclairamb added the implemented Every spec of the PR is implemented and its batch gate was green label Nov 16, 2026
@fclairamb
fclairamb merged commit 7ba1b7b into feat/todos-2026-11-16 Nov 16, 2026
3 checks passed
@fclairamb
fclairamb deleted the feat/todos-2026-11-16-2 branch November 16, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge autopilot autorelease frozen Batch PR under review: takes only its own fixes, new work goes to the next batch implemented Every spec of the PR is implemented and its batch gate was green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant