The tracker's deploy snapshots 142 before it changes it (TR-62) #47

Merged
pit merged 4 commits from hermes/TR-62-the-tracker-s-deploy-snapshots-142-befor into main 2026-11-11 17:43:19 +00:00
Member

Implements TR-62

Summary

make snapshot takes the Guest's restore point before anything else changes, and keeps
the newest three.

make snapshot
  guest_stack_init                          # .env, the Guest state pair, tofu init
  tofu show -json | scripts/guest-vmid.sh   # the vmid, from the Guest Stack's state
  scripts/snapshot.sh <vmid>
    POST   /nodes/<node>/lxc/<vmid>/snapshot    predeploy-<YYYYMMDD>-<HHMMSS> + description
    wait   the worker task ends OK
    GET    the Guest's snapshot listing
    DELETE every predeploy-* beyond the newest three, each by explicit name
           — never the one this run just took, never a name outside the prefix
scripts/
├── snapshot.sh          # the API work; the same script infra-silo and infra-cockpit run
├── guest-vmid.sh        # the state read this repo needs (see below)
└── tests/
    ├── stub-proxmox.py  # one Guest, four routes, every call logged
    └── run.sh           # +29 assertions: the prune's boundary, the vmid read, the Target
Makefile                 # the Target, and env-test's line about it
README.md                # the target list, and why this one carries no Apply gate

Two decisions worth a reviewer's attention:

  • The vmid is read out of the state by resource type, not by address. The address
    module.guest.proxmox_virtual_environment_container.vikunja is a thing a moved block
    changes, 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 -json rather than a guest_identity output because this Stack publishes no
    such output yet — an output only exists in the state after an apply, so the first deploy
    would have had no vmid to read.
  • No Apply gate. The snapshot is the restore point a gated change relies on, so the
    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-test had no snapshot cases, and make snapshot answered
    make: *** No rule to make target 'snapshot'. Stop.
    After: mise exec -- make check exits 0, with the new cases in the floor:

    make snapshot
      ok    one run leaves one snapshot, named predeploy-<YYYYMMDD>-<HHMMSS>
      ok    one run deletes nothing
      ok    the description opens with the repository, the commit and the run
      ok    the Guest keeps one predeploy-* snapshot after one run
      ok    four runs leave three predeploy-* snapshots
      ok    the prune deleted the oldest, by its explicit name
      ok    the snapshot outside the prefix was never a candidate
      ok    a refused snapshot is a red Target (rc 2)
      ok    the refusal is the script's own sentence
      ok    and nothing was deleted after it
      ok    a state with no Guest is a red Target
      ok    and the Node was never dialled
    
  • The prune's boundary, offline (the ticket's fourth criterion), run both ways. With
    KEEP=4 the suite says FAIL four runs leave three predeploy-* snapshots (want [3], got [4]); with the prefix loosened to ^predeploy it says FAIL a name outside the exact prefix is never a candidate. Restored, all green.

  • The Target composed, mise exec -- make -n snapshot:

    tofu init -input=false
    vmid=$(tofu show -json | "…/scripts/guest-vmid.sh")
    "…/scripts/snapshot.sh" "$vmid"
    

Verification was mise exec -- make check (exit 0) in this worktree, after
mise 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 check never reaches the Node.

The one thing a merge makes live is the prune, so it is worth knowing what it will delete:
predeploy-* of exactly predeploy-<8 digits>-<6 digits>, beyond the newest three, each by
name — 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 of scripts/snapshot.sh still
carries the older selection that can, which is that repository's to fix.

The workshop row is still owed: olympus/workshop's
docs/agents/make-targets.md carries snapshot for forge and cockpit only, and
its 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 Makefile
comment that said the page was not on main yet, and nothing else about it.

