Skip to content

TOC-110 Spokes outside alert_order leave their own outages to it - #67

Merged
jensenbox merged 2 commits into
mainfrom
TOC-110-spoke-quiet
Oct 28, 2026
Merged

jensenbox merged 2 commits into
mainfrom
TOC-110-spoke-quiet

Conversation

@jensenbox

@jensenbox jensenbox commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

What

A node left out of a non-empty [federation] alert_order that pushes (push_to) to a node in the list no longer pages for its own checks and configured heartbeats. It still stores each outage as alert-worthy and pushes it; the nodes in the list page for it from the push, so one outage pages once instead of twice.

  • Still pages on the spoke: the heartbeats tocsin keeps (node:<id>, upstream:<id>) and quorum: checks. This mirrors the hub's receiver rule (it pages for a pushed outage only when its id has no :), so nothing falls between the two.
  • Configured heartbeats are quiet too, for the same reason: the hub pages for them from the push.
  • Where the gate lives: AlertingHistory::record, via Router::leaves_to_alert_order. Not inside Router::routing, which the hub also uses for remote outages.
  • A node outside the list that pushes to none of its nodes keeps paging for its own outages. No config validation requires the push, and without one nobody else would page.
  • Alerts already firing: an alert the node opened for its own outage before it left the list ends with ended_by = config at start and at reload, and its resolve goes out. Without this, fire_alerts re-fires every open alert on each change.

Tests

In push_tests.rs:

  • A real two-store push of a check and a configured heartbeat: the spoke stores both outages with no alert, upstream:hub still alerts on the spoke, and the hub fires exactly one alert for each.
  • The spoke still pages in three cases: alert_order = ["spoke","hub"], no alert_order, and outside the list with no push_to.
  • Cleanup at start and at reload: the own heartbeat's alert ends by config, and upstream:hub stays open.

Mutation-checked. Each of these turns a test red:

  • never quiet
  • ignoring the : rule
  • always quiet
  • no cleanup at start
  • no cleanup at reload
  • dropping the push_to condition

Docs: alerting.md, design/federation.md, the alert_order row in config.md, and the regenerated schema and config reference.

https://claude.ai/code/session_01Ub1Bi7sFncPnpe2Cz4azBE

…C-110)

A node left out of a non-empty [federation] alert_order no longer routes
its own checks' and configured heartbeats' outages: it stores and pushes
them as alert-worthy, and the nodes in the list page for them, so one
outage pages once. It keeps paging for node:, upstream: and quorum:
subjects, which no other node pages for. The gate lives in
AlertingHistory::record, not Router::routing, which the hub uses for
remote outages.

Alerts a node opened for its own outages before it left the list end
with ended_by = config at start and at reload, queueing their resolves;
fire_alerts would otherwise re-fire them on every change.

Claude-Session: https://claude.ai/code/session_01Ub1Bi7sFncPnpe2Cz4azBE
Signed-off-by: Christian Jensen <christian@closient.com>
@jensenbox jensenbox added the enhancement New feature or request label Oct 28, 2026
No validation requires a node outside alert_order to push to a node in
it, and one that pushes nowhere would otherwise page for its own outages
nowhere. Such a node keeps paging for its own. The two-store test now
also pushes a configured heartbeat and asserts the hub pages for it.

Claude-Session: https://claude.ai/code/session_01Ub1Bi7sFncPnpe2Cz4azBE
Signed-off-by: Christian Jensen <christian@closient.com>
@jensenbox
jensenbox merged commit cfe3f6c into main Oct 28, 2026
16 checks passed
@jensenbox
jensenbox deleted the TOC-110-spoke-quiet branch October 28, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant