Alerts
Alerts tell an operator that something needs attention: a plugin that failed to start, a replica in safe mode, an automation that was switched off. They are listed on the System status page, counted in the navigation badge and can be sent to a notification sink.
Every alert has a kind. The kind fixes its stable code, lifecycle, severity (where it has a fixed one), the status box that shows it, the permissions needed to see and act on it, and the optional parameter that names the subject (a device, automation, scene or workflow) whose access rules filter who may see it.
- A condition holds while the problem holds. Clearing it resolves it, and it stops needing attention without an acknowledgement.
- An event records something that happened. Clearing it deactivates it, but it stays listed until someone acknowledges it. A later raise reopens it.
Severities are Info, Warning, Error and Critical.
Alert kinds
"Needs" is the permission to see the alert, and, after a slash, the permission to act on it when that differs. Boxes group kinds on the System status page.
| Kind | Box | Severity | Type | Needs | Meaning and what to do |
|---|---|---|---|---|---|
plugin.issue |
plugins | set by the plugin | condition | integrations.manage |
A plugin instance reported a problem. Follow the fix hint on the alert. See repairs. |
plugin.secret_unreadable |
plugins | Error | condition | integrations.manage / secrets.bind |
The instance cannot start because a secret reference does not resolve. Fix the secret on the Secrets page. |
plugin.load_fault |
plugins | Error | condition | integrations.manage |
The instance failed to start on one or more replicas. Open its diagnostics page. |
plugin.roll_incomplete |
roll | Warning while the roll waits, Error when halted | condition | integrations.manage / workloads.approve |
A plugin update did not finish for one workload. Retry or give up on the Plugins page. See a plugin update that halts. |
workload.diagnostic |
workloads | set by the raise | condition | integrations.manage / workloads.approve |
A workload container reported a problem. Open the instance's deployment page. |
workload.rollback_failed |
roll | set by the raise | condition | integrations.manage / workloads.approve |
Rolling a workload back failed. Open the instance's deployment page. |
workload.volumes_awaiting_decision |
workloads | Warning | condition | integrations.manage / workloads.approve |
A retained volume is detached and no workload instance claims it. Reattach it or delete it. |
egress.denied |
egress | Error | event | egress.view / egress.manage |
A caller was refused a connection to a host and port. Allow the destination on the Egress page or fix the caller. |
tls.certificate_rejected |
certificates | Error | event | home.manage |
A TLS handshake was refused because the certificate was not trusted. Install the issuing CA or fix the certificate. |
secrets.provider_unhealthy |
secrets | Error | condition | secrets.bind |
A secret provider failed its health check on one or more replicas. Check the provider and its credentials. |
secrets.references_unresolved |
secrets | Warning | condition | secrets.bind |
Some stored secret references do not resolve. Find them on the Stored secrets page. |
cluster.safe_mode |
cluster | Critical | condition | home.manage |
A replica started in safe mode. Open the Cluster tab. |
cluster.replica_id_conflict |
cluster | Error | condition | home.manage |
Two processes use the same REPLICA_ID. Give each replica a unique id. |
cluster.boot_failing |
cluster | Error | condition | home.manage |
A replica failed to boot repeatedly. Read the reason on the Cluster tab and the replica's logs. |
cluster.start_refused |
cluster | Warning | condition | home.manage |
A replica was refused at start-up by the version window. See the full stop. |
configuration.invalid |
cluster | Error | condition | home.manage |
A replica refused a managed configuration change. See managed configuration. |
configuration.pending |
cluster | Warning | condition | home.manage |
A declared configuration is not applied yet. See applied snapshots. |
automation.disabled |
automations | Error | condition | automations.manage |
An automation was switched off because something it depends on changed. Repair it and enable it. |
workflow.scripting_switched_off |
automations | Warning | event | automations.manage |
A workflow was not started because it holds a C# script block while Managed:Capabilities:CSharpScripting is false. |
automation.resumed |
automations | Info | event | automations.manage |
The host re-enabled an automation after the devices it uses declared its targets again. |
automation.trigger_unarmed |
automations | Warning | condition | automations.manage |
An enabled trigger cannot be armed and never fires. Install the plugin that provides it or fix its configuration. |
home.location_missing |
automations | Warning | condition | automations.manage |
Sun triggers never fire because the home has no location. Set the location in the home settings (needs home.manage). |
automation.references_missing |
automations | Warning | condition | automations.manage |
An automation refers to removed devices or helpers. See removed devices. |
scene.references_missing |
automations | Warning | condition | scenes.manage |
A scene has actions on removed devices; activation skips them. |
dashboard.references_missing |
automations | Warning | condition | dashboards.manage |
A shared dashboard shows removed devices or helpers. |
device.dependencies_broken |
devices | Error | condition | devices.manage |
Objects refer to features the device no longer has. Open the device and fix the findings. |
device.kept_for_meters |
devices | Warning | condition | devices.manage |
A plugin removed a device, but utility meters read from it, so it is kept as unavailable. Point the meters elsewhere or delete them, then delete the device. |
device.exposure_changed |
devices | Warning | event | devices.manage |
Endpoints of a device exposed through the Matter bridge changed. Re-add the device in Google Home or Apple Home if the message says so. |
device.rehomed |
devices | Warning | event | devices.manage |
A source moved to a new device because its type changed. History, channel labels and critical keys stay with the old device. |
Fingerprints
An alert is identified by a fingerprint built from its kind and the kind's declared parameters. Raising the same condition again updates the existing alert instead of creating a new one.
- The kind must exist. A parameter that is not declared for it is rejected, and so is a required parameter that is absent, null or blank. An optional parameter (
subjectofplugin.issue,pluginInstanceIdofegress.denied) that is absent, null or""counts as the empty string. Any other value, whitespace included, is kept. - A value that is exactly a GUID in
DorNform, in any letter case, becomes a lowercaseDform. Other GUID spellings (braces, parentheses, padding, a0xform) are left alone.pluginInstanceIdmust be a GUID, otherwise the fingerprint is refused. - The parameter named
hostis lowercased. - Each declared parameter becomes a field
name=value, ordered by name. Empty optional ones appear asname=. In the name and value,%becomes%25and then|becomes%7C. - The canonical text is the kind code followed by the fields, joined with
|. A kind without parameters is just its code. For example:plugin.issue|code=stuck|pluginInstanceId=aabbccdd-…|subject=. - The fingerprint is the lowercase hexadecimal SHA-256 of the UTF-8 bytes of the canonical text.
Raising, clearing and suppressing
- The attention epoch moves only when the alert did not need attention and now does. A re-raise that is silenced, or a snooze expiring on an alert that already needs attention, does not move it.
- A condition's count is the number of occurrences: it grows when a resolved condition is raised again, not on repeated raises. An event's count grows by the number of raises it merged.
- A resolved alert ignores acknowledgement. Clearing an event resolves it only when its acknowledgement covers the current occurrence and severity.
- Snoozing or silencing again keeps the higher level of the existing suppression of the same mode. An expired snooze counts as absent. A new snooze replaces the end time.
- All timestamps must be UTC.
Storage
Alerts live in core.alerts, one row per fingerprint. Snoozes and silences live apart from the row in core.alert_suppressions (one of each per fingerprint), so retention never removes them. Per-user bubble state is in core.alert_user_state and core.alert_user_dismissals, which are removed with the user or the alert.
- Every write to one fingerprint (raise, clear, acknowledge, snooze, silence, removing either, snooze expiry, purge) runs in one transaction that takes an advisory lock on the fingerprint first. Replicas and operators never decide from data read before the lock.
- Raises of high-rate kinds (the events
egress.deniedandtls.certificate_rejected) are buffered per replica and flushed every ten seconds and at shutdown. The buffer merges raises of one fingerprint into the highest severity, the newest payload and the summed count. A crash loses the buffered increments, so a count is a lower bound, and a write whose commit outcome is unknown may count twice. A buffered raise that fails transiently is dropped after five writes. Every other raise is written at once. - An unwritable raise (text over the column size, metadata that is not JSON, a non-UTC time, a severity the kind does not allow) throws to the producer.
- An explicit operation on a fingerprint first writes that fingerprint's buffered raises, so it is not overtaken by them. A transient failure of that write fails the operation. A permanent one (Postgres data and integrity errors) is logged and the buffered raise is dropped.
- A raise for a plugin instance that no longer exists is dropped.
- The
alert-maintenancejob, run by the one replica that owns it, deletes expired snoozes and purges alerts that are not active and were last seen longer ago thanAlerts:Retention(default 30 days).
Delivery
An alert can be sent through the notification-sink plugin instances the operator selects. The raise decides, in the transaction that writes the alert, whether to enqueue a send. A separate dispatcher sends it.
What is sent
A raise is an edge when the alert is new, the occurrence is higher than before (a raise on a resolved alert), or the severity is higher than before. A re-raise of an open alert at the same or a lower severity is not an edge, so a condition raised by every poll and a repeated or merged event send nothing.
An edge is sent when the alert is open, no live snooze or silence covers its severity, the severity reaches the threshold and at least one sink is selected, and it was not already delivered. The alert records the highest severity enqueued for its occurrence (delivered_occurrence, delivered_severity):
- Error, then Warning, then Error again sends once.
- Error, then Critical sends twice.
- A resolved alert raised again is a new occurrence and sends again.
A raise that a suppression, the threshold or an empty sink list holds back leaves the record unset. Only a raise enqueues. Turning delivery on, lowering the threshold, lifting a snooze or silence, a snooze expiring, acknowledging and clearing send nothing, so an alert already standing (or suppressed when it was raised) is sent only if it later rises or starts a new occurrence.
A raise may name the alerts it continues. When one of them is open, was delivered for its current occurrence and is still at least at the delivered severity, the new alert is delivered only above what was already delivered. A workload's outage alert continues its stuck and crashloop alerts (repairs).
A raise marked "only while open" changes an open alert and does nothing to a resolved or missing one, so it never reopens an alert another writer has just cleared.
Settings
The setting is the alerts/delivery row of core.runtime_settings: a threshold (Warning, Error or Critical) and up to 20 sink instance ids. When it is absent or invalid, delivery is off (threshold Error, no sinks). Deleting a plugin instance removes its id from the setting in the same transaction, so a deleted sink never fails a raise. A selection of nothing but deleted sinks sends nothing. Changing the settings writes the audit entry alerts.delivery_changed with the threshold and the sink ids.
Outbox
Each raise that is sent writes one Pending row per selected sink into core.alert_delivery_outbox, holding the title, message, level, severity, sink instance id, alert id, fingerprint and occurrence.
- The title is the kind's display name. For a raise made through the plugin issue registry (including the codes the host writes there, such as
plugin.secret_unreadable,plugin.roll_incomplete,workload.diagnosticandworkload.rollback_failed) it is "{instance display name}: {kind display name}", so plugin text is not mistaken for a host alert. The title is cut to 200 characters. - The message is the alert message, cut so that a new line and the page path
/app/system/alertsalways fit within 4000 characters. The level is the severity in lower case, anduserIdis null. - A
Pendingrow of a lower severity for the same alert, occurrence and sink becomesSupersededand is completed at once. - Rows are removed with the alert or the sink's plugin instance. A unique index on (alert, occurrence, severity, sink) backs the delivery record.
Dispatcher
The alert-delivery job runs on one replica every five seconds, so only one replica sends.
- A pass claims up to 20 due rows in id order for two minutes, and renews the claim for each row it reaches.
- Before sending a row, the pass checks it again. It marks the row
Skippedwhen the alert is gone, the sink is no longer selected, or a live snooze or silence covers the row's severity. - An alert that resolved after the raise is still sent, because the row records what was raised. A row superseded in the meantime is not sent.
- If the replica loses the job, the pass ends and nothing more is sent.
The sink is the running notification sink of the instance on the owning replica, with a 30-second limit per call. A sink succeeds only when every channel that applies took the notification. A per-user push channel does not apply, because alert deliveries name no user. If no channel applies, the call fails. A sink with several channels is retried as a whole when one of them fails.
- Success makes the row
Sent. - A failure, a timeout, or a sink not running on the owner reschedules the row after 30 seconds, 2 minutes, 10 minutes and 30 minutes. The fifth failed attempt makes it
Failedand stores the exception type and a message cut to 2000 characters inlast_error. A failing row does not hold up the next. - Delivery is at least once. A crash after a send and before the result is written, or a hand-over of the job during a send, sends the row again once the claim expires. Rows go in id order within a pass, with no order promised beyond that.
- Once an hour, rows that are
Sent,Skipped,SupersededorFailedare deleted seven days after they completed.
Delivery failures are logged and shown in the Delivery box. No alert kind is raised for them.
Plugin alerts
Plugins raise alerts through the plugin issue registry, which maps an issue code to a kind and its parameters (see repairs). Plugin issue identity, subject handling and DocsUrl validation are described in Raise and clear. The host raises some codes through the same registry:
device.collapse_stuck, one per collapse row, from the device-model worker.device.report_rejected, one per plugin source id, from the device event sink (devices).oauth.reauth_required(Error) on an instance flagged for re-authorisation. It clears when a token refresh succeeds or an options flow saves new tokens. A failed raise is retried on the next refresh pass while the flag holds.
Device and automation alerts
device.dependencies_broken
Derived from the device's open Error findings.
- The host reads the findings again after every write that changes them (a model event, saving an automation, scene or workflow) and after every device removal.
- It raises one alert per device, or clears it. The count is the number of affected objects. The detail lists up to 50 findings with object type, id and code.
- A retired device keeps its
device.replacedfindings, so the alert names the replacement. A device whose row is gone has no findings, so the alert clears. - A one-minute maintenance pass repeats the check for every device with an open Error finding or an active alert, so a missed write heals within a minute.
automation.disabled
Raised when an automation that was enabled is switched off because a device it uses changed, or because the inputs of its workflow changed. The host writes a reason and an audit row.
- The alert message and the web interface give the reason as a plain sentence ("a device it uses changed", "its workflow's inputs changed", otherwise "something it depends on changed"). The audit row keeps the stored reason constant.
- The cause is also recorded in
DisabledDetail(up to 1024 characters), whichAutomationResponse.DisabledDetailreturns. For a device change it is the message of the oldest open Error finding that blocks the automation, directly or through its workflows, plus "(and N more)". It names the device and the missing capability or channel. For an inputs change it is the changed parameters. - With a cause recorded, the alert message is "Automation '{name}' was disabled: {cause}." and the audit row gains a
Detailfield. Without one, the generic sentence is used. - The alert keeps the cause as it was at the disable. The notice on the automation shows the current cause, which changes when the finding that named it clears while another still blocks.
- The cause is cleared with the reason, when the automation is enabled, resumed or released.
- Enabling or deleting the automation clears the alert. So does the one-minute maintenance pass once the automation has no reason any more (it resumed, a reseed rebuilt it, or the block cleared without resuming). The history stays in the
automation.disabledandautomation.resumedaudit rows. - When the host resumes an automation under the automatic resume rule, it raises the Info event
automation.resumed, marks it not active at once, and resolves theautomation.disabledalert unless a newer disable raised it again.
Repairable on the automation response is true when all of these hold:
- the automation is off with a recorded reason
- no Error finding blocks it
- for an inputs change, the check that compares the signature recorded at the disable with the published one against the stored inputs does not disable it. Rewriting the inputs resets the record.
A disable caused by a device change is never repairable. Once no Error blocks the automation it resumes, or it loses its reason and is an ordinary disabled automation.
device.rehomed
A Warning event for the device a source left. It is raised after a re-home or a return commits and is marked not active at once. One acknowledgement closes it.
- The message names the new device and says that telemetry history, channel labels and critical keys are not carried over.
- When the old device was retired, it adds that its utility meters and dashboard tiles still point at it.
- When both devices have the same name (the usual case), it says "another device of the same name".
- The subject is the device the source left. The fingerprint also holds the new device, and the fix link opens the new device.
device.kept_for_meters
A Warning condition. A plugin reported the last source of a device as removed while a utility meter reads from it. The host keeps the device and the source, records the source offline and raises: "'{device}' was removed by its plugin and is kept, unavailable, because utility meters read from it: {meters}." The meter names are those at the removal.
- The fix is to point the meters at another device or delete them, then delete the device.
- The one-minute maintenance pass clears the alert once the device is gone or one of its sources is back online, which a new report from its plugin causes.
- Re-pointing or deleting the meters does not clear it, because the device still has to be deleted.
device.exposure_changed
A Warning event for a device the Matter bridge exposes. It is raised after the commit only when the change removed, re-identified or made read-only an endpoint: "'{device}' changed {n} Matter endpoints ({summary}); Home-app automations on them may stop working." n counts those three kinds.
- After a re-home or a collapse, the message ends by telling the user to re-add the device in Google Home or Apple Home.
- A collapse into an owner that was already exposed raises it for the owner when the collapse retires exposed devices.
- The fingerprint is the device id, so repeats raise the event again and count up.
- A passthrough change, a failover and a change on a device that is not exposed raise nothing.
workflow.scripting_switched_off
A Warning event in the automations box. A replica raises it the first time it refuses to start a workflow whose version (or whose sub-workflow's current version) holds the C# script block while Managed:Capabilities:CSharpScripting is false.
- The subject is the workflow, so the alert is shown to the workflow's owner.
- It is raised once per workflow version and process, so a restart raises it again.
- It is marked not active as soon as it is raised. Acknowledging it resolves it.
Missing references
automation.references_missing, scene.references_missing and dashboard.references_missing are Warning conditions. There is one per automation, scene or shared dashboard that refers to a removed device or helper. A personal dashboard raises none, because its owner sees a banner. See removed devices.
- The one-minute maintenance pass derives them from state, so every delete path converges on it. It raises an alert that is absent or whose count or object name changed, and clears one whose object no longer has a missing reference or no longer exists.
- They are shown to holders of
automations.manage,scenes.manageanddashboards.managerespectively. - Automation alerts follow the automation owner rule. Scene alerts follow the scene's own read rule (hidden overrides and time windows), so a hidden scene's name never reaches System status.
automation.trigger_unarmed
A Warning condition for each enabled automation with an enabled trigger the trigger host cannot arm: its type is not installed, or its start threw or did not finish within five seconds.
- The replica that hosts the trigger lane checks after each sync. The alert is raised once a failure has been recorded across two syncs and the first failed arm is at least 30 seconds old.
- The message and metadata hold the count of such triggers and the reasons.
- It clears once every trigger of the automation arms, or the trigger or automation is removed or disabled.
- A replica that takes over the trigger host keeps an open alert whose trigger still fails there and clears the others on its first sync.
- The alert is shown to holders of
automations.manageunder the owner rule and links to the automation.
home.location_missing
A Warning condition, one for the home. It is raised while the home has no location and at least one enabled automation has an enabled sun trigger. The message carries that count.
- It clears once the home has a location or no such trigger is left.
- It links to the home settings and is shown to holders of
automations.manage. Setting the location needshome.manage.
Alert writes happen after the committed operation and its reload, notification and cache steps. A failed alert write is logged and does not fail the operation.
Replica status reports
Every replica writes a report about itself to PostgreSQL every 3 seconds, so the status page and these alerts keep working while Redis is down. A report older than 45 seconds is ignored, and so is a report of a member that left the cluster. A report holds:
- the build version, process id and start time, and whether the replica is in safe mode and why
- the plugin instances that faulted on that replica (id, type, message), and the ones waiting for a secret
- each secret provider's health, and the number of unresolved secret references with the time of its scan
- the unit kinds the replica holds, and the report time (the database's clock)
It carries no secret value and no configuration, and reasons are cut to 300 characters. A plugin waiting for a secret is listed as waiting only, never also as faulted.
Four kinds are derived from these reports, not raised where the problem happens: plugin.load_fault, secrets.provider_unhealthy, secrets.references_unresolved and cluster.safe_mode. There is one alert per plugin instance, per provider and per safe-mode replica, and one for unresolved references, with the count of the latest scan. The message names every replica that reports the condition and joins distinct reasons.
Known and unknown
For each condition a report can show, a replica is in one of three states: known present (it lists it), known absent (it says it knows and lists nothing) or unknown. A report is evidence only for what it marks as known.
- Plugin faults are known once the replica's boot pass has finished starting its enabled plugin instances. The pass waits at most 30 seconds for each. An instance whose start is still running after that is listed as faulted ("The start has not completed after 30 s.") until the start ends.
- Secret providers are known once every registered provider has been health-checked once.
- The unresolved reference count is unknown until a scan has completed. Startup and refresh scans cover every stored reference (plugin instances and workloads) and the deployment settings. A failed startup scan is retried every 30 seconds.
- Safe mode is always known.
- A fault stays in the report while its retry runs and leaves it when an attempt ends without one, so a retry never looks like a recovery.
When an alert clears
An alert is raised on known-present evidence from any live report. It is cleared only on positive evidence of absence, never on missing data.
- A fault or provider alert clears when no live report lists it and every live report knows that condition.
- The reference alert follows the most recent completed scan among the reports that know a count. It clears only when every live report knows its count and one shows zero from a scan newer than the moment the alert was raised.
- A safe-mode alert clears when its replica's report no longer shows safe mode.
- Every clear also needs every expected replica to have reported. Expected replicas are the reading replica, the running cluster members and any replica last seen live within
Coordination:MissingReplicaWindow(default 24 hours). - A replica with no fresh report holds all clears until it reports again, so a rolling restart does not clear and re-raise alerts.
- A replica that exited while fenced keeps a running-looking member row. It stays expected until its id joins again, and removing it from the list is refused meanwhile.
- A boot-state row of a replica last seen longer ago is history and holds nothing.
Every process requires an explicit REPLICA_ID or Workflow:Engine:ReplicaId. Without Coordination:Clustered, only the replica's own report is read. A replica whose boot-state row could not be written is not read until it restarts.
The reconcile pass
Every 30 seconds the replica that owns replica-status-alert reads the reports, raises each alert a report shows and clears the open alerts of these four kinds that the rules above allow. A pass changes nothing when the cluster status cannot be read. A fault of a plugin instance that no longer exists raises nothing, and its open alert is closed once a clear is allowed. A raise or clear that throws is logged and retried on the next pass without blocking the others. A fault that returns after it resolved is a new occurrence of the same alert.
Configuration alerts
configuration.invalid is derived from the reports too.
- A replica lists the managed features whose last change it refused. The alert is keyed by feature and replica. It is open while a report lists it, and resolves when the replica reports the section valid again or leaves the fleet.
- The message names the feature and the reason. It says that no part of the refused change is applied and the last valid configuration stays in force.
- The exception is the
oidc-local-loginrule, where the declared section is in force and onlyDisableLocalLoginis held back.
configuration.pending is raised by the owner of the applied-snapshots unit.
- A declared configuration applied as a snapshot waits when the fleet does not agree on it, or when the feature judges it cannot apply it now.
- After the same reason has held for 15 minutes, one alert per feature is raised. The message names the feature and the reason, including each replica that holds the change, and never a secret value.
- It clears when the declaration is applied or no longer declared.
The same kind, keyed by feature and replica, also reports a declaration that a replica holds but applies only at its next restart. That is a Managed:* section that appeared after the start, or a changed or removed section that is read only at start (Managed:Capabilities). Each replica compares its configuration with the sections it registered at boot on every reload. The alert resolves once the report no longer lists it, which a restart does.
Replica id conflicts
Each clustered replica writes a nonce to Redis every Coordination:HeartbeatInterval under cluster:replica-id-claim:{replicaId}. A foreign nonce counts as progressing only while its lastSeen value keeps changing.
- An observer raises
cluster.replica_id_conflictafter more thanCoordination:PeerGraceof sustained progress, measured on its own monotonic clock. A short overlap during a rolling restart does not raise it. - A graceful stop removes the process's nonce.
- The owner of the
replica-id-conflict-alertkind clears the alerts. It clears when the claim hash is absent or empty, or when at most one nonce progressed for a fullPeerGrace. - A Redis read failure holds the alert open.
- If Redis restarts without persistence, the hash is empty and the owner can clear a live conflict. The reporters raise it again one
PeerGracelater as a new occurrence, with a second notification. - On a single node the check finds no conflict and clears the alert.
Egress and certificate alerts
egress.denied
The egress writer raises one egress.denied per coalesced row of a flush window, with the window's occurrence count as the increment.
- A raise or row that fails is logged and the rest of the window is still written.
- A denial with no host (a URL that did not parse) keeps its row under the host
(none)and raises no alert. - A host longer than the column is cut to 255 characters in the row. The alert keeps the full name.
- The fingerprint is the subsystem, the plugin instance (plugin denials only), the host and the port. The host is lowercased, in punycode and without IPv6 brackets.
- The message gives the reason as a sentence, and the catalogue supplies the route to fix it.
An allowed call from the same subject to the same host and port clears the alert. The subjects that clear it are:
- the core clients:
core:oci,core:webhook,core:blueprints,core:resource-index,core:widgets,core:error-reporting - a plugin instance (subsystem
pluginand its instance id) - a workflow HTTP block or C# script:
core:workflow-http,core:script
Each replica keeps the set of open denials and refreshes it from the active alerts every 30 seconds, so a denial raised on another replica, or acknowledged or purged elsewhere, is seen.
- A clear never deactivates an alert last seen after the call that triggered it.
- A clear that fails, or finds its queue full, is retried by the next allowed call. Queued clears are dropped on shutdown and found again at the next start.
- A success that lands before the denial was flushed clears nothing. The alert stays open until the next allowed call.
tls.certificate_rejected
A refused certificate raises the alert with the subsystem, the host and the certificate's issuer.
The checked connections are:
- the guarded outbound handler (subsystems such as
core:oci,core:webhookandplugin:{type}:{instance id}) - every other HTTP client without a validation callback of its own (the subsystem is the client name)
- Vault secret providers (
secret-provider:{id})
The container that resolves startup secret references has no alert store, so there a rejection is only logged. The S3 client, MQTT, the gateway upgrade probe and workload containers are not covered.
The fingerprint has no port, so a host that serves a refused and an accepted certificate on different ports makes the alert flap.
A rejection records why: the TLS policy errors, the chain status flags, and the presented certificate's subject, issuer, validity dates and SHA-256 thumbprint.
- These are in the alert's metadata and in one structured warning log line, at most once a minute per subsystem and host.
- The policy errors, flags and validity form the reason in the message. The flags are those of the platform's chain, not of the extra chain the host builds from its own trust store.
The next accepted handshake of the same subsystem to the same host clears the rejection, whatever issuer it names.
- A success on any replica clears the alert for all replicas. A replica that still fails raises it again on its next failure.
- As for every event, the clear deactivates an unacknowledged alert, which stays listed until acknowledged.
- Each replica refreshes its set of open rejections every 30 seconds. The store refuses to clear an alert last seen after the handshake, so a raise still buffered on another replica, or clock skew, can outlive a newer success until the next one.
- A clear that fails or finds the queue full is retried on the next accepted handshake.
Cluster, workload and roll conditions
The owner of cluster-workload-alert reconciles two kinds:
cluster.boot_failingis an Error keyed by replica, raised while the replica's consecutive-failure count is nonzero. The message carries the latest count and failure reason. It clears when the count returns to zero.workload.volumes_awaiting_decisionis a Warning keyed by retained-volume id, raised for each detached volume that no workload instance claims. It clears when the volume is claimed or leaves the active list.
A start-up window refusal (the full stop) is recorded in the replica's boot-state row as a failure reason that starts with [window] and leaves the failure count alone.
- While that is the latest record,
cluster.boot_failingis not raised for the replica and an open one is cleared. A later boot failure overwrites the reason and brings it back. - The owner of
replica-status-alertraisescluster.start_refused(Warning, keyed by replica, with the reason without the prefix) while the refusal is younger than 10 minutes. - It clears the alert when the replica has booted after the refusal, a failure replaced it, or it is no longer recent.
Boot-state rows are history once a replica has not been seen live for Coordination:MissingReplicaWindow. The replica-status-alert owner stamps live replicas about once a minute. At most once an hour, it deletes the rows of replicas that are not expected to be running and whose latest sign of life (last seen live, last successful boot or last failed boot) is older than Coordination:BootStateRetention (default 7 days, between 1 and 3650 days).
- A row is deleted only if it is unchanged since it was read.
- A crash-looping replica that records its failures keeps its row and alert.
- Once a row is gone, the next
cluster.boot_failingpass clears the alert.
plugin.roll_incomplete is raised for each workload in a plugin roll, keyed by plugin instance and workload.
- Its metadata records the latest update intent. It is raised again only when what it says changes.
- It is a Warning while the roll waits and an Error when the roll is halted.
- A terminal intent clears the alert while that intent is still recorded. One whose intent ended earlier stays open until that workload's next roll finishes.
API and access
All routes take the caller's access token, and the caller's permissions are the permissions claims every other policy reads.
Who sees an alert
A caller needs the kind's view permission. A kind with a subject parameter is further filtered by the subject, in one SQL predicate that counts, pages and point reads all use, so a hidden alert is never counted, listed or fetched.
| Subject | Visible to |
|---|---|
| Device | Callers who may access the device (a token's scope narrows this further) |
| Automation | Its creator |
| Scene | Callers who can see the scene under the scene read's own rule (access overrides, time windows) |
| Workflow | The workflow's owner |
An automation or workflow alert with no eligible creator (the object is deleted, or its creator is disabled or lacks the view permission) is visible to every holder of the view permission, so it can be acknowledged and purged.
Status
GET /api/system/status returns summaries only for the boxes the caller may view.
- Cluster state and replica logs need
home.manage. Plugin, workload, gateway and build status and workload trusted CAs needintegrations.manage. Key-ring posture and provider CA bundles needsecrets.bind. - A missing report of an expected replica identifies the incomplete replica without changing box health. A replica that is only a boot-state row is listed with
expectedToReportfalse and is not counted. - The automations, devices and egress boxes list up to ten alerts that need attention, each shaped like an item of
GET /api/alerts, withdetailleft empty. DELETE /api/system/replicas/{replicaId}refuses the current or a live replica with 409.GET /api/system/replicas/{replicaId}/logsrelays a bounded tail request to the named live replica. WhileManaged:Capabilities:DiagnosticLogsisfalse, it answers409 capability_switched_off. Removing a replica is not affected.
Listing and acting
GET /api/alerts lists alerts, and POST|DELETE /api/alerts/{id}/... acts on one.
All filters are optional and evaluated in SQL, so total counts only the matching alerts. An unknown value, or a minSeverity above maxSeverity, is 400.
| Filter | Meaning |
|---|---|
box, boxId |
The status area, or the single status box, that shows the kind. An unknown boxId is 400. |
kind |
An alert kind code. |
minSeverity, maxSeverity |
Severity range. |
state |
The alert state. |
needsAttention |
Only alerts that need attention. |
suppressed, suppression |
suppression is Snoozed or Silenced: alerts that a snooze or silence of that mode currently covers. |
subjectType, subjectId |
A device, automation, scene or workflow. A scene or workflow without subjectId keeps every alert of that subject type. |
pluginInstanceId |
Alerts of one plugin instance. |
limit, offset |
Paging. limit is 1 to 500, default 100. |
The attention count and criticalCount (matching alerts at Critical) in the response cover everything the caller may see, not just the page.
Acknowledge, snooze (1h, 1d or 7d), silence, and removing a snooze or silence need the kind's act permission, which defaults to its view permission.
- An alert the caller cannot see is
404, so existence does not leak. One they see but may not act on is403. Removing a suppression that is not set is409. - Each successful action writes one audit entry (
alerts.acknowledged,alerts.snoozed,alerts.unsnoozed,alerts.silenced,alerts.unsilenced) with the fingerprint, kind and severity.
Delivery settings
GET|PUT /api/alerts/delivery need home.manage and answer 403 without it. The response carries the threshold, the selected sink ids, the selectable sinks with a running flag, and the time of the last Failed row. Selectable sinks are the notification sinks running on the replica that answers, plus those already selected. A selected id whose instance no longer exists comes back with removed set and its id as the name, so it can be unticked.
PUT answers 400 for a threshold that is not one of the three names (digits and lists are refused), for more than 20 or duplicate ids, and for an id that is not an existing notification sink instance. A sink already selected stays valid while it is not running. An id the stored setting holds whose instance is gone is dropped from the save instead of refused. The status endpoint has a delivery box for home.manage holders.
Bubble
The bubble is the pop-up that shows alerts raised since the user's last visit. Every sign-in moves the user's last sign-in time to the previous one and stamps the new time. The baseline is the previous sign-in on any device, so a second sign-in elsewhere moves it for every session of that user. A failure to record it is logged and never fails the sign-in.
GET /api/alerts/bubble returns what the caller may see, that needs attention and whose attention started after the previous sign-in (all of it for a user with no previous sign-in), minus the alerts the caller dismissed at their current attention epoch. POST /api/alerts/{id}/bubble-dismiss records that dismissal for the caller alone. It is idempotent, needs only view access to the alert, and is 404 for an alert the caller cannot see.
Real-time updates
The store pushes AlertsChanged with only the alert id after a commit that changed what a viewer sees (state, severity, acknowledgement, suppression, resolution), never for a repeated raise that changes nothing visible.
- A kind without a subject goes to the hub group
perm:{view permission}. A kind with a device, automation or workflow subject goes to the per-user groupsalerts_user:{id}, and one with a scene subject toalerts_user_scenes:{id}, of the users who may see the subject. - A connection joins a user group only while it holds the view permission of one of that group's kinds. A personal access token that limits devices joins neither group. A token's connection joins a group only when its claims hold every view permission of the group:
devices.manageandautomations.managefor the first,scenes.managefor the second. A token missing one gets no pushes of that group and sees those alerts on its next read. - The push runs after the commit. A cancelled caller or a failed push neither fails nor un-audits a committed action. A failed push is dropped, and the next read reconciles.
- Purging an old inactive alert and deleting a plugin instance send no push, because the audience of a removed row cannot be resolved. An open list reconciles on its next read.
Web interface
Alerts appear on the System status page and in the navigation bell.
- Alert lists refetch on
AlertsChangedand whenever the admin hub reconnects. - An alert row offers Acknowledge, Snooze for 1 hour, 1 day or 7 days, and Silence forever when the viewer may act, with Unsnooze and Unsilence while the alert carries that suppression. A failed action is shown on the row. The docs link shows a plugin's
docsUrlonly when it is https. - An alert with a repair flow the viewer may act on opens the repair dialog.
- The finding list for a device or an object (
GET api/devices/{id}/model-findings) refetches ondeviceModelFindingsChanged. Each entry reads<owner name>: <message>under a heading naming the severity and the owner's kind, and links to the editor of the device, automation, scene, workflow or baby-monitor profile it names. An owner that no longer exists has no name and no link. Both findings endpoints needdevices.view. - A disabled automation shows its reason and an Enable button. A 409
automation.blocked.device-modelsays the device model still blocks it.
System status page
The page is visible to the holder of any box's view permission. It reads GET api/system/status every minute and on AlertsChanged. A viewer without a permission of a tab is sent back to the Overview.
The Overview tab lists the alerts that need attention, worst first, and one line per box.
The Alerts tab maps its filters onto the GET api/alerts filters, one server query per view, so the page and its total agree. Information is maxSeverity=Info, and Snoozed and Silenced use suppression. An alert that is both snoozed and silenced is listed under both. A suppression that no longer covers the alert (it rose above the level, or the snooze ended and awaits the sweep) drops it from that view, while the row still shows the Snoozed or Silenced tag. The filter and area are kept in the address (?filter=, ?box=).
The Cluster tab (home.manage) shows an Alerts card for the cluster and delivery boxes above the replicas, even when the replicas cannot be read. Each replica is a list item, not a table, so nothing clips on a phone. A line "Runs ..." names the unit kinds the replica holds. Restart (POST api/admin/recovery/restart with the replica id) is offered for a running replica and Remove from list (DELETE api/system/replicas/{id}) for any other, both behind a confirmation. The server's refusal is shown as it came and the list reloads. A replica's logs load when its box opens and on Refresh only, for a running replica (the one in safe mode first). While a replica is in safe mode, the tab also lists the plugins with a toggle (api/admin/recovery/plugins).
The Plugins & workloads, Automations & devices and Security tabs draw the boxes they own with the same problem-first ordering as the Overview. A tab that has an alert area carries the count of its alerts that need attention. A failed status request shows a banner with Retry. A failed alert, automation or findings request shows a load failure beside what it was to show, never an empty line.
The status detail names each workload by its plugin instance (pluginInstanceId, displayName). The Plugins box includes the update count.
The Updates and plugin roll box is derived from the open alerts filed under roll (plugin.roll_incomplete, workload.rollback_failed), naming a failed rollback in its fact. A roll alert ends with the update, while a failed rollback outlives it. The other workload diagnostics (workload.diagnostic) are listed under workloads. No box lists or counts an alert another box owns. The box reads each roll (GET api/workloads/updates/{intent}/roll, intent id from the alert's metadata) and offers Retry and Give up (after a confirmation) to a viewer the alert marks canAct. Acknowledged or silenced entries stay listed, but leave the box an information line.
The Automations box lists automation.disabled alerts with the recorded cause under the sentence and Enable once the automation is repairable. The Devices box lists device.dependencies_broken alerts with the device's Error findings linked to their editors and its Warnings as a count. It lists device.exposure_changed, device.rehomed and device.kept_for_meters as plain alert rows.
Boxes and counting
Every counted alert has a box, named by its kind in the catalogue. A badge and the boxes under it cannot name different alerts.
- A box that does not already ask for attention does so while an alert filed under it needs attention. A viewer who may see the kind may see the box, which is how
home.manageopens the Certificates box fortls.certificate_rejected. - A box in
Unavailablekeeps its own state and fact and still shows the alerts filed under it. - Every box in
AttentionorUnavailableshows its alerts above its body, with a link to the area's alerts, so the certificate list stays under the alert. A new kind needs only a box in the catalogue. The roll box lists its own alerts. - A line of a box that stands for a kind (a replica, a provider, a plugin fault or secret wait, the unresolved secret references, the detached volumes awaiting a decision) is marked with the worst severity and a link to Alerts, and the alert is left out of the rows. An alert no line on screen claims is shown as a row.
Bubble and banner
The bell reads GET api/alerts/bubble and dismisses through POST api/alerts/{id}/bubble-dismiss (this user only). "Dismiss forever" is the ordinary silence, after a confirmation.
The Delivery settings box is on the Alerts tab for holders of home.manage and nowhere else, and makes no request without that permission. Its one-line fact reads "Off" or "{n} sinks, from {severity}", with the time of the last failure after a failed row. It opens into a severity select, a check box per sink (a selected sink that is not running is marked) and Save. A selected sink whose plugin instance was deleted is listed as "Removed notification sink" with its id, ticked. It can be unticked, which drops it on Save, but not ticked again, and the fact does not count it. A load error shows Retry, not "Off".
The critical banner shows, in the Advanced interface, the safe-mode state (reason and replicas, linking to the Cluster tab) and separately any open Critical alerts. In Basic it is one line linking to System status that covers both, with no detail. It reads the recovery status only for home.manage. It publishes its height as --reeve-banner-height, so the fixed app bar, drawer and bell sit below it.
Where findings appear
| Place | What it shows |
|---|---|
| Device view | The "Model findings" section lists every open finding on the device. For devices.manage it also shows the device's device.dependencies_broken alert above the findings. The section is drawn only when a finding or alert exists or the findings failed to load. |
| Automations (advanced) | The card badge shows the open Error count (modelFindingCount) and Warning count (modelWarningCount). While disabled, it shows the reason as a plain sentence ("Disabled because …"). An operator-disabled automation the model later blocks reads "Disabled, and blocked because a device it uses changed". The edit form shows the disable notice while the automation is disabled with a recorded reason (so Enable stays reachable after the findings clear, and for an inputs-changed disable) and the finding list while it has any finding. |
| Scenes (advanced) | The card badge and the edit form show the same two counts. |
| Workflow editor | The overlay groups the saved workflow's findings by the block their reference names. The block name is a button, so the canvas opens from the keyboard too. A block deleted since the last save is listed but not clickable. The block library shows no per-block marker. |
The basic (resident) automation and scene views show no findings.