Commit Graph
59 Commits
Author SHA1 Message Date
patrickandClaude Sonnet 5.5 404086ded1 Fix references that moved with the text
'above', 'below' and 'as above' pointed at sections that are now on other
pages, so they become links; server/install.sh's pointer to the README now
names docs/reverse-proxy.md; server.md gains the next steps that used to be
the following README sections.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 12:10:13 -04:00
patrickandClaude Sonnet 5.5 84c9952dd2 Slim the README to an overview and quick start
The README keeps the intro, diagram, status table, a three-step quick start and
an index of the docs/ pages; everything else lives in docs/.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 12:08:10 -04:00
patrickandClaude Sonnet 5.5 77a880880a Move README sections into docs/ pages
Content is moved verbatim (checked line by line against the old README). Each
page gets a title and a link back to the README; H3 sections that become pages
of their own are promoted to H2. The README itself is trimmed next.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 12:07:31 -04:00
patrick e7a9a49438 Merge pull request 'Add kernelwatch status [--json]' (#20) from feat/status-cli into main
CI / tests (Python 3.10) (push) Successful in 25s
CI / tests (Python 3.11) (push) Successful in 25s
CI / tests (Python 3.12) (push) Successful in 25s
CI / tests (Python 3.13) (push) Successful in 24s
CI / lint (push) Successful in 3s
Reviewed-on: #20
2026-10-30 15:46:32 +00:00
patrickandClaude Sonnet 5.5 63b9151b09 Add kernelwatch status [--json]
CI / tests (Python 3.10) (pull_request) Successful in 25s
CI / tests (Python 3.11) (pull_request) Successful in 24s
CI / tests (Python 3.12) (pull_request) Successful in 24s
CI / tests (Python 3.13) (pull_request) Successful in 25s
CI / lint (pull_request) Successful in 4s
Prints the fleet like the dashboard, worst hosts first, from the same
evaluate() call, so the CLI and the dashboard cannot disagree. --json gives
generated_at, whole-fleet counts and a stable per-host object with no secrets;
--host and --level (repeatable) trim the host list. No network surface.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:42:59 -04:00
patrick 9d80d3ea4c Merge pull request 'Add heartbeat pings for the alert check and the nightly backup' (#19) from feat/heartbeat into main
CI / tests (Python 3.10) (push) Successful in 25s
CI / tests (Python 3.11) (push) Successful in 25s
CI / tests (Python 3.12) (push) Successful in 25s
CI / tests (Python 3.13) (push) Successful in 24s
CI / lint (push) Successful in 3s
Reviewed-on: #19
2026-10-30 15:35:17 +00:00
patrickandClaude Sonnet 5.5 55a9766418 Document the heartbeat monitor setup
CI / tests (Python 3.10) (pull_request) Successful in 24s
CI / tests (Python 3.11) (pull_request) Successful in 24s
CI / tests (Python 3.12) (pull_request) Successful in 24s
CI / tests (Python 3.13) (pull_request) Successful in 24s
CI / lint (pull_request) Successful in 4s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:32:15 -04:00
patrickandClaude Sonnet 5.5 60b8c6bff7 Add heartbeat pings for the alert check and the nightly backup
heartbeat_url is pinged after every alert check that sent its notifications
without failures, and backup_heartbeat_url after every successful nightly
backup, so an external monitor (healthchecks.io, Uptime Kuma) notices when the
alert timer or the backup stops running. A failing heartbeat is logged without
the URL and never fails the work it reports on. kernelwatch test-heartbeat
pings each configured URL once.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:31:32 -04:00
patrick e3013921d1 Merge pull request 'Notify via ntfy when the nightly backup fails' (#18) from feat/backup-failure-alert into main
CI / tests (Python 3.10) (push) Successful in 24s
CI / tests (Python 3.11) (push) Successful in 24s
CI / tests (Python 3.12) (push) Successful in 24s
CI / tests (Python 3.13) (push) Successful in 24s
CI / lint (push) Successful in 3s
Reviewed-on: #18
2026-10-30 15:16:58 +00:00
patrickandClaude Sonnet 5.5 48960e6faf Notify via ntfy when the nightly backup fails
CI / tests (Python 3.10) (pull_request) Successful in 25s
CI / tests (Python 3.11) (pull_request) Successful in 24s
CI / tests (Python 3.12) (pull_request) Successful in 24s
CI / tests (Python 3.13) (pull_request) Successful in 25s
CI / lint (pull_request) Successful in 3s
kernelwatch-backup.service gets OnFailure=kernelwatch-backup-failed.service,
which runs notify-backup-failure, so timeouts, OOM kills and crashes are
reported as well as handled errors. The installer ships the new unit, and tests
check that every OnFailure= target is a real unit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:13:33 -04:00
patrickandClaude Sonnet 5.5 8a9a3ca56d Add notify-backup-failure command
Sends a high-priority ntfy message that the nightly backup failed, naming the
newest backup still on disk. It exits 1 if the message can't be delivered and 0
(with a note on stderr) when ntfy isn't configured.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:12:22 -04:00
patrick 6652a4d795 Merge pull request 'Back up the database nightly with a timer' (#17) from feat/backup-timer into main
CI / tests (Python 3.10) (push) Successful in 26s
CI / tests (Python 3.11) (push) Successful in 24s
CI / tests (Python 3.12) (push) Successful in 24s
CI / tests (Python 3.13) (push) Successful in 24s
CI / lint (push) Successful in 3s
Reviewed-on: #17
2026-10-30 15:06:01 +00:00
patrickandClaude Sonnet 5.5 4a9bc77a08 Back up the database nightly with a timer
CI / tests (Python 3.10) (pull_request) Successful in 23s
CI / tests (Python 3.11) (pull_request) Successful in 25s
CI / tests (Python 3.12) (pull_request) Successful in 24s
CI / tests (Python 3.13) (pull_request) Successful in 24s
CI / lint (pull_request) Successful in 3s
kernelwatch scheduled-backup writes kernelwatch-YYYY-MM-DD.db into backup_dir
and prunes dated copies backup_keep_days or older, only after the new backup
succeeded and only files with exactly that name. kernelwatch-backup.timer runs
it at about 03:30 as the unprivileged service user with no network, and
server/install.sh enables it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 10:23:45 -04:00
patrick e3010321d7 Merge pull request 'Test both installers against a fake root' (#16) from test/installers into main
CI / tests (Python 3.11) (push) Successful in 24s
CI / tests (Python 3.12) (push) Successful in 23s
CI / tests (Python 3.13) (push) Successful in 23s
CI / lint (push) Successful in 6s
CI / tests (Python 3.10) (push) Successful in 25s
Reviewed-on: #16
2026-10-30 14:22:01 +00:00
patrickandClaude Sonnet 5.5 3624f0e5d9 Test both installers against a fake root
CI / tests (Python 3.10) (pull_request) Successful in 25s
CI / tests (Python 3.11) (pull_request) Successful in 25s
CI / tests (Python 3.12) (pull_request) Successful in 24s
CI / tests (Python 3.13) (pull_request) Successful in 24s
CI / lint (pull_request) Successful in 4s
27 tests run the real scripts with systemctl, apt-get, useradd and friends
stubbed: fresh installs, upgrades keeping config and token, token sources,
REPORT_HOSTNAME handling, apt-update marker, private CA, needrestart, failed
first report, OS warnings, argument errors, and the server's user creation,
config preservation and interrupted-upgrade recovery. Guards that every unit
and script is installed and that deploy.sh ships every file the agent
installer uses.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 09:51:36 -04:00
patrickandClaude Sonnet 5.5 70e5807f59 Let the installers run under a fake root
KERNELWATCH_ROOT prefixes every path agent/install.sh and server/install.sh
read or write and skips their root check. Unset (as in production) every path
is unchanged; the only edits are quoting and mkdir -p for system directories
that already exist.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 09:51:36 -04:00
patrick e799f88f8e Merge pull request 'Let an agent report a chosen hostname' (#15) from feat/report-hostname into main
CI / tests (Python 3.10) (push) Successful in 24s
CI / tests (Python 3.11) (push) Successful in 22s
CI / tests (Python 3.12) (push) Successful in 21s
CI / tests (Python 3.13) (push) Successful in 22s
CI / lint (push) Successful in 4s
Reviewed-on: #15
2026-10-30 02:17:15 +00:00
patrickandClaude Sonnet 5.5 10b1d6abb8 Let an agent report a chosen hostname
CI / tests (Python 3.10) (pull_request) Successful in 22s
CI / tests (Python 3.11) (pull_request) Successful in 22s
CI / tests (Python 3.12) (pull_request) Successful in 22s
CI / tests (Python 3.13) (pull_request) Successful in 21s
CI / lint (pull_request) Successful in 3s
REPORT_HOSTNAME in agent.conf replaces hostname -f in the report, for hosts
registered under a label that differs from their real hostname (otherwise the
dashboard notes a mismatch forever). install.sh --report-hostname NAME sets it,
--default-report-hostname clears it, and re-running with --server (register,
rotate) keeps it. Agent 0.4.1.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 22:14:41 -04:00
patrick 3e62d086d1 Merge pull request 'Treat Ubuntu Livepatch as cover for pending kernel reboots' (#14) from feat/livepatch into main
CI / tests (Python 3.10) (push) Successful in 21s
CI / tests (Python 3.11) (push) Successful in 21s
CI / tests (Python 3.12) (push) Successful in 22s
CI / tests (Python 3.13) (push) Successful in 22s
CI / lint (push) Successful in 3s
Reviewed-on: #14
2026-10-30 01:45:30 +00:00
patrickandClaude Sonnet 5.5 b59336d7e2 Collect Ubuntu Livepatch status in the agent
CI / tests (Python 3.10) (pull_request) Successful in 22s
CI / tests (Python 3.11) (pull_request) Successful in 22s
CI / tests (Python 3.12) (pull_request) Successful in 21s
CI / tests (Python 3.13) (pull_request) Successful in 21s
CI / lint (pull_request) Successful in 2s
kernelwatch-livepatch.service runs canonical-livepatch as root with no
network and a read-only filesystem, and a small python3 helper keeps the
running kernel's state, check state, support, end-of-support date and fix
count in /run/kernelwatch/livepatch. The agent (0.4.0) reads that file the
way it reads needrestart's and never runs the snap itself.

NoNewPrivileges=yes can't be used: snap-confine fails under it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 21:37:42 -04:00
patrickandClaude Sonnet 5.5 4fa86de11f Treat Ubuntu Livepatch as cover for pending kernel reboots
New livepatch_* report fields. When Livepatch is healthy (applied or
nothing-to-apply, checked, supported) and the kernel's support end date is
more than 14 days away, a pending kernel reboot, or a reboot-required file
caused only by linux-* packages, becomes a note instead of the reboot status.
Anything else about Livepatch gives no cover and is noted.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 21:35:42 -04:00
patrick 40bfdc3236 Merge pull request 'Flag hosts whose reported hostname differs from their registered name' (#13) from feat/hostname-mismatch into main
CI / tests (Python 3.10) (push) Successful in 21s
CI / tests (Python 3.11) (push) Successful in 20s
CI / tests (Python 3.12) (push) Successful in 20s
CI / tests (Python 3.13) (push) Successful in 20s
CI / lint (push) Successful in 3s
Reviewed-on: #13
2026-10-30 01:22:28 +00:00
patrickandClaude Sonnet 5.5 201a1c5f4b Document hostname check
CI / tests (Python 3.10) (pull_request) Successful in 20s
CI / tests (Python 3.11) (pull_request) Successful in 20s
CI / tests (Python 3.12) (pull_request) Successful in 20s
CI / tests (Python 3.13) (pull_request) Successful in 21s
CI / lint (pull_request) Successful in 2s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 21:17:40 -04:00
patrickandClaude Sonnet 5.5 63ca790779 Flag hosts whose reported hostname differs from their registered name
A note on the dashboard row and host page, not a status change, so a token
copied to the wrong machine is visible. Only the first DNS label is compared,
ignoring case, since registered names are usually hostname -s and the agent
reports hostname -f.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 21:17:40 -04:00
patrick 313961d70b Merge pull request 'Rate-limit report ingestion per host' (#12) from feat/ingest-rate-limit into main
CI / tests (Python 3.10) (push) Successful in 20s
CI / tests (Python 3.11) (push) Successful in 19s
CI / tests (Python 3.12) (push) Successful in 20s
CI / tests (Python 3.13) (push) Successful in 20s
CI / lint (push) Successful in 3s
Reviewed-on: #12
2026-10-30 01:16:31 +00:00
patrickandClaude Sonnet 5.5 51732066d0 Document report rate limit
CI / tests (Python 3.10) (pull_request) Successful in 21s
CI / tests (Python 3.11) (pull_request) Successful in 19s
CI / tests (Python 3.12) (pull_request) Successful in 19s
CI / tests (Python 3.13) (pull_request) Successful in 19s
CI / lint (pull_request) Successful in 3s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 20:46:09 -04:00
patrickandClaude Sonnet 5.5 a6a43b142f Rate-limit report ingestion per host
Reports arriving sooner than report_min_interval_seconds (default 30) after
the host's previous one are refused with 429 and a Retry-After header. The
check shares the insert's transaction so concurrent requests can't bypass it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 20:46:09 -04:00
patrick 8cb7ef5e8b Merge pull request 'Add kernelwatch backup command' (#11) from feat/backup-command into main
CI / tests (Python 3.10) (push) Successful in 18s
CI / tests (Python 3.11) (push) Successful in 18s
CI / tests (Python 3.12) (push) Successful in 18s
CI / tests (Python 3.13) (push) Successful in 19s
CI / lint (push) Successful in 2s
Reviewed-on: #11
2026-10-30 00:44:01 +00:00
patrickandClaude Sonnet 5.5 42a1b41b01 Document backups and restore
CI / tests (Python 3.10) (pull_request) Successful in 19s
CI / tests (Python 3.11) (pull_request) Successful in 18s
CI / tests (Python 3.12) (pull_request) Successful in 18s
CI / tests (Python 3.13) (pull_request) Successful in 18s
CI / lint (pull_request) Successful in 3s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 20:37:54 -04:00
patrickandClaude Sonnet 5.5 4365ed56e1 Add kernelwatch backup command
Uses SQLite's online backup API, so it is consistent while the server is
writing in WAL mode. Writes mode 0600 via a temp file and rename, and
refuses to overwrite the live database.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 20:37:54 -04:00
patrick c67a8e27a0 Merge pull request 'Add ntfy alerts for hosts that need a reboot or updates for too long' (#10) from feat/status-alerts into main
CI / tests (Python 3.10) (push) Successful in 18s
CI / tests (Python 3.11) (push) Successful in 17s
CI / tests (Python 3.12) (push) Successful in 18s
CI / tests (Python 3.13) (push) Successful in 18s
CI / lint (push) Successful in 3s
Reviewed-on: #10
2026-10-30 00:35:02 +00:00
patrickandClaude Sonnet 5.5 b6957e3ca4 Document reboot and update alerts
CI / tests (Python 3.10) (pull_request) Successful in 19s
CI / tests (Python 3.11) (pull_request) Successful in 18s
CI / tests (Python 3.12) (pull_request) Successful in 17s
CI / tests (Python 3.13) (pull_request) Successful in 17s
CI / lint (pull_request) Successful in 3s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 20:32:24 -04:00
patrickandClaude Sonnet 5.5 ce231bd471 Notify when a host has needed a reboot or updates for too long
The alert timer now evaluates each host with the dashboard's status logic
and sends one ntfy message once a host has been in reboot or update for
status_alert_after_hours, measured from when it entered that status.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 20:32:24 -04:00
patrickandClaude Sonnet 5.5 d6480ef1b9 Add status_alerts table and status_alert_after_hours setting
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 20:30:51 -04:00
patrick 3ac7111371 Merge pull request 'Add ntfy alerts for stale hosts and reporting recovery' (#9) from feat/stale-host-alerts into main
CI / tests (Python 3.10) (push) Successful in 17s
CI / tests (Python 3.11) (push) Successful in 17s
CI / tests (Python 3.12) (push) Successful in 18s
CI / tests (Python 3.13) (push) Successful in 18s
CI / lint (push) Successful in 4s
Reviewed-on: #9
2026-10-24 19:18:23 +00:00
patrick 47f93968e9 Add ntfy alerts for stale hosts and reporting recovery
CI / tests (Python 3.10) (pull_request) Successful in 19s
CI / tests (Python 3.11) (pull_request) Successful in 17s
CI / tests (Python 3.12) (pull_request) Successful in 17s
CI / tests (Python 3.13) (pull_request) Successful in 18s
CI / lint (pull_request) Successful in 3s
2026-10-24 15:15:48 -04:00
patrick bd0db302b0 Merge pull request 'Optionally refresh apt package lists before each report' (#8) from feature/apt-update into main
CI / tests (Python 3.10) (push) Successful in 15s
CI / tests (Python 3.11) (push) Successful in 15s
CI / tests (Python 3.12) (push) Successful in 15s
CI / tests (Python 3.13) (push) Successful in 15s
CI / lint (push) Successful in 3s
Reviewed-on: #8
2026-10-17 21:16:22 +00:00
patrickandClaude Opus 5.5 f35cc007f5 Optionally refresh apt package lists before each report
CI / tests (Python 3.10) (pull_request) Successful in 15s
CI / tests (Python 3.11) (pull_request) Successful in 15s
CI / tests (Python 3.12) (pull_request) Successful in 15s
CI / tests (Python 3.13) (pull_request) Successful in 15s
CI / lint (pull_request) Successful in 3s
The agent's dist-upgrade simulation already finds new-ABI kernels and
security updates, but only once apt's lists know about them. Debian
doesn't refresh lists by default, so a kernel security release could
stay invisible until someone ran apt update.

install.sh --with-apt-update adds a marker that enables
kernelwatch-apt-update.service, a sandboxed root oneshot the agent pulls
in before each report. Failures (no network, apt lock held) are ignored
so the report still goes out. deploy.sh now ships the unit; a test keeps
deploy.sh's file list in sync with what install.sh uses.

Agent 0.3.2, server 0.3.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 17:13:55 -04:00
patrick e9c8f889c7 Merge pull request 'Add Gitea Actions CI: tests on Python 3.10-3.13 and shellcheck' (#7) from ci/gitea-actions into main
CI / tests (Python 3.10) (push) Successful in 17s
CI / tests (Python 3.11) (push) Successful in 15s
CI / tests (Python 3.12) (push) Successful in 15s
CI / tests (Python 3.13) (push) Successful in 15s
CI / lint (push) Successful in 3s
Reviewed-on: #7
2026-10-17 19:30:00 +00:00
patrickandClaude Opus 5.5 0628dc515a CI: install Python with uv instead of setup-python
CI / tests (Python 3.10) (pull_request) Successful in 15s
CI / tests (Python 3.11) (pull_request) Successful in 14s
CI / tests (Python 3.12) (pull_request) Successful in 16s
CI / tests (Python 3.13) (pull_request) Successful in 15s
CI / lint (pull_request) Successful in 3s
setup-python only ships builds for real Ubuntu releases and failed on
the runner's ubuntu-latest image. uv's standalone builds work on any
glibc Linux. make test now takes PYTHON=.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 15:28:34 -04:00
patrickandClaude Opus 5.5 792161edaa Add Gitea Actions CI: tests on Python 3.10-3.13 and shellcheck
CI / tests (Python 3.10) (pull_request) Failing after 4s
CI / tests (Python 3.11) (pull_request) Failing after 4s
CI / tests (Python 3.12) (pull_request) Failing after 3s
CI / tests (Python 3.13) (pull_request) Failing after 3s
CI / lint (pull_request) Successful in 4s
The matrix covers the Python versions on Ubuntu 22.04/24.04 and Debian
12/13. make lint now includes deploy.sh, and its token check is
rewritten as an if statement to satisfy shellcheck SC2015.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 15:26:50 -04:00
patrick c0b3ff991c Merge pull request 'Document putting the dashboard behind Authelia' (#6) from docs/authelia into main
Reviewed-on: #6
2026-10-17 19:24:57 +00:00
patrickandClaude Opus 5.5 06118a1bee Document putting the dashboard behind Authelia
Forward auth via nginx auth_request, with /api/v1/report bypassed so
agents keep reporting with their bearer tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 15:24:44 -04:00
patrick e86fef31e4 Merge pull request 'Apply Ubuntu phasing in the agent's sandbox' (#5) from fix/phasing-in-sandbox into main
Reviewed-on: #5
2026-10-17 17:13:18 +00:00
patrickandClaude Opus 5.5 73b4a164e4 Apply Ubuntu phasing in the agent's sandbox
apt skips phasing in chroots, which it detects by running
`ischroot -t`. ischroot compares / with /proc/1/root; the agent's
DynamicUser can't read /proc/1/root, so ischroot answers "chroot"
(-t = assume yes when unsure) and apt offered every phased update.
On a real 26.04 host, 4 updates apt deferred as root were reported as
installable, with 0 phased.

Pass -o Dir::Bin::ischroot=/bin/false so apt applies phasing from
/etc/machine-id exactly as it does for root. Agent 0.3.1, server 0.3.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:13:03 -04:00
patrick 7a8c51ec84 Merge pull request 'Give phased updates their own dashboard column' (#4) from feature/phased-column into main
Reviewed-on: #4
2026-10-17 17:09:42 +00:00
patrickandClaude Opus 5.5 45af8bc1f8 Give phased updates their own dashboard column
The "+N phased" suffix in the Updates cell was easy to miss and only
appeared when something was deferred. Add a Phased column instead:
the count (hover for the packages), "0" when nothing is deferred, "–"
on distributions that don't phase (Debian), "?" for agents too old to
report it. Dashboard-only; no agent redeploy needed. Server 0.3.1.

Also list Ubuntu 26.04 as tested in the agent installer and README
(already reporting fine from a 26.04 host).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:09:15 -04:00
patrick ab962e1a90 Merge pull request 'Show Ubuntu phased updates separately from available updates' (#3) from feature/phased-updates into main
Reviewed-on: #3
2026-10-17 16:15:27 +00:00
patrickandClaude Opus 5.5 271af3b071 Show Ubuntu phased updates separately from available updates
apt lists updates deferred by phasing in an indented block rather than
as Inst lines, so they were already excluded from the counts but
invisible. The agent now parses that block into phased_packages; the
dashboard shows "+N phased" in the Updates column (with a tooltip) and
the list on the host page. Phasing never affects status: Ubuntu doesn't
phase security updates, and there's nothing to act on until apt offers
the update.

Run the apt simulation with LC_ALL=C since we parse its messages (the
systemd unit already runs in the C locale; manual --print may not).
Agent and server 0.3.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 12:03:02 -04:00
patrick ac17a98e91 Merge pull request 'Report services needing a restart via a separate root needrestart unit' (#2) from feature/needrestart-services into main
Reviewed-on: #2
2026-10-17 15:56:28 +00:00