The apt cache refreshes stop reporting a change in check mode (THE-136) #71
No reviewers
Labels
No labels
ready-for-agent
review
merge-ready
review
needs-fix
review
needs-human
review
needs-review
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-secrets!71
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/136-apt-cache-changed-when"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
paperclip:THE-136
Summary
THE-136 is the drift report's repeating row for
infra-secrets' bao service layer: the daily rehearsal reportschanged=2, so the row hides the next real difference behind noise. The two changed tasks are the first one in each of two roles, and both are the same apt cache refresh.Under
--checkthe apt module cannot update the cache and says so itself: it skipscache.update()and still setsupdated_cache = Truewhen the cache has passedcache_valid_time(ansible/modules/apt.py). A daily run is always past the hour, so the row readsdriftevery day.Two files, four lines each:
The refresh is preparation for the installs below, and those tasks still report a package that moved. The rehearsal now reads
okon both. This is the fixinfra-silocarries on its own two roles (olympus/infra-silo#45) andinfra-trackeron itsunattended_upgradesandvikunjaroles (olympus/infra-tracker#66).The firewall role's
nftablestask also refreshes the cache, but it names a package install, so it reports only a change to that package; achanged_when: falsethere would hide a real install, and it is left as it is.Evidence
mainata2f8692(05:35Z)7b7f30c(05:37Z)bao : ok=60 changed=2 unreachable=0 failed=0 skipped=41bao : ok=60 changed=0 unreachable=0 failed=0 skipped=41changed: [bao]ok: [bao]Both runs are
mise exec -- make service-checkagainst PROD (Guest 144) with the same play, from the Hermes host with the runner's fleet key; exit 0.The Guest's
/var/lib/apt/listsread2026-12-04 00:03:19 +0000— 5h32m old at the after-run, and still that value 5h35m old when re-read at 05:38Z — and/var/lib/apt/periodic/update-success-stampis absent, so the cache was pastcache_valid_time: the suppression, not a fresh cache, is what made the tasksok.mise exec -- make checkon this branch: exit 0.Merge Danger
Door: two-way. Two predicates in two tasks; a revert is an ordinary pull request. It applies nothing — the rehearsal is the deploy's own first step.
Blast Radius: the changed count of the bao service rehearsal and of a deploy's
--checkrun. A deploy still installs what moved: the install tasks below are what report a package. The one thing no longer reported is the cache refresh itself, which changes no configuration on the Guest.Prose in this body is agent-written (Hermes).
Review started (round 1/5) on
7b7f30cebd— reading the diff now.olympus/infra-secrets #71 — head
7b7f30cebdfe45e2b4887873eda798881fd10cf5— round 1/5 — verdict: mergeRecommendation: merge
Standards — 0 findings
standards: no repo conventions found beyond AGENTS.md(its checks and the workshop ADRs); judged by general good practice and the repo's own file conventions. No ADR conflict: the diff touches no Stack, no ADR, no workflow and no branch protection, and a predicate on twoapttasks reaches neither ADR-0009 (deploy through a merge tomain) nor ADR-0011 (a deploy never destroys or replaces). No secret in the diff.The shape is the one the org already carries:
olympus/infra-siloatorigin/main,silo/service/roles/unattended_upgrades/tasks/main.yml:10-17(comment wording identical) andsilo/service/roles/silo/tasks/main.yml:52-62;olympus/infra-trackeratorigin/main,vikunja/service/roles/unattended_upgrades/tasks/main.yml:10-14andvikunja/service/roles/vikunja/tasks/main.yml:11-15. Both changed files pass.Spec — 0 findings
Spec source:
paperclip:THE-136, read live over the Paperclip control plane (GET /api/issues/THE-136→ 200;GET /api/issues/cfe21a65-…/comments→ 200, 0 entries), "What to do" steps 1–4.changed_when: falseon both refresh tasks, reason in a comment beside thembao/service/roles/openbao/tasks/main.yml:64-71,bao/service/roles/unattended_upgrades/tasks/main.yml:10-17apttask alonebao/service/roles/firewall/tasks/main.yml:6-11is still the repo's only otherupdate_cachesite, and it namesnftablesmake service-check,changed=0 failed=0cleanNo scope creep:
+8/−0across those two files and nothing else; every hunk maps to step 1.Verified
git ls-remote origin refs/pull/71/head=7b7f30c…, the dispatch's SHA; one commit overa2f8692.scripts/apt-check-mode-changed-probe.sh(cache mtime 2026-09-04, age 7,832,846s >cache_valid_time): bareapt: update_cache: trueunder--check→ changed; the same task withchanged_when: false→ ok; the named-package shape (name: … update_cache: true) → ok. That is the artefact the ticket reports, the predicate that removes it, and the reason the firewall task is rightly left alone.mise exec -- make checkat head: rc=0, every suite green (baremake checkstops atplan-testonly becausetofuis offPATH, which the repo's own message names).ansible-playbook --syntax-checkonbao/service/site.ymlat head: parses.pr-checks / check (pull_request)success (48s) andplan / guest-plan-check (pull_request_target)success (22s).origin/main: infra-silo — two roles carry it; infra-tracker —unattended_upgradesandvikunja. "Two files, four lines each" holds, and the recap arithmetic is consistent (ok=60 changed=2→ok=60 changed=0): a changed task also counts inok, which the probe's own recap shows (ok=3 changed=1over three tasks).Could not verify
make service-checkagainst Guest 144): there is no.envin the clone or in the head worktree, and an agent does not fetch its own environment (docs/env-fetch.md; infra-siloAGENTS.md§Environment states the refusal). The whole-playchanged=0therefore rests on three reads that compose: the ticket's independent baseline recap (changed=2), a diff that changes only those two tasks, and the probe's task-level red/green above.Named, not charged
changed. The ticket orders exactly this and the body's Merge Danger names it ("the one thing no longer reported is the cache refresh itself"); nothing in the repo consumes the service deploy's changed total —docs/deploy.md:109'schanged=0refers tomake service-check, a--checkrun.clean) is a later actor's evidence.Summary
Standards: 0 findings (worst: none). Spec: 0 findings (worst: none). 0 BLOCKER, 0 ADVISORY — the recommendation is merge; state APPROVED, label
review/merge-ready.