Reachability
Know a page will get through before the incident: readiness checks, test pages, and the answer to “why me?”.
Most missed pages are not outages. They are a phone number that was never verified, an app that was denied notifications, Do Not Disturb with no exception for the pager, a notification rule that calls after the escalation has already moved on, or a rotation with nobody in it on Sunday night. All of those are knowable before the incident, and treason.app checks them.
#Readiness
treason readiness # the whole organization
treason readiness --user <user-id> # one person, with how to fix each problemconst { summary, onCallNow, gaps } = await treason.reachability.organization();
const { readiness } = await treason.reachability.user(userId); // readiness.checks[].fixFor each person we check:
| Check | Fails or warns when |
|---|---|
| Phone | No verified number. We never send to an unverified one, so no text or call would go out. |
| The app | Not installed, or not opened in over a month (a stale push token). |
| App settings | Notifications are off, or never allowed. iOS: Critical Alerts is off, so Do Not Disturb and the silent switch can mute a page. Android: no Do Not Disturb access, or battery restrictions that delay pushes. |
| Notification rules | Urgent alerts only push, or the rules send texts and calls but no number is verified. |
| Timing | Their last channel fires after the escalation step has moved on to the next one. |
| Tested | Never tested, not for a month, or the last test did not get through. |
A person is ready, has warnings (reachable, but fragile), is at_risk (a check failed) or is unreachable (nothing verified to reach them by).
For the organization, readiness also answers the question that matters most: can whoever is on call right now be paged? onCallNow lists each schedule that a policy pages, who is on it, and their level. gaps lists schedules with nobody on call right now or in the next 14 days, policies with no steps, steps with no one to page, and teams that receive alerts but have no escalation policy. treason readiness exits 2 when anything is wrong, so it can gate a deploy or run from cron.
#What the app tells us
The phone app reports its own settings (POST /app/v1/capabilities), because a server cannot see them: notification permission, whether Critical Alerts or Do Not Disturb access is granted, battery restrictions, app and OS version. Every field is optional, so an older app simply shows "has not reported its settings".
#Test pages
A test page is a real page along the real path, to one person.
treason test-page <user-id> --channel push --channel sms --wait # exit 0 if it got through
treason test-page <user-id> --wait 5m # their own rules; passes when they acknowledgeconst result = await treason.reachability.testAndWait(userId, { channels: ["push", "sms"] });
// result.outcome: "passed" | "failed" | "pending"; result.channels: what each carrier said- With
channels, each is tried now and the test passes when each is delivered. This is the fast check after fixing a phone setting. - Without, it uses the person's own notification rules and passes only when they acknowledge, because a push that arrived proves little if the call never rings.
A test is hidden from alert lists, counts, noise reports and billing; it fires no webhook; and if nobody answers it does not page your admins. Carrier costs for the messages themselves still apply. The result lands in readiness as the "Tested" check.
#Before a shift
Set preshiftTestHours on the organization (PATCH /v1/org, or the dashboard) and anyone about to go on call within that many hours gets a quiet push test: only if nobody has tested them in the last week, and only during the day where they are (9:00 to 18:00 in their own time zone). A phone that fails the check is found out a day early.
#Why was I paged?
Every notification records the chain that led to it. In the dashboard it is on the alert's page, and in the API it is why on each attempt of GET /v1/alerts/{id}:
{
"channel": "sms",
"why": {
"kind": "schedule", "scheduleName": "Payments primary", "via": "override", "policy": "Payments", "step": 1,
"rule": { "channel": "sms", "delaySeconds": 120, "custom": false },
"text": "You are on call for “Payments primary” (through an override), which step 1 of the escalation policy “Payments” pages. You have no notification rules, so the default applies: a text message after 2 min."
}
}kind is schedule, team, user (named in a step), responder (named by the sender), admin_notice, or test. The alert's escalated events carry the same sentence per person. treason alert get <id> prints it under each attempt.