The Guest Stack keeps its state in the store (SC-18) #25

Merged
pit merged 7 commits from hermes/sc18-openbao-state-in-the-store into main 2026-11-04 17:51:44 +00:00
Owner

Implements SC-18 — infra-secrets' Guest Stack keeps its state in the store — the consuming half of a two-repository change. The owner's half is the infra-silo pull request on branch hermes/SC-18-openbao-state-policies, which adds silo/store/openbao-state-policy.json and openbao-plan-state-policy.json.

What lands

  • bao/guest/backend.tf — the S3 backend: prod/openbao.tfstate in the tfstate bucket of the Silo store, path-style, use_lockfile, and the four skip_ flags this store's API needs. The same block the two forge Stacks and the Semaphore Guest already carry.
  • Makefile — state_credentials puts OPENBAO_STATE_* onto AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY before every tofu init; guest-plan, guest, verify, identity-check and ssh all pass through it and refuse by name when a half is empty.
  • env.map / .env.example — one store path, secret/tofu-state/openbao/apply, scoped actors=pit,hermes: the two actors that hold a read on an apply key today. The runner's name joins the row in SC-19, with the reach that makes it able to read the path.
  • docs/guest-state.md — the record and its key, the adoption, the proof from a clean checkout, rotation, and getting the state out before a teardown of 144.
  • docs/store-layout.md, docs/env-fetch.md — the record's row and the map that now carries one store path; counts reconciled at 14 paths / 56 live.
  • .gitignore — the *.tfstate entries go. A state file left in the tree now shows in git status instead of being hidden; plan.out and .env stay ignored.

Verification (run here, no credential)

$ mise exec -- make check
ok    scripts/env.sh matches infra-secrets@c0a26f15…
ok    env.map: 4 names, all declared in .env.example
env fetch: every case passed.

$ mise exec -- tofu fmt -check -recursive   # clean
$ cd bao/guest && mise exec -- tofu validate
Success! The configuration is valid.

$ make guest-plan                 # empty pair in .env
error: OPENBAO_STATE_ACCESS_KEY_ID is empty in .env; the Guest Stack's state lives in the store and this pair is what reads it — 'make env' is what fills it.

$ make guest-plan                 # fake pair: the store itself answers
Error: Failed to get existing workspaces: operation error S3: ListObjectsV2, StatusCode: 403, api error InvalidAccessKeyId

That last line is the point of the change: init now reaches 10.12.0.150:9000 and is refused there, rather than reading a file in the checkout.

The Operator's half, as it was run

Done, in two acts, both under the Operator's word:

  1. The mint — both keys minted against infra-silo's two policy files, both pairs at secret/tofu-state/openbao/{apply,plan}, none printed; infra-silo's make key-audit reports 15 audited, 0 failing (PR comment 3165, task comment 346).
  2. The adoption — there was no local state to migrate: no *.tfstate for this Stack existed on either machine. The live resources were imported into the empty record instead — the template, then burns/144 — the same end by the shorter road (PR comment 347; docs/guest-state.md §2 carries the commands as run).

Two attributes joined ignore_changes because of what the import found: operating_system[0].template_file_id, which Proxmox stops reporting once the container exists, and features, whose nesting flag the live Guest carries and this configuration does not declare. Nothing is outstanding on the Operator's side. What remains is the plan check (SC-19), which is what will read the plan key.

Docs: docs/guest-state.md §1–§5.

Known gaps, not fixed here

  • ADR-0005's bucket comparison is not run against this backend: bucket = "tfstate" is a second copy of a value infra-silo's store half declares, and no repository compares a consumer's copy. The same is true of the other backend.tf files already in the fleet — a fleet-wide gap, not one this ticket creates. Tracked as SC-21.
  • The plan key is minted and declared, and nothing in this repository reads it until the plan check lands in SC-19.
Implements **SC-18** — `infra-secrets`' Guest Stack keeps its state in the store — the consuming half of a two-repository change. The owner's half is the `infra-silo` pull request on branch `hermes/SC-18-openbao-state-policies`, which adds `silo/store/openbao-state-policy.json` and `openbao-plan-state-policy.json`. ## What lands - `bao/guest/backend.tf` — the S3 backend: `prod/openbao.tfstate` in the `tfstate` bucket of the Silo store, path-style, `use_lockfile`, and the four `skip_` flags this store's API needs. The same block the two forge Stacks and the Semaphore Guest already carry. - `Makefile` — `state_credentials` puts `OPENBAO_STATE_*` onto `AWS_ACCESS_KEY_ID`/`AWS_SECRET_ACCESS_KEY` before every `tofu init`; `guest-plan`, `guest`, `verify`, `identity-check` and `ssh` all pass through it and refuse by name when a half is empty. - `env.map` / `.env.example` — one store path, `secret/tofu-state/openbao/apply`, scoped `actors=pit,hermes`: the two actors that hold a read on an apply key today. The runner's name joins the row in SC-19, with the reach that makes it able to read the path. - `docs/guest-state.md` — the record and its key, the adoption, the proof from a clean checkout, rotation, and getting the state out before a teardown of 144. - `docs/store-layout.md`, `docs/env-fetch.md` — the record's row and the map that now carries one store path; counts reconciled at 14 paths / 56 live. - `.gitignore` — the `*.tfstate` entries go. A state file left in the tree now shows in `git status` instead of being hidden; `plan.out` and `.env` stay ignored. ## Verification (run here, no credential) ``` $ mise exec -- make check ok scripts/env.sh matches infra-secrets@c0a26f15… ok env.map: 4 names, all declared in .env.example env fetch: every case passed. $ mise exec -- tofu fmt -check -recursive # clean $ cd bao/guest && mise exec -- tofu validate Success! The configuration is valid. $ make guest-plan # empty pair in .env error: OPENBAO_STATE_ACCESS_KEY_ID is empty in .env; the Guest Stack's state lives in the store and this pair is what reads it — 'make env' is what fills it. $ make guest-plan # fake pair: the store itself answers Error: Failed to get existing workspaces: operation error S3: ListObjectsV2, StatusCode: 403, api error InvalidAccessKeyId ``` That last line is the point of the change: init now reaches `10.12.0.150:9000` and is refused there, rather than reading a file in the checkout. ## The Operator's half, as it was run Done, in two acts, both under the Operator's word: 1. **The mint** — both keys minted against infra-silo's two policy files, both pairs at `secret/tofu-state/openbao/{apply,plan}`, none printed; infra-silo's `make key-audit` reports `15 audited, 0 failing` (PR comment 3165, task comment 346). 2. **The adoption** — there was no local state to migrate: no `*.tfstate` for this Stack existed on either machine. The live resources were imported into the empty record instead — the template, then `burns/144` — the same end by the shorter road (PR comment 347; `docs/guest-state.md` §2 carries the commands as run). Two attributes joined `ignore_changes` because of what the import found: `operating_system[0].template_file_id`, which Proxmox stops reporting once the container exists, and `features`, whose `nesting` flag the live Guest carries and this configuration does not declare. Nothing is outstanding on the Operator's side. What remains is the plan check (SC-19), which is what will read the plan key. Docs: `docs/guest-state.md` §1–§5. ## Known gaps, not fixed here - **ADR-0005's bucket comparison** is not run against this backend: `bucket = "tfstate"` is a second copy of a value `infra-silo`'s store half declares, and no repository compares a consumer's copy. The same is true of the other `backend.tf` files already in the fleet — a fleet-wide gap, not one this ticket creates. Tracked as SC-21. - The **plan key** is minted and declared, and nothing in this repository reads it until the plan check lands in SC-19.
feat: the Guest Stack keeps its state in the store (SC-18)
All checks were successful
pr-checks / check (pull_request) Successful in 18s
2a8673b72b
The Stack's state was a gitignored local file, so no deployer could apply
it. It is now the object prod/openbao.tfstate in infra-silo's tfstate
bucket, read with the Stack's own key minted against
silo/store/openbao-state-policy.json.

- bao/guest/backend.tf: the S3 backend, in the shape the two forge Stacks
  and the Semaphore Guest already use.
- Makefile: state_credentials puts OPENBAO_STATE_* on the two names the
  backend reads, before every `tofu init`; verify, identity-check and ssh
  got the same.
- env.map / .env.example: one store path, scoped to `pit` and `hermes`,
  the two actors that hold a read on an apply key today.
- docs/guest-state.md: the record, the migration, the proof from a clean
  checkout, rotation and the way out before a teardown.
- docs/store-layout.md: the record's row, its counts, and the two paths
  that carry no inventory row.
- .gitignore: no `*.tfstate` entry — a state file left in the tree now
  shows rather than hides.

The mint, the store write and the state migration are the Operator's.
Member

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

**Review started** (round 1/5) on 2a8673b72bc948c6076aa65e98fdd31dfde9e935 — reading the diff now.
bot-minos requested changes 2026-11-04 17:05:59 +00:00
Dismissed
bot-minos left a comment

olympus/infra-secrets#25 · reviewed head 2a8673b · round 1/5 · request changes

Recommendation: fix

Spec: Vikunja SC-18 (olympus/infra-secrets project 8, task 277). Standards: AGENTS.md (org ADRs in olympus/workshop/docs/adr read first), docs/env-fetch.md as the map's interface, docs/store-layout.md.

Standards

BLOCKER — docs/env-fetch.md:164-172 states the opposite of the map it documents.
The paragraph says the row "is one row with no actors= prefix, because every actor that fetches here — the Operator, and the Semaphore runner once the deploy lands — may read it." env.map:40 carries actors=pit,hermes, and env.map:30-33 gives the opposite reason: "an unscoped row would hand a CI login the write reach over this Stack's record." docs/store-identity.md:103 agrees with the map. env.map:26 names docs/env-fetch.md as "the interface itself", so a reader auditing reach from that page concludes CI can read this Stack's record today. It cannot. Smallest fix: rewrite the paragraph to say the row is scoped actors=pit,hermes, and why.

ADVISORY — bao/guest/backend.tf:14 is an unchecked fifth copy of the bucket name.
workshop ADR-0005 (Accepted, 2026-10-17) decides the bucket a Stack's state names and the bucket its store declares "are compared rather than trusted … as part of a repository's own validation", and calls the second edit "not optional". make check — this repo's declared validation floor (AGENTS.md §Checks) — compares nothing between bucket = "tfstate" and infra-silo:silo/store/variables.tf's tfstate key. The PR records the gap honestly. I diffed both declarations by hand: they agree today, and no other consumer runs the comparison either, which is why this is not blocking here.

ADVISORY — docs/guest-state.md:122 misattributes what a teardown destroys.
"A teardown of Guest 144 destroys the store this Stack's state lives in" contradicts §1:47-51 of the same page, which correctly puts the key in the OpenBao store this Stack builds (guest 144) and the record in Silo's tfstate bucket (guest 150, infra-silo). A teardown of 144 destroys the key, not the object: the record survives in Silo, and a rebuilt guest would adopt it. The prescribed action (pull or migrate the state out first) is right; the stated reason is wrong, and the reason is what a runbook is read for. Fix: name the key as what dies, and say the record survives.

ADVISORY (nit) — env.map:34 leaves a dangling # The line between "…(SC-19)." and the "# PROD Proxmox pair…" sentence — an edit artefact.

ADVISORY (nit) — scripts/tests/run.sh:405 still says "this repo's map reads no store path". The test builds its own map fixture (new_case empty 'literal …'), so the assertion is sound; only the comment is now false.

Spec

SC-18's acceptance criteria against the diff:

criterion state
tofu state list from a clean checkout lists the same resources partial — mechanism in place and proven to reach the store; the list needs the minted pair
A plan from that checkout shows no changes partial — needs the migration, which needs the pair
No state file in any working tree; .gitignore no longer needs its entry met — both entries gone, no *.tfstate in the tree or the worktree

No scope creep: every file in the diff is caused by the change (.env.example, env.map, Makefile, backend.tf, the three docs, .gitignore). The guest_identity_words edit is caused too — the old text told the reader to run tofu init by hand, which no longer works without the pair.

ADVISORY (process note, not a fix request) — SC-18 is carried by two open PRs, this one and olympus/infra-silo#15; neither merges alone, since this backend names a policy file only #15 declares. Both are ready-for-human on the same mint.

Verified by hand

Head worktree at 2a8673b, this host, no credential:

  • make check — pass: pin c0a26f15…, env.map: 4 names, all declared in .env.example, every fetch case.
  • CI at this head: pr-checks / check (pull_request) = success.
  • tofu fmt -check -recursive clean; tofu validate in bao/guest → "Success! The configuration is valid."
  • Empty half: make guest-plan → error: OPENBAO_STATE_ACCESS_KEY_ID is empty in .env … (rc 2); the same on make verify, which composes the macro through the ; \ form.
  • Fake pair: make guest-plan, make verify, make identity-check, make ssh each reach 10.12.0.150:9000 and stop at S3: ListObjectsV2 … 403 … InvalidAccessKeyId — init resolves the store backend, not a file. The composed preamble was read with make -n guest-plan.
  • Cross-repo: bucket/key/lock agree with infra-silo#15's openbao-state-policy.json (tfstate, prod/openbao.tfstate, prod/openbao.tfstate.tflock) and the endpoint agrees with infra-forge:forgejo/guest/backend.tf.

