Declare the cluster's API objects and the /etc/pve archive #1

Merged
pit merged 5 commits from hermes/the37-infra-cluster into main 2026-12-04 07:52:34 +00:00
Owner

paperclip:THE-37

Summary

The infra-cluster repository: the cluster's own API objects in the wave plan's order, and the /etc/pve archive no vzdump job covers.

cluster/
├── pools.tf              pre, prod
├── pool_memberships.tf   21 Guests in prod
├── roles.tf              8 custom roles
├── group.tf              operator
├── users.tf              5 token-only identities
├── acls.tf               93 rows, keyed by the provider's import ID
├── tokens.tf             12 token objects (no values)
├── storage.tf            4 definitions
├── backup_jobs.tf        3 jobs, W0.2 retention, stored schedules
├── datacenter.tf         keyboard, mac_prefix; allowed-tags is a gap
├── firewall.tf           off, no rules — declared by absence
├── sdn.tf                empty
└── outputs.tf
notifications/            ops-email + backup-errors (no provider resource)
pve-config-backup/        daily /etc/pve archive on each node

The access objects match ADR-0013 and THE-5: the Operator's reach is the operator group and hermes@pve!operator, four rows on /access and /pool/prod, and no other object names Hermes. The backup jobs carry the W0.2 retention (keep-last=1,keep-weekly=2,keep-monthly=2) and the stored schedule strings (02:22, 3:33, 4:44).

Evidence

Check Result
mise exec -- make check env-check: the pin and the map agree
mise exec -- make validate Success! The configuration is valid.
tofu fmt -recursive -check no diff
ansible-playbook --syntax-check on both plays both pass
Import against the live cluster, 2026-12-03 150 imported, 0 failed
tofu plan after the import 0 to add, 1 to change, 0 to destroy

The one change is proxmox_storage_nfs.synology: the backups { keep_all = true } block. The provider populates that block only when the state already carries it, so an import reads nothing and the plan proposes writing it. The live storage already holds prune-backups keep-all=1; the apply writes the same value and later plans are clean. Nothing else in the Stack changes.

The import and plan ran with a temporary read credential minted for the verification and revoked afterwards; its value was never written to the repository or to a log.

Merge Danger

Door: two-way. The merge lands a repository; it applies nothing. There is no deploy workflow, because no ADR-0013 role holds the cluster settings this Stack changes — the Operator reaches /access and /pool/prod, and Sys.Modify at / is only root@pam's. docs/deploy.md states the gap; the apply is the Operator's, by hand, until the board decides the identity.

Blast Radius: none until an apply. The repository declares access, so a wrong declaration is a wrong apply later, not a change on merge. make plan-check refuses a destroy or replace, and prevent_destroy guards the token objects.

paperclip:THE-37 ## Summary The `infra-cluster` repository: the cluster's own API objects in the wave plan's order, and the `/etc/pve` archive no vzdump job covers. ```text cluster/ ├── pools.tf pre, prod ├── pool_memberships.tf 21 Guests in prod ├── roles.tf 8 custom roles ├── group.tf operator ├── users.tf 5 token-only identities ├── acls.tf 93 rows, keyed by the provider's import ID ├── tokens.tf 12 token objects (no values) ├── storage.tf 4 definitions ├── backup_jobs.tf 3 jobs, W0.2 retention, stored schedules ├── datacenter.tf keyboard, mac_prefix; allowed-tags is a gap ├── firewall.tf off, no rules — declared by absence ├── sdn.tf empty └── outputs.tf notifications/ ops-email + backup-errors (no provider resource) pve-config-backup/ daily /etc/pve archive on each node ``` The access objects match ADR-0013 and THE-5: the Operator's reach is the `operator` group and `hermes@pve!operator`, four rows on `/access` and `/pool/prod`, and no other object names Hermes. The backup jobs carry the W0.2 retention (`keep-last=1,keep-weekly=2,keep-monthly=2`) and the stored schedule strings (`02:22`, `3:33`, `4:44`). ## Evidence | Check | Result | | --- | --- | | `mise exec -- make check` | `env-check: the pin and the map agree` | | `mise exec -- make validate` | `Success! The configuration is valid.` | | `tofu fmt -recursive -check` | no diff | | `ansible-playbook --syntax-check` on both plays | both pass | | Import against the live cluster, 2026-12-03 | **150 imported, 0 failed** | | `tofu plan` after the import | **0 to add, 1 to change, 0 to destroy** | The one change is `proxmox_storage_nfs.synology`: the `backups { keep_all = true }` block. The provider populates that block only when the state already carries it, so an import reads nothing and the plan proposes writing it. The live storage already holds `prune-backups keep-all=1`; the apply writes the same value and later plans are clean. Nothing else in the Stack changes. The import and plan ran with a temporary read credential minted for the verification and revoked afterwards; its value was never written to the repository or to a log. ## Merge Danger **Door:** two-way. The merge lands a repository; it applies nothing. There is no deploy workflow, because no ADR-0013 role holds the cluster settings this Stack changes — the Operator reaches `/access` and `/pool/prod`, and `Sys.Modify` at `/` is only `root@pam`'s. `docs/deploy.md` states the gap; the apply is the Operator's, by hand, until the board decides the identity. **Blast Radius:** none until an apply. The repository declares access, so a wrong declaration is a wrong apply later, not a change on merge. `make plan-check` refuses a destroy or replace, and `prevent_destroy` guards the token objects.
Declare the cluster's API objects and the /etc/pve archive
All checks were successful
pr-checks / check (pull_request) Successful in 12s
6603a22b6b
The repository the wave plan calls W4a: pools, roles, users, ACLs, tokens,
storage definitions, backup jobs, datacenter options, and the two notification
objects the provider cannot declare, in the order the plan fixes. The access
objects match ADR-0013 and the Operator grant (THE-5); the backup jobs carry the
W0.2 retention and the stored schedule strings.

Every object is written from the live cluster (2026-12-03). scripts/imports.txt
is the one-time import, and the first plan after it carries one named provider
quirk on the NAS storage block and nothing else. /etc/pve gets the archive no
vzdump job covers: a daily systemd timer on each node.
Fix the archive template's Jinja collision and rehearse it in check mode
All checks were successful
pr-checks / check (pull_request) Successful in 11s
c7dbb9e21d
Jinja read the shell's ${#files[@]} as a comment opener; the count now comes
from printf | grep -c. The timer task skips in check mode because a rehearsal
leaves no unit for systemd to enable. The play rehearses green on all three
nodes; nothing was installed.
Member

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

**Review started** (round 1/5) on c7dbb9e21d47bb4e4487d277cd144b99ae532592 — reading the diff now.
bot-minos requested changes 2026-12-03 22:24:46 +00:00
Dismissed
bot-minos left a comment

olympus/infra-cluster#1 — reviewed head c7dbb9e21d47bb4e4487d277cd144b99ae532592, round 1/5 (the thread's first review: the review list is empty, so the dispatch's 1 and the thread's count agree).

Recommendation: fix

Standards

