Skip to content

feat(wall): backups and patches under "All quiet", and a now-playing card - #1584

Merged
Gerrrt merged 2 commits into
mainfrom
wall/lab-depth
Nov 19, 2026
Merged

Gerrrt merged 2 commits into
mainfrom
wall/lab-depth

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 19, 2026

Copy link
Copy Markdown
Owner

What changed

Lab depth. When nothing is firing, the Alerts card replaces "Nothing is firing." with two lines:

  • Backups 30 h · tested 20 h · off-site 34 d. These are the backups, the restore test and the off-site copy. Each shows its most overdue job, measured against the allowance install-timers.sh gives that job, so a fortnightly backup at six days counts as fresher than a nightly one at two. A job that is overdue or whose last run failed is amber.
  • 3 security updates on 1 host · no reboots. Anything waiting is amber.

Both lines read series that already exist, through two new fixed handles, /api/q/backups and /api/q/patches. When there is no answer, "Nothing is firing." comes back. While alerts are firing, the lines step aside. The Today panel keeps the same number of rows.

Now playing. New wall_media.yaml makes sensor.wall_media: the title, artist or series, and app of the first playing media player labelled wall_media. It is a context card that comes after To-do and before the Hebrew word. It never includes the player's name or room, and there is no album art.

Files: Caddyfile (three handles), wall.js and wall.css, the new package, and docs.

Why

This is the fourth of five steps in bringing the mockup's ideas onto the wall while keeping it readable from the chair (ADR-0119). Phase 3 was #1583.

SSH failures and IDS findings are not included. They are Loki rules, and Loki sends its alerts straight to Alertmanager (alertmanager_url in loki-config.yaml), not into Prometheus's ALERTS. The wall therefore has nothing it can query for them, and the same holds for every Loki alert on the wall's Alerts card today. The changelog records this gap; it is not fixed here.

Blast radius

The change touches only trinity's sensitive tier: the wall page, three Caddy handles and one HA package. make up restarts Home Assistant, as it does on every deploy of this stack.

  • No change to network segmentation or firewall rules
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml

Anything that reaches trinity:443 can now also read the backups' last successes and the security updates and reboots waiting on each host, which Glance's Maintenance page already shows. It can also read what the labelled players are playing. docs/security.md now says the wall answers ten questions and reads nineteen entities. docs/architecture.md still said eight and ten, and now agrees with docs/security.md.

Verification

  • python3 scripts/check_docs.py: docs OK. yamllint on the new package: OK.

  • ./scripts/lint.sh: passed, but 11 checks were skipped because this Windows workstation has no Docker daemon.

  • I previewed the page at 1920x1080 against stubbed answers. The lab lines rendered with the worst job picked by its share of its allowance, along with the updates line, the Now playing card with a long title wrapped to two lines, and the new lab source in the status bar. There were no script errors.

  • Nothing here has run against the real Prometheus or Home Assistant.

  • make validate passes

  • Deployed to the lab and confirmed working: still to do. After make up, check that /api/q/backups and /api/q/patches return series. Label a player wall_media and check that /api/ha/media stops reading unavailable.

  • Docs updated (docs/, service README, or docs/roadmap.md)

🤖 Generated with Claude Code

…card

Under a real "All quiet", the Alerts card gives two lines from series
Prometheus already has: the backups, restore test and off-site copy,
each by its most overdue job against its own allowance, and the
security updates and reboots waiting. A new wall_media package gives a
"Now playing" context card, after the to-do list, from the players
labelled wall_media. SSH and IDS findings are Loki alerts that never
reach Prometheus's ALERTS, so the wall cannot read them; the changelog
records that gap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 19, 2026 16:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Backup jobs that have never succeeded can disappear from status reporting, while missing patch-state metrics can be presented as no pending updates or reboots, making the dashboard misleadingly healthy.

2 open issues
What changed in this PR

Extends the office wall dashboard with backup and patch status beneath “All quiet” and a lower-priority Now playing card, continuing the fourth phase of ADR-0119.

Changes:

  • Adds fixed Prometheus endpoints and quiet-state summaries for backup outcomes, security updates, and pending reboots.
  • Adds a Home Assistant media sensor and context card for players labelled wall_media, exposing title, artist or series, and app.
  • Updates setup instructions, access documentation, endpoint counts, and the changelog, including the existing Loki-alert visibility gap.
File Description
stacks/​sensitive/​wall/​wall.js Fetches and renders lab summaries and the media context card.
stacks/​sensitive/​wall/​wall.css Styles lab summaries and two-line media titles.
stacks/​sensitive/​README.md Documents lab status and media setup.
stacks/​sensitive/​home-assistant/​packages/​wall_media.yaml Adds the labelled-player media summary sensor.
stacks/​sensitive/​home-assistant/​packages/​README.md Documents the new media package.
stacks/​sensitive/​Caddyfile Adds fixed backup, patch, and media endpoints.
docs/​security.md Describes expanded read access and updates endpoint counts.
docs/​changelog.md Records the additions and Loki-alert limitation.
docs/​architecture.md Updates the wall’s query and entity counts.

Review effort: Balanced

Comment thread stacks/sensitive/wall/wall.js Resolved
Comment thread stacks/sensitive/wall/wall.js Resolved
Review on #1584:
- A job with no success yet (a 0 after a failed first run, or only an
  allowance) now ranks worst in its kind and reads "none yet" in amber,
  instead of being skipped.
- The patches line says "none" only of a family some host reports; a
  family no host reports is left out, and with neither the line goes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt
Gerrrt merged commit 359597e into main Nov 19, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the wall/lab-depth branch November 19, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants