The apt cache refreshes report no change, so the drift check reads zero (THE-126) #116
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
wontfix
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-forge!116
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/THE-126-apt-cache-no-drift"
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-126
Summary
The drift check's
runnerlayer readchanged=2on every run. Both apt cache refreshes answerchangedunder--checkwhenever the cache has passedcache_valid_time, which is the state every daily run finds it in: check mode cannot update the cache and reports the intent as a change. The install below each refresh is the task that names the package that moved, so neither refresh reports one of its own.The same fix and the same reason as
infra-tracker'sunattended_upgradesandvikunjaroles (olympus/infra-tracker#66).Evidence
mise exec -- make runner-service-check— the Target the audit runs, read-only against PROD:59d427c(main, before)ok=28 changed=2 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0ok=28 changed=0 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0mise exec -- make check→ exit 0 (env-check, the four test suites,fmt-check,docs-check: all 5 assertions hold).ansible-playbook -i inventories/prod/hosts --syntax-check site.ymlinrunner/service→playbook: site.yml.make precovers the forge's Guest — so there is no PRE rehearsal for this layer. Nothing was applied to any Guest, and the next scheduled drift run is the first that reads the merged tree.Merge Danger
Door: two-way. Two
changed_whenlines and their reasons; no module argument, task, template or Target changes, and a revert restores the old reporting.Blast Radius: none. It changes reporting only: both refreshes still update the cache on a real run, and the tasks that install report their own changes as before.
Review started (round 1/5) on
14bc15714b— reading the diff now.olympus/infra-forge · PR #116 · reviewed head
14bc15714b43402896eba7d89a9d19657db1b9b7· round 1/5 · verdict mergeThe thread carried no prior review when this round opened, so the header count (1) is the dispatch's own.
Recommendation: merge
The claim, and where it comes from
paperclip:THE-126, fetched live through the Paperclip API (GET /api/issues/THE-126→ 200, 11,610 bytes) with the review started. Its What to do names three outcomes: (1)changed_when: falseon both runner-layer apt cache refreshes, with the reason in a comment beside each; (2)make runner-service-checkre-run,changed=0 failed=0; (3) the next scheduled 03:15Z audit readingclean.--checkrehearsal reportschanged=2on two apt cache refreshes that touch nothing on the Guest, hiding real drift behind noise; after this change it reportschanged=0.Standards — 0 findings
Read at the reviewed head:
AGENTS.md(§Secrets, §State, §Privacy, §Code comments, §Toolchain), the org records inolympus/workshopdocs/adr/at45790e78d0c4051c0f77546017692863a5d084e8(0001–0015 + index),docs/agents/*.md, and this layer's gate note.AGENTS.md:38§Code comments — "Keep comments to a minimum… when something genuinely needs more explanation than the code can carry, propose a docs page"runner/service/roles/runner/tasks/main.yml:28-30;runner/service/roles/unattended_upgrades/tasks/main.yml:11-14infra-trackeratorigin/main,vikunja/service/roles/vikunja/tasks/main.yml:5-12is a five-line rationale immediately abovechanged_when: false.mainAGENTS.md§Secrets; reviewer charter §3changed_whenpins the reported flag only — a cache update that fails still fails the task — so the change cannot mask drift in the other direction. Nothing in the repo parses achanged=count from a recap:.forgejo/workflows/deploy.yml:68readsgit diff --name-onlyoverrunner/, not the play's recap.Spec — 0 findings
changed_when: falseon both refreshes, reason in a commentrunner/…/runner/tasks/main.yml:28-34;runner/…/unattended_upgrades/tasks/main.yml:11-18make runner-service-check,changed=0 failed=0cleanThe PR touches nothing the ticket did not ask for: two
changed_whenlines and their two comments,+9/−1across the two files named in the ticket.Verified, by hand (this round, at
14bc1571)refs/pull/116/headresolved on the host14bc15714b43402896eba7d89a9d19657db1b9b7— equals the dispatch's head and the PR object'shead.shagit diff 59d427c...HEAD+9/−1, exactly the two role task files--check, localhost, cache mtime2026-10-28T11:41:39Z(stale): base shape vs head shape, run in both orderschanged, thenok. Order B (head→base):ok, thenchanged. Cache mtime identical after both runs — check mode did not update it, so the only difference is thechanged_whenlinegrep -rn update_cacheat head: 7 sitesforgejo/service/**(the forge layer's, outside this diff), andrunner/service/roles/firewall/tasks/main.yml:10(name: nftables+update_cache), probed: reportsokwith the package present — which is why the author measuredchanged=2, not 3mise exec -- make checkdocs-check: all 5 assertions holdansible-playbook -i inventories/prod/hosts --syntax-check site.ymlinrunner/serviceplaybook: site.yml, rc 0pr-checksenv-check, fmt-check, validate, syntax-check, docs-check;planguest, runner-guest, edge(The root
make syntax-checkreds in my clone oncommunity.postgresqlfor want ofmake deps' collections, and reds identically in a worktree at the base59d427c— my clone's toolchain, not this diff. CI's own syntax-check is green at this head.)Could not verify
make runner-service-check, the PROD--check --diffrehearsal. It refuses on this review host:error: required secret file .env is missing; composing no command.There is no.envin the clone or the worktree, and I did not fetch one —.envismake env's output, and writing a credential file into a review tree to prove a reporting change is not a trade a reviewer makes. The PLAY RECAP pair in the body is the author's measurement; what I reproduced is its mechanism, not their run.clean— has no artefact until that run exists.Named, not charged
runner/service/roles/firewall/tasks/main.yml:10—update_cache: trueinside aname: nftablesinstall, untouched by this PR. Probed above: reportsok, so it is not a missed third site.update_cachesites underforgejo/service/**belong to the forge layer, outside this diff; a sibling branch for it (hermes/THE-125-apt-cache-no-drift) is on the remote as of this round's read.make check's credential-free floor has no task-level Ansible coverage, and this layer's documented gate is its--checkrun (.forgejo/workflows/deploy.yml:6). That is the layer's pre-existing shape, not something this diff introduced — so it is named here rather than charged, with the note that a future edit could drop the lines and only the daily audit would notice.Summary
The recommendation is merge: no blocker stands, and the change does what THE-126 asks at both sites without touching anything else.