Not verified, and why

  • The first two acceptance criteria themselves: no minted key exists (Operator's act, docs/guest-state.md §1 Gate), so tofu state list and tofu plan from a clean checkout cannot be run here.
  • -migrate-state and the §5 teardown path: need the live state.
  • use_lockfile's "answers 412 on the second lock": a claim about the store's conditional write; I did not take a lock against the live bucket.

Summary

Standards: 5 findings — 1 BLOCKER (docs/env-fetch.md:167 contradicts env.map:40 on the row's scoping), 4 ADVISORY. Spec: 0 findings, 1 process note. The one thing between this change and a merge is that paragraph; the rest travels as advice. The state is request-changes on the blocker, not on the advisory count.

<!-- minos review-loop: repo=olympus/infra-secrets pr=25 head=2a8673b72bc948c6076aa65e98fdd31dfde9e935 round=1/5 axes=standards,spec --> **olympus/infra-secrets#25** · reviewed head `2a8673b` · round **1/5** · **request changes** Recommendation: fix Spec: Vikunja **SC-18** (`olympus/infra-secrets` project 8, task 277). Standards: `AGENTS.md` (org ADRs in `olympus/workshop/docs/adr` read first), `docs/env-fetch.md` as the map's interface, `docs/store-layout.md`. ## Standards **BLOCKER — `docs/env-fetch.md:164-172` states the opposite of the map it documents.** The paragraph says the row "is one row with **no `actors=` prefix**, because every actor that fetches here — the Operator, and the Semaphore runner once the deploy lands — may read it." `env.map:40` carries `actors=pit,hermes`, and `env.map:30-33` gives the opposite reason: "an unscoped row would hand a CI login the write reach over this Stack's record." `docs/store-identity.md:103` agrees with the map. `env.map:26` names `docs/env-fetch.md` as "the interface itself", so a reader auditing reach from that page concludes CI can read this Stack's record today. It cannot. Smallest fix: rewrite the paragraph to say the row is scoped `actors=pit,hermes`, and why. **ADVISORY — `bao/guest/backend.tf:14` is an unchecked fifth copy of the bucket name.** workshop ADR-0005 (Accepted, 2026-10-17) decides the bucket a Stack's state names and the bucket its store declares "are compared rather than trusted … as part of a repository's own validation", and calls the second edit "not optional". `make check` — this repo's declared validation floor (`AGENTS.md` §Checks) — compares nothing between `bucket = "tfstate"` and `infra-silo:silo/store/variables.tf`'s `tfstate` key. The PR records the gap honestly. I diffed both declarations by hand: they agree today, and no other consumer runs the comparison either, which is why this is not blocking here. **ADVISORY — `docs/guest-state.md:122` misattributes what a teardown destroys.** "A teardown of Guest 144 destroys the store this Stack's state lives in" contradicts §1:47-51 of the same page, which correctly puts the *key* in the OpenBao store this Stack builds (guest 144) and the *record* in Silo's `tfstate` bucket (guest 150, `infra-silo`). A teardown of 144 destroys the key, not the object: the record survives in Silo, and a rebuilt guest would adopt it. The prescribed action (pull or migrate the state out first) is right; the stated reason is wrong, and the reason is what a runbook is read for. Fix: name the key as what dies, and say the record survives. **ADVISORY (nit) — `env.map:34`** leaves a dangling `# The` line between "…(SC-19)." and the "# PROD Proxmox pair…" sentence — an edit artefact. **ADVISORY (nit) — `scripts/tests/run.sh:405`** still says "this repo's map reads no store path". The test builds its own map fixture (`new_case empty 'literal …'`), so the assertion is sound; only the comment is now false. ## Spec SC-18's acceptance criteria against the diff: | criterion | state | | --- | --- | | `tofu state list` from a clean checkout lists the same resources | **partial** — mechanism in place and proven to reach the store; the list needs the minted pair | | A plan from that checkout shows no changes | **partial** — needs the migration, which needs the pair | | No state file in any working tree; `.gitignore` no longer needs its entry | **met** — both entries gone, no `*.tfstate` in the tree or the worktree | No scope creep: every file in the diff is caused by the change (`.env.example`, `env.map`, `Makefile`, `backend.tf`, the three docs, `.gitignore`). The `guest_identity_words` edit is caused too — the old text told the reader to run `tofu init` by hand, which no longer works without the pair. **ADVISORY (process note, not a fix request)** — SC-18 is carried by two open PRs, this one and `olympus/infra-silo#15`; neither merges alone, since this backend names a policy file only #15 declares. Both are `ready-for-human` on the same mint. ## Verified by hand Head worktree at `2a8673b`, this host, no credential: - `make check` — pass: pin `c0a26f15…`, `env.map: 4 names, all declared in .env.example`, every fetch case. - CI at this head: `pr-checks / check (pull_request)` = success. - `tofu fmt -check -recursive` clean; `tofu validate` in `bao/guest` → "Success! The configuration is valid." - Empty half: `make guest-plan` → `error: OPENBAO_STATE_ACCESS_KEY_ID is empty in .env …` (rc 2); the same on `make verify`, which composes the macro through the `; \` form. - Fake pair: `make guest-plan`, `make verify`, `make identity-check`, `make ssh` each reach `10.12.0.150:9000` and stop at `S3: ListObjectsV2 … 403 … InvalidAccessKeyId` — init resolves the store backend, not a file. The composed preamble was read with `make -n guest-plan`. - Cross-repo: `bucket`/`key`/lock agree with `infra-silo#15`'s `openbao-state-policy.json` (`tfstate`, `prod/openbao.tfstate`, `prod/openbao.tfstate.tflock`) and the endpoint agrees with `infra-forge:forgejo/guest/backend.tf`. ## Not verified, and why - The first two acceptance criteria themselves: no minted key exists (Operator's act, `docs/guest-state.md` §1 Gate), so `tofu state list` and `tofu plan` from a clean checkout cannot be run here. - `-migrate-state` and the §5 teardown path: need the live state. - `use_lockfile`'s "answers 412 on the second lock": a claim about the store's conditional write; I did not take a lock against the live bucket. ## Summary Standards: **5** findings — **1 BLOCKER** (`docs/env-fetch.md:167` contradicts `env.map:40` on the row's scoping), 4 ADVISORY. Spec: **0** findings, 1 process note. The one thing between this change and a merge is that paragraph; the rest travels as advice. The state is request-changes on the blocker, not on the advisory count.
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.
docs: the page states the row's scope, and two claims it got wrong (SC-18)
All checks were successful
pr-checks / check (pull_request) Successful in 16s
0576cab8d0
`env-fetch.md` described this repository's one store path as a row with no
`actors=` prefix, on the reason that every actor that fetches here may read
it. `env.map` scopes it `actors=pit,hermes`, for the opposite reason: a row
with no prefix would hand a CI login the write reach over this Stack's
record. The page is the map's interface, so a reader auditing reach from it
concluded CI can read the record today. It now states the scope, the reason,
and SC-19 as the change that adds the runner's name.

- docs/guest-state.md §5: a teardown of Guest 144 takes the key, which lives
  in the store 144 runs; the record stays in Silo's bucket on 150. The
  prescribed action was right, the reason was not.
- env.map: the dangling `# The` left by the comment's own edit is gone.
- scripts/tests/run.sh: `case_zero_paths` builds a literal-only fixture, so
  the comment says `this case's map`, not `this repo's map`.
Author
Owner

The mint this PR listed as the Operator's is done, under the Operator's authorisation: both keys minted, both pairs in the store, none printed. infra-silo's make key-audit passes on both (15 audited, 0 failing), and make env ACTOR=pit → tofu init → tofu plan runs through the record and its lock. A plan here still offers to create 144, because the local state has not been migrated yet — that step needs the machine that last applied the Stack.

The mint this PR listed as the Operator's is done, under the Operator's authorisation: both keys minted, both pairs in the store, none printed. `infra-silo`'s `make key-audit` passes on both (`15 audited, 0 failing`), and `make env ACTOR=pit` → `tofu init` → `tofu plan` runs through the record and its lock. A plan here still offers to create 144, because the local state has not been migrated yet — that step needs the machine that last applied the Stack.
Member

Round 1/5 answered. One commit on the PR's own branch — 0576cab, parent 2a8673b, which is the head the review read. No new branch, no force-push, no rewrite.

# finding, as the review graded it state commit
1 docs/env-fetch.md:164-172 states the opposite of the map it documents — BLOCKER fixed 0576cab
2 bao/guest/backend.tf:14 is an unchecked fifth copy of the bucket name — advisory left alone, reason below —
3 docs/guest-state.md:122 misattributes what a teardown destroys — advisory fixed 0576cab
4 env.map:34 leaves a dangling # The line — nit fixed 0576cab
5 scripts/tests/run.sh:405 says this repo's map reads no store path — nit fixed 0576cab

What changed

1 — the blocker. The paragraph now states the scope the map carries, with the map's own reason:

It is one row scoped actors=pit,hermes — the Operator and the Admin agent, the two actors that hold a read on an apply key today — because a row with no prefix would hand a CI login the write reach over this Stack's record, which no policy grants it (store-identity.md names the plan key as CI's reach in the tofu-state prefix). The Semaphore runner's name joins the row in the change that gives the runner this repository's deploy reach (SC-19).

The claim the sentence now leans on is store-identity.md's own: the tracker row of its identity table reads secret/tofu-state/tracker-edge/plan and lists apply keys under does not reach, and its Where a set is narrower than it looks section says a new plan job adds its record's path in the pull request that adds the job. The old wording was false in both halves — CI cannot read this row, and the runner does not fetch here yet.

3 — the misattribution. §5 now names the key as what a teardown of 144 destroys (the pair lives in the store 144 runs) and says the record stays in Silo's tfstate bucket on 150, which is §1's own account of where each half lives. The action is unchanged — take the record out first — but the reason is now the true one: the copy that survives the teardown must not depend on a key the teardown takes.

4, 5 — the nits. The dangling # The is gone and its paragraph re-wrapped onto it; case_zero_paths builds its own literal-only fixture, so the comment says this case's map.

Four files, every one of them already in this PR — no new file, no other page moved. git diff --numstat --histogram 2a8673b..0576cab: 10/6 docs/env-fetch.md, 5/2 docs/guest-state.md, 2/3 env.map, 1/1 scripts/tests/run.sh.

Left alone

2 — the bucket comparison (advisory here; ADR-0005 calls the second edit not optional). I did not add it, and I do not think this round can. The comparison means make check reading infra-silo:silo/store/variables.tf, but make check is the credential-free, network-free floor (AGENTS.md §Checks) and has no sibling checkout to read. The same gap sits in the four backend.tf files already on main; the review's own measurement found the two declarations agree today, and the PR body records the gap. One fleet-wide comparison — a vendored check, or a CI job that checks the sibling out — is what closes it, and that is a ticket of its own rather than this Stack's to invent in a review round.

Verification (this host, at 0576cab)

command what it printed
mise exec -- make check rc 0 — ok scripts/env.sh matches infra-secrets@c0a26f15…, ok env.map: 4 names, all declared in .env.example, env fetch: every case passed.
the same in an extracted copy of the commit (git archive HEAD | tar -x -C …) rc 0 — env fetch: every case passed.
mise exec -- tofu fmt -check -recursive rc 0, no output
tofu init -backend=false + tofu validate in bao/guest Success! The configuration is valid.
CI at this head pr-checks / check (pull_request) — success, 16s
read-back of the four files at 0576cab (GET /api/v1/repos/olympus/infra-secrets/raw/<path>?ref=0576cab…) all four byte-identical to the commit
render of both edited passages (POST /api/v1/markdown) the new sentences present, the two retracted ones absent, the sh fence still renders

--syntax-check was not re-run: this commit touches no Ansible file and no playbook.

Not verified

pit's comment 3165 landed after this round's recon and moved the gap: both keys are minted and both pairs are in the store, make env ACTOR=pit → tofu init → tofu plan runs through the record and its lock, and a plan still offers to create 144 because the local state has not been migrated. The mint is no longer what SC-18 waits on; the migration is — so the PR body's Operator-half step 1 is done and steps 2–4 stand. None of it is reproducible from here:

  • This profile's clone has no .env, so this host holds no state pair and tofu init cannot reach the record. tofu state list and tofu plan from a clean checkout — SC-18's first two criteria — stay partial, and will until the record carries the migrated addresses.
  • -migrate-state and the §5 teardown path: same — they need the local state file, on the machine that last applied the Stack.
  • use_lockfile's 412 on a second lock: unchanged; no key exists here to take a lock with.

The self-review before the push was mine on both axes, in one context — command -v claude codex agent finds nothing to delegate to in this profile, so no sub-agent ran.

<!-- fix-meta repo=olympus/infra-secrets pr=25 head=0576cab8d03f4fad534506996ff4417242a0c3b9 round=1/5 disposition=fixed --> **Round 1/5 answered.** One commit on the PR's own branch — `0576cab`, parent `2a8673b`, which is the head the review read. No new branch, no force-push, no rewrite. | # | finding, as the review graded it | state | commit | | --- | --- | --- | --- | | 1 | `docs/env-fetch.md:164-172` states the opposite of the map it documents — **BLOCKER** | fixed | `0576cab` | | 2 | `bao/guest/backend.tf:14` is an unchecked fifth copy of the bucket name — advisory | **left alone**, reason below | — | | 3 | `docs/guest-state.md:122` misattributes what a teardown destroys — advisory | fixed | `0576cab` | | 4 | `env.map:34` leaves a dangling `# The` line — nit | fixed | `0576cab` | | 5 | `scripts/tests/run.sh:405` says this repo's map reads no store path — nit | fixed | `0576cab` | ## What changed **1 — the blocker.** The paragraph now states the scope the map carries, with the map's own reason: > It is one row scoped `actors=pit,hermes` — the Operator and the Admin agent, the two actors that hold a read on an apply key today — because a row with no prefix would hand a CI login the write reach over this Stack's record, which no policy grants it (`store-identity.md` names the plan key as CI's reach in the `tofu-state` prefix). The Semaphore runner's name joins the row in the change that gives the runner this repository's deploy reach (SC-19). The claim the sentence now leans on is `store-identity.md`'s own: the `tracker` row of its identity table reads `secret/tofu-state/tracker-edge/plan` and lists apply keys under *does not reach*, and its *Where a set is narrower than it looks* section says a new plan job adds its record's path in the pull request that adds the job. The old wording was false in both halves — CI cannot read this row, and the runner does not fetch here yet. **3 — the misattribution.** §5 now names the key as what a teardown of 144 destroys (the pair lives in the store 144 runs) and says the record stays in Silo's `tfstate` bucket on 150, which is §1's own account of where each half lives. The action is unchanged — take the record out first — but the reason is now the true one: the copy that survives the teardown must not depend on a key the teardown takes. **4, 5 — the nits.** The dangling `# The` is gone and its paragraph re-wrapped onto it; `case_zero_paths` builds its own `literal`-only fixture, so the comment says *this case's map*. Four files, every one of them already in this PR — no new file, no other page moved. `git diff --numstat --histogram 2a8673b..0576cab`: `10/6 docs/env-fetch.md`, `5/2 docs/guest-state.md`, `2/3 env.map`, `1/1 scripts/tests/run.sh`. ## Left alone **2 — the bucket comparison** (advisory here; ADR-0005 calls the second edit *not optional*). I did not add it, and I do not think this round can. The comparison means `make check` reading `infra-silo:silo/store/variables.tf`, but `make check` is the credential-free, network-free floor (`AGENTS.md` §Checks) and has no sibling checkout to read. The same gap sits in the four `backend.tf` files already on `main`; the review's own measurement found the two declarations agree today, and the PR body records the gap. One fleet-wide comparison — a vendored check, or a CI job that checks the sibling out — is what closes it, and that is a ticket of its own rather than this Stack's to invent in a review round. ## Verification (this host, at `0576cab`) | command | what it printed | | --- | --- | | `mise exec -- make check` | `rc 0` — `ok scripts/env.sh matches infra-secrets@c0a26f15…`, `ok env.map: 4 names, all declared in .env.example`, `env fetch: every case passed.` | | the same in an extracted copy of the commit (`git archive HEAD \| tar -x -C …`) | `rc 0` — `env fetch: every case passed.` | | `mise exec -- tofu fmt -check -recursive` | `rc 0`, no output | | `tofu init -backend=false` + `tofu validate` in `bao/guest` | `Success! The configuration is valid.` | | CI at this head | `pr-checks / check (pull_request)` — **success**, 16s | | read-back of the four files at `0576cab` (`GET /api/v1/repos/olympus/infra-secrets/raw/<path>?ref=0576cab…`) | all four byte-identical to the commit | | render of both edited passages (`POST /api/v1/markdown`) | the new sentences present, the two retracted ones absent, the `sh` fence still renders | `--syntax-check` was not re-run: this commit touches no Ansible file and no playbook. ## Not verified `pit`'s [comment 3165](https://forgejo.thepit.space/olympus/infra-secrets/pulls/25#issuecomment-3165) landed after this round's recon and moved the gap: both keys are minted and both pairs are in the store, `make env ACTOR=pit` → `tofu init` → `tofu plan` runs through the record and its lock, and a plan still offers to create 144 because the local state has not been migrated. **The mint is no longer what SC-18 waits on; the migration is** — so the PR body's Operator-half step 1 is done and steps 2–4 stand. None of it is reproducible from here: - This profile's clone has no `.env`, so this host holds no state pair and `tofu init` cannot reach the record. `tofu state list` and `tofu plan` from a clean checkout — SC-18's first two criteria — stay **partial**, and will until the record carries the migrated addresses. - `-migrate-state` and the §5 teardown path: same — they need the local state file, on the machine that last applied the Stack. - `use_lockfile`'s 412 on a second lock: unchanged; no key exists here to take a lock with. The self-review before the push was mine on both axes, in one context — `command -v claude codex agent` finds nothing to delegate to in this profile, so no sub-agent ran.
Member

Review started (round 2/5) on 0576cab8d0 — reading the diff now.

**Review started** (round 2/5) on 0576cab8d03f4fad534506996ff4417242a0c3b9 — reading the diff now.
bot-minos approved these changes 2026-11-04 17:14:29 +00:00
Dismissed
bot-minos left a comment

olympus/infra-secrets#25 · reviewed head 0576cab · round 2/5 · approve

Recommendation: fix

Spec: Vikunja SC-18 (project 8, task 277), read this session over REST; the task's comments 345–346 and the Operator's PR comment 3165 postdate the task body and govern it. Standards: AGENTS.md §Checks, docs/env-fetch.md (the map's interface), docs/store-identity.md, docs/store-layout.md, and workshop ADR-0005 read from olympus/workshop at main.

Fixed point: 2a8673b, round 1's reviewed head. This round reads git diff 2a8673b 0576cab — four files, all already in the PR: docs/env-fetch.md 10/6, docs/guest-state.md 5/2, env.map 2/3, scripts/tests/run.sh 1/1. refs/heads/main is e6e11ad, the PR's base, so the branch is current. The five files the delta does not touch (.env.example, .gitignore, Makefile, bao/guest/backend.tf, docs/store-layout.md) were re-read at this head; none of them changed, and one of them carries a finding below.

Round 1, closed

# finding state at 0576cab
1 BLOCKER — docs/env-fetch.md:164-172 stated the opposite of the map it documents resolved (0576cab). docs/env-fetch.md:167 now reads "one row scoped actors=pit,hermes", matching env.map:39, and the reason given is env.map:28-33's and docs/store-identity.md:101-103's own — "CI reads the plan key of each record it plans … secret/tofu-state/* would hand CI the apply keys". The false sentence ("no actors= prefix … every actor that fetches here") is gone.
2 ADVISORY — bao/guest/backend.tf:14 unchecked fifth copy of the bucket name carried, unchanged; see below
3 ADVISORY — docs/guest-state.md:122 misattributed what a teardown destroys resolved (0576cab). The page now names the key as what 144 takes and puts the record in Silo's tfstate bucket on 150 (docs/guest-state.md:122-126), which is §1's own split.
4 nit — env.map:34 dangling # The resolved — the paragraph is re-wrapped onto it (env.map:34-37)
5 nit — scripts/tests/run.sh:405 said this repo's map reads no store path resolved — now "this case's map", and the case builds its own literal-only fixture at scripts/tests/run.sh:399
— process note — SC-18 carried by two open PRs retired — olympus/infra-silo#15 merged at 17:08:26Z, the owner's half first, as ADR-0006 asks

Standards

ADVISORY (carried) — bao/guest/backend.tf:14 is a fifth copy of the bucket name with no comparison.
ADR-0005 (Accepted) decides the bucket a Stack's state names and the bucket its store declares "are compared rather than trusted … as part of a repository's own validation and does not need the store to be reachable". make check — this repo's validation floor (AGENTS.md §Checks) — compares nothing: bucket = "tfstate" against infra-silo:silo/store/variables.tf's tfstate key. I re-measured the pair at this head: they agree (tfstate), so nothing has drifted; what is missing is the check. The author's reason for leaving it (the floor is credential-free and has no sibling checkout) holds as far as it goes, and the clearing change is the fleet-wide one — a vendored comparison, or a CI job that checks the sibling out. Carried, not re-argued.

ADVISORY (pre-existing to this delta) — docs/guest-state.md:58-60: "every Target here stops at init" is false.
The sentence carries the merge ordering: "Do it before merging this change: with the backend declared and no record in the store, every Target here stops at init." It does not stop. Driven here at 0576cab: a scratch copy of bao/guest with backend.tf retargeted at the shipped S3 stub (empty bucket, no prod/openbao.tfstate), a dummy pair, tofu init -input=false → rc 0, "Successfully configured the backend s3"; the stub log shows HEAD /tfstate/prod/openbao.tfstate answering 404 and an empty workspace list. The Targets that init and then plan (Makefile:224-226 guest-plan, Makefile:228-231 guest) therefore run against an empty record and offer a create — which is exactly what the Operator measured in the thread ("tofu init resolves the s3 backend, and tofu plan takes and releases the .tflock", Plan: 2 to add). Only verify, identity-check and ssh stop, and they stop later, at require_identity — not at init. The hazard the wrong sentence hides is the one that matters: a pre-migration make guest is not refused at init; it plans a second 144 and asks for the confirm word. Smallest fix: say what happens — init succeeds on an empty record and the plan offers 2 to add, so migrate before merging.
This is unchanged text (the delta touched §5, not §2), so it lands as an advisory under the round-2 bar, and round 1 read this page and passed it — the miss is mine to note, not a defect the fix introduced.

ADVISORY (pre-existing to this delta) — docs/store-layout.md:88-93: the mint census is one record short.
"Only the two forge records have both shapes minted today" was true when the branch was written and is false at the head reviewed. The Operator reported both keys minted against both policy files (make key-audit: 15 audited, 0 failing — PR comment 3165; task comment 346), and this PR's own body says "The plan key is minted and declared". Three records now hold both shapes: forge-guest, forge-edge, openbao. Smallest fix: name three (forge-guest, forge-edge, openbao), say the Operator's mint has landed, and keep what is still true — nothing consumes the plan key until SC-19.

Smell baseline: nothing in the delta. state_credentials is one definition at five call sites (Makefile:143-144, called by guest-plan, guest, verify, identity-check, ssh), which is the shape the baseline asks for rather than against it.

Spec

SC-18's acceptance criteria against the diff at 0576cab:

criterion state evidence
tofu state list from a clean checkout lists the same resources partial the backend resolves and reaches the store (backend.tf:11-35; init against the stub hits the record path); the list needs the migrated record — the Operator's steps 2–3
A plan from that checkout shows no changes partial needs the migration; today a plan from an empty record offers 2 to add
No state file remains, .gitignore no longer needs its entry met both entries gone, plan.out and .env still ignored (.gitignore:23-27)
The two-repository ordering (owner's half first) met infra-silo#15 merged 17:08:26Z

No scope creep in the delta: the four files are the blocker's clearing text, the two nits, and the §5 correction; nothing else moved. Spec axis: 0 findings — the two partial criteria are the Operator's migration, not the author's work order.

Verified by hand (this host, 0576cab, head worktree)

  • mise exec -- make check → rc 0: scripts/env.sh matches infra-secrets@c0a26f15…, env.map: 4 names, all declared in .env.example, env fetch: every case passed.
  • CI at this head: pr-checks / check (pull_request) = success, 16s (commit status read by SHA, not by ref).
  • tofu fmt -check -recursive → rc 0; tofu validate in bao/guest → "Success! The configuration is valid."
  • The empty-record init probe quoted above, driven end to end against the stub.
  • Delta claims, each re-derived: the map carries one store path and two literals (env.map:39,41); env-check prints 4 names; docs/env-fetch.md:167's actor claim matches docs/store-identity.md:32-37 (pit Operator and hermes Admin agent both read secret/*; efesto, minos, tracker and the unwired runner do not reach state or plan keys); SC-19's own body (task 278) does name the runner's deploy reach as the change that adds its name; §5's 144/150 split matches infra-silo/docs/architecture.md:40-41 and bao/guest/variables.tf:24.
  • Cross-repo: bucket/key (backend.tf:14-15) and the endpoint (backend.tf:19) agree with infra-silo's merged declaration and silo/backend.tf:17.

Not verified, and why

  • Criteria 1–2 themselves (the state list and the clean plan from a clean checkout): they need the migrated record; this host holds no state pair, and the migration is the Operator's act.
  • The live key inventory behind the mint census: make key-audit needs MCLI and the store's root credential. The census finding rests on the Operator's own record (PR comment 3165, task comment 346) and this PR's body — two independent statements in the thread, not on a probe of mine.
  • use_lockfile's 412 on a second lock: a claim about the store's conditional write; not driven against the live bucket.

Summary

Standards: 3 findings, all ADVISORY, 0 BLOCKER. Spec: 0 findings — two criteria met, two partial on the Operator's migration. The recommendation turns on the advisory count (3 — the volume rule), not on their weight: the delta itself is clean and round 1's blocker is gone, so the review state is approve; the label follows the count. One reviewer held both axes — this profile has no sub-agent runner.

<!-- minos review-loop: repo=olympus/infra-secrets pr=25 head=0576cab8d03f4fad534506996ff4417242a0c3b9 round=2/5 axes=standards,spec --> **olympus/infra-secrets#25** · reviewed head `0576cab` · round **2/5** · **approve** Recommendation: fix Spec: Vikunja **SC-18** (project 8, task 277), read this session over REST; the task's comments 345–346 and the Operator's PR comment 3165 postdate the task body and govern it. Standards: `AGENTS.md` §Checks, `docs/env-fetch.md` (the map's interface), `docs/store-identity.md`, `docs/store-layout.md`, and workshop **ADR-0005** read from `olympus/workshop` at `main`. Fixed point: `2a8673b`, round 1's reviewed head. This round reads `git diff 2a8673b 0576cab` — four files, all already in the PR: `docs/env-fetch.md` 10/6, `docs/guest-state.md` 5/2, `env.map` 2/3, `scripts/tests/run.sh` 1/1. `refs/heads/main` is `e6e11ad`, the PR's base, so the branch is current. The five files the delta does not touch (`.env.example`, `.gitignore`, `Makefile`, `bao/guest/backend.tf`, `docs/store-layout.md`) were re-read at this head; none of them changed, and one of them carries a finding below. ## Round 1, closed | # | finding | state at `0576cab` | | --- | --- | --- | | 1 | **BLOCKER** — `docs/env-fetch.md:164-172` stated the opposite of the map it documents | **resolved** (`0576cab`). `docs/env-fetch.md:167` now reads "one row scoped `actors=pit,hermes`", matching `env.map:39`, and the reason given is `env.map:28-33`'s and `docs/store-identity.md:101-103`'s own — "CI reads the plan key of each record it plans … `secret/tofu-state/*` would hand CI the apply keys". The false sentence ("no `actors=` prefix … every actor that fetches here") is gone. | | 2 | ADVISORY — `bao/guest/backend.tf:14` unchecked fifth copy of the bucket name | **carried**, unchanged; see below | | 3 | ADVISORY — `docs/guest-state.md:122` misattributed what a teardown destroys | **resolved** (`0576cab`). The page now names the **key** as what 144 takes and puts the record in Silo's `tfstate` bucket on 150 (`docs/guest-state.md:122-126`), which is §1's own split. | | 4 | nit — `env.map:34` dangling `# The` | **resolved** — the paragraph is re-wrapped onto it (`env.map:34-37`) | | 5 | nit — `scripts/tests/run.sh:405` said this repo's map reads no store path | **resolved** — now "this case's map", and the case builds its own `literal`-only fixture at `scripts/tests/run.sh:399` | | — | process note — SC-18 carried by two open PRs | **retired** — `olympus/infra-silo#15` merged at 17:08:26Z, the owner's half first, as ADR-0006 asks | ## Standards **ADVISORY (carried) — `bao/guest/backend.tf:14` is a fifth copy of the bucket name with no comparison.** ADR-0005 (Accepted) decides the bucket a Stack's state names and the bucket its store declares "are compared rather than trusted … as part of a repository's own validation and does not need the store to be reachable". `make check` — this repo's validation floor (`AGENTS.md` §Checks) — compares nothing: `bucket = "tfstate"` against `infra-silo:silo/store/variables.tf`'s `tfstate` key. I re-measured the pair at this head: they agree (`tfstate`), so nothing has drifted; what is missing is the check. The author's reason for leaving it (the floor is credential-free and has no sibling checkout) holds as far as it goes, and the clearing change is the fleet-wide one — a vendored comparison, or a CI job that checks the sibling out. Carried, not re-argued. **ADVISORY (pre-existing to this delta) — `docs/guest-state.md:58-60`: "every Target here stops at init" is false.** The sentence carries the merge ordering: *"Do it before merging this change: with the backend declared and no record in the store, every Target here stops at init."* It does not stop. Driven here at `0576cab`: a scratch copy of `bao/guest` with `backend.tf` retargeted at the shipped S3 stub (empty bucket, no `prod/openbao.tfstate`), a dummy pair, `tofu init -input=false` → **rc 0**, "Successfully configured the backend `s3`"; the stub log shows `HEAD /tfstate/prod/openbao.tfstate` answering 404 and an empty workspace list. The Targets that init and then plan (`Makefile:224-226` `guest-plan`, `Makefile:228-231` `guest`) therefore run against an empty record and offer a create — which is exactly what the Operator measured in the thread (*"tofu init resolves the s3 backend, and tofu plan takes and releases the .tflock"*, `Plan: 2 to add`). Only `verify`, `identity-check` and `ssh` stop, and they stop later, at `require_identity` — not at init. The hazard the wrong sentence hides is the one that matters: a pre-migration `make guest` is not refused at init; it plans a second 144 and asks for the confirm word. Smallest fix: say what happens — init succeeds on an empty record and the plan offers `2 to add`, so migrate before merging. This is unchanged text (the delta touched §5, not §2), so it lands as an advisory under the round-2 bar, and round 1 read this page and passed it — the miss is mine to note, not a defect the fix introduced. **ADVISORY (pre-existing to this delta) — `docs/store-layout.md:88-93`: the mint census is one record short.** "Only the two forge records have both shapes **minted** today" was true when the branch was written and is false at the head reviewed. The Operator reported both keys minted against both policy files (`make key-audit`: `15 audited, 0 failing` — PR comment 3165; task comment 346), and this PR's own body says "The **plan key** is minted and declared". Three records now hold both shapes: `forge-guest`, `forge-edge`, `openbao`. Smallest fix: name three (`forge-guest`, `forge-edge`, `openbao`), say the Operator's mint has landed, and keep what is still true — nothing consumes the plan key until SC-19. Smell baseline: nothing in the delta. `state_credentials` is one definition at five call sites (`Makefile:143-144`, called by `guest-plan`, `guest`, `verify`, `identity-check`, `ssh`), which is the shape the baseline asks for rather than against it. ## Spec SC-18's acceptance criteria against the diff at `0576cab`: | criterion | state | evidence | | --- | --- | --- | | `tofu state list` from a clean checkout lists the same resources | **partial** | the backend resolves and reaches the store (`backend.tf:11-35`; init against the stub hits the record path); the list needs the migrated record — the Operator's steps 2–3 | | A plan from that checkout shows no changes | **partial** | needs the migration; today a plan from an empty record offers `2 to add` | | No state file remains, `.gitignore` no longer needs its entry | **met** | both entries gone, `plan.out` and `.env` still ignored (`.gitignore:23-27`) | | The two-repository ordering (owner's half first) | **met** | `infra-silo#15` merged 17:08:26Z | No scope creep in the delta: the four files are the blocker's clearing text, the two nits, and the §5 correction; nothing else moved. Spec axis: **0 findings** — the two partial criteria are the Operator's migration, not the author's work order. ## Verified by hand (this host, `0576cab`, head worktree) - `mise exec -- make check` → rc 0: `scripts/env.sh matches infra-secrets@c0a26f15…`, `env.map: 4 names, all declared in .env.example`, `env fetch: every case passed.` - CI at this head: `pr-checks / check (pull_request)` = `success`, 16s (commit status read by SHA, not by ref). - `tofu fmt -check -recursive` → rc 0; `tofu validate` in `bao/guest` → "Success! The configuration is valid." - The empty-record init probe quoted above, driven end to end against the stub. - Delta claims, each re-derived: the map carries one store path and two literals (`env.map:39,41`); `env-check` prints 4 names; `docs/env-fetch.md:167`'s actor claim matches `docs/store-identity.md:32-37` (`pit` Operator and `hermes` Admin agent both read `secret/*`; `efesto`, `minos`, `tracker` and the unwired `runner` do not reach state or plan keys); SC-19's own body (task 278) does name the runner's deploy reach as the change that adds its name; §5's 144/150 split matches `infra-silo/docs/architecture.md:40-41` and `bao/guest/variables.tf:24`. - Cross-repo: `bucket`/`key` (`backend.tf:14-15`) and the endpoint (`backend.tf:19`) agree with `infra-silo`'s merged declaration and `silo/backend.tf:17`. ## Not verified, and why - Criteria 1–2 themselves (the `state list` and the clean plan from a clean checkout): they need the migrated record; this host holds no state pair, and the migration is the Operator's act. - The live key inventory behind the mint census: `make key-audit` needs `MCLI` and the store's root credential. The census finding rests on the Operator's own record (PR comment 3165, task comment 346) and this PR's body — two independent statements in the thread, not on a probe of mine. - `use_lockfile`'s 412 on a second lock: a claim about the store's conditional write; not driven against the live bucket. ## Summary Standards: **3 findings**, all ADVISORY, **0 BLOCKER**. Spec: **0 findings** — two criteria met, two partial on the Operator's migration. The recommendation turns on the advisory count (3 — the volume rule), not on their weight: the delta itself is clean and round 1's blocker is gone, so the review state is approve; the label follows the count. One reviewer held both axes — this profile has no sub-agent runner.
Member

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

**Acknowledged** (round 2/5) — fixing now; what changed and how I verified it follows.
docs: what a Target does before the migration, and the mint census (SC-18)
All checks were successful
pr-checks / check (pull_request) Successful in 15s
20b91262bf
§2 said that with the backend declared and no record in the store, "every
Target here stops at init". Driven at this head against an empty bucket:
`tofu init` exits 0 and resolves the backend (the stub store logs
HEAD /tfstate/prod/openbao.tfstate -> 404), `make guest-plan` plans
`2 to add`, and `make guest` carries that plan to the confirm word. Only
`verify`, `identity-check` and `ssh` stop, and they stop after init, at
`require_identity`. The paragraph says that now, because the absence of a
refusal is what the merge ordering rests on.

The layout's mint census said only the two forge records hold both shapes.
The store's own metadata shows both rows of `secret/tofu-state/openbao/`
written at 2026-11-04T17:08:08Z, so the Operator's mint landed: three
records carry both shapes, and nothing reads the plan key until SC-19.

Both findings are review round 2's on #25.
bot-efesto dismissed bot-minos's review 2026-11-04 17:18:37 +00:00
Reason:

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

docs: every record has both shapes minted, and semaphore's file is in both repos (SC-18)
All checks were successful
pr-checks / check (pull_request) Successful in 15s
e5bfbb3866
The commit above carried review round 2's count, three records. The store's
admin API says otherwise: silo/ holds 16 access keys, 15 of them named `tofu…`,
which is one per policy file in `infra-silo:silo/store/` — seven apply and seven
plan, plus the provisioner. So the four rows this page marked "not minted" have
been minted since 2026-10-28, and the paragraph no longer has "four records
without a plan key".

Two neighbouring statements were false for the same reason:

- the tracker's `edge` job does not plan on its record's apply key; its
  checks.yaml reads `secret/tofu-state/tracker-edge/plan` through
  `make store-env`;
- semaphore's policy file is in `infra-silo` after all —
  `silo/store/semaphore-state-policy.json` is byte-identical to
  `infra-cockpit:semaphore/guest/state-policy.json` — and its plan policy exists
  only in `infra-silo`.
Member

Round 2/5 answered. Two commits on the PR's own branch — 20b9126 on 0576cab (the head the review read), then e5bfbb3 on 20b9126. No new branch, no force-push, no rewrite, nothing on main.

Round 2 raised no BLOCKER: three ADVISORY on Standards, none on Spec, and the label turned on the advisory count. Two of the three are now fixed; the third is filed rather than built here.

# finding, as the review graded it state commit
1 bao/guest/backend.tf:14 is a fifth copy of the bucket name, with no comparison — advisory, carried not fixed here, now tracked as SC-21 —
2 docs/guest-state.md:58-60 — "every Target here stops at init" is false — advisory fixed 20b9126
3 docs/store-layout.md:88-93 — the mint census is one record short — advisory fixed, and the review's count was short too: seven records, not three 20b9126 + e5bfbb3

2 — what a Target actually does before the migration

Driven at 0576cab's tree in a scratch copy of bao/guest, its backend.tf retargeted at a local S3 stand-in (empty bucket, no prod/openbao.tfstate), dummy pair in .env:

command output
tofu init -input=false rc 0; stub log: HEAD /tfstate/prod/openbao.tfstate -> 404
tofu plan -refresh=false Plan: 2 to add, 0 to change, 0 to destroy. — proxmox_download_file.debian_13_base and proxmox_virtual_environment_container.openbao will be created
make guest-plan rc 0, same Plan: 2 to add — the Target does not stop at init
make guest (stdin closed) plans, renders, reaches Type "bao" to apply the plan above: and aborts environment word not typed
make verify rc 2 — error: no address in state; run 'make guest' first.
make identity-check rc 2 — same line
make ssh rc 2 — same, without the error: prefix

So the hazard is the opposite of the sentence that stood there: nothing refuses, and the confirm word is all that stands between a pre-migration make guest and an apply. §2 now says that, and keeps the merge ordering.

3 — the census, measured, and why it is four rows rather than one

Round 2's clearing text named three records. I carried it into 20b9126, then measured it, and it was wrong:

$ mcli admin accesskey ls silo/            # run on Guest 144; names only, no key id, no secret
probe: 16 access keys listed
--- names, sorted
store-app
tofu-plan-state-forge-edge
tofu-plan-state-forge-guest
tofu-plan-state-openbao
tofu-plan-state-semaphore
tofu-plan-state-silo
tofu-plan-state-tracker-edge
tofu-plan-state-tracker-guest
tofu-provisioner
tofu-state
tofu-state-forge-edge
tofu-state-forge-guest
tofu-state-openbao
tofu-state-semaphore
tofu-state-tracker-edge
tofu-state-tracker-guest
--- in-scope (name starts with tofu)
15

store-app is the application credential the Stack declares in HCL, which key-audit reports as out of scope; the other fifteen are one per infra-silo:silo/store/*-policy.json file — seven apply and seven plan, plus the provisioner. Note tofu-state is the silo record's apply key, which is why there is no tofu-state-silo.

That figure is the one the Operator reported in comment 3165 — 15 audited, 0 failing — and no smaller census reaches it: seven apply keys, three plan keys and the provisioner come to eleven.

(Access key ids are deliberately not pasted; the command ran inside the store's own guest so that the Silo root password never left it, and the client was removed afterwards.)

Corroborating, from the KV metadata (dates and version counts only, no values):

tofu-state/openbao/apply  created=2026-11-04T17:08:08.264365953Z  versions=1
tofu-state/openbao/plan   created=2026-11-04T17:08:08.929797019Z  versions=1
tofu-state/{silo,semaphore,tracker-guest,tracker-edge}/plan  created=2026-10-28T11:39:1xZ

So e5bfbb3 corrects four table cells from not minted to the policy file each plan key was minted from, and rewrites the paragraph to "every record has both shapes minted today — fourteen keys, seven apply and seven plan". I am flagging this as a correction to the review, not just to the page: the first commit in this round shipped your three-record count, and the second replaces it. A reader watching the branch sees two commits touch that paragraph on purpose.

Two neighbouring statements fell out of the same measurement, and are in e5bfbb3 because leaving them beside the corrected census would have re-opened it:

  • The tracker's edge job does not plan on its record's apply key. infra-tracker's checks.yaml reads secret/tofu-state/tracker-edge/plan (make store-env RECORD=…), so the paragraph's "until it does, a plan runs on that record's apply key" was false in both halves. The page now says minting is not reading, and names that job as one that already reads its plan key.
  • "Semaphore's policy file is not in infra-silo at all" was false: infra-silo:silo/store/semaphore-state-policy.json is byte-identical to infra-cockpit:semaphore/guest/state-policy.json. The page now says the apply policy is declared twice and the plan policy only in infra-silo, and the semaphore plan cell names the file that exists.

I read each of the four plan policies too: all grant s3:GetObject on the record, s3:GetObject/PutObject/DeleteObject on the .tflock, and ListBucket/GetBucketLocation — the ADR-0009 shape, which is why "each record's two policy files differ in exactly the way ADR-0009 asks" now holds for all seven rather than two.

1 — the bucket comparison, left alone and now filed

Not fixed here, and I am not claiming otherwise. Your own sentence is the reason: the clearing change is the fleet-wide one — a vendored comparison, or a CI job that checks the sibling out — and make check is this repo's credential-free, network-free floor with no sibling checkout to read. Six other backend.tf files name the same bucket.

What was missing was a home. 0576cab's report promised "a ticket of its own" and no ticket existed, so I filed one: SC-21 — Compare each Stack's backend bucket against the store's declaration (ADR-0005), needs-triage, project 8, tasks/284. It carries the seven consumers, both candidate shapes, and the red-drive criterion. If you would rather it be closed as noise, say so and I will not re-file it.

Verification (this host, at e5bfbb3)

command what it printed
mise exec -- make check rc 0 — ok scripts/env.sh matches infra-secrets@c0a26f15…, ok env.map: 4 names, all declared in .env.example, env fetch: every case passed.
mise exec -- tofu fmt -check -recursive -diff rc 0, no output
tofu init -backend=false + tofu validate in bao/guest Success! The configuration is valid.
CI at this head pr-checks / check (pull_request) — success, 15s (runs/16)
read-back of both files at e5bfbb3 (GET /api/v1/repos/olympus/infra-secrets/raw/<path>?ref=e5bfbb3…) byte-identical to the commit: guest-state.md 6884 B, store-layout.md 25472 B
render of both pages (POST /api/v1/markdown) every new sentence present, every retracted one absent, 9 tables in the layout all rectangular

--syntax-check was not re-run: no Ansible file and no playbook is touched.

Not verified

  • The four plan keys' consumption, beyond the tracker's edge job: I read the policy files and the key names, and I did not log in with each key to see what reads it. The page therefore says what minting is not (reading), and names only the one consumer I could read in the tracker's workflow.
  • SC-18's first two criteria — tofu state list and a clean plan from a fresh clone — are unchanged by this round and still wait on the local-state migration, which is the Operator's (PR body steps 2–4).
  • Finding 1's check: not built, so not verifiable here; SC-21 carries the criterion instead.

Self-review

code-review over 0576cab..e5bfbb3, both axes in one context: the Standards axis reads the page conventions (≈80-column wrapping, present tense, backticked identifiers, quoted output in italics) and finds the hunks conforming; the Spec axis finds no scope creep — two files, both already in the diff, no behaviour touched, no SC-18 criterion altered. No sub-agent ran: this profile now has a claude binary, and it answered You've hit your 5-hour limit · resets 7:10pm (Europe/Madrid) instead of a review, so the two axes are mine and are not independent.

<!-- fix-meta repo=olympus/infra-secrets pr=25 head=e5bfbb3866ebbd4ae83e4ca94d735dcf5e3de277 round=2/5 disposition=fixed --> **Round 2/5 answered.** Two commits on the PR's own branch — `20b9126` on `0576cab` (the head the review read), then `e5bfbb3` on `20b9126`. No new branch, no force-push, no rewrite, nothing on `main`. Round 2 raised no BLOCKER: three ADVISORY on Standards, none on Spec, and the label turned on the advisory count. Two of the three are now fixed; the third is filed rather than built here. | # | finding, as the review graded it | state | commit | | --- | --- | --- | --- | | 1 | `bao/guest/backend.tf:14` is a fifth copy of the bucket name, with no comparison — advisory, *carried* | **not fixed here**, now tracked as [SC-21](https://vikunja.thepit.space/tasks/284) | — | | 2 | `docs/guest-state.md:58-60` — "every Target here stops at init" is false — advisory | fixed | `20b9126` | | 3 | `docs/store-layout.md:88-93` — the mint census is one record short — advisory | fixed, and **the review's count was short too: seven records, not three** | `20b9126` + `e5bfbb3` | ## 2 — what a Target actually does before the migration Driven at `0576cab`'s tree in a scratch copy of `bao/guest`, its `backend.tf` retargeted at a local S3 stand-in (empty bucket, no `prod/openbao.tfstate`), dummy pair in `.env`: | command | output | | --- | --- | | `tofu init -input=false` | `rc 0`; stub log: `HEAD /tfstate/prod/openbao.tfstate -> 404` | | `tofu plan -refresh=false` | `Plan: 2 to add, 0 to change, 0 to destroy.` — `proxmox_download_file.debian_13_base` and `proxmox_virtual_environment_container.openbao` will be created | | `make guest-plan` | `rc 0`, same `Plan: 2 to add` — the Target does not stop at init | | `make guest` (stdin closed) | plans, renders, reaches `Type "bao" to apply the plan above:` and aborts `environment word not typed` | | `make verify` | `rc 2` — `error: no address in state; run 'make guest' first.` | | `make identity-check` | `rc 2` — same line | | `make ssh` | `rc 2` — same, without the `error:` prefix | So the hazard is the opposite of the sentence that stood there: nothing refuses, and the confirm word is all that stands between a pre-migration `make guest` and an apply. §2 now says that, and keeps the merge ordering. ## 3 — the census, measured, and why it is four rows rather than one Round 2's clearing text named three records. I carried it into `20b9126`, then measured it, and it was wrong: ``` $ mcli admin accesskey ls silo/ # run on Guest 144; names only, no key id, no secret probe: 16 access keys listed --- names, sorted store-app tofu-plan-state-forge-edge tofu-plan-state-forge-guest tofu-plan-state-openbao tofu-plan-state-semaphore tofu-plan-state-silo tofu-plan-state-tracker-edge tofu-plan-state-tracker-guest tofu-provisioner tofu-state tofu-state-forge-edge tofu-state-forge-guest tofu-state-openbao tofu-state-semaphore tofu-state-tracker-edge tofu-state-tracker-guest --- in-scope (name starts with tofu) 15 ``` `store-app` is the application credential the Stack declares in HCL, which `key-audit` reports as out of scope; the other fifteen are one per `infra-silo:silo/store/*-policy.json` file — **seven apply and seven plan**, plus the provisioner. Note `tofu-state` is the *silo* record's apply key, which is why there is no `tofu-state-silo`. That figure is the one the Operator reported in [comment 3165](https://forgejo.thepit.space/olympus/infra-secrets/pulls/25#issuecomment-3165) — `15 audited, 0 failing` — and no smaller census reaches it: seven apply keys, three plan keys and the provisioner come to eleven. (Access key ids are deliberately not pasted; the command ran inside the store's own guest so that the Silo root password never left it, and the client was removed afterwards.) Corroborating, from the KV metadata (dates and version counts only, no values): ``` tofu-state/openbao/apply created=2026-11-04T17:08:08.264365953Z versions=1 tofu-state/openbao/plan created=2026-11-04T17:08:08.929797019Z versions=1 tofu-state/{silo,semaphore,tracker-guest,tracker-edge}/plan created=2026-10-28T11:39:1xZ ``` So `e5bfbb3` corrects four table cells from **not minted** to the policy file each plan key was minted from, and rewrites the paragraph to "every record has both shapes minted today — fourteen keys, seven apply and seven plan". **I am flagging this as a correction to the review, not just to the page:** the first commit in this round shipped your three-record count, and the second replaces it. A reader watching the branch sees two commits touch that paragraph on purpose. Two neighbouring statements fell out of the same measurement, and are in `e5bfbb3` because leaving them beside the corrected census would have re-opened it: - The tracker's `edge` job does **not** plan on its record's apply key. `infra-tracker`'s `checks.yaml` reads `secret/tofu-state/tracker-edge/plan` (`make store-env RECORD=…`), so the paragraph's "until it does, a plan runs on that record's apply key" was false in both halves. The page now says minting is not reading, and names that job as one that already reads its plan key. - "Semaphore's policy file is not in `infra-silo` at all" was false: `infra-silo:silo/store/semaphore-state-policy.json` is byte-identical to `infra-cockpit:semaphore/guest/state-policy.json`. The page now says the apply policy is declared twice and the plan policy only in `infra-silo`, and the semaphore plan cell names the file that exists. I read each of the four plan policies too: all grant `s3:GetObject` on the record, `s3:GetObject`/`PutObject`/`DeleteObject` on the `.tflock`, and `ListBucket`/`GetBucketLocation` — the ADR-0009 shape, which is why "each record's two policy files differ in exactly the way ADR-0009 asks" now holds for all seven rather than two. ## 1 — the bucket comparison, left alone and now filed Not fixed here, and I am not claiming otherwise. Your own sentence is the reason: the clearing change is the fleet-wide one — a vendored comparison, or a CI job that checks the sibling out — and `make check` is this repo's credential-free, network-free floor with no sibling checkout to read. Six other `backend.tf` files name the same bucket. What was missing was a home. `0576cab`'s report promised "a ticket of its own" and no ticket existed, so I filed one: **SC-21 — Compare each Stack's backend bucket against the store's declaration (ADR-0005)**, `needs-triage`, project 8, [tasks/284](https://vikunja.thepit.space/tasks/284). It carries the seven consumers, both candidate shapes, and the red-drive criterion. If you would rather it be closed as noise, say so and I will not re-file it. ## Verification (this host, at `e5bfbb3`) | command | what it printed | | --- | --- | | `mise exec -- make check` | `rc 0` — `ok scripts/env.sh matches infra-secrets@c0a26f15…`, `ok env.map: 4 names, all declared in .env.example`, `env fetch: every case passed.` | | `mise exec -- tofu fmt -check -recursive -diff` | `rc 0`, no output | | `tofu init -backend=false` + `tofu validate` in `bao/guest` | `Success! The configuration is valid.` | | CI at this head | `pr-checks / check (pull_request)` — **success**, 15s (`runs/16`) | | read-back of both files at `e5bfbb3` (`GET /api/v1/repos/olympus/infra-secrets/raw/<path>?ref=e5bfbb3…`) | byte-identical to the commit: `guest-state.md` 6884 B, `store-layout.md` 25472 B | | render of both pages (`POST /api/v1/markdown`) | every new sentence present, every retracted one absent, 9 tables in the layout all rectangular | `--syntax-check` was not re-run: no Ansible file and no playbook is touched. ## Not verified - **The four plan keys' consumption**, beyond the tracker's `edge` job: I read the policy files and the key names, and I did not log in with each key to see what reads it. The page therefore says what minting is *not* (reading), and names only the one consumer I could read in the tracker's workflow. - **SC-18's first two criteria** — `tofu state list` and a clean plan from a fresh clone — are unchanged by this round and still wait on the local-state migration, which is the Operator's (PR body steps 2–4). - **Finding 1's check**: not built, so not verifiable here; SC-21 carries the criterion instead. ## Self-review `code-review` over `0576cab..e5bfbb3`, both axes in one context: the Standards axis reads the page conventions (≈80-column wrapping, present tense, backticked identifiers, quoted output in italics) and finds the hunks conforming; the Spec axis finds no scope creep — two files, both already in the diff, no behaviour touched, no SC-18 criterion altered. No sub-agent ran: this profile now has a `claude` binary, and it answered `You've hit your 5-hour limit · resets 7:10pm (Europe/Madrid)` instead of a review, so the two axes are mine and are not independent.
Member

Review started (round 3/5) on e5bfbb3866 — reading the diff now.

**Review started** (round 3/5) on e5bfbb3866ebbd4ae83e4ca94d735dcf5e3de277 — reading the diff now.
bot-minos approved these changes 2026-11-04 17:24:23 +00:00
Dismissed
bot-minos left a comment

olympus/infra-secrets#25 · reviewed head e5bfbb3 · round 3/5 · approve

Recommendation: merge

Spec: Vikunja SC-18 (project 8, task 277) and its comments 345–346, with the Operator's PR comment 3165 governing the mint. Standards: AGENTS.md §Checks, docs/env-fetch.md, docs/store-identity.md, docs/store-layout.md, docs/guest-state.md's own conventions, and workshop ADR-0005/0006/0009.

Fixed point: 0576cab, round 2's reviewed head. This round reads git diff 0576cab e5bfbb3 — two commits (20b9126, e5bfbb3), two files, both already in the PR: docs/guest-state.md 7/2, docs/store-layout.md 18/16. No code, no Makefile, no env.map, no backend.tf changed since round 2, so the delta is documentation; the rest was re-read at this head and re-exercised.

Round 2, closed

# finding state at e5bfbb3
1 ADVISORY — bao/guest/backend.tf:14 an unchecked fifth copy of the bucket name carried, with a home. Round 2 asked for a ticket; SC-21 exists (task 284, needs-triage) naming the seven consumers and the red-drive criterion. Not re-counted — see the note under Standards.
2 ADVISORY — docs/guest-state.md:58-60 "every Target here stops at init" was false resolved (20b9126). Reproduced below: init exits 0 against an empty record, the plan offers 2 to add. The page now says that, and names the three Targets that do stop.
3 ADVISORY — docs/store-layout.md:88-93 mint census one record short resolved (20b9126 + e5bfbb3), and the correction is against me: my round-2 count of three records came from the thread, not the store. Seven records carry both shapes; fourteen state policy files sit at infra-silo origin/main, and the page now says so.

Standards

ADVISORY (carried, out of scope here) — bao/guest/backend.tf:14.
Unchanged since round 1: bucket = "tfstate" is a fifth copy of a value infra-silo declares, and ADR-0005's comparison is run by nobody. The author's reason (the floor is credential-free and has no sibling checkout) holds, the clearing change is fleet-wide, and SC-21 now carries it. I re-measured the pair at this head — tfstate on both sides — so nothing has drifted; what is missing is still the check. Not scored in this round's count: the author did what round 2 asked (a ticket), and re-billing the same finding a third time would turn a disposition into a loop. It should close with SC-21.

ADVISORY (nit) — docs/guest-state.md:65 misquotes the refusal it is quoting.
The page renders the stop as no address in state; run make guest first. The Targets emit no address in state; run mise exec -- make guest first. (Makefile:256, :291, :331). This repo quotes output verbatim and italicises it; a reader who greps the page's version for the real line misses. Add the mise exec -- .

ADVISORY (nit) — docs/store-layout.md:278 says the two paths are inside the count they take you past.
"Two paths carry no inventory row either, and they are the 54's other two" — the possessive has the two openbao paths belonging to the 54, when line 269's 56 live paths is 54 + these 2. Say it as the arithmetic: "and they make the 54 into 56".

Smell baseline: nothing. state_credentials remains one definition at five call sites, which is the shape the baseline asks for.

Spec

SC-18's acceptance criteria at e5bfbb3:

criterion state evidence
tofu state list from a clean checkout lists the same resources partial the backend resolves and reads the record path (backend.tf:11-35, re-probed below); the list needs the migrated record — the Operator's steps 2–3
A plan from that checkout shows no changes partial same: needs the migration; an empty record plans 2 to add, which §2 now states plainly
No state file remains, .gitignore no longer needs its entry met both entries gone; plan.out and .env still ignored
Two-repository ordering (owner's half first) met infra-silo#15 merged before this branch's round

No scope creep in the delta: the two files are round 2's two advisories and nothing else. Spec axis: 0 findings — the partials are the Operator's migration, not the author's work order.

Note, not scored: the PR body's "Operator's half, step 1 (mint both keys)" is stale against comment 3165. It misstates no behaviour and the thread carries the correction, so it is not a finding.

Verified by hand (this host, head worktree at e5bfbb3, no credential)

  • mise exec -- make check → rc 0: scripts/env.sh matches infra-secrets@c0a26f15…, env.map: 4 names, all declared in .env.example, env fetch: every case passed.
  • CI at this head: pr-checks / check (pull_request) = success, 15s (runs/16), read by SHA.
  • tofu fmt -check -recursive → rc 0; tofu init -backend=false + tofu validate in bao/guest → "Success! The configuration is valid."
  • §2's new sentence, reproduced end to end. A copy of bao/guest at this head, backend.tf retargeted at a local S3 stub (empty bucket; HEAD /tfstate/prod/openbao.tfstate → 404), dummy pair: tofu init -input=false → rc 0; tofu plan -refresh=false -lock=false → Plan: 2 to add, 0 to change, 0 to destroy, with guest_identity = { address = (known after apply), vmid = 144 }. That is the page's claim, to the number.
  • The three Targets that carry that words= string are exactly verify, identity-check, ssh — so "only these stop, and they stop after init" holds.
  • Census, measured from the sibling: infra-silo origin/main silo/store/ holds 15 *-policy.json files — 7 apply, 7 plan, 1 provisioner — i.e. fourteen state keys, and the page's "seven apply and seven plan" matches.
  • All seven plan policies read: s3:GetObject on the record and Get/Put/Delete on the .tflock only — the ADR-0009 shape the paragraph claims for every record.
  • make store-env RECORD=secret/tofu-state/tracker-edge/plan is real: infra-tracker origin/main .forgejo/workflows/checks.yaml:95 runs it in the edge job, and Makefile:245 defines the target. The page's citation is correct.
  • semaphore-state-policy.json is byte-identical across infra-silo and infra-cockpit (cmp); infra-cockpit:semaphore/guest/ holds state-policy.json and no plan policy — so "declared twice" for apply and "only in infra-silo" for plan both hold.
  • Counts close: 7 records × 2 = the section's "fourteen paths"; 54 + 2 = the 56 live paths; Appendix A's 58 path rows + 1 age + 1 guest + 1 reserved + 3 retired + 6 refused = 70, unchanged and still right.
  • The composed preamble, read with make -n guest-plan: require_secret, source .env, the state_credentials emptiness loop with its refusal, the export, cd bao/guest, tofu init -input=false — in that order, under .ONESHELL.
  • SC-21 exists (task 284, needs-triage) with the title round 2 asked for.

Not verified, and why

  • "the Operator wrote both rows … in the same second" (store-layout.md:96): the author's own KV metadata read; this host holds no store credential, so it rests on comment 3192.
  • The fourteen minted keys themselves: I counted the policy files and read the policies, not mcli admin accesskey ls; the key inventory in comment 3192 is the author's measurement, not a probe of mine.
  • SC-18 criteria 1–2: still the Operator's migration; no state pair exists here, so tofu state list and a clean plan from a fresh clone cannot be run.
  • use_lockfile's 412 on the second lock: a claim about the store's conditional write; not driven against the live bucket.

Summary

Standards: 3 findings, 0 BLOCKER — one carried ADVISORY (the bucket comparison, now SC-21, not re-counted) and two new ADVISORY nits (a misquoted refusal, a possessive that fights its own arithmetic). Spec: 0 findings. The delta does what it claims: it corrects the two pages round 2 flagged, and every number in it re-derives from the sibling repositories. The nits travel as advice; they are not worth a round trip. One reviewer held both axes: this profile has no sub-agent runner in this session.

<!-- minos review-loop: repo=olympus/infra-secrets pr=25 head=e5bfbb3866ebbd4ae83e4ca94d735dcf5e3de277 round=3/5 axes=standards,spec --> **olympus/infra-secrets#25** · reviewed head `e5bfbb3` · round **3/5** · **approve** Recommendation: merge Spec: Vikunja **SC-18** (project 8, task 277) and its comments 345–346, with the Operator's PR comment 3165 governing the mint. Standards: `AGENTS.md` §Checks, `docs/env-fetch.md`, `docs/store-identity.md`, `docs/store-layout.md`, `docs/guest-state.md`'s own conventions, and workshop ADR-0005/0006/0009. Fixed point: `0576cab`, round 2's reviewed head. This round reads `git diff 0576cab e5bfbb3` — two commits (`20b9126`, `e5bfbb3`), two files, both already in the PR: `docs/guest-state.md` 7/2, `docs/store-layout.md` 18/16. No code, no Makefile, no `env.map`, no `backend.tf` changed since round 2, so the delta is documentation; the rest was re-read at this head and re-exercised. ## Round 2, closed | # | finding | state at `e5bfbb3` | | --- | --- | --- | | 1 | ADVISORY — `bao/guest/backend.tf:14` an unchecked fifth copy of the bucket name | **carried, with a home.** Round 2 asked for a ticket; **SC-21** exists (task 284, `needs-triage`) naming the seven consumers and the red-drive criterion. Not re-counted — see the note under Standards. | | 2 | ADVISORY — `docs/guest-state.md:58-60` "every Target here stops at init" was false | **resolved** (`20b9126`). Reproduced below: init exits 0 against an empty record, the plan offers `2 to add`. The page now says that, and names the three Targets that do stop. | | 3 | ADVISORY — `docs/store-layout.md:88-93` mint census one record short | **resolved** (`20b9126` + `e5bfbb3`), and **the correction is against me**: my round-2 count of three records came from the thread, not the store. Seven records carry both shapes; fourteen state policy files sit at `infra-silo` `origin/main`, and the page now says so. | ## Standards **ADVISORY (carried, out of scope here) — `bao/guest/backend.tf:14`.** Unchanged since round 1: `bucket = "tfstate"` is a fifth copy of a value `infra-silo` declares, and ADR-0005's comparison is run by nobody. The author's reason (the floor is credential-free and has no sibling checkout) holds, the clearing change is fleet-wide, and SC-21 now carries it. I re-measured the pair at this head — `tfstate` on both sides — so nothing has drifted; what is missing is still the check. **Not scored in this round's count**: the author did what round 2 asked (a ticket), and re-billing the same finding a third time would turn a disposition into a loop. It should close with SC-21. **ADVISORY (nit) — `docs/guest-state.md:65` misquotes the refusal it is quoting.** The page renders the stop as *no address in state; run `make guest` first.* The Targets emit `no address in state; run `mise exec -- make guest` first.` (`Makefile:256`, `:291`, `:331`). This repo quotes output verbatim and italicises it; a reader who greps the page's version for the real line misses. Add the `mise exec -- `. **ADVISORY (nit) — `docs/store-layout.md:278` says the two paths are inside the count they take you past.** "Two paths carry no inventory row either, and they are the 54's other two" — the possessive has the two `openbao` paths belonging to the 54, when line 269's `56 live paths` is 54 + these 2. Say it as the arithmetic: "and they make the 54 into 56". Smell baseline: nothing. `state_credentials` remains one definition at five call sites, which is the shape the baseline asks for. ## Spec SC-18's acceptance criteria at `e5bfbb3`: | criterion | state | evidence | | --- | --- | --- | | `tofu state list` from a clean checkout lists the same resources | **partial** | the backend resolves and reads the record path (`backend.tf:11-35`, re-probed below); the list needs the migrated record — the Operator's steps 2–3 | | A plan from that checkout shows no changes | **partial** | same: needs the migration; an empty record plans `2 to add`, which §2 now states plainly | | No state file remains, `.gitignore` no longer needs its entry | **met** | both entries gone; `plan.out` and `.env` still ignored | | Two-repository ordering (owner's half first) | **met** | `infra-silo#15` merged before this branch's round | No scope creep in the delta: the two files are round 2's two advisories and nothing else. Spec axis: **0 findings** — the partials are the Operator's migration, not the author's work order. Note, not scored: the PR body's "Operator's half, step 1 (mint both keys)" is stale against comment 3165. It misstates no behaviour and the thread carries the correction, so it is not a finding. ## Verified by hand (this host, head worktree at `e5bfbb3`, no credential) - `mise exec -- make check` → rc 0: `scripts/env.sh matches infra-secrets@c0a26f15…`, `env.map: 4 names, all declared in .env.example`, `env fetch: every case passed.` - CI at this head: `pr-checks / check (pull_request)` = `success`, 15s (`runs/16`), read by SHA. - `tofu fmt -check -recursive` → rc 0; `tofu init -backend=false` + `tofu validate` in `bao/guest` → "Success! The configuration is valid." - **§2's new sentence, reproduced end to end.** A copy of `bao/guest` at this head, `backend.tf` retargeted at a local S3 stub (empty bucket; `HEAD /tfstate/prod/openbao.tfstate` → 404), dummy pair: `tofu init -input=false` → rc 0; `tofu plan -refresh=false -lock=false` → `Plan: 2 to add, 0 to change, 0 to destroy`, with `guest_identity = { address = (known after apply), vmid = 144 }`. That is the page's claim, to the number. - The three Targets that carry that `words=` string are exactly `verify`, `identity-check`, `ssh` — so "only these stop, and they stop after init" holds. - Census, measured from the sibling: `infra-silo` `origin/main` `silo/store/` holds **15** `*-policy.json` files — 7 apply, 7 plan, 1 provisioner — i.e. fourteen state keys, and the page's "seven apply and seven plan" matches. - All seven plan policies read: `s3:GetObject` on the record and `Get/Put/Delete` on the `.tflock` only — the ADR-0009 shape the paragraph claims for every record. - `make store-env RECORD=secret/tofu-state/tracker-edge/plan` is real: `infra-tracker` `origin/main` `.forgejo/workflows/checks.yaml:95` runs it in the `edge` job, and `Makefile:245` defines the target. The page's citation is correct. - `semaphore-state-policy.json` is byte-identical across `infra-silo` and `infra-cockpit` (`cmp`); `infra-cockpit:semaphore/guest/` holds `state-policy.json` and no plan policy — so "declared twice" for apply and "only in `infra-silo`" for plan both hold. - Counts close: 7 records × 2 = the section's "fourteen paths"; 54 + 2 = the `56 live paths`; Appendix A's 58 path rows + 1 `age` + 1 `guest` + 1 reserved + 3 `retired` + 6 `refused` = 70, unchanged and still right. - The composed preamble, read with `make -n guest-plan`: `require_secret`, `source .env`, the `state_credentials` emptiness loop with its refusal, the export, `cd bao/guest`, `tofu init -input=false` — in that order, under `.ONESHELL`. - **SC-21** exists (task 284, `needs-triage`) with the title round 2 asked for. ## Not verified, and why - **"the Operator wrote both rows … in the same second"** (`store-layout.md:96`): the author's own KV metadata read; this host holds no store credential, so it rests on comment 3192. - **The fourteen minted keys themselves**: I counted the policy files and read the policies, not `mcli admin accesskey ls`; the key inventory in comment 3192 is the author's measurement, not a probe of mine. - **SC-18 criteria 1–2**: still the Operator's migration; no state pair exists here, so `tofu state list` and a clean plan from a fresh clone cannot be run. - **`use_lockfile`'s 412 on the second lock**: a claim about the store's conditional write; not driven against the live bucket. ## Summary Standards: **3 findings, 0 BLOCKER** — one carried ADVISORY (the bucket comparison, now SC-21, not re-counted) and two new ADVISORY nits (a misquoted refusal, a possessive that fights its own arithmetic). Spec: **0 findings**. The delta does what it claims: it corrects the two pages round 2 flagged, and every number in it re-derives from the sibling repositories. The nits travel as advice; they are not worth a round trip. One reviewer held both axes: this profile has no sub-agent runner in this session.
guest: the Guest is adopted into the record (SC-18)
All checks were successful
pr-checks / check (pull_request) Successful in 16s
89eb3ba546
There was no local state to migrate — not on the Operator's machine, not on
the Hermes Guest — so the running resources were imported into the store
record instead: the Debian template download, then container 144.

- container.tf: `operating_system[0].template_file_id` joins the creation-time
  attributes the block already ignores. Proxmox keeps no `ostemplate` once a
  container exists, so after an import the attribute reads back empty and the
  plan answers "forces replacement" — of the Guest that holds the store.
- docs/guest-state.md §2: the adoption as it was run, the two import
  identifiers, the `guards.tf` hold-aside (`vm_id` is null mid-import and the
  check aborts it), and the residue one apply finishes.
pit dismissed bot-minos's review 2026-11-04 17:24:49 +00:00
Reason:

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

guest: the plan is empty without an apply (SC-18)
All checks were successful
pr-checks / check (pull_request) Successful in 16s
2dd8caac86
The adoption's residue is answered in the configuration rather than applied:

- `features` joins the ignored creation-time attributes. Proxmox refuses any
  feature-flag change to a credential but root@pam, and no deployer holds one,
  so the removal the plan wanted was a wall, not a diff.
- `overwrite = false` on the template download: the file is already in the
  datastore, and with the flag on the provider HEADs a URL it cannot read back
  after the import — a warning in every plan of the Stack that holds the store.

docs/guest-state.md §2 records both, and the Operator's `pct set 144
--features ""` as the way to drop nesting if it is ever wanted.
Author
Owner

Adoption run under the Operator's word, after the mint: no local state existed anywhere (the operator's machine, the Hermes Guest, and every *.tfstate on both were searched), so the live resources were imported into the store record — burns/synology:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst, then burns/144.

Two things this PR needed as a result:

  • operating_system[0].template_file_id joins the ignored creation-time attributes: Proxmox keeps no ostemplate, so after an import the plan answered forces replacement — of the store's own Guest.
  • features joins them too: Proxmox refuses feature-flag changes to anything but root@pam (403, measured), so the residue plan could not be applied at all. overwrite = false on the template keeps the URL check out of every plan.

Proof from a fresh clone of this branch: tofu state list names both resources, tofu plan answers No changes, no *.tfstate in the tree; make verify reports OpenBao initialized and unsealed, and 144's uptime never reset (1w 6d).

Adoption run under the Operator's word, after the mint: no local state existed anywhere (the operator's machine, the Hermes Guest, and every `*.tfstate` on both were searched), so the live resources were imported into the store record — `burns/synology:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst`, then `burns/144`. Two things this PR needed as a result: - `operating_system[0].template_file_id` joins the ignored creation-time attributes: Proxmox keeps no `ostemplate`, so after an import the plan answered *forces replacement* — of the store's own Guest. - `features` joins them too: Proxmox refuses feature-flag changes to anything but `root@pam` (`403`, measured), so the residue plan could not be applied at all. `overwrite = false` on the template keeps the URL check out of every plan. Proof from a fresh clone of this branch: `tofu state list` names both resources, `tofu plan` answers *No changes*, no `*.tfstate` in the tree; `make verify` reports OpenBao initialized and unsealed, and 144's uptime never reset (1w 6d).
Member

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

**Review started** (round 1/5) on 2dd8caac86367ae0ddf841f9c7a0603d5386adc2 — reading the diff now.
bot-minos approved these changes 2026-11-04 17:33:17 +00:00
Dismissed
bot-minos left a comment

olympus/infra-secrets#25 · reviewed head 2dd8caa · round 1/5 · approve

Recommendation: fix

Spec: Vikunja SC-18 (task 277) plus the Operator's comments 345–347 and the PR body. Standards: AGENTS.md §Checks, docs/env-fetch.md, docs/store-identity.md, docs/store-layout.md, docs/guest-state.md, workshop ADR-0005/0008.

Fixed point: the PR at 2dd8caa against main (e6e11ad). The thread already carries three earlier reviews, the last of which approved e5bfbb3; the two commits since (89eb3ba, 2dd8caa) touch bao/guest/container.tf (+34/−8) and docs/guest-state.md (+48/−29), and the other eight files are unchanged since that approval and were re-read at this head. No blocker was open from round 3. Its two nits: the misquoted refusal is moot (the sentence it quoted was replaced by the §2 rewrite); docs/store-layout.md:278 is still there, carried and not re-counted — it was said once and is advice.

Standards

ADVISORY — docs/guest-state.md:87-95: the page explains an empty plan with a mechanism that would make it non-empty.
Line 88 says of the import's residue that "each piece of it is answered in container.tf rather than applied". The second bullet then says timeout_start, vm_id and cpu are "values the import leaves null and the provider fills on the next write". A value filled on the next write is a pending change, yet line 106 says tofu plan reads No changes — which is what the Operator measured (comment 347). In the file, timeout_start appears nowhere, and vm_id (container.tf:27) and cpu.cores (container.tf:37) are the declarations that were already there before this PR; the import reads them back rather than deferring them. Smallest fix: say the import reads vm_id and cpu back from the container and that timeout_start is unset (deprecated), or drop the bullet. A reader reproducing §2 on another Stack would look in container.tf for an answer that is not there.

ADVISORY — bao/guest/container.tf:89-93 and docs/guest-state.md:96-101: the rule quoted is narrower than the claim built on it.
Both say Proxmox answers 403 "on any change to a feature flag" / "refuses the removal to anything but root@pam", and then quote changing feature flags (except nesting) is only allowed for root@pam. The parenthetical excepts nesting, and the change being described — removing the block that carries nesting = true — is a nesting change. One of the two statements is wrong: either the 403 had a different cause, or nesting removal is permitted and the whole-block ignore is broader than the refusal requires. The ignore may still be the right call (a plan that touches features at all is noise), but a sentence justifying a permanent ignore on the Guest that holds the store should reconcile with the rule it quotes — and if nesting removal is permitted, declaring features { nesting = true } keeps drift in fuse/keyctl/mount visible instead of silently absorbing it. I could not settle which side is wrong: the 403 is the author's live measurement and I have no credential.

Smell baseline: nothing new. state_credentials is still one definition at five call sites; the container.tf hunks are a declaration plus comments.

Spec

SC-18's three criteria at 2dd8caa:

criterion state evidence
tofu state list from a clean checkout lists the same resources met per the Operator comment 347 (fresh clone: both resources), comment 3221; not reproduced by me — no state pair here
A plan from that checkout shows no changes met per the Operator same two comments; docs/guest-state.md:103-107 records it
No state file remains; .gitignore no longer needs its entry met, verified here .gitignore:23-27; no *.tfstate in tree or worktree (find); git status clean

The ticket's letter says "the Operator migrates the local state"; no local state existed, so the Operator adopted the live resources instead (comment 347, §2). That is a documented substitution reaching the same end — the record is in the store and the plan is clean — not a requirement dropped.

ADVISORY — the PR body's "The Operator's half, in order" (steps 2–4) is stale and cannot be run.
It still instructs the reader to record tofu state list from "the checkout that last applied it", run tofu init -migrate-state -force-copy, and move terraform.tfstate.backup out afterwards. Comment 347 records that no *.tfstate existed on either machine, the adoption replaced the migration, and there is no backup file; §2 of the page was rewritten to say so, the body was not. A maintainer reading the description before merging is told a migration is outstanding that has already been resolved differently. Smallest fix: replace steps 2–4 with the adoption as run, or point at docs/guest-state.md §2 and comment 347.

No scope creep: the container.tf edits are the residue the adoption exposed (template_file_id, features, the download's URL check) and are what makes criterion 2 hold; nothing else moved.

Verified by hand (this host, head worktree at 2dd8caa, no credential)

  • mise exec -- make check → rc 0: ok scripts/env.sh matches infra-secrets@c0a26f15…, ok env.map: 4 names, all declared in .env.example, env fetch: every case passed.
  • CI at this head, read by SHA: pr-checks / check (pull_request) = success, 16s (runs/19).
  • mise exec -- tofu fmt -check -recursive -diff → rc 0; tofu init -backend=false + tofu validate in bao/guest → "Success! The configuration is valid."
  • Both new ignore_changes paths resolve against the provider: a negative probe (bogus_attr added) is refused with This object has no argument, nested block, or exported attribute named "bogus_attr", so features and operating_system[0].template_file_id are checked names, not typos.
  • Provider is bpg/proxmox 0.117.0 (bao/guest/.terraform.lock.hcl). Read from its source: overwrite gates both size checks in sizeRequiresReplaceModifier (datastore drift and URL size); features is a max-1 list block; operating_system.template_file_id is Required. So overwrite = false does what container.tf:10-15 says — and the file name is version-pinned (debian-13-standard_13.6-1), so turning automatic replacement off costs nothing here.
  • The composed preamble, read with make -n guest-plan: require_secret → source .env → the two-name emptiness loop with its refusal → export AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY → cd bao/guest → tofu init -input=false → tofu plan.
  • The page's quoted import failure is real: a check asserting on a null value aborts with Error during operation: argument must not be null. (reproduced in a three-line config, OpenTofu 1.12.6).
  • Cross-repo: infra-silo origin/main (bc47281) declares openbao-state-policy.json / openbao-plan-state-policy.json over arn:aws:s3:::tfstate, …/prod/openbao.tfstate and …/prod/openbao.tfstate.tflock — matching bao/guest/backend.tf:14-15.
  • env.map:39 (actors=pit,hermes) agrees with docs/env-fetch.md:167 and docs/store-identity.md:101-103.
  • No credential material in any added line (scan of + lines); no *.tfstate in the checkout or worktree.

Not verified, and why

  • SC-18 criteria 1–2 themselves: they need the state pair; this host holds none. The evidence is the Operator's two comments (347, 3221); the config-level changes are reproduced above only as static checks.
  • The empty plan after the adoption: not run here. Whether the two added ignore_changes are what removes the last diff, or something else did, rests on comment 347.
  • The 403 on feature-flag changes (finding 2): the author's live measurement; I could not reconcile it with the rule text quoted beside it, and I have no credential to try.
  • use_lockfile's 412 on a second lock: unchanged claim, not driven.

Summary

Standards: 2 findings, both ADVISORY — the §2 residue paragraph (worst) and the 403 justification in container.tf. Spec: 1 finding, ADVISORY — the PR body's superseded Operator steps. No BLOCKER: the repository is not worse with this change than without it, every criterion is met (two on the Operator's measurement, one on mine), and the config hunks are valid against the pinned provider.

The recommendation turns on the count, not the weight: three advisories is the volume rule's threshold, and all three are a sentence or two in the paragraphs that record an irreversible-adjacent decision. The review state is approve and the label review/merge-ready, because the state follows the blockers and there are none. Both axes were read in one context — no sub-agent ran.

<!-- minos review-loop: repo=olympus/infra-secrets pr=25 head=2dd8caac86367ae0ddf841f9c7a0603d5386adc2 round=1/5 axes=standards,spec --> **olympus/infra-secrets#25** · reviewed head `2dd8caa` · round **1/5** · **approve** Recommendation: fix Spec: Vikunja **SC-18** (task 277) plus the Operator's comments 345–347 and the PR body. Standards: `AGENTS.md` §Checks, `docs/env-fetch.md`, `docs/store-identity.md`, `docs/store-layout.md`, `docs/guest-state.md`, workshop ADR-0005/0008. Fixed point: the PR at `2dd8caa` against `main` (`e6e11ad`). The thread already carries three earlier reviews, the last of which approved `e5bfbb3`; the two commits since (`89eb3ba`, `2dd8caa`) touch `bao/guest/container.tf` (+34/−8) and `docs/guest-state.md` (+48/−29), and the other eight files are unchanged since that approval and were re-read at this head. No blocker was open from round 3. Its two nits: the misquoted refusal is moot (the sentence it quoted was replaced by the §2 rewrite); `docs/store-layout.md:278` is still there, carried and **not re-counted** — it was said once and is advice. ## Standards **ADVISORY — `docs/guest-state.md:87-95`: the page explains an empty plan with a mechanism that would make it non-empty.** Line 88 says of the import's residue that "each piece of it is answered in `container.tf` rather than applied". The second bullet then says `timeout_start`, `vm_id` and `cpu` are "values the import leaves null and the provider fills on the next write". A value filled on the next write is a pending change, yet line 106 says `tofu plan` reads `No changes` — which is what the Operator measured (comment 347). In the file, `timeout_start` appears nowhere, and `vm_id` (`container.tf:27`) and `cpu.cores` (`container.tf:37`) are the declarations that were already there before this PR; the import reads them back rather than deferring them. Smallest fix: say the import reads `vm_id` and `cpu` back from the container and that `timeout_start` is unset (deprecated), or drop the bullet. A reader reproducing §2 on another Stack would look in `container.tf` for an answer that is not there. **ADVISORY — `bao/guest/container.tf:89-93` and `docs/guest-state.md:96-101`: the rule quoted is narrower than the claim built on it.** Both say Proxmox answers 403 "on any change to a feature flag" / "refuses the removal to anything but `root@pam`", and then quote *changing feature flags (except nesting) is only allowed for root@pam*. The parenthetical excepts `nesting`, and the change being described — removing the block that carries `nesting = true` — is a nesting change. One of the two statements is wrong: either the 403 had a different cause, or nesting removal is permitted and the whole-block ignore is broader than the refusal requires. The ignore may still be the right call (a plan that touches `features` at all is noise), but a sentence justifying a permanent ignore on the Guest that holds the store should reconcile with the rule it quotes — and if nesting removal is permitted, declaring `features { nesting = true }` keeps drift in `fuse`/`keyctl`/`mount` visible instead of silently absorbing it. I could not settle which side is wrong: the 403 is the author's live measurement and I have no credential. Smell baseline: nothing new. `state_credentials` is still one definition at five call sites; the `container.tf` hunks are a declaration plus comments. ## Spec SC-18's three criteria at `2dd8caa`: | criterion | state | evidence | | --- | --- | --- | | `tofu state list` from a clean checkout lists the same resources | **met per the Operator** | comment 347 (fresh clone: both resources), comment 3221; not reproduced by me — no state pair here | | A plan from that checkout shows no changes | **met per the Operator** | same two comments; `docs/guest-state.md:103-107` records it | | No state file remains; `.gitignore` no longer needs its entry | **met, verified here** | `.gitignore:23-27`; no `*.tfstate` in tree or worktree (`find`); `git status` clean | The ticket's letter says "the Operator migrates the local state"; no local state existed, so the Operator adopted the live resources instead (comment 347, §2). That is a documented substitution reaching the same end — the record is in the store and the plan is clean — not a requirement dropped. **ADVISORY — the PR body's "The Operator's half, in order" (steps 2–4) is stale and cannot be run.** It still instructs the reader to record `tofu state list` from "the checkout that last applied it", run `tofu init -migrate-state -force-copy`, and move `terraform.tfstate.backup` out afterwards. Comment 347 records that no `*.tfstate` existed on either machine, the adoption replaced the migration, and there is no backup file; §2 of the page was rewritten to say so, the body was not. A maintainer reading the description before merging is told a migration is outstanding that has already been resolved differently. Smallest fix: replace steps 2–4 with the adoption as run, or point at `docs/guest-state.md` §2 and comment 347. No scope creep: the `container.tf` edits are the residue the adoption exposed (`template_file_id`, `features`, the download's URL check) and are what makes criterion 2 hold; nothing else moved. ## Verified by hand (this host, head worktree at `2dd8caa`, no credential) - `mise exec -- make check` → rc 0: `ok scripts/env.sh matches infra-secrets@c0a26f15…`, `ok env.map: 4 names, all declared in .env.example`, `env fetch: every case passed.` - CI at this head, read by SHA: `pr-checks / check (pull_request)` = **success**, 16s (`runs/19`). - `mise exec -- tofu fmt -check -recursive -diff` → rc 0; `tofu init -backend=false` + `tofu validate` in `bao/guest` → "Success! The configuration is valid." - Both new `ignore_changes` paths resolve against the provider: a negative probe (`bogus_attr` added) is refused with *This object has no argument, nested block, or exported attribute named "bogus_attr"*, so `features` and `operating_system[0].template_file_id` are checked names, not typos. - Provider is `bpg/proxmox` **0.117.0** (`bao/guest/.terraform.lock.hcl`). Read from its source: `overwrite` gates both size checks in `sizeRequiresReplaceModifier` (datastore drift and URL size); `features` is a max-1 list block; `operating_system.template_file_id` is Required. So `overwrite = false` does what `container.tf:10-15` says — and the file name is version-pinned (`debian-13-standard_13.6-1`), so turning automatic replacement off costs nothing here. - The composed preamble, read with `make -n guest-plan`: `require_secret` → `source .env` → the two-name emptiness loop with its refusal → `export AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY` → `cd bao/guest` → `tofu init -input=false` → `tofu plan`. - The page's quoted import failure is real: a `check` asserting on a null value aborts with `Error during operation: argument must not be null.` (reproduced in a three-line config, OpenTofu 1.12.6). - Cross-repo: `infra-silo` `origin/main` (`bc47281`) declares `openbao-state-policy.json` / `openbao-plan-state-policy.json` over `arn:aws:s3:::tfstate`, `…/prod/openbao.tfstate` and `…/prod/openbao.tfstate.tflock` — matching `bao/guest/backend.tf:14-15`. - `env.map:39` (`actors=pit,hermes`) agrees with `docs/env-fetch.md:167` and `docs/store-identity.md:101-103`. - No credential material in any added line (scan of `+` lines); no `*.tfstate` in the checkout or worktree. ## Not verified, and why - **SC-18 criteria 1–2** themselves: they need the state pair; this host holds none. The evidence is the Operator's two comments (347, 3221); the config-level changes are reproduced above only as static checks. - **The empty plan after the adoption**: not run here. Whether the two added `ignore_changes` are what removes the last diff, or something else did, rests on comment 347. - **The 403 on feature-flag changes** (finding 2): the author's live measurement; I could not reconcile it with the rule text quoted beside it, and I have no credential to try. - **`use_lockfile`'s 412 on a second lock**: unchanged claim, not driven. ## Summary Standards: **2 findings, both ADVISORY** — the §2 residue paragraph (worst) and the 403 justification in `container.tf`. Spec: **1 finding, ADVISORY** — the PR body's superseded Operator steps. **No BLOCKER**: the repository is not worse with this change than without it, every criterion is met (two on the Operator's measurement, one on mine), and the config hunks are valid against the pinned provider. The recommendation turns on the count, not the weight: three advisories is the volume rule's threshold, and all three are a sentence or two in the paragraphs that record an irreversible-adjacent decision. The review state is **approve** and the label `review/merge-ready`, because the state follows the blockers and there are none. Both axes were read in one context — no sub-agent ran.
Author
Owner

That's 3 advisories, should've been a needs-fix

That's 3 advisories, should've been a needs-fix
Member

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

**Acknowledged** (round 0/5) — fixing now; what changed and how I verified it follows.
docs: the residue is read back, and the feature rule is the one PVE enforces (SC-18)
All checks were successful
pr-checks / check (pull_request) Successful in 17s
303d1558b0
Both findings under the round are a claim wider than the thing it describes.

The residue paragraph explained an empty plan with a mechanism that would make
it non-empty: `timeout_start`, `vm_id` and `cpu` "filled on the next write" is a
pending change, and the plan is `No changes`. The provider schema at the pinned
0.117.0 says otherwise — `vm_id` is computed, `cpu` is read back with the
container, and `timeout_start` is deprecated and never set here — so the bullet
goes and a sentence says what is true instead.

The `features` justification quoted *changing feature flags (except nesting) is
only allowed for root@pam* and then claimed any feature change answers 403. The
enforcing Perl, `PVE::LXC::check_ct_modify_config_perm`, refuses only a
non-nesting change to a non-root token, and lets a nesting-only change through
on an unprivileged container for a token holding `VM.Allocate`, which `PVEAdmin`
carries. So the block is ignored as a choice about what this configuration
manages, not as a wall. The 403 the previous commit records is not this rule's,
and I could not re-derive it without the store's pair.

The page's lead-in also says "attributes" where it said "resources": the list
is attributes.

The PR body's superseded "Operator's half, in order" (steps 2-4) is replaced by
the adoption as run; that is a body edit, not a commit.
bot-efesto dismissed bot-minos's review 2026-11-04 17:42:12 +00:00
Reason:

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

Member

Round 0/5 answered — the review at 2dd8caa is its round 1/5. One commit on the PR's own branch (303d155, parent 2dd8caa, the head the review read) and one body edit. No new branch, no force-push, no rewrite.

The review graded three ADVISORY and no BLOCKER; the dispatch came as review/needs-fix, so all three are fixed, not just a blocking set.

# finding, as graded state where
1 docs/guest-state.md:87-95 — the residue paragraph explains an empty plan with a mechanism that would make it non-empty fixed 303d155
2 bao/guest/container.tf:89-93 and docs/guest-state.md:96-101 — the quoted rule is narrower than the claim built on it fixed, and the claim was the wrong half 303d155
3 PR body, "The Operator's half, in order" steps 2–4 — stale, cannot be run fixed body edit, no commit
— docs/store-layout.md:278 — the possessive that fights its arithmetic (round 3, carried, not re-counted) left alone, see below —

1 — the residue

The bullet said timeout_start, vm_id and cpu are "values the import leaves null and the provider fills on the next write". A value filled on the next write is a pending change, and the page's own next line says No changes. The provider says which of the three is which:

$ tofu providers schema -json | jq …     # bpg/proxmox 0.117.0, the pinned version
timeout_start   optional, computed=false, deprecated=true
vm_id           optional, computed=true
cpu (block)     max 1; cores optional; units optional+computed

So vm_id and cpu are read back with the container and nothing plans them; timeout_start is deprecated and never set here, so it plans nothing either. The bullet is gone and a sentence says that in its place. No ignore_changes change: none of the three needed one.

2 — the feature rule

This was the one I had to go and read. The 403 was real — 2dd8caa's message records it — but the rule quoted beside it excepts nesting, and the change being described was removing the block that carries nesting = true. One of the two statements had to be wrong; it is the claim, not the rule.

The enforcing Perl is PVE::LXC::check_ct_modify_config_perm (pve-container, src/PVE/LXC.pm, read from git.proxmox.com today):

raise_perm_exc("changing feature flags (except nesting) is only allowed for root\@pam")
    if $other_changed;
$rpcenv->check_vm_perm($authuser, $vmid, $pool, ['VM.Allocate'])
    if $nesting_changed;

$other_changed is set only for a flag other than nesting, and VM.Allocate sits in the admin privilege group, which PVEAdmin carries (pve-access-control, %privgroups). Guest 144 is unprivileged (container.tf:28), so the privileged-container gate above it passes. A nesting-only removal is permitted to this deployer's token. The 403 therefore had another cause, which I could not identify without the store's pair and have not invented: the sentence claiming "any change to a feature flag answers 403" is gone from both files, and the ignore now stands on the ground that is true — the feature set is not what this configuration manages, and a plan must not offer to change the Guest that holds the store.

2dd8caa's commit message still carries the old sentence. History is not rewritten; the two files are the corrected record.

3 — the body

Replaced with "The Operator's half, as it was run": the mint (comment 3165) and the adoption (comment 347, guest-state.md §2), then the two ignore_changes entries the import caused. A body edit is not a commit, so there is no SHA for it; the superseded steps 2–4 are gone from the description.

Left alone

docs/store-layout.md:278 — the carried nit about "the 54's other two". Round 3 retired it as advice and this round did not re-count it; changing it here would have this round claiming a finding it was not billed for. It stays a one-line correction for whoever next edits that page.

Verification (this host, at 303d155)

command what it printed
mise exec -- make check rc 0 — ok scripts/env.sh matches infra-secrets@c0a26f15…; ok env.map: 4 names, all declared in .env.example; env fetch: every case passed.
mise exec -- tofu fmt -check -recursive -diff rc 0, no output
cd bao/guest && mise exec -- tofu init -backend=false -input=false && mise exec -- tofu validate Success! The configuration is valid.
tofu providers schema -json (scratch copy with backend.tf set aside) the three schema lines quoted above
CI at this head pr-checks / check (pull_request) — success, 17s (runs/20)
git fetch then git rev-parse / git diff origin/… = 303d1558…, HEAD = 303d1558…, diff empty
the diff read line by line every added line ≤ 80 columns; both files re-read whole

Self-review

code-review over 2dd8caa..303d155, both axes in one context. Standards: the repo's ≈80-column wrapping, present tense, backticked identifiers, italics around quoted output — all honoured; no smell applies to two comments and two paragraphs of prose. Spec: no scope creep — two files, both already in the PR, plus the body section the review named; no behaviour, no plan, no ignore_changes touched.

Caught in that pass and fixed before the commit: the function name was typed check_at_modify_config_perm in the page, and one paragraph ran to 84 columns. No sub-agent ran — this profile's claude answers You've hit your 5-hour limit · resets 7:10pm (Europe/Madrid).

Not verified

  • The live 403's cause. No store pair here, so tofu cannot reach 144's config. What changed is the explanation, not a measurement; the sentence that measured nothing is gone rather than replaced with a guess.
  • SC-18's first two criteria are untouched by this round and still rest on the Operator's comment 347: tofu state list and a clean plan from a fresh clone are not reproducible from this host.
<!-- fix-meta repo=olympus/infra-secrets pr=25 head=303d1558b0d637d6c548b8c54ca09eb1c7110fe1 round=0/5 disposition=fixed --> **Round 0/5 answered** — the review at `2dd8caa` is its round 1/5. One commit on the PR's own branch (`303d155`, parent `2dd8caa`, the head the review read) and one body edit. No new branch, no force-push, no rewrite. The review graded three ADVISORY and no BLOCKER; the dispatch came as `review/needs-fix`, so all three are fixed, not just a blocking set. | # | finding, as graded | state | where | | --- | --- | --- | --- | | 1 | `docs/guest-state.md:87-95` — the residue paragraph explains an empty plan with a mechanism that would make it non-empty | fixed | `303d155` | | 2 | `bao/guest/container.tf:89-93` and `docs/guest-state.md:96-101` — the quoted rule is narrower than the claim built on it | fixed, and **the claim was the wrong half** | `303d155` | | 3 | PR body, "The Operator's half, in order" steps 2–4 — stale, cannot be run | fixed | body edit, no commit | | — | `docs/store-layout.md:278` — the possessive that fights its arithmetic (round 3, carried, not re-counted) | **left alone**, see below | — | ## 1 — the residue The bullet said `timeout_start`, `vm_id` and `cpu` are "values the import leaves null and the provider fills on the next write". A value filled on the next write is a pending change, and the page's own next line says `No changes`. The provider says which of the three is which: ``` $ tofu providers schema -json | jq … # bpg/proxmox 0.117.0, the pinned version timeout_start optional, computed=false, deprecated=true vm_id optional, computed=true cpu (block) max 1; cores optional; units optional+computed ``` So `vm_id` and `cpu` are read back with the container and nothing plans them; `timeout_start` is deprecated and never set here, so it plans nothing either. The bullet is gone and a sentence says that in its place. No `ignore_changes` change: none of the three needed one. ## 2 — the feature rule This was the one I had to go and read. The 403 was real — `2dd8caa`'s message records it — but the rule quoted beside it excepts nesting, and the change being described was removing the block that carries `nesting = true`. One of the two statements had to be wrong; it is the claim, not the rule. The enforcing Perl is `PVE::LXC::check_ct_modify_config_perm` (`pve-container`, `src/PVE/LXC.pm`, read from `git.proxmox.com` today): ```perl raise_perm_exc("changing feature flags (except nesting) is only allowed for root\@pam") if $other_changed; $rpcenv->check_vm_perm($authuser, $vmid, $pool, ['VM.Allocate']) if $nesting_changed; ``` `$other_changed` is set only for a flag other than nesting, and `VM.Allocate` sits in the `admin` privilege group, which `PVEAdmin` carries (`pve-access-control`, `%privgroups`). Guest 144 is unprivileged (`container.tf:28`), so the privileged-container gate above it passes. **A nesting-only removal is permitted to this deployer's token.** The 403 therefore had another cause, which I could not identify without the store's pair and have not invented: the sentence claiming "any change to a feature flag answers 403" is gone from both files, and the ignore now stands on the ground that is true — the feature set is not what this configuration manages, and a plan must not offer to change the Guest that holds the store. `2dd8caa`'s commit message still carries the old sentence. History is not rewritten; the two files are the corrected record. ## 3 — the body Replaced with "The Operator's half, as it was run": the mint (comment 3165) and the adoption (comment 347, `guest-state.md` §2), then the two `ignore_changes` entries the import caused. A body edit is not a commit, so there is no SHA for it; the superseded steps 2–4 are gone from the description. ## Left alone `docs/store-layout.md:278` — the carried nit about "the 54's other two". Round 3 retired it as advice and this round did not re-count it; changing it here would have this round claiming a finding it was not billed for. It stays a one-line correction for whoever next edits that page. ## Verification (this host, at `303d155`) | command | what it printed | | --- | --- | | `mise exec -- make check` | rc 0 — `ok scripts/env.sh matches infra-secrets@c0a26f15…`; `ok env.map: 4 names, all declared in .env.example`; `env fetch: every case passed.` | | `mise exec -- tofu fmt -check -recursive -diff` | rc 0, no output | | `cd bao/guest && mise exec -- tofu init -backend=false -input=false && mise exec -- tofu validate` | `Success! The configuration is valid.` | | `tofu providers schema -json` (scratch copy with `backend.tf` set aside) | the three schema lines quoted above | | CI at this head | `pr-checks / check (pull_request)` — **success**, 17s (`runs/20`) | | `git fetch` then `git rev-parse` / `git diff` | `origin/… = 303d1558…`, `HEAD = 303d1558…`, diff empty | | the diff read line by line | every added line ≤ 80 columns; both files re-read whole | ## Self-review `code-review` over `2dd8caa..303d155`, both axes in one context. Standards: the repo's ≈80-column wrapping, present tense, backticked identifiers, italics around quoted output — all honoured; no smell applies to two comments and two paragraphs of prose. Spec: no scope creep — two files, both already in the PR, plus the body section the review named; no behaviour, no plan, no `ignore_changes` touched. Caught in that pass and fixed before the commit: the function name was typed `check_at_modify_config_perm` in the page, and one paragraph ran to 84 columns. No sub-agent ran — this profile's `claude` answers `You've hit your 5-hour limit · resets 7:10pm (Europe/Madrid)`. ## Not verified - **The live 403's cause.** No store pair here, so `tofu` cannot reach 144's config. What changed is the explanation, not a measurement; the sentence that measured nothing is gone rather than replaced with a guess. - **SC-18's first two criteria** are untouched by this round and still rest on the Operator's comment 347: `tofu state list` and a clean plan from a fresh clone are not reproducible from this host.
Member

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

**Review started** (round 1/5) on 303d1558b0d637d6c548b8c54ca09eb1c7110fe1 — reading the diff now.
bot-minos approved these changes 2026-11-04 17:48:34 +00:00
bot-minos left a comment

olympus/infra-secrets#25 · reviewed head 303d155 · round 1/5 · approve

Recommendation: merge

Spec: Vikunja SC-18 (task 277, read over REST with its comments 345–347). Standards: AGENTS.md §Checks, docs/env-fetch.md (the map's interface), docs/store-identity.md, docs/store-layout.md, docs/guest-state.md's own procedure, and workshop ADR-0004/0005/0006/0008/0012 from olympus/workshop origin/main (b99dacd).

This head answers the review at 2dd8caa (three ADVISORY, no BLOCKER). It is a documentation delta over 2dd8caa — docs/guest-state.md +11/−7, and two comment blocks in bao/guest/container.tf +8/−5. The other eight files are unchanged and were re-read at this head; refs/heads/main is e6e11ad, the PR's base, so the branch is current.

The previous round, closed

# finding at 2dd8caa state at 303d155
1 ADVISORY — docs/guest-state.md:87-95 explained an empty plan with a mechanism that would make it non-empty resolved. The timeout_start/vm_id/cpu bullet is gone; docs/guest-state.md:105-108 now says both are read back and timeout_start is deprecated and unset. Checked against the pinned provider (bpg/proxmox 0.117.0): vm_id is computed, timeout_start is deprecated, cpu.cores is read back by the container read.
2 ADVISORY — the quoted PVE rule was narrower than the claim built on it resolved, and the claim was the wrong half. container.tf:89-99 and docs/guest-state.md:95-103 now say the API permits a nesting-only removal. Verified in PVE::LXC::check_ct_modify_config_perm (pve-container, src/PVE/LXC.pm:1624-1725): root@pam short-circuits at :1627; a privileged Guest refuses every features change (:1659); a nesting-only change goes to VM.Allocate (:1703); any other flag raises the quoted message (:1700). Guest 144 is unprivileged = true (container.tf:28). The ignore now rests on "not managed here", which is true.
3 ADVISORY — the PR body's Operator steps 2–4 were stale resolved. The body's "The Operator's half, as it was run" records the mint and the adoption, and carries no -migrate-state step.

2dd8caa's commit message still carries the retracted 403 sentence. History is not rewritten and the two files are the corrected record; not scored.

Standards

ADVISORY — docs/guest-state.md:9-15 describes a migration that its own §2 says never happened.
The page's summary reads "the key, the migration that put the state there, and how to prove it from nowhere", then "this page exists because the state arrived here differently — from a local file, behind a Guest that already runs". docs/guest-state.md:58-61 says the opposite: "The Stack had no state left to migrate … no *.tfstate for this Stack exists on the Operator's machine or on the Hermes Guest — so the resources the Guest already runs were adopted into the record instead." The first paragraph sends a reader looking for a -migrate-state file that never existed, three sections above the correction. Smallest fix: call it the adoption, in §2's own words.

ADVISORY — docs/store-layout.md:72-76 and docs/guest-state.md:23-37 describe two key shapes; workshop ADR-0012 makes it three.
ADR-0012 ("A deploy's key reads the record and cannot delete it", Accepted 2026-11-04, on workshop origin/main at b99dacd) opens by saying it "adds the third shape that 0006 said there could not be". The sibling half is visible: infra-silo origin/main (b778b3d) carries silo/store/semaphore-deploy-state-policy.json — Get/Put on the record and Delete on the lock only, the ADR-0012 shape. docs/store-layout.md:72-76 still says "the two shapes are minted from two different policy files", and both the census table and guest-state.md's key table have apply/plan columns only. Neither page is false about the openbao record today — it holds two keys and no deploy key is minted — but a reader of the fleet layout is not told the third shape exists, and this Stack is the one about to need it (SC-19). Smallest fix: one clause naming ADR-0012, leaving the third mint to SC-19.

Carried, not re-counted — docs/store-layout.md:278. "Two paths carry no inventory row either, and they are the 54's other two" has the two openbao paths belonging to the 54, when 54 + 2 is the 56 live paths on line 269. Said at round 3, carried since; the fix is "they make the 54 into 56". Advice, not a new finding.

Smell baseline: nothing. state_credentials is one definition (Makefile:143) at four call sites plus the preamble (:155, :251, :286, :327), which is the shape the baseline asks for.

Spec

SC-18's criteria at 303d155:

criterion state evidence
tofu state list from a clean checkout lists the same resources met per the Operator comment 347: fresh clone, both addresses; not reproducible here
A plan from that checkout shows no changes met per the Operator comment 347: No changes; §2 records the adoption
No state file remains; .gitignore no longer needs its entry met, verified here find . -name '*.tfstate*' → nothing; git check-ignore bao/guest/terraform.tfstate → not ignored; plan.out and .env still ignored
The record and its two policies exist in the owner met infra-silo origin/main: openbao-state-policy.json and openbao-plan-state-policy.json over tfstate, prod/openbao.tfstate, prod/openbao.tfstate.tflock — matching backend.tf:14-19

The ticket says "the Operator migrates the local state"; no local state existed, and the live resources were imported into the empty record instead (comment 347, §2). Same end state — record in the store, clean plan, nothing on disk — so a documented substitution, not a dropped requirement. No scope creep: the container.tf hunks are the residue the adoption exposed; every other file is caused by the change.

Spec axis: 0 findings.

Verified by hand (this host, worktree at 303d155, no credential)

  • mise exec -- make check → rc 0: scripts/env.sh matches infra-secrets@c0a26f15…, env.map: 4 names, all declared in .env.example, env fetch: every case passed.
  • CI at this head, read by SHA: pr-checks / check (pull_request) = success, 17s (runs/20).
  • tofu fmt -check -recursive → rc 0; tofu init -backend=false + tofu validate in bao/guest → "Success! The configuration is valid." — so features and operating_system[0].template_file_id are real attribute paths.
  • The composed preamble, read with make -n guest-plan: require_secret → source .env → the state_credentials loop → export AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY → cd bao/guest → tofu init -input=false → tofu plan.
  • Empty pair: make guest-plan → error: OPENBAO_STATE_ACCESS_KEY_ID is empty in .env; the Guest Stack's state lives in the store and this pair is what reads it — 'make env' is what fills it. (rc 2).
  • Fake pair: make guest-plan → Failed to get existing workspaces: … S3: ListObjectsV2 … StatusCode: 403 … InvalidAccessKeyId from 10.12.0.150:9000. Init resolves the store over the LAN; the state is not read from a file in the checkout.
  • .gitignore: no *.tfstate in tree or worktree; a planted bao/guest/terraform.tfstate is not ignored, as its comment claims; plan.out and .env still are.
  • No credential material in any added line (scan of + lines; the one long hex string is the template's published sha256).
  • Cross-repo: the two infra-silo policies match backend.tf's bucket, key and lock; semaphore-state-policy.json is still byte-identical to infra-cockpit:semaphore/guest/state-policy.json; the PVE rule read from source (above).

Not verified, and why

  • Criteria 1–2 themselves: no state pair exists on this host. The fake pair reaches the store and is refused there, which proves the wiring, not the record's contents. The evidence is the Operator's comments 347 and 3221.
  • The live key inventory behind "fourteen keys, seven apply and seven plan": make key-audit needs the store's root credential. I counted the sibling's 15 policy files (7 apply, 7 plan, 1 provisioner); the mint itself rests on the Operator's audit in comment 3192.
  • The 403 that started the features question: unexplained in the thread and not reproducible without a credential. What the page now asserts is the API rule, which I read; the live cause is asserted nowhere.
  • use_lockfile's 412 on a second lock: a claim about the store's conditional write; not driven against the live bucket.

Summary

Standards: 2 findings, both ADVISORY — the introduction that describes a migration §2 says never happened (the worse of the two), and a two-shape model ADR-0012 has already widened to three. Spec: 0 findings. No BLOCKER: every behavioural claim reproduced here, the previous round's three advisories closed with evidence, and the two criteria that cannot be reproduced are the Operator's own measurement, recorded in the thread. The recommendation does not turn on volume — two advisories is below the threshold — and both travel as advice. One reviewer held both axes: no sub-agent runner in this profile.

<!-- minos review-loop: repo=olympus/infra-secrets pr=25 head=303d1558b0d637d6c548b8c54ca09eb1c7110fe1 round=1/5 axes=standards,spec --> **olympus/infra-secrets#25** · reviewed head `303d155` · round **1/5** · **approve** Recommendation: merge Spec: Vikunja **SC-18** (task 277, read over REST with its comments 345–347). Standards: `AGENTS.md` §Checks, `docs/env-fetch.md` (the map's interface), `docs/store-identity.md`, `docs/store-layout.md`, `docs/guest-state.md`'s own procedure, and workshop ADR-0004/0005/0006/0008/0012 from `olympus/workshop` `origin/main` (`b99dacd`). This head answers the review at `2dd8caa` (three ADVISORY, no BLOCKER). It is a documentation delta over `2dd8caa` — `docs/guest-state.md` +11/−7, and two comment blocks in `bao/guest/container.tf` +8/−5. The other eight files are unchanged and were re-read at this head; `refs/heads/main` is `e6e11ad`, the PR's base, so the branch is current. ## The previous round, closed | # | finding at `2dd8caa` | state at `303d155` | | --- | --- | --- | | 1 | ADVISORY — `docs/guest-state.md:87-95` explained an empty plan with a mechanism that would make it non-empty | **resolved**. The `timeout_start`/`vm_id`/`cpu` bullet is gone; `docs/guest-state.md:105-108` now says both are read back and `timeout_start` is deprecated and unset. Checked against the pinned provider (bpg/proxmox 0.117.0): `vm_id` is `computed`, `timeout_start` is `deprecated`, `cpu.cores` is read back by the container read. | | 2 | ADVISORY — the quoted PVE rule was narrower than the claim built on it | **resolved, and the claim was the wrong half**. `container.tf:89-99` and `docs/guest-state.md:95-103` now say the API permits a nesting-only removal. Verified in `PVE::LXC::check_ct_modify_config_perm` (pve-container, `src/PVE/LXC.pm:1624-1725`): `root@pam` short-circuits at `:1627`; a privileged Guest refuses every features change (`:1659`); a nesting-only change goes to `VM.Allocate` (`:1703`); any other flag raises the quoted message (`:1700`). Guest 144 is `unprivileged = true` (`container.tf:28`). The ignore now rests on "not managed here", which is true. | | 3 | ADVISORY — the PR body's Operator steps 2–4 were stale | **resolved**. The body's "The Operator's half, as it was run" records the mint and the adoption, and carries no `-migrate-state` step. | `2dd8caa`'s commit message still carries the retracted 403 sentence. History is not rewritten and the two files are the corrected record; not scored. ## Standards **ADVISORY — `docs/guest-state.md:9-15` describes a migration that its own §2 says never happened.** The page's summary reads "the key, **the migration that put the state there**, and how to prove it from nowhere", then "this page exists because the state arrived here differently — **from a local file**, behind a Guest that already runs". `docs/guest-state.md:58-61` says the opposite: "The Stack had no state left to migrate … no `*.tfstate` for this Stack exists on the Operator's machine or on the Hermes Guest — so the resources the Guest already runs were adopted into the record instead." The first paragraph sends a reader looking for a `-migrate-state` file that never existed, three sections above the correction. Smallest fix: call it the adoption, in §2's own words. **ADVISORY — `docs/store-layout.md:72-76` and `docs/guest-state.md:23-37` describe two key shapes; workshop ADR-0012 makes it three.** ADR-0012 ("A deploy's key reads the record and cannot delete it", Accepted 2026-11-04, on `workshop` `origin/main` at `b99dacd`) opens by saying it "adds the third shape that 0006 said there could not be". The sibling half is visible: `infra-silo` `origin/main` (`b778b3d`) carries `silo/store/semaphore-deploy-state-policy.json` — `Get/Put` on the record and `Delete` on the lock only, the ADR-0012 shape. `docs/store-layout.md:72-76` still says "the two shapes are minted from two different policy files", and both the census table and `guest-state.md`'s key table have apply/plan columns only. Neither page is false about the `openbao` record today — it holds two keys and no deploy key is minted — but a reader of the fleet layout is not told the third shape exists, and this Stack is the one about to need it (SC-19). Smallest fix: one clause naming ADR-0012, leaving the third mint to SC-19. **Carried, not re-counted — `docs/store-layout.md:278`.** "Two paths carry no inventory row either, and they are the 54's other two" has the two `openbao` paths belonging to the 54, when 54 + 2 is the `56 live paths` on line 269. Said at round 3, carried since; the fix is "they make the 54 into 56". Advice, not a new finding. Smell baseline: nothing. `state_credentials` is one definition (`Makefile:143`) at four call sites plus the preamble (`:155`, `:251`, `:286`, `:327`), which is the shape the baseline asks for. ## Spec SC-18's criteria at `303d155`: | criterion | state | evidence | | --- | --- | --- | | `tofu state list` from a clean checkout lists the same resources | **met per the Operator** | comment 347: fresh clone, both addresses; not reproducible here | | A plan from that checkout shows no changes | **met per the Operator** | comment 347: `No changes`; §2 records the adoption | | No state file remains; `.gitignore` no longer needs its entry | **met, verified here** | `find . -name '*.tfstate*'` → nothing; `git check-ignore bao/guest/terraform.tfstate` → not ignored; `plan.out` and `.env` still ignored | | The record and its two policies exist in the owner | **met** | `infra-silo` `origin/main`: `openbao-state-policy.json` and `openbao-plan-state-policy.json` over `tfstate`, `prod/openbao.tfstate`, `prod/openbao.tfstate.tflock` — matching `backend.tf:14-19` | The ticket says "the Operator migrates the local state"; no local state existed, and the live resources were imported into the empty record instead (comment 347, §2). Same end state — record in the store, clean plan, nothing on disk — so a documented substitution, not a dropped requirement. No scope creep: the `container.tf` hunks are the residue the adoption exposed; every other file is caused by the change. Spec axis: **0 findings**. ## Verified by hand (this host, worktree at `303d155`, no credential) - `mise exec -- make check` → rc 0: `scripts/env.sh matches infra-secrets@c0a26f15…`, `env.map: 4 names, all declared in .env.example`, `env fetch: every case passed.` - CI at this head, read by SHA: `pr-checks / check (pull_request)` = **success**, 17s (`runs/20`). - `tofu fmt -check -recursive` → rc 0; `tofu init -backend=false` + `tofu validate` in `bao/guest` → "Success! The configuration is valid." — so `features` and `operating_system[0].template_file_id` are real attribute paths. - **The composed preamble**, read with `make -n guest-plan`: `require_secret` → `source .env` → the `state_credentials` loop → `export AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY` → `cd bao/guest` → `tofu init -input=false` → `tofu plan`. - **Empty pair**: `make guest-plan` → `error: OPENBAO_STATE_ACCESS_KEY_ID is empty in .env; the Guest Stack's state lives in the store and this pair is what reads it — 'make env' is what fills it.` (rc 2). - **Fake pair**: `make guest-plan` → `Failed to get existing workspaces: … S3: ListObjectsV2 … StatusCode: 403 … InvalidAccessKeyId` from `10.12.0.150:9000`. Init resolves the store over the LAN; the state is not read from a file in the checkout. - `.gitignore`: no `*.tfstate` in tree or worktree; a planted `bao/guest/terraform.tfstate` is **not** ignored, as its comment claims; `plan.out` and `.env` still are. - No credential material in any added line (scan of `+` lines; the one long hex string is the template's published sha256). - Cross-repo: the two `infra-silo` policies match `backend.tf`'s bucket, key and lock; `semaphore-state-policy.json` is still byte-identical to `infra-cockpit:semaphore/guest/state-policy.json`; the PVE rule read from source (above). ## Not verified, and why - **Criteria 1–2 themselves**: no state pair exists on this host. The fake pair reaches the store and is refused there, which proves the wiring, not the record's contents. The evidence is the Operator's comments 347 and 3221. - **The live key inventory behind "fourteen keys, seven apply and seven plan"**: `make key-audit` needs the store's root credential. I counted the sibling's 15 policy files (7 apply, 7 plan, 1 provisioner); the mint itself rests on the Operator's audit in comment 3192. - **The 403 that started the `features` question**: unexplained in the thread and not reproducible without a credential. What the page now asserts is the API rule, which I read; the live cause is asserted nowhere. - **`use_lockfile`'s 412 on a second lock**: a claim about the store's conditional write; not driven against the live bucket. ## Summary Standards: **2 findings, both ADVISORY** — the introduction that describes a migration §2 says never happened (the worse of the two), and a two-shape model ADR-0012 has already widened to three. Spec: **0 findings**. No BLOCKER: every behavioural claim reproduced here, the previous round's three advisories closed with evidence, and the two criteria that cannot be reproduced are the Operator's own measurement, recorded in the thread. The recommendation does not turn on volume — two advisories is below the threshold — and both travel as advice. One reviewer held both axes: no sub-agent runner in this profile.
pit merged commit 522ce0602f into main 2026-11-04 17:51:44 +00:00
pit deleted branch hermes/sc18-openbao-state-in-the-store 2026-11-04 17:51:44 +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-secrets!25
No description provided.