The apt cache refresh is preparation, not a change (THE-125) #117
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!117
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/THE-125-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-125
Summary
THE-125 is the drift report's repeating row for
infra-forge's forgejo 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, one line each:
The refresh is preparation for the installs below, and those tasks still report a package that moved. The rehearsal now reads
okon both.Evidence
mainat59d427c(the scheduled run and THE-125's rehearsal)b1451f9forgejo : ok=49 changed=2 unreachable=0 failed=0 skipped=13forgejo : ok=49 changed=0 unreachable=0 failed=0 skipped=13changed: [forgejo]ok: [forgejo]Both runs are
mise exec -- make service-checkagainst PROD with the same play; the branch run is from the Hermes host, withACTOR=hermes make envand the fleet key, exit 0.The Guest's
/var/lib/apt/listsread2026-12-02 21:52:10 +0000— 7h43m old at the after-run — 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 lines 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 forge's 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).
Refs: THE-125
Waiting — queued behind olympus/infra-forge#116 (one review run at a time). The review run resumes on its own at Thu 3 Dec, 06:38 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Review started (round 0/5) on
b1451f94d6— reading the diff now.olympus/infra-forge #117 — head
b1451f9— round 1/5 — verdict: mergeRecommendation: merge
Round count: the review list was empty when this round opened, so this is the thread's first review (
1/5). The sign-on line's "round 0/5" is the dispatch's own counter, which restarts when a label is moved by hand.Fixed point.
refs/pull/117/headresolved tob1451f94d6cccb66cfa20d28e01095dcdd8440a9(equals the dispatch's SHA). Delta reviewed:git diff 59d427c...b1451f9— one commit, two files, 12 added lines, 0 removed.Spec.
paperclip:THE-125, fetched live from the Paperclip control plane (GET /api/issues/THE-125→200, 14,254 bytes; documents endpoint →200, 2 bytes, empty), statusin_review. Its "What to do" is the contract:changed_when: falseto both refresh tasks, with the reason in a comment beside them."make service-checkand confirmchanged=0 failed=0."clean."Standards.
AGENTS.md(head) — §Code comments, §Secrets, §State, §Privacy, §Toolchain;docs/agents/issue-tracker.md;docs/adr/index.md(10 records) plusolympus/workshop's org ADRs;GLOSSARY.md.Standards
No findings.
paperclip:THE-125reference is not theFO-<n>/SL-<n>formAGENTS.md§Pull requests names, but the org record every olympus repo defers to (olympus/workshopAGENTS.md§Issue tracker) namespaperclip:<KEY>-<n>as the citation for company work, and this ticket is a drift incident born on the company board. The local doc is silent on that route rather than forbidding it.AGENTS.md§Code comments asks for comments kept to a minimum. The 5-line rationale block is required by the ticket ("with the reason in a comment beside them") and matches the repo's own practice above non-obvious tasks (forgejo/service/roles/forgejo_mcp/tasks/main.yml:34-38; the same refresh task in theforgejorole already carried a four-line comment). Considered, cleared.Spec
No findings.
forgejo/service/roles/forgejo/tasks/main.yml:34andforgejo/service/roles/unattended_upgrades/tasks/main.yml:19, each with the reason directly above the task (:23-30and:11-15).changed=2→changed=0,ok=49unchanged on both sides) is arithmetically sound: Ansible's recap counts a changed task inokas well, which I reproduced locally (ok=3 changed=1over three tasks). The live run itself I could not repeat from this session; see Could not verify.update_cache: truein the forgejo service play finds five sites, and the other three all name a package (forgejo_mcp/tasks/main.yml:37,firewall/tasks/main.yml:9, and the install tasks), so the module's no-package early exit never fires for them and they never report the refresh. "Both refresh tasks" is exactly the two that did.Verified
git ls-remote origin refs/pull/117/headb1451f9…— equals the reviewed SHAapt-check-mode-changed-probe.sh(shipped probe, live run)changed,changed_when: falseshapeok, sibling named-package shapeok; cache age 7.7 M s, well pastcache_valid_timeansible-core 2.21.5modules/apt.py:1457-1495cache.update()and still setsupdated_cache = Truewhen the cache is stale; with no package/upgrade/deb it exitschanged=updated_cachechanged_when: falsestop the task running?ok(recap ok=3 changed=0, target file present). The refresh still happens; only the status is suppressedmise exec -- make checkat headrc=0ansible-playbook --syntax-checkfor both plays at headrc=0each, with the collection path supplied (the first attempt failed oncommunity.postgresqlnot installed in this checkout — an environment gap at line 98, not the diff)b1451f9(get_commit_statuses)pr-checks /{env-check,fmt-check,validate,syntax-check,docs-check} allsuccess;plan /{guest,edge,runner-guest}-plan-checkallsuccessnotify/registeron the two changed taskschangedcannot drop a handler or change a downstream decisionCharter scope: no OpenTofu changes, so no plan/judge movement; no destroy or replace; no ADR, branch-protection, CI-gate, or tier-1 change. The change edits the forgejo service layer's reporting only and applies nothing, so no escalation class moved.
Could not verify
make service-checkbefore/after counts on PROD. It needs the fetched environment and a Guest key, and this profile holds neither: no.envin the checkout (ls→ No such file or directory),ssh-add -l→ The agent has no identities, and the profile.envcarries no store credential. I substituted the offline mechanism probe, the module source, andmake check— all above — rather than the live run. The ticket's own 03:15Z audit row is the live confirmation.Named, not charged
runner/service/roles/unattended_upgrades/tasks/main.yml:10-13andrunner/service/roles/runner/tasks/main.yml:24-31carry the identical refresh-only task without the line.make runner-service-checkrehearses that layer, so it will report the samechanged=2artefact the day it is audited. Pre-existing, untouched by this diff, and outside THE-125's scope (the ticket names the forgejo layer's two tasks) — a follow-up ticket, not this PR's work.Summary