1. BLOCKER — make apply never reaches the confirm step: @tofu: command not found.
Makefile:88 opens the confirm_and_apply define with an @, and Makefile:155 calls the define after cd … && . Make strips a leading @ from the start of a recipe line, not from the middle of one, so the shell is handed cd …/cluster && @tofu show -no-color plan.out and exits 127 under set -e.
Reproduced on the head with a stub tofu and a two-line .env:
STUB tofu init -input=false → STUB tofu plan -input=false -out=plan.out → /bin/bash: line 17: @tofu: command not found → make: *** [Makefile:153: apply] Error 127.
make -n apply prints that same literal line with NONINTERACTIVE empty and with =1, so both the interactive apply and the unattended one are dead, and make prod dies on its first step for the same reason. make plan-check is unaffected (its define is called at the start of the recipe) and was driven both ways: an empty plan prints the plan changes nothing, a delete row prints FAIL … would be destroyed and returns 1.
Clearing: drop the @ from Makefile:88, or give confirm_and_apply its own recipe line so the @ lands at line start.

2. ADVISORY — the apply gate the docs promise is not the gate the recipe runs.
AGENTS.md:40-42 says "make apply is gated twice: the typed word infra-cluster, and scripts/plan-check.py over the same artifact the apply then feeds to tofu apply"; docs/deploy.md:12 says the Target "judges the same artifact"; docs/deploy.md:62 says apply is red when "the judged plan refused". In Makefile:89-104 the judge runs only under NONINTERACTIVE=1 — the default path takes the typed word and applies, judging nothing. Makefile:83-86 states that either/or honestly; the three prose sites do not.
Clearing: run plan-check.py unconditionally before tofu apply (the reading of ADR-0011 a by-hand apply should carry), or correct the three sites to say the judge runs only under NONINTERACTIVE=1.

3. ADVISORY — scripts/plan-check.py:12-15 points at Targets this repository does not have.
The docstring names make guest-plan-check and make guest NONINTERACTIVE=1; make help lists plan-check and apply and no guest* Target. Copy carried over from the Guest Stacks.
Clearing: name make plan-check and make apply NONINTERACTIVE=1.

4. ADVISORY — the plan judge has no case that can fail.
Makefile:133 makes the floor env-check fmt-check, and nothing in the repo feeds a fixture through scripts/plan-check.py. The judge is pure — JSON in, 0/1/2 out — and it decides whether every apply may proceed, so a mutation in rows() or in the prevent_destroy regex leaves the repo green. infra-secrets keeps exactly such a suite around its copy of this file.
Clearing: a handful of plan-JSON fixtures under a make check Target.

5. ADVISORY — "a token value is never in state" holds only for the import path.
AGENTS.md:28 and docs/architecture.md:30 state the invariant flatly. The pinned provider marks proxmox_virtual_environment_user_token.value computed and sensitive (read from tofu providers schema at v0.125.0 this round), so a create persists the minted value in the S3 state; scripts/plan-check.py:53-54 reports a create as allowed, and cluster/tokens.tf:38 guards only destruction. A token added to local.tokens therefore mints a credential into the state unless the Operator catches the row by eye.
Clearing: scope the sentence to imported tokens (the plan row being the signal), or refuse a create on a token in the judge.

Spec

No findings. Source: paperclip:THE-37 (fetched live this round), the wave plan it cites — THE-10 document Track D — Wave plan §4 (line 203) and decision D10 row 253 — and the Operator grant in THE-5 document Operator role §3.2. The ticket's carry-in comment (2026-11-23) supplied the retention strings.

Spec item Where it lands
New infra-cluster repo this repository
pools → roles → users → ACLs → tokens → storage → backup jobs → notifications → datacenter → firewall → SDN, in that order README.md:9-22, one file per step, order preserved
ops-email / backup-errors incl. SMTP password from the store notifications/site.yml, env.map:38
backup of /etc/pve pve-config-backup/ (timer + script + verify)
access objects match ADR-0013 and THE-5 cluster/acls.tf:11,12,19,20 — the four rows THE-5 records, and nothing else on the cluster names hermes

Closing

  • Standards: 5 findings — 1 BLOCKER, 4 ADVISORY. Worst: make apply cannot run at all.
  • Spec: 0 findings. Nothing the ticket asked for is missing or partial; worst: none.
  • The four advisories alone would have tripped the volume rule; the blocker decides the recommendation, so the count is not what moves it.

Verified this round

  • Head resolved from refs/pull/1/head = c7dbb9e… and re-read after the probes; base.sha is edf9c74 (Initial commit). The second commit c7dbb9e is the archive template's Jinja fix, and it holds: the role's own template rendered, bash -n clean, count=$(printf … | grep -c .) as written.
  • mise exec -- make check → env-check: the pin and the map agree; scripts/env.sh is byte-identical to infra-secrets at origin/main (sha256 477f36c6…), 6 names matching .env.example both ways.
  • mise exec -- make validate → Success! The configuration is valid.; tofu fmt -recursive -check -diff → no output.
  • ansible-playbook --syntax-check on notifications/site.yml, pve-config-backup/site.yml, pve-config-backup/verify.yml → all three pass.
  • CI at this head: pr-checks / check (pull_request) success.
  • Counts: scripts/imports.txt is 150 rows = 2 pools + 21 memberships + 8 roles + 1 group + 5 users + 93 ACLs + 12 tokens + 4 storage + 3 jobs + 1 cluster option; the 93 ACL keys are distinct (no for_each collision).
  • The three vzdump jobs match the ticket's carry-in table exactly (burns 02:22, cherry 3:33, duku 4:44; keep-last=1, keep-monthly=2, keep-weekly=2).
  • Provider schema at 0.125.0: no notification resource, and proxmox_cluster_options has no allowed_tags — both "provider cannot declare it" claims hold.
  • The archive script driven against a scratch tree (16 cherry + 3 duku files): 14 cherry kept, duku untouched, a second run stable, archive mode 0600 and listing pve/….
  • make apply driven with a stub tofu (the blocker above); make plan-check driven green and red with stub plans.

Could not verify

  • "150 imported, 0 failed" and "0 to add, 1 to change, 0 to destroy." Both need the live cluster and the state record. This host holds no cluster credential, and minting one or reading PROD is not the reviewer's act; the parts that can be counted locally do agree (150 rows, 93 distinct keys).
  • The notification reconcile against the API, and the second commit's "the play rehearses green on all three nodes": both need the nodes. Check mode is still a live read on tier-1 hosts.

Named, not charged

  • main is unprotected, against ADR-0002. Live read this round: protected: False, required_approvals: 0, enable_status_check: False, contexts [], while AGENTS.md:12-14 says this repo answers to ADR-0002. It is a pre-existing repo setting, outside the diff and not something a pull request can set; merging stays the board's gate. Worth someone's act before the next PR lands, since the pr-checks job this change adds is not required either.
  • No destroy or replace is in the plan, so the charter's destroy/replace hold is not engaged; and the change declares the cluster's access objects without applying them (no deploy workflow, docs/deploy.md:39-54), so the apply identity stays board-deferred rather than becoming a tier-1 act at merge.
  • TofuGuestInPlace and TofuGuestInPlaceNoPower (cluster/roles.tf:22-39) carry identical privilege sets; docs/access.md:15 says so, and the pair is the live cluster's — declaring it as it stands is fidelity, and collapsing it would be a destroy this wave may not take.
  • docs/architecture.md:17 names proxmox_virtual_environment_storage_* where cluster/storage.tf uses proxmox_storage_*; both spellings exist at 0.125 (schema read), so this is a naming nit, not a broken pointer.
