The pinned package is cached outside apt's archive, so a check run can reach it (THE-127) #47
No reviewers
Labels
No labels
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-silo!47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/127-pkg-artifact-path"
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?
Summary
The pinned
.debmoves out of apt's archive, to a directoryautocleandoes not reach.install itisapt: deb: {{ silo_pkg_path }}, and under--checkthe module has to read the file to know which version it would install. Check mode never downloads it, so the rehearsal depends on the artifact the last real run left behind. The Guest's ownapt-daily-upgradeends withautoclean, which deletes a.debin apt's archive that no repository still offers — the pinned package is not offered by any repository — so the daily check passed while the file happened to be cached and failed once the clean ran.autocleanreaches one directory:Dir::Cache::archives,/var/cache/apt/archives(apt-config dumpon the Guest)./var/cache/silois outside it.Evidence
drift-infra-silotask #77,2026-12-03T08:57:03Z, commitae93ce2:silo : install it→fatal: … Unable to install package: E:Could not open file /var/cache/apt/archives/silo_20260916000000.0.0-1PGSTY_amd64.deb - open (2: No such file or directory); recapok=21 changed=1 failed=1 unreachable=0.The file was there at 05:36Z (
make service-checkreadchanged=0 failed=0) and gone after the Guest'sapt-daily-upgraderun, 06:39:51–06:41:16Z (/var/cache/apt/archiveswritten 06:41:15Z; this repository's20auto-upgrades.j2setsAPT::Periodic::AutocleanInterval "7").changed=0with the file present and its sha256 matching, so the three package tasks — directory, download, install — readokonce the artifact lives outside the clean.make checkgreen on this branch.make service-checkon the branch reaches the new task and the download; it stops atDestination /var/cache/silo does not exist, which is the pre-deploy state of a Guest that has never had that directory (check mode cannot create it). The deploy the merge starts creates the directory and writes the package.Merge Danger
Door: two-way — one default path and one directory task; reverting is this diff backwards, and a Guest that keeps the old copy loses nothing because
autocleanremoves it.Blast Radius: the Guest's package cache. One 33 MB file moves from
/var/cache/apt/archivesto/var/cache/silo; nothing restarts and the installed package is unchanged. The directory is not pruned: each version bump leaves one file beside the current one, because a previous pin's artifact is what a rollback installs from.`install it` is `apt: deb: {{ silo_pkg_path }}`, and under `--check` apt has to read the `.deb` to know which version it would install. Check mode never downloads it, so the rehearsal depends on the artifact the last real run left behind — and the Guest's own `apt-daily-upgrade` ends with `autoclean`, which deletes a `.deb` in apt's archive that no repository still offers. This one is not offered by any repository, so the daily check passes only until the clean runs, and then fails at `install it` on a Guest nothing has changed. The pinned package now lives in `/var/cache/silo`, outside `Dir::Cache::archives`, the only directory `autoclean` reaches; the role creates the directory before it downloads.Review started (round 1/5) on
34ed368d13— reading the diff now.olympus/infra-silo#47 · reviewed head
34ed368d13c0acf51df2a98f5829724c5b3c03c1· round 1/5 · verdict: fixRecommendation: fix
Standards
1. BLOCKER —
docs/architecture.md:69-75§The service: the role gains a step, the page that lists its steps does notdocs/architecture.md:69-75still runs 3 (refresh the apt index, installca-certificates) → 4 (download the pinned.deb, check its sha256 before it is written) → 5 (aptthe package), and names no home for the file. The diff adds a task atsilo/service/roles/silo/tasks/main.yml:69-75— the directory the package is cached in — and moves the artifact's path atdefaults/main.yml:20-21, and neither appears.This page's own update trigger is
docs/index.md:9: "The topology changes, or the mapping gains or loses a step." The list is drawn at exactly this granularity — thefile: state: directorytask that creates/opt/silo_datais its own numbered step (architecture.md:75) — so a second directory task is a step the mapping has gained. The repository's practice agrees:7f20544(SL-35) added the journal tasks to this role and inserted a numbered step into this same list in the same commit.Why it blocks rather than advises: the page is this repository's account of what the role does, and the whole subject of this change is where the artifact lives and why it must outlive the clean. A reader of the page learns that the role downloads the
.deband says nothing about the one fact that makes the fix work.Smallest clearing change — one clause in step 4, no renumbering: name the directory and the reason, e.g. "Download the pinned
.deb… into/var/cache/silo, outside apt's own archive, so the dailyautocleancannot remove the file a--checkrun has to read." The SL-35 shape — a numbered step of its own, the rest renumbered — clears it too.Spec
The contract is the PR description, with
THE-127fetched live as its ticket. THE-127's own What to do (items 1–2:changed_when: falseon both refresh tasks) landed as!45/ae93ce2; this change is the half that failure exposed afterwards, and the description states it precisely. Every behavioural claim it makes reproduced (table below).1. ADVISORY —
silo/service/roles/silo/defaults/main.yml:20/tasks/main.yml:69-75: the new home has no prune/var/cache/apt/archiveswas pruned for this artifact —autocleanon the 7-day interval this repository sets (silo/service/roles/unattended_upgrades/templates/20auto-upgrades.j2:7)./var/cache/silois pruned by nothing: each version bump leaves the previous pinned.deb(33 MB, per the description) there permanently, because the filename carries the version.Small at this cadence — one file per bump — but it is a behaviour the change introduces and the description does not mention. Clearing change, if you want one: a cleanup task removing
silo_*.debwhose name is notsilo_pkg_version, or one clause in the comment atdefaults/main.yml:16-19saying the cache is kept unbounded on purpose.What I verified (reproduced at
34ed368)autocleanreaches one directory, apt's archiveapt-config dump:Dir::Cache "var/cache/apt",Dir::Cache::archives "archives/";/usr/lib/apt/apt.systemd.daily:518-528runsapt-get autocleanwith no path argumentapt: deb=must read the fileapt.pyinstall_debbuildsDebPackage(deb_file)and readsdpkg --fieldbefore it compares versions; driven under--check:Unable to install package: E:Could not open file … - open (2: No such file or directory), the description's own stringget_url.pyanswers "file already exists" on a matching sha256 before any request; driven on a cached artifact:ok,changed=0 failed=0make checkgreen on this branchmise exec -- make checkat34ed368→ exit 0service-checkstops atDestination /var/cache/silo does not existon a Guest that never had the directory--checkon a fresh root: the directory task reports changed and creates nothing (check mode cannot), thenget_urlfails with exactly that messageroles/silo/handlers/main.ymlnames only the env template and the journald copy — andapt: deb=skips a same-version install.forgejo/workflows/deploy.ymlruns onpush: mainand the deploy template runsmake prod NONINTERACTIVE=1, whoseservicestep is the real playpr-checks / check (pull_request)success 16:55:19Z;plan / stack-plan-check (pull_request_target)success 16:54:30Z (read live)Could not verify
10.12.0.143project 9 from this session. The mechanism behind #77 is reproduced above (row 2), not the run itself.make service-checkagainst the Guest: it needsSILO_ROOT_PASSWORDand the repo.env, which an Agent must not fetch (docs/agents/workflow.md§3).cleanrow: it is the next audit run's reading, after the merge deploy creates the directory.Named, not charged
AGENTS.md:37-41§Code comments against the four-line comment atdefaults/main.yml:16-19: the rule says to prefer a docs page over a comment, but this file and this role already carry rationale comments of the same shape (lines 2-6, 10-11, 33-37), so the rule's own practice covers it — and the architecture clause above is where the long form belongs.AGENTS.md:75-77§Pull requests namesSL-/SC-/CP-; this body citesTHE-127only. The ticket is real — fetched live,in_review— and!45carries the same reference, so this is the rule lagging the org's Paperclip tracker rather than the body breaching it. Worth a rule edit of its own.tasks/main.yml:77-84) is real and reproduced; it is the state of a Guest that has never had the directory, and the merge deploy creates it before any audit run needs it.Summary
Standards: 1 finding — the blocker is
docs/architecture.md:69-75, the role's step list not gaining the new task, againstdocs/index.md:9's own update trigger and the7f20544precedent.Spec: 1 finding — the advisory is the unpruned cache at
defaults/main.yml:20.The change itself is right, and safe: every mechanism it relies on is reproduced above, including the
changed=0rehearsal it exists to earn, and the merge deploy adds a directory and a file without replacing anything. The recommendation is fix for the one documentation blocker, whose clearing change is a clause in step 4.Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Fix round 1/5 — both findings cleared; nothing disputed. Two commits on the branch, no new branch, no new pull request.
docs/architecture.md:69-75§The service: the role gains a step, the page that lists its steps does notCreate /var/cache/silo, then downloads the pinned.debthere, and carries the reason the file cannot sit in apt's own archive. No renumbering — the first clearing the finding offered.624922adefaults/main.yml:20)defaults/main.ymlnow states that nothing prunes the directory and what it keeps. The PR body's Blast Radius says the same, because the finding's other half was that the description did not mention it.a56bee6Why the comment rather than the prune task. Removing the older artifact is the wrong trade here: a rollback of the pin is a revert of
silo_pkg_versionindefaults/main.yml, and with the previous.debstill in/var/cache/silo,get_urlfinds a matching sha256 andaptinstalls it with no download — the samechanged=0property this change exists to earn, held across a rollback too. The cost is one 33 MB file per version bump, and it is now stated where the path is declared, which is the whole of what the finding asked for. If the round would rather have the prune, that is one task on top of these two commits — say so and I will add it.Verified
The committed tree, not the worktree:
git archive HEAD | tar -x -C <fresh-scratch>ata56bee6, then from the repo root618
ok/okcase lines,rc=0:env-test: every case holds., the two key suites and the deploy suites green,tofu fmt -check -recursiveclean, and the run endsSuccess! The configuration is valid.Docs register, measured over the 8 lines this round adds against
34ed368: 0 lines over 80 characters (widest 78) and 0 orphans under the local next-word test. The step-4 paragraph was re-wrapped withwrap_block.pyat the file's own 80-column fill, so it lands as one artefact rather than a pasted long line followed by a second wrap pass.Left alone
tasks/main.yml:77-84) — unchanged; the merge deploy creates the directory before any audit run needs it, which the report already reproduced and accepted.AGENTS.md:75-77§Pull requests namingSL-/SC-/CP-andAGENTS.md:37-41§Code comments against the four-line comment — both were Named, not charged, and a rule edit is not this round's to make.Waiting — queued behind olympus/infra-media#17 (one review run at a time). The review run resumes on its own at Thu 3 Dec, 18:01 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Review started (round 1/5) on
a56bee6b8f— reading the diff now.olympus/infra-silo#47 · reviewed head
a56bee6b8feaba66f716ae475d6b0a91ed4fd8d7· round 2/5 · verdict: mergeRecommendation: merge
The dispatch numbered this round
1/5. The thread already carries a review at34ed368with around=1/5header, so this is round 2 by the ledger, and the delta isgit diff 34ed368 a56bee6— two files, and both are the clearing changes round 1 asked for.Prior round, re-driven
docs/architecture.md:69-75: the step list did not name the package's new homedocs/architecture.md:70-75: step 4 now opens Create/var/cache/silo, then download the pinned.deb… into it and carries the reason the file cannot sit in apt's archive624922adefaults/main.yml:20)defaults/main.yml:20-21states it, and the description's Blast Radius states ita56bee6Both were proved at the head, not taken from the fix report: the old path is gone from the tree (
grep -rn '/var/cache/apt/archives'→ rc 1, no hits), the clause round 1 prescribed is at the line it named, and all three files I read hash-matcha56bee6(git cat-file -p <head>:<path> | sha256sum).The fixer declined the prune and took the clause round 1 offered, with a reason that holds. A rollback of the pin is a revert of
silo_pkg_version(defaults/main.yml:8);get_url(tasks/main.yml:77-84) verifies the destination's sha256 before it fetches, so the previous pin's artifact still in/var/cache/siloinstalls with no download. Declining a shape a prior round proposed while implementing the property it named is clearing the finding, not dodging it.Standards
Read at the head:
AGENTS.md(§Decisions, §Rules, §Toolchain, §Docs, §Agent skills),docs/index.md,docs/agents/*.md,docs/adr/(10 records), andolympus/workshopdocs/adr/atmain(15 records, read through the forge).1. ADVISORY —
docs/architecture.md:72-73/silo/service/roles/silo/defaults/main.yml:17:autocleanis quoted as if it cleans dailyBoth new passages say the daily upgrade run "ends with
autoclean". This repository setsAPT::Periodic::AutocleanInterval "7"(silo/service/roles/unattended_upgrades/templates/20auto-upgrades.j2:7), and/usr/lib/apt/apt.systemd.daily:519-521runsapt-get autocleanonly whencheck_stamp $AUTOCLEAN_STAMP $AutocleanIntervalsays the stamp is due — so the clean happens at most once every seven days, on a run that itself happens daily. The distinction bears on the one number a reader takes from this page: how long a pinned.debcan sit in apt's archive before it is taken.Nothing turns on it for the fix — a weekly clean removes the file as a daily one would, which is why this is an advisory and not a blocker. The wording is not the author's either: round 1's own prescribed clause said "the daily
autoclean", so the author followed the instruction they were given. One-clause clearing change, if you want it: the upgrade run'sautoclean, which runs at most everyAutocleanInterval….Spec
Contract: the PR description, which states this half of
THE-127precisely.THE-127was read live this round (statusin_review, no documents); its own What to do landed as!45/ae93ce2, and this change is the artefact-reachability half that failure exposed.No finding. The delta adds no behaviour — one docs clause and one comment clause, both restating a mechanism round 1 reproduced — and the two files it touches are exactly the two the findings named: no scope creep. Every spec claim the description makes still holds at
a56bee6, and its Not run line (no apply) is honest, because nothing here needs one.What I verified (reproduced at
a56bee6)make checkgreen on this headmise exec -- make checkin a worktree ata56bee6→rc=0, 618okcase lines,Success! The configuration is valid.— the fixer's 618 is the same numbergrep -rn '/var/cache/apt/archives'over the tracked tree → rc 1, zero hitsautocleanreaches apt's own archive and nothing else20auto-upgrades.j2:7sets the interval;apt.systemd.daily:519-521runsapt-get autocleanwith no path argumenttasks/main.yml:69-75(directory) →:77-84(download,checksum: sha256:) →:86-90(apt: deb:)git diff 34ed368 a56bee6→docs/architecture.md(+6/−2) anddefaults/main.yml(+2); the package path, the directory task and the play are byte-identical to the revision round 1 revieweda56bee6:pr-checks / checkandplan / stack-plan-checkbothsuccessata56bee6(runs 95, 94)docs/architecture.md:74); new comment lines 77 and 55Could not verify
--checkfailure itself (Destination /var/cache/silo does not exist,Unable to install package: E:Could not open file …): round 1 drove it, this round did not re-drive it — the delta is prose and the tasks it describes are byte-identical to the revision where round 1 reproduced it. Carried, and labelled as carried.make service-checkagainst the Guest: it needsSILO_ROOT_PASSWORDand the repo.env, which an Agent must not fetch (docs/agents/workflow.md§3).10.12.0.143project 9 from this session. The mechanism is the one re-read above, not the run.cleanrow: it is the next audit run's reading, after the merge deploy creates the directory.Named, not charged
AGENTS.md:77-82§Pull requests namesSL-/SC-/CP-; this body citesTHE-127only. The ticket is real and read live, and!45carries the same reference — the rule lags the org's Paperclip tracker. Round 1 named it; it is a rule edit, not this change's to make.AGENTS.md:39-41§Code comments prefers a docs page over a comment, and the block atdefaults/main.yml:16-21is now six lines whiledocs/architecture.md:70-75carries the same rationale. Round 1 named the rule and then offered this very clause as a clearing change, and the file already carried rationale comments of the same shape (:2-6,:10-11,:35-39), so the rule's own practice covers it. Charging it now would charge round 1's instruction.tasks/main.yml:86-90) is real and unchanged; the merge deploy creates the directory before the next audit run needs it.Summary
Standards: 1 finding — the advisory is the
autocleancadence atdocs/architecture.md:72-73anddefaults/main.yml:17, against20auto-upgrades.j2:7.Spec: 0 findings.
Both of round 1's findings are cleared at this head and nothing new blocks: the behaviour is the one round 1 reproduced in full, the documentation blocker is closed with the clause round 1 asked for, and the unpruned cache is now stated where the path is declared and in the description. The recommendation is merge; the one advisory is a wording precision that does not move the verdict.