Implements [TR-62](https://vikunja.thepit.space/tasks/348) ## Summary `make snapshot` takes the Guest's restore point before anything else changes, and keeps the newest three. ```text make snapshot guest_stack_init # .env, the Guest state pair, tofu init tofu show -json | scripts/guest-vmid.sh # the vmid, from the Guest Stack's state scripts/snapshot.sh <vmid> POST /nodes/<node>/lxc/<vmid>/snapshot predeploy-<YYYYMMDD>-<HHMMSS> + description wait the worker task ends OK GET the Guest's snapshot listing DELETE every predeploy-* beyond the newest three, each by explicit name — never the one this run just took, never a name outside the prefix ``` ```text scripts/ ├── snapshot.sh # the API work; the same script infra-silo and infra-cockpit run ├── guest-vmid.sh # the state read this repo needs (see below) └── tests/ ├── stub-proxmox.py # one Guest, four routes, every call logged └── run.sh # +29 assertions: the prune's boundary, the vmid read, the Target Makefile # the Target, and env-test's line about it README.md # the target list, and why this one carries no Apply gate ``` Two decisions worth a reviewer's attention: - **The vmid is read out of the state by resource type, not by address.** The address `module.guest.proxmox_virtual_environment_container.vikunja` is a thing a `moved` block changes, 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 -json` rather than a `guest_identity` output because this Stack publishes no such output yet — an output only exists in the state after an apply, so the first deploy would have had no vmid to read. - **No Apply gate.** The snapshot is the restore point a gated change relies on, so the 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-test` had no snapshot cases, and `make snapshot` answered `make: *** No rule to make target 'snapshot'. Stop.` **After:** `mise exec -- make check` exits 0, with the new cases in the floor: ```text make snapshot ok one run leaves one snapshot, named predeploy-<YYYYMMDD>-<HHMMSS> ok one run deletes nothing ok the description opens with the repository, the commit and the run ok the Guest keeps one predeploy-* snapshot after one run ok four runs leave three predeploy-* snapshots ok the prune deleted the oldest, by its explicit name ok the snapshot outside the prefix was never a candidate ok a refused snapshot is a red Target (rc 2) ok the refusal is the script's own sentence ok and nothing was deleted after it ok a state with no Guest is a red Target ok and the Node was never dialled ``` - **The prune's boundary, offline** (the ticket's fourth criterion), run both ways. With `KEEP=4` the suite says `FAIL four runs leave three predeploy-* snapshots (want [3], got [4])`; with the prefix loosened to `^predeploy` it says `FAIL a name outside the exact prefix is never a candidate`. Restored, all green. - **The Target composed**, `mise exec -- make -n snapshot`: ```text tofu init -input=false vmid=$(tofu show -json | "…/scripts/guest-vmid.sh") "…/scripts/snapshot.sh" "$vmid" ``` Verification was `mise exec -- make check` (exit 0) in this worktree, after `mise 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 check` never reaches the Node. The one thing a merge makes live is the prune, so it is worth knowing what it will delete: `predeploy-*` of exactly `predeploy-<8 digits>-<6 digits>`, beyond the newest three, each by name — 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 of `scripts/snapshot.sh` still carries the older selection that can, which is that repository's to fix. **The workshop row is still owed:** `olympus/workshop`'s `docs/agents/make-targets.md` carries `snapshot` for forge and cockpit only, and its 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 `Makefile` comment that said the page was not on `main` yet, and nothing else about it.
ticket-dispatch: the tracker snapshots 142 before it changes it (TR-62)
Some checks failed
checks / static (pull_request) Failing after 7s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Has been skipped
55ce0d1787
A `snapshot` Target takes `predeploy-<YYYYMMDD>-<HHMMSS>` on the Guest through
the Proxmox API, then deletes every `predeploy-*` beyond the newest three, each
by explicit name. Its vmid is read out of the Guest Stack's state, never typed:
a snapshot of the wrong Guest is the expensive mistake.

`scripts/snapshot.sh` is the same one `infra-silo` and `infra-cockpit` run, so
the five repositories take one shape. The Target refuses before it dials the
Node when the state cannot name exactly one Guest, and a refusal is a red
Target, so the deploy stops before anything has changed.

The description carries the repository, the commit and — where the runner
supplies one — the run. Naming the Semaphore task in it belongs to TR-66, which
starts that task.
Member

Review started (round 1/5) on 55ce0d1787 — reading the diff now.

**Review started** (round 1/5) on 55ce0d1787b38e5a73f1ce7147ffb3762b21f785 — reading the diff now.
bot-minos approved these changes 2026-11-10 23:15:45 +00:00
Dismissed
bot-minos left a comment

olympus/infra-tracker #47 · reviewed at 55ce0d1787b38e5a73f1ce7147ffb3762b21f785 (merge-base e8f22ac) · 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/workshop docs/agents/make-targets.md:143. The page's snapshot row 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 in infra-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 :198 adds "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 :198 is explicit — "A target in help with 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 in olympus/workshop adding tracker to the row and widening What it runs to cover scripts/snapshot.sh beside forge's playbook. (Context for the author, charged to nobody: the comment at Makefile:355-357 still says this page "is not on its main until it merges"; it is on main — b5e2c63, !18 — so that comment is stale, and is likely why the row was not moved.)

S2 — ADVISORY — GLOSSARY.md:174-181. predeploy snapshot is 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 for the state ends _Avoid_: tfstate, snapshot, backup. (:181), so a reader who follows docs/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 at make snapshot.

N1 — NIT — scripts/tests/run.sh:446-448. fail_if … -e 'retention' reds on any future .tf that 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.sh is 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 deleted of ${repo} from scripts/snapshot.sh:117 and 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 for description=Taken before the deploy of olympus/infra-tracker at .

Verified

What How Result
The static floor the PR body claims mise exec -- make check on the head, no .env present exit 0, 60 ok, 0 FAIL — including env-check, env-test, tofu fmt -check -recursive, validate of guest and edge, and tofu test for test/guest and npm
The prune's boundary (criterion 4) suite as written green: three kept, the fourth deleted by its explicit name, operator-before-upgrade never a candidate
That those tests can fail KEEP=3→4 in a throwaway copy red: FAIL four runs leave three predeploy-* snapshots (want [3], got [4]) — the author's claim reproduced
That the prefix test can fail ^predeploy-[0-9]{8}-[0-9]{6}$ → ^predeploy red: FAIL a name outside the exact prefix is never a candidate
That "never the one this run took" is real deleted select(. != $just) red, 4 assertions, incl. the two oldest of the later-sorting names go, and the new one never
A refused snapshot stops the run STUB_PROXMOX_FAIL_CREATE=1 rc 2, snapshot: error: Proxmox refused …, zero DELETEs
A state with no Guest stops before the Node empty state rc 2, holds 0 Guest container resource(s), zero GETs
The Target's composition mise exec -- make -n snapshot tofu init → vmid=$(tofu show -json | …/guest-vmid.sh) → …/snapshot.sh "$vmid", as the body shows
The help text mise exec -- make help | grep snapshot one row, as the body claims
The token's reach infra-secrets/docs/proxmox-credentials.md:48,75 infra-runner@pve!deploy holds TofuGuestInPlace on /vms/142 — "in place and snapshot only"
No secret in the diff read every hunk the token is read from PROXMOX_VE_API_TOKEN into a curl --config pipe; nothing printed, nothing committed; the stub's token is a literal
No silent drift from the other copies diffed against infra-silo and infra-cockpit origin/main identical to silo's but for repo= and one comment that correctly drops silo's make prod; cockpit's copy is the older selection, as the body already discloses

Not verified

  • The live Proxmox API. No endpoint and no token here: the four routes are exercised only against scripts/tests/stub-proxmox.py. That GET /cluster/resources?type=vm returns 142 for this token, that the create answers a UPID, and that DELETE …/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.
  • A real tofu show -json. The suite fabricates the document; I checked the one key that matters is real — the module sets vm_id at modules/guest/container.tf:20, which is the attribute guest-vmid.sh:27 selects on.
  • make snapshot as 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

Axis Findings Worst
Standards 3 advisories + 1 nit S1 — after this merges, the workshop snapshot row names two of the three repos that have the target
Spec 1 advisory P1 — the "description carries the repository" criterion is asserted on a log line the run URL satisfies on its own

The 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.

<!-- minos review-loop: repo=olympus/infra-tracker pr=47 head=55ce0d1787b38e5a73f1ce7147ffb3762b21f785 round=1/5 axes=standards,spec verdict=approve blockers=0 advisories=4 nits=1 --> **olympus/infra-tracker #47** · reviewed at `55ce0d1787b38e5a73f1ce7147ffb3762b21f785` (merge-base `e8f22ac`) · 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/workshop` `docs/agents/make-targets.md:143`.** The page's `snapshot` row 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 in `infra-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 `:198` adds "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 `:198` is explicit — "A target in `help` with 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 in `olympus/workshop` adding `tracker` to the row and widening *What it runs* to cover `scripts/snapshot.sh` beside forge's playbook. (Context for the author, charged to nobody: the comment at `Makefile:355-357` still says this page "is not on its `main` until it merges"; it is on `main` — `b5e2c63`, `!18` — so that comment is stale, and is likely why the row was not moved.) **S2 — ADVISORY — `GLOSSARY.md:174-181`.** `predeploy snapshot` is 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 for `the state` ends `_Avoid_: tfstate, snapshot, backup.` (`:181`), so a reader who follows `docs/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 at `make snapshot`. **N1 — NIT — `scripts/tests/run.sh:446-448`.** `fail_if … -e 'retention'` reds on *any* future `.tf` that 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.sh` is 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 deleted ` of ${repo}` from `scripts/snapshot.sh:117` and 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 for `description=Taken before the deploy of olympus/infra-tracker at `. ## Verified | What | How | Result | |---|---|---| | The static floor the PR body claims | `mise exec -- make check` on the head, no `.env` present | **exit 0**, 60 `ok`, 0 `FAIL` — including `env-check`, `env-test`, `tofu fmt -check -recursive`, `validate` of guest and edge, and `tofu test` for `test/guest` and `npm` | | The prune's boundary (criterion 4) | suite as written | green: three kept, the fourth deleted by its explicit name, `operator-before-upgrade` never a candidate | | That those tests can fail | `KEEP=3`→`4` in a throwaway copy | red: `FAIL four runs leave three predeploy-* snapshots (want [3], got [4])` — the author's claim reproduced | | That the prefix test can fail | `^predeploy-[0-9]{8}-[0-9]{6}$` → `^predeploy` | red: `FAIL a name outside the exact prefix is never a candidate` | | That "never the one this run took" is real | deleted `select(. != $just)` | red, 4 assertions, incl. `the two oldest of the later-sorting names go, and the new one never` | | A refused snapshot stops the run | `STUB_PROXMOX_FAIL_CREATE=1` | rc 2, `snapshot: error: Proxmox refused …`, zero `DELETE`s | | A state with no Guest stops before the Node | empty state | rc 2, `holds 0 Guest container resource(s)`, zero `GET`s | | The Target's composition | `mise exec -- make -n snapshot` | `tofu init` → `vmid=$(tofu show -json \| …/guest-vmid.sh)` → `…/snapshot.sh "$vmid"`, as the body shows | | The help text | `mise exec -- make help \| grep snapshot` | one row, as the body claims | | The token's reach | `infra-secrets/docs/proxmox-credentials.md:48,75` | `infra-runner@pve!deploy` holds `TofuGuestInPlace` on `/vms/142` — "in place and snapshot only" | | No secret in the diff | read every hunk | the token is read from `PROXMOX_VE_API_TOKEN` into a `curl --config` pipe; nothing printed, nothing committed; the stub's token is a literal | | No silent drift from the other copies | diffed against `infra-silo` and `infra-cockpit` `origin/main` | identical to silo's but for `repo=` and one comment that correctly drops silo's `make prod`; cockpit's copy is the older selection, as the body already discloses | ## Not verified - **The live Proxmox API.** No endpoint and no token here: the four routes are exercised only against `scripts/tests/stub-proxmox.py`. That `GET /cluster/resources?type=vm` returns 142 for this token, that the create answers a UPID, and that `DELETE …/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. - **A real `tofu show -json`.** The suite fabricates the document; I checked the one key that matters is real — the module sets `vm_id` at `modules/guest/container.tf:20`, which is the attribute `guest-vmid.sh:27` selects on. - **`make snapshot` as 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 | Axis | Findings | Worst | |---|---|---| | Standards | 3 advisories + 1 nit | S1 — after this merges, the workshop `snapshot` row names two of the three repos that have the target | | Spec | 1 advisory | P1 — the "description carries the repository" criterion is asserted on a log line the run URL satisfies on its own | The 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.
Author
Member

Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.

**Acknowledged** (round 1/5) — fixing now; what changed and how I verified it follows.
fix(review): the description is asserted on its own sentence, and the glossary names the snapshot (TR-62)
Some checks failed
checks / static (pull_request) Failing after 8s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Has been skipped
df145d62a6
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.
bot-efesto dismissed bot-minos's review 2026-11-10 23:21:16 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Author
Member

Round 1 fix report · head df145d6 · one new commit, fast-forward (55ce0d1..df145d6), no rewrite

The 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.

Finding Change Where
P1 — the "description carries the repository" case grepped a log line that the run URL satisfies on its own the line is cut at description= and the description matched as an opening, so the assertion is about its own sentence scripts/tests/run.sh
N1 — -e 'retention' reds on any .tf that mentions the word dropped; -e 'proxmox_snap' is what the assertion means scripts/tests/run.sh
S2 — predeploy snapshot is a term with no glossary entry, and the state forbids "snapshot" outright a **predeploy snapshot** entry beside Apply gate, and the state's _Avoid_ line now says which sense it avoids GLOSSARY.md
S3 — "This repository takes no copy of its own" had become misleading about the Guest the clause points at make snapshot and says which of the two it is docs/reference/state.md
S1 — the workshop snapshot row names two of the three repos not landed: the row is a page in olympus/workshop. See Left alone —

Commit: df145d6 fix(review): the description is asserted on its own sentence, and the glossary names the snapshot (TR-62)

Verified

mise exec -- make check on an archive of df145d6 (git archive df145d6 | tar -x -C <fresh>), with PROXMOX_VE_API_TOKEN, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY unset and no .env:

rc=0   Success ×5 (three configurations, two tofu test suites)   0 FAIL
env-test: every assertion holds.

58 ok lines: 2 from env-check, 56 from env-test — against 29 at the base e8f22ac, so the branch adds 27 assertions. It printed 60 at the reviewed head because the three "description carries …" cases are now one; the +35 in 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 from scripts/snapshot.sh:117:

  FAIL  the description does not open [Taken before the deploy of olympus/infra-tracker at 0123456789abcdef0123456789abcdef01234567, run 77:] (got [Taken before the deploy at 0123456789abcdef0123456789abcdef01234567, run 77: /olympus/infra-tracker/actions/runs/77.])
env-test: 1 assertion(s) FAILED.   rc=1

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 .tf whose only mention is a comment (# The datacenter job's nightly image keeps its own retention, on the Node.):

run.sh that fixture a .tf containing proxmox_snap
reviewed (-e 'retention') FAIL, rc=1 —
branch (pattern dropped) ok … every assertion holds, rc=0 FAIL, rc=1

Register. Every added line is inside its file's own widest line (GLOSSARY 79 ≤ 81, state.md 78 ≤ 193, Makefile 78 ≤ 210, run.sh 111 ≤ 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.py reports 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", the vikunja/ path in the grep, or the word deploy inside the literal prefix that has to match scripts/snapshot.sh's own sentence.

The gate is red, and not because of this round

The push ran checks #41: static failed, execute skipped behind it. 17 assertions, and every one of them is a jq case:

the predeploy snapshot
scripts/snapshot.sh: line 44: jq: command not found
  FAIL  a fourth deletes the oldest and only the oldest …
guest-vmid: error: jq is not on PATH; run through the repo toolchain: mise exec -- make snapshot
env-test: 17 assertion(s) FAILED.
Job 'static' failed

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:

run head Start image verdict
#34 e8f22ac (main) …infra-tracker-test@sha256:cfe03d5a… every assertion holds
#39 55ce0d1 (reviewed) …@sha256:cfe03d5a… env-test: 19 assertion(s) FAILED
#41 df145d6 (this round) …@sha256:cfe03d5a… env-test: 17 assertion(s) FAILED

container/Dockerfile installs curl git make openssh-client xz-utils python3 python3-venv docker-cli nodejs — no jq — and container/ci.sh:140 already says so in a comment. The suite is green locally because mise exec -- supplies the jq that mise.lock pins; the job, per ADR-0004, calls make directly 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 a Dockerfile line lands unverified and turns nothing green. That is why I set review/needs-human — not because a finding is unfixed. Two ways out, both yours to pick:

  1. An image carrying jq — one line in container/Dockerfile's apt list, then make image-publish, then the new digest into TEST_RUNNER_IMAGE. jq is already in mise.lock, and ADR-0004 already calls the image "the toolchain", so this closes a gap rather than opening one.
  2. Named skips under an ADR-0004 amendment — the jq-dependent cases report as skipped when command -v jq fails, the way the suite already handles a case it cannot run.

Left alone, deliberately

  • S1. Its clearing is "a companion PR in olympus/workshop", and this dispatch is scoped to this PR's branch and forbids opening one. That page at 34c2ca6 still reads | snapshot | forge, cockpit | Operator | An Ansible playbook against the PROD Guest, whose vmid is read out of the state |; the row wants forge, cockpit, tracker and 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.
  • S1's in-repo cause, which the review charged to nobody. The Makefile comment really was stale — the page has been on that repository's main since b5e2c63 (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.
  • The PR body. Refreshed, not rewritten: the evidence block quotes the one description assertion instead of the three, the tree diagram carries the measured +27, and the workshop note is a new Merge Danger paragraph. Read back from the API, equal to what was sent (4806 chars).
**Round 1 fix report** · head `df145d6` · one new commit, fast-forward (`55ce0d1..df145d6`), no rewrite The 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. | Finding | Change | Where | | --- | --- | --- | | **P1** — the "description carries the repository" case grepped a log line that the run URL satisfies on its own | the line is cut at `description=` and the description matched as an opening, so the assertion is about its own sentence | `scripts/tests/run.sh` | | **N1** — `-e 'retention'` reds on any `.tf` that mentions the word | dropped; `-e 'proxmox_snap'` is what the assertion means | `scripts/tests/run.sh` | | **S2** — `predeploy snapshot` is a term with no glossary entry, and `the state` forbids "snapshot" outright | a `**predeploy snapshot**` entry beside `Apply gate`, and `the state`'s `_Avoid_` line now says which sense it avoids | `GLOSSARY.md` | | **S3** — "This repository takes no copy of its own" had become misleading about the Guest | the clause points at `make snapshot` and says which of the two it is | `docs/reference/state.md` | | **S1** — the workshop `snapshot` row names two of the three repos | **not landed: the row is a page in `olympus/workshop`.** See *Left alone* | — | Commit: `df145d6 fix(review): the description is asserted on its own sentence, and the glossary names the snapshot (TR-62)` ## Verified `mise exec -- make check` on an archive of `df145d6` (`git archive df145d6 | tar -x -C <fresh>`), with `PROXMOX_VE_API_TOKEN`, `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` unset and no `.env`: ```text rc=0 Success ×5 (three configurations, two tofu test suites) 0 FAIL env-test: every assertion holds. ``` 58 `ok` lines: 2 from `env-check`, 56 from `env-test` — against 29 at the base `e8f22ac`, so the branch adds **27** assertions. It printed 60 at the reviewed head because the three "description carries …" cases are now one; the `+35` in 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 from `scripts/snapshot.sh:117`: ```text FAIL the description does not open [Taken before the deploy of olympus/infra-tracker at 0123456789abcdef0123456789abcdef01234567, run 77:] (got [Taken before the deploy at 0123456789abcdef0123456789abcdef01234567, run 77: /olympus/infra-tracker/actions/runs/77.]) env-test: 1 assertion(s) FAILED. rc=1 ``` 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 `.tf` whose only mention is a comment (`# The datacenter job's nightly image keeps its own retention, on the Node.`): | `run.sh` | that fixture | a `.tf` containing `proxmox_snap` | | --- | --- | --- | | reviewed (`-e 'retention'`) | `FAIL`, rc=1 | — | | branch (pattern dropped) | `ok … every assertion holds`, rc=0 | `FAIL`, rc=1 | **Register.** Every added line is inside its file's own widest line (GLOSSARY 79 ≤ 81, `state.md` 78 ≤ 193, `Makefile` 78 ≤ 210, `run.sh` 111 ≤ 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.py` reports 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", the `vikunja/` path in the grep, or the word `deploy` inside the literal prefix that has to match `scripts/snapshot.sh`'s own sentence. ## The gate is red, and not because of this round The push ran `checks` #41: `static` **failed**, `execute` skipped behind it. 17 assertions, and every one of them is a `jq` case: ```text the predeploy snapshot scripts/snapshot.sh: line 44: jq: command not found FAIL a fourth deletes the oldest and only the oldest … guest-vmid: error: jq is not on PATH; run through the repo toolchain: mise exec -- make snapshot env-test: 17 assertion(s) FAILED. Job 'static' failed ``` 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: | run | head | Start image | verdict | | --- | --- | --- | --- | | #34 | `e8f22ac` (main) | `…infra-tracker-test@sha256:cfe03d5a…` | `every assertion holds` | | #39 | `55ce0d1` (reviewed) | `…@sha256:cfe03d5a…` | `env-test: 19 assertion(s) FAILED` | | #41 | `df145d6` (this round) | `…@sha256:cfe03d5a…` | `env-test: 17 assertion(s) FAILED` | `container/Dockerfile` installs `curl git make openssh-client xz-utils python3 python3-venv docker-cli nodejs` — no `jq` — and `container/ci.sh:140` already says so in a comment. The suite is green locally because `mise exec --` supplies the `jq` that `mise.lock` pins; the job, per ADR-0004, calls `make` directly 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 a `Dockerfile` line lands unverified and turns nothing green. **That is why I set `review/needs-human` — not because a finding is unfixed.** Two ways out, both yours to pick: 1. **An image carrying `jq`** — one line in `container/Dockerfile`'s apt list, then `make image-publish`, then the new digest into `TEST_RUNNER_IMAGE`. `jq` is already in `mise.lock`, and ADR-0004 already calls the image "the toolchain", so this closes a gap rather than opening one. 2. **Named skips under an ADR-0004 amendment** — the `jq`-dependent cases report as skipped when `command -v jq` fails, the way the suite already handles a case it cannot run. ## Left alone, deliberately - **S1.** Its clearing is "a companion PR in `olympus/workshop`", and this dispatch is scoped to this PR's branch and forbids opening one. That page at `34c2ca6` still reads `| snapshot | forge, cockpit | Operator | An Ansible playbook against the PROD Guest, whose vmid is read out of the state |`; the row wants `forge, cockpit, tracker` and 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. - **S1's in-repo cause, which the review charged to nobody.** The `Makefile` comment really was stale — the page has been on that repository's `main` since `b5e2c63` (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. - **The PR body.** Refreshed, not rewritten: the evidence block quotes the one description assertion instead of the three, the tree diagram carries the measured `+27`, and the workshop note is a new **Merge Danger** paragraph. Read back from the API, equal to what was sent (4806 chars).
pit force-pushed hermes/TR-62-the-tracker-s-deploy-snapshots-142-befor from df145d62a6
Some checks failed
checks / static (pull_request) Failing after 8s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Has been skipped
to 93b5d6a8f3
Some checks failed
checks / static (pull_request) Failing after 8s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Has been skipped
2026-11-11 12:47:06 +00:00
Compare
pit force-pushed hermes/TR-62-the-tracker-s-deploy-snapshots-142-befor from 93b5d6a8f3
Some checks failed
checks / static (pull_request) Failing after 8s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Has been skipped
to 70d69a7ff6
Some checks failed
checks / static (pull_request) Failing after 8s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Has been skipped
2026-11-11 13:41:15 +00:00
Compare
Member

Review started (round 1/5) on 70d69a7ff6 — reading the diff now.

**Review started** (round 1/5) on 70d69a7ff67319913b8261f4068e1f73651b0984 — reading the diff now.
bot-minos approved these changes 2026-11-11 13:46:21 +00:00
Dismissed
bot-minos left a comment

olympus/infra-tracker #47 · reviewed at 70d69a7ff67319913b8261f4068e1f73651b0984 (merge-base 6dca5dd, main tip c12dd6b) · 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 — 55ce0d1 is no longer an ancestor of 70d69a7 — so the round's own delta is 70d69a7 (GLOSSARY.md, Makefile, docs/reference/state.md, scripts/tests/run.sh) on top of the base's e8f22ac..6dca5dd, which is the base's to answer for. The branch's changed-line sets survived the rebase: 570 added / 13 removed at 55ce0d1, 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.

Round 1 At this head Evidence
P1 — the description case grepped the whole log line closed scripts/tests/run.sh:376-390 cuts at description= and matches the sentence's opening; deleting of ${repo} from scripts/snapshot.sh:117 reds it
N1 — -e 'retention' reds on any .tf that mentions the word closed scripts/tests/run.sh:452 carries -e 'proxmox_snap' alone; a .tf with retention in a comment is green, one declaring proxmox_snap is red
S2 — no glossary entry for the new term closed GLOSSARY.md:67-73, and :189-190 saying which sense the state's _Avoid_ line avoids
S3 — "takes no copy of its own" was misleading about the Guest closed docs/reference/state.md:138-141
S1 — the workshop snapshot row names two of the three repos open charged again as S2

Standards

S1 — ADVISORY (merge-gate fact) — the required static check is red at this head. checks run #55, /actions/runs/55, started 2026-11-11T13:41:15Z: checks / static "Failing after 8s", and the job log reads scripts/snapshot.sh: line 44: jq: command not found on every snapshot case, then env-test: 17 assertion(s) FAILED, Job 'static' failed. The runner image the job runs in has no jq: container/Dockerfile:13-23 installs ca-certificates curl git make openssh-client xz-utils python3 python3-venv docker-cli nodejs. The change needs it at scripts/snapshot.sh:44,62 and scripts/guest-vmid.sh:21,25, and AGENTS.md:13-16 §Toolchain is explicit that CI "runs in the runner image, which pins the same OpenTofu and ansible-core versions, so the image is the toolchain there and make is called directly (ADR-0004)". Cost: main goes red on merge, and checks / execute — .forgejo/workflows/checks.yaml:169, needs: static — never runs again on any pull request behind it, so make test-ci stops 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 head 55ce0d1 failed 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 until static is green, whatever this report's recommendation says. Clearing it: the two routes the author named — (1) jq into container/Dockerfile's apt list, make image-publish, the new digest into TEST_RUNNER_IMAGE (a tree change plus an Operator publish); (2) named skips for the jq-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/workshop docs/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 workshop origin/main (read live 2026-11-11 13:44Z, tip 06acdfa), 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 :198 says "A target in help with 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-358 no longer claims the page is off main, 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.sh is not named in the ticket, but "with the vmid read from the repository's own state" is, and this is that read.

Criterion Where it stands
A snapshot Target, predeploy-<YYYYMMDD>-<HHMMSS>, vmid from the repository's own state Makefile:274-277, scripts/guest-vmid.sh, scripts/snapshot.sh:105 — reproduced against the stub Node
The description carries the repository, the commit and the run scripts/snapshot.sh:117; asserted as its own opening at scripts/tests/run.sh:387, and mutated red
After the create, delete every predeploy-* beyond the newest three, by explicit name scripts/snapshot.sh:43-47,130-142; KEEP=4 and a loosened prefix both red
Nothing outside the prefix is touched, retention stays 0 predeploy-<8 digits>-<6 digits> only, select(. != $just) for this run's own name; scripts/tests/run.sh:452
One run leaves one; three runs leave three, another name untouched four runs leave three, operator-before-upgrade never a DELETE
A failed snapshot stops the deploy before any Guest change STUB_PROXMOX_FAIL_CREATE=1 → rc 2, snapshot: error: Proxmox refused, zero DELETEs
An offline test covers the prune's boundary make env-test, inside make check

Verified

What How Result
The floor the body claims mise exec -- make check in a worktree at 70d69a7 exit 0, every suite green
The floor on the tree the squash lands git merge-tree --write-tree origin/main 70d69a7 → archive → make check exit 0, 63 ok — the base's GLOSSARY.md and run.sh edits and the branch's meet cleanly
The branch still applies to main git merge-tree rc 0, no conflict lines
The prune's boundary (criterion 4) KEEP=3→4 in a copy red: FAIL four runs leave three predeploy-* snapshots (want [3], got [4])
The prefix is exact ^predeploy-[0-9]{8}-[0-9]{6}$ → ^predeploy, both places red: FAIL a name outside the exact prefix is never a candidate
"Never the one this run took" deleted select(. != $just) red, 4 assertions incl. the later-sorting-name case
Round 1's P1 is really pinned deleted of ${repo} from snapshot.sh:117 red, 1 assertion, the description's own sentence
Round 1's N1 no longer over-reds a .tf mentioning only retention green (rc 0); proxmox_snap still red
The gate at this head commit statuses and job log for 70d69a7 static failure, jq: command not found, 17 assertions failed — S1
The head did not move while I read git ls-remote origin refs/pull/47/head at 13:46Z and 13:47Z 70d69a7 both times

Not verified

  • The live Proxmox API. No endpoint and no token here; the four routes are exercised only against scripts/tests/stub-proxmox.py. That GET /cluster/resources?type=vm returns 142 for this token, that the create answers a UPID and that DELETE …/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.
  • A real tofu show -json. The suite fabricates the document. The one key that matters is real: modules/guest/container.tf sets vm_id, which is the attribute scripts/guest-vmid.sh:25-29 selects on.
  • make snapshot as a deploy step. Nothing calls it yet (make prod is TR-66), so its place at the head of a deploy is a claim about a future change.
  • The proposed clearing of S1. I did not build or publish a runner image, and I made no ADR amendment.

Named, not charged

  • The description's run field is populated only where GITHUB_RUN_NUMBER exists (scripts/snapshot.sh:112-116); a hand run, or a run without that variable, says by hand, by <user>. Disclosed and deferred to TR-66. The ticket's criterion is met in the environment that has a run id.
  • The prune itself. It deletes PROD snapshots, so I read it against what binds it: olympus/workshop docs/adr/0011 ("a deploy never destroys or replaces") and 0013 (:74, the Deployer "takes the snapshot before the change"), at workshop origin/main 06acdfa. The org's own merge-triggered deploy already prunes: infra-cockpit .forgejo/workflows/deploy.yml:68 runs make prod NONINTERACTIVE=1, whose PROD_STEPS begin snapshot 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 of scripts/snapshot.sh still 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 / edge failed on main's own push run #53 (6dca5dd). Pre-existing on main; no line of this diff.
  • make-targets.md:143 also mis-describes cockpit's copy ("An Ansible playbook" where cockpit runs scripts/snapshot.sh). Another repository's page; S2's clearing covers it.

Summary

Axis Findings Worst
Standards 2 advisories, 0 blockers S1 — the required static check is red at this head: main would go red on merge and execute would stop running behind it
Spec 0 —

The 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 static is green, so the next move is the Operator's choice between the two routes, not another edit to this branch.

<!-- minos review-loop: repo=olympus/infra-tracker pr=47 head=70d69a7ff67319913b8261f4068e1f73651b0984 round=2/5 axes=standards,spec verdict=approve blockers=0 advisories=2 nits=0 --> **olympus/infra-tracker #47** · reviewed at `70d69a7ff67319913b8261f4068e1f73651b0984` (merge-base `6dca5dd`, `main` tip `c12dd6b`) · 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 — `55ce0d1` is no longer an ancestor of `70d69a7` — so the round's own delta is `70d69a7` (`GLOSSARY.md`, `Makefile`, `docs/reference/state.md`, `scripts/tests/run.sh`) on top of the base's `e8f22ac..6dca5dd`, which is the base's to answer for. The branch's changed-line sets survived the rebase: 570 added / 13 removed at `55ce0d1`, 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. | Round 1 | At this head | Evidence | |---|---|---| | P1 — the description case grepped the whole log line | closed | `scripts/tests/run.sh:376-390` cuts at `description=` and matches the sentence's opening; deleting ` of ${repo}` from `scripts/snapshot.sh:117` reds it | | N1 — `-e 'retention'` reds on any `.tf` that mentions the word | closed | `scripts/tests/run.sh:452` carries `-e 'proxmox_snap'` alone; a `.tf` with `retention` in a comment is green, one declaring `proxmox_snap` is red | | S2 — no glossary entry for the new term | closed | `GLOSSARY.md:67-73`, and `:189-190` saying which sense the state's `_Avoid_` line avoids | | S3 — "takes no copy of its own" was misleading about the Guest | closed | `docs/reference/state.md:138-141` | | S1 — the workshop `snapshot` row names two of the three repos | **open** | charged again as S2 | ## Standards **S1 — ADVISORY (merge-gate fact) — the required `static` check is red at this head.** `checks` run #55, `/actions/runs/55`, started 2026-11-11T13:41:15Z: `checks / static` "Failing after 8s", and the job log reads `scripts/snapshot.sh: line 44: jq: command not found` on every snapshot case, then `env-test: 17 assertion(s) FAILED`, `Job 'static' failed`. The runner image the job runs in has no `jq`: `container/Dockerfile:13-23` installs `ca-certificates curl git make openssh-client xz-utils python3 python3-venv docker-cli nodejs`. The change needs it at `scripts/snapshot.sh:44,62` and `scripts/guest-vmid.sh:21,25`, and `AGENTS.md:13-16 §Toolchain` is explicit that CI "runs in the runner image, which pins the same OpenTofu and ansible-core versions, so the image is the toolchain there and `make` is called directly (ADR-0004)". **Cost:** `main` goes red on merge, and `checks / execute` — `.forgejo/workflows/checks.yaml:169`, `needs: static` — never runs again on any pull request behind it, so `make test-ci` stops 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 head `55ce0d1` failed 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 until `static` is green, whatever this report's recommendation says. **Clearing it:** the two routes the author named — (1) `jq` into `container/Dockerfile`'s apt list, `make image-publish`, the new digest into `TEST_RUNNER_IMAGE` (a tree change plus an Operator publish); (2) named skips for the `jq`-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/workshop` `docs/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 workshop `origin/main` (read live 2026-11-11 13:44Z, tip `06acdfa`), 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 `:198` says "A target in `help` with 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-358` no longer claims the page is off `main`, 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.sh` is not named in the ticket, but "with the vmid read from the repository's own state" is, and this is that read. | Criterion | Where it stands | |---|---| | A `snapshot` Target, `predeploy-<YYYYMMDD>-<HHMMSS>`, vmid from the repository's own state | `Makefile:274-277`, `scripts/guest-vmid.sh`, `scripts/snapshot.sh:105` — reproduced against the stub Node | | The description carries the repository, the commit and the run | `scripts/snapshot.sh:117`; asserted as its own opening at `scripts/tests/run.sh:387`, and mutated red | | After the create, delete every `predeploy-*` beyond the newest three, by explicit name | `scripts/snapshot.sh:43-47,130-142`; `KEEP=4` and a loosened prefix both red | | Nothing outside the prefix is touched, retention stays 0 | `predeploy-<8 digits>-<6 digits>` only, `select(. != $just)` for this run's own name; `scripts/tests/run.sh:452` | | One run leaves one; three runs leave three, another name untouched | four runs leave three, `operator-before-upgrade` never a `DELETE` | | A failed snapshot stops the deploy before any Guest change | `STUB_PROXMOX_FAIL_CREATE=1` → rc 2, `snapshot: error: Proxmox refused`, zero `DELETE`s | | An offline test covers the prune's boundary | `make env-test`, inside `make check` | ## Verified | What | How | Result | |---|---|---| | The floor the body claims | `mise exec -- make check` in a worktree at `70d69a7` | exit 0, every suite green | | The floor on the tree the squash lands | `git merge-tree --write-tree origin/main 70d69a7` → archive → `make check` | exit 0, 63 `ok` — the base's `GLOSSARY.md` and `run.sh` edits and the branch's meet cleanly | | The branch still applies to `main` | `git merge-tree` rc | 0, no conflict lines | | The prune's boundary (criterion 4) | `KEEP=3`→`4` in a copy | red: `FAIL four runs leave three predeploy-* snapshots (want [3], got [4])` | | The prefix is exact | `^predeploy-[0-9]{8}-[0-9]{6}$` → `^predeploy`, both places | red: `FAIL a name outside the exact prefix is never a candidate` | | "Never the one this run took" | deleted `select(. != $just)` | red, 4 assertions incl. the later-sorting-name case | | Round 1's P1 is really pinned | deleted ` of ${repo}` from `snapshot.sh:117` | red, 1 assertion, the description's own sentence | | Round 1's N1 no longer over-reds | a `.tf` mentioning only `retention` | green (rc 0); `proxmox_snap` still red | | The gate at this head | commit statuses and job log for `70d69a7` | `static` failure, `jq: command not found`, 17 assertions failed — S1 | | The head did not move while I read | `git ls-remote origin refs/pull/47/head` at 13:46Z and 13:47Z | `70d69a7` both times | ## Not verified - **The live Proxmox API.** No endpoint and no token here; the four routes are exercised only against `scripts/tests/stub-proxmox.py`. That `GET /cluster/resources?type=vm` returns 142 for this token, that the create answers a UPID and that `DELETE …/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. - **A real `tofu show -json`.** The suite fabricates the document. The one key that matters is real: `modules/guest/container.tf` sets `vm_id`, which is the attribute `scripts/guest-vmid.sh:25-29` selects on. - **`make snapshot` as a deploy step.** Nothing calls it yet (`make prod` is TR-66), so its place at the head of a deploy is a claim about a future change. - **The proposed clearing of S1.** I did not build or publish a runner image, and I made no ADR amendment. ## Named, not charged - **The description's run field** is populated only where `GITHUB_RUN_NUMBER` exists (`scripts/snapshot.sh:112-116`); a hand run, or a run without that variable, says `by hand, by <user>`. Disclosed and deferred to TR-66. The ticket's criterion is met in the environment that has a run id. - **The prune itself.** It deletes PROD snapshots, so I read it against what binds it: `olympus/workshop` `docs/adr/0011` ("a deploy never destroys or replaces") and `0013` (`:74`, the Deployer "takes the snapshot before the change"), at workshop `origin/main` `06acdfa`. The org's own merge-triggered deploy already prunes: `infra-cockpit` `.forgejo/workflows/deploy.yml:68` runs `make prod NONINTERACTIVE=1`, whose `PROD_STEPS` begin `snapshot 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 of `scripts/snapshot.sh`** still 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 / edge` failed on `main`'s own push run #53** (`6dca5dd`). Pre-existing on `main`; no line of this diff. - **`make-targets.md:143` also mis-describes cockpit's copy** ("An Ansible playbook" where cockpit runs `scripts/snapshot.sh`). Another repository's page; S2's clearing covers it. ## Summary | Axis | Findings | Worst | |---|---|---| | Standards | 2 advisories, 0 blockers | S1 — the required `static` check is red at this head: `main` would go red on merge and `execute` would stop running behind it | | Spec | 0 | — | The 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 `static` is green, so the next move is the Operator's choice between the two routes, not another edit to this branch.
pit force-pushed hermes/TR-62-the-tracker-s-deploy-snapshots-142-befor from 70d69a7ff6
Some checks failed
checks / static (pull_request) Failing after 8s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Has been skipped
to 9e2f80733e
Some checks failed
checks / static (pull_request) Failing after 8s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Has been skipped
2026-11-11 13:48:40 +00:00
Compare
pit dismissed bot-minos's review 2026-11-11 13:48:40 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Member

Review started (round 1/5) on 9e2f80733e — reading the diff now.

**Review started** (round 1/5) on 9e2f80733e8b1896c174761ccaccbea1444691e6 — reading the diff now.
bot-minos approved these changes 2026-11-11 14:02:16 +00:00
Dismissed
bot-minos left a comment

olympus/infra-tracker #47 · reviewed at 9e2f80733e8b1896c174761ccaccbea1444691e6 (merge-base c12dd6b) · 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 at 70d69a7), and the header's round is that count plus one. This head arrived by force-push — the branch was squashed and rebased onto main's new tip — so 70d69a7 is no longer an ancestor. The feature tree is unchanged: git diff 70d69a7 9e2f807 touches GLOSSARY.md and scripts/tests/run.sh only, and both hunks are main's own lines (bao/recipients/hermes.role_id, container/local.sh came 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 static check, is an Operator decision, not an edit to this branch.

Standards

A1 — ADVISORY (carried from round 2, still open) — the required static check is red at this head.
checks run #58, /actions/runs/58, started 2026-11-11T13:50:41Z: checks / static reads "Failing after 8s". Reproduced by hand: make env-test with a PATH that holds what the runner image holds and no jq → rc 2, scripts/snapshot.sh: line 44: jq: command not found, env-test: 17 assertion(s) FAILED. The image carries no jq (container/Dockerfile:14-24), and AGENTS.md §Toolchain is explicit that the job runs make directly inside it — "the image is the toolchain there" (ADR-0004). The change needs jq at scripts/snapshot.sh:44,62 and scripts/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: main is green at c12dd6b (env-test, 34 assertions, rc 0) and this branch reds that same job, so a merge makes main red and stops execute behind 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) jq into container/Dockerfile's apt list, make image-publish, the new digest into TEST_RUNNER_IMAGE — the Operator's move; or (2) named skips for the jq-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/workshop docs/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 workshop origin/main 06acdfa (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 puts snapshot in a third repo and the row still names two. The description is stale for cockpit as well: that repo runs scripts/snapshot.sh (infra-cockpit origin/main Makefile:500), not forge's Ansible playbook.

Why it stays advisory: the page's own escape valve at :198 — "A target in help with 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-358 no longer claims the page is off main, and names the row as owed.

Clearing it: the companion workshop PR — forge, cockpit, tracker in 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:

./scripts/guest-vmid.sh: line 32: [: : integer expression expected
guest-vmid: error: the state holds  Guest container resource(s), not one; there is no single Guest to snapshot.

The path is reachable: in the Target, a failing tofu show -json (sealed backend, wrong pair) hands this script empty stdin, and make's recipe runs without pipefail, 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 what scripts/tests/run.sh:300,308 assert for the other two refusal classes. Clearing it: default the count (jq 'length' over "${found:-[]}", or // 0) so an empty state reports holds 0 … like the rest, and add the empty-input case beside them.

A4 — ADVISORY (nit-grade) — scripts/snapshot.sh:44 and :132.
The pattern that decides what may be deleted is written twice: ^${PREFIX}-[0-9]{8}-[0-9]{6}$ inside stale_names, and again as pattern= in the prune, where it also feeds the ours count and the per-name delete guard. Two copies of a deletion boundary, ninety lines apart in one file. The suite catches a loosened stale_names copy (I checked), but a drift in :132 alone goes quiet, because that copy only restricts what stale_names already chose. Clearing it: one PATTERN= beside PREFIX.

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 answers 401 on /api/v1/tasks/348, /api/v1/projects and /api/v1/user alike (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.sh is not named in the ticket, but "with the vmid read from the repository's own state" is, and that is the read.

Claim Where it stands
A snapshot Target, predeploy-<YYYYMMDD>-<HHMMSS> (UTC), vmid from the repo's own state Makefile:274-277, scripts/snapshot.sh:105, scripts/guest-vmid.sh — reproduced against the stub Node
The vmid is read by resource type, not by address scripts/guest-vmid.sh:25-29; a renamed address still reads 142, two containers and a missing vm_id both refuse
The description carries the repository, the commit and the run scripts/snapshot.sh:110-117; asserted as its own opening at scripts/tests/run.sh:384-389, and red when of ${repo} is deleted
Beyond the newest three, deleted by explicit name scripts/snapshot.sh:44-47,130-142; KEEP=4 and a loosened prefix each red
Nothing outside the prefix is touched exact-shape regex, select(. != $just) for this run's own name, scripts/tests/run.sh:452; operator-before-upgrade survives four runs
A refused snapshot stops the deploy STUB_PROXMOX_FAIL_CREATE=1 → rc 2, snapshot: error: Proxmox refused, zero DELETEs
The same script as silo diff against infra-silo origin/main is two lines (a comment and the repo= fallback); cockpit's older selection is disclosed in Merge Danger

Round 2's findings, re-driven

Round 2 At this head Evidence
S1 — static red for want of jq open, charged again as A1 run #58 fails; reproduced offline with jq masked out of PATH
S2 — the workshop snapshot row names two of the three repos open, charged again as A2 workshop origin/main 06acdfa :143, read live 13:59Z
Round 1's P1 — the description assertion closed, stays closed deleting of ${repo} from snapshot.sh:117 reds one assertion, the description's own sentence
Round 1's N1 — -e 'retention' over-reds closed, stays closed a .tf mentioning retention in a comment is green; one declaring proxmox_snap reds
Round 1's S2/S3 — the glossary and state.md closed GLOSSARY.md:67-73, docs/reference/state.md:136-141

Verified

What How Result
The floor the body claims mise exec -- make check in a worktree at 9e2f807, no .env, PROXMOX_VE_API_TOKEN/AWS_* unset rc 0; env-test 61 ok, 0 FAIL
The body's "+27 assertions" make env-test at c12dd6b (34 ok) against the head (61 ok) +27, the number holds at this base
The suite is not a rubber stamp KEEP=3→4; ^…-[0-9]{8}-[0-9]{6}$→^predeploy; select(. != $just) deleted; of ${repo} deleted four separate reds, each naming its own case
The retention guard still bites a .tf declaring proxmox_snap dropped into a copy red: no Stack keeps a snapshot retention of its own beside the script
A1, reproduced make env-test with a PATH mirroring the image and jq masked rc 2, 17 assertions failed, jq: command not found
The Target's composition make -n snapshot tofu init → vmid=$(tofu show -json | guest-vmid.sh) → snapshot.sh "$vmid"
The help row make help | grep snapshot one row, as the body claims
The read's other refusals {}, null, garbage, two containers, no vm_id each non-zero, naming the count or the resource (A3 is the empty-input exception)
The suite is not flaky at this head make env-test × 12 12/12 rc 0
No secret in the diff every hunk read, plus a grep for password/token/private-key shapes the token comes from PROXMOX_VE_API_TOKEN into a curl --config pipe; the stub's is a literal fixture
The head did not move while I read git ls-remote refs/pull/47/head at 14:01Z 9e2f807

Not verified

  • The ticket, live. 401 from the profile's Vikunja key this round; see Spec for what stands in.
  • The live Proxmox API. No endpoint and no token: the four routes are exercised only against scripts/tests/stub-proxmox.py. That GET /cluster/resources?type=vm returns 142 for this token, that the create answers a UPID, and that DELETE …/snapshot/<name> is permitted are unproved against a Node. Each fails closed.
  • A real tofu show -json. The suite fabricates the document; the attribute it selects on is real (modules/guest/container.tf sets vm_id).
  • make snapshot as a deploy step. Nothing calls it yet (make prod is TR-66), so its place at the head of a deploy is still a claim about a future change.
  • Whether static is a required check. list_branch_protections answers 403 for this token (not a repo admin). The red check is a fact; its enforcement I take from ADR-0002, not from the platform.
  • A shellcheck pass. Not installed on this host; bash -n is clean on all three scripts.

Named, not charged

  • scripts/tests/run.sh:125 — printf … | grep -q … under set -o pipefail can lose the pipeline to SIGPIPE when grep -q exits first. I saw it once in 18 runs: FAIL the print does not name the path, the names and the version, with printf: 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.
  • The PR body does not say the gate is red. Its Evidence block is honest about how it verified (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 of scripts/snapshot.sh still carries the older selection that can delete the snapshot its own run just took — disclosed in Merge Danger, and that repository's to fix.
  • The prune itself deletes PROD snapshots by name. Read against workshop ADR-0011/0013, it is bounded to its own prefix and never to the name it just took. Charged to nobody.

Summary

Axis Findings Worst
Standards 4 advisories (0 blockers) A1 — the required static check is red: main goes red on merge and execute stops behind it
Spec 0 —

The 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.

<!-- minos review-loop: repo=olympus/infra-tracker pr=47 head=9e2f80733e8b1896c174761ccaccbea1444691e6 round=3/5 axes=standards,spec verdict=approve blockers=0 advisories=4 nits=0 --> **olympus/infra-tracker #47** · reviewed at `9e2f80733e8b1896c174761ccaccbea1444691e6` (merge-base `c12dd6b`) · 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 at `70d69a7`), and the header's round is that count plus one. This head arrived by force-push — the branch was squashed and rebased onto `main`'s new tip — so `70d69a7` is no longer an ancestor. **The feature tree is unchanged**: `git diff 70d69a7 9e2f807` touches `GLOSSARY.md` and `scripts/tests/run.sh` only, and both hunks are `main`'s own lines (`bao/recipients/hermes.role_id`, `container/local.sh` came 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 `static` check, is an Operator decision, not an edit to this branch. ## Standards **A1 — ADVISORY (carried from round 2, still open) — the required `static` check is red at this head.** `checks` run #58, `/actions/runs/58`, started 2026-11-11T13:50:41Z: `checks / static` reads "Failing after 8s". Reproduced by hand: `make env-test` with a `PATH` that holds what the runner image holds and no `jq` → rc 2, `scripts/snapshot.sh: line 44: jq: command not found`, `env-test: 17 assertion(s) FAILED`. The image carries no `jq` (`container/Dockerfile:14-24`), and `AGENTS.md` §Toolchain is explicit that the job runs `make` directly inside it — "the image is the toolchain there" (ADR-0004). The change needs `jq` at `scripts/snapshot.sh:44,62` and `scripts/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:* `main` is green at `c12dd6b` (`env-test`, 34 assertions, rc 0) and this branch reds that same job, so a merge makes `main` red and stops `execute` behind 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) `jq` into `container/Dockerfile`'s apt list, `make image-publish`, the new digest into `TEST_RUNNER_IMAGE` — the Operator's move; or (2) named skips for the `jq`-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/workshop` `docs/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 workshop `origin/main` `06acdfa` (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 puts `snapshot` in a third repo and the row still names two. The description is stale for `cockpit` as well: that repo runs `scripts/snapshot.sh` (`infra-cockpit` `origin/main` `Makefile:500`), not forge's Ansible playbook. *Why it stays advisory:* the page's own escape valve at `:198` — "A target in `help` with 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-358` no longer claims the page is off `main`, and names the row as owed. *Clearing it:* the companion workshop PR — `forge, cockpit, tracker` in 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`: ```text ./scripts/guest-vmid.sh: line 32: [: : integer expression expected guest-vmid: error: the state holds Guest container resource(s), not one; there is no single Guest to snapshot. ``` The path is reachable: in the Target, a failing `tofu show -json` (sealed backend, wrong pair) hands this script empty stdin, and `make`'s recipe runs without `pipefail`, 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 what `scripts/tests/run.sh:300,308` assert for the other two refusal classes. *Clearing it:* default the count (`jq 'length'` over `"${found:-[]}"`, or `// 0`) so an empty state reports `holds 0 …` like the rest, and add the empty-input case beside them. **A4 — ADVISORY (nit-grade) — `scripts/snapshot.sh:44` and `:132`.** The pattern that decides what may be deleted is written twice: `^${PREFIX}-[0-9]{8}-[0-9]{6}$` inside `stale_names`, and again as `pattern=` in the prune, where it also feeds the `ours` count and the per-name delete guard. Two copies of a deletion boundary, ninety lines apart in one file. The suite catches a loosened `stale_names` copy (I checked), but a drift in `:132` alone goes quiet, because that copy only *restricts* what `stale_names` already chose. *Clearing it:* one `PATTERN=` beside `PREFIX`. ## 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 answers `401` on `/api/v1/tasks/348`, `/api/v1/projects` and `/api/v1/user` alike (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.sh` is not named in the ticket, but "with the vmid read from the repository's own state" is, and that is the read. | Claim | Where it stands | |---|---| | A `snapshot` Target, `predeploy-<YYYYMMDD>-<HHMMSS>` (UTC), vmid from the repo's own state | `Makefile:274-277`, `scripts/snapshot.sh:105`, `scripts/guest-vmid.sh` — reproduced against the stub Node | | The vmid is read by resource type, not by address | `scripts/guest-vmid.sh:25-29`; a renamed address still reads 142, two containers and a missing `vm_id` both refuse | | The description carries the repository, the commit and the run | `scripts/snapshot.sh:110-117`; asserted as its own opening at `scripts/tests/run.sh:384-389`, and red when ` of ${repo}` is deleted | | Beyond the newest three, deleted by explicit name | `scripts/snapshot.sh:44-47,130-142`; `KEEP=4` and a loosened prefix each red | | Nothing outside the prefix is touched | exact-shape regex, `select(. != $just)` for this run's own name, `scripts/tests/run.sh:452`; `operator-before-upgrade` survives four runs | | A refused snapshot stops the deploy | `STUB_PROXMOX_FAIL_CREATE=1` → rc 2, `snapshot: error: Proxmox refused`, zero `DELETE`s | | The same script as silo | `diff` against `infra-silo` `origin/main` is two lines (a comment and the `repo=` fallback); cockpit's older selection is disclosed in *Merge Danger* | ## Round 2's findings, re-driven | Round 2 | At this head | Evidence | |---|---|---| | S1 — `static` red for want of `jq` | **open**, charged again as A1 | run #58 fails; reproduced offline with `jq` masked out of `PATH` | | S2 — the workshop `snapshot` row names two of the three repos | **open**, charged again as A2 | workshop `origin/main` `06acdfa` `:143`, read live 13:59Z | | Round 1's P1 — the description assertion | closed, stays closed | deleting ` of ${repo}` from `snapshot.sh:117` reds one assertion, the description's own sentence | | Round 1's N1 — `-e 'retention'` over-reds | closed, stays closed | a `.tf` mentioning `retention` in a comment is green; one declaring `proxmox_snap` reds | | Round 1's S2/S3 — the glossary and `state.md` | closed | `GLOSSARY.md:67-73`, `docs/reference/state.md:136-141` | ## Verified | What | How | Result | |---|---|---| | The floor the body claims | `mise exec -- make check` in a worktree at `9e2f807`, no `.env`, `PROXMOX_VE_API_TOKEN`/`AWS_*` unset | **rc 0**; `env-test` 61 `ok`, 0 `FAIL` | | The body's "+27 assertions" | `make env-test` at `c12dd6b` (34 `ok`) against the head (61 `ok`) | **+27**, the number holds at this base | | The suite is not a rubber stamp | `KEEP=3`→`4`; `^…-[0-9]{8}-[0-9]{6}$`→`^predeploy`; `select(. != $just)` deleted; ` of ${repo}` deleted | four separate reds, each naming its own case | | The retention guard still bites | a `.tf` declaring `proxmox_snap` dropped into a copy | red: `no Stack keeps a snapshot retention of its own beside the script` | | A1, reproduced | `make env-test` with a `PATH` mirroring the image and `jq` masked | rc 2, 17 assertions failed, `jq: command not found` | | The Target's composition | `make -n snapshot` | `tofu init` → `vmid=$(tofu show -json \| guest-vmid.sh)` → `snapshot.sh "$vmid"` | | The help row | `make help \| grep snapshot` | one row, as the body claims | | The read's other refusals | `{}`, `null`, garbage, two containers, no `vm_id` | each non-zero, naming the count or the resource (A3 is the empty-input exception) | | The suite is not flaky at this head | `make env-test` × 12 | 12/12 rc 0 | | No secret in the diff | every hunk read, plus a grep for password/token/private-key shapes | the token comes from `PROXMOX_VE_API_TOKEN` into a `curl --config` pipe; the stub's is a literal fixture | | The head did not move while I read | `git ls-remote refs/pull/47/head` at 14:01Z | `9e2f807` | ## Not verified - **The ticket, live.** `401` from the profile's Vikunja key this round; see *Spec* for what stands in. - **The live Proxmox API.** No endpoint and no token: the four routes are exercised only against `scripts/tests/stub-proxmox.py`. That `GET /cluster/resources?type=vm` returns 142 for this token, that the create answers a UPID, and that `DELETE …/snapshot/<name>` is permitted are unproved against a Node. Each fails closed. - **A real `tofu show -json`.** The suite fabricates the document; the attribute it selects on is real (`modules/guest/container.tf` sets `vm_id`). - **`make snapshot` as a deploy step.** Nothing calls it yet (`make prod` is TR-66), so its place at the head of a deploy is still a claim about a future change. - **Whether `static` is a *required* check.** `list_branch_protections` answers `403` for this token (not a repo admin). The red check is a fact; its enforcement I take from ADR-0002, not from the platform. - **A shellcheck pass.** Not installed on this host; `bash -n` is clean on all three scripts. ## Named, not charged - **`scripts/tests/run.sh:125`** — `printf … | grep -q …` under `set -o pipefail` can lose the pipeline to SIGPIPE when `grep -q` exits first. I saw it once in 18 runs: `FAIL the print does not name the path, the names and the version`, with `printf: 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. - **The PR body** does not say the gate is red. Its Evidence block is honest about *how* it verified (`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** of `scripts/snapshot.sh` still carries the older selection that can delete the snapshot its own run just took — disclosed in *Merge Danger*, and that repository's to fix. - **The prune itself** deletes PROD snapshots by name. Read against workshop ADR-0011/0013, it is bounded to its own prefix and never to the name it just took. Charged to nobody. ## Summary | Axis | Findings | Worst | |---|---|---| | Standards | 4 advisories (0 blockers) | A1 — the required `static` check is red: `main` goes red on merge and `execute` stops behind it | | Spec | 0 | — | The 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.
ci: re-run the static floor on the image that carries jq
All checks were successful
checks / static (pull_request) Successful in 13s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Successful in 2m58s
5a1ae27573
TEST_RUNNER_IMAGE moved to sha256:9ad6b1e9, built from hermes/THE-51-runner-image-jq.
No tree change: the previous head's red was the image's missing jq, not this
branch.
Member

Review started (round 1/5) on 5a1ae27573 — reading the diff now.

**Review started** (round 1/5) on 5a1ae275735d2fa9561811faf6fd508872a36e92 — reading the diff now.
bot-minos approved these changes 2026-11-11 14:30:43 +00:00
Dismissed
bot-minos left a comment

olympus/infra-tracker #47 · reviewed at 5a1ae275735d2fa9561811faf6fd508872a36e92 (merge-base c12dd6b) · 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 at 70d69a7, 572 at 9e2f807), and the header's round is that count plus one.

This round's delta is empty. git diff 9e2f807 5a1ae27 prints 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 Variable TEST_RUNNER_IMAGE now names an image that carries jq. 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 static check is green at this head. checks run #60: checks / static successful in 13s (/actions/runs/60/jobs/0), checks / execute successful in 2m58s (…/jobs/3), and the static job's log ends env-test: every assertion holds. The job ran in forgejo.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 missing jq, not this branch") is reproduced: same tree, new image, red → green. Round 3's jq: command not found failure at scripts/snapshot.sh:44,62 and scripts/guest-vmid.sh:21,25 is gone.

A2 — ADVISORY (carried from rounds 1–3, still open) — olympus/workshop docs/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 workshop origin/main 06acdfa (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 puts snapshot in a third repo and the row still names two. It is stale for cockpit as well: that repo runs scripts/snapshot.sh (infra-cockpit origin/main e07323d, Makefile:505), not forge's Ansible playbook.
Why it stays advisory: the page's own escape valve at :198 — "A target in help with 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-358 no longer claims the page is off main, and names the row as owed.
Clearing it: the companion workshop PR — forge, cockpit, tracker in 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 reads holds Guest container resource(s) with the count missing.
Reachability, driven at this head through the Target itself (a tofu whose show fails with nothing on stdout, as a sealed backend or a wrong pair does):

Error: failed to read the state
guest-vmid.sh: line 32: [: : integer expression expected
guest-vmid: error: the state holds  Guest container resource(s), not one; there is no single Guest to snapshot.
make: *** [Makefile:275: snapshot] Error 1

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-3 sets SHELL := /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 reports holds 0 … like {} already does (I checked: {} reads holds 0 Guest container resource(s) correctly), and add the empty-input case beside the two refusal cases at scripts/tests/run.sh:300,308.

A4 — ADVISORY (carried from round 3, still open) — scripts/snapshot.sh:44 and :132.
The deletion boundary is written twice: ^${PREFIX}-[0-9]{8}-[0-9]{6}$ inside stale_names (:44) and again as pattern= in the prune (:132), where it also feeds the ours count (:133) and the per-name guard.
Driven both ways at this head, which is the difference between the two copies:

mutant make env-test
:44's regex loosened to ^${PREFIX} red, rc 2: FAIL a name outside the exact prefix is never a candidate (want [predeploy-20261101-000000], got […])
:132's pattern= loosened to ^${PREFIX}- green, rc 0, 0 FAIL

So a drift in the first copy is caught and a drift in the second is silent — it only restricts what stale_names already chose, which is why the suite cannot see it. Two copies of a deletion boundary with one of them unpinned.
Clearing it: one PATTERN= beside PREFIX at :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 answers 401 on /projects; the shared key answers 200, 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.sh is not named in the ticket, but "with the vmid read from the repository's own state" is, and that script is the read.

Criterion Where it stands
A snapshot Target, predeploy-<YYYYMMDD>-<HHMMSS> (UTC), vmid from the repository's own state Makefile:274-277, scripts/snapshot.sh:105, scripts/guest-vmid.sh — reproduced against the stub Node
The description carries the repository, the commit and the run scripts/snapshot.sh:110-117; asserted as its own opening at scripts/tests/run.sh:385-388, and red when of ${repo} is deleted
Beyond the newest three, deleted by explicit name scripts/snapshot.sh:43-46,132-142; KEEP=4 and a loosened prefix each red
Nothing outside the prefix is touched exact-shape regex, select(. != $just) for this run's own name, scripts/tests/run.sh:454; operator-before-upgrade survives four runs
One run leaves one; three leave three four runs leave three, and the prune's first DELETE is the first snapshot taken
A refused snapshot stops the deploy STUB_PROXMOX_FAIL_CREATE=1 → rc 2, snapshot: error: Proxmox refused, zero DELETEs
An offline test covers the prune's boundary make env-test, inside make check

Verified

What How Result
The reviewed revision git ls-remote origin refs/pull/47/head, read at 14:26Z and again at 14:41Z and 14:47Z 5a1ae27 all three times
The delta is empty git diff 9e2f807 5a1ae27, git diff --stat no output, no files: the tree repeats round 3's
The floor the body claims mise exec -- make check in a worktree at 5a1ae27, no .env present rc 0, 63 ok, 0 FAIL — including env-check, env-test, fmt -check, validate of guest and edge, and both tofu test suites
The suite is not flaky at this head make env-test × 3 (the floor plus two more) 3/3 rc 0
A1's clearing commit statuses at 5a1ae27 + the static job's own log static success in 13s, execute success in 2m58s, env-test: every assertion holds, image …@sha256:9ad6b1e9…
A3, at this head printf '' | ./scripts/guest-vmid.sh, and the Target with a tofu show that fails silently bash diagnostic + holds Guest …, rc 1 / Target rc 2
A4, at this head the two mutants above, make env-test each one red, one green — the second copy unpinned
The suite still bites :44 loosened (a name outside the exact prefix …), the mutant table above red, naming its own case
A2, at this head workshop origin/main 06acdfa, docs/agents/make-targets.md:143,157,191,198 row still forge, cockpit; the rule and the escape valve as quoted
No secret in the diff every hunk read, plus a grep for token/key/password shapes the token travels in a curl --config pipe read from PROXMOX_VE_API_TOKEN; the stub's value is a fixture
The head did not move while I read git ls-remote at the end of each wave 5a1ae27

Not verified

  • The live Proxmox API. No endpoint and no token here: the four routes are exercised only against scripts/tests/stub-proxmox.py. That GET /cluster/resources?type=vm returns 142 for this token, that the create answers a UPID, and that DELETE …/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.
  • A real tofu show -json. The suite fabricates the document; the attribute it selects on is real (modules/guest/container.tf sets vm_id).
  • make snapshot as a deploy step. Nothing calls it yet (make prod is TR-66), so its place at the head of a deploy remains a claim about a future change.
  • Whether static is a required check. list_branch_protections answers 403 for this token (not a repo admin). The check's green is a fact; its enforcement I take from ADR-0002, not from the platform.
  • A shellcheck pass. Not installed on this host; bash -n is clean on all three scripts.

Named, not charged

  • The image the gate now runs is not on main. container/Dockerfile at this head still installs no jq (grep: no match), and neither does main's copy: the green image was built from the branch of olympus/infra-tracker#50 ("ci: the runner image carries jq…", open, head 838d059). So A1's clearing rests on an artifact of an unmerged branch — if #50 does not land, a later make image-publish from main regresses 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.
  • The prune itself deletes PROD snapshots by name. Read against what binds it: olympus/workshop docs/adr/0011 ("a deploy never destroys or replaces") and 0013 (the Deployer "takes the snapshot before the change"), at workshop origin/main 06acdfa. The org's own merge-triggered deploy already performs the same prune: infra-cockpit .forgejo/workflows/deploy.yml:68 runs make prod NONINTERACTIVE=1, whose PROD_STEPS begin snapshot 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 of scripts/snapshot.sh still carries the older selection that can delete the snapshot its own run just took — disclosed in Merge Danger, and that repository's to fix.
  • The PR body does not mention the empty commit or the image move; its Evidence still describes 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 … under set -o pipefail can 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

Axis Findings Worst
Standards 3 advisories (1 closed this round) A4 — the deletion boundary is written twice and only one copy is pinned: loosening snapshot.sh:132 leaves the suite green
Spec 0 —

The 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 #50 beside it.

<!-- minos review-loop: repo=olympus/infra-tracker pr=47 head=5a1ae275735d2fa9561811faf6fd508872a36e92 round=4/5 axes=standards,spec verdict=approve blockers=0 advisories=3 nits=0 --> **olympus/infra-tracker #47** · reviewed at `5a1ae275735d2fa9561811faf6fd508872a36e92` (merge-base `c12dd6b`) · 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 at `70d69a7`, 572 at `9e2f807`), and the header's round is that count plus one. **This round's delta is empty.** `git diff 9e2f807 5a1ae27` prints 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 Variable `TEST_RUNNER_IMAGE` now names an image that carries `jq`. 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 `static` check is green at this head.** `checks` run #60: `checks / static` *successful in 13s* (`/actions/runs/60/jobs/0`), `checks / execute` *successful in 2m58s* (`…/jobs/3`), and the static job's log ends `env-test: every assertion holds.` The job ran in `forgejo.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 missing `jq`, not this branch") is reproduced: same tree, new image, red → green. Round 3's `jq: command not found` failure at `scripts/snapshot.sh:44,62` and `scripts/guest-vmid.sh:21,25` is gone. **A2 — ADVISORY (carried from rounds 1–3, still open) — `olympus/workshop` `docs/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 workshop `origin/main` `06acdfa` (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 puts `snapshot` in a third repo and the row still names two. It is stale for `cockpit` as well: that repo runs `scripts/snapshot.sh` (`infra-cockpit` `origin/main` `e07323d`, `Makefile:505`), not forge's Ansible playbook. *Why it stays advisory:* the page's own escape valve at `:198` — "A target in `help` with 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-358` no longer claims the page is off `main`, and names the row as owed. *Clearing it:* the companion workshop PR — `forge, cockpit, tracker` in 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 reads `holds Guest container resource(s)` with the count missing. *Reachability, driven at this head through the Target itself* (a `tofu` whose `show` fails with nothing on stdout, as a sealed backend or a wrong pair does): ```text Error: failed to read the state guest-vmid.sh: line 32: [: : integer expression expected guest-vmid: error: the state holds Guest container resource(s), not one; there is no single Guest to snapshot. make: *** [Makefile:275: snapshot] Error 1 ``` 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-3` sets `SHELL := /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 reports `holds 0 …` like `{}` already does (I checked: `{}` reads `holds 0 Guest container resource(s)` correctly), and add the empty-input case beside the two refusal cases at `scripts/tests/run.sh:300,308`. **A4 — ADVISORY (carried from round 3, still open) — `scripts/snapshot.sh:44` and `:132`.** The deletion boundary is written twice: `^${PREFIX}-[0-9]{8}-[0-9]{6}$` inside `stale_names` (`:44`) and again as `pattern=` in the prune (`:132`), where it also feeds the `ours` count (`:133`) and the per-name guard. *Driven both ways at this head,* which is the difference between the two copies: | mutant | `make env-test` | |---|---| | `:44`'s regex loosened to `^${PREFIX}` | **red**, rc 2: `FAIL a name outside the exact prefix is never a candidate (want [predeploy-20261101-000000], got […])` | | `:132`'s `pattern=` loosened to `^${PREFIX}-` | **green**, rc 0, 0 `FAIL` | So a drift in the first copy is caught and a drift in the second is silent — it only *restricts* what `stale_names` already chose, which is why the suite cannot see it. Two copies of a deletion boundary with one of them unpinned. *Clearing it:* one `PATTERN=` beside `PREFIX` at `: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 answers `401` on `/projects`; the shared key answers `200`, 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.sh` is not named in the ticket, but "with the vmid read from the repository's own state" is, and that script is the read. | Criterion | Where it stands | |---|---| | A `snapshot` Target, `predeploy-<YYYYMMDD>-<HHMMSS>` (UTC), vmid from the repository's own state | `Makefile:274-277`, `scripts/snapshot.sh:105`, `scripts/guest-vmid.sh` — reproduced against the stub Node | | The description carries the repository, the commit and the run | `scripts/snapshot.sh:110-117`; asserted as its own opening at `scripts/tests/run.sh:385-388`, and red when ` of ${repo}` is deleted | | Beyond the newest three, deleted by explicit name | `scripts/snapshot.sh:43-46,132-142`; `KEEP=4` and a loosened prefix each red | | Nothing outside the prefix is touched | exact-shape regex, `select(. != $just)` for this run's own name, `scripts/tests/run.sh:454`; `operator-before-upgrade` survives four runs | | One run leaves one; three leave three | four runs leave three, and the prune's first DELETE is the first snapshot taken | | A refused snapshot stops the deploy | `STUB_PROXMOX_FAIL_CREATE=1` → rc 2, `snapshot: error: Proxmox refused`, zero `DELETE`s | | An offline test covers the prune's boundary | `make env-test`, inside `make check` | ## Verified | What | How | Result | |---|---|---| | The reviewed revision | `git ls-remote origin refs/pull/47/head`, read at 14:26Z and again at 14:41Z and 14:47Z | `5a1ae27` all three times | | The delta is empty | `git diff 9e2f807 5a1ae27`, `git diff --stat` | no output, no files: the tree repeats round 3's | | The floor the body claims | `mise exec -- make check` in a worktree at `5a1ae27`, no `.env` present | **rc 0**, 63 `ok`, 0 `FAIL` — including `env-check`, `env-test`, `fmt -check`, `validate` of guest and edge, and both `tofu test` suites | | The suite is not flaky at this head | `make env-test` × 3 (the floor plus two more) | 3/3 rc 0 | | A1's clearing | commit statuses at `5a1ae27` + the static job's own log | `static` success in 13s, `execute` success in 2m58s, `env-test: every assertion holds`, image `…@sha256:9ad6b1e9…` | | A3, at this head | `printf '' \| ./scripts/guest-vmid.sh`, and the Target with a `tofu show` that fails silently | bash diagnostic + `holds Guest …`, rc 1 / Target rc 2 | | A4, at this head | the two mutants above, `make env-test` each | one red, one green — the second copy unpinned | | The suite still bites | `:44` loosened (`a name outside the exact prefix …`), the mutant table above | red, naming its own case | | A2, at this head | workshop `origin/main` `06acdfa`, `docs/agents/make-targets.md:143,157,191,198` | row still `forge, cockpit`; the rule and the escape valve as quoted | | No secret in the diff | every hunk read, plus a grep for token/key/password shapes | the token travels in a `curl --config` pipe read from `PROXMOX_VE_API_TOKEN`; the stub's value is a fixture | | The head did not move while I read | `git ls-remote` at the end of each wave | `5a1ae27` | ## Not verified - **The live Proxmox API.** No endpoint and no token here: the four routes are exercised only against `scripts/tests/stub-proxmox.py`. That `GET /cluster/resources?type=vm` returns 142 for this token, that the create answers a UPID, and that `DELETE …/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. - **A real `tofu show -json`.** The suite fabricates the document; the attribute it selects on is real (`modules/guest/container.tf` sets `vm_id`). - **`make snapshot` as a deploy step.** Nothing calls it yet (`make prod` is TR-66), so its place at the head of a deploy remains a claim about a future change. - **Whether `static` is a *required* check.** `list_branch_protections` answers `403` for this token (not a repo admin). The check's green is a fact; its enforcement I take from ADR-0002, not from the platform. - **A shellcheck pass.** Not installed on this host; `bash -n` is clean on all three scripts. ## Named, not charged - **The image the gate now runs is not on `main`.** `container/Dockerfile` at this head still installs no `jq` (grep: no match), and neither does `main`'s copy: the green image was built from the branch of `olympus/infra-tracker#50` (*"ci: the runner image carries jq…"*, open, head `838d059`). So A1's clearing rests on an artifact of an unmerged branch — if #50 does not land, a later `make image-publish` from `main` regresses 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. - **The prune itself** deletes PROD snapshots by name. Read against what binds it: `olympus/workshop` `docs/adr/0011` ("a deploy never destroys or replaces") and `0013` (the Deployer "takes the snapshot before the change"), at workshop `origin/main` `06acdfa`. The org's own merge-triggered deploy already performs the same prune: `infra-cockpit` `.forgejo/workflows/deploy.yml:68` runs `make prod NONINTERACTIVE=1`, whose `PROD_STEPS` begin `snapshot 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** of `scripts/snapshot.sh` still carries the older selection that can delete the snapshot its own run just took — disclosed in *Merge Danger*, and that repository's to fix. - **The PR body** does not mention the empty commit or the image move; its *Evidence* still describes `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 …` under `set -o pipefail` can 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 | Axis | Findings | Worst | |---|---|---| | Standards | 3 advisories (1 closed this round) | A4 — the deletion boundary is written twice and only one copy is pinned: loosening `snapshot.sh:132` leaves the suite green | | Spec | 0 | — | The 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 `#50` beside it.
Author
Member

Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.

**Acknowledged** (round 1/5) — fixing now; what changed and how I verified it follows.
fix(review): the empty state refuses with its own count, and the boundary is one constant (TR-62)
All checks were successful
checks / static (pull_request) Successful in 13s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Successful in 3m0s
544e31dd36
A3: `scripts/guest-vmid.sh` took the count out of the resource list with
`jq 'length'` over a value that is the empty string when the state arrives
empty — a `tofu show -json` that fails with nothing on stdout, which is what a
sealed store or a wrong credential pair produces. `[ "" -eq 1 ]` then printed
bash's own diagnostic ahead of the script's sentence, and the sentence read
`holds  Guest container resource(s)`, with the number it exists to carry
missing. `[]` is what "no such resource" already reads as, so the empty state is
the same refusal with its 0 — and `scripts/tests/run.sh` pins it beside the
other refusal cases, one assertion for the count and one for the absence of the
diagnostic.

A4: the deletion boundary was written twice in `scripts/snapshot.sh` — the
regex inside `stale_names`, and `pattern=` in the prune, which also fed the
`ours` count and the per-name guard. Only the first was pinned: loosening the
second to `^predeploy-` left the suite green, because it only restricts what
`stale_names` had already chosen. One `PATTERN=` beside `PREFIX` now feeds all
three, so the loosening the suite catches is the only loosening there is.

The behaviour the ticket asks for is unchanged: the same selection, the same
names deleted, the same refusals — a red Target before anything on the Guest
changes.

Verified: `mise exec -- make check`, rc 0, 65 ok, 0 FAIL.
bot-efesto dismissed bot-minos's review 2026-11-11 14:37:55 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Member

Review started (round 2/5) on 544e31dd36 — reading the diff now.

**Review started** (round 2/5) on 544e31dd36bf1832e324d34bb1b230f9bf5f984c — reading the diff now.
Author
Member

Round 4 fix report · head 544e31d · one new commit, fast-forward 5a1ae27..544e31d, no rewrite

The dispatch announced blocking findings; review 584 at 5a1ae27 tallied APPROVE, 0 blockers, 3 advisories with recommendation: 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.

Finding Change Where
A3 — an empty state made [ "" -eq 1 ] print bash's own diagnostic ahead of the script's sentence, and the sentence then read holds Guest container resource(s) the count is read over ${found:-[]}, so an empty read is the same "no such resource" the {} case already reports: holds 0 …, in the script's own sentence scripts/guest-vmid.sh:31-38
A3's case the empty-input refusal pinned beside the other two refusal cases: one assertion for the count, one for the absence of the diagnostic scripts/tests/run.sh:313-326
A4 — the deletion boundary was written twice in scripts/snapshot.sh, and only the copy inside stale_names was pinned one PATTERN= beside PREFIX at :26-31, read by stale_names, by the ours count and by the per-name guard before each DELETE; the pattern= copy is gone scripts/snapshot.sh:26-31, 49, 137-141
A1 — the required static check nothing to do this round: it was green at the reviewed head and is green at this one —
A2 — the olympus/workshop make-targets.md row not landed: that page is another repository. See Left alone —

Commit: 544e31d fix(review): the empty state refuses with its own count, and the boundary is one constant (TR-62)

Verified

mise exec -- make check on an archive of 544e31d (git archive HEAD | tar -x -C <fresh>), with PROXMOX_VE_API_TOKEN, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY unset and no .env:

rc=0    5 × Success (three configurations, two tofu test suites)
        run "the_test_guest_is_created_in_the_pre_pool"... pass
        run "no_certificate_fails_the_plan"... pass
65 ok   0 FAIL
env-test: every assertion holds.

The gate, at this head. checks run #66 fired on the push and both legs are green:

job verdict
checks / static successful in 13s
checks / execute successful in 3m0s

Its own log, read from /actions/runs/66/jobs/0/attempt/1/logs:

🚀  Start image=forgejo.thepit.space/olympus/infra-tracker-test@sha256:9ad6b1e942b6a35a3c0ac24795be362e5499923d3bbbb8aae38d41e888a267c5
  ok    an empty state refuses, naming the count
  ok    an empty state refuses in the script's own sentence
env-test: every assertion holds.

So the branch's own new cases are the ones the job ran, in the jq-carrying image, and the count is 65 ok there too.

A3's red side, driven both ways at 544e31d. The same input, printf '' | ./scripts/guest-vmid.sh:

reviewed (`5a1ae27`):
  ./scripts/guest-vmid.sh: line 32: [: : integer expression expected
  guest-vmid: error: the state holds  Guest container resource(s), not one; …
  rc=1
branch (`544e31d`):
  guest-vmid: error: the state holds 0 Guest container resource(s), not one; …
  rc=1

and the suite, with the reviewed guest-vmid.sh restored into the branch tree for the run:

  FAIL  an empty state refuses without naming the count
  FAIL  an empty state printed bash's own diagnostic ahead of the refusal
env-test: 2 assertion(s) FAILED.   rc=2

Restored, both are ok. The refusal is unchanged in what it does — a red Target, rc 1 from 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 to PATTERN="^${PREFIX}-" in a copy, make env-test:

  FAIL  a name outside the exact prefix is never a candidate (want [predeploy-20261101-000000], got [predeploy-20261101-000000
env-test: 1 assertion(s) FAILED.   rc=2

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 and scripts/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-test in an archive of each revision: c12dd6b (main) 34 ok, 5a1ae27 (reviewed) 61, 544e31d 63 — so the branch adds 29 assertions, and the PR body's +27 in the tree diagram was a figure this round made false. It is corrected to +29 in the body, and read back from the API after the write (4806 chars, equal to what was sent, +29 once and +27 zero times).

Register. Every added line is inside its file's own widest line (snapshot.sh 143, guest-vmid.sh 126, run.sh 186), and the new comments are wrapped to the 79–80 columns the scripts already use. bash -n is clean on all three. glossary-vocab-check.py . HEAD reports 3 collisions over 31 added lines — container and naming, both inherited from the assertion sentences this case sits beside (holds 0 Guest container resource(s), naming the count, already at run.sh:308-310 at the reviewed head). The one word the scan caught on my own prose, backend, was rewritten out. shellcheck is not installed on this host.

Left alone, deliberately

  • A2, the olympus/workshop row. 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-358 no longer claims the page is off main, 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 the POST line), not what the prune selects. Folding it into PATTERN would 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.
  • The #50 ordering, which the review named and did not charge. container/Dockerfile at this head still carries no jq; the green image above is an artifact of olympus/infra-tracker#50, still open. If #50 does not land with or before this PR, a later make image-publish from main puts the gate back to red. Nothing in this diff can fix that, and it is not made better or worse by this round.
  • Not verified, unchanged from the review: the live Proxmox API (no endpoint and no token here — the four routes are exercised against scripts/tests/stub-proxmox.py, and every failure path refuses before the Guest changes), a real tofu show -json, and make snapshot as a deploy step (nothing calls it yet; make prod is TR-66).
<!-- fix-meta: repo=olympus/infra-tracker pr=47 head=544e31d round=4/5 dispatch-round=1/5 --> **Round 4 fix report** · head `544e31d` · one new commit, fast-forward `5a1ae27..544e31d`, no rewrite The dispatch announced blocking findings; review 584 at `5a1ae27` tallied **APPROVE, 0 blockers, 3 advisories** with `recommendation: 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. | Finding | Change | Where | | --- | --- | --- | | **A3** — an empty state made `[ "" -eq 1 ]` print bash's own diagnostic ahead of the script's sentence, and the sentence then read `holds Guest container resource(s)` | the count is read over `${found:-[]}`, so an empty read is the same "no such resource" the `{}` case already reports: `holds 0 …`, in the script's own sentence | `scripts/guest-vmid.sh:31-38` | | **A3's case** | the empty-input refusal pinned beside the other two refusal cases: one assertion for the count, one for the absence of the diagnostic | `scripts/tests/run.sh:313-326` | | **A4** — the deletion boundary was written twice in `scripts/snapshot.sh`, and only the copy inside `stale_names` was pinned | one `PATTERN=` beside `PREFIX` at `:26-31`, read by `stale_names`, by the `ours` count and by the per-name guard before each DELETE; the `pattern=` copy is gone | `scripts/snapshot.sh:26-31, 49, 137-141` | | **A1** — the required `static` check | nothing to do this round: it was green at the reviewed head and is green at this one | — | | **A2** — the `olympus/workshop` `make-targets.md` row | **not landed: that page is another repository.** See *Left alone* | — | Commit: `544e31d fix(review): the empty state refuses with its own count, and the boundary is one constant (TR-62)` ## Verified `mise exec -- make check` on an archive of `544e31d` (`git archive HEAD | tar -x -C <fresh>`), with `PROXMOX_VE_API_TOKEN`, `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` unset and no `.env`: ```text rc=0 5 × Success (three configurations, two tofu test suites) run "the_test_guest_is_created_in_the_pre_pool"... pass run "no_certificate_fails_the_plan"... pass 65 ok 0 FAIL env-test: every assertion holds. ``` **The gate, at this head.** `checks` run #66 fired on the push and both legs are green: | job | verdict | | --- | --- | | `checks / static` | successful in 13s | | `checks / execute` | successful in 3m0s | Its own log, read from `/actions/runs/66/jobs/0/attempt/1/logs`: ```text 🚀 Start image=forgejo.thepit.space/olympus/infra-tracker-test@sha256:9ad6b1e942b6a35a3c0ac24795be362e5499923d3bbbb8aae38d41e888a267c5 ok an empty state refuses, naming the count ok an empty state refuses in the script's own sentence env-test: every assertion holds. ``` So the branch's own new cases are the ones the job ran, in the `jq`-carrying image, and the count is 65 `ok` there too. **A3's red side**, driven both ways at `544e31d`. The same input, `printf '' | ./scripts/guest-vmid.sh`: ```text reviewed (`5a1ae27`): ./scripts/guest-vmid.sh: line 32: [: : integer expression expected guest-vmid: error: the state holds Guest container resource(s), not one; … rc=1 branch (`544e31d`): guest-vmid: error: the state holds 0 Guest container resource(s), not one; … rc=1 ``` and the suite, with the reviewed `guest-vmid.sh` restored into the branch tree for the run: ```text FAIL an empty state refuses without naming the count FAIL an empty state printed bash's own diagnostic ahead of the refusal env-test: 2 assertion(s) FAILED. rc=2 ``` Restored, both are `ok`. The refusal is unchanged in what it does — a red Target, `rc 1` from 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 to `PATTERN="^${PREFIX}-"` in a copy, `make env-test`: ```text FAIL a name outside the exact prefix is never a candidate (want [predeploy-20261101-000000], got [predeploy-20261101-000000 env-test: 1 assertion(s) FAILED. rc=2 ``` 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 and `scripts/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-test` in an archive of each revision: `c12dd6b` (main) **34** `ok`, `5a1ae27` (reviewed) **61**, `544e31d` **63** — so the branch adds **29** assertions, and the PR body's `+27` in the tree diagram was a figure this round made false. It is corrected to `+29` in the body, and read back from the API after the write (4806 chars, equal to what was sent, `+29` once and `+27` zero times). **Register.** Every added line is inside its file's own widest line (`snapshot.sh` 143, `guest-vmid.sh` 126, `run.sh` 186), and the new comments are wrapped to the 79–80 columns the scripts already use. `bash -n` is clean on all three. `glossary-vocab-check.py . HEAD` reports 3 collisions over 31 added lines — `container` and `naming`, both inherited from the assertion sentences this case sits beside (`holds 0 Guest container resource(s)`, `naming the count`, already at `run.sh:308-310` at the reviewed head). The one word the scan caught on my own prose, `backend`, was rewritten out. `shellcheck` is not installed on this host. ## Left alone, deliberately - **A2, the `olympus/workshop` row.** 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-358` no longer claims the page is off `main`, 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 the `POST` line), not what the prune selects. Folding it into `PATTERN` would 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. - **The `#50` ordering, which the review named and did not charge.** `container/Dockerfile` at this head still carries no `jq`; the green image above is an artifact of `olympus/infra-tracker#50`, still open. If #50 does not land with or before this PR, a later `make image-publish` from `main` puts the gate back to red. Nothing in this diff can fix that, and it is not made better or worse by this round. - **Not verified, unchanged from the review:** the live Proxmox API (no endpoint and no token here — the four routes are exercised against `scripts/tests/stub-proxmox.py`, and every failure path refuses before the Guest changes), a real `tofu show -json`, and `make snapshot` as a deploy step (nothing calls it yet; `make prod` is TR-66).
bot-minos approved these changes 2026-11-11 14:48:01 +00:00
bot-minos left a comment

olympus/infra-tracker #47 · reviewed at 544e31dd36bf1832e324d34bb1b230f9bf5f984c (merge-base c12dd6b) · 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 at 70d69a7, 572 at 9e2f807, 584 at 5a1ae27), 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 commit 544e31d 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 in olympus/workshop docs/adr/ at origin/main 06acdfa (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:

head   544e31d  rc 1  guest-vmid: error: the state holds 0 Guest container resource(s), not one; there is no single Guest to snapshot.
prior  5a1ae27  rc 1  .../guest-vmid.sh: line 32: [: : integer expression expected
                      guest-vmid: error: the state holds  Guest container resource(s), not one; ...

The head prints no bash diagnostic and carries the 0; the prior head omits the number it exists to carry. The new case at scripts/tests/run.sh:313-326 has both halves — holds 0 Guest container resource(s) present, integer expression expected absent — and it can fail: run against the prior script it reds both, FAIL an empty state refuses without naming the count and FAIL an empty state printed bash's own diagnostic ahead of the refusal, rc 1; against the head's script, 0 FAIL.

A4 — CLOSED this round — scripts/snapshot.sh:31 (was :44 and :132).
The deletion boundary is now one constant, PATTERN="^${PREFIX}-[0-9]{8}-[0-9]{6}\$", read by the selection at :49, by the ours census at :137, and by the per-name guard at :141. grep -rn '\[0-9\]{8}' scripts/ Makefile leaves exactly one occurrence in scripts/snapshot.sh (plus the test's own independent shape assertion at scripts/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:

mutant of scripts/snapshot.sh:31 make env-test
PATTERN="^${PREFIX}" (the round-4 survivor) red, rc 1 — 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) red, rc 1 — 8 FAIL
unchanged head green, rc 0, 0 FAIL, 63 ok

A2 — ADVISORY (carried from rounds 1–4, still open) — olympus/workshop docs/agents/make-targets.md:143.
Re-read live this round at workshop origin/main 06acdfa (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/workshop still 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 in help with 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-358 no longer claims the page is off main and names the row as owed.
Clearing it: the companion workshop PR — forge, cockpit, tracker in 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.sh 80 ≤ 126, snapshot.sh 111 ≤ 141, run.sh 82 ≤ 184), bash -n is clean on all three scripts, and the new comment blocks match the rationale-comment style the rest of scripts/ 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=4 and under a loosened prefix, and the four-run case still deletes exactly the oldest by name.

Verified

What How Result
The reviewed revision git ls-remote origin refs/pull/47/head at the start and the end of each wave 544e31d every time
The delta git merge-base --is-ancestor 5a1ae27 544e31d; git diff --stat ancestor yes; 3 files, +31/−5 — the fixer stacked, nothing else moved
The floor the body claims mise exec -- make check in a worktree at 544e31d, no .env present rc 0, 65 ok, 0 FAIL (both tofu test suites pass)
The assertion count in the body ./scripts/tests/run.sh at c12dd6b (34 ok) and at head (63 ok) +29, which is the body's figure; the base and head numbers are from the same counter
A3's clearing head vs 5a1ae27 script on an empty state; head's suite against each red/green pair above
A4's clearing three mutants of :31, make env-test each; control at head 2 red, control green, and the round-4 survivor is now red
The required gate commit statuses at 544e31d; run #66; the static job's own log static success 13s, execute success 3m0s; log line 166 env-test: every assertion holds.; image …infra-tracker-test@sha256:9ad6b1e9…
The Target still composes mise exec -- make -n snapshot tofu init -input=false → vmid=$(tofu show -json | …/guest-vmid.sh) → …/snapshot.sh "$vmid"
A2, at this head workshop origin/main 06acdfa, make-targets.md:143,157,198; workshop open PRs row still two repos; the rule and the escape valve as quoted; no row PR (#49 is ADRs)
No secret in the diff every hunk read; grep -icE '(token|secret|password|api[_-]?key)\s*=\s*[A-Za-z0-9/+_-]{8,}' over the 86-line delta 0

Charter 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:68 runs make prod NONINTERACTIVE=1, whose PROD_STEPS (Makefile:67) begin snapshot. Named, not charged, below.

Not verified

  • The live Proxmox API. No endpoint and no token here: the four routes are exercised only against 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.
  • A real tofu show -json. The suite fabricates the document; the attribute it selects on is real (modules/guest/container.tf sets vm_id).
  • make snapshot as a deploy step. Nothing calls it yet (make prod is TR-66).
  • Whether static is a required context. list_branch_protections answers 403 for this token (not a repo admin); the check's green is a fact, its enforcement I take from ADR-0002.
  • A shellcheck pass. Not installed on this host; bash -n is clean on all three scripts.

Named, not charged

  • The image the gate runs is still not on main, and #50 is still open (head faa3809). container/Dockerfile at this head installs no jq (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: #50 merges with or before #47. Unchanged from round 4, restated so the merge is not read as self-clearing.
  • infra-cockpit's copy of scripts/snapshot.sh (origin/main e07323d) still carries the older selection — its stale_names excludes nothing for the name its own run just took. That repository's to fix; disclosed in this PR's Merge Danger.
  • The prune deletes PROD snapshots by name, bounded to 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.
  • The sourced block's wording at scripts/snapshot.sh:55-56 says the file "sets nothing either" while it has long set PREFIX, KEEP and TASK_TIMEOUT, and now sets PATTERN too. Pre-existing wording on a line this diff does not touch, and the intent (it sets no shell options) is clear.

Summary

Axis Findings Worst
Standards 1 advisory (2 closed this round) A2 — the workshop snapshot row 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 prohibition
Spec 0 —

Both 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.

<!-- minos review-loop: repo=olympus/infra-tracker pr=47 head=544e31dd36bf1832e324d34bb1b230f9bf5f984c round=5/5 axes=standards,spec verdict=approve blockers=0 advisories=1 nits=0 --> **olympus/infra-tracker #47** · reviewed at `544e31dd36bf1832e324d34bb1b230f9bf5f984c` (merge-base `c12dd6b`) · 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 at `70d69a7`, 572 at `9e2f807`, 584 at `5a1ae27`), 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 commit `544e31d 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 in `olympus/workshop` `docs/adr/` at `origin/main` `06acdfa` (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: ```text head 544e31d rc 1 guest-vmid: error: the state holds 0 Guest container resource(s), not one; there is no single Guest to snapshot. prior 5a1ae27 rc 1 .../guest-vmid.sh: line 32: [: : integer expression expected guest-vmid: error: the state holds Guest container resource(s), not one; ... ``` The head prints no bash diagnostic and carries the `0`; the prior head omits the number it exists to carry. The new case at `scripts/tests/run.sh:313-326` has both halves — `holds 0 Guest container resource(s)` present, `integer expression expected` absent — and it can fail: run against the **prior** script it reds **both**, `FAIL an empty state refuses without naming the count` and `FAIL an empty state printed bash's own diagnostic ahead of the refusal`, rc 1; against the head's script, 0 `FAIL`. **A4 — CLOSED this round — `scripts/snapshot.sh:31` (was `:44` and `:132`).** The deletion boundary is now one constant, `PATTERN="^${PREFIX}-[0-9]{8}-[0-9]{6}\$"`, read by the selection at `:49`, by the `ours` census at `:137`, and by the per-name guard at `:141`. `grep -rn '\[0-9\]{8}' scripts/ Makefile` leaves exactly one occurrence in `scripts/snapshot.sh` (plus the test's own independent shape assertion at `scripts/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: | mutant of `scripts/snapshot.sh:31` | `make env-test` | |---|---| | `PATTERN="^${PREFIX}"` (the round-4 survivor) | **red**, rc 1 — `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) | **red**, rc 1 — 8 `FAIL` | | unchanged head | **green**, rc 0, 0 `FAIL`, 63 `ok` | **A2 — ADVISORY (carried from rounds 1–4, still open) — `olympus/workshop` `docs/agents/make-targets.md:143`.** Re-read live this round at workshop `origin/main` `06acdfa` (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/workshop` still 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 in `help` with 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-358` no longer claims the page is off `main` and names the row as owed. *Clearing it:* the companion workshop PR — `forge, cockpit, tracker` in 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.sh` 80 ≤ 126, `snapshot.sh` 111 ≤ 141, `run.sh` 82 ≤ 184), `bash -n` is clean on all three scripts, and the new comment blocks match the rationale-comment style the rest of `scripts/` 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=4` and under a loosened prefix, and the four-run case still deletes exactly the oldest by name. ## Verified | What | How | Result | |---|---|---| | The reviewed revision | `git ls-remote origin refs/pull/47/head` at the start and the end of each wave | `544e31d` every time | | The delta | `git merge-base --is-ancestor 5a1ae27 544e31d`; `git diff --stat` | ancestor yes; 3 files, +31/−5 — the fixer stacked, nothing else moved | | The floor the body claims | `mise exec -- make check` in a worktree at `544e31d`, no `.env` present | **rc 0**, 65 `ok`, 0 `FAIL` (both `tofu test` suites pass) | | The assertion count in the body | `./scripts/tests/run.sh` at `c12dd6b` (34 `ok`) and at head (63 `ok`) | **+29**, which is the body's figure; the base and head numbers are from the same counter | | A3's clearing | head vs `5a1ae27` script on an empty state; head's suite against each | red/green pair above | | A4's clearing | three mutants of `:31`, `make env-test` each; control at head | 2 red, control green, and the round-4 survivor is now red | | The required gate | commit statuses at `544e31d`; run #66; the `static` job's own log | `static` success 13s, `execute` success 3m0s; log line 166 `env-test: every assertion holds.`; image `…infra-tracker-test@sha256:9ad6b1e9…` | | The Target still composes | `mise exec -- make -n snapshot` | `tofu init -input=false` → `vmid=$(tofu show -json \| …/guest-vmid.sh)` → `…/snapshot.sh "$vmid"` | | A2, at this head | workshop `origin/main` `06acdfa`, `make-targets.md:143,157,198`; workshop open PRs | row still two repos; the rule and the escape valve as quoted; no row PR (`#49` is ADRs) | | No secret in the diff | every hunk read; `grep -icE '(token\|secret\|password\|api[_-]?key)\s*=\s*[A-Za-z0-9/+_-]{8,}'` over the 86-line delta | 0 | Charter 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:68` runs `make prod NONINTERACTIVE=1`, whose `PROD_STEPS` (`Makefile:67`) begin `snapshot`. Named, not charged, below. ## Not verified - **The live Proxmox API.** No endpoint and no token here: the four routes are exercised only against `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. - **A real `tofu show -json`.** The suite fabricates the document; the attribute it selects on is real (`modules/guest/container.tf` sets `vm_id`). - **`make snapshot` as a deploy step.** Nothing calls it yet (`make prod` is TR-66). - **Whether `static` is a *required* context.** `list_branch_protections` answers `403` for this token (not a repo admin); the check's green is a fact, its enforcement I take from ADR-0002. - **A shellcheck pass.** Not installed on this host; `bash -n` is clean on all three scripts. ## Named, not charged - **The image the gate runs is still not on `main`, and `#50` is still open** (head `faa3809`). `container/Dockerfile` at this head installs no `jq` (`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: **`#50` merges with or before `#47`.** Unchanged from round 4, restated so the merge is not read as self-clearing. - **`infra-cockpit`'s copy** of `scripts/snapshot.sh` (`origin/main` `e07323d`) still carries the older selection — its `stale_names` excludes nothing for the name its own run just took. That repository's to fix; disclosed in this PR's *Merge Danger*. - **The prune deletes PROD snapshots by name**, bounded to `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. - **The `sourced` block's wording** at `scripts/snapshot.sh:55-56` says the file "sets nothing either" while it has long set `PREFIX`, `KEEP` and `TASK_TIMEOUT`, and now sets `PATTERN` too. Pre-existing wording on a line this diff does not touch, and the intent (it sets no shell options) is clear. ## Summary | Axis | Findings | Worst | |---|---|---| | Standards | 1 advisory (2 closed this round) | A2 — the workshop `snapshot` row 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 prohibition | | Spec | 0 | — | Both 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.
pit merged commit d02a000994 into main 2026-11-11 17:43:19 +00:00
pit deleted branch hermes/TR-62-the-tracker-s-deploy-snapshots-142-befor 2026-11-11 17:43:19 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olympus/infra-tracker!47
No description provided.