<!-- minos review-loop: repo=olympus/infra-cluster pr=1 head=c7dbb9e21d47bb4e4487d277cd144b99ae532592 round=1/5 axes=standards,spec --> **olympus/infra-cluster#1** — reviewed head `c7dbb9e21d47bb4e4487d277cd144b99ae532592`, round **1/5** (the thread's first review: the review list is empty, so the dispatch's 1 and the thread's count agree). Recommendation: fix ## Standards **1. BLOCKER — `make apply` never reaches the confirm step: `@tofu: command not found`.** `Makefile:88` opens the `confirm_and_apply` define with an `@`, and `Makefile:155` calls the define after `cd … && `. Make strips a leading `@` from the start of a recipe line, not from the middle of one, so the shell is handed `cd …/cluster && @tofu show -no-color plan.out` and exits 127 under `set -e`. Reproduced on the head with a stub `tofu` and a two-line `.env`: `STUB tofu init -input=false` → `STUB tofu plan -input=false -out=plan.out` → `/bin/bash: line 17: @tofu: command not found` → `make: *** [Makefile:153: apply] Error 127`. `make -n apply` prints that same literal line with `NONINTERACTIVE` empty and with `=1`, so both the interactive apply and the unattended one are dead, and `make prod` dies on its first step for the same reason. `make plan-check` is unaffected (its define is called at the start of the recipe) and was driven both ways: an empty plan prints `the plan changes nothing`, a `delete` row prints `FAIL … would be destroyed` and returns 1. *Clearing:* drop the `@` from `Makefile:88`, or give `confirm_and_apply` its own recipe line so the `@` lands at line start. **2. ADVISORY — the apply gate the docs promise is not the gate the recipe runs.** `AGENTS.md:40-42` says "`make apply` is gated twice: the typed word `infra-cluster`, and `scripts/plan-check.py` over the same artifact the apply then feeds to `tofu apply`"; `docs/deploy.md:12` says the Target "judges the same artifact"; `docs/deploy.md:62` says `apply` is red when "the judged plan refused". In `Makefile:89-104` the judge runs only under `NONINTERACTIVE=1` — the default path takes the typed word and applies, judging nothing. `Makefile:83-86` states that either/or honestly; the three prose sites do not. *Clearing:* run `plan-check.py` unconditionally before `tofu apply` (the reading of ADR-0011 a by-hand apply should carry), or correct the three sites to say the judge runs only under `NONINTERACTIVE=1`. **3. ADVISORY — `scripts/plan-check.py:12-15` points at Targets this repository does not have.** The docstring names `make guest-plan-check` and `make guest NONINTERACTIVE=1`; `make help` lists `plan-check` and `apply` and no `guest*` Target. Copy carried over from the Guest Stacks. *Clearing:* name `make plan-check` and `make apply NONINTERACTIVE=1`. **4. ADVISORY — the plan judge has no case that can fail.** `Makefile:133` makes the floor `env-check fmt-check`, and nothing in the repo feeds a fixture through `scripts/plan-check.py`. The judge is pure — JSON in, 0/1/2 out — and it decides whether every apply may proceed, so a mutation in `rows()` or in the `prevent_destroy` regex leaves the repo green. `infra-secrets` keeps exactly such a suite around its copy of this file. *Clearing:* a handful of plan-JSON fixtures under a `make check` Target. **5. ADVISORY — "a token value is never in state" holds only for the import path.** `AGENTS.md:28` and `docs/architecture.md:30` state the invariant flatly. The pinned provider marks `proxmox_virtual_environment_user_token.value` computed **and sensitive** (read from `tofu providers schema` at v0.125.0 this round), so a *create* persists the minted value in the S3 state; `scripts/plan-check.py:53-54` reports a `create` as allowed, and `cluster/tokens.tf:38` guards only destruction. A token added to `local.tokens` therefore mints a credential into the state unless the Operator catches the row by eye. *Clearing:* scope the sentence to imported tokens (the plan row being the signal), or refuse a `create` on a token in the judge. ## Spec **No findings.** Source: `paperclip:THE-37` (fetched live this round), the wave plan it cites — `THE-10` document *Track D — Wave plan* §4 (line 203) and decision D10 row 253 — and the Operator grant in `THE-5` document *Operator role* §3.2. The ticket's carry-in comment (2026-11-23) supplied the retention strings. | Spec item | Where it lands | | --- | --- | | New `infra-cluster` repo | this repository | | pools → roles → users → ACLs → tokens → storage → backup jobs → notifications → datacenter → firewall → SDN, in that order | `README.md:9-22`, one file per step, order preserved | | `ops-email` / `backup-errors` incl. SMTP password from the store | `notifications/site.yml`, `env.map:38` | | backup of `/etc/pve` | `pve-config-backup/` (timer + script + verify) | | access objects match ADR-0013 and THE-5 | `cluster/acls.tf:11,12,19,20` — the four rows THE-5 records, and nothing else on the cluster names `hermes` | ## Closing - **Standards: 5 findings — 1 BLOCKER, 4 ADVISORY.** Worst: `make apply` cannot run at all. - **Spec: 0 findings.** Nothing the ticket asked for is missing or partial; worst: none. - The four advisories alone would have tripped the volume rule; the blocker decides the recommendation, so the count is not what moves it. ## Verified this round - Head resolved from `refs/pull/1/head` = `c7dbb9e…` and re-read after the probes; `base.sha` is `edf9c74` (Initial commit). The second commit `c7dbb9e` is the archive template's Jinja fix, and it holds: the role's own template rendered, `bash -n` clean, `count=$(printf … | grep -c .)` as written. - `mise exec -- make check` → `env-check: the pin and the map agree`; `scripts/env.sh` is byte-identical to `infra-secrets` at `origin/main` (sha256 `477f36c6…`), 6 names matching `.env.example` both ways. - `mise exec -- make validate` → `Success! The configuration is valid.`; `tofu fmt -recursive -check -diff` → no output. - `ansible-playbook --syntax-check` on `notifications/site.yml`, `pve-config-backup/site.yml`, `pve-config-backup/verify.yml` → all three pass. - CI at this head: `pr-checks / check (pull_request)` success. - Counts: `scripts/imports.txt` is 150 rows = 2 pools + 21 memberships + 8 roles + 1 group + 5 users + 93 ACLs + 12 tokens + 4 storage + 3 jobs + 1 cluster option; the 93 ACL keys are distinct (no `for_each` collision). - The three vzdump jobs match the ticket's carry-in table exactly (burns `02:22`, cherry `3:33`, duku `4:44`; `keep-last=1, keep-monthly=2, keep-weekly=2`). - Provider schema at 0.125.0: **no** notification resource, and `proxmox_cluster_options` has **no** `allowed_tags` — both "provider cannot declare it" claims hold. - The archive script driven against a scratch tree (16 cherry + 3 duku files): 14 cherry kept, duku untouched, a second run stable, archive mode 0600 and listing `pve/…`. - `make apply` driven with a stub `tofu` (the blocker above); `make plan-check` driven green and red with stub plans. ## Could not verify - **"150 imported, 0 failed" and "0 to add, 1 to change, 0 to destroy."** Both need the live cluster and the state record. This host holds no cluster credential, and minting one or reading PROD is not the reviewer's act; the parts that can be counted locally do agree (150 rows, 93 distinct keys). - **The notification reconcile against the API**, and the second commit's "the play rehearses green on all three nodes": both need the nodes. Check mode is still a live read on tier-1 hosts. ## Named, not charged - **`main` is unprotected, against ADR-0002.** Live read this round: `protected: False`, `required_approvals: 0`, `enable_status_check: False`, contexts `[]`, while `AGENTS.md:12-14` says this repo answers to ADR-0002. It is a pre-existing repo setting, outside the diff and not something a pull request can set; merging stays the board's gate. Worth someone's act before the next PR lands, since the `pr-checks` job this change adds is not required either. - **No destroy or replace is in the plan**, so the charter's destroy/replace hold is not engaged; and the change declares the cluster's access objects without applying them (no deploy workflow, `docs/deploy.md:39-54`), so the apply identity stays board-deferred rather than becoming a tier-1 act at merge. - **`TofuGuestInPlace` and `TofuGuestInPlaceNoPower`** (`cluster/roles.tf:22-39`) carry identical privilege sets; `docs/access.md:15` says so, and the pair is the live cluster's — declaring it as it stands is fidelity, and collapsing it would be a destroy this wave may not take. - **`docs/architecture.md:17`** names `proxmox_virtual_environment_storage_*` where `cluster/storage.tf` uses `proxmox_storage_*`; both spellings exist at 0.125 (schema read), so this is a naming nit, not a broken pointer.
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.
`confirm_and_apply` is spliced after `cd … && ` on the `apply` recipe, so its
first line reached the shell as `@tofu show -no-color plan.out` and `make apply`
died at 127 before it read a plan — on the interactive path and under
`NONINTERACTIVE=1` alike, and `make prod` with it. Drop the `@`: make strips
that prefix from the start of a recipe line, never from the middle of one, and
the caller's own `@` already silences the whole recipe under `.ONESHELL`.

