Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ roadmap as it read that day, and the *Done* entries keep the shape they had
there. `check_docs.py` does not check this file, for the reason its module
docstring gives: it is a record, not a claim about now.

## 2026-11-22

- **The office wall stops counting `info` alerts.** Its verdict took every
firing alert but Watchdog, so the two `HostBatteryTempNotMeasured` alerts
(on `oracle` and `prometheus`), which are `info` by design and resolve only
when a pack with a working thermistor is fitted, held it at "2 alerts
firing" in amber, and "All quiet" could not show. The alert is right; the
wall was wrong to treat `info` as something to act on. `wall.js` now counts
only `critical` and `warning`, as Alertmanager delivers and the Glance
*Estate* panel already counts, and shows any `info` alerts as one muted
line under "All quiet". Watchdog, the broken states and Caddy's
`/api/q/alerts` are unchanged.

## 2026-11-21

- **#404 closed: `trinity`'s last gate, ADR-0023's *Independent* test,
Expand Down
10 changes: 9 additions & 1 deletion stacks/sensitive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -777,14 +777,22 @@ container of its own: Caddy serves `wall/` as static files.
- **It loads nothing from anywhere else.** The site's Content-Security-Policy
allows only itself. There are no web fonts; the stacks fall back to the
Pi's DejaVu.
- **Only what notifies counts.** The verdict and the alert list take
`critical` and `warning` alerts only, as those are what Alertmanager
delivers, the same rule the Glance *Estate* panel keeps. An `info` alert is
recorded, never notified, and some fire for good
(`HostBatteryTempNotMeasured`), so they leave "All quiet" standing and are
counted on one muted line under it ("2 info recorded"). `/api/q/alerts`
still returns every firing alert, so the page sees Watchdog.
- **It says when it does not know.** No answer from Prometheus, or a
Watchdog that is not firing, is shown in red as exactly that, never as
"All quiet". Under a real "All quiet", two lines say how the lab stands:
the backups, the restore test and the off-site copy, each by its most
overdue job against its own allowance (`/api/q/backups`), and the security
updates and reboots waiting (`/api/q/patches`). Overdue, failed, never
succeeded or waiting is amber. What no host reports is left out rather
than shown as none, and with neither line, "Nothing is firing." stays. A host that stops reporting reads *no data*. The status bar
than shown as none, and with neither line, "Nothing is firing." stays
("Nothing that notifies is firing." while an info alert is). A host that stops reporting reads *no data*. The status bar
gives each source's age and turns amber at two and a half minutes.
- **The household half comes from Home Assistant, the same way.** Each
`/api/ha/NAME` rewrites to `GET /api/states/<one entity>`. The rewrite ends
Expand Down
13 changes: 10 additions & 3 deletions stacks/sensitive/wall/wall.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,14 @@
return;
}

const faults = all
.filter((a) => a.metric.alertname !== "Watchdog")
// Only warning and critical count, as those are what Alertmanager
// delivers. An info rule is recorded, never notified, and some fire for
// good (HostBatteryTempNotMeasured), so they would hold the wall amber
// forever. They are counted on one muted line under "All quiet".
const others = all.filter((a) => a.metric.alertname !== "Watchdog");
const info = others.filter((a) => a.metric.severity === "info").length;
const faults = others
.filter((a) => a.metric.severity !== "info")
.sort((a, b) => (SEVERITY_RANK[a.metric.severity] ?? 3) - (SEVERITY_RANK[b.metric.severity] ?? 3));

if (faults.length === 0) {
Expand All @@ -207,7 +213,8 @@
// patches stand. Without an answer for them, it says what it always did.
const lab = labLines();
if (lab.length) for (const line of lab) q.append(line);
else q.append(el("small", null, "Nothing is firing."));
else q.append(el("small", null, info ? "Nothing that notifies is firing." : "Nothing is firing."));
if (info) q.append(el("small", "lab", `${info} info recorded`));
body.append(q);
return;
}
Expand Down