The env contract, and this repo reading its own environment from it (WR-47) #12
No reviewers
Labels
No labels
ready-for-agent
review
merge-ready
review
needs-fix
review
needs-human
review
needs-review
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-secrets!12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "wr39/integration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
This repo authors the env contract the other four vendor, and reads its own environment through it — WR-47's share of the shared-secret epic (WR-39).
scripts/env.sh— the one fetch: login (userpass, AppRole, JWT), read every KV v2 pathenv.mapmaps, fill what the age class holds, write the repo-root.envwhole at 0600 under a stamp line. All or nothing, one login per run, no cache. The file's second line carries the sha of its own body, so a sibling verifies its copy with no second file.env.map— this repo reads no store path (its env is the PROD pair from~/.secrets/proxmox/prod.age); the literals keep the map and.env.examplethe same set.make env,make env-check(no store read),make env-test, andmake checkas the single credential-free command withenv-checkon the floor.Makefile—check's comment names the page that fixes the floor for allfive repos and says it lands with
olympus/workshop#18, which is not onworkshop'smainyet (WR-42, landed on this branch after the PR opened;named here so the change map covers it).
age 1.3.2andopenbao 2.7.1declared and locked.bao/guestdeclarespool_id = "prod", ignores it after creation and guards the container withprevent_destroy: the attribute is creation-time only and never read back, so on a guest that already exists it would plan a replacement of the store's own container (review round 1, B1).bao/guest/guards.tf— the check the guard cannot be:prevent_destroylives on the resource, so deleting the container's declaration takes it
along and the plan offers the destroy. The check sits outside the resource
and references it, so a tree that stops declaring the store fails to load
instead (review round 2, S1).
bao/policies/ci-tracker.hcl— the tracker's plan row for the guest state record (TR-57, landed on this branch after the PR opened; named here so the change map covers it).docs/env-fetch.md— the interface, written once for all five repos;.env.exampleis now a declared name set, not an invitation to copy and fill.docs/proxmox-credentials.md— the pool question answered where it was left open:pool_idis creation-time only, membership is read out of band, and the pools the handoff creates now exist.Evidence
make check→ exit 0,env fetch: every case passed.(70oklines: 68 from the fetch's own cases, 2 fromenv-check), plain, throughmise exec --, and withPROXMOX_VE_API_TOKEN,AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEYunset.make env ACTOR=pit→2 names · 0 paths · 2 from the age class,.envat 0600, first line# fetched 2026-10-28T11:38:13Z actor=pit store=https://10.12.0.144:8200.make env-check→ok scripts/env.sh matches infra-secrets@137870c6…,ok env.map: 2 names, all declared in .env.example; reds on a one-character pin change and on either direction of a map/example disagreement..envand no.env.tmpon failure, the unnamed-actor refusal listing found keys with zero store calls, and the regular-agent refusal.make validate→Success! The configuration is valid.;tofu fmt -check -recursive -diff→ rc 0.plan -refresh=false, no cluster read or written: at8948133the configured pool plans+ pool_id = "prod" # forces replacement·Plan: 1 to add, 0 to change, 1 to destroy, where the base config plansPlan: 0 to add, 1 to change, 0 to destroy; at902a52ethe same state plansPlan: 0 to add, 1 to change, 0 to destroy.902a52e: a base-image bump plansPlan: 2 to add, 0 to change, 2 to destroyand thenError: Resource instance cannot be destroyed·prevent_destroy set, but the plan calls for it to be destroyed(rc 1), somake gueststops at plan time instead of destroying guest 144.the container's declaration and the output that referenced it plans
Plan: 0 to add, 0 to change, 1 to destroy(rc 0) at374845f, andError: Reference to undeclared resourceonbao/guest/guards.tf(rc 1)here. The steady plan is unmoved (
Plan: 0 to add, 1 to change, 0 to destroy),plan -destroyand avm_idchange still stop onprevent_destroy(rc 1), and a create prints no check warning because thecondition reads the configured
vm_id.Merge Danger
137870c6d4468fdf468e8b4cd0c31183989612b4b9c67ed861202faabe74d962. None of them carriesscripts/env.shyet — it is a404ininfra-forge,infra-tracker,infra-siloandinfra-semaphore— so nothing reds today; each cutover copies the file verbatim and starts checking the pin, and from then on a change here is a change all four take at a new pin.make checknow depends on the repo's toolchain forbao/age; the test runner resolves them throughmise whichand refuses with the instruction if they are absent.pool_idisForceNewin bpg/proxmox 0.117.0 andcontainerReadnever reads it back, so the state cannot converge by refresh: withoutprevent_destroyeverymake guestwould plan a destroy-and-create of the container that holds the store and every other Stack's state. With it, any replacement — a base-image bump, avm_idchange — fails the plan until the guard is lifted deliberately (workshop ADR-0004), and a tree that stops declaring the container fails to load rather than planning it away.prod(read 2026-10-28:/pools/prodlists 141, 142, 143, 144 and 150), which is what a future create needs; the Stack's declaration sets the pool at creation, and membership after that is read out of band —pvesh get /pools/prod.olympus/infra-secrets #12 — round 1/5 · reviewed head
8948133534d1401c0a50114c610165476125bbd5Recommendation: fix
workshop, identifierWR; notedocs/agents/issue-tracker.mdnames project 8, which does not hold it). No linked issue in the PR body; the WR-47 reference in the title is the spec, and its acceptance criteria are what I measured against.olympus/workshopdocs/adr/atmain(0001–0007), read from the forge; this repo'sAGENTS.mdanddocs/agents/*; the repo has noCONTRIBUTING.mdor coding-standards file, so the Fowler smell baseline covered the rest.dec204b; the branch moved while I read, and I examined8948133— one commit on top, "ci-tracker reads the guest record's plan key too (TR-57)", addingbao/policies/ci-tracker.hcl(+7 lines). Everything below is at8948133; the delta does not touch any file in the blocker.Spec
B1 — BLOCKER —
bao/guest/container.tf:28,bao/guest/variables.tf:30Adding
pool_id = "prod"to the existing container makes the nextmake guestdestroy and recreate guest 144 — the container that runs the store.pool_idonproxmox_virtual_environment_containerisForceNew: truein the provider this repo locks (bpg/proxmoxv0.117.0,proxmoxtf/resource/container/container.go:1034-1040), and nothing incontainer.tfsuppresses or guards the diff. Today guest 144 is in no pool —docs/proxmox-credentials.md:81says "none of the six does yet" and:103that no pool exists — so its state carriespool_id = "", and the change plans a replacement.I drove it with the locked provider (tofu 1.12.6, provider 0.117.0, a state written the way the provider reads guest 144,
plan -refresh=false, no cluster touched). The control and the treatment differ in exactly this attribute:pool_id = ""(base)Plan: 0 to add, 1 to change, 0 to destroy.pool_id = "prod"(this PR)# proxmox_virtual_environment_container.openbao must be replaced·+ pool_id = "prod" # forces replacement·+ purge_on_destroy = true·Plan: 1 to add, 0 to change, 1 to destroy.That is the store: the Guest Stack's own container, whose disk holds the OpenBao data, and inside which every other Stack's state lives (workshop
docs/adr/0003,0004). It breaks the org standard this change is measured against — ADR-0004: "Nothing whose state lives in the store may be able to destroy the store. A run that would remove the store … fails at plan time before anything is touched" — and the repo's own record of the question isdocs/proxmox-credentials.md:131-134: "Whetherpool_idcan be written on an existing guest, or only at creation … the update path was not exercised, and it decides whether the five PROD guests can be moved by an apply or have to join the pool by hand once." The answer is: not by an apply. The PR body and the ticket say nothing about it; the body's Merge Danger section lists only the vendored pin and the toolchain.Clearing: make the move deliberate rather than incidental, and say so. The smallest change that ends it is a
lifecycle { prevent_destroy = true }onproxmox_virtual_environment_container.openbao(ADR-0004's guard), so the replacement is refused at plan time and the pool move happens by hand first; the cheaper alternative is to state in the body and atdocs/proxmox-credentials.md:131that guest 144 must joinprodmanually before this config lands, and thattofu planmust read0 to destroybeforemake guest. Either way the doc line 81 ("none of the six does yet") and the Open question at line 131 need their answer recorded.A1 — ADVISORY —
bao/policies/ci-tracker.hcl:22-27(commit8948133)Scope: the branch gained a TR-57 policy row after this PR was dispatched. The rule itself is coherent — the path matches
docs/store-layout.md:79(secret/tofu-state/tracker-guest/{apply,plan}), and the ADR-0009 citation resolves (infra-silodocs/adr/0009-a-plan-reads-a-record-it-cannot-rewrite.md, the same shorthanddocs/store-layout.md:68uses). What is missing is a line in the PR body's change map: a reader arriving at a WR-47 PR has no way to know a tracker policy moved with it. Either name it in the body or take it to its own PR.A2 — ADVISORY — the body's arithmetic
The body says
make checkpassed "(42 assertions)". At8948133the suite prints 68oklines andenv-checkadds 2 — 70 in total, fromenv -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY make check | grep -c '^ ok '. The number is stale against the branch it describes; the run itself is green.A3 — ADVISORY — the body's four-repo claim, and WR-47's AC5
The body's Merge Danger reads "The other four repos pin this file by the sha of its body:
137870c6…. A change here is a change all four take at a new pin —make env-checkreds in each until they do." Atmainnone of them carries the file:scripts/env.shanswers 404 inolympus/infra-forge,infra-tracker,infra-siloandinfra-semaphore, andinfra-tracker's root has noscripts/directory at all. So there is no pin to red today. This is the same tension as WR-47's AC5 ("git grep -n '# vendored from'in the four sibling repos names this repo at one sha") against the ticket's own Out of scope ("the other four repos' cutovers"): either the sentence describes the cutover and should say so in the future tense, or AC5 belongs to the cutover tickets.Standards
A4 — ADVISORY —
docs/env-fetch.md:184-185"The pins the four record are the sha in the line and the blob this ticket records:
git hash-object scripts/env.sh." That command does not produce the pin. On this headgit hash-object scripts/env.shisaaad049c9b77…— the 40-hex SHA-1 of the blob — while the pin is137870c6d446…, the 64-hex SHA-256 of the file with the pin line blanked (scripts/env.sh:71-72), andpin_recordedonly accepts[0-9a-f]{64}(scripts/env.sh:71). A sibling following the sentence pastes a value the check can never accept; the page's own §"the pin" (lines 155-160) states the right recipe one paragraph earlier. Drop the sentence or point it atenv-check's FAIL line, which prints the hash to paste.A5 — ADVISORY —
docs/env-fetch.md:99-100againstscripts/env.sh:336The page says "a root an actor holds no key for is not an error". The script refuses the whole run in exactly that case:
[ -s "$AGE_KEYS/$ACTOR.key" ] || refuse "the age class at $PROD_AGE is on this machine and the $CLASS $ACTOR has no key at …; nothing written."Thenot held:report is the other case — the age file is not on the machine at all (scripts/env.sh:353-359). One sentence, and an operator reading the page would expect a partial.envwhere the fetch in fact writes nothing.Verified (by hand, at
8948133)make envprints the report and writes.env0600 under the stampHOME(a freshpitage key, the PROD pair sealed to it):2 names · 0 paths · 2 from the age class,.envat600, first line# fetched 2026-10-28T11:55:35Z actor=pit store=https://10.12.0.144:8200, no.env.tmp; with noACTORit refused, listedpit, and wrote nothing.envbyte-identical, no.env.tmpcase_store_unreachableon a two-path map against a dead port; this repo's own map reads no store path, so the case cannot arise hereenv-checkpasses with no store; reds on a one-character pin or a missing map keycase_check_passes; reds on the pin flip and on both directions of the map/example comparisonenv -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY make checkenv fetch: every case passed., plain (not throughmise exec)git grep -n pool_idnamesbao/guestwithprodvault-pass/ANSIBLE_VAULT_PASSWORD/.vault.ymlreferencegrep -rnoverMakefileandbao/is empty; the hits aredocs/andresearch/prosemake -n checkruns nothing that reads a credential./scripts/env.sh checkand./scripts/tests/run.shAlso confirmed: the pin is self-consistent (
sha256sumof the body with the pin line blanked is137870c6d446…);age 1.3.2andopenbao 2.7.1are declared inmise.tomland pinned inmise.lock;.envstays gitignored; the diff carries no secret — the AWS-looking fixture values inscripts/tests/run.sh:182-183are the public AWS documentation dummiesAKIAIOSFODNN7EXAMPLE/wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY, verified by comparison, not by eye. The change has no prior review or comment.Not verified
make envagainst the live store from a machine holding the Operator's seeds — this host holds none; the equivalent was driven against the stub suite and a syntheticHOME.pool_id = "", config"prod"), but the cluster itself was not planned.mainto check yet.Summary
pool_idreplaces the store's container), 3 advisories.Worst finding, per axis: Spec — B1, a routine
make guestplans-/+on guest 144; Standards — A4, the page's pin recipe names the wrong command.olympus/infra-secrets #12 — round 1/5 answered at
902a52e: two new commits on8948133, on the PR's own branchwr39/integration. No force-push, nothing rewritten.pool_id = "prod"replaces guest 144d028e24lifecycle { prevent_destroy = true }on the container, andpool_idadded toignore_changes;docs/proxmox-credentials.mdrecords the answer to the question it left open (line 81 and the Open bullet)bao/policies/ci-tracker.hcl(TR-57) named in## Summary42→ 70oklines (68 fetch cases + 2env-check), measured at902a52escripts/env.shis a404on all fourmainbranches today902a52egit hash-objectis the 40-hex SHA-1 of the blob, the pin is the 64-hex SHA-256 of the blanked body902a52enot held:report and the two refusals around it are now stated apart, both drivenThe advisories were not dispatched — the label moved on the blocker — but each was a false statement in a document this PR itself authored, and each was verifiable here in a minute, so they are corrected rather than carried. The A1/A2/A3 halves are metadata edits (no commit); A4/A5 are the second commit.
Where I departed from B1's own clearing change
The finding offers two: the guard, or the cheaper one — "state that guest 144 must join
prodmanually before this lands, and thattofu planmust read0 to destroybeforemake guest". The second is not achievable, and I measured why:prod—pvesh get /pools/prodonburnslists 141 forgejo, 142 vikunja, 143 semaphore, 144 openbao, 150 silo (read-only, 2026-10-28). The hand move has happened.mkPoolIDappears only in the schema (proxmoxtf/resource/container/container.go:1034,ForceNew: trueat:1038), in the clone body (:1374) and in the create body (:2282);containerRead(:2671) never sets it. So the hand move cannot make the plan read0 to destroy: a guest created before its Stack declared the field keepspool_id = ""in state, no refresh replaces it, and every subsequent plan re-plans the replacement.prevent_destroyand nothing else, the pool diff plans the destroy the guard refuses on every run, somake guestandmake guest-plancan never apply anything again. Driven, not argued: the same state with the guard alone answers rc 1,Error: Resource instance cannot be destroyed·prevent_destroy set, but the plan calls for it to be destroyed.So the commit takes both halves: the guard, plus
ignore_changes = [pool_id], so the declaration applies where the provider does apply it — at creation — and the Stack converges instead of failing forever. The trade is stated where a reader meets it: membership after creation is not tofu's, and it is read out of band withpvesh get /pools/prod. That is the same shapecontainer.tfalready used forinitialization[0].user_accountand thatproxmox_download_fileuses forurl/checksum.The alternative I did not take, and why: the provider has
proxmox_pool_membership(0.117.0, importable as<pool>/vm/<vmid>) which manages a membership after creation, and it is the honest route if the boundary is to be tofu-managed. It is not used here because 144 is already a member, so adopting it begins with an import — an Operator call, not this ticket's. It is named on the page and in the body.Commands run, and what they printed
At
902a52e, in the profile's worktree, through the repo's own manager:The plan pair, in a scratch tree built from
git archive <sha>with the locked provider (tofu 1.12.6, bpg/proxmox 0.117.0) and a state written the way the provider reads guest 144 —tofu plan -refresh=false, no cluster read or written:The two cases A5 turns on, driven against the unchanged script with a synthetic
HOME:Read back from the forge at
902a52e(GET /api/v1/repos/olympus/infra-secrets/raw/<path>?ref=902a52e), not from my clone:prevent_destroy = trueandignore_changes = [initialization[0].user_account, pool_id]inbao/guest/container.tf;none of the six does yetand the oldOpenbullet absent fromdocs/proxmox-credentials.md;the blob this ticket recordsabsent fromdocs/env-fetch.md. 10/10 assertions pass.Not verified
make envagainst the live store from a machine holding the Operator's seeds — this host holds none; unchanged from the previous round, and this round touches nothing on that path.tofu planagainst the cluster: no Proxmox API credential here. The pair above is the locked provider over a written state; the live reads (pvesh get /pools,/pools/prod) were taken over ssh toburnsand are read-only.docs/proxmox-credentials.mdwas not re-read. The page now says which read each half comes from rather than presenting the 2026-10-27 census as today's.Self-review
command -v claude codex agentfinds nothing on this host, so the two passes ofcode-reviewwere run by me in sequence, not by parallel sub-agents. Standards:AGENTS.md, theolympus/workshopADRs (0004 is the one this change answers to),tofu fmtclean, and the repo's prose/comment conventions (noCONTRIBUTING.mdexists). Spec: WR-47 AC1–AC8 — AC6 still holds,git grep -n pool_idnamesbao/guestwithprod; the guard and the ignore are additions the review asked for, not scope WR-47 asked for.olympus/infra-secrets #12 — round 2/5 · reviewed head
374845f34ddb0cc62a4cbbc94f9ee412a4ef05dfRecommendation: fix
The branch moved while this report was being written: it was read at
902a52e, the review posted on that head was dismissed by the platform when two commits landed seven seconds later, and it has been removed. This is the review of what is there now —374845f, the merge of589b93d("check names the page that fixes the floor for all five repos (WR-42)"), whose own delta against902a52eis one file:Makefile, +5 comment lines. Nothing in round 1's findings moved with it.workshop, identifierWR; re-read, unchanged, no comments). No linked issue in the PR body; the title's WR-47 reference is the spec. Round 2's contract is round 1's findings plus the ticket's ACs.olympus/workshopdocs/adr/atmain, read from the forge (0001–0007; ADR-0004 blob5c8312cc…, the one this change answers to); this repo'sAGENTS.mdanddocs/agents/*; noCONTRIBUTING.mdor coding-standards file exists, so the Fowler smell baseline covered the rest.8948133. The branch has since takend028e24,902a52e, then589b93d+ merge374845f;git merge-base --is-ancestor 902a52e 374845fis true andgit diff 902a52e 374845fis theMakefilecomment alone, so the round's whole delta is five files.Round 1 findings — verified resolved
pool_id = "prod"replaces guest 144d028e24—container.tf:74ignore_changes = [initialization[0].user_account, pool_id],container.tf:81prevent_destroy = truepool_id = ""),plan -refresh=false: control0 to add, 1 to change, 0 to destroy; pre-fix config1 to add, 0 to change, 1 to destroywith+ pool_id = "prod" # forces replacement; head config0 to add, 1 to change, 0 to destroy. Then the realbao/guestat902a52eagainst the same state:Plan: 0 to add, 2 to change, 0 to destroy— the container is not replaced, and the two in-place changes are the null-defaults the base config plans too (0 to add, 2 to change, 0 to destroyatc14ce96).## Summarynow carries "bao/policies/ci-tracker.hcl— the tracker's plan row for the guest state record (TR-57, landed on this branch after the PR opened; named here so the change map covers it)".env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY make check→ rc 0, 70^ oklines, of which 2 areenv-check's and 68 the fetch's cases. The body says 70 (68 + 2).GET /repos/olympus/<r>/raw/scripts/env.sh?ref=mainanswers 404 forinfra-forge,infra-tracker,infra-siloandinfra-semaphore; the body now reads in the future tense and says so. WR-47's AC5 stays unmet, and the ticket's own Out of scope ("the other four repos' cutovers") puts it there.902a52e—docs/env-fetch.md:188-191git hash-object scripts/env.sh→aaad049c9b77…(40 hex), the pin is137870c6d446…(64 hex) =sha256of the file with the pin line blanked, andenv-check's FAIL prints "the body hashes to %s" with exactly that value (scripts/env.sh:124).902a52e—docs/env-fetch.md:98-104HOME: age class absent →not held: …×3 thenrefused: nothing could be filled … nothing written.rc 1, an existing.envbyte-identical (sha256equal before and after), no.env.tmp; age class present, no actor key →refused: the age class at … is on this machine and the Operator pit has no key at … to open it; nothing written.rc 1. The claim the fix adds — a partial fill is written — also holds: a class holding onlyPROXMOX_VE_ENDPOINTwrites1 names · 0 paths · 1 from the age class,.envat 0600 with the stamp line and no line for the other name.Spec
No findings. The delta serves round 1's asks and nothing else: the two
.tffiles are B1,docs/env-fetch.mdis A4/A5,docs/proxmox-credentials.mdis B1's page. WR-47's ACs are unchanged, and the one that remains unmet (AC5) is out of the ticket's scope. The body's numbers were re-measured at this head:make check70ok, and the guard pair exactly as the body tabulates it.Standards
S1 — ADVISORY —
bao/guest/container.tf:76-78The new comment says "so a teardown or a replacement is refused at plan time, naming this block, before anything is touched (workshop ADR-0004)". The replacement half and the
tofu-initiated teardowns are refused — driven:The teardown half is not: deleting the resource block from the configuration takes the
lifecycleblock with it, so no guard is left to read and the plan proposes the destroy. Driven on core alone (terraform_data, no provider, no credentials): block removed whole →- resource "terraform_data" "guarded" { … }·Plan: 0 to add, 0 to change, 1 to destroy.· rc 0. On the real config the same edit plans "will be destroyed" with rc 0. ADR-0004 names that accident explicitly — "a routine teardown, or a small edit made in a hurry" — and its consequences say "Saying so is part of the rule: a guard trusted for more than it does is worse than none."Not a blocker: the route is not introduced by the fix (before it, no teardown of this container was refused either), and what the fix refuses it refuses for real. What is left is a comment a reader can trust past what the mechanism delivers — the body states it correctly ("guarded against replacement").
Clearing (either): narrow the clause to what is refused — e.g. "a
tofu destroy, aplan -destroyand a replacement are refused at plan time; deleting this block takes the guard with it, so declaring the container away is the one route it does not stop" — or make the protection real with acheckblock outside the resource that references it. I drove the second on core:check "store_is_declared" { assert { condition = length(terraform_data.guarded.id) > 0 … } }with the resource removed answersError: Reference to undeclared resource· "There is no managed resource … definition in the root module" · rc 1, andNo changeswhile the declaration stands.S2 — ADVISORY —
docs/proxmox-credentials.md:120-121The page's new header says the pools now exist — "The read of 2026-10-28 finds both pools … so the handoff (WR-34) has run its pool half" (
:11-17) — while the check section below still reads "Neither half has been run: no pool and no PRE token exists yet" (:120-121). The first sentence is the one this delta added, and it falsifies the second on the same page: a reader cannot tell which is true. The verdict that sentence carries is still right — the boundary check has not been run — so only its reason is stale.Clearing: name the missing half, not the pools: "no PRE token exists yet, and the check below has not been run".
S3 — ADVISORY —
Makefile:199-202(commit589b93d)"The page that fixes this floor for all five repos — and the one an agent reads before running any target here — is
workshop'sdocs/agents/make-targets.md." That path is not onworkshop'smaintoday:GET /repos/olympus/workshop/contents/docs/agents?ref=mainlistsdomain.md,issue-tracker.mdandtriage-labels.md, and the file answers "The target couldn't be found." It lands with olympus/workshop#18 ("The agent's target floor, as one page (WR-42)", heada108d90, opened after this commit was pushed), so an agent told to read it before running any target here gets a 404 until that PR merges — the same present-tense-before-true shape round 1 charged at A3. The commit also is not in the PR body's change map, which is a WR-47 map: nothing there says a WR-42 comment moved with it.Clearing: point at what exists today and say the page is coming — "lands with olympus/workshop#18" — and name the comment in the body (or take it to its own PR, where the WR-42 change lives).
Verified by hand
env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY make checkat374845fenv fetch: every case passed., 70okmake -n checkat374845f./scripts/env.sh checkand./scripts/tests/run.sh— the new comment adds no steptofu validate(offline, locked provider 0.117.0) andtofu fmt -check -recursive -diff, at902a52eSuccess! The configuration is valid.· rc 0 — the delta touches no.tffile, so both carry to this headmake envwith a syntheticHOME(a freshpitage key, the PROD pair sealed to it)2 names · 0 paths · 2 from the age class;.envat600, first line# fetched <ts> actor=pit store=https://10.12.0.144:8200; no.env.tmpcontainer.openbaoat902a52e; replacement at8948133-destroy,-target -destroy,-replaceError: Resource instance cannot be destroyed, rc 1container.tf:70-72)+ pool_id = "prod"137870c6…=sha256of the body with the pin line blanked;env-checkgreenproxmox_pool_membershipexists in the locked providertofu providers schema -jsonnames it, withpool_id/vm_id/typelifecycleblock; the AWS-looking fixture values inscripts/tests/run.sh:182-183are the public AWS documentation dummiesNot verified
/pools/prodand/pools/pre, guest 144's membership, and the body's "read 2026-10-28:/pools/prodlists 141, 142, 143, 144 and 150" — no Proxmox API from this host. S2 rests on the page's own text, not on that read.containerReadsets nopool_id, and therefore that no refresh brings the state into line: the author's reading of bpg/proxmox 0.117.0. My probes ranplan -refresh=false, so what a refresh would put in state was not exercised.proxmox_pool_membership's import form (<pool>/vm/<vmid>): the resource exists; the id format was not driven.tofu plan/make guestagainst the cluster, andmake envagainst the live store from a machine holding the Operator's seeds — this host holds neither. The equivalents above were driven with the locked provider over a written state, the stub suite, and a syntheticHOME.Makefilecomment's own claim that the page "fixes this floor" and "holds the set": the page is not onmain, so its contents could not be read here; only its absence is measured.Summary
d028e24(verified by driving the plan, not by reading the block).No finding here is a blocker. The recommendation is fix on the advisory count alone: three advisories, which is this loop's volume trip — the state moves, the severities do not, and no nit is dressed as a defect to justify it. All three are one-line corrections in prose (two comments and one sentence), they can be made in a single pass, and none of them touches the plan, the fetch or the pin.
olympus/infra-secrets #12 — round 2 → fix, at
85d4ec1.The report's own tally is 0 blockers, 3 advisories (S1–S3). The dispatch text says "blocking findings" because it is generated from the label event; the severity comes from the review, and the live label was
review/needs-fix, so all three are worked. One commit each, so each finding maps to one line below.39232f3bao/guest/guards.tf(new) and a narrowed comment incontainer.tfno pool)685aceddocs/proxmox-credentials.md:119-122workshop'smain85d4ec1Makefile:198-204, and the body's change mapS1 — the "make it real" branch, driven
The finding offers two clearings; I took the second (a
checkoutside the resource), because ADR-0004's Decision is that a run that would remove the store fails at plan time, and narrowing the comment would leave the route in place. Drives at both heads, same written state, locked provider 0.117.0,plan -refresh=false, no cluster:374845f85d4ec1Plan: 0 to add, 1 to change, 0 to destroy, rc 0output's own referencePlan: 0 to add, 0 to change, 1 to destroy, rc 0Error: Reference to undeclared resourceonbao/guest/guards.tf:19, rc 1plan -destroyprevent_destroyprevent_destroyvm_id144 → 145 (replacement)prevent_destroy1 to add, 0 to change, 1 to destroy, then refusedTwo details worth the reviewer's eye. The charge on this Stack needs the output gone as well as the block — deleting the block alone is refused, but by the
output's reference — which is why I drove that pair rather than the block alone. And the condition readsvm_id(configured, so known at plan) rather thanid:idis known only after apply and printedWarning: Check block assertion known after applyon every first plan, which would put a deferred verdict inmake guest-plan's artifact. A create now prints no check line at all. The comment incontainer.tfnames the three routes it refuses and says deleting the block is covered byguards.tfinstead.S2 — I sharpened the offered sentence
The suggested clearing is "no PRE token exists yet, and the check below has not been run". The page's token inventory is a 2026-10-27 read and its own header says the handoff's credential half has not been re-read here, so the page cannot assert the token's absence. It now says what it can support: "Neither the 403 pair nor the throwaway cycle has been run: both need a token minted from the PRE row, which no read here has seen yet, so they are the handoff's acceptance criteria rather than this page's evidence." Substance taken (name the token, not the pools); the absence claim declined.
S3 — future tense, the PR named, and the body
docs/agents/make-targets.mdanswers "The target couldn't be found" onworkshop'smain, andolympus/workshop#18("The agent's target floor, as one page (WR-42)", heada108d90) is open with it. The comment now says the page lands with that PR, points atdocs/env-fetch.md, which is in this tree, and names the PR rather than the path. The comment is named in the body's change map, as the finding asked.Verified at
85d4ec1mise exec -- make depsinstalled 0 tools · 7 already installedmise exec -- make validateSuccess! The configuration is valid.mise exec -- tofu fmt -check -recursive -diffcd bao/service && mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.ymlplaybook: site.yml, plus the pre-existing[WARNING]: Found both group and host with same name: baoenv -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY make checkoklines,env fetch: every case passed.make -n check, both heads,$(CURDIR)normaliseddocs/proxmox-credentials.mdthroughPOST /api/v1/markdownno pool and no PRE tokenabsent, 3 tables with a constant cell count per row, 1 code blockref=85d4ec1Left alone
claude/codex/agentCLI exists on this host, so thecode-reviewskill's two axes were run by me in sequence, not by parallel sub-agents — Standards: ADR-0004 cited and honoured, no coding-standards file exists in the repo, no baseline smell in a four-file prose-plus-guard diff; Spec: the three findings, each with its commit above.olympus/infra-secrets #12 — round 3/5 · reviewed head
85d4ec1fafd5b0e86136133b80586326441df104· previous review374845f34ddb0cc62a4cbbc94f9ee412a4ef05dfRecommendation: merge
olympus/workshopdocs/adr/atmain, read from the forge (0001–0007; ADR-0004 is the one this guard answers to, ADR-0002 the one this merge answers to); this repo'sAGENTS.mdanddocs/agents/*. NoCONTRIBUTING.mdand no coding-standards file exist, so the Fowler smell baseline covered the rest.374845f, 0 blockers and 3 advisories. The delta isgit diff 374845f 85d4ec1— three commits (39232f3,685aced,85d4ec1), four files:Makefile(+4/−2),bao/guest/container.tf(+6/−4),bao/guest/guards.tf(new, 22),docs/proxmox-credentials.md(+3/−3). The dispatch's head andrefs/pull/12/headagree at85d4ec1; the branch is current withmain(origin/main=c14ce966, the PR'smerge_base, 0 commits behind).Round 2 findings — verified resolved
39232f3—bao/guest/guards.tf:17-22, narrowed comment atbao/guest/container.tf:76-83pool_id = ""),plan -refresh=false, locked provider 0.117.0. At374845f, container block and the output that referenced it deleted →Plan: 0 to add, 1 to change, 1 to destroy, rc 0. At85d4ec1, the same edit →Error: Reference to undeclared resourceonguards.tf line 19, rc 1, nothing planned. Block deleted alone at this head → rc 1 as well, from the output's two references andguards.tf:19. The refusal is real, not a narrowed sentence.no pool)685aced—docs/proxmox-credentials.md:119-122no poolanywhere (grep -n 'no pool'→ no hit at this head; the phrase survives only onmain's pre-change blob). The replacement names the token, not the pools, and agrees with the page's own header (:11-17) that the pool half has run and the credential half has not been re-read.workshop'smain85d4ec1—Makefile:199-204, and the body's change mapGET /repos/olympus/workshop/contents/docs/agents?ref=mainlistsdomain.md,issue-tracker.md,triage-labels.md— nomake-targets.md.olympus/workshop#18is open at heada108d90and its branch does carry the page. The comment says the page "lands with olympus/workshop#18 and is not on itsmainyet", points atdocs/env-fetch.mdas the record meanwhile, and the body names the comment.Round 1's B1 (
pool_id = "prod"replacing guest 144) still holds at this head: with the same state, the head config plansPlan: 0 to add, 2 to change, 0 to destroy— no replacement ofcontainer.openbao.Spec
No findings. The delta serves round 2's three asks and nothing else: two
.tffiles are S1, theMakefileis S3, the page is S2, and the body's change map now names all three (plus the two commits that landed on the branch after the PR opened). WR-47's ACs are unchanged; AC5 stays unmet and out of the ticket's scope, which the body states in the future tense — round 1's settled reading, not reopened here.Standards
A1 — ADVISORY —
bao/guest/guards.tf:10"It is not a wall either: a check stops a plan, not a container removed on the node or a disk that fails" — as a statement about
checkblocks that is false, and it is text this delta adds.A failed
checkassertion is a warning, and the plan proceeds. Driven on this tree with the same state, the condition forced tovm_id > 999:What stops the plan here is not the assertion at all — it is the undeclared reference failing at load, which the file's own first paragraph says precisely ("fails to load at all (
Reference to undeclared resource)"). So the file gives a reader two accounts of its mechanism, and the loose one generalises a load-time error into "a check stops a plan": an author who later adds anothercheckexpecting a refusal gets a green run with a warning in it.This is a standard, not taste: workshop ADR-0004's consequences say "Saying so is part of the rule: a guard trusted for more than it does is worse than none." Not a blocker — the guard itself refuses what S1 asked it to refuse, and this sentence is prose beside it.
Clearing: one clause — name the mechanism instead of the mechanism class, e.g. "It is not a wall either: the reference stops the load, not a container removed on the node or a disk that fails, and a deliberate teardown lifts both guards first."
Verified by hand, at
85d4ec1env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make checkenv fetch: every case passed., 70^ oklines — 68 fromscripts/tests/run.sh, 2 fromenv-check. The body's 68 + 2 is exact.mise execmake -n checkprints only./scripts/env.sh checkand./scripts/tests/run.shtofu validateinbao/guest(locked provider 0.117.0, downloaded)Success! The configuration is valid.tofu fmt -check -recursive -diffover the treeguards.tfincludedpool_id = "")Plan: 0 to add, 2 to change, 0 to destroy, rc 0 — no replacement (B1 holds)Reference to undeclared resourceatcontainer.tf:25,:26andguards.tf:19Reference to undeclared resourceatguards.tf:19alone374845fPlan: 0 to add, 1 to change, 1 to destroy, rc 0 — the hole S1 chargedplan -destroyError: Resource instance cannot be destroyed·prevent_destroy set, but the plan calls for it to be destroyed, rc 1vm_id144 → 145, and the base image bumpedprevent_destroy, rc 1Plan: 2 to add, 0 to change, 0 to destroy, rc 0, no check warning — thevm_idcondition is known at plan, asguards.tf:14-16saysssh burns pvesh get /pools)/pools/prodlists 141, 142, 143, 144 openbao and 150 —docs/proxmox-credentials.md:11-17and the body's Merge Danger both holdolympus/workshop#18and its pagea108d90, page present on the branch, absent frommain—Makefile:199-204holdslifecycleblock and onecheck; nothing else movedNot verified
make envagainst the live store from a machine holding the Operator's seeds — this host holds none. Unchanged by this delta (noscripts/env.sh,env.mapor.env.exampleline), and round 2 drove it against the stub suite and a syntheticHOME.tofu plan/make guestagainst the cluster — no Proxmox token fortofuon this host. The plans above are the locked provider over a written state with-refresh=false; the cluster itself was read, not planned.0 to add, 1 to change, 0 to destroy, and my fixture reproduces2 to change— the in-place count is a property of the hand-written state, so the figure I compare across revisions is the destroy count (0). Not charged.Checked and accepted
olympus/workshop#18itself currently sits atreview/needs-fix, so the pageMakefile:199-204points at may still change before it lands. That is that PR's timeline, not this diff's, and the comment only claims the page is not onmainyet — which is true.Summary
guards.tfthat generalises a load-time error into "a check stops a plan".No blocker. One advisory trips no volume rule (three would), so the state is
APPROVEand the label moves toreview/merge-ready; A1 travels as advice, not as a reason for a fourth round.pit referenced this pull request2026-10-28 21:15:05 +00:00