The same define now runs `scripts/plan-check.py` on every path, before the word,
rather than only under `NONINTERACTIVE=1`. That is the twice-gated apply
AGENTS.md and `docs/deploy.md` describe: the judge decides, and the typed word
is the Operator's second confirmation.

`scripts/tests/plan-check.sh` and `make plan-test` — joined to `make check` —
drive both seams: the judge against plan fixtures, and `make apply` in a sandbox
with a stand-in `tofu` that records its argv, so "the gate ran and `tofu apply`
did not" is a reading of a log. Driven against the head as it stood, the gate
cases read `@tofu` in the shell and fail.
Name the targets this repository has, and scope the token-value invariant
All checks were successful
pr-checks / check (pull_request) Successful in 11s
477e1b1afa
`scripts/plan-check.py`'s docstring pointed at `make guest-plan-check` and
`make guest NONINTERACTIVE=1`: the Guest Stacks' Targets, carried over from the
copy this file was taken from. It names `make plan-check` and `make apply`.

`docs/deploy.md` states the apply's order and what turns it red. The order is
now renders, judges, asks for the word, applies; the refusals are listed in the
same order.

The token-value sentence said the value is never in this repository's state,
flatly. It holds for an imported token, which the API never returns, and not for
a create: the provider marks the value computed and sensitive, so a plan that
mints one writes it into the S3 state. `docs/architecture.md` and the comment at
the head of `cluster/tokens.tf` now say which case is which, and that a create
is the Operator's, by hand.
Member

Fix round 1/5 — head 477e1b1, two commits on hermes/the37-infra-cluster (c7dbb9e..477e1b1, fast-forward; nothing rewritten or force-pushed).

What each finding got

# Finding Commit What changed
1 BLOCKER — make apply never reaches the confirm step, @tofu: command not found ee455f7 The @ is off confirm_and_apply's first line, and the define's header comment now says why it can't come back: the text is spliced after cd … && , where make strips no prefix.
2 ADVISORY — the gate the prose promises isn't the gate the recipe runs ee455f7, 477e1b1 Took the first clearing: scripts/plan-check.py runs on every path now, before the word, so the twice-gated apply AGENTS.md:40 and docs/deploy.md:12 describe is the one that runs. docs/deploy.md's order and its apply red-row now read judge → word → apply.
3 ADVISORY — plan-check.py's docstring names make guest* 477e1b1 Names make plan-check and make apply (interactive or NONINTERACTIVE=1); the Guest Stacks' Targets are gone.
4 ADVISORY — the plan judge has no case that can fail ee455f7 scripts/tests/plan-check.sh + make plan-test, joined to make check. 37 assertions: plan fixtures (no-op, read, update, create, destroy, replace with replace_paths, unreadable plan, prevent_destroy log, ordinary plan failure), and make apply driven in a sandbox whose tofu records its argv. A mutation in rows() or in the prevent_destroy regex now reds the floor.
5 ADVISORY — "a token value is never in state" holds only for the import path 477e1b1 — partial docs/architecture.md:30 and the comment at the head of cluster/tokens.tf now say which case is which. AGENTS.md:28 carries the same sentence and I could not write it — a protected agent-instruction file, approval prompt timed out. Exact text below.

scripts/plan-check.py's rows() and the prevent_destroy regex are untouched: the fixtures pin the behaviour that is there, they don't redefine it. Nothing outside make apply's gate changes behaviour.

Verification

All through the repo's manager, on 477e1b1:

Command Output
mise exec -- make check env-check: the pin and the map agree. … plan tests: all passed — exit 0
mise exec -- make validate Success! The configuration is valid.
mise exec -- tofu fmt -recursive -check -diff no output
CI on 477e1b1 pr-checks / check (pull_request) — success in 11s

And the fix driven against the head as it stood, with the stub tofu the review used:

STUB tofu init -input=false
STUB tofu plan -input=false -out=plan.out
/bin/bash: line 17: @tofu: command not found
make: *** [Makefile:153: apply] Error 127

That is the reviewer's reproduction, unchanged. The same probe on the fixed tree reaches tofu apply -input=false plan.out; the new test, run against the old Makefile, reports plan tests: 10 failed, first gate case no line of the gate reaches the shell as an option (found [@tofu]) — red on the old, green on the new.

Not run: ansible-playbook --syntax-check. No play, inventory or task file changed this round; make validate covers the Stack, which is where the whole diff is.

Left alone — needs the operator, one paragraph

AGENTS.md:28 still says a token's value is never in the state, flatly, and that is the half of finding 5 I cannot reach from this run. Replace lines 28–31 with:

**A token value is never in this repository.** `cluster/tokens.tf` declares the
object; the value is minted once, shown once, and sealed to its holder. An
imported token keeps it out of the state too — the API never returns it — but
the provider marks a token's `value` computed and sensitive, so a plan that
would *create* one writes the minted value into the S3 state. That row is the
signal: a new token is minted outside the Stack, its row added to
`scripts/imports.txt`, and imported — never applied as a create.

I chose the doc-scoping clearing for finding 5 rather than refusing a token create in the judge: keying the judge on a resource type name stops guarding silently the day the provider renames it, and the operator path in cluster/tokens.tf is already the import. That is also why review/needs-operator is the label and not review/needs-review — the blocker is fixed and verified, and this one sentence is the whole of what is left.

I disagree with no finding.

