An apt cache refresh is not a change to the Guest (paperclip:THE-11) #67
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!67
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/THE-11-apt-cache"
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?
What this is
The daily drift rehearsal plans and rehearses every repository (
infra-cockpit#38, projectaudit, THE-11). For a service layer the verdict is thePLAY RECAP'schangedcount:changed=0is clean and anything else is drift. This task made that count 1 on every run, so the audit reported the tracker as drifted with nothing moved on it.aptreportschangedforupdate_cachewhenever the cache is older thancache_valid_time, and always in check mode. Refreshing a cache changes no declared state, sochanged_when: falsesays what is true. The install below still reports the change that matters.Verified
The same rehearsal the audit runs,
ansible-playbook --check --diffagainst PROD's inventory:ok=22 changed=1— the changed task was this oneok=22 changed=0make check: 400 ok, 0 failed.Why it matters
Left as it was, the audit would report
infra-trackeras drifted every day and the Paperclip routine would open a task a day for a Guest that is exactly as the tree declares. A check that cries wolf is a check nobody reads.paperclip:THE-11.Waiting — queued behind olympus/infra-tracker#66 (one review run at a time). The review run resumes on its own at Wed 2 Dec, 11:49 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Review started (round 0/5) on
eb49bce06e— reading the diff now.olympus/infra-tracker#67 — head
eb49bce— round 1/5 — 1 advisory, 0 blockersRound 1/5 is the thread's own count: this PR carries no review object before this one. The dispatch's sign-on comment carried round 0/5, which is the dispatch's counter, not the thread's.
Recommendation: merge
Standards
Sources read at
eb49bce:AGENTS.md(toolchain, state, environment, PR format),docs/adr/0001…0005,olympus/workshopdocs/adr/0001…0015(binding),GLOSSARY.md,.agents/skills/pr/SKILL.md,.forgejo/workflows/checks.yaml,Makefile. NoCONTRIBUTING.mdorcoding-standards.mdexists in this repo.The changed task follows the house shape: a prose comment saying why the line is there,
changed_whenused the way the rest of the role already uses it (main.yml:82,92,161,171,296,312), and the task-level key indented as a sibling ofname. The YAML parses (--syntax-checkbelow).ADVISORY —
scripts/__pycache__/plan_check.cpython-313.pycis a committed build artifact, and every run of the floor rewrites it.*.pycexists at the base:git ls-tree -r origin/main | grep -cE '__pycache__|\.pyc$'→0. This is the first in the repository.scripts/plan-check.py:38doesimport plan_check, so the plan check writes it, and aftermise exec -- make checkat this headgit statusreadsM scripts/__pycache__/plan_check.cpython-313.pyc. The committed blob can never be stable — a.pycembeds its source's mtime and size, so a fresh compile always differs from the committed one..gitignorecarries no__pycache__/or*.pycrule, and no written standard in the repo forbids artifacts (checkedAGENTS.md,docs/,GLOSSARY.md,.agents/skills/pr/, workshopdocs/adr/; there is no.gitattributes). Nothing written down was breached, which is why this is an advisory rather than a blocker.Clearing change:
git rm --cached scripts/__pycache__/plan_check.cpython-313.pycand add__pycache__/to.gitignore.Spec
Spec sources, in the order read:
paperclip:THE-11— "T8: Track E1: scheduled drift detection", fetched live from the Paperclip API this session (GET /api/issues/THE-11→ 200, 23,213 bytes, 2026-12-02T11:51Z): "a scheduledtofu plan+ansible --check --diffper repo/stack… Zero diff means a clean report; any diff opens or updates a task."olympus/infra-cockpit#38(d64dfb1, merged 2026-12-02T10:28Z), which is where the split between the two repositories is stated, and itsscripts/drift-lib.sh:120-136atorigin/main, which is the contract this change is measured against: it sumschanged=over thePLAY RECAPand reportsdriftwhen the sum is above zero.Findings:
vikunja/service/roles/vikunja/tasks/main.yml:15, and only on the cache task. The install below it (main.yml:17-24) keeps its own reporting, so a package that actually installs still readschanged, which is whatdrift-lib.sh:133-136needs to distinguish a clean run from a drifted one.What I verified, and how
aptreportschangedforupdate_cachein check modeapt.py:1448-1496): inside the stale-cache block,if module.check_mode or updated_cache_time != post_cache_update_time: updated_cache = True, thenexit_json(changed=updated_cache, …)when the task names no packagechanged_when: falseturns that intochanged=0--check, both tasks forced to execute (check_mode: false): recapok=2 changed=1— the plain task reported changed, thechanged_when: falseone did notinfra-cockpitorigin/mainscripts/drift-lib.sh:120-136(sumschanged=,driftabove zero),scripts/drift.shdispatchingplay vikunja "$dir" service-checkfor this repo, andMakefile:403-405→ansible-playbook -i $(PROD_INVENTORY) --check --diff site.ymlansible-playbook -i "vikunja," --syntax-check vikunja/service/site.ymlmake check: 400 ok, 0 failedmise exec -- make checkateb49bce400oklines, every summary0 FAILEDMakefile:118-135— the service layer's gate is "the rehearsal has already passed", not achangedtotal, so suppressing the count moves no gateCould not verify: the author's end-to-end
before ok=22 changed=1 / after ok=22 changed=0against PROD's inventory. This session holds no PROD inventory or credentials, and I do not run against PROD. Both halves of the mechanism are verified above; the combined run is the author's evidence, reproduced by me only in its parts.Named, not charged
make check:deploy-workflow tests: 1 assertion(s) FAILEDon "the script reads SEMAPHORE_API_TOKEN", immediately preceded byprintf: write error: Broken pipe(scripts/tests/deploy-workflow.sh:51). The diff touches neither that test norscripts/semaphore-deploy.sh;make deploy-testalone is 4/4 green at this head, and the next fullmake checkwas 400/400 green. A pre-existing flake, not charged.## What this is / ## Verified / ## Why it mattersrather than the three headingsAGENTS.md §Pull requestsnames (## Summary / ## Evidence / ## Merge Danger). The repository's own merged practice is free-form sections carrying an evidence table — the sibling #38, merged today, is the same shape — and this body carries the before/after recap table, so the practice is the change's shape and the sentence is not being enforced. Named, not charged.Summary
plan_checkbytecode, which the floor rewrites on every run.The recommendation is merge; it does not turn on volume.
Closing as superseded: the same one-line change is already on
main.#66merged at 10:55:03 today — six minutes after this pull request opened — and it carrieschanged_when: falseonrefresh the apt cache before the first install, with the rationale as a comment above the task.What the branch still carries against
main(0b82bf8), which is where the conflict comes from:vikunja/service/roles/vikunja/tasks/main.ymlscripts/__pycache__/plan_check.cpython-313.pycSo a conflict resolution here can only choose between two copies of one comment, and the pull request would then merge nothing.
#66's wording is the one that stays; THE-11's fix is inmainunder THE-116.Branch
hermes/THE-11-apt-cacheis left unmerged, not deleted.Pull request closed