On-call
Paging runs in the cloud. It takes page requests from the hub
(pipeline.md §10), groups them into incidents,
finds the person on call and delivers by push to the Excubio app
(mobile.md), SMS and voice until someone responds. Tables:
schema/cloud.sql; endpoints:
api/cloud.yaml.
Teams and rotations are operational data, not spec: people swap shifts at three in the morning without a review. Every change to them is audited (compliance.md §3).
1. People and teams
- A person logs in through the tenant's IdP (via Zitadel,
architecture.md §12). Their
contact methods are phone numbers (for SMS, voice or both), devices with
the Excubio app (mobile.md §2) and an
e-mail address. People maintain their own numbers; a number is usable
only after verification by a code sent to it, by SMS or, for a voice-only
number, by a call. A code has 6 digits, is valid for 10 minutes and
allows 5 attempts; then a new code is needed. The cloud keeps a keyed
hash of the current code, never the code. A person can request at
most 5 codes and 5 test messages per hour (
person.rate_limited), and a tenant's people together 200 of both a day (tenant.rate_limited; the message that reaches it tells the tenant admins by SMS and the vendor byexcubio_tenant_budget_reached_total(integrations.md §11), at most once a day). The limits count the notices sent (§4). Numbers must have a country calling code the tenant allows (contact_calling_codes, by default those of the EEA, Switzerland and the United Kingdom; a tenant with staff elsewhere adds theirs, such as1for North America; a tenant in trial has tighter limits, §4 Trial delivery) and be mobile or fixed-line numbers: premium-rate, shared-cost and other special numbers are refused (contact.number_type) by the number plan's ranges, and the carriers block them as well. External staff without a directory account get a guest account in the customer's IdP. - A person is reachable when they have a notification rule and each of
their rules has at least one step
on a verified number or on a device that is ready or limited
(mobile.md §4). This is the one definition of
reachable; the API's
reachablefields and the reports use it. A shift of a person who isn't reachable is reported like a gap (§2), and a page for it is handled exactly like a page for a gap: it goes to the rotation's fallback people, and without them to the team admins. - A verified number belongs to one person of the tenant. A phone that is handed over with the shift is a rotation's handset (§2), not a contact of several people.
- A team has a slug (used by the hub spec), a name, members with roles
(architecture.md §10), a mail address
for notifications and one or more rotations.
Team membership comes from IdP groups or is managed in Excubio. A
member who comes from the team's IdP group starts with the role
member; a team admin sets the roles of all members and can remove any of them. The people of a rotation's layers and its fallback people are members of its team (rotation.not_member); an escalation targetperson:and an invite can name any person of the tenant. - There are no shared or technical users for paging.
- Absences. A person can record an absence (from, to); rotation managers can record one for anyone in their teams. During an absence the person is skipped in every layer of every rotation (§2); the rotation managers are told when that leaves a gap.
- Leavers. There is no directory provisioning: the membership of an
IdP group's team changes for a person when that person logs in
(architecture.md §12), and
otherwise when a team admin changes it. A person disabled in the
directory can't log in, so the sync never removes them: their device
tokens expire 30 days after their last login
(mobile.md §2), but their verified
numbers still receive pages until a team admin removes them from the
team, which works for IdP-synced members too. The team page marks
members who are in a layer and haven't logged in for 14 days, and the
daily gap report (§2) lists them. A member who is
removed while still in the IdP group is a member again, with the role
member, at their next login. - Leaving a team takes the person out of the team's layers, which re-anchor as for any change of their people (§2), and out of its rotations' fallback people; the rotation managers are told when that leaves a gap. Their overrides and swaps of the team's rotations from then on are cancelled. Chains that run for the person go on, and they can still respond to the incidents they were notified for.
- Person lifecycle. A person is created at their first login, in
the language of the IdP's
localeclaim when it is German or English, else in the first of the two the browser or the app asks for (Accept-Language), else in German; they change it on the Me page (ui.md §3). A person who is in no team and holds no tenant role becomes inactive: their contact methods are deleted, their devices and API tokens revoked and their name is replaced by a pseudonym (compliance.md §5). The row and its login subject stay, so shifts, deliveries, responses and audit entries keep their person, and a person who logs in again and joins a team is the same person, active again, with the name of the login and with contacts, devices and notification rules to set up anew. A login makes an inactive person active only when, after its group sync, they are in a team or hold a tenant role; otherwise it is refused (person.inactive), and the person keeps the pseudonym. A login never makes a person inactive, and a person's first login creates them active. An admin who adds an inactive person to a team or grants them a tenant role makes them active again. An inactive person named as aperson:target isn't reachable, so that level is skipped (§7).
2. Rotations
A rotation is what gets paged and what the licence counts. Its slug is
unique within the team (primary, network, team-lead).
| Element | Meaning |
|---|---|
| Layers | Evaluated top-down; the first layer that covers a point in time decides. Example: "office hours Mon–Fri 07:00–17:00: everyone in the layer" above "always: weekly rotation of six people". |
| Pattern | Per layer: daily, weekly or a custom length, a hand-over time, an ordered list of people, and the mode one (the current person), all (everyone in the layer) or punch (everyone who is punched in, §2.2). A layer covers from starts_at and can end (ends_at), so a new line-up can be planned as a second layer that starts when the first ends; its pattern runs from its anchor (below). |
| Restrictions | Per layer: weekdays and times it covers, and a holiday calendar with the mode uncovered (holidays are not covered, so a lower out-of-hours layer applies), only (the layer covers holidays only) or ignore. |
| Overrides | "Person X covers from T1 to T2." Members can override themselves and accept swaps; rotation managers can override anyone. Overrides win over all layers: X is the only person on call for the rotation then, also over layers in mode all or punch. Overrides of one rotation don't overlap, and swaps don't overlap with overrides or with swaps of the same requester: an overlapping one is rejected (override.overlap) unless it is created with replace, which shortens an older override that overlaps one of its hubs, cancels one that lies within it and splits one that encloses it into the part before and the part after it. |
| Swaps | A member asks a named person, or every person of the layers they are in, to take a period of their shifts (§2.1). |
| Handset | Optional: a phone number that is passed on at hand-over. When set, deliveries for the person on call go to the handset with the rotation's media chain, and responses from it count as that person's. With several people on call (a layer in mode all or punch), an incident has one handset chain, not one per person; it is recorded for the first of them in layer order. A hand-over starts no second handset chain: the running one goes on, and a response from the handset counts as that of the person on call when it is given. next-in-layer resolves to nobody on a handset rotation, since the handset already rings (§7). A delivery to the handset names the rotation, not a contact. |
| Escalation | Optional levels (§7). |
| Grouping | Window and storm guard for incidents (§3). |
| Timezone | For all times of the rotation. |
- Holiday calendars per country and state are built in: the installation's holiday file names the regions and their days (operations.md §3). A tenant calendar starts from a built-in region and adds or removes its own days.
- Anchor. A layer's anchor is
starts_atuntil its people change (below). The first person of the order is on call from the anchor to the first hand-over after it, and each hand-over passes to the next person of the order. A weekly layer without hand-over day hands over on the anchor's weekday. - Absent people are skipped: in mode
onethe next present person of the layer's order covers the part of the shift the person is absent; the order is not shifted. A swap applies before the absence check, so an absent taker is skipped too. In modesallandpunchabsent people are left out, also while punched in. If nobody is left, the layer doesn't cover the time. Absences don't affect overrides: the override's person is on call even when absent. - Daylight saving time. Hand-overs and restrictions are local times of
the rotation's timezone. A local time that doesn't exist on the change day
means the first instant after the gap; a local time that occurs twice
means its first occurrence. A shift or restriction window that contains
the change is shorter or longer by the size of the change (an hour, or
30 minutes in zones such as Australia/Lord_Howe); a hand-over in the gap
moves to the gap's end, so the shifts on both sides of it share the
difference (spike
rotations). - Custom patterns have a length in whole days or in whole hours. Days
hand over at the local hand-over time, like
dailyandweekly, and count from the anchor's local date. In an hour pattern, hand-overs are the anchor plus multiples of the length in elapsed time and the hand-over time is not used, so a12hpattern anchored at 09:00 hands over at 21:00 and 09:00 in winter and at 22:00 and 10:00 after the change to summer time. - Restrictions name weekdays and a local
fromandto; the weekday is the day the window starts. Whenfromis later thanto, the window runs past midnight into the next day (fri 17:00–07:00covers Friday evening to Saturday morning); when they are equal, the window is the 24 hours fromfrom. Restrictions limit when a layer covers; they don't move hand-overs. In a layermon–fri 07:00–17:00with a weekly hand-over on Monday at 09:00, Monday 07:00–09:00 belongs to the previous week's person. A shift that windows cut is stored per window. - Holidays are local calendar days of the rotation's timezone, also for
windows past midnight: a window that runs into or out of a holiday covers
only the part the holiday mode allows. With
uncoveredand a holiday on Saturday,fri 17:00–07:00covers Friday 17:00–24:00; with a holiday on Friday, it covers Saturday 00:00–07:00. Withonly, the same window covers the part on the holiday. A layer without a calendar has no holidays, so withonlyit never covers. - Changes to running shifts. A change that affects a shift in progress keeps its elapsed part as a stored shift that ends now and replaces the rest, so who was on call until the change stays recorded.
- Changes to a layer's people re-anchor it at the start of the current shift: the order continues from the person on call, or from the next one when that person was removed, so the order doesn't jump.
- Shifts are stored. The cloud materialises the resolved shifts 30 days ahead and keeps them; changes create new shift rows and end the old ones. The last stored shift is cut at the horizon; when the horizon moves, it is superseded and stored again up to the new one. "Who was on call for rotation R at time T" is answered from stored shifts, never recomputed.
- Gaps (a time with no one on call) and shifts of people who aren't reachable (§1) within the next 14 days are reported daily, at 06:00 UTC, to the rotation managers. A page for a gap goes to the rotation's fallback people; if there are none, to the team admins.
- On call with numbers. The hub's fallback cache
(architecture.md §7) and Watch's
rotation replica (watch.md §2)
come from one computation per rotation, from the stored shifts with
overrides, absences and punch-ins: the person on call now until the next
hand-over, and the person after them until
valid_until: the end of that person's shift, at most the 30 days the shifts are stored ahead, and without a next person the end of the current one's shift. It is computed again every minute, and a hub is sent a rotation's cache and readiness when they changed; Watch gets it with each replica push. With several people on call (modeallorpunch) it is the first of them in layer order who is reachable; in a gap or a shift of people who aren't reachable, the first of the rotation's fallback people who is reachable, else of the team admins; for a rotation with a handset, the handset. Each person comes with an SMS number and a voice number: for each medium, the first verified number with that medium in the steps of the person's last notification rule (§4), else none. The fallback cache takes the SMS number. - Minimums. A tenant can require of every rotation at least a number of escalation levels (§7, for example 2), a scheduled number test (§8) and a number of people across its layers. A rotation below them is still paged; it is shown as not ready, reported daily to its rotation managers and counted in its team's cutover readiness (migration.md §4), so a minimum never stops a page.
- Out of hours, in reports and readiness, is outside Monday to Friday 07:00–17:00 and on the holidays of the tenant calendars the rotation's layers use, in the rotation's timezone, unless the tenant sets its own office hours. A page counts by the time of its first delivery to the person, an incident by its trigger time.
2.1 Swaps
- A swap request names the requester's period and either one person or
open(every other person of the layers the requester is in). It is an override in staterequested. - The first person who accepts takes the requester's shifts of the period
in every layer of the rotation; the override becomes
active. A person can't accept a period in which they are already on call for the rotation. - An unanswered request is reminded to the people asked 3 days and 1 day before its start, and to the rotation managers 1 day before. It expires unanswered at its start; the requester stays on call.
- A person asked by name accepts or declines; a decline ends the request. Of an open request, a person who declines just doesn't take it, and it stays open to the others.
- The requester can cancel a request, and the requester or the taker an active swap; cancelling a swap that has started ends it from now on.
2.2 Punch-in layers
For teams whose people go on duty themselves rather than by a plan:
- In a layer of mode
punch, the layer's people punch in and out in the app, the cloud UI or by API; rotation managers can punch anyone in the layer in or out. While punched in, a person is on call in the layer like in modeall; each punch-in period is a stored shift. minOnDuty(default 1): when a punch-out leaves fewer people punched in, the rotation managers are told at once, and the layer still covers with those who are. With nobody punched in, the layer doesn't cover the time, so a lower layer or the gap handling applies.maxDuty(optional, for example12h): a person is punched out after this time; they are reminded 15 minutes before and can extend, which moves the punch-out on bymaxDuty.- Swaps don't apply to punch layers, since people punch themselves in.
- Punch-in layers take restrictions like any layer, so "punched-in people during office hours, the weekly plan otherwise" is two layers.
3. Incidents and grouping
A page request carries the alert, the rotation, the grouping key and the payload. The cloud:
- Appends the alert to the rotation's open incident with the same grouping key, if it was triggered or extended within the grouping window (default 10 min, maximum 24 h). No new message; the next message (§4) and the incident page show "+1 alert".
- Storm guard: if the rotation already has
stormIncidentsincidents opened withinstormWindow(default 3 in 5 min), the alert joins the rotation's storm incident instead, which is delivered once, with a count: "7 more alerts for perimeter/primary". The storm incident is an incident of kindstormwith the grouping keystorm; alerts join it while it isn't resolved and the guard's condition holds, and it resolves like any incident. - Otherwise opens a new incident and starts delivery.
-
Alert groups. The page request of a group alert (pipeline.md §16) carries the group's ID, and its incident is the group's incident. The attach requests of the group's members join that incident without a message while it is not resolved; on a resolved incident they are recorded and don't page. An attach request of a group the cloud has no incident of pages like any page request, so grouping never loses a page. The incident shows the probable cause and the members with their roles, as far as the page payload carries them.
-
Involved rotations. A group's page request names its involved teams, each to
informor topage. Withinform, the people on call for the team's default rotation get an information message (push or e-mail; no media chain): "perimeter/primary handles 4711: esx-04 down; 3 of your alerts are part of it". They canjointhe incident, which makes them responders of it without a chain. Withpage, the involved rotation gets its own incident for the group, delivered as usual. The incidents of one group are linked and show each other. -
Merging. A person who may respond to two open incidents can merge one into the other; the hub merges the incidents of groups it merges. The merged incident's alerts, involved rotations and timeline move to the target, its chains and escalation stop, and it resolves by merge (
resolved_by=merge). People who received its messages get a final message "merged into 4711" (a notice, §4), and a reply to its short code acts on the target. -
Reassigned incidents keep their grouping key and the rotation they were triggered for (
origin_rotation), through any number of reassigns: alerts with that key for that rotation keep joining the incident under rule 1, with the grouping window the incident copied at its trigger. An open incident of the target rotation with the same key stays separate. -
Incident states:
triggered,acknowledged,resolved. A person can resolve an incident; its alerts stay open in the hub until they clear or someone closes them there. A severity increase of such an alert opens a new incident for it; its other changes don't page. -
The people of a level are resolved from the stored shifts when the level starts. A hand-over while an incident is
triggeredat a level whose target is people on call (on-call,rotation:…) starts the chain of the person who comes on call; the chain of the person who goes off call runs to its end. A hand-over is any start or end of a stored shift of the target's rotation, an override or a swap that takes effect included; who comes on call is everyone the target reaches then who has no chain since the level started. Checked bymodels/Escalation.tla(HandoverStartsChain). -
An incident keeps a copy of its rotation's escalation and grouping as they were when it was triggered; later edits of the rotation apply to new incidents.
-
An incident whose escalation has run out without a response is marked unanswered (§7); it stays
triggered.
4. Delivery
-
Notification rules. Each person has one to three rules, checked in order when their chain starts; the first that matches gives the chain. A rule can name times of the week in the person's timezone and a minimum severity ("nights and weekends", "critical only"); the last rule has neither, so a chain always exists. A running chain keeps its rule when a time window ends. A new person has no rule and isn't reachable (§1) until they save one; the first login asks for it.
-
Media chain. A rule's chain is a list of steps, for example
push → 1 min → SMS → 2 min → voice → 2 min → voice. A step's medium ispush(the person's devices, mobile.md §3),smsorvoice(a verified number). A rotation can require media (min_media, such as "voice must be in the chain") of every chain of its people; a person whose chains lack one is not refused, but the rotation is shown as not ready (min_mediaamong its missing minimums) and reported with its gaps, and it is still paged. A chain withpushmust have an SMS or voice step after its last push step (chain.push_last). Steps run until the person responds or the chain ends; the chain then repeats up torepeattimes (default 2, at most 5). A step'swait, 0 to 30 min, is the time from that step's send to the next step (for a push step, from its first device receipt: mobile.md §3): in the example the push step waits 1 min, the SMS step and the first voice step 2 min each. The last step'swaitis the time to the first step of the next round; after the last step of the last round the chain ends. Each person notified for an incident has their own chain: in modealland on escalation to several people, the chains run side by side. A person reached again (by escalation, reassign, invite or un-ack) starts their chain from the first step. -
A failed step (carrier
failed,busy,no answer; pushno-receipt) moves on at once, without the rest of itswait. A call that endsfinished(below) reached the person: the chain goes on after the step'swait, as after an SMS that was sent. -
A step the cloud can't run, because of an error of its own such as a stored rule or number it can't read, is tried again after 30 s. After three tries in a row it is a failed step: an SMS or voice step records a delivery
failedwith the reasonstep.error, and the chain moves on at once. A chain that can't move on either ends. The chain keeps the count of tries and the last error. -
SMS contains the short code, the incident title, the count of alerts, the rotation with the escalation level from level 2 on (
L2 perimeter/primary) and a link to the incident page. A merged message (below) lists the codes of its incidents instead. -
Voice first asks the callee to press 1 to hear the alert. A call without that key within 10 s, asked twice, counts as
no-answer(voicemail, a pocket), and the chain moves on. Then it reads the same text as the SMS with text to speech in the person's language and offers: 1 acknowledge, 2 decline, 3 repeat, 4 snooze for 1 h, 9 escalate; no key within 10 s counts as 3. A response key is applied with channelvoice, the call says so and ends. After three repeats or two invalid keys, or when the callee hangs up without a response key, the call ends with statusfinished. A verification code or a test call reads its text twice and ends. -
Throttling per person: at most one SMS per 30 s, one call per 2 min, one push per device per 10 s. A step that falls within its medium's window is deferred, recorded with status
throttled, to the end of the window. Then one merged message goes out for all of the person's deferred steps of that medium, whatever their incidents: an SMS or push with the count and the codes of the incidents ("3 incidents: 4711, 4712, 4713"), a call that reads the count and the codes; a single deferred step goes out as its own page. A push step whose push to one of the person's devices is deferred holds the chain at the step until that device's window ends: the person's other devices get their pushes at once, the deferred device its own then, and the chain moves past the step once. Each deferred step counts as sent with it, and itswaitstarts at that send (a push's at its first receipt). The keypad of a merged call acts on every incident the call listed; an SMS reply to a merged message needs a code (§5). Nothing is dropped. An incident's next message to a person, which shows what changed since the last one ("+1 alert", §3), is the next step of their chain for it, or the merged message that carries that step. -
Carriers. SMS and voice have at least two carriers each (integrations.md §9). A step uses the first healthy carrier of its medium for the destination's country, or the first one by priority when none is healthy. When the carrier doesn't accept the message or call (an error, or no answer from its API within 10 s), the same step is retried at once with the next carrier, as a new attempt; when no carrier accepts it, the step fails. An outcome the carrier reports (
failed,busy,no-answer) is the person's, not the carrier's: the chain moves on without a retry. -
Carrier health is kept per carrier, medium and destination country, and for push per service (APNs, FCM). It judges the carrier, never the recipient: a phone that is off or a person who doesn't answer says nothing about it. A carrier is unhealthy
- when, of at least 20 attempts in the last 10 minutes, more than 20 % were not accepted (an error of its API, or no answer within 10 s); a push service's answer that a token is unregistered is not an error;
- or, for SMS and voice, when two probes in a row fail. A probe is a message or call through the carrier to the vendor's test number in that country, every 5 minutes, and every minute while the carrier is unhealthy; it succeeds when the carrier reports it delivered, or the call answered, within 2 minutes. Probes find a carrier that accepts messages and doesn't deliver them.
It is healthy again after two successful probes in a row, and not before it has been unhealthy for 5 minutes; a push service, which has no probe, is tried again after 5 minutes. The numbers of the rule are settings of the installation with these defaults (operations.md §3). Every change is recorded with the numbers that caused it (
schema/cloud.sqlcarrier_health_event). The voice steps of one chain use the same carrier unless it fails, so that a repeated call comes from the same number. -
Sender numbers. Each tenant has its own sender and caller numbers at every carrier, each with its country; a number serves one tenant only. Vendor operators set them with the tenant. A carrier that gives no number per tenant in a country isn't used for that tenant there: the tenant then has one carrier fewer in that country, which the numbers page shows. Whether carriers give such numbers, and whether repeated calls pass "do not disturb" (below), are claims of the
carriersspike, which has not run (spikes). A message or call goes out from the tenant's number at its carrier in the recipient's country, else from the tenant's default number there; the repeated calls of a chain come from the same number. SMS are sent from a numeric number, never from an alphanumeric sender, which can't receive replies; replies go to that number. The short code is Excubio's code inside the message, not a telecom short code, and none is used. Mobile numbers generally can't be ported in, so a tenant's SMS numbers are new at each carrier. The cloud finds the tenant of an inbound SMS by the called number, and of a receipt or call event by the carrier's reference. Each inbound SMS and call event carries the carrier's event ID, which the cloud stores per carrier: a repeat of it is ignored; a callback signed too long ago is refused (integrations.md §9). The tenant's numbers and Watch's numbers for the tenant (schema/cloud.sqlwatch_number) are published on the cloud's numbers page and as a contact card. People add the card to their phone and allow it through "do not disturb", which is what a chain relies on. The default chain also ends with two calls from the same number within 3 minutes, for phones whose repeated-call rule lets the second one through. When the published numbers change, people are told by e-mail and the app updates the card it added. -
Every attempt is a
deliveryrow: person, chain step and round, medium, carrier (APNs or FCM for push), number or device, status, carrier reference and times; a deferred step names the delivery of the merged message that carried it. -
Outbox. Nothing is sent inside the transaction or the request that decides a message. The delivery or notice is written queued with its message, and a sender sends it after the commit, many at once and for all tenants side by side, so a slow carrier holds up no other message. A crash, a lost connection or a client that gives up between the commit and the send leaves the row queued, and a sender sends it after the claim of the one that died has run out (
schema/cloud.sqldelivery). -
Notices. Every message that isn't a step of a chain is a
noticerow, written in the transaction that decides it (schema/cloud.sqlnotice, which lists the kinds): the answer to an SMS reply (§5), the final message of a resolved incident (§6) or a merged one (§3), the message about an unanswered incident (§7), the severity increase sent after an ack (§5), verification codes and test messages (§1; the test push of mobile.md §4), reminders (§10), the information to involved rotations (§3), stakeholder notifications (§11), the reports to rotation managers and team admins (§2, §8), the updates of notifications on devices (mobile.md §3) and messages about the account. A notice goes to a person's number or device, to a rotation's handset or to an e-mail address; a reminder, report or account message to a person whose medium nothing else names goes by SMS to their first verified number with SMS, and without one the person isn't told. E-mail leaves through the cloud's mail relay (operations.md §3). It goes out once, SMS and calls from the tenant's sender number through the first carrier that accepts it, without throttling, a retry or a chain; it isn't a delivery, doesn't make its recipient someone who was notified for an incident, and isn't sent to the hub. Its receipt is recorded with it. Answers to SMS replies are limited to 10 per number in 10 minutes; replies beyond that are applied but not answered. -
Evaluation delivery. Each tenant has a delivery mode, which only vendor operators set (
api/cloud.yamlupdateTenantdelivery, audited):livedelivers through the carriers as this section describes,evaluationto the evaluation inbox. A new tenant is underevaluationuntil an operator makes itlive, so it pages no phone before that. An installation set to evaluation delivery (EXCUBIO_EVALUATION_DELIVERY=inbox, operations.md §3) has no carrier and delivers every tenant underevaluation, whatever its mode; elsewhere a tenant can be madeliveonly while the cloud has an SMS carrier (tenant.no_carrier). For a tenant underevaluation, every delivery and notice, by SMS, call, push or e-mail, goes to its person's evaluation inbox instead and is delivered at once, without sender numbers or carrier health; its message stays sealed in its row, and only that person reads it (api/cloud.yamllistEvaluationInbox, the Me page of ui.md §3). So numbers are verified with the codes found there, people become reachable, chains and escalation run as with carriers, and a page is acknowledged on the incident page or by a reply typed in the inbox, which is taken as an SMS from one of the person's verified numbers (§5). A notice to a rotation's handset reaches nobody's inbox. The cloud passes the mode to Watch with the tenant (api/watch.yamlputTenant), and Watch sends nothing to the numbers of a tenant underevaluation: its messages are recorded as not sent. Nothing of such a tenant reaches a phone or a mailbox, but what the hub's own fallback channel sends (architecture.md §7); the cloud UI says so on every page of the tenant. A synthetic incident's SMS (watch.md §1) of a tenant underevaluationgoes to Watch's test number through the carriers when the cloud has one, as a live tenant's: the number is the vendor's, not a person's. On an installation under evaluation delivery, or one without a test number, the cloud hands it to Watch instead, over its internal link (api/watch.yamlpostSyntheticMessage), and it is delivered once Watch took it; Watch takes it as the SMS arriving at its test number, and only while it has no test number, so its synthetic checks still test the hub and the cloud, and no cloud stands in for a path through a carrier that exists. Making a tenantliveortrialfromevaluationmarks every verified number of its people unverified, since a code read in the inbox proves no phone: people verify their numbers again with a code by SMS or call (§1), and until then a rule that only has steps on numbers doesn't make them reachable. Devices stay as they are, since their readiness is what the app reports (mobile.md §4). The inbox isn't shown from then on; the deliveries stay with their incidents. Making a tenantevaluationchanges no number. -
Trial delivery. A tenant on the billing service's free plan, or whose subscription is canceled, is under
trial(architecture.md §12): its messages go through the carriers as a live tenant's, within these rules, which the cloud enforces whatever the tenant's plan says:- An SMS goes only to a number one of the tenant's people verified by
a code (a code goes to the number it verifies), only to a country
calling code of the installation's trial list (by default those of
the EU and the EEA, operations.md §3)
that the tenant's
contact_calling_codesallow too, and at most 20 a UTC day per tenant, codes and test messages included (the cloud counts each SMS it hands to a carrier,tenant_sms_day). - No call: a voice step of a chain fails at once (
trial.no_voice), so the chain goes on with its next step; a voice-only number can't be added or tested (trial.no_voice); Watch's notifications to the tenant's people go by SMS only (watch.md §2). - An SMS of a page or notice that may not go goes to its person's
evaluation inbox instead, delivered at once, with the reason
(
trial.unverified,trial.country,trial.sms_cap) that the incident's deliveries show; push and e-mail go as for a live tenant. A code that may not go fails instead, so a code is never read in the inbox and a number verified in trial stays verified when the tenant goes live. - Codes are limited beyond §1, against SMS
pumping: 3 per person an hour, 10 per tenant a UTC day, 3 per number
within 24 hours and 10 per source address an hour, the last two
whatever tenant in trial asks (
code_request, the number as a keyed hash, the source the address the ingress appended toX-Forwarded-For), answered429person.rate_limited,tenant.rate_limited,contact.rate_limitedandrequest.rate_limited; a code or test message with the day's SMS spent is refused (trial.sms_cap), and one to a country outside the list (contact.country_not_allowed).
The tenant's people see the inbox on the Me page, and its tenant admins the rules and what lifts them on every page of the cloud UI (ui.md §3). Making the tenant
livelifts all of it; making ittrialfromevaluationmarks verified numbers unverified as making itlivedoes. - An SMS goes only to a number one of the tenant's people verified by
a code (a code goes to the number it verifies), only to a country
calling code of the installation's trial list (by default those of
the EU and the EEA, operations.md §3)
that the tenant's
-
Pages sent by the hub's fallback. When the hub reports pages it sent through its local fallback channel (architecture.md §7), they become deliveries with
by_fallbackset. A fallback SMS reported as sent stands for the person's chain up to and including its first SMS step (for a chain without an SMS step, its first step): the chain goes on with the step after it, due at the fallback's send plus that step'swait, and the level'saftercounts from the fallback's first send. What the chain queued up to that step and hasn't sent ends unsent, so the person isn't paged twice; when the chain has sent that step's SMS itself or is past it, the report changes no chain. One reported as failed stands for nothing: the person's chain runs as for any page.
5. Acknowledgement
| Channel | How |
|---|---|
| App | Acknowledge or decline from the notification, any response in the app (mobile.md §5). |
| SMS | Reply with the short code (4711), optionally followed by ack, dec (decline), res (resolve), esc (escalate) or a snooze duration (4711 2h). A reply without a code can only acknowledge (empty or ack): it acts on the newest open incident delivered to that number; if the newest message to the number was a merged message (§4), it acts on none and is answered with its codes. With the tenant setting sms_ack_code, a reply without a code acknowledges nothing and is answered with the codes. Codes are four digits with their leading zeros (0042); fewer digits are not a code. An acknowledgement by SMS is also shown as a notification on the person's devices, or sent to their e-mail address when they have none, since a sender number can be forged (architecture.md §11). Any other reply without a code is answered with the codes of the open incidents delivered to the number; dec, res, esc and a snooze always need the code. Only a verified number of a person of the tenant or a rotation's handset can reply: an SMS from any other number is ignored and gets no answer. |
| Voice | Keypad during the call. |
| Web | Incident page, after login or through the signed link in the SMS (single person, valid until the incident resolves and at most 24 h). The link is on the tenant's host (https://<slug>.<installation host>/l/<token>), whose name names the tenant as for every request. It allows reading the incident and ack, decline, snooze, escalate and note; other responses need a login. |
| Hub | Ack of an alert in the hub UI or API acknowledges its incident. |
| API | For integrations, as a person or service account: a service-account token with the scope incidents responds to the incidents of the teams its scope names (api/cloud.yaml conventions). |
| Response | Effect |
|---|---|
ack | Stops all chains and the escalation of the incident; sent to the hub, which writes it back to the source. |
snooze | An ack with its own ack timeout of 15 min to 24 h (§7): the incident is acknowledged until then and pages again if its alerts are still open. A later ack or snooze replaces it. |
unack | Back to triggered at the current level (§7). For acks by mistake. |
decline | Stops the person's own chain. When the person is of the current level and nobody of it is still being notified, the incident escalates at once, as when the level's after runs out (§7). |
escalate | Jumps to the next escalation level at once, also from acknowledged, which returns the incident to triggered. At the last level it starts the next repeat of the policy; with no repeat left it is rejected (incident.last_level). |
reassign | Moves the incident to another rotation of any team; delivery starts at its level 1. |
invite | Adds a person of the tenant to the incident and starts their chain; the incident's level and the other chains are unchanged. |
join | For people informed as an involved rotation: makes the person a responder of the incident, without a chain. |
merge | Merges the incident into another open incident (§3). Allowed to people who may respond to both. |
resolve | Resolves the incident. |
note | Adds a note to the timeline. |
-
Who may respond. A person notified for the incident (a chain or delivery of it is theirs, at any level, also after an invite, and the person on call behind a rotation's handset), a member of the team of the incident's rotation, whatever their team role, a person of an involved rotation who joined it, and the person who paged it by hand (§9) may give every response;
mergeneeds it for both incidents. A person informed as an involved rotation may read the incident andjoinit. -
Rate limits. A person can page by hand at most 10 times and invite at most 20 people per hour; beyond that the request is refused with
429(person.rate_limited). The limits count the person's manual incidents andinviteresponses of the last hour. -
Order of responses. The responses to one incident are applied one at a time, in the order they arrive, each against the incident as the ones before it left it. Each response gets the incident's next sequence number under the incident's lock, and that number, not a time, is the order: the arrival time and the time on a device or a hub are recorded, not used for ordering. Each response records its outcome:
Response Applied No-op (recorded) Rejected acktriggered;acknowledgedby a snooze, whose timeout it replaces with the rotation's ack timeout (none if the rotation has none)acknowledgedby an ack:acked_bystaysresolved(incident.resolved)snoozetriggered,acknowledged– resolvedunackacknowledged– triggered(incident.not_acknowledged),resolveddeclinethe person is being notified otherwise resolvedescalatetriggered,acknowledged– at the last level without a repeat ( incident.last_level),resolvedresolvetriggered,acknowledgedresolved– reassigntriggered,acknowledged:triggeredat the target's level 1– resolvedinvitetriggered,acknowledged: the state staysthe person is already being notified resolvedjointriggered,acknowledgedthe person is already a responder resolvedmergetriggered,acknowledged, into an incident that isn't resolved– resolved, or the target resolved (incident.resolved)noteany state – – So an ack and an escalation that cross each other both take effect in arrival order: an escalation after the ack returns the incident to
triggeredat the next level; an ack after the escalation acknowledges it there. A response queued offline in the app is applied the same way when it arrives. A response to a merged incident acts on its target. -
Short codes are four digits per tenant. A code is not given to a new incident within 7 days after its previous incident resolved; if no code is free, the one resolved longest ago is reused. A tenant thus has at most 10,000 incidents that aren't resolved: beyond that, a page request joins its rotation's storm incident whatever the guard says (§3), and a manual page or a test is refused (
request.rate_limited). A reply acts only on an incident that was delivered to the replying number; a reply to a resolved incident is answered with "already resolved by …". -
A severity increase of an alert in an acknowledged incident is sent once, as a notice, to the person who acknowledged it: by push to their devices, and by SMS to the SMS number of their chain when it has one. After an ack by a hub user or a service account, it goes to the people of the incident's current level instead.
-
The incident's
acked_atandacked_byname the ack that acknowledged it: the incident points to that response, whose person, token or hub useracked_byshows. An un-ack clears them. The responses keep the full history. A response stores who gave it by id, never by name; names are resolved on display, a hub user's by the hub. -
Every response is a
responserow: person (or the service account's token), channel, type, the delivery it answered, its sequence number and time.
6. Auto-resolve
When every alert of an incident is closed in the hub, the incident
resolves (resolved_by = source) and delivery stops. People who received
a message get a final message "resolved by source", so nobody calls back
into a silent incident: an update of the notification on devices that were
notified, an SMS to people who were reached by SMS or voice only. A
rotation can turn the SMS off.
Incidents of kind manual have no alerts: they resolve only by a
resolve response or the API, and the ack timeout (§7)
applies to them while they are unresolved. A test
incident resolves when it is acknowledged, or 30 min after its page
without an ack (resolved_by = timeout, §8). A
synthetic incident has its one alert
(pipeline.md §10) and resolves with it; it gets
one SMS to the rotation's handset and has no chain, escalation or repeat.
Incident lists leave synthetic incidents out unless asked for that kind
(api/cloud.yaml listIncidents), and the delivery
report counts their SMS on a line of their own, not in its figures per
medium and carrier (deliveryReport).
7. Escalation
A rotation lists its escalation levels in order, each with a target and
an after; the first is level 1. Without levels there is one: the people
on call, for 30 minutes.
level 1: on call (layer resolution), for 15 min
level 2: the next person in the layer, for 15 min
level 3: rotation "team-lead" of the same team, for 30 min
-
Targets:
on-call,next-in-layer,rotation:<slug>(same team),rotation:<team>/<slug>,person:<id>. A level'safter, 1 min to 24 h, is how long the level lasts: when it has passed since the level's start without an ack, the next level starts, and after the last level the policy repeats or the incident is unanswered (below). A hand-over during the level starts the chain of the person coming on call (§3) and doesn't restart the count. -
next-in-layeris the person who follows, in the order of the layer that covers the time (during an override, the layer that would cover without it), the person the pattern names there with swaps applied, not the absence cover; it skips absent people and people already notified for the incident. In a layer of modeallorpunch, everyone is already on call, so it resolves to nobody, and so it does on a rotation with a handset (§2). -
A new level starts the chains of its people and stops the chains of the earlier levels; their people can still respond, and their devices are told the incident escalated (mobile.md §3). Chains of invited people run on.
-
Reassign stops all chains, also those of invited people, and gives the incident the target rotation's escalation as it is then; it starts at level 1 of the policy's first round. The incident keeps the grouping it copied at its trigger (§3).
-
A target that falls in a gap or in a shift of a person who isn't reachable resolves to the rotation's fallback people or team admins (§2). A level whose target still resolves to nobody reachable (§1;
next-in-layerwith nobody left, aperson:target who isn't reachable) is recorded as skipped on the incident, which shows its skipped levels, and the next level starts at once. -
escalate(keypad 9, SMSesc, app, web, API) jumps to the next level at once (§5). -
Ack timeout (optional, 15 min to 7 days, for example
4h; asnoozesets its own): an acknowledged incident whose alerts are still open after this time returns totriggered. It replaces the habit of letting a source repeat an open alert every day so that it pages again. -
Back to
triggered. After an un-ack or an ack timeout, the incident is triggered again at its current level: the level's people are resolved again from the stored shifts, their chains start from the first step, and the level'saftercount starts again. -
Timers. An incident has at most one level timer (the current level's
after) and one ack timeout. Each transition sets them in the transaction that applies it (schema/cloud.sqlincident_timer):Transition Level timer Ack timeout ack(applied)cancelled the rotation's ack timeout from now, or none snoozecancelled the snooze's end unack, ack timeoutthe current level's afterfrom nowcancelled escalate;declineby the last person of the level being notified; the level timer runs outthe next level's afterfrom now; none once the incident is unansweredcancelled reassignthe target's level 1 afterfrom nowcancelled invite,join,note, any otherdecline, a no-opunchanged unchanged resolve,mergecancelled cancelled A skipped level starts the next one at once, with its timer. When a timer is due, its handler takes the incident's lock, reads the timer row and the incident again and acts only if the row is still there with the same due time and the incident is in the state the timer belongs to (
triggeredfor the level timer,acknowledgedfor the ack timeout); otherwise it does nothing. -
After the last level, the policy repeats
repeattimes (default 0, at most 5), each time from level 1. Then the incident is marked unanswered: it stays triggered, the rotation managers and team admins get an SMS (a notice, §4), and the event goes to the hub (webhookincident.unanswered). Nobody can mark it as handled without a response of typeackorresolve. The incident keepsunanswered_atas history; the UIs and the app show it as unanswered until it is acknowledged or resolved. -
Checked by
models/Escalation.tlawith the responses of §5: an acknowledged incident pages nobody of its levels (an invite after the ack pages the invited person), a resolved or merged one sends no page, a triggered one notifies its current level, no level with someone reachable is skipped, the ack timeout is the last ack's or snooze's, a level whose people all declined escalates, an invite changes neither state nor level, a reassign stops all chains, and an incident is unanswered only after the policy's repeats.
8. Number tests
A rotation can schedule a test (for example daily at 10:00): the person on
call gets a test page through their media chain and acknowledges it like a
page. With several people on call (mode all or punch), each gets their
own test incident. A test that falls in a gap pages nobody, neither the
fallback people nor the team admins: it is recorded with the outcome
gap and reported like an unacknowledged one. Unacknowledged tests
within 30 min are reported to the rotation managers, and the test incident
resolves (§6). Test incidents are
marked test and excluded from response statistics. A test incident has
severity critical and runs level 1 only, without repeats of the chain or
the policy; it isn't sent to stakeholders, and the hub sends no webhooks
for it (integrations.md §8).
9. Manual pages
People with member in a team, and API clients with the scope, can page a
rotation with a title, a text and a severity (default major) from the
cloud UI, the hub UI or the API. Manual pages are incidents of kind
manual and follow the same delivery, ack and escalation; a person's
manual pages are rate-limited (§5). The incident
keeps the text and who paged: the person, the service account's token or
the hub user. A person who paged may respond to the incident, also
without being in the rotation's team. A manual page from the hub UI
comes up the link as a message of its own
(api/cloud.yaml manualPageRequest,
pipeline.md §10); its key manual/<id> stays
with the incident for good, so a repeat never pages twice.
10. Reminders and calendars
- A person can ask for a shift reminder by push, SMS or e-mail a chosen time before each of their shifts starts (default off). The reminder names what would keep a page from reaching them: an unverified number, a device that isn't ready or is stale, a device login that expires during the shift (mobile.md §4). Reminders, like the other messages of §2 to people and rotation managers, are notices (§4).
- Each person has a private calendar feed (ICS) of their own shifts, at a secret URL that they can renew; it carries rotation names and times only.
11. Stakeholders
People who need to know about a team's incidents without responding: managers, a service desk, the business owner of a service.
- A team lists stakeholders: people of the tenant, or e-mail addresses for people without an account, each with a minimum severity. An address is shown masked; each stakeholder keeps an id, by which an edit of the list keeps an address it can't show.
- Stakeholders get a notification (e-mail, or an information push for
people with the app, mobile.md §3) when an
incident of the team's rotations is triggered, acknowledged and resolved,
and every note a responder marks
share(a status update), except for test incidents (§8). They are not paged, can't respond and don't count as notified. - Stakeholder messages carry the title, severity, rotation, state and the shared notes, never alert payload fields beyond the page payload.
12. Configuration as files
Teams that keep their on-call configuration in git export and apply it as TOML files, one per team:
team = "perimeter"
name = "Perimeter Security"
[[rotations]]
slug = "primary"
timezone = "Europe/Berlin"
escalation = { levels = [{ target = "on-call", after = "15m" }, { target = "next-in-layer", after = "15m" }, { target = "rotation:team-lead", after = "30m" }] }
[[rotations.layers]]
name = "weekly"
pattern = "weekly"
handover = "09:00"
handover_day = 1
starts_at = "2026-11-02T09:00:00+01:00"
people = ["a.weber@example.invalid", "j.kowalski@example.invalid"]
calendar = "Rheinland-Pfalz"
[[calendars]]
name = "Rheinland-Pfalz"
region = "DE-RP"
days = [{ day = "2026-12-24", name = "Heiligabend" }]
[[stakeholders]]
email = "it-service-desk@example.invalid"
min_severity = "major"
- The files hold teams, rotations with layers, escalation and grouping,
stakeholders, and the tenant calendars that the team's layers use, by
name.
applycreates a calendar that is missing; one that exists with other days is shown in the diff and changed only by a tenant admin. Operational state stays out: overrides, swaps, absences, punch-ins and people's own notification rules and contacts. - People are named by login or e-mail address;
applyrejects unknown people. excubioctl oncall applyshows the diff and applies it through the API, so every change is audited like one made in the UI. Each rotation carries the version it was exported at; a rotation changed in the cloud since then is rejected (rotation.version_conflict) unless--forceis given. Rotations missing from the files are deleted only with--prune.- OpenTofu manages teams, members, rotations and hubs with the provider (operations.md §13).
13. Conformance sequences
The cloud's test suite runs these timed sequences against stored shifts and simulated carriers, with a controller shard taken over mid-sequence:
| Sequence | Expected |
|---|---|
| A weekly layer with hand-over 09:00, across the change to summer time | the shift around the change is an hour shorter; hand-over at 09:00 local on both sides |
| A weekly layer in Australia/Lord_Howe, across the change to summer time | the shift around the change is 30 minutes shorter |
| A daily layer with hand-over 02:30 in Europe/Berlin, across the change to summer time | hand-over at 03:00 on the change day; the shifts before and after it last 23.5 h each |
A 12h custom layer anchored at 09:00 in winter, across the change to summer time | hand-overs at 21:00 and 09:00, then 22:00 and 10:00 |
A restriction fri 17:00–07:00 | covered from Friday 17:00 to Saturday 07:00 |
A restriction fri 17:00–07:00, holiday mode uncovered, Saturday a holiday | covered from Friday 17:00 to 24:00 |
A layer mon–fri 07:00–17:00 with a weekly hand-over on Monday at 09:00 | Monday 07:00–09:00 is the previous week's person; each window a stored shift |
A person absent for part of their shift in mode one | the next present person covers that part; the following shifts keep their people |
An override 10:00–18:00 on a layer of mode all with three people | only the override's person is on call 10:00–18:00 |
An override created with replace inside an older override | the older one split before and after; three stored overrides; the part after has the older one's person, creator and reason |
An override created with replace over one edge of an older override | the older one shortened to end where the new one starts, or start where it ends |
| A swap request over a period with an override | rejected override.overlap |
| A layer member removed during their shift | the elapsed part stays a stored shift; the rest goes to the next person, and the order continues from them |
A member added to a layer of mode one | the person on call keeps the shift; the order continues from them |
next-in-layer during an override | the person after the one the covering layer names without the override |
Level 1 after = 15m, no response, hand-over at minute 10 | the new person's chain starts at minute 10; level 2 starts at minute 15 |
| Level 2 starts while the level-1 chain is at its voice step | the level-1 chain stops; an ack from the level-1 person at minute 16 acknowledges |
next-in-layer on a layer of mode all | level skipped and recorded; the next level starts at once |
| Two acks within one second from different people | the first acknowledges; the second is a no-op; acked_by names the first |
| Ack, then escalate arriving 1 s later | triggered at level 2 |
| Escalate, then ack arriving 1 s later | acknowledged at level 2 |
| An app ack queued offline, arriving after another person's ack | recorded as a no-op with its device time |
| An unack of a triggered incident | rejected incident.not_acknowledged |
| Reassign to a rotation with other escalation levels | level 1 of the target's levels; earlier chains stopped |
| The first SMS carrier's API times out | the same step goes to the second carrier at once, attempt 2 |
An SMS receipt failed | the chain moves on; no other carrier is tried |
| 25 SMS attempts in 10 min to one country, 6 not accepted | the carrier is unhealthy for that country; the next step uses the second carrier |
| 25 SMS in 10 min to phones that are off: accepted, no receipt | the carrier stays healthy |
Two probes in a row without a delivered receipt in 2 min | the carrier is unhealthy; healthy again after two probes in a row succeed, not before 5 min |
| A hand-over on a handset rotation while its incident is triggered | no second handset chain; an ack from the handset after it counts as the new person's |
Level 1 on-call for 15m on a rotation without further levels, repeat 0, no response | unanswered at minute 15 |
An SMS reply without a code in a tenant with sms_ack_code | nothing is acknowledged; the answer lists the codes |
| A reassigned incident, then an alert with its grouping key for the first rotation within the window | the alert joins the reassigned incident |
| Four incidents for one rotation within 5 min with the default guard | three incidents and a storm incident with the fourth alert |
| SMS steps of three incidents for one person 10 s apart | the second and third are throttled; at 30 s one merged SMS lists their two codes, and both steps' wait start then |
| A page while the person on call isn't reachable, one fallback person | the fallback person's chain starts; the level isn't skipped |
| The same inbound SMS posted twice by the carrier | applied once; the repeat is ignored |