**Fix round 1/5** — head `477e1b1`, two commits on `hermes/the37-infra-cluster` (`c7dbb9e..477e1b1`, fast-forward; nothing rewritten or force-pushed). ## What each finding got | # | Finding | Commit | What changed | | --- | --- | --- | --- | | 1 | **BLOCKER** — `make apply` never reaches the confirm step, `@tofu: command not found` | `ee455f7` | The `@` is off `confirm_and_apply`'s first line, and the define's header comment now says why it can't come back: the text is spliced after `cd … && `, where make strips no prefix. | | 2 | ADVISORY — the gate the prose promises isn't the gate the recipe runs | `ee455f7`, `477e1b1` | Took the first clearing: `scripts/plan-check.py` runs on **every** path now, before the word, so the twice-gated apply `AGENTS.md:40` and `docs/deploy.md:12` describe is the one that runs. `docs/deploy.md`'s order and its `apply` red-row now read judge → word → apply. | | 3 | ADVISORY — `plan-check.py`'s docstring names `make guest*` | `477e1b1` | Names `make plan-check` and `make apply` (interactive or `NONINTERACTIVE=1`); the Guest Stacks' Targets are gone. | | 4 | ADVISORY — the plan judge has no case that can fail | `ee455f7` | `scripts/tests/plan-check.sh` + `make plan-test`, joined to `make check`. 37 assertions: plan fixtures (no-op, read, update, create, destroy, replace with `replace_paths`, unreadable plan, `prevent_destroy` log, ordinary plan failure), and `make apply` driven in a sandbox whose `tofu` records its argv. A mutation in `rows()` or in the `prevent_destroy` regex now reds the floor. | | 5 | ADVISORY — "a token value is never in state" holds only for the import path | `477e1b1` — **partial** | `docs/architecture.md:30` and the comment at the head of `cluster/tokens.tf` now say which case is which. `AGENTS.md:28` carries the same sentence and I could not write it — a protected agent-instruction file, approval prompt timed out. Exact text below. | `scripts/plan-check.py`'s `rows()` and the `prevent_destroy` regex are **untouched**: the fixtures pin the behaviour that is there, they don't redefine it. Nothing outside `make apply`'s gate changes behaviour. ## Verification All through the repo's manager, on `477e1b1`: | Command | Output | | --- | --- | | `mise exec -- make check` | `env-check: the pin and the map agree.` … `plan tests: all passed` — exit 0 | | `mise exec -- make validate` | `Success! The configuration is valid.` | | `mise exec -- tofu fmt -recursive -check -diff` | no output | | CI on `477e1b1` | `pr-checks / check (pull_request)` — success in 11s | And the fix driven against the head as it stood, with the stub `tofu` the review used: ```text STUB tofu init -input=false STUB tofu plan -input=false -out=plan.out /bin/bash: line 17: @tofu: command not found make: *** [Makefile:153: apply] Error 127 ``` That is the reviewer's reproduction, unchanged. The same probe on the fixed tree reaches `tofu apply -input=false plan.out`; the new test, run against the old Makefile, reports `plan tests: 10 failed`, first gate case `no line of the gate reaches the shell as an option (found [@tofu])` — red on the old, green on the new. Not run: `ansible-playbook --syntax-check`. No play, inventory or task file changed this round; `make validate` covers the Stack, which is where the whole diff is. ## Left alone — needs the operator, one paragraph **`AGENTS.md:28`** still says a token's value is never in the state, flatly, and that is the half of finding 5 I cannot reach from this run. Replace lines 28–31 with: ```markdown **A token value is never in this repository.** `cluster/tokens.tf` declares the object; the value is minted once, shown once, and sealed to its holder. An imported token keeps it out of the state too — the API never returns it — but the provider marks a token's `value` computed and sensitive, so a plan that would *create* one writes the minted value into the S3 state. That row is the signal: a new token is minted outside the Stack, its row added to `scripts/imports.txt`, and imported — never applied as a create. ``` I chose the doc-scoping clearing for finding 5 rather than refusing a token `create` in the judge: keying the judge on a resource type name stops guarding silently the day the provider renames it, and the operator path in `cluster/tokens.tf` is already the import. That is also why `review/needs-operator` is the label and not `review/needs-review` — the blocker is fixed and verified, and this one sentence is the whole of what is left. I disagree with no finding.
Author
Owner

Operator — taking over: bot-efesto handed it over — read its newest comment on the PR.

**Operator** — taking over: bot-efesto handed it over — read its newest comment on the PR.
Author
Owner

Operator report

Found. bot-efesto's handover is finding 5 (advisory) and nothing else. Findings 1–4 are fixed on 477e1b1, and the one sentence it could not reach is AGENTS.md:28-31, which still says a token's value is never in the state — false for a token the Stack would create.

Changed. No commit from this run. The only edit left is a protected agent-instruction file, and the write is refused at the tool:

BLOCKED: write to protected agent-instruction file(s) (AGENTS.md) approval prompt timed out
without a user response. Silence is not consent. The user has NOT consented to this write.
Do NOT retry it or attempt the same edit via another path (terminal, execute_code, etc.).

So this PR waits on Pedro, not on a fix. WR-104 carries the exact replacement paragraph and two routes to apply it (the forge pencil on the branch, or a clone-and-script push).

Evidence — taken here, on the branch tip, through the repo's manager

Command Output
mise exec -- make check env-check: the pin and the map agree. … plan tests: all passed — exit 0; 39 ok, 0 FAIL
mise exec -- make validate Success! The configuration is valid.
mise exec -- tofu fmt -recursive -check -diff no output, exit 0
ansible-playbook --syntax-check ×3 notifications/site.yml, pve-config-backup/site.yml, pve-config-backup/verify.yml all pass
NONINTERACTIVE=1 make -n apply line 17 is cd …/cluster && tofu show -no-color plan.out — no @
commit statuses on 477e1b1 pr-checks / check (pull_request) — success in 11s

Findings 1–4 re-read against the tree at 477e1b1: the gate define has no leading @ and its header says why it cannot come back; confirm_and_apply runs plan-check.py before the word on both paths, and docs/deploy.md:12,62 and AGENTS.md:40-42 now describe that gate; scripts/plan-check.py:12-15 names make plan-check and make apply; scripts/tests/plan-check.sh is joined to make check and its gate case no line of the gate reaches the shell as an option is green.

Rulings

Decision Ruling Source
Finding 5's clearing — scope the prose, or refuse a token create in the judge Scope the prose. A judge keyed on a resource type name stops guarding the day the provider renames it, and the import is already the operator path for a token. The replacement text agrees with docs/architecture.md:30 and cluster/tokens.tf:5-11. the finding's own two clearings; ADR-0011 is engaged by a destroy or a replace, not by a create
docs/architecture.md:17 says proxmox_virtual_environment_storage_* where cluster/storage.tf uses proxmox_storage_* Leave it. Both spellings exist at provider 0.125, so the pointer is not broken. reviewer's Named, not charged
main is unprotected, against ADR-0002 Not this PR's and not on the operator's may-list; a branch-protection rule is a repo setting, not a branch commit. Named here for the board's act. ADR-0002; workshop docs/automations/pr-review-loop.md, The operator

Not verified

"150 imported, 0 failed" and "0 to add, 1 to change, 0 to destroy." The state object is prod/cluster.tfstate in the tfstate bucket, read with the pair at secret/tofu-state/cluster/apply; the store answers only on its own guest's loopback (BAO_ADDR=https://127.0.0.1:8200), and this host holds neither the token nor a route to it. The parts countable locally do agree: scripts/imports.txt is 150 rows, and its 93 ACL keys are distinct.

Next

Pedro applies the paragraph on hermes/the37-infra-cluster — pencil on the file with the branch field set to that branch and never main, or the script in WR-104 — and the task's two curl | grep -c checks read back 0 and 1. He marks WR-104 done; the sweeper hands the PR back to the operator, which verifies the new head and re-arms it for a fresh round (review/needs-review). No re-arm was spent this run: 0 of 3.

Waiting on: https://vikunja.thepit.space/tasks/372

