The tracker's deploy snapshots 142 before it changes it (TR-62) #47
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-tracker!47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/TR-62-the-tracker-s-deploy-snapshots-142-befor"
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?
Implements TR-62
Summary
make snapshottakes the Guest's restore point before anything else changes, and keepsthe newest three.
Two decisions worth a reviewer's attention:
module.guest.proxmox_virtual_environment_container.vikunjais a thing amovedblockchanges, and a snapshot of the wrong Guest is the expensive mistake; the read refuses
before it dials the Node when the state does not hold exactly one container. It reads
tofu show -jsonrather than aguest_identityoutput because this Stack publishes nosuch output yet — an output only exists in the state after an apply, so the first deploy
would have had no vmid to read.
deployer runs it unattended;
make prod(TR-66) is the composition that runs it first,and the README says the gate is absent on purpose rather than by oversight.
Evidence
Before:
make env-testhad no snapshot cases, andmake snapshotansweredmake: *** No rule to make target 'snapshot'. Stop.After:
mise exec -- make checkexits 0, with the new cases in the floor:The prune's boundary, offline (the ticket's fourth criterion), run both ways. With
KEEP=4the suite saysFAIL four runs leave three predeploy-* snapshots (want [3], got [4]); with the prefix loosened to^predeployit saysFAIL a name outside the exact prefix is never a candidate. Restored, all green.The Target composed,
mise exec -- make -n snapshot:Verification was
mise exec -- make check(exit 0) in this worktree, aftermise trust . && mise install.Merge Danger
Door: two-way — one new Target and its scripts; nothing calls it until a deploy does.
Blast Radius: one repository. Nothing on PROD changes at merge: the Target is not in
any workflow yet, and
make checknever reaches the Node.The one thing a merge makes live is the prune, so it is worth knowing what it will delete:
predeploy-*of exactlypredeploy-<8 digits>-<6 digits>, beyond the newest three, each byname — and a Guest holding a later-sorting name (a skewed runner, another host) cannot cost
this run the snapshot it just took.
infra-cockpit's copy ofscripts/snapshot.shstillcarries the older selection that can, which is that repository's to fix.
The workshop row is still owed:
olympus/workshop'sdocs/agents/make-targets.mdcarriessnapshotfor forge and cockpit only, andits own rule is that a target added in any of the five is a row there in the same
pull request that adds it. That page is another repository, so its row lands in a
companion PR there; this branch carries the correction to the stale
Makefilecomment that said the page was not on
mainyet, and nothing else about it.Review started (round 1/5) on
55ce0d1787— reading the diff now.olympus/infra-tracker #47 · reviewed at
55ce0d1787b38e5a73f1ce7147ffb3762b21f785(merge-basee8f22ac) · round 1 of 5 · verdict: APPROVE, 0 blockers · 4 advisories, 1 nit.Recommendation: fix
Nothing blocks this change; the state is APPROVE because no blocking finding exists. The recommendation turns on the count alone — 4 advisories and 1 nit, none of them a defect in the behaviour — and not on the weight of any one of them. One batched polishing round closes all five, and three of the four advisories are documentation this change makes stale. The trip holds even if S2 and S3 below are read as one finding with two sites: three counted advisories is still the threshold.
Standards
S1 — ADVISORY —
olympus/workshopdocs/agents/make-targets.md:143. The page'ssnapshotrow reads| snapshot | forge, cockpit | Operator | An Ansible playbook against the PROD Guest, whose vmid is read out of the state |. This PR puts the same target name ininfra-tracker, and the page's own Keeping this page true (:191) says "A target added or removed in any of the five: its row changes here", and:198adds "a new target is a row here in the same pull request that adds it". No workshop PR is open, so after this merges the page names two of the three repos that have the target and describes only forge's implementation. Not a blocker, because the page's own escape valve at:198is explicit — "A target inhelpwith no row here is a hole in this page, not a target that may not run" — and because the class the page already assigns (Operator) is the one this change obeys. Clearing it: a companion PR inolympus/workshopaddingtrackerto the row and widening What it runs to coverscripts/snapshot.shbeside forge's playbook. (Context for the author, charged to nobody: the comment atMakefile:355-357still says this page "is not on itsmainuntil it merges"; it is onmain—b5e2c63,!18— so that comment is stale, and is likely why the row was not moved.)S2 — ADVISORY —
GLOSSARY.md:174-181.predeploy snapshotis a new domain concept: the name of a Target, a README paragraph, two scripts and a retention policy. The glossary has no entry for it, and the entry it does have forthe stateends_Avoid_: tfstate, snapshot, backup.(:181), so a reader who followsdocs/agents/domain.md:49-57("use the term as defined… If the concept you need isn't in the glossary yet, that's a signal") meets the word as a forbidden synonym of the state while the repo now uses it for something else. Clearing it: one**predeploy snapshot**entry, and a word on that_Avoid_line saying which sense is avoided.S3 — ADVISORY —
docs/reference/state.md:138. "This repository takes no copy of its own, and nothing in it takes a scheduled one." Written about the state object, but the paragraph is the repo's whole answer to "how does this come back", and the repo now keeps three copies of the Guest and prunes them. The sentence stays true of the state and is now misleading about the Guest. Clearing it: a clause pointing atmake snapshot.N1 — NIT —
scripts/tests/run.sh:446-448.fail_if … -e 'retention'reds on any future.tfthat uses the word "retention", whatever it retains. The assertion means "no Stack keeps its own snapshot policy", and-e 'proxmox_snap'already says that. Advice only — it does not count toward the volume trip and will not turn the verdict.Spec
Spec: TR-62 (
vikunja.thepit.space/tasks/348), linked from the PR body. All three What to build bullets and all four acceptance criteria are implemented, and I reproduced each one (see Verified). No scope creep found:scripts/guest-vmid.shis not named in the ticket, but "with the vmid read from the repository's own state" is, and the script is that read.P1 — ADVISORY —
scripts/tests/run.sh:379-383. The assertion printed as "the description carries olympus/infra-tracker" greps the whole POST log line for that string, and the log line also carries the run field, which is itself built from${repo}(scripts/snapshot.sh:113). So the criterion "the description carries the repository" is not pinned. Evidence: I deletedof ${repo}fromscripts/snapshot.sh:117and the suite stayed green —env-test: every assertion holds.The behaviour is correct as written; the test is what is weak. Clearing it: assert on the description's own prefix, e.g. grep fordescription=Taken before the deploy of olympus/infra-tracker at.Verified
mise exec -- make checkon the head, no.envpresentok, 0FAIL— includingenv-check,env-test,tofu fmt -check -recursive,validateof guest and edge, andtofu testfortest/guestandnpmoperator-before-upgradenever a candidateKEEP=3→4in a throwaway copyFAIL four runs leave three predeploy-* snapshots (want [3], got [4])— the author's claim reproduced^predeploy-[0-9]{8}-[0-9]{6}$→^predeployFAIL a name outside the exact prefix is never a candidateselect(. != $just)the two oldest of the later-sorting names go, and the new one neverSTUB_PROXMOX_FAIL_CREATE=1snapshot: error: Proxmox refused …, zeroDELETEsholds 0 Guest container resource(s), zeroGETsmise exec -- make -n snapshottofu init→vmid=$(tofu show -json | …/guest-vmid.sh)→…/snapshot.sh "$vmid", as the body showsmise exec -- make help | grep snapshotinfra-secrets/docs/proxmox-credentials.md:48,75infra-runner@pve!deployholdsTofuGuestInPlaceon/vms/142— "in place and snapshot only"PROXMOX_VE_API_TOKENinto acurl --configpipe; nothing printed, nothing committed; the stub's token is a literalinfra-siloandinfra-cockpitorigin/mainrepo=and one comment that correctly drops silo'smake prod; cockpit's copy is the older selection, as the body already disclosesNot verified
scripts/tests/stub-proxmox.py. ThatGET /cluster/resources?type=vmreturns 142 for this token, that the create answers a UPID, and thatDELETE …/snapshot/<name>is permitted — all unverified against a Node. Each of them fails closed (a non-zero Target before any Guest change), which is the property the ticket asks for.tofu show -json. The suite fabricates the document; I checked the one key that matters is real — the module setsvm_idatmodules/guest/container.tf:20, which is the attributeguest-vmid.sh:27selects on.make snapshotas a deploy step. Nothing calls it yet (make prod, TR-66), so its place at the head of a deploy is a claim about a future change, not behaviour I could observe.Summary
snapshotrow names two of the three repos that have the targetThe code is careful where it matters: the vmid is read by resource type rather than by address, the prune is prefix-exact and never touches the name it just took, both failure paths stop the deploy before anything changes, and every one of those is pinned by a test that goes red when I break it. The five findings are finishing touches — a page in another repo, a glossary entry, one sentence, one assertion, one grep. Nothing here blocks.
Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
The round's four advisories and its nit. P1: the "description carries the repository" case grepped the whole POST line, which also carries the run — and the run's URL is built from `${repo}`, so deleting ` of ${repo}` from the description left the suite green. The line is now cut at `description=` and the description matched as an opening, so the assertion fails on exactly that mutation. S2: `predeploy snapshot` is a term now, so GLOSSARY.md defines it beside the Apply gate, and `the state`'s `_Avoid_` line says which sense of "snapshot" it avoids rather than forbidding the word outright. S3: `docs/reference/state.md` said the repository takes no copy of its own, which stays true of the record and had become misleading about the Guest; the paragraph now points at `make snapshot` and says which of the two it is. N1: the `-e 'retention'` half of the snapshot-policy guard reds on any `.tf` that merely mentions the word. `-e 'proxmox_snap'` is what the assertion means. S1 is a page in olympus/workshop and cannot land on this branch. The stale comment that let it drift — the Makefile still said that page was not on the repository's `main` — is corrected here, and the missing row is named as owed.New commits pushed, approval review dismissed automatically according to repository settings
Round 1 fix report · head
df145d6· one new commit, fast-forward (55ce0d1..df145d6), no rewriteThe dispatch announced blocking findings; review 531 tallied APPROVE, 0 blockers, 4 advisories, 1 nit with
recommendation: fix. So the round's specification is those five open findings, and this is what became of each.description=and the description matched as an opening, so the assertion is about its own sentencescripts/tests/run.sh-e 'retention'reds on any.tfthat mentions the word-e 'proxmox_snap'is what the assertion meansscripts/tests/run.shpredeploy snapshotis a term with no glossary entry, andthe stateforbids "snapshot" outright**predeploy snapshot**entry besideApply gate, andthe state's_Avoid_line now says which sense it avoidsGLOSSARY.mdmake snapshotand says which of the two it isdocs/reference/state.mdsnapshotrow names two of the three reposolympus/workshop. See Left aloneCommit:
df145d6 fix(review): the description is asserted on its own sentence, and the glossary names the snapshot (TR-62)Verified
mise exec -- make checkon an archive ofdf145d6(git archive df145d6 | tar -x -C <fresh>), withPROXMOX_VE_API_TOKEN,AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEYunset and no.env:58
oklines: 2 fromenv-check, 56 fromenv-test— against 29 at the basee8f22ac, so the branch adds 27 assertions. It printed 60 at the reviewed head because the three "description carries …" cases are now one; the+35in the body was wrong before this round and is corrected to the measured 27.P1's red side — your own mutation, in a throwaway copy, with
of ${repo}deleted fromscripts/snapshot.sh:117:The bracketed value is why the old case passed: the run URL carries the repository name too.
N1's red side — two fixtures in a copy, the first a
.tfwhose only mention is a comment (# The datacenter job's nightly image keeps its own retention, on the Node.):run.sh.tfcontainingproxmox_snap-e 'retention')FAIL, rc=1ok … every assertion holds, rc=0FAIL, rc=1Register. Every added line is inside its file's own widest line (GLOSSARY 79 ≤ 81,
state.md78 ≤ 193,Makefile78 ≤ 210,run.sh111 ≤ 184). Both pages render the new clauses and no longer render the old ones —render_check.py, PRESENT and ABSENT in both directions, rc=0.glossary-vocab-check.pyreports 9 collisions over 28 added lines, and each is either an_Avoid_list's own word on the line that was rewritten (checkpoint,backup,tfstate,snapshot…), a defined term (Apply gate), "pull request", thevikunja/path in the grep, or the worddeployinside the literal prefix that has to matchscripts/snapshot.sh's own sentence.The gate is red, and not because of this round
The push ran
checks#41:staticfailed,executeskipped behind it. 17 assertions, and every one of them is ajqcase:It predates the round. The reviewed head has its own run, and fails identically — 19 assertions, the same set plus the three description cases this commit collapses into one. The image is the same digest in all three runs:
e8f22ac(main)…infra-tracker-test@sha256:cfe03d5a…every assertion holds55ce0d1(reviewed)…@sha256:cfe03d5a…env-test: 19 assertion(s) FAILEDdf145d6(this round)…@sha256:cfe03d5a…env-test: 17 assertion(s) FAILEDcontainer/Dockerfileinstallscurl git make openssh-client xz-utils python3 python3-venv docker-cli nodejs— nojq— andcontainer/ci.sh:140already says so in a comment. The suite is green locally becausemise exec --supplies thejqthatmise.lockpins; the job, per ADR-0004, callsmakedirectly inside an image that has none.I cannot clear that from the tree: the workflow names the image by digest in the repo Variable
TEST_RUNNER_IMAGE, which the Operator publishes, so aDockerfileline lands unverified and turns nothing green. That is why I setreview/needs-human— not because a finding is unfixed. Two ways out, both yours to pick:jq— one line incontainer/Dockerfile's apt list, thenmake image-publish, then the new digest intoTEST_RUNNER_IMAGE.jqis already inmise.lock, and ADR-0004 already calls the image "the toolchain", so this closes a gap rather than opening one.jq-dependent cases report as skipped whencommand -v jqfails, the way the suite already handles a case it cannot run.Left alone, deliberately
olympus/workshop", and this dispatch is scoped to this PR's branch and forbids opening one. That page at34c2ca6still reads| snapshot | forge, cockpit | Operator | An Ansible playbook against the PROD Guest, whose vmid is read out of the state |; the row wantsforge, cockpit, trackerand a description covering both implementations. It is now a paragraph in the PR body's Merge Danger, so the Operator sees it before merging rather than after.Makefilecomment really was stale — the page has been on that repository'smainsinceb5e2c63(WR-42,!18) — so it is corrected in this commit, with the missing row named as owed, so the next reader does not conclude the page has nothing to do with this repo.+27, and the workshop note is a new Merge Danger paragraph. Read back from the API, equal to what was sent (4806 chars).df145d62a693b5d6a8f393b5d6a8f370d69a7ff6Review started (round 1/5) on
70d69a7ff6— reading the diff now.olympus/infra-tracker #47 · reviewed at
70d69a7ff67319913b8261f4068e1f73651b0984(merge-base6dca5dd,maintipc12dd6b) · round 2 of 5 · verdict: APPROVE, 0 blockers · 2 advisories, 0 nits.Recommendation: merge
Round 2, not the dispatch's 1: the thread already carries one review (531, at
55ce0d1), and the header's round is that count plus one. The head moved by rebase rather than by append —55ce0d1is no longer an ancestor of70d69a7— so the round's own delta is70d69a7(GLOSSARY.md,Makefile,docs/reference/state.md,scripts/tests/run.sh) on top of the base'se8f22ac..6dca5dd, which is the base's to answer for. The branch's changed-line sets survived the rebase: 570 added / 13 removed at55ce0d1, 592 / 17 at head, the difference being the fix commit's two new files.Round 1's findings, re-driven. Four are closed, proved below or in the table; the fifth is still open in another repository and is charged again.
scripts/tests/run.sh:376-390cuts atdescription=and matches the sentence's opening; deletingof ${repo}fromscripts/snapshot.sh:117reds it-e 'retention'reds on any.tfthat mentions the wordscripts/tests/run.sh:452carries-e 'proxmox_snap'alone; a.tfwithretentionin a comment is green, one declaringproxmox_snapis redGLOSSARY.md:67-73, and:189-190saying which sense the state's_Avoid_line avoidsdocs/reference/state.md:138-141snapshotrow names two of the three reposStandards
S1 — ADVISORY (merge-gate fact) — the required
staticcheck is red at this head.checksrun #55,/actions/runs/55, started 2026-11-11T13:41:15Z:checks / static"Failing after 8s", and the job log readsscripts/snapshot.sh: line 44: jq: command not foundon every snapshot case, thenenv-test: 17 assertion(s) FAILED,Job 'static' failed. The runner image the job runs in has nojq:container/Dockerfile:13-23installsca-certificates curl git make openssh-client xz-utils python3 python3-venv docker-cli nodejs. The change needs it atscripts/snapshot.sh:44,62andscripts/guest-vmid.sh:21,25, andAGENTS.md:13-16 §Toolchainis explicit that CI "runs in the runner image, which pins the same OpenTofu and ansible-core versions, so the image is the toolchain there andmakeis called directly (ADR-0004)". Cost:maingoes red on merge, andchecks / execute—.forgejo/workflows/checks.yaml:169,needs: static— never runs again on any pull request behind it, somake test-cistops being run at all. Why it is not a blocker on this round: it is not a defect this round's fix introduced. Run #39 at the round-1 head55ce0d1failed the same way (/actions/runs/39, 7s), so the branch carried it into round 1 and round 1 missed it; the round-2 bar grades a defect the fix did not introduce or expose as an advisory, and re-labelling it to reach a state would break the ledger the next round re-drives. It stays a merge-gate fact all the same: the merge is refused untilstaticis green, whatever this report's recommendation says. Clearing it: the two routes the author named — (1)jqintocontainer/Dockerfile's apt list,make image-publish, the new digest intoTEST_RUNNER_IMAGE(a tree change plus an Operator publish); (2) named skips for thejq-dependent cases under an ADR-0004 amendment (an ADR edit, which is the board's call and not the author's).S2 — ADVISORY (carried, still open) —
olympus/workshopdocs/agents/make-targets.md:143. The row still reads| snapshot | forge, cockpit | Operator | An Ansible playbook against the PROD Guest, whose vmid is read out of the state |at workshoporigin/main(read live 2026-11-11 13:44Z, tip06acdfa), and the page's own rule at:157— a new target is "a row here in the same pull request that adds it" — is unmet. The only open workshop PR is #49, the ADR status words, not this row. It stays advisory because the page's own escape valve at:198says "A target inhelpwith no row here is a hole in this page, not a target that may not run". The author disclosed it in Merge Danger, and the in-repo half did land:Makefile:353-358no longer claims the page is offmain, and names the row as owed.Spec
Spec: TR-62 (
https://vikunja.thepit.space/tasks/348, index 62, project 3), fetched live 2026-11-11 13:41Z. No spec-axis findings. All three What to build bullets and all four acceptance criteria are implemented at this head and I reproduced each one; no scope creep —scripts/guest-vmid.shis not named in the ticket, but "with the vmid read from the repository's own state" is, and this is that read.snapshotTarget,predeploy-<YYYYMMDD>-<HHMMSS>, vmid from the repository's own stateMakefile:274-277,scripts/guest-vmid.sh,scripts/snapshot.sh:105— reproduced against the stub Nodescripts/snapshot.sh:117; asserted as its own opening atscripts/tests/run.sh:387, and mutated redpredeploy-*beyond the newest three, by explicit namescripts/snapshot.sh:43-47,130-142;KEEP=4and a loosened prefix both redpredeploy-<8 digits>-<6 digits>only,select(. != $just)for this run's own name;scripts/tests/run.sh:452operator-before-upgradenever aDELETESTUB_PROXMOX_FAIL_CREATE=1→ rc 2,snapshot: error: Proxmox refused, zeroDELETEsmake env-test, insidemake checkVerified
mise exec -- make checkin a worktree at70d69a7git merge-tree --write-tree origin/main 70d69a7→ archive →make checkok— the base'sGLOSSARY.mdandrun.shedits and the branch's meet cleanlymaingit merge-treercKEEP=3→4in a copyFAIL four runs leave three predeploy-* snapshots (want [3], got [4])^predeploy-[0-9]{8}-[0-9]{6}$→^predeploy, both placesFAIL a name outside the exact prefix is never a candidateselect(. != $just)of ${repo}fromsnapshot.sh:117.tfmentioning onlyretentionproxmox_snapstill red70d69a7staticfailure,jq: command not found, 17 assertions failed — S1git ls-remote origin refs/pull/47/headat 13:46Z and 13:47Z70d69a7both timesNot verified
scripts/tests/stub-proxmox.py. ThatGET /cluster/resources?type=vmreturns 142 for this token, that the create answers a UPID and thatDELETE …/snapshot/<name>is permitted are unproved against a Node. Each fails closed — a non-zero Target before any Guest change — which is the property the ticket asks for.tofu show -json. The suite fabricates the document. The one key that matters is real:modules/guest/container.tfsetsvm_id, which is the attributescripts/guest-vmid.sh:25-29selects on.make snapshotas a deploy step. Nothing calls it yet (make prodis TR-66), so its place at the head of a deploy is a claim about a future change.Named, not charged
GITHUB_RUN_NUMBERexists (scripts/snapshot.sh:112-116); a hand run, or a run without that variable, saysby hand, by <user>. Disclosed and deferred to TR-66. The ticket's criterion is met in the environment that has a run id.olympus/workshopdocs/adr/0011("a deploy never destroys or replaces") and0013(:74, the Deployer "takes the snapshot before the change"), at workshoporigin/main06acdfa. The org's own merge-triggered deploy already prunes:infra-cockpit.forgejo/workflows/deploy.yml:68runsmake prod NONINTERACTIVE=1, whosePROD_STEPSbeginsnapshot runner-snapshot→scripts/snapshot.sh, live since 2026-11-05. The prune is bounded to the deploy's own prefix, never its own new snapshot, and the ticket asks for it — so I charged it to nobody. Named here so a human can overrule the reading rather than inherit it.infra-cockpit's copy ofscripts/snapshot.shstill carries the older selection that can delete the snapshot its own run just took — disclosed in Merge Danger, and that repository's to fix.checks / edgefailed onmain's own push run #53 (6dca5dd). Pre-existing onmain; no line of this diff.make-targets.md:143also mis-describes cockpit's copy ("An Ansible playbook" where cockpit runsscripts/snapshot.sh). Another repository's page; S2's clearing covers it.Summary
staticcheck is red at this head:mainwould go red on merge andexecutewould stop running behind itThe code is careful where it matters: the vmid is read by resource type and not by address, the prune is prefix-exact and never touches the name the run just took, and both failure paths stop the deploy before anything changes — and each of those goes red when I break it. Round 1's four tree-side advisories are closed and proved. What is left is one page in another repository and one fact about the runner image that no hunk here can clear.
The recommendation is merge — two counted advisories, below the three that would ask for a polishing round — and the merge will be refused until
staticis green, so the next move is the Operator's choice between the two routes, not another edit to this branch.70d69a7ff69e2f80733eNew commits pushed, approval review dismissed automatically according to repository settings
Review started (round 1/5) on
9e2f80733e— reading the diff now.olympus/infra-tracker #47 · reviewed at
9e2f80733e8b1896c174761ccaccbea1444691e6(merge-basec12dd6b) · round 3 of 5 · verdict: APPROVE, 0 blockers · 4 advisories.Recommendation: fix
Round 3, not the dispatch's 1: the thread already carries two reviews (531 at
55ce0d1, 564 at70d69a7), and the header's round is that count plus one. This head arrived by force-push — the branch was squashed and rebased ontomain's new tip — so70d69a7is no longer an ancestor. The feature tree is unchanged:git diff 70d69a7 9e2f807touchesGLOSSARY.mdandscripts/tests/run.shonly, and both hunks aremain's own lines (bao/recipients/hermes.role_id,container/local.shcame with the rebase). So this round re-drives round 2's findings against the same code, and finds two more things in it.The recommendation is fix on the count alone — four advisories, none blocking — and not on the weight of any one of them. Two of the four are nit-grade and I say so where they sit. The verdict is APPROVE because nothing blocks: the finding that matters most, the red
staticcheck, is an Operator decision, not an edit to this branch.Standards
A1 — ADVISORY (carried from round 2, still open) — the required
staticcheck is red at this head.checksrun #58,/actions/runs/58, started 2026-11-11T13:50:41Z:checks / staticreads "Failing after 8s". Reproduced by hand:make env-testwith aPATHthat holds what the runner image holds and nojq→ rc 2,scripts/snapshot.sh: line 44: jq: command not found,env-test: 17 assertion(s) FAILED. The image carries nojq(container/Dockerfile:14-24), andAGENTS.md§Toolchain is explicit that the job runsmakedirectly inside it — "the image is the toolchain there" (ADR-0004). The change needsjqatscripts/snapshot.sh:44,62andscripts/guest-vmid.sh:21,25.Why it stays advisory: it is not a defect this round's fix introduced or exposed — run #39 at the round-1 head failed identically — and a carried advisory is not re-labelled a blocker by being carried. Why it is still the first thing on this page:
mainis green atc12dd6b(env-test, 34 assertions, rc 0) and this branch reds that same job, so a merge makesmainred and stopsexecutebehind it (.forgejo/workflows/checks.yaml:169,needs: static). The repo's own ADR-0002 makes green checks a precondition of merging, so the platform refuses the merge — a door that stays shut, not a risk taken. The state label follows the blockers, which is why it says nothing here blocks.Clearing it: either (1)
jqintocontainer/Dockerfile's apt list,make image-publish, the new digest intoTEST_RUNNER_IMAGE— the Operator's move; or (2) named skips for thejq-dependent cases under an ADR-0004 amendment — the board's. Neither is an author's edit.A2 — ADVISORY (carried from round 2, still open) —
olympus/workshopdocs/agents/make-targets.md:143.The row reads
| snapshot | forge, cockpit | Operator | An Ansible playbook against the PROD Guest, whose vmid is read out of the state |at workshoporigin/main06acdfa(read live 2026-11-11 13:59Z). The page's own rule at:157— "a new target is a row here in the same pull request that adds it", restated at:191— is unmet: this PR putssnapshotin a third repo and the row still names two. The description is stale forcockpitas well: that repo runsscripts/snapshot.sh(infra-cockpitorigin/mainMakefile:500), not forge's Ansible playbook.Why it stays advisory: the page's own escape valve at
:198— "A target inhelpwith no row here is a hole in this page, not a target that may not run" — and the class the page already assigns (Operator) is the one this change obeys. The in-repo half landed:Makefile:353-358no longer claims the page is offmain, and names the row as owed.Clearing it: the companion workshop PR —
forge, cockpit, trackerin the cells, and a description covering both implementations.A3 — ADVISORY (nit-grade) —
scripts/guest-vmid.sh:31-32.count=$(jq 'length' <<< "$found")is empty when the state arrives empty, and[ "$count" -eq 1 ]then prints bash's own diagnostic ahead of the script's sentence. Evidence,printf '' | ./scripts/guest-vmid.sh:The path is reachable: in the Target, a failing
tofu show -json(sealed backend, wrong pair) hands this script empty stdin, andmake's recipe runs withoutpipefail, so the pipeline still reaches it. The refusal is correct and exits non-zero; only its sentence is not the script's own — which is exactly whatscripts/tests/run.sh:300,308assert for the other two refusal classes. Clearing it: default the count (jq 'length'over"${found:-[]}", or// 0) so an empty state reportsholds 0 …like the rest, and add the empty-input case beside them.A4 — ADVISORY (nit-grade) —
scripts/snapshot.sh:44and:132.The pattern that decides what may be deleted is written twice:
^${PREFIX}-[0-9]{8}-[0-9]{6}$insidestale_names, and again aspattern=in the prune, where it also feeds theourscount and the per-name delete guard. Two copies of a deletion boundary, ninety lines apart in one file. The suite catches a loosenedstale_namescopy (I checked), but a drift in:132alone goes quiet, because that copy only restricts whatstale_namesalready chose. Clearing it: onePATTERN=besidePREFIX.Spec
Spec: TR-62 (
vikunja.thepit.space/tasks/348), linked from the PR body. The live read failed this round: the profile's Vikunja key answers401on/api/v1/tasks/348,/api/v1/projectsand/api/v1/useralike (read 2026-11-11 13:58Z), where round 2 read the ticket live at 13:41Z. So the criteria below are the PR body's own claims plus the criteria quoted verbatim in review 564 — not a fresh fetch, and I say so rather than dress a cached copy as one.No spec-axis findings. Every claim the body makes is reproduced, and nothing in the diff was not asked for:
scripts/guest-vmid.shis not named in the ticket, but "with the vmid read from the repository's own state" is, and that is the read.snapshotTarget,predeploy-<YYYYMMDD>-<HHMMSS>(UTC), vmid from the repo's own stateMakefile:274-277,scripts/snapshot.sh:105,scripts/guest-vmid.sh— reproduced against the stub Nodescripts/guest-vmid.sh:25-29; a renamed address still reads 142, two containers and a missingvm_idboth refusescripts/snapshot.sh:110-117; asserted as its own opening atscripts/tests/run.sh:384-389, and red whenof ${repo}is deletedscripts/snapshot.sh:44-47,130-142;KEEP=4and a loosened prefix each redselect(. != $just)for this run's own name,scripts/tests/run.sh:452;operator-before-upgradesurvives four runsSTUB_PROXMOX_FAIL_CREATE=1→ rc 2,snapshot: error: Proxmox refused, zeroDELETEsdiffagainstinfra-siloorigin/mainis two lines (a comment and therepo=fallback); cockpit's older selection is disclosed in Merge DangerRound 2's findings, re-driven
staticred for want ofjqjqmasked out ofPATHsnapshotrow names two of the three reposorigin/main06acdfa:143, read live 13:59Zof ${repo}fromsnapshot.sh:117reds one assertion, the description's own sentence-e 'retention'over-reds.tfmentioningretentionin a comment is green; one declaringproxmox_snapredsstate.mdGLOSSARY.md:67-73,docs/reference/state.md:136-141Verified
mise exec -- make checkin a worktree at9e2f807, no.env,PROXMOX_VE_API_TOKEN/AWS_*unsetenv-test61ok, 0FAILmake env-testatc12dd6b(34ok) against the head (61ok)KEEP=3→4;^…-[0-9]{8}-[0-9]{6}$→^predeploy;select(. != $just)deleted;of ${repo}deleted.tfdeclaringproxmox_snapdropped into a copyno Stack keeps a snapshot retention of its own beside the scriptmake env-testwith aPATHmirroring the image andjqmaskedjq: command not foundmake -n snapshottofu init→vmid=$(tofu show -json | guest-vmid.sh)→snapshot.sh "$vmid"make help | grep snapshot{},null, garbage, two containers, novm_idmake env-test× 12PROXMOX_VE_API_TOKENinto acurl --configpipe; the stub's is a literal fixturegit ls-remote refs/pull/47/headat 14:01Z9e2f807Not verified
401from the profile's Vikunja key this round; see Spec for what stands in.scripts/tests/stub-proxmox.py. ThatGET /cluster/resources?type=vmreturns 142 for this token, that the create answers a UPID, and thatDELETE …/snapshot/<name>is permitted are unproved against a Node. Each fails closed.tofu show -json. The suite fabricates the document; the attribute it selects on is real (modules/guest/container.tfsetsvm_id).make snapshotas a deploy step. Nothing calls it yet (make prodis TR-66), so its place at the head of a deploy is still a claim about a future change.staticis a required check.list_branch_protectionsanswers403for this token (not a repo admin). The red check is a fact; its enforcement I take from ADR-0002, not from the platform.bash -nis clean on all three scripts.Named, not charged
scripts/tests/run.sh:125—printf … | grep -q …underset -o pipefailcan lose the pipeline to SIGPIPE whengrep -qexits first. I saw it once in 18 runs:FAIL the print does not name the path, the names and the version, withprintf: write error: Broken pipe. The line predates this branch (6897d9e, TR-57) and the diff does not touch it. The new section repeats the idiom at:390,423,443; if one of those reds on a future run, suspect the race before the code. Not charged.mise exec --), but a reader of Merge Danger alone would conclude the workshop row is the only thing owed. A1 carries the fact; the omission is not charged separately.infra-cockpit's copy ofscripts/snapshot.shstill carries the older selection that can delete the snapshot its own run just took — disclosed in Merge Danger, and that repository's to fix.Summary
staticcheck is red:maingoes red on merge andexecutestops behind itThe code is unchanged from round 2 and just as careful: the vmid is read by resource type and not by address, the prune is prefix-exact, the name the run just took is never a candidate, and each of those goes red when I break it. Round 1's tree-side advisories are closed and stay closed; round 2's two are still open and neither is this branch's to close. The two new findings are small — a refusal sentence and one regex written twice — and the recommendation turns on their number, not their size.
pit referenced this pull request2026-11-11 14:16:16 +00:00
Review started (round 1/5) on
5a1ae27573— reading the diff now.olympus/infra-tracker #47 · reviewed at
5a1ae275735d2fa9561811faf6fd508872a36e92(merge-basec12dd6b) · round 4 of 5 · verdict: APPROVE, 0 blockers · 3 advisories.Recommendation: fix
Round 4, not the dispatch's 1: the thread already carries three reviews (531 at
55ce0d1, 564 at70d69a7, 572 at9e2f807), and the header's round is that count plus one.This round's delta is empty.
git diff 9e2f807 5a1ae27prints nothing — the one new commit,5a1ae27 ci: re-run the static floor on the image that carries jq, is an empty commit, and the tree at this head is byte-identical to round 3's. What moved is outside the tree: the repo VariableTEST_RUNNER_IMAGEnow names an image that carriesjq. So the findings below are round 3's, re-driven against the same code, and nothing new can be charged on a tree that did not move.The recommendation is fix on the count alone — three advisories, none blocking — and not on the weight of any one of them. The state is APPROVE because no blocking finding exists. Two of the three are the author's to close in this branch; the third is another repository's page.
Standards
A1 — CLOSED this round — the required
staticcheck is green at this head.checksrun #60:checks / staticsuccessful in 13s (/actions/runs/60/jobs/0),checks / executesuccessful in 2m58s (…/jobs/3), and the static job's log endsenv-test: every assertion holds.The job ran inforgejo.thepit.space/olympus/infra-tracker-test@sha256:9ad6b1e942b6a35a3c0ac24795be362e5499923d3bbbb8aae38d41e888a267c5— the digest the commit message names — so the commit's claim ("the previous head's red was the image's missingjq, not this branch") is reproduced: same tree, new image, red → green. Round 3'sjq: command not foundfailure atscripts/snapshot.sh:44,62andscripts/guest-vmid.sh:21,25is gone.A2 — ADVISORY (carried from rounds 1–3, still open) —
olympus/workshopdocs/agents/make-targets.md:143.The row reads
| snapshot | forge, cockpit | Operator | An Ansible playbook against the PROD Guest, whose vmid is read out of the state |at workshoporigin/main06acdfa(read live 2026-11-11 14:31Z). The page's own rule at:157— "a new target is a row here in the same pull request that adds it" — restated at:191— is unmet: this PR putssnapshotin a third repo and the row still names two. It is stale forcockpitas well: that repo runsscripts/snapshot.sh(infra-cockpitorigin/maine07323d,Makefile:505), not forge's Ansible playbook.Why it stays advisory: the page's own escape valve at
:198— "A target inhelpwith no row here is a hole in this page, not a target that may not run" — and the class the page already assigns (Operator) is the one this change obeys. The in-repo half landed:Makefile:355-358no longer claims the page is offmain, and names the row as owed.Clearing it: the companion workshop PR —
forge, cockpit, trackerin the cells, and a description covering both implementations. Out of this branch's reach, and disclosed in Merge Danger.A3 — ADVISORY (carried from round 3, still open) —
scripts/guest-vmid.sh:31-32.count=$(jq 'length' <<< "$found")is empty when the state arrives empty, so[ "$count" -eq 1 ]runs[ "" -eq 1 ]and prints bash's own diagnostic ahead of the script's sentence — and the sentence then readsholds Guest container resource(s)with the count missing.Reachability, driven at this head through the Target itself (a
tofuwhoseshowfails with nothing on stdout, as a sealed backend or a wrong pair does):The refusal is correct and the Target is red before anything changes — that is the property the ticket asks for, and it holds. What is wrong is only the sentence. (One correction to round 3's wording: it said the recipe runs without
pipefail. It does not —Makefile:1-3setsSHELL := /bin/bash,.ONESHELL:and.SHELLFLAGS := -eu -o pipefail -c, so the pipeline fails as a whole. Both ends still run either way, which is why the diagnostic appears; the outcome is the same and the finding stands on the direct drive above, not on that mechanism.)Clearing it: default the count —
jq 'length'over"${found:-[]}", or// 0— so an empty state reportsholds 0 …like{}already does (I checked:{}readsholds 0 Guest container resource(s)correctly), and add the empty-input case beside the two refusal cases atscripts/tests/run.sh:300,308.A4 — ADVISORY (carried from round 3, still open) —
scripts/snapshot.sh:44and:132.The deletion boundary is written twice:
^${PREFIX}-[0-9]{8}-[0-9]{6}$insidestale_names(:44) and again aspattern=in the prune (:132), where it also feeds theourscount (:133) and the per-name guard.Driven both ways at this head, which is the difference between the two copies:
make env-test:44's regex loosened to^${PREFIX}FAIL a name outside the exact prefix is never a candidate (want [predeploy-20261101-000000], got […]):132'spattern=loosened to^${PREFIX}-FAILSo a drift in the first copy is caught and a drift in the second is silent — it only restricts what
stale_namesalready chose, which is why the suite cannot see it. Two copies of a deletion boundary with one of them unpinned.Clearing it: one
PATTERN=besidePREFIXat:26, read by both.Spec
Spec: TR-62, fetched live this round —
scripts/fetch-vikunja-task.sh 3 62, task id 348,identifier: TR-62,http=200(the profile's own key answers401on/projects; the shared key answers200, and the script's status lines say which answered). This retires round 3's "could not read the ticket" caveat: the body, the three What to build bullets and the four acceptance criteria are read at source, and they are what rounds 1–3 quoted.No spec-axis findings. All three bullets and all four criteria are implemented at this head and each is reproduced below; nothing in the diff was not asked for.
scripts/guest-vmid.shis not named in the ticket, but "with the vmid read from the repository's own state" is, and that script is the read.snapshotTarget,predeploy-<YYYYMMDD>-<HHMMSS>(UTC), vmid from the repository's own stateMakefile:274-277,scripts/snapshot.sh:105,scripts/guest-vmid.sh— reproduced against the stub Nodescripts/snapshot.sh:110-117; asserted as its own opening atscripts/tests/run.sh:385-388, and red whenof ${repo}is deletedscripts/snapshot.sh:43-46,132-142;KEEP=4and a loosened prefix each redselect(. != $just)for this run's own name,scripts/tests/run.sh:454;operator-before-upgradesurvives four runsSTUB_PROXMOX_FAIL_CREATE=1→ rc 2,snapshot: error: Proxmox refused, zeroDELETEsmake env-test, insidemake checkVerified
git ls-remote origin refs/pull/47/head, read at 14:26Z and again at 14:41Z and 14:47Z5a1ae27all three timesgit diff 9e2f807 5a1ae27,git diff --statmise exec -- make checkin a worktree at5a1ae27, no.envpresentok, 0FAIL— includingenv-check,env-test,fmt -check,validateof guest and edge, and bothtofu testsuitesmake env-test× 3 (the floor plus two more)5a1ae27+ the static job's own logstaticsuccess in 13s,executesuccess in 2m58s,env-test: every assertion holds, image…@sha256:9ad6b1e9…printf '' | ./scripts/guest-vmid.sh, and the Target with atofu showthat fails silentlyholds Guest …, rc 1 / Target rc 2make env-testeach:44loosened (a name outside the exact prefix …), the mutant table aboveorigin/main06acdfa,docs/agents/make-targets.md:143,157,191,198forge, cockpit; the rule and the escape valve as quotedcurl --configpipe read fromPROXMOX_VE_API_TOKEN; the stub's value is a fixturegit ls-remoteat the end of each wave5a1ae27Not verified
scripts/tests/stub-proxmox.py. ThatGET /cluster/resources?type=vmreturns 142 for this token, that the create answers a UPID, and thatDELETE …/snapshot/<name>is permitted are unproved against a Node. Each fails closed — a non-zero Target before any Guest change — which is the property the ticket asks for.tofu show -json. The suite fabricates the document; the attribute it selects on is real (modules/guest/container.tfsetsvm_id).make snapshotas a deploy step. Nothing calls it yet (make prodis TR-66), so its place at the head of a deploy remains a claim about a future change.staticis a required check.list_branch_protectionsanswers403for this token (not a repo admin). The check's green is a fact; its enforcement I take from ADR-0002, not from the platform.bash -nis clean on all three scripts.Named, not charged
main.container/Dockerfileat this head still installs nojq(grep: no match), and neither doesmain's copy: the green image was built from the branch ofolympus/infra-tracker#50("ci: the runner image carries jq…", open, head838d059). So A1's clearing rests on an artifact of an unmerged branch — if #50 does not land, a latermake image-publishfrommainregresses the gate and this branch reds again. Nothing in this diff can fix that, and the ordering is the Operator's: #50 merges with or before #47. Named here so the merge is not read as self-clearing.olympus/workshopdocs/adr/0011("a deploy never destroys or replaces") and0013(the Deployer "takes the snapshot before the change"), at workshoporigin/main06acdfa. The org's own merge-triggered deploy already performs the same prune:infra-cockpit.forgejo/workflows/deploy.yml:68runsmake prod NONINTERACTIVE=1, whosePROD_STEPSbeginsnapshot runner-snapshot→scripts/snapshot.sh. The prune is bounded to the deploy's own prefix and never to the name it just took, and the ticket asks for it — charged to nobody. A change that only adds the mechanism, with nothing calling it yet, takes no destroy at this merge either.infra-cockpit's copy ofscripts/snapshot.shstill carries the older selection that can delete the snapshot its own run just took — disclosed in Merge Danger, and that repository's to fix.mise exec -- make check. Not charged: the body's claims are true, and the gate's history is in the runs.scripts/tests/run.sh:125—printf … | grep -q …underset -o pipefailcan lose the pipeline to SIGPIPE. Seen once in round 3's eighteen runs; the line predates this branch and the diff does not touch it.Summary
snapshot.sh:132leaves the suite greenThe tree is the same one rounds 2 and 3 approved, and it is just as careful where it matters: the vmid is read by resource type and not by address, the prune is prefix-exact, the name the run just took is never a candidate, and both failure paths stop the deploy before anything changes. Round 3's red gate is green, and its claim about why it was red — the image, not this branch — is reproduced. What is left is one page in another repository, one refusal sentence, and one regex written twice; two of the three are a few lines in this branch.
The recommendation is fix, and the count alone is what asks for it: the tree has not moved since round 3, two of the three advisories are the author's own to close, and a batched round of them costs less than carrying them into a fifth dispatch. The merge itself needs
#50beside it.Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
New commits pushed, approval review dismissed automatically according to repository settings
Review started (round 2/5) on
544e31dd36— reading the diff now.Round 4 fix report · head
544e31d· one new commit, fast-forward5a1ae27..544e31d, no rewriteThe dispatch announced blocking findings; review 584 at
5a1ae27tallied APPROVE, 0 blockers, 3 advisories withrecommendation: fix. A1 was already closed by the image move that the reviewed empty commit made, so this round's specification is A3 and A4 — the two the review names as the author's to close in this branch. Nothing was invented on top: no tree outside those two findings was touched.The acknowledgement above carries the dispatch's counter (round 1/5). The review's own header reads round 4 of 5 because it counted the three reviews before it; the reviewer's next "Review started (round N/5)" post is the confirmation of which round this push lands in, and I have not edited the ack.
[ "" -eq 1 ]print bash's own diagnostic ahead of the script's sentence, and the sentence then readholds Guest container resource(s)${found:-[]}, so an empty read is the same "no such resource" the{}case already reports:holds 0 …, in the script's own sentencescripts/guest-vmid.sh:31-38scripts/tests/run.sh:313-326scripts/snapshot.sh, and only the copy insidestale_nameswas pinnedPATTERN=besidePREFIXat:26-31, read bystale_names, by theourscount and by the per-name guard before each DELETE; thepattern=copy is gonescripts/snapshot.sh:26-31, 49, 137-141staticcheckolympus/workshopmake-targets.mdrowCommit:
544e31d fix(review): the empty state refuses with its own count, and the boundary is one constant (TR-62)Verified
mise exec -- make checkon an archive of544e31d(git archive HEAD | tar -x -C <fresh>), withPROXMOX_VE_API_TOKEN,AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEYunset and no.env:The gate, at this head.
checksrun #66 fired on the push and both legs are green:checks / staticchecks / executeIts own log, read from
/actions/runs/66/jobs/0/attempt/1/logs:So the branch's own new cases are the ones the job ran, in the
jq-carrying image, and the count is 65okthere too.A3's red side, driven both ways at
544e31d. The same input,printf '' | ./scripts/guest-vmid.sh:and the suite, with the reviewed
guest-vmid.shrestored into the branch tree for the run:Restored, both are
ok. The refusal is unchanged in what it does — a red Target,rc 1from the script, nothing on the Guest touched — and only the sentence moved.A4's red side. The loosening the review showed going green is now the loosening the suite catches.
PATTERN="^${PREFIX}-[0-9]{8}-[0-9]{6}\$"loosened toPATTERN="^${PREFIX}-"in a copy,make env-test:There is one occurrence of that shape left in
scripts/snapshot.sh:31— the constant itself.grep -rn '0-9\]{8}' scripts/answers that line andscripts/tests/run.sh:388, which asserts the shape of the name the Target writes, not the deletion boundary; that one is deliberately untouched (see Left alone).The assertion count, measured rather than inherited.
make env-testin an archive of each revision:c12dd6b(main) 34ok,5a1ae27(reviewed) 61,544e31d63 — so the branch adds 29 assertions, and the PR body's+27in the tree diagram was a figure this round made false. It is corrected to+29in the body, and read back from the API after the write (4806 chars, equal to what was sent,+29once and+27zero times).Register. Every added line is inside its file's own widest line (
snapshot.sh143,guest-vmid.sh126,run.sh186), and the new comments are wrapped to the 79–80 columns the scripts already use.bash -nis clean on all three.glossary-vocab-check.py . HEADreports 3 collisions over 31 added lines —containerandnaming, both inherited from the assertion sentences this case sits beside (holds 0 Guest container resource(s),naming the count, already atrun.sh:308-310at the reviewed head). The one word the scan caught on my own prose,backend, was rewritten out.shellcheckis not installed on this host.Left alone, deliberately
olympus/workshoprow. Its clearing is "the companion workshop PR", and this dispatch is scoped to this PR's branch and forbids opening one. The finding's in-repo half landed in an earlier round (Makefile:353-358no longer claims the page is offmain, and names the row as owed), and the PR body's Merge Danger carries the same paragraph, so the Operator meets it before the merge. It stays open, and it is not in this branch's reach.scripts/tests/run.sh:388. It spells the name shape a second time, but it asserts what the Target wrote (printf … | grep -Eqx 'predeploy-[0-9]{8}-[0-9]{6}'against thePOSTline), not what the prune selects. Folding it intoPATTERNwould tie an assertion about the created name to a constant the deletion code owns, and a drift there is caught rather than silent — the opposite of A4's shape.#50ordering, which the review named and did not charge.container/Dockerfileat this head still carries nojq; the green image above is an artifact ofolympus/infra-tracker#50, still open. If #50 does not land with or before this PR, a latermake image-publishfrommainputs the gate back to red. Nothing in this diff can fix that, and it is not made better or worse by this round.scripts/tests/stub-proxmox.py, and every failure path refuses before the Guest changes), a realtofu show -json, andmake snapshotas a deploy step (nothing calls it yet;make prodis TR-66).olympus/infra-tracker #47 · reviewed at
544e31dd36bf1832e324d34bb1b230f9bf5f984c(merge-basec12dd6b) · round 5 of 5 · verdict: APPROVE, 0 blockers · 1 advisory.Recommendation: merge
Round 5, not the dispatch's 2: the thread already carries four reviews (531 at
55ce0d1, 564 at70d69a7, 572 at9e2f807, 584 at5a1ae27), and the header's round is that count plus one. The sign-on comment carries the dispatch's own number because it is posted before the review list is read.This round's delta is
git diff 5a1ae27 544e31d— three files,+31/−5, the one commit544e31d fix(review): the empty state refuses with its own count, and the boundary is one constant (TR-62). Both advisories round 4 left open live in it, and both are closed below with a red/green pair rather than by reading.Standards
Standards sources read at this head:
AGENTS.md(decisions, toolchain, state, environment),docs/agents/{domain,issue-tracker}.md,docs/adr/0001…0005, and the org records inolympus/workshopdocs/adr/atorigin/main06acdfa(13 records).A3 — CLOSED this round —
scripts/guest-vmid.sh:38(was:31-32).The count now defaults its input:
count=$(jq 'length' <<< "${found:-[]}"), with the rationale at:31-37. Driven both ways, the empty state through the script itself:The head prints no bash diagnostic and carries the
0; the prior head omits the number it exists to carry. The new case atscripts/tests/run.sh:313-326has both halves —holds 0 Guest container resource(s)present,integer expression expectedabsent — and it can fail: run against the prior script it reds both,FAIL an empty state refuses without naming the countandFAIL an empty state printed bash's own diagnostic ahead of the refusal, rc 1; against the head's script, 0FAIL.A4 — CLOSED this round —
scripts/snapshot.sh:31(was:44and:132).The deletion boundary is now one constant,
PATTERN="^${PREFIX}-[0-9]{8}-[0-9]{6}\$", read by the selection at:49, by theourscensus at:137, and by the per-name guard at:141.grep -rn '\[0-9\]{8}' scripts/ Makefileleaves exactly one occurrence inscripts/snapshot.sh(plus the test's own independent shape assertion atscripts/tests/run.sh:388, which is the spec pinning the name format, not a second copy of the boundary).The mutant that round 4 showed was green is red now, because there is nowhere else for the drift to hide:
scripts/snapshot.sh:31make env-testPATTERN="^${PREFIX}"(the round-4 survivor)FAIL a name outside the exact prefix is never a candidate (want [predeploy-20261101-000000], got […operator-before-upgrade…])PATTERN="^predeploy-[0-9]{4}-[0-9]{2}-[0-9]{2}$"(tightened)FAILFAIL, 63okA2 — ADVISORY (carried from rounds 1–4, still open) —
olympus/workshopdocs/agents/make-targets.md:143.Re-read live this round at workshop
origin/main06acdfa(unchanged since round 4): the row still reads| snapshot | forge, cockpit | Operator | An Ansible playbook against the PROD Guest, whose vmid is read out of the state |, and the page's own rule at:157— "a new target is a row here in the same pull request that adds it" — is unmet for the third repo.olympus/workshopstill has no PR carrying it: its one open PR is#49, the ADR-0006/0007 status change.Why it stays advisory: the page's own escape valve at
:198— "A target inhelpwith no row here is a hole in this page, not a target that may not run" — and the class the page already assigns (Operator) is the one this change obeys. The in-repo half landed in round 2 and holds:Makefile:355-358no longer claims the page is offmainand names the row as owed.Clearing it: the companion workshop PR —
forge, cockpit, trackerin the cells, and a description covering both implementations. Out of this branch's reach, and disclosed in Merge Danger.No other standards finding: the added lines sit inside each file's own widest line (
guest-vmid.sh80 ≤ 126,snapshot.sh111 ≤ 141,run.sh82 ≤ 184),bash -nis clean on all three scripts, and the new comment blocks match the rationale-comment style the rest ofscripts/already carries.Spec
Spec: TR-62, fetched live this round —
scripts/fetch-vikunja-task.sh 3 62, task id 348,identifier: TR-62,status lines: /projects http=401 (profile key), /projects http=200 (shared key), list http=200 rows=1, task id=348 http=200. The four acceptance criteria are the same ones rounds 1–4 quoted, and this delta changes neither a criterion nor its evidence: it makes one refusal sentence carry its number and collapses two copies of a regex into one.No spec-axis findings. Nothing in the delta is work the ticket did not ask for, and no criterion loses its covering case as a result: the prune's boundary still reds under
KEEP=4and under a loosened prefix, and the four-run case still deletes exactly the oldest by name.Verified
git ls-remote origin refs/pull/47/headat the start and the end of each wave544e31devery timegit merge-base --is-ancestor 5a1ae27 544e31d;git diff --statmise exec -- make checkin a worktree at544e31d, no.envpresentok, 0FAIL(bothtofu testsuites pass)./scripts/tests/run.shatc12dd6b(34ok) and at head (63ok)5a1ae27script on an empty state; head's suite against each:31,make env-testeach; control at head544e31d; run #66; thestaticjob's own logstaticsuccess 13s,executesuccess 3m0s; log line 166env-test: every assertion holds.; image…infra-tracker-test@sha256:9ad6b1e9…mise exec -- make -n snapshottofu init -input=false→vmid=$(tofu show -json | …/guest-vmid.sh)→…/snapshot.sh "$vmid"origin/main06acdfa,make-targets.md:143,157,198; workshop open PRs#49is ADRs)grep -icE '(token|secret|password|api[_-]?key)\s*=\s*[A-Za-z0-9/+_-]{8,}'over the 86-line deltaCharter scope, checked rather than assumed: this delta touches no ADR, no branch protection, no workflow or CI gate, no tier-1 service, and adds no destroy or replace. The prune's DELETE was settled in round 4 and is unchanged by this commit — ADR-0011 ("a deploy never destroys or replaces") and ADR-0013 (the Deployer "takes the snapshot before the change") assign the act, and the org's own merge-triggered deploy already performs it:
infra-cockpit.forgejo/workflows/deploy.yml:68runsmake prod NONINTERACTIVE=1, whosePROD_STEPS(Makefile:67) beginsnapshot. Named, not charged, below.Not verified
scripts/tests/stub-proxmox.py. Every path fails closed — a non-zero Target before any Guest change — which is the property the ticket asks for.tofu show -json. The suite fabricates the document; the attribute it selects on is real (modules/guest/container.tfsetsvm_id).make snapshotas a deploy step. Nothing calls it yet (make prodis TR-66).staticis a required context.list_branch_protectionsanswers403for this token (not a repo admin); the check's green is a fact, its enforcement I take from ADR-0002.bash -nis clean on all three scripts.Named, not charged
main, and#50is still open (headfaa3809).container/Dockerfileat this head installs nojq(grep -c jq→ 0), and the green image is built from#50's branch. Nothing in this diff can fix that, and the ordering is the Operator's:#50merges with or before#47. Unchanged from round 4, restated so the merge is not read as self-clearing.infra-cockpit's copy ofscripts/snapshot.sh(origin/maine07323d) still carries the older selection — itsstale_namesexcludes nothing for the name its own run just took. That repository's to fix; disclosed in this PR's Merge Danger.predeploy-<8 digits>-<6 digits>and never to the name the run just took. Assigned by ADR-0011/0013 and already run by cockpit's merge deploy (above); this commit adds no delete path, it collapses two copies of the boundary into one.sourcedblock's wording atscripts/snapshot.sh:55-56says the file "sets nothing either" while it has long setPREFIX,KEEPandTASK_TIMEOUT, and now setsPATTERNtoo. Pre-existing wording on a line this diff does not touch, and the intent (it sets no shell options) is clear.Summary
snapshotrow still names two of the three repos; the page's own rule wants a row, its own escape valve says a missing row is a hole and not a prohibitionBoth of the author's changes do what they claim and are pinned by tests that can fail: the empty state now refuses in the script's own sentence with its
0, and the deletion boundary exists once, so the mutant that survived round 4 is fatal to the suite at this head. The tree is the same one four rounds have approved and the one thing left is a page in another repository.The last round recommended fix on the count alone (three advisories); two of those are closed here, the count is now one, and the recommendation follows the count the same way it did then — not the weight of A2, which was advisory in every round and is still another repository's to land. A2 is advice and travels with the merge; there is nothing in this branch left to change.