The apt cache refresh is preparation, not a change (THE-116) #66
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-tracker!66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/THE-116-apt-cache-refresh-not-a-change"
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-116
Summary
THE-116 is the drift report's one repeating row:
infra-tracker's service layer rehearses withchanged=1on every daily run, so the row hides the next real difference behind noise. The changed task is the first one in the play.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,if module.check_mode or updated_cache_time != post_cache_update_time). A daily run is always past the hour, so the row readsdriftevery day.vikunja/service/roles/vikunja/tasks/main.yml, one line:The refresh is preparation for the install below, and that task still reports a package that moved. The rehearsal now reads
okon it.Not covered here: the Suite proves an apply is idempotent (
Converge 2/3 changed=0) and never runs the rehearsal, so this class of artefact had no test of its own. A--checkleg incontainer/suite.shis a separate call.Evidence
mainatc55be7567dc852TASK [vikunja : refresh the apt cache before the first install]changed: [vikunja]ok: [vikunja]vikunja : ok=22 changed=1 unreachable=0 failed=0vikunja : ok=22 changed=0 unreachable=0 failed=0Both runs are
mise exec -- make service-checkon runner 145 as therunneractor (ACTOR=runner make env), each from a fresh shallow clone, exit 0.The Guest's apt cache read
2026-12-01 20:52:38 +0000(/var/lib/apt/lists, the file the module stats when no update-success stamp exists) — 13h53m old at the after-run — so the suppression, not a fresh cache, is what made the taskok.mise exec -- make checkon a fresh clone at67dc852: exit 0 (env check and its tests, the plan/gate/deploy tests,tofu fmt -check, both Stacks, the Test Stack and the Edge's tests).Merge Danger
Door: two-way. One line in one task; 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 service rehearsal and of a deploy's
--checkrun. A deploy still installs what moved:install the service's dependenciesis the task that reports 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-116
Review started (round 1/5) on
67dc852292— reading the diff now.olympus/infra-tracker#66 · head
67dc852· round 1/5 · axes: standards, spec · basec55be75Recommendation: merge
The dispatch numbered this round 1/5 and the thread agrees:
list_pull_reviewsanswered[], so this is the first review on this head.Standards
Conventions read at the reviewed head (
67dc852):AGENTS.md,.agents/skills/pr/SKILL.md,docs/adr/0001…0005,docs/agents/issue-tracker.md, plus the org records inolympus/workshop—git ls-tree origin/main docs/adr/lists sixteen (0001–0015+index), all read atorigin/main, not from the clone's older checkout.No findings.
.agents/skills/pr/SKILL.md§template asks for## Summary,## Evidence,## Merge Danger(Door / Blast Radius). The body carries all three, with the evidence as a before/after table.olympus/workshopAGENTS.md§Agent skills / Issue tracker: a task is cited as<tracker>:<ref>, never as a bare number. The body opens withpaperclip:THE-116and closes withRefs: THE-116. Compliant.vikunja/service/roles/vikunja/tasks/main.ymlalready carrieschanged_when: falsewith a rationale comment on its non-mutating tasks, at lines 82, 92, 161, 171, 296. The new line (main.yml:11-15) is the same shape: a preparation task that states why it reports nothing. The six-line comment atmain.yml:5-10explains behaviour no reader can infer from the task (check mode lies aboutchanged), which is what the file's other comments do.olympus/workshop0004,0009,0011untouched). Noolympus/workshopescalation class applies: one Ansible task's reporting on a non-tier-1 service; no ADR, branch-protection or CI-gate file in the diff.Spec
Spec source:
paperclip:THE-116— "Drift: infra-tracker — vikunja service layer reports changed=1 on every drift run (apt cache)", read live 2026-12-02 10:46Z through the Paperclip control plane (scripts/fetch-paperclip-issue.sh, 200; comments viafetch-paperclip-comments.py, 200, 1 entry). The PR body names the same ticket and adds the mechanism.No findings. The ticket's three steps:
runneractor:make service-checkinvikunja/service; the recap names the changed task." — the author's evidence table does this (runner 145,ACTOR=runner make env, fresh shallow clone):ok=22 changed=1before,ok=22 changed=0after. Not reproducible from this host; see Could not verify.changed_when: false), or let the dependency-install task own the refresh." — implemented atmain.yml:15(changed_when: false), the first of the two remedies the ticket names. The install task atmain.yml:17-25still reports a package that moved, which is the property the ticket's second remedy exists to preserve.clean(changed=0 failed=0)." — the drift reader sumschanged=over the recap and answerscleanat 0,driftabove it (infra-cockpitscripts/drift-lib.sh:115-136atorigin/maind64dfb1). Atchanged=0the row is clean; nothing else in the audit's ansible branch reads this task (scripts/drift.shrunsplay vikunja "$dir" service-check).The mechanism the body asserts is the module's own, at the version the repo pins (
mise.toml→pypi:ansible-core = "2.21.5"): in check modecache.update()is skipped (apt.py:1460) andupdated_cacheis set anyway (apt.py:1485-1486,if module.check_mode or updated_cache_time != post_cache_update_time). The body's parenthetical about/var/lib/apt/listsis also right:get_cache_mtime()statsAPT_UPDATE_SUCCESS_STAMP_PATHfirst and falls back toAPT_LISTS_PATH.Verified
git ls-remote origin refs/pull/66/headvs the dispatch's SHA67dc8522928933beab2b84936bcc5b38de58db4agit diff c55be75...67dc852 --statvikunja/service/roles/vikunja/tasks/main.ymlc55be75),--check, reviewer host whose apt lists are 89 days oldchanged: [localhost],ok=1 changed=167dc852), same fixture, same hostok: [localhost],ok=1 changed=0mise exec -- make checkat headtofu fmt -check, three Stacks, Test Stack + Edge tests)checks / static@67dc852checks / execute(the Suite on a real Test Guest)TASK [vikunja : refresh the apt cache before the first install]→ok: [vikunja]each time; recapschanged=18,changed=0,changed=0plan / guest-plan-check,plan / edge-plan-checkThe red/green pair in rows 3–4 is the claim driven end to end: same task text, same host, same stale cache — the base reports a change in check mode, the head does not. Rows 6–8 are the four required contexts the merge gate reads, all green at the reviewed head.
Could not verify
ok=22 changed=1→ok=22 changed=0). This host has no SSH path to the runner (.145) or the Guest (.142) —root@10.12.0.143answersPermission denied (publickey)— andmake env ACTOR=runneris refused to a regular agent (AGENTS.md§Environment). THE-116's own comment records the same refusal for the drift agent. Covered instead by the module source, the local check-mode pair above, and CI's Suite log.Named, not charged
--checkleg exists in the Suite (container/suite.shnever passes--check) — the PR body discloses this under Not covered here and calls it a separate change. Not this change's to make, and the ticket does not ask for it.infra-forge(3 sites:forgejo,runner, and twounattended_upgrades),infra-cockpit(2),infra-secrets(1),infra-silo(1) — none of them carrying the line atorigin/maintoday. Each is another repository's ticket; charged to nobody here, named so the next drift ticket starts from a census rather than a fresh hunt.Counts — Standards: 0 findings (worst: none). Spec: 0 findings (worst: none). Zero blockers, zero advisories, so nothing trips the volume rule; the recommendation is merge.