**Operator report** **Found.** bot-efesto's handover is finding 5 (advisory) and nothing else. Findings 1–4 are fixed on `477e1b1`, and the one sentence it could not reach is `AGENTS.md:28-31`, which still says a token's value is never in the state — false for a token the Stack would *create*. **Changed.** No commit from this run. The only edit left is a protected agent-instruction file, and the write is refused at the tool: ```text BLOCKED: write to protected agent-instruction file(s) (AGENTS.md) approval prompt timed out without a user response. Silence is not consent. The user has NOT consented to this write. Do NOT retry it or attempt the same edit via another path (terminal, execute_code, etc.). ``` So this PR waits on Pedro, not on a fix. **WR-104** carries the exact replacement paragraph and two routes to apply it (the forge pencil on the branch, or a clone-and-script push). ## Evidence — taken here, on the branch tip, through the repo's manager | Command | Output | | --- | --- | | `mise exec -- make check` | `env-check: the pin and the map agree.` … `plan tests: all passed` — exit 0; 39 `ok`, 0 `FAIL` | | `mise exec -- make validate` | `Success! The configuration is valid.` | | `mise exec -- tofu fmt -recursive -check -diff` | no output, exit 0 | | `ansible-playbook --syntax-check` ×3 | `notifications/site.yml`, `pve-config-backup/site.yml`, `pve-config-backup/verify.yml` all pass | | `NONINTERACTIVE=1 make -n apply` | line 17 is `cd …/cluster && tofu show -no-color plan.out` — no `@` | | commit statuses on `477e1b1` | `pr-checks / check (pull_request)` — success in 11s | Findings 1–4 re-read against the tree at `477e1b1`: the gate define has no leading `@` and its header says why it cannot come back; `confirm_and_apply` runs `plan-check.py` before the word on both paths, and `docs/deploy.md:12,62` and `AGENTS.md:40-42` now describe that gate; `scripts/plan-check.py:12-15` names `make plan-check` and `make apply`; `scripts/tests/plan-check.sh` is joined to `make check` and its gate case `no line of the gate reaches the shell as an option` is green. ## Rulings | Decision | Ruling | Source | | --- | --- | --- | | Finding 5's clearing — scope the prose, or refuse a token `create` in the judge | Scope the prose. A judge keyed on a resource type name stops guarding the day the provider renames it, and the import is already the operator path for a token. The replacement text agrees with `docs/architecture.md:30` and `cluster/tokens.tf:5-11`. | the finding's own two clearings; ADR-0011 is engaged by a destroy or a replace, not by a create | | `docs/architecture.md:17` says `proxmox_virtual_environment_storage_*` where `cluster/storage.tf` uses `proxmox_storage_*` | Leave it. Both spellings exist at provider 0.125, so the pointer is not broken. | reviewer's *Named, not charged* | | `main` is unprotected, against ADR-0002 | Not this PR's and not on the operator's may-list; a branch-protection rule is a repo setting, not a branch commit. Named here for the board's act. | ADR-0002; workshop `docs/automations/pr-review-loop.md`, *The operator* | ## Not verified **"150 imported, 0 failed" and "0 to add, 1 to change, 0 to destroy."** The state object is `prod/cluster.tfstate` in the `tfstate` bucket, read with the pair at `secret/tofu-state/cluster/apply`; the store answers only on its own guest's loopback (`BAO_ADDR=https://127.0.0.1:8200`), and this host holds neither the token nor a route to it. The parts countable locally do agree: `scripts/imports.txt` is 150 rows, and its 93 ACL keys are distinct. ## Next Pedro applies the paragraph on `hermes/the37-infra-cluster` — pencil on the file with the branch field set to that branch and never `main`, or the script in WR-104 — and the task's two `curl | grep -c` checks read back `0` and `1`. He marks WR-104 done; the sweeper hands the PR back to the operator, which verifies the new head and re-arms it for a fresh round (`review/needs-review`). No re-arm was spent this run: 0 of 3. Waiting on: https://vikunja.thepit.space/tasks/372
Update AGENTS.md
All checks were successful
pr-checks / check (pull_request) Successful in 12s
5bdabf2bc2
Author
Owner

Answer in — https://vikunja.thepit.space/tasks/372 is resolved. The operator picks it up from here.

**Answer in** — https://vikunja.thepit.space/tasks/372 is resolved. The operator picks it up from here.
Author
Owner

Operator — taking over: Pedro answered https://vikunja.thepit.space/tasks/372 — carry the answer onto the branch.

**Operator** — taking over: Pedro answered https://vikunja.thepit.space/tasks/372 — carry the answer onto the branch.
Author
Owner

Operator report

Found. WR-104's answer is already on the branch. Pedro applied the AGENTS.md paragraph himself — 5bdabf2 (2026-12-04 07:10:46 +0000, pit <me@thepit.space>, "Update AGENTS.md") is exactly the replacement WR-104 specifies: one file, +7/−4, nothing else touched — and he marked the task done 23 seconds later. Nothing else is outstanding from round 1. Findings 1–4 landed on 477e1b1; finding 5's docs/architecture.md and cluster/tokens.tf halves landed there too, and AGENTS.md now completes it.

Changed. No commit from this run — the edit was already published. No companion PR, no PR opened or closed.

Evidence — taken here, on 5bdabf2

Read Output
git log -5 --format='%h %an <%ae> %s' 5bdabf2 pit <me@thepit.space> Update AGENTS.md on top of 477e1b1
git show --stat 5bdabf2 AGENTS.md | 11 +++++++----; 1 file changed, 7 insertions, 4 deletions
task's two greps on the branch tip old phrase never in this repository or its state → 0; writes the minted value into the S3 state → 1
mise exec -- make check env-check: the pin and the map agree. … plan tests: all passed — exit 0; 39 ok, 0 FAIL
mise exec -- make validate Success! The configuration is valid. — exit 0
mise exec -- tofu fmt -recursive -check -diff no output, exit 0
NONINTERACTIVE=1 make -n apply line 17 is cd …/cluster && tofu show -no-color plan.out — no @, and the judge runs before the word on both paths
commit statuses on 5bdabf2 pr-checks / check (pull_request) — success in 12s
branch against main edf9c74; 0 behind, 5 ahead

The three token-invariant paragraphs now agree: AGENTS.md:28-34, cluster/tokens.tf:5-11, docs/architecture.md:30.

Rulings

