Skip to content

fix(alerts): the update ticket waits for the host's own automation - #380

Merged
rldyourmnd merged 1 commit into
mainfrom
fix/the-update-ticket-waits-for-the-automation
Sep 2, 2026
Merged

fix(alerts): the update ticket waits for the host's own automation#380
rldyourmnd merged 1 commit into
mainfrom
fix/the-update-ticket-waits-for-the-automation

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

host_standard_updates_available fired the moment any package appeared. Two things make that noise rather than signal:

  • unattended-upgrades runs daily on every fleet host, with the Ubuntu archive and -security as allowed origins, so a security update announced in the afternoon is gone by the next morning without anyone reading a ticket.
  • Ubuntu phases updates per machine, so one set of nine packages reached the five hosts on different days. On 2026-09-02 the rule ticketed four times for that single set, once per host as its phase arrived.

The expression now asks whether the count stayed above zero through a full automation cycle: min_over_time(...[26h:10m]) > 0, twenty-six hours being the daily apt timer plus its randomised delay. A package the automation will never take — one from noble-updates rather than -security, or a phased deferral — still surfaces a day later, which is when it stops being the machine's problem and becomes a person's.

Verified against live data: the new expression evaluates cleanly and returns one series per host.

https://claude.ai/code/session_0128syXKxAGCfJGRDxUUNQXp

host_standard_updates_available fired the moment any package appeared.
unattended-upgrades runs daily on every fleet host with the Ubuntu archive
and -security as allowed origins, so a security update announced in the
afternoon is gone by the next morning without anyone reading a ticket. And
Ubuntu phases updates per machine, so one set of nine packages reached the
five hosts on different days: on 2026-09-02 the rule ticketed four times
for that single set, once per host as its phase arrived.

The expression now asks whether the count stayed above zero through a full
automation cycle -- twenty-six hours, the daily apt timer plus its
randomised delay. A package the automation will never take, one from
noble-updates rather than -security or a phased deferral, still surfaces a
day later, which is when it stops being the machine's problem.

Claude-Session: https://claude.ai/code/session_0128syXKxAGCfJGRDxUUNQXp
@rldyourmnd
rldyourmnd enabled auto-merge September 2, 2026 16:54
@rldyourmnd
rldyourmnd merged commit 73ca45f into main Sep 2, 2026
10 checks passed
@rldyourmnd
rldyourmnd deleted the fix/the-update-ticket-waits-for-the-automation branch September 2, 2026 16:56
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.

1 participant