Declare the cluster's API objects and the /etc/pve archive #1
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-cluster!1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/the37-infra-cluster"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
paperclip:THE-37
Summary
The
infra-clusterrepository: the cluster's own API objects in the wave plan's order, and the/etc/pvearchive no vzdump job covers.The access objects match ADR-0013 and THE-5: the Operator's reach is the
operatorgroup andhermes@pve!operator, four rows on/accessand/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
mise exec -- make checkenv-check: the pin and the map agreemise exec -- make validateSuccess! The configuration is valid.tofu fmt -recursive -checkansible-playbook --syntax-checkon both playstofu planafter the importThe one change is
proxmox_storage_nfs.synology: thebackups { 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 holdsprune-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
/accessand/pool/prod, andSys.Modifyat/is onlyroot@pam's.docs/deploy.mdstates 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-checkrefuses a destroy or replace, andprevent_destroyguards the token objects.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.Review started (round 1/5) on
c7dbb9e21d— reading the diff now.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 applynever reaches the confirm step:@tofu: command not found.Makefile:88opens theconfirm_and_applydefine with an@, andMakefile:155calls the define aftercd … &&. Make strips a leading@from the start of a recipe line, not from the middle of one, so the shell is handedcd …/cluster && @tofu show -no-color plan.outand exits 127 underset -e.Reproduced on the head with a stub
tofuand 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 applyprints that same literal line withNONINTERACTIVEempty and with=1, so both the interactive apply and the unattended one are dead, andmake proddies on its first step for the same reason.make plan-checkis unaffected (its define is called at the start of the recipe) and was driven both ways: an empty plan printsthe plan changes nothing, adeleterow printsFAIL … would be destroyedand returns 1.Clearing: drop the
@fromMakefile:88, or giveconfirm_and_applyits 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-42says "make applyis gated twice: the typed wordinfra-cluster, andscripts/plan-check.pyover the same artifact the apply then feeds totofu apply";docs/deploy.md:12says the Target "judges the same artifact";docs/deploy.md:62saysapplyis red when "the judged plan refused". InMakefile:89-104the judge runs only underNONINTERACTIVE=1— the default path takes the typed word and applies, judging nothing.Makefile:83-86states that either/or honestly; the three prose sites do not.Clearing: run
plan-check.pyunconditionally beforetofu apply(the reading of ADR-0011 a by-hand apply should carry), or correct the three sites to say the judge runs only underNONINTERACTIVE=1.3. ADVISORY —
scripts/plan-check.py:12-15points at Targets this repository does not have.The docstring names
make guest-plan-checkandmake guest NONINTERACTIVE=1;make helplistsplan-checkandapplyand noguest*Target. Copy carried over from the Guest Stacks.Clearing: name
make plan-checkandmake apply NONINTERACTIVE=1.4. ADVISORY — the plan judge has no case that can fail.
Makefile:133makes the floorenv-check fmt-check, and nothing in the repo feeds a fixture throughscripts/plan-check.py. The judge is pure — JSON in, 0/1/2 out — and it decides whether every apply may proceed, so a mutation inrows()or in theprevent_destroyregex leaves the repo green.infra-secretskeeps exactly such a suite around its copy of this file.Clearing: a handful of plan-JSON fixtures under a
make checkTarget.5. ADVISORY — "a token value is never in state" holds only for the import path.
AGENTS.md:28anddocs/architecture.md:30state the invariant flatly. The pinned provider marksproxmox_virtual_environment_user_token.valuecomputed and sensitive (read fromtofu providers schemaat v0.125.0 this round), so a create persists the minted value in the S3 state;scripts/plan-check.py:53-54reports acreateas allowed, andcluster/tokens.tf:38guards only destruction. A token added tolocal.tokenstherefore 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
createon a token in the judge.Spec
No findings. Source:
paperclip:THE-37(fetched live this round), the wave plan it cites —THE-10document Track D — Wave plan §4 (line 203) and decision D10 row 253 — and the Operator grant inTHE-5document Operator role §3.2. The ticket's carry-in comment (2026-11-23) supplied the retention strings.infra-clusterrepoREADME.md:9-22, one file per step, order preservedops-email/backup-errorsincl. SMTP password from the storenotifications/site.yml,env.map:38/etc/pvepve-config-backup/(timer + script + verify)cluster/acls.tf:11,12,19,20— the four rows THE-5 records, and nothing else on the cluster nameshermesClosing
make applycannot run at all.Verified this round
refs/pull/1/head=c7dbb9e…and re-read after the probes;base.shaisedf9c74(Initial commit). The second commitc7dbb9eis the archive template's Jinja fix, and it holds: the role's own template rendered,bash -nclean,count=$(printf … | grep -c .)as written.mise exec -- make check→env-check: the pin and the map agree;scripts/env.shis byte-identical toinfra-secretsatorigin/main(sha256477f36c6…), 6 names matching.env.exampleboth ways.mise exec -- make validate→Success! The configuration is valid.;tofu fmt -recursive -check -diff→ no output.ansible-playbook --syntax-checkonnotifications/site.yml,pve-config-backup/site.yml,pve-config-backup/verify.yml→ all three pass.pr-checks / check (pull_request)success.scripts/imports.txtis 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 (nofor_eachcollision).02:22, cherry3:33, duku4:44;keep-last=1, keep-monthly=2, keep-weekly=2).proxmox_cluster_optionshas noallowed_tags— both "provider cannot declare it" claims hold.pve/….make applydriven with a stubtofu(the blocker above);make plan-checkdriven green and red with stub plans.Could not verify
Named, not charged
mainis unprotected, against ADR-0002. Live read this round:protected: False,required_approvals: 0,enable_status_check: False, contexts[], whileAGENTS.md:12-14says 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 thepr-checksjob this change adds is not required either.docs/deploy.md:39-54), so the apply identity stays board-deferred rather than becoming a tier-1 act at merge.TofuGuestInPlaceandTofuGuestInPlaceNoPower(cluster/roles.tf:22-39) carry identical privilege sets;docs/access.md:15says 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:17namesproxmox_virtual_environment_storage_*wherecluster/storage.tfusesproxmox_storage_*; both spellings exist at 0.125 (schema read), so this is a naming nit, not a broken pointer.Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Fix round 1/5 — head
477e1b1, two commits onhermes/the37-infra-cluster(c7dbb9e..477e1b1, fast-forward; nothing rewritten or force-pushed).What each finding got
make applynever reaches the confirm step,@tofu: command not foundee455f7@is offconfirm_and_apply's first line, and the define's header comment now says why it can't come back: the text is spliced aftercd … &&, where make strips no prefix.ee455f7,477e1b1scripts/plan-check.pyruns on every path now, before the word, so the twice-gated applyAGENTS.md:40anddocs/deploy.md:12describe is the one that runs.docs/deploy.md's order and itsapplyred-row now read judge → word → apply.plan-check.py's docstring namesmake guest*477e1b1make plan-checkandmake apply(interactive orNONINTERACTIVE=1); the Guest Stacks' Targets are gone.ee455f7scripts/tests/plan-check.sh+make plan-test, joined tomake check. 37 assertions: plan fixtures (no-op, read, update, create, destroy, replace withreplace_paths, unreadable plan,prevent_destroylog, ordinary plan failure), andmake applydriven in a sandbox whosetofurecords its argv. A mutation inrows()or in theprevent_destroyregex now reds the floor.477e1b1— partialdocs/architecture.md:30and the comment at the head ofcluster/tokens.tfnow say which case is which.AGENTS.md:28carries 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'srows()and theprevent_destroyregex are untouched: the fixtures pin the behaviour that is there, they don't redefine it. Nothing outsidemake apply's gate changes behaviour.Verification
All through the repo's manager, on
477e1b1:mise exec -- make checkenv-check: the pin and the map agree.…plan tests: all passed— exit 0mise exec -- make validateSuccess! The configuration is valid.mise exec -- tofu fmt -recursive -check -diff477e1b1pr-checks / check (pull_request)— success in 11sAnd the fix driven against the head as it stood, with the stub
tofuthe review used: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, reportsplan tests: 10 failed, first gate caseno 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 validatecovers the Stack, which is where the whole diff is.Left alone — needs the operator, one paragraph
AGENTS.md:28still 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:I chose the doc-scoping clearing for finding 5 rather than refusing a token
createin the judge: keying the judge on a resource type name stops guarding silently the day the provider renames it, and the operator path incluster/tokens.tfis already the import. That is also whyreview/needs-operatoris the label and notreview/needs-review— the blocker is fixed and verified, and this one sentence is the whole of what is left.I disagree with no finding.
Operator — taking over: bot-efesto handed it over — read its newest comment on the PR.
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 isAGENTS.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:
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
mise exec -- make checkenv-check: the pin and the map agree.…plan tests: all passed— exit 0; 39ok, 0FAILmise exec -- make validateSuccess! The configuration is valid.mise exec -- tofu fmt -recursive -check -diffansible-playbook --syntax-check×3notifications/site.yml,pve-config-backup/site.yml,pve-config-backup/verify.ymlall passNONINTERACTIVE=1 make -n applycd …/cluster && tofu show -no-color plan.out— no@477e1b1pr-checks / check (pull_request)— success in 11sFindings 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_applyrunsplan-check.pybefore the word on both paths, anddocs/deploy.md:12,62andAGENTS.md:40-42now describe that gate;scripts/plan-check.py:12-15namesmake plan-checkandmake apply;scripts/tests/plan-check.shis joined tomake checkand its gate caseno line of the gate reaches the shell as an optionis green.Rulings
createin the judgedocs/architecture.md:30andcluster/tokens.tf:5-11.docs/architecture.md:17saysproxmox_virtual_environment_storage_*wherecluster/storage.tfusesproxmox_storage_*mainis unprotected, against ADR-0002docs/automations/pr-review-loop.md, The operatorNot verified
"150 imported, 0 failed" and "0 to add, 1 to change, 0 to destroy." The state object is
prod/cluster.tfstatein thetfstatebucket, read with the pair atsecret/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.txtis 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 nevermain, or the script in WR-104 — and the task's twocurl | grep -cchecks read back0and1. 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
Answer in — https://vikunja.thepit.space/tasks/372 is resolved. The operator picks it up from here.
Operator — taking over: Pedro answered https://vikunja.thepit.space/tasks/372 — carry the answer onto the branch.
Operator report
Found. WR-104's answer is already on the branch. Pedro applied the
AGENTS.mdparagraph 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 on477e1b1; finding 5'sdocs/architecture.mdandcluster/tokens.tfhalves landed there too, andAGENTS.mdnow 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
5bdabf2git log -5 --format='%h %an <%ae> %s'5bdabf2 pit <me@thepit.space> Update AGENTS.mdon top of477e1b1git show --stat 5bdabf2AGENTS.md | 11 +++++++----; 1 file changed, 7 insertions, 4 deletionsnever in this repository or its state→0;writes the minted value into the S3 state→1mise exec -- make checkenv-check: the pin and the map agree.…plan tests: all passed— exit 0; 39ok, 0FAILmise exec -- make validateSuccess! The configuration is valid.— exit 0mise exec -- tofu fmt -recursive -check -diffNONINTERACTIVE=1 make -n applycd …/cluster && tofu show -no-color plan.out— no@, and the judge runs before the word on both paths5bdabf2pr-checks / check (pull_request)— success in 12smainedf9c74; 0 behind, 5 aheadThe 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
createin the judge (source: the finding's own two clearings; ADR-0011 is engaged by a destroy or replace, not by a create).mainstill 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.
Review started (round 1/5) on
5bdabf2bc2— reading the diff now.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 isgit diff c7dbb9e 5bdabf2.Recommendation: merge
Standards
The prior round's findings, re-driven at this head
1. (was BLOCKER)
make applydied at@tofu— cleared.Makefile:90now opensconfirm_and_applywith a baretofu show -no-color plan.out, and the define's header comment atMakefile:86-88says why a leading@cannot come back there.Red/green pair: the new suite run against the
c7dbb9eMakefile reds 10 cases, the first of themno line of the gate reaches the shell as an option (found [@tofu]); at this head all 37 pass. Driven by hand with a stubtofu, a green plan and the word on stdin, the argv order isinit→plan -out=plan.out→show -no-color→show -json→apply -input=false plan.out, rc 0. With adeleterow and the word still on stdin, the judge reds before the prompt, the stub log carries noapply, andplan.outis removed.2. (was ADVISORY) the gate the prose promised — cleared.
Makefile:91-95runs the judge on every path, before theNONINTERACTIVEbranch atMakefile:96.docs/deploy.md:12and:62andAGENTS.md:43-45now 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-16namesmake plan-checkandmake apply.grep -rn guestat the head returns only{{guestname}}atcluster/backup_jobs.tf:28.4. (was ADVISORY) the judge had no case that could fail — cleared.
make plan-test(Makefile:151-152) is joined tomake check(Makefile:135); 37 assertions. Three mutations each red it:rows()yielding a delete as allowed → 9 failures; theprevent_destroyregexset→sett→ 2 failures;@restored on the gate's first line → 10 failures. CI run 4's job log at this head printsplan judge:/apply gate:/plan tests: all passed.5. (was ADVISORY) the token invariant stated flat — cleared.
AGENTS.md:28-34,cluster/tokens.tf:5-11anddocs/architecture.md:30now scope it to imported tokens and name the create row. A live provider-schema read this round (bpg/proxmox 0.125.0) answersvalue: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-34now says a plan that would create a token writes the minted value into the state. A census over*.mdand*.tfat 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, statusin_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
docs/reference/state.md:21, a one-clause prose residual.Verified this round
refs/pull/1/head=5bdabf2(ls-remote, re-read after the probes), stacked on the prior review'sc7dbb9e(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 applywith and withoutNONINTERACTIVE=1prints the gate with no@in it; a real drive in a sandbox reachedtofu apply -input=false plan.out.5bdabf2→pr-checks / check (pull_request)success in 12s (run 4); the job's log was read through the web route and printsplan judge:/apply gate:/plan tests: all passed.tofu providers schema -json).git status --porcelainempty) after every drive; mutations were made on copies under scratch, never in the tree.Could not verify
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-checkwas not re-run: the delta carries no play, inventory or task file (its file list is above).Named, not charged
maincarries no branch protection against ADR-0002 — a repo setting outside the diff and unchanged; merging remains the board's gate..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 forapplysays "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:17namesproxmox_virtual_environment_storage_*wherecluster/storage.tfusesproxmox_storage_*; both spellings exist at 0.125, so it is a naming nit, as before.TofuGuestInPlace/TofuGuestInPlaceNoPowercarry 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.