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>
This commit is contained in:
patrickandClaude Opus 5.5 committed 2026-10-17 12:03:02 -04:00
1 parent ac17a98e91
commit 271af3b071
8 files changed
+76 -7

No files matched your search

+6
View File
@@ -63,6 +63,12 @@ How the agent works it out:
no locks and writes no cache files. `dist-upgrade` is used so that new-ABI kernel
packages pulled in by the meta-package show up. Lines whose origin contains
`-security` count as security updates.
- **Phased updates** (Ubuntu only): Ubuntu rolls some updates out gradually and
holds them back from a share of machines at first. apt doesn't offer these to
the host yet, so they aren't counted as available updates. They appear as
`+N phased` in the Updates column, with the package list on the host page.
They never affect status, because Ubuntu doesn't phase security updates and
there's nothing to act on until apt offers them.
- **Package list freshness**: the mtime of apt's update stamps. The agent
**doesn't run `apt update`** itself; it relies on the stock `apt-daily.timer`.
If that's disabled, the host shows `update` with "package lists N days old".