No new ruling this run. The round's one ruling stands: scope finding 5's prose to the import path rather than refuse a token create in the judge (source: the finding's own two clearings; ADR-0011 is engaged by a destroy or replace, not by a create). main still carries no protection against ADR-0002 — a repo setting, not a branch commit, unchanged here and named for the board as before.

Next

Re-arming for a fresh round on 5bdabf2. Re-arm 1 of 3.

Agent-written.

**Operator report** **Found.** WR-104's answer is already on the branch. Pedro applied the `AGENTS.md` paragraph himself — `5bdabf2` (`2026-12-04 07:10:46 +0000`, `pit <me@thepit.space>`, "Update AGENTS.md") is exactly the replacement WR-104 specifies: one file, +7/−4, nothing else touched — and he marked the task done 23 seconds later. Nothing else is outstanding from round 1. Findings 1–4 landed on `477e1b1`; finding 5's `docs/architecture.md` and `cluster/tokens.tf` halves landed there too, and `AGENTS.md` now completes it. **Changed.** No commit from this run — the edit was already published. No companion PR, no PR opened or closed. ## Evidence — taken here, on `5bdabf2` | Read | Output | | --- | --- | | `git log -5 --format='%h %an <%ae> %s'` | `5bdabf2 pit <me@thepit.space> Update AGENTS.md` on top of `477e1b1` | | `git show --stat 5bdabf2` | `AGENTS.md \| 11 +++++++----`; 1 file changed, 7 insertions, 4 deletions | | task's two greps on the branch tip | old phrase `never in this repository or its state` → `0`; `writes the minted value into the S3 state` → `1` | | `mise exec -- make check` | `env-check: the pin and the map agree.` … `plan tests: all passed` — exit 0; 39 `ok`, 0 `FAIL` | | `mise exec -- make validate` | `Success! The configuration is valid.` — exit 0 | | `mise exec -- tofu fmt -recursive -check -diff` | no output, exit 0 | | `NONINTERACTIVE=1 make -n apply` | line 17 is `cd …/cluster && tofu show -no-color plan.out` — no `@`, and the judge runs before the word on both paths | | commit statuses on `5bdabf2` | `pr-checks / check (pull_request)` — success in 12s | | branch against `main` | `edf9c74`; 0 behind, 5 ahead | The three token-invariant paragraphs now agree: `AGENTS.md:28-34`, `cluster/tokens.tf:5-11`, `docs/architecture.md:30`. ## Rulings No new ruling this run. The round's one ruling stands: scope finding 5's prose to the import path rather than refuse a token `create` in the judge (source: the finding's own two clearings; ADR-0011 is engaged by a destroy or replace, not by a create). `main` still carries no protection against ADR-0002 — a repo setting, not a branch commit, unchanged here and named for the board as before. ## Next Re-arming for a fresh round on `5bdabf2`. Re-arm 1 of 3. *Agent-written.*
Member

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

**Review started** (round 1/5) on 5bdabf2bc240f00fda495b17df8957009c01a457 — reading the diff now.
bot-minos approved these changes 2026-12-04 07:21:16 +00:00
bot-minos left a comment

olympus/infra-cluster#1 — reviewed head 5bdabf2bc240f00fda495b17df8957009c01a457, round 2/5. The dispatch numbered this round 1; the thread's review list already carries one review (c7dbb9e), so this is the second round on the thread and the delta is git diff c7dbb9e 5bdabf2.

Recommendation: merge

Standards

The prior round's findings, re-driven at this head

1. (was BLOCKER) make apply died at @tofu — cleared.
Makefile:90 now opens confirm_and_apply with a bare tofu show -no-color plan.out, and the define's header comment at Makefile:86-88 says why a leading @ cannot come back there.
Red/green pair: the new suite run against the c7dbb9e Makefile reds 10 cases, the first of them no line of the gate reaches the shell as an option (found [@tofu]); at this head all 37 pass. Driven by hand with a stub tofu, a green plan and the word on stdin, the argv order is init → plan -out=plan.out → show -no-color → show -json → apply -input=false plan.out, rc 0. With a delete row and the word still on stdin, the judge reds before the prompt, the stub log carries no apply, and plan.out is removed.

2. (was ADVISORY) the gate the prose promised — cleared.
Makefile:91-95 runs the judge on every path, before the NONINTERACTIVE branch at Makefile:96. docs/deploy.md:12 and :62 and AGENTS.md:43-45 now read judge → word → apply, and the suite pins both paths (scripts/tests/plan-check.sh:167,179,185).

3. (was ADVISORY) the docstring named make guest* — cleared.
scripts/plan-check.py:12-16 names make plan-check and make apply. grep -rn guest at the head returns only {{guestname}} at cluster/backup_jobs.tf:28.

4. (was ADVISORY) the judge had no case that could fail — cleared.
make plan-test (Makefile:151-152) is joined to make check (Makefile:135); 37 assertions. Three mutations each red it: rows() yielding a delete as allowed → 9 failures; the prevent_destroy regex set→sett → 2 failures; @ restored on the gate's first line → 10 failures. CI run 4's job log at this head prints plan judge: / apply gate: / plan tests: all passed.

5. (was ADVISORY) the token invariant stated flat — cleared.
AGENTS.md:28-34, cluster/tokens.tf:5-11 and docs/architecture.md:30 now scope it to imported tokens and name the create row. A live provider-schema read this round (bpg/proxmox 0.125.0) answers value: computed: true, sensitive: true, "populated only when creating a new token, and can't be retrieved at import" — the corrected sentence restates the schema. The old wording censuses to nothing: grep -rn "never in this repository or its state" → rc 1.

New findings

6. ADVISORY — the same claim's last flat site, docs/reference/state.md:21.
It reads "The one object that is not re-importable is a token value — it was never in the state", while AGENTS.md:28-34 now says a plan that would create a token writes the minted value into the state. A census over *.md and *.tf at the head (grep -rn "in the state\|never in\|not re-importable") leaves this the only site still stating it without the import qualifier. README.md:15 ("the value is never in the repo") is true as written and is not charged.
Clearing: one clause — "an imported token's value was never in the state".

Spec

No findings. Source: paperclip:THE-37, read live this round (GET /api/issues/THE-37 → 200, 17,858 bytes, status in_review, documents [] — 2 bytes), the plan its description cites (THE-10 §4 / D10) and the Operator grant (THE-5 §3.2) as round 1 read them. The delta touches no declared object: cluster/tokens.tf's hunks are comments only, and the rest is the Makefile's gate, two pages, a docstring and the new test. Nothing the ticket asked for is added, dropped or altered.

Closing

  • Standards: 1 finding — 0 BLOCKER, 1 ADVISORY. Worst: docs/reference/state.md:21, a one-clause prose residual.
  • Spec: 0 findings. Worst: none.
  • One advisory is below the volume threshold, so the recommendation is merge; the prior round's five findings are all cleared above.

Verified this round

  • Head resolved from refs/pull/1/head = 5bdabf2 (ls-remote, re-read after the probes), stacked on the prior review's c7dbb9e (git merge-base --is-ancestor → true). Delta = git diff c7dbb9e 5bdabf2, 7 files.
  • mise exec -- make check → env-check: the pin and the map agree. … plan tests: all passed, rc 0.
  • mise exec -- make validate → Success! The configuration is valid.; tofu fmt -recursive -check -diff → no output.
  • make -n apply with and without NONINTERACTIVE=1 prints the gate with no @ in it; a real drive in a sandbox reached tofu apply -input=false plan.out.
  • CI: commit statuses at 5bdabf2 → pr-checks / check (pull_request) success in 12s (run 4); the job's log was read through the web route and prints plan judge: / apply gate: / plan tests: all passed.
  • Live provider-schema read at bpg/proxmox 0.125.0 (scratch module, tofu providers schema -json).
  • The working tree was left clean (git status --porcelain empty) after every drive; mutations were made on copies under scratch, never in the tree.

Could not verify

  • "150 imported, 0 failed" and "0 to add, 1 to change, 0 to destroy." Both need the live cluster and prod/cluster.tfstate; the store answers on its own guest's loopback and this host holds neither the token nor a route. Unchanged from round 1, and no part of this delta touches either.
  • ansible-playbook --syntax-check was not re-run: the delta carries no play, inventory or task file (its file list is above).

Named, not charged

  • main carries no branch protection against ADR-0002 — a repo setting outside the diff and unchanged; merging remains the board's gate.
  • The CI-gate class. This PR creates .forgejo/workflows/pr-checks.yml; that file is unchanged in this delta and was reviewed at the prior head. The dispatch puts the class outside the review state, so this round applied that narrowing and the state follows the findings alone — merging remains the board's gate, overrulable by a human who reads it differently.
  • Makefile:157's one-line help for apply says "render it, confirm, then apply" and omits the judge the recipe now runs — an omission in a help string on a line this delta did not touch, not a false promise.
  • docs/architecture.md:17 names proxmox_virtual_environment_storage_* where cluster/storage.tf uses proxmox_storage_*; both spellings exist at 0.125, so it is a naming nit, as before.
  • TofuGuestInPlace / TofuGuestInPlaceNoPower carry identical privilege sets (cluster/roles.tf), as before: the live cluster's own shape, and collapsing it would be a destroy this wave may not take.
<!-- minos review-loop: repo=olympus/infra-cluster pr=1 head=5bdabf2bc240f00fda495b17df8957009c01a457 round=2/5 axes=standards,spec --> **olympus/infra-cluster#1** — reviewed head `5bdabf2bc240f00fda495b17df8957009c01a457`, round **2/5**. The dispatch numbered this round 1; the thread's review list already carries one review (`c7dbb9e`), so this is the second round on the thread and the delta is `git diff c7dbb9e 5bdabf2`. Recommendation: merge ## Standards ### The prior round's findings, re-driven at this head **1. (was BLOCKER) `make apply` died at `@tofu` — cleared.** `Makefile:90` now opens `confirm_and_apply` with a bare `tofu show -no-color plan.out`, and the define's header comment at `Makefile:86-88` says why a leading `@` cannot come back there. Red/green pair: the new suite run against the `c7dbb9e` Makefile reds **10** cases, the first of them `no line of the gate reaches the shell as an option (found [@tofu])`; at this head all 37 pass. Driven by hand with a stub `tofu`, a green plan and the word on stdin, the argv order is `init` → `plan -out=plan.out` → `show -no-color` → `show -json` → `apply -input=false plan.out`, rc 0. With a `delete` row and the word still on stdin, the judge reds before the prompt, the stub log carries no `apply`, and `plan.out` is removed. **2. (was ADVISORY) the gate the prose promised — cleared.** `Makefile:91-95` runs the judge on every path, before the `NONINTERACTIVE` branch at `Makefile:96`. `docs/deploy.md:12` and `:62` and `AGENTS.md:43-45` now read judge → word → apply, and the suite pins both paths (`scripts/tests/plan-check.sh:167,179,185`). **3. (was ADVISORY) the docstring named `make guest*` — cleared.** `scripts/plan-check.py:12-16` names `make plan-check` and `make apply`. `grep -rn guest` at the head returns only `{{guestname}}` at `cluster/backup_jobs.tf:28`. **4. (was ADVISORY) the judge had no case that could fail — cleared.** `make plan-test` (`Makefile:151-152`) is joined to `make check` (`Makefile:135`); 37 assertions. Three mutations each red it: `rows()` yielding a delete as allowed → 9 failures; the `prevent_destroy` regex `set`→`sett` → 2 failures; `@` restored on the gate's first line → 10 failures. CI run 4's job log at this head prints `plan judge:` / `apply gate:` / `plan tests: all passed`. **5. (was ADVISORY) the token invariant stated flat — cleared.** `AGENTS.md:28-34`, `cluster/tokens.tf:5-11` and `docs/architecture.md:30` now scope it to imported tokens and name the create row. A live provider-schema read this round (bpg/proxmox 0.125.0) answers `value`: `computed: true`, `sensitive: true`, "populated only when creating a new token, and can't be retrieved at import" — the corrected sentence restates the schema. The old wording censuses to nothing: `grep -rn "never in this repository or its state"` → rc 1. ### New findings **6. ADVISORY — the same claim's last flat site, `docs/reference/state.md:21`.** It reads "The one object that is not re-importable is a token *value* — it was never in the state", while `AGENTS.md:28-34` now says a plan that would *create* a token writes the minted value into the state. A census over `*.md` and `*.tf` at the head (`grep -rn "in the state\|never in\|not re-importable"`) leaves this the only site still stating it without the import qualifier. `README.md:15` ("the value is never in the repo") is true as written and is not charged. *Clearing:* one clause — "an imported token's value was never in the state". ## Spec **No findings.** Source: `paperclip:THE-37`, read live this round (`GET /api/issues/THE-37` → 200, 17,858 bytes, status `in_review`, documents `[]` — 2 bytes), the plan its description cites (THE-10 §4 / D10) and the Operator grant (THE-5 §3.2) as round 1 read them. The delta touches no declared object: `cluster/tokens.tf`'s hunks are comments only, and the rest is the Makefile's gate, two pages, a docstring and the new test. Nothing the ticket asked for is added, dropped or altered. ## Closing - **Standards: 1 finding — 0 BLOCKER, 1 ADVISORY.** Worst: `docs/reference/state.md:21`, a one-clause prose residual. - **Spec: 0 findings.** Worst: none. - One advisory is below the volume threshold, so the recommendation is **merge**; the prior round's five findings are all cleared above. ## Verified this round - Head resolved from `refs/pull/1/head` = `5bdabf2` (ls-remote, re-read after the probes), stacked on the prior review's `c7dbb9e` (`git merge-base --is-ancestor` → true). Delta = `git diff c7dbb9e 5bdabf2`, 7 files. - `mise exec -- make check` → `env-check: the pin and the map agree.` … `plan tests: all passed`, rc 0. - `mise exec -- make validate` → `Success! The configuration is valid.`; `tofu fmt -recursive -check -diff` → no output. - `make -n apply` with and without `NONINTERACTIVE=1` prints the gate with no `@` in it; a real drive in a sandbox reached `tofu apply -input=false plan.out`. - CI: commit statuses at `5bdabf2` → `pr-checks / check (pull_request)` success in 12s (run 4); the job's log was read through the web route and prints `plan judge:` / `apply gate:` / `plan tests: all passed`. - Live provider-schema read at bpg/proxmox 0.125.0 (scratch module, `tofu providers schema -json`). - The working tree was left clean (`git status --porcelain` empty) after every drive; mutations were made on copies under scratch, never in the tree. ## Could not verify - **"150 imported, 0 failed"** and **"0 to add, 1 to change, 0 to destroy."** Both need the live cluster and `prod/cluster.tfstate`; the store answers on its own guest's loopback and this host holds neither the token nor a route. Unchanged from round 1, and no part of this delta touches either. - **`ansible-playbook --syntax-check`** was not re-run: the delta carries no play, inventory or task file (its file list is above). ## Named, not charged - **`main` carries no branch protection** against ADR-0002 — a repo setting outside the diff and unchanged; merging remains the board's gate. - **The CI-gate class.** This PR creates `.forgejo/workflows/pr-checks.yml`; that file is unchanged in this delta and was reviewed at the prior head. The dispatch puts the class outside the review state, so this round applied that narrowing and the state follows the findings alone — merging remains the board's gate, overrulable by a human who reads it differently. - **`Makefile:157`**'s one-line help for `apply` says "render it, confirm, then apply" and omits the judge the recipe now runs — an omission in a help string on a line this delta did not touch, not a false promise. - **`docs/architecture.md:17`** names `proxmox_virtual_environment_storage_*` where `cluster/storage.tf` uses `proxmox_storage_*`; both spellings exist at 0.125, so it is a naming nit, as before. - **`TofuGuestInPlace` / `TofuGuestInPlaceNoPower`** carry identical privilege sets (`cluster/roles.tf`), as before: the live cluster's own shape, and collapsing it would be a destroy this wave may not take.
pit merged commit 5a657b77b6 into main 2026-12-04 07:52:34 +00:00
pit deleted branch hermes/the37-infra-cluster 2026-12-04 07:52:34 +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-cluster!1
No description provided.