A state-key rotation leaves the declaration, and store refuses a version it would clear (SL-26) #28

Merged
pit merged 5 commits from hermes/SL-26-a-state-key-rotation-leaves-the-standing into main 2026-11-09 20:22:37 +00:00
Member

Implements SL-26

Summary

A rotation was TF_VAR_state_key_secrets plus a bumped version on make store. The
version landed in the state and in no declaration, so every later plan proposed
secret_key_wo_version = <n> -> null — the standing diff SL-23 cleaned out, which
SL-20's unattended make store would have met on its first run after any rotation.

The version cannot move into the declaration: secret_key_wo and
secret_key_wo_version are a pair in the provider's schema, so a committed number
cannot be planned without the secret beside it. And re-adopting after every rotation
is a step each one has to remember. So the rotation leaves the declaration, and
make store refuses the leftover it used to produce.

 silo/store/state-keys.tf
   resource "minio_iam_service_account" "state_key" {
     target_user = var.state_key_owner
     name        = each.key
     policy      = file("${path.module}/${each.value.policy}")
-    secret_key_wo         = try(var.state_key_secrets[each.key].secret, null)
-    secret_key_wo_version = try(var.state_key_secrets[each.key].version, null)
   }
 silo/store/variables.tf, silo/variables.tf, silo/main.tf
-  var.state_key_secrets
 scripts/
+  key-rotate.sh                  # mcli admin accesskey edit --secret-key, read back
+  lib/state-key-path.sh          # the store path, shared with key-mint
 scripts/store-plan-guard.sh
+  refuses an update that clears a recorded secret_key_wo_version
 Makefile
+  key-rotate (Operator only; no state touched)

make store-plan after a rotation plans against untouched state, so its No changes
is a property of the route rather than a step to remember.

Docs: runbook 0003 §4 and §7 gain a Rotating one subsection with make store-plan
as the rotation's last step; ADR 0010 is amended in place (the secret moved to a
Target, the decision stands); the architecture page, docs/agents/workflow.md and the
README's Target list follow.

Evidence

The route that does not work, measured offline against the pinned provider
(aminueza/minio 3.45.0) with a handcrafted state and -refresh=false:

$ tofu -chdir=silo plan -target='module.store.minio_iam_service_account.state_key["tofu-state-forge-guest"]' ...
Error: Missing required argument

  with module.store.minio_iam_service_account.state_key["tofu-state-forge-guest"],
  on store/state-keys.tf line 21, in resource "minio_iam_service_account" "state_key":
  21:   secret_key_wo_version = each.value.secret_version

"secret_key_wo_version": all of `secret_key_wo,secret_key_wo_version` must be
specified

Before: the declaration on main against a state holding version 2 — the
standing diff the ticket names:

  ~ secret_key_wo         = (write-only attribute)
  - secret_key_wo_version = 2 -> null

Plan: 0 to add, 1 to change, 0 to destroy.

After, the same state with this branch: changed attributes: []. A legacy entry
that still holds a number is refused before anything is applied:

$ tofu show -json plan.out | scripts/store-plan-guard.sh
error: the plan would clear a state key's recorded secret version, and
       clearing it is not this Target. A key's secret is rotated at the store
       (`make key-rotate`), so nothing here supplies a version any more: an
       entry that still holds one is a rotation the old route left behind
       (SL-26), and applying this update would make the record agree by
       forgetting the number the store was rotated to.

         module.store.minio_iam_service_account.state_key["tofu-state-forge-guest"]: the state holds version 2
...
Nothing was applied.

Exit code 1. The same guard on main exits 0 on that plan.

A write-only secret is not in the plan JSON. With the secret supplied the plan
still reads after.secret_key_wo: null, so the guard cannot see whether a secret
travels beside a version change; it keys on the direction — a recorded number
disappearing is refused, one arriving or staying is not. Both sides are covered in
key-mint-test.

The client's flag at the pinned tag (RELEASE.2026-09-16T00-00-00Z):

$ ./mcli admin accesskey edit --help
USAGE:
  mcli admin accesskey edit [FLAGS] [TARGET]

FLAGS:
  --secret-key value    set a secret key for the  account

with the example mcli admin accesskey edit mysilo/ testkey --secret-key 'xxxxxxx'.

The repo's gate, on the branch, through the toolchain:

$ mise exec -- make check
Success! The configuration is valid.
rc=0

Suites: env-test 43 cases, key-audit-test 39, key-mint-test 157 (89 at main),
deploy-test 55.

Unproven live. No rotation was due, so "a plan after a real rotation reads
No changes" is not proven here: make store-plan and make store need the store's
.env, and no key was rotated to prove the route.

Merge Danger

Door: two-way. Reverting restores the old declaration and the old procedure. The
one thing a revert does not undo is a secret_key_wo_version an entry recorded before
the change — the guard then refuses that plan until the entry is re-adopted
(state rm + import, which touches no secret).

Blast Radius: one plan shape refused, one Target added.

make store gains a refusal, so a main still carrying the old route's leftovers goes
red on the automated deploy instead of applying them, which is what this ticket is for;
SL-23's re-adoption clears any such entry. No resource is replaced, prevent_destroy is
untouched, and no credential is rotated by this PR.

Implements [SL-26](https://vikunja.thepit.space/tasks/309) ## Summary A rotation was `TF_VAR_state_key_secrets` plus a bumped version on `make store`. The version landed in the state and in no declaration, so every later plan proposed `secret_key_wo_version = <n> -> null` — the standing diff SL-23 cleaned out, which SL-20's unattended `make store` would have met on its first run after any rotation. The version cannot move into the declaration: `secret_key_wo` and `secret_key_wo_version` are a pair in the provider's schema, so a committed number cannot be planned without the secret beside it. And re-adopting after every rotation is a step each one has to remember. So the rotation leaves the declaration, and `make store` refuses the leftover it used to produce. ```diff silo/store/state-keys.tf resource "minio_iam_service_account" "state_key" { target_user = var.state_key_owner name = each.key policy = file("${path.module}/${each.value.policy}") - secret_key_wo = try(var.state_key_secrets[each.key].secret, null) - secret_key_wo_version = try(var.state_key_secrets[each.key].version, null) } silo/store/variables.tf, silo/variables.tf, silo/main.tf - var.state_key_secrets scripts/ + key-rotate.sh # mcli admin accesskey edit --secret-key, read back + lib/state-key-path.sh # the store path, shared with key-mint scripts/store-plan-guard.sh + refuses an update that clears a recorded secret_key_wo_version Makefile + key-rotate (Operator only; no state touched) ``` `make store-plan` after a rotation plans against untouched state, so its `No changes` is a property of the route rather than a step to remember. Docs: runbook 0003 §4 and §7 gain a `Rotating one` subsection with `make store-plan` as the rotation's last step; ADR 0010 is amended in place (the secret moved to a Target, the decision stands); the architecture page, `docs/agents/workflow.md` and the README's Target list follow. ## Evidence **The route that does not work**, measured offline against the pinned provider (aminueza/minio 3.45.0) with a handcrafted state and `-refresh=false`: ``` $ tofu -chdir=silo plan -target='module.store.minio_iam_service_account.state_key["tofu-state-forge-guest"]' ... Error: Missing required argument with module.store.minio_iam_service_account.state_key["tofu-state-forge-guest"], on store/state-keys.tf line 21, in resource "minio_iam_service_account" "state_key": 21: secret_key_wo_version = each.value.secret_version "secret_key_wo_version": all of `secret_key_wo,secret_key_wo_version` must be specified ``` **Before:** the declaration on `main` against a state holding version 2 — the standing diff the ticket names: ``` ~ secret_key_wo = (write-only attribute) - secret_key_wo_version = 2 -> null Plan: 0 to add, 1 to change, 0 to destroy. ``` **After**, the same state with this branch: `changed attributes: []`. A legacy entry that still holds a number is refused before anything is applied: ``` $ tofu show -json plan.out | scripts/store-plan-guard.sh error: the plan would clear a state key's recorded secret version, and clearing it is not this Target. A key's secret is rotated at the store (`make key-rotate`), so nothing here supplies a version any more: an entry that still holds one is a rotation the old route left behind (SL-26), and applying this update would make the record agree by forgetting the number the store was rotated to. module.store.minio_iam_service_account.state_key["tofu-state-forge-guest"]: the state holds version 2 ... Nothing was applied. ``` Exit code 1. The same guard on `main` exits 0 on that plan. **A write-only secret is not in the plan JSON.** With the secret supplied the plan still reads `after.secret_key_wo: null`, so the guard cannot see whether a secret travels beside a version change; it keys on the direction — a recorded number disappearing is refused, one arriving or staying is not. Both sides are covered in `key-mint-test`. **The client's flag at the pinned tag** (`RELEASE.2026-09-16T00-00-00Z`): ``` $ ./mcli admin accesskey edit --help USAGE: mcli admin accesskey edit [FLAGS] [TARGET] FLAGS: --secret-key value set a secret key for the account ``` with the example `mcli admin accesskey edit mysilo/ testkey --secret-key 'xxxxxxx'`. **The repo's gate**, on the branch, through the toolchain: ``` $ mise exec -- make check Success! The configuration is valid. rc=0 ``` Suites: `env-test` 43 cases, `key-audit-test` 39, `key-mint-test` 157 (89 at `main`), `deploy-test` 55. **Unproven live.** No rotation was due, so "a plan after a real rotation reads `No changes`" is not proven here: `make store-plan` and `make store` need the store's `.env`, and no key was rotated to prove the route. ## Merge Danger **Door:** two-way. Reverting restores the old declaration and the old procedure. The one thing a revert does not undo is a `secret_key_wo_version` an entry recorded before the change — the guard then refuses that plan until the entry is re-adopted (`state rm` + `import`, which touches no secret). **Blast Radius:** one plan shape refused, one Target added. `make store` gains a refusal, so a `main` still carrying the old route's leftovers goes red on the automated deploy instead of applying them, which is what this ticket is for; SL-23's re-adoption clears any such entry. No resource is replaced, `prevent_destroy` is untouched, and no credential is rotated by this PR.
Member

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

**Review started** (round 1/5) on e92d5da6341df267f83bca4008aff2cfcce3dabd — reading the diff now.
bot-minos approved these changes 2026-11-09 18:48:53 +00:00
Dismissed
bot-minos left a comment

olympus/infra-silo #28 · head e92d5da · round 1/5 (the thread carries no earlier review, so the dispatch's counter and the review count agree) · no blocker, 3 advisories

Recommendation: fix

The recommendation turns on the count — three advisories — and not on any finding's weight. The review state is APPROVE and nothing below blocks. Spec: SL-26 (project infra-silo, task id 309 / index 26) together with its 2026-11-09 Operator comment, which is what makes the store-plan-guard.sh half mandatory. Standards: AGENTS.md, docs/adr/index.md, docs/index.md, and the org records in olympus/workshop docs/adr read at main.

Standards

ADVISORY — docs/runbooks/0002-store-contents.md:60: this change falsifies that Gate, and the same PR's 0003 §7 now says the opposite.

0002 §0 says a state key's creation is "the only other use of it" — the root credential. make key-rotate takes the same credential (scripts/key-rotate.sh:81 requires MC_HOST_silo as silo-admin, and :109 edits with it), and docs/runbooks/0003-the-state-in-the-store.md:504 now reads "The mint and the rotation are the recurring uses of the root credential." 0002 is not in the PR's doc list, so it keeps a statement the change makes false. Smallest fix: extend that sentence — "…and a rotation takes it for one field (make key-rotate §7)" — or drop "only".

ADVISORY — scripts/store-plan-guard.sh:103-104: the re-adoption hint names a command that needs the value it is supposed to reveal.

"Its access key is the one the key answers with (mcli admin accesskey info silo/ <access key> --json)" — accesskey info takes the access key as an argument, so an Operator stopped by this message cannot run it to learn the key. The entry the message is about already holds it: tofu -chdir=silo state show 'module.store.minio_iam_service_account.state_key["<name>"]' prints access_key, as does the consumer's .env (AWS_ACCESS_KEY_ID). Reproduced: with a stub client answering info, key-rotate.sh reads the key by the access key it was handed, never the reverse. Smallest fix: name tofu state show (or mcli admin accesskey ls silo/) in that clause.

Spec

ADVISORY — the route the ticket describes writes the new secret at the key's store path; the Target stops at printing that path (scripts/key-rotate.sh:131, docs/runbooks/0003-the-state-in-the-store.md:581).

SL-26's route 2 reads: "It becomes an mcli admin accesskey edit on the store (a make key-rotate beside make key-mint, writing the new secret at the key's store path)". The Target edits the key and prints store at secret/tofu-state/<record>/<shape>; writing that path is the Operator's half, and the runbook says so plainly — "Writing the new secret at the key's path is the other half, and it is the Operator's". So the procedure is documented and truthful, but it keeps a manual step that the route's parenthetical implies the Target removes, which is the same shape of objection the ticket raises against route 3. Not a behaviour defect — a scope question for the ticket holder. Smallest fix: either say in the ticket that the store write stays the Operator's, or add it to the Target.

Verified

claim how result
make check exits 0 and the suites are the ones the body counts mise exec -- make check in a worktree at e92d5da rc=0; env-test 43, key-audit-test 39, key-mint-test 154, deploy-test 55 — all four of the body's numbers
key-mint-test was 89 at main the same suite at 84b28b4 89 cases, as the body says
the defect the ticket names, reproduced real tofu plan (-refresh=false, pinned aminueza/minio 3.45.0) against a handcrafted state whose entry holds version 2, at the real module address and with the head declaration - secret_key_wo_version = 2 -> null, "1 to change"
the guard refuses it, and did not before that plan JSON through scripts/store-plan-guard.sh at head, then at 84b28b4 exit 1 with the SL-26 text naming the key and "the state holds version 2" / exit 0
the route's promise: a rotation leaves a clean plan the same plan with the entry's version null — the shape an import leaves, sensitive marks included (without them the fixture shows a spurious no-op update, which is the fixture and not the change: main's declaration does the same) No changes. Your infrastructure matches the configuration.
key-rotate edits one field and nothing else scripts/key-rotate.sh driven on the real repo tree with a stub mcli info → edit … --secret-key → info, no --policy/--name/import/state rm, print names the path, rc=0
docs links and anchors the five changed pages: relative targets resolved on disk; in-page anchors checked against the forge's own render of 0003 at e92d5da 0 broken links; 4/4 anchors resolve, including #rotating-one-make-key-rotate and #creating-one-make-key-mint
CI commit statuses and run 34 at e92d5da success
ADR 0010 amended in place docs/adr/index.md:25-26 ("not an edit of the record") read against this edit and the repo's own precedent — 5fe2283 prefixes ADR 0003 with a dated note, a241f95 edits 0010's key count the owner decision is unchanged, so the rule about reversing one does not bite — not charged
no credential in the diff the whole diff read test literals only (AKROTATED000000001, rotated-secret-half, 18 chars); nothing to redact

Could not verify

  • A plan after a real rotation, on the live store. No store credential here and no rotation due; the author says the same ("Unproven live"). What I proved is the plan shape either side of it, against the pinned provider: null entry → No changes, version-2 entry → the clear the guard refuses.
  • The pinned mcli's admin accesskey edit --secret-key flag. The client is neither in the repo nor on this host; the flag rests on the help output quoted in the PR body. create --secret-key is exercised in production by key-mint, edit is not.

Named, not charged

  • AC1 ("the comment records the route chosen and why the others were not") is due on the task's resolution comment, per AGENTS.md §Pull requests — "a comment, then done: true". The task still shows only "Started"; the PR body carries route 1's rejection ("a number the declaration commits cannot be planned without the secret beside it") and route 3's ("a step each one has to remember"). Carry both across when the task is closed, and AC4's unproven-live line with them.
  • The ticket's "with no new secret in the plan" clause. The guard refuses every version-clear without testing for a secret. Under this route no plan can carry one — the variable is gone — so the clause is met vacuously rather than by a check.
  • The new secret reaches mcli on argv (scripts/key-rotate.sh:109), visible to ps on the host. scripts/key-mint.sh:132 already passes it the same way, so this is a repo-wide pattern question, not this change's.

Summary

Standards: 2 advisories, worst is docs/runbooks/0002-store-contents.md:60 — a Gate statement the change makes false while 0003 §7 asserts the opposite. Spec: 1 advisory, worst (and only) is the store-path write the route describes and the Target leaves to the Operator. Blockers: none — the guard's refusal, the clean plan after a rotation, and the four suite counts are all reproduced above.

<!-- minos review-loop: repo=olympus/infra-silo pr=28 head=e92d5da6341df267f83bca4008aff2cfcce3dabd round=1/5 axes=standards,spec --> **olympus/infra-silo #28** · head `e92d5da` · round **1/5** (the thread carries no earlier review, so the dispatch's counter and the review count agree) · **no blocker, 3 advisories** Recommendation: fix The recommendation turns on the count — three advisories — and not on any finding's weight. The review state is APPROVE and nothing below blocks. Spec: [SL-26](https://vikunja.thepit.space/tasks/309) (project `infra-silo`, task id 309 / index 26) together with its 2026-11-09 Operator comment, which is what makes the `store-plan-guard.sh` half mandatory. Standards: `AGENTS.md`, `docs/adr/index.md`, `docs/index.md`, and the org records in `olympus/workshop` `docs/adr` read at `main`. ## Standards **ADVISORY — `docs/runbooks/0002-store-contents.md:60`: this change falsifies that Gate, and the same PR's 0003 §7 now says the opposite.** 0002 §0 says a state key's creation is "the only other use of it" — the root credential. `make key-rotate` takes the same credential (`scripts/key-rotate.sh:81` requires `MC_HOST_silo` as `silo-admin`, and `:109` edits with it), and `docs/runbooks/0003-the-state-in-the-store.md:504` now reads "The mint and the rotation are the recurring uses of the root credential." 0002 is not in the PR's doc list, so it keeps a statement the change makes false. Smallest fix: extend that sentence — "…and a rotation takes it for one field (`make key-rotate` §7)" — or drop "only". **ADVISORY — `scripts/store-plan-guard.sh:103-104`: the re-adoption hint names a command that needs the value it is supposed to reveal.** "Its access key is the one the key answers with (`mcli admin accesskey info silo/ <access key> --json`)" — `accesskey info` takes the access key as an argument, so an Operator stopped by this message cannot run it to learn the key. The entry the message is about already holds it: `tofu -chdir=silo state show 'module.store.minio_iam_service_account.state_key["<name>"]'` prints `access_key`, as does the consumer's `.env` (`AWS_ACCESS_KEY_ID`). Reproduced: with a stub client answering `info`, `key-rotate.sh` reads the key by the access key it was handed, never the reverse. Smallest fix: name `tofu state show` (or `mcli admin accesskey ls silo/`) in that clause. ## Spec **ADVISORY — the route the ticket describes writes the new secret at the key's store path; the Target stops at printing that path (`scripts/key-rotate.sh:131`, `docs/runbooks/0003-the-state-in-the-store.md:581`).** SL-26's route 2 reads: "It becomes an `mcli admin accesskey edit` on the store (a `make key-rotate` beside `make key-mint`, writing the new secret at the key's store path)". The Target edits the key and prints `store at secret/tofu-state/<record>/<shape>`; writing that path is the Operator's half, and the runbook says so plainly — "Writing the new secret at the key's path is the other half, and it is the Operator's". So the procedure is documented and truthful, but it keeps a manual step that the route's parenthetical implies the Target removes, which is the same shape of objection the ticket raises against route 3. Not a behaviour defect — a scope question for the ticket holder. Smallest fix: either say in the ticket that the store write stays the Operator's, or add it to the Target. ## Verified | claim | how | result | |---|---|---| | `make check` exits 0 and the suites are the ones the body counts | `mise exec -- make check` in a worktree at `e92d5da` | rc=0; env-test 43, key-audit-test 39, key-mint-test 154, deploy-test 55 — all four of the body's numbers | | `key-mint-test` was 89 at `main` | the same suite at `84b28b4` | 89 cases, as the body says | | the defect the ticket names, reproduced | real `tofu plan` (`-refresh=false`, pinned `aminueza/minio` 3.45.0) against a handcrafted state whose entry holds version 2, at the real module address and with the head declaration | `- secret_key_wo_version = 2 -> null`, "1 to change" | | the guard refuses it, and did not before | that plan JSON through `scripts/store-plan-guard.sh` at head, then at `84b28b4` | exit 1 with the SL-26 text naming the key and "the state holds version 2" / exit 0 | | the route's promise: a rotation leaves a clean plan | the same plan with the entry's version null — the shape an import leaves, sensitive marks included (without them the fixture shows a spurious no-op update, which is the fixture and not the change: `main`'s declaration does the same) | `No changes. Your infrastructure matches the configuration.` | | `key-rotate` edits one field and nothing else | `scripts/key-rotate.sh` driven on the real repo tree with a stub `mcli` | `info` → `edit … --secret-key` → `info`, no `--policy`/`--name`/`import`/`state rm`, print names the path, rc=0 | | docs links and anchors | the five changed pages: relative targets resolved on disk; in-page anchors checked against the forge's own render of 0003 at `e92d5da` | 0 broken links; 4/4 anchors resolve, including `#rotating-one-make-key-rotate` and `#creating-one-make-key-mint` | | CI | commit statuses and run 34 at `e92d5da` | success | | ADR 0010 amended in place | `docs/adr/index.md:25-26` ("not an edit of the record") read against this edit and the repo's own precedent — `5fe2283` prefixes ADR 0003 with a dated note, `a241f95` edits 0010's key count | the owner decision is unchanged, so the rule about *reversing* one does not bite — not charged | | no credential in the diff | the whole diff read | test literals only (`AKROTATED000000001`, `rotated-secret-half`, 18 chars); nothing to redact | ## Could not verify - **A plan after a real rotation, on the live store.** No store credential here and no rotation due; the author says the same ("Unproven live"). What I proved is the plan shape either side of it, against the pinned provider: null entry → `No changes`, version-2 entry → the clear the guard refuses. - **The pinned `mcli`'s `admin accesskey edit --secret-key` flag.** The client is neither in the repo nor on this host; the flag rests on the help output quoted in the PR body. `create --secret-key` is exercised in production by `key-mint`, `edit` is not. ## Named, not charged - **AC1 ("the comment records the route chosen and why the others were not") is due on the task's resolution comment**, per `AGENTS.md` §Pull requests — "a comment, then `done: true`". The task still shows only "Started"; the PR body carries route 1's rejection ("a number the declaration commits cannot be planned without the secret beside it") and route 3's ("a step each one has to remember"). Carry both across when the task is closed, and AC4's unproven-live line with them. - **The ticket's "with no new secret in the plan" clause.** The guard refuses every version-clear without testing for a secret. Under this route no plan can carry one — the variable is gone — so the clause is met vacuously rather than by a check. - **The new secret reaches `mcli` on argv** (`scripts/key-rotate.sh:109`), visible to `ps` on the host. `scripts/key-mint.sh:132` already passes it the same way, so this is a repo-wide pattern question, not this change's. ## Summary Standards: **2 advisories**, worst is `docs/runbooks/0002-store-contents.md:60` — a Gate statement the change makes false while 0003 §7 asserts the opposite. Spec: **1 advisory**, worst (and only) is the store-path write the route describes and the Target leaves to the Operator. Blockers: **none** — the guard's refusal, the clean plan after a rotation, and the four suite counts are all reproduced above.
Author
Member

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

**Acknowledged** (round 1/5) — fixing now; what changed and how I verified it follows.
0002's Gate said a state key's creation was the only other use of the root
credential. `make key-rotate` takes the same credential for one field, and 0003
§7 now names the mint and the rotation as the two recurring uses, so the sentence
was false the moment the rotation landed. The clause is extended rather than
"only" dropped: the Gate is what tells the Operator how many root-credential
steps the repo has, and the rotation adds one per rotation.
Point the re-adoption at the entry's own access key (SL-26 review)
All checks were successful
pr-checks / check (pull_request) Successful in 25s
c2a1b38f2b
The refusal's hint read the access key with `mcli admin accesskey info silo/ <access
key>`, which takes the access key as an argument: an Operator stopped by this
message could not run it to learn the key it asks for. The entry the message is
about holds it — `access_key` is Computed in the provider's schema and the import
id is that same value — so the hint reads it with `tofu state show` on the address
the refusal already names, before the `state rm` drops the entry. Two cases pin
the hint: the read it now names, and that the circular one is gone.
bot-efesto dismissed bot-minos's review 2026-11-09 18:51:46 +00:00
Reason:

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

Author
Member

Round 1/5 fixed — head e92d5da → c2a1b38 on hermes/SL-26-a-state-key-rotation-leaves-the-standing. Two commits, no force-push, no history rewritten.

The round carried no blocker: the verdict is APPROVE and all three items are advisories, which is what review/needs-fix follows on a count of three or more. All three are accounted for below; two needed a change, one did not.

# Finding Disposition Commit
1 docs/runbooks/0002-store-contents.md:60 — a state key's creation described as "the only other use" of the root credential, which make key-rotate falsifies Fixed: the Gate now names the mint and the rotation, one Operator step each 30c1aa8
2 scripts/store-plan-guard.sh:103-104 — the re-adoption hint names mcli admin accesskey info silo/ <access key>, a command that needs the value it would reveal Fixed: the hint reads access_key off the entry itself with tofu state show, before the state rm drops it; two cases pin the message c2a1b38
3 Spec — the ticket's route 2 parenthetical implies the Target writes the new secret at the key's store path; the Target stops at printing it Left as it is. No product decision taken here; see below —

1 — the two uses of the root credential

0002 §0's Gate said a state key's creation was the only other use of the root credential. scripts/key-rotate.sh:81 takes it in MC_HOST_silo and :109 edits with it, and 0003 §7 now reads "The mint and the rotation are the recurring uses of the root credential", so 0002 was the last document stating the older, narrower fact. I extended the sentence rather than dropping "only": the Gate is what tells the Operator how many root-credential steps the repo has, and the rotation adds one per rotation.

Measured over git diff -U0 e92d5da with a script that takes len() of each added line (characters, not bytes) and applies the local orphan test: four added lines, widths 77/80/80/9, wide=0, orphans=0.

2 — a hint that could not be run

The refusal told the Operator to learn the entry's access key with accesskey info, which takes that access key as an argument. The entry the message is about holds it: at the pinned aminueza/minio 3.45.0, the minio_iam_service_account schema declares access_key as Computed: true and the read writes it into state from the import id (d.Set("access_key", d.Id())), so tofu state show '<address>' prints it. The hint now reads the entry first, then state rm, then import — the read has to precede the removal or the value is gone with the entry.

scripts/tests/key-mint.test.sh gains two cases: the read the hint now names, and that the circular form is gone.

Red first. The branch's test file against the reviewed tree (git archive e92d5da into a scratch directory, the branch's key-mint.test.sh copied in), through the branch's toolchain:

$ mise exec -- env -C <tree at e92d5da> bash scripts/tests/key-mint.test.sh
rc=1
ok rows: 154 … not ok rows: 2
not ok  the re-adoption reads the access key off the entry it is about: nothing matched 'tofu -chdir=silo state show'
not ok  the re-adoption names no command that needs the access key it would reveal: 'accesskey info silo/' was printed

On the branch, the same suite:

$ mise exec -- bash scripts/tests/key-mint.test.sh
rc=0
ok rows: 156 … not ok rows: 0
key-mint-test: every case passed

154 → 156 is this round's two cases; the review measured 154 at e92d5da, which still stands.

3 — the store write, left alone

The finding names its own clearing: "either say in the ticket that the store write stays the Operator's, or add it to the Target". The first half is already on the ticket, posted before this review: SL-26 comment 467, 2026-11-09 18:43:19Z, paragraph "Left for later, not done here" —

make key-rotate does not write the new secret at the key's OpenBao path — it prints the path, as make key-mint does, because writing the store record needs the Admin agent's credential class and no Target here writes OpenBao. Route 2's sketch had the Target write it; that half stays with the Operator, or a follow-up that adds a bao-writing Target beside make env.

The second half is a scope decision I am not taking in a review round: adding a bao write to the Target changes which credential class make key-rotate runs under, which is the ticket holder's call and a follow-up ticket's design. So the Target is unchanged, the runbook's sentence at 0003:581-584 (which the review accepted as truthful) still says where the split is, and this is recorded rather than fixed.

Two corrections to the report itself, neither a dispute of a finding:

  • The Named, not charged line "The task still shows only 'Started'" is not current: the handoff comment (id 467) landed at 18:43:19Z, five minutes before the review was submitted at 18:48:53Z.
  • The task's handoff still quotes the publish-time suite count of 154; the branch reads 156 after this round, and the PR body now says so.

Verification

The repository's own gate, on the branch, through the toolchain:

$ mise exec -- make check
rc=0
Success! The configuration is valid.

Per suite, counted from that one run over each suite's own output (env-test indents its pass lines, so grep -c '^ok ' alone under-reports it): env-test 43, key-audit-test 39, key-mint-test 156, deploy-test 55.

fmt-check and validate are inside that run and both pass; the 0002 paragraph is the only prose added, measured above. make plan, make store-plan and make store cannot run here — no .env — so no plan was quoted this round and none is claimed.

PR body

One line edited in place: key-mint-test 154 → 156, because this fix changed that suite's size. Read back from the API and compared character-for-character to what was sent (5548 chars, equal). Nothing else in the body moved, and the ## Merge Danger blast radius still holds: the guard's message changed, no plan shape, no Target and no credential did.

Self-review

The two-axis review over git diff e92d5da...HEAD: Standards — the paragraph is at the file's fill with no orphan and no line over 80; the code comments stay minimal per AGENTS.md; the new cases use the suite's existing expect_match/expect_no_match helpers and name behaviour, not the fixture. Spec — findings 1 and 2 are the review's two standards items, each cleared where the finding pointed; finding 3 is answered from the ticket record and explicitly left.

**Round 1/5 fixed** — head `e92d5da` → `c2a1b38` on `hermes/SL-26-a-state-key-rotation-leaves-the-standing`. Two commits, no force-push, no history rewritten. The round carried **no blocker**: the verdict is APPROVE and all three items are advisories, which is what `review/needs-fix` follows on a count of three or more. All three are accounted for below; two needed a change, one did not. | # | Finding | Disposition | Commit | |---|---|---|---| | 1 | `docs/runbooks/0002-store-contents.md:60` — a state key's creation described as "the only other use" of the root credential, which `make key-rotate` falsifies | Fixed: the Gate now names the mint and the rotation, one Operator step each | `30c1aa8` | | 2 | `scripts/store-plan-guard.sh:103-104` — the re-adoption hint names `mcli admin accesskey info silo/ <access key>`, a command that needs the value it would reveal | Fixed: the hint reads `access_key` off the entry itself with `tofu state show`, before the `state rm` drops it; two cases pin the message | `c2a1b38` | | 3 | Spec — the ticket's route 2 parenthetical implies the Target writes the new secret at the key's store path; the Target stops at printing it | **Left as it is.** No product decision taken here; see below | — | ## 1 — the two uses of the root credential `0002` §0's Gate said a state key's creation was the only other use of the root credential. `scripts/key-rotate.sh:81` takes it in `MC_HOST_silo` and `:109` edits with it, and `0003` §7 now reads "The mint and the rotation are the recurring uses of the root credential", so 0002 was the last document stating the older, narrower fact. I extended the sentence rather than dropping "only": the Gate is what tells the Operator how many root-credential steps the repo has, and the rotation adds one per rotation. Measured over `git diff -U0 e92d5da` with a script that takes `len()` of each added line (characters, not bytes) and applies the local orphan test: four added lines, widths 77/80/80/9, **wide=0, orphans=0**. ## 2 — a hint that could not be run The refusal told the Operator to learn the entry's access key with `accesskey info`, which takes that access key as an argument. The entry the message is about holds it: at the pinned `aminueza/minio` 3.45.0, the `minio_iam_service_account` schema declares `access_key` as `Computed: true` and the read writes it into state from the import id (`d.Set("access_key", d.Id())`), so `tofu state show '<address>'` prints it. The hint now reads the entry first, then `state rm`, then `import` — the read has to precede the removal or the value is gone with the entry. `scripts/tests/key-mint.test.sh` gains two cases: the read the hint now names, and that the circular form is gone. **Red first.** The branch's test file against the reviewed tree (`git archive e92d5da` into a scratch directory, the branch's `key-mint.test.sh` copied in), through the branch's toolchain: ``` $ mise exec -- env -C <tree at e92d5da> bash scripts/tests/key-mint.test.sh rc=1 ok rows: 154 … not ok rows: 2 not ok the re-adoption reads the access key off the entry it is about: nothing matched 'tofu -chdir=silo state show' not ok the re-adoption names no command that needs the access key it would reveal: 'accesskey info silo/' was printed ``` On the branch, the same suite: ``` $ mise exec -- bash scripts/tests/key-mint.test.sh rc=0 ok rows: 156 … not ok rows: 0 key-mint-test: every case passed ``` `154 → 156` is this round's two cases; the review measured 154 at `e92d5da`, which still stands. ## 3 — the store write, left alone The finding names its own clearing: "either say in the ticket that the store write stays the Operator's, or add it to the Target". The first half is already on the ticket, posted before this review: **SL-26 comment 467, 2026-11-09 18:43:19Z**, paragraph *"Left for later, not done here"* — > `make key-rotate` does not write the new secret at the key's OpenBao path — it prints the path, as `make key-mint` does, because writing the store record needs the Admin agent's credential class and no Target here writes OpenBao. Route 2's sketch had the Target write it; that half stays with the Operator, or a follow-up that adds a `bao`-writing Target beside `make env`. The second half is a scope decision I am not taking in a review round: adding a `bao` write to the Target changes which credential class `make key-rotate` runs under, which is the ticket holder's call and a follow-up ticket's design. So the Target is unchanged, the runbook's sentence at 0003:581-584 (which the review accepted as truthful) still says where the split is, and this is recorded rather than fixed. Two corrections to the report itself, neither a dispute of a finding: - The *Named, not charged* line "The task still shows only 'Started'" is not current: the handoff comment (id 467) landed at 18:43:19Z, five minutes before the review was submitted at 18:48:53Z. - The task's handoff still quotes the publish-time suite count of 154; the branch reads 156 after this round, and the PR body now says so. ## Verification The repository's own gate, on the branch, through the toolchain: ``` $ mise exec -- make check rc=0 Success! The configuration is valid. ``` Per suite, counted from that one run over each suite's own output (env-test indents its pass lines, so `grep -c '^ok '` alone under-reports it): `env-test` 43, `key-audit-test` 39, `key-mint-test` 156, `deploy-test` 55. `fmt-check` and `validate` are inside that run and both pass; the 0002 paragraph is the only prose added, measured above. `make plan`, `make store-plan` and `make store` cannot run here — no `.env` — so no plan was quoted this round and none is claimed. ## PR body One line edited in place: `key-mint-test` 154 → 156, because this fix changed that suite's size. Read back from the API and compared character-for-character to what was sent (5548 chars, equal). Nothing else in the body moved, and the `## Merge Danger` blast radius still holds: the guard's message changed, no plan shape, no Target and no credential did. ## Self-review The two-axis review over `git diff e92d5da...HEAD`: **Standards** — the paragraph is at the file's fill with no orphan and no line over 80; the code comments stay minimal per `AGENTS.md`; the new cases use the suite's existing `expect_match`/`expect_no_match` helpers and name behaviour, not the fixture. **Spec** — findings 1 and 2 are the review's two standards items, each cleared where the finding pointed; finding 3 is answered from the ticket record and explicitly left.
Member

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

**Review started** (round 2/5) on c2a1b38f2bb09f7121cc38de7a68f06e7faf1934 — reading the diff now.
bot-minos approved these changes 2026-11-09 18:55:59 +00:00
Dismissed
bot-minos left a comment

olympus/infra-silo #28 · head c2a1b38 · round 2/5 · no blocker, 3 advisories

Recommendation: fix

The recommendation turns on the count — three advisories — and not on any finding's weight. No finding blocks, so the review state is APPROVE. Spec: the PR description (SL-26 is named but the tracker is not readable from here, see Could not verify). Standards: AGENTS.md, docs/runbooks/0002-store-contents.md, docs/runbooks/0003-the-state-in-the-store.md, docs/agents/workflow.md, README.md, and the provider schema at the pinned aminueza/minio 3.45.0.

Round 1, carried forward

# Round-1 finding Status Evidence
1 0002:60 Gate falsified by the rotation Fixed (30c1aa8) docs/runbooks/0002-store-contents.md:60-62 now reads "and rotated by make key-rotate for one field; those two are the only other uses of it". Added-line widths 77/80/80/9 characters — the author's measurement holds; my first pass counted bytes, and the em dash and § are multi-byte.
2 store-plan-guard.sh hint names a command needing the value it reveals Fixed (c2a1b38) scripts/store-plan-guard.sh:103-109: tofu -chdir=silo state show '<address>' now precedes state rm. Red-first reproduces exactly as claimed: the branch's test file against a tree at e92d5da → rc=1, 154 ok, 2 not ok, and the two failures are precisely the new cases.
3 Spec — the route's store write left to the Operator Closed by record 0003:578-585 states the split in-tree ("Writing the new secret at the key's path is the other half, and it is the Operator's"). The ticket comment it also rests on I could not read — Vikunja answers 401 here.

No blocking finding existed in round 1, so there is none to re-check. The delta is three files (git diff e92d5da...c2a1b38): one doc paragraph, one guard message, two test cases.

Standards

ADVISORY — docs/runbooks/0002-store-contents.md:61: the rewritten Gate's count is short by one, and the same PR's own workflow page says so.

The new sentence reads "those two are the only other uses of it" — make key-mint and make key-rotate. make key-audit takes the root credential as well: docs/agents/workflow.md:124-127 (edited in this same change) — "key-audit … cannot run without the store's root credential in MC_HOST_silo", README.md:104 — "(root credential)", scripts/key-audit.sh:36-64, and 0003:204-208. The line was rewritten by 30c1aa8, so it is inside this change rather than beside it. Smallest fix: add the audit to the sentence, or scope the claim to the Targets that change a key ("the only two that change one").

ADVISORY — docs/runbooks/0003-the-state-in-the-store.md:474-479: the re-adoption block the guard now cites still has no way to obtain the access key.

scripts/store-plan-guard.sh:102 sends the Operator to "runbook 0003 §7, A key created again is imported again". That block is 0003:471-479:

tofu -chdir=silo state rm  'module.store…state_key["<name>"]'
tofu -chdir=silo import    'module.store…state_key["<name>"]' <access key>

<access key> has no source — the same defect round 1 charged in the guard's message, still standing in the document the fixed message points at. Two versions of one procedure now differ: the message says read it off the entry first (guard:107), the runbook shows no read. It resolves once the Operator knows to run state show or accesskey ls, so this is advice, not a block. Smallest fix: the same tofu -chdir=silo state show '<address>' line before the rm at 0003:476, matching the message.

ADVISORY — scripts/tests/key-mint.test.sh:653-656: the tests pin that the read is named, not that it precedes the removal — which is the property the message states.

guard:104 says "read it before removing anything", and the whole round-1 finding was a message that could not be executed in its stated order. The two new cases assert expect_match 'tofu -chdir=silo state show' and expect_no_match 'accesskey info silo/'; a future edit that moved state show after state rm would still pass both while restoring the defect. This suite already has expect_order (used at :830). Smallest fix: one expect_order 'state show' 'state rm' line.

Spec

No findings. The delta claims nothing new: the guard's behaviour is unchanged (message text only), the doc paragraph is prose, the tests are tests. Round 1's spec advisory is closed by the in-tree record above; the PR's own claims about the route, the refusal and the suite counts all reproduced below.

Verified

claim how result
the repo's gate passes at head mise exec -- make check in a worktree at c2a1b38 rc=0, "Success! The configuration is valid."
the suites are the ones the body counts each Target run separately, ok rows counted env-test 43, key-audit-test 39, key-mint-test 156, deploy-test 55 — all four of the body's numbers
the new cases fail without the fix the branch's key-mint.test.sh into a tree at e92d5da, run through the toolchain rc=1; 154 ok, 2 not ok — the two new cases, nothing else
the defect the ticket names, on a real plan handcrafted state whose entry holds version 2, -refresh=false, real module address, pinned provider - secret_key_wo_version = 2 -> null, "1 to change"
the guard refuses that plan, and did not before that plan's JSON through the guard at head, then at 84b28b4 rc=1 naming the key and "the state holds version 2" / rc=0
the new hint can actually be run provider schema: access_key computed, sensitive=false (secret_key_wo sensitive + write_only); tofu state show on that state the access key printed in full — 18 characters in the raw output (the displayed form was truncated by this runtime's secret filter because I chose an AWS-shaped test value, not by OpenTofu)
state show redacts only what is marked sensitive terraform_data with a sensitive() input input = (sensitive value), output printed — so a non-sensitive access key is not hidden
the hint's chain runs in its stated order state show → state rm → import in that tree entry read, entry removed, Import prepared!, then Access Denied on the stub credentials — i.e. the address and the value flow; only the credential was mine
the guard's edges my own plan JSON, not the fixture null→2 pass, 2→2 pass, no-op pass, a version drop on the service account pass, delete+create refused as a create, create refused, non-JSON rc=2
the removed variable leaves nothing behind grep -rn state_key_secrets over the tree no hits
CI commit statuses at c2a1b38 success (run 35)

Could not verify

  • A live rotation. No store credential here and no .env; what I proved is the plan shape either side of it (2 -> null refused; the entry's version null reads clean) against the pinned provider, not a rotated key.
  • SL-26 and its comment 467. vikunja.thepit.space/api/v1/tasks/309 answers 401 to this bot. The half of round 1's spec advisory that rests on the ticket is taken from the author's quote and from 0003:578-585, which I did read.
  • mcli admin accesskey edit --secret-key at the pinned tag. The client is neither in the repo nor on this host; the flag still rests on the body's help output.

Named, not charged

  • The state show-first technique is not novel: scripts/key-mint.sh:125,147 already uses it, which is why the guard's hint now reads as the repo's own practice rather than a new one.
  • 0003:504 and README.md:137 count root-credential uses differently ("mints" vs "uses"); that pre-dates this change and I have not charged it — only the sentence this PR rewrote.

Summary

Standards: 3 advisories, worst is docs/runbooks/0002-store-contents.md:61 — a rewritten Gate that the same PR's docs/agents/workflow.md:124-127 contradicts. Spec: 0 findings. Blockers: none — the guard's refusal, the hint's runnability, the red-first pair and the four suite counts are all reproduced above. The recommendation is fix on the count of three, not on any finding's severity.

<!-- minos review-loop: repo=olympus/infra-silo pr=28 head=c2a1b38f2bb09f7121cc38de7a68f06e7faf1934 round=2/5 axes=standards,spec --> **olympus/infra-silo #28** · head `c2a1b38` · round **2/5** · **no blocker, 3 advisories** Recommendation: fix The recommendation turns on the count — three advisories — and not on any finding's weight. No finding blocks, so the review state is APPROVE. Spec: the PR description (SL-26 is named but the tracker is not readable from here, see *Could not verify*). Standards: `AGENTS.md`, `docs/runbooks/0002-store-contents.md`, `docs/runbooks/0003-the-state-in-the-store.md`, `docs/agents/workflow.md`, `README.md`, and the provider schema at the pinned `aminueza/minio` 3.45.0. ## Round 1, carried forward | # | Round-1 finding | Status | Evidence | |---|---|---|---| | 1 | `0002:60` Gate falsified by the rotation | **Fixed** (`30c1aa8`) | `docs/runbooks/0002-store-contents.md:60-62` now reads "and rotated by `make key-rotate` for one field; those two are the only other uses of it". Added-line widths 77/80/80/9 characters — the author's measurement holds; my first pass counted bytes, and the em dash and `§` are multi-byte. | | 2 | `store-plan-guard.sh` hint names a command needing the value it reveals | **Fixed** (`c2a1b38`) | `scripts/store-plan-guard.sh:103-109`: `tofu -chdir=silo state show '<address>'` now precedes `state rm`. Red-first reproduces exactly as claimed: the branch's test file against a tree at `e92d5da` → rc=1, **154 ok, 2 not ok**, and the two failures are precisely the new cases. | | 3 | Spec — the route's store write left to the Operator | **Closed by record** | `0003:578-585` states the split in-tree ("Writing the new secret at the key's path is the other half, and it is the Operator's"). The ticket comment it also rests on I could not read — Vikunja answers 401 here. | No blocking finding existed in round 1, so there is none to re-check. The delta is three files (`git diff e92d5da...c2a1b38`): one doc paragraph, one guard message, two test cases. ## Standards **ADVISORY — `docs/runbooks/0002-store-contents.md:61`: the rewritten Gate's count is short by one, and the same PR's own workflow page says so.** The new sentence reads "those two are the only other uses of it" — `make key-mint` and `make key-rotate`. `make key-audit` takes the root credential as well: `docs/agents/workflow.md:124-127` (edited in this same change) — "`key-audit` … cannot run without the store's root credential in `MC_HOST_silo`", `README.md:104` — "(root credential)", `scripts/key-audit.sh:36-64`, and `0003:204-208`. The line was rewritten by `30c1aa8`, so it is inside this change rather than beside it. Smallest fix: add the audit to the sentence, or scope the claim to the Targets that change a key ("the only two that change one"). **ADVISORY — `docs/runbooks/0003-the-state-in-the-store.md:474-479`: the re-adoption block the guard now cites still has no way to obtain the access key.** `scripts/store-plan-guard.sh:102` sends the Operator to "runbook 0003 §7, A key created again is imported again". That block is `0003:471-479`: ```sh tofu -chdir=silo state rm 'module.store…state_key["<name>"]' tofu -chdir=silo import 'module.store…state_key["<name>"]' <access key> ``` `<access key>` has no source — the same defect round 1 charged in the guard's message, still standing in the document the fixed message points at. Two versions of one procedure now differ: the message says read it off the entry first (`guard:107`), the runbook shows no read. It resolves once the Operator knows to run `state show` or `accesskey ls`, so this is advice, not a block. Smallest fix: the same `tofu -chdir=silo state show '<address>'` line before the `rm` at `0003:476`, matching the message. **ADVISORY — `scripts/tests/key-mint.test.sh:653-656`: the tests pin that the read is named, not that it precedes the removal — which is the property the message states.** `guard:104` says "read it before removing anything", and the whole round-1 finding was a message that could not be executed in its stated order. The two new cases assert `expect_match 'tofu -chdir=silo state show'` and `expect_no_match 'accesskey info silo/'`; a future edit that moved `state show` after `state rm` would still pass both while restoring the defect. This suite already has `expect_order` (used at `:830`). Smallest fix: one `expect_order 'state show' 'state rm'` line. ## Spec **No findings.** The delta claims nothing new: the guard's behaviour is unchanged (message text only), the doc paragraph is prose, the tests are tests. Round 1's spec advisory is closed by the in-tree record above; the PR's own claims about the route, the refusal and the suite counts all reproduced below. ## Verified | claim | how | result | |---|---|---| | the repo's gate passes at head | `mise exec -- make check` in a worktree at `c2a1b38` | rc=0, "Success! The configuration is valid." | | the suites are the ones the body counts | each Target run separately, `ok` rows counted | `env-test` 43, `key-audit-test` 39, `key-mint-test` 156, `deploy-test` 55 — all four of the body's numbers | | the new cases fail without the fix | the branch's `key-mint.test.sh` into a tree at `e92d5da`, run through the toolchain | rc=1; 154 ok, 2 not ok — the two new cases, nothing else | | the defect the ticket names, on a real plan | handcrafted state whose entry holds version 2, `-refresh=false`, real module address, pinned provider | `- secret_key_wo_version = 2 -> null`, "1 to change" | | the guard refuses that plan, and did not before | that plan's JSON through the guard at head, then at `84b28b4` | rc=1 naming the key and "the state holds version 2" / rc=0 | | the new hint can actually be run | provider schema: `access_key` computed, **sensitive=false** (`secret_key_wo` sensitive + write_only); `tofu state show` on that state | the access key printed in full — 18 characters in the raw output (the displayed form was truncated by this runtime's secret filter because I chose an AWS-shaped test value, not by OpenTofu) | | `state show` redacts only what is marked sensitive | `terraform_data` with a `sensitive()` input | `input = (sensitive value)`, `output` printed — so a non-sensitive access key is not hidden | | the hint's chain runs in its stated order | `state show` → `state rm` → `import` in that tree | entry read, entry removed, `Import prepared!`, then `Access Denied` on the stub credentials — i.e. the address and the value flow; only the credential was mine | | the guard's edges | my own plan JSON, not the fixture | null→2 pass, 2→2 pass, no-op pass, a version drop on the service account pass, `delete+create` refused as a create, create refused, non-JSON rc=2 | | the removed variable leaves nothing behind | `grep -rn state_key_secrets` over the tree | no hits | | CI | commit statuses at `c2a1b38` | success (run 35) | ## Could not verify - **A live rotation.** No store credential here and no `.env`; what I proved is the plan shape either side of it (`2 -> null` refused; the entry's version null reads clean) against the pinned provider, not a rotated key. - **SL-26 and its comment 467.** `vikunja.thepit.space/api/v1/tasks/309` answers 401 to this bot. The half of round 1's spec advisory that rests on the ticket is taken from the author's quote and from `0003:578-585`, which I did read. - **`mcli admin accesskey edit --secret-key` at the pinned tag.** The client is neither in the repo nor on this host; the flag still rests on the body's help output. ## Named, not charged - The `state show`-first technique is not novel: `scripts/key-mint.sh:125,147` already uses it, which is why the guard's hint now reads as the repo's own practice rather than a new one. - `0003:504` and `README.md:137` count root-credential uses differently ("mints" vs "uses"); that pre-dates this change and I have not charged it — only the sentence this PR rewrote. ## Summary **Standards: 3 advisories**, worst is `docs/runbooks/0002-store-contents.md:61` — a rewritten Gate that the same PR's `docs/agents/workflow.md:124-127` contradicts. **Spec: 0 findings.** Blockers: **none** — the guard's refusal, the hint's runnability, the red-first pair and the four suite counts are all reproduced above. The recommendation is `fix` on the count of three, not on any finding's severity.
Owner

3 advisories. fix

3 advisories. fix
Author
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.
The rewritten Gate said the mint and the rotation were the only other uses of
the root credential, and `make key-audit` takes the same credential to read the
store — `scripts/key-audit.sh:36-44` refuses without `MC_HOST_silo` as
`silo-admin`, and `docs/agents/workflow.md:124-127` and `README.md:104` already
say so. Those three Targets are the ones that reach the store with it, so the
Gate names all three and keeps the count it exists for.

The same claim has two more homes this finding did not name — the bold lead at
§7's "The mint and the rotation are the recurring uses" and the closing clause
of §7's Gate — and both were reworded by this change when the rotation landed.
They move with it, or 0002 says three uses beside a 0003 that says two.
Read the entry before the removal the runbook names (SL-26 review)
All checks were successful
pr-checks / check (pull_request) Successful in 30s
9883ad3b47
The guard's fixed message sends the Operator to runbook 0003 §7's re-adoption,
and that block showed no way to obtain the `<access key>` its import takes: the
message read it off the entry first, the page went straight to `state rm`. The
block now carries the same `tofu state show '<address>'` line, in the same place
— before the `rm` that drops the value — with the reason in one sentence after
it.

The two cases the last round added pin that the read is named, not that it comes
first, which is the property the message states; a reordering would pass both.
`expect_out_order` is the sibling of `expect_order` for output rather than
`calls.log` (the guard prints, it calls nothing), and one case uses it.
bot-efesto dismissed bot-minos's review 2026-11-09 19:12:45 +00:00
Reason:

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

Author
Member

Round 2/5 fixed — head c2a1b38 → 9883ad3 on hermes/SL-26-a-state-key-rotation-leaves-the-standing. Two commits, fast-forward, no force-push, no history rewritten.

The round carried no blocker: the verdict is APPROVE and all three items are advisories, which is what review/needs-fix follows on a count of three or more. All three are cleared below; none is disputed.

# Finding Disposition Commit
1 0002:61 — the rewritten Gate's count of root-credential uses is short by one (make key-audit takes it too) Fixed: the Gate names all three Targets, and the two other homes of the same count move with it f36af50
2 0003:474-479 — the re-adoption block the guard cites has no way to obtain the access key Fixed: the block now carries the same state show line, before the rm, that the message names 9883ad3
3 key-mint.test.sh:653-656 — the cases pin that the read is named, not that it precedes the removal Fixed: one case pins the order, through the output-side sibling of expect_order 9883ad3

1 — the count, in all three homes

The finding's home is 0002:57-65. The sentence now reads: "those two and make key-audit are the only Targets that reach the store with it — the mint and the rotation change a key, one Operator step per new key and one per rotation (§7), the audit reads one and changes nothing." Those three are the Targets whose scripts read MC_HOST_silo as silo-admin — key-mint.sh, key-rotate.sh, key-audit.sh. The guard's single MC_HOST_silo is text inside a hint that names make key-mint, not a call; the service Targets template the root password into the Guest's config and do not reach the store with it.

The report's "pre-dates this change" reading of 0003:504 is right about the omission and not about the sentence. On origin/main the claim was "The mint is the one recurring use of the root credential" — the audit was missing there too, so the omission is older than this round. But this change is what rewrote both of those sentences to recount when the rotation landed: §7's bold lead and §7's closing Gate clause. Leaving them at two would put a 0002 that says three beside a 0003 that says two. Both move to three in f36af50 — they are the homes the finding did not name, and I have moved them rather than only the one it did.

2 — the block matches the message

0003:474-479 gains tofu -chdir=silo state show '<address>' # prints its access_key on the line before state rm, with one sentence under the fence saying why the read comes first. The guard's message and the page now show one procedure in one order, which is what the round-1 fix left split between them.

3 — the order, and a correction to the suggested line

expect_order 'state show' 'state rm' cannot be used as suggested: that helper greps $dir/calls.log, the stub client's call log, and store-plan-guard.sh never calls anything — it reads plan JSON and prints. (The file is also 764 lines, so the cited :830 does not resolve; expect_order is used at :316, :426, :427.) The clearing is the output-side sibling, expect_out_order — the same shape the file already keeps as expect_match/expect_log — used by one case:

expect_out_order 'tofu -chdir=silo state show' 'tofu -chdir=silo state rm' \
  'the entry is read before it is the one removed'

This case is a pin, not a fix: it passes at the reviewed head, because c2a1b38 already put the read first. What proves it measures the property is a mutation — the guard's two lines swapped in a throwaway copy of the tree, the branch's suite run against it:

$ mise exec -- env -C /tmp/silo-mut-1 bash scripts/tests/key-mint.test.sh
rc=1
ok rows: 156 ... not ok rows: 1
not ok  the entry is read before it is the one removed: wanted one
        'tofu -chdir=silo state show' before one 'tofu -chdir=silo state rm'
        (lines: 16 / 15)

And on the branch, unchanged:

$ mise exec -- bash scripts/tests/key-mint.test.sh
rc=0
ok rows: 157 ... not ok rows: 0
key-mint-test: every case passed

Verification

The repo's gate, on 9883ad3, through the toolchain:

$ mise exec -- make check
Success! The configuration is valid.
rc=0

Each Target run separately, ok rows counted (env-test indents its pass lines, so grep -c '^ok ' alone answers 0 for it):

Target ok not ok
env-test 43 0
key-audit-test 39 0
key-mint-test 157 0
deploy-test 55 0

key-mint-test was 156 at the reviewed head, which is the pre-fix figure; the case above is the delta.

Prose: every line this round adds, measured in characters off git diff -U0 c2a1b38 by a script that keeps its own +++ state — wide=0, orphans=0. The only line over 80 is the state show line inside the runbook's fence, which sits beside the 110-column import line already in that block; the message's own copies are fenced too.

make plan, make store-plan and make store cannot run here — no .env — so no plan is quoted and none is claimed.

PR body

One line edited in place: key-mint-test 156 → 157, because this round grew that suite. Read back from the API and compared to what was sent (equal=True, 5548 characters, anchor gone, new text present once). Nothing else moved, and the ## Merge Danger blast radius still holds: no plan shape, no Target and no credential changed this round.

Noticed, not this round's

docs/adr/0010-…:37 is 111 columns — a bullet the earlier wording left with its long link on one line. It is in neither this round's findings nor its delta from c2a1b38, so I have left it rather than widen this round's blast radius.

**Round 2/5 fixed** — head `c2a1b38` → `9883ad3` on `hermes/SL-26-a-state-key-rotation-leaves-the-standing`. Two commits, fast-forward, no force-push, no history rewritten. The round carried **no blocker**: the verdict is APPROVE and all three items are advisories, which is what `review/needs-fix` follows on a count of three or more. All three are cleared below; none is disputed. | # | Finding | Disposition | Commit | |---|---|---|---| | 1 | `0002:61` — the rewritten Gate's count of root-credential uses is short by one (`make key-audit` takes it too) | Fixed: the Gate names all three Targets, and the two other homes of the same count move with it | `f36af50` | | 2 | `0003:474-479` — the re-adoption block the guard cites has no way to obtain the access key | Fixed: the block now carries the same `state show` line, before the `rm`, that the message names | `9883ad3` | | 3 | `key-mint.test.sh:653-656` — the cases pin that the read is named, not that it precedes the removal | Fixed: one case pins the order, through the output-side sibling of `expect_order` | `9883ad3` | ## 1 — the count, in all three homes The finding's home is `0002:57-65`. The sentence now reads: "those two and `make key-audit` are the only Targets that reach the store with it — the mint and the rotation change a key, one Operator step per new key and one per rotation (§7), the audit reads one and changes nothing." Those three are the Targets whose scripts read `MC_HOST_silo` as `silo-admin` — `key-mint.sh`, `key-rotate.sh`, `key-audit.sh`. The guard's single `MC_HOST_silo` is text inside a hint that names `make key-mint`, not a call; the service Targets template the root password into the Guest's config and do not reach the store with it. **The report's "pre-dates this change" reading of `0003:504` is right about the omission and not about the sentence.** On `origin/main` the claim was "The mint is the one recurring use of the root credential" — the audit was missing there too, so the omission is older than this round. But this change is what rewrote both of those sentences to recount when the rotation landed: §7's bold lead and §7's closing Gate clause. Leaving them at two would put a `0002` that says three beside a `0003` that says two. Both move to three in `f36af50` — they are the homes the finding did not name, and I have moved them rather than only the one it did. ## 2 — the block matches the message `0003:474-479` gains `tofu -chdir=silo state show '<address>' # prints its access_key` on the line before `state rm`, with one sentence under the fence saying why the read comes first. The guard's message and the page now show one procedure in one order, which is what the round-1 fix left split between them. ## 3 — the order, and a correction to the suggested line `expect_order 'state show' 'state rm'` cannot be used as suggested: that helper greps `$dir/calls.log`, the stub client's call log, and `store-plan-guard.sh` never calls anything — it reads plan JSON and prints. (The file is also 764 lines, so the cited `:830` does not resolve; `expect_order` is used at `:316`, `:426`, `:427`.) The clearing is the output-side sibling, `expect_out_order` — the same shape the file already keeps as `expect_match`/`expect_log` — used by one case: ```sh expect_out_order 'tofu -chdir=silo state show' 'tofu -chdir=silo state rm' \ 'the entry is read before it is the one removed' ``` **This case is a pin, not a fix**: it passes at the reviewed head, because `c2a1b38` already put the read first. What proves it measures the property is a mutation — the guard's two lines swapped in a throwaway copy of the tree, the branch's suite run against it: ``` $ mise exec -- env -C /tmp/silo-mut-1 bash scripts/tests/key-mint.test.sh rc=1 ok rows: 156 ... not ok rows: 1 not ok the entry is read before it is the one removed: wanted one 'tofu -chdir=silo state show' before one 'tofu -chdir=silo state rm' (lines: 16 / 15) ``` And on the branch, unchanged: ``` $ mise exec -- bash scripts/tests/key-mint.test.sh rc=0 ok rows: 157 ... not ok rows: 0 key-mint-test: every case passed ``` ## Verification The repo's gate, on `9883ad3`, through the toolchain: ``` $ mise exec -- make check Success! The configuration is valid. rc=0 ``` Each Target run separately, `ok` rows counted (`env-test` indents its pass lines, so `grep -c '^ok '` alone answers 0 for it): | Target | ok | not ok | |---|---|---| | `env-test` | 43 | 0 | | `key-audit-test` | 39 | 0 | | `key-mint-test` | 157 | 0 | | `deploy-test` | 55 | 0 | `key-mint-test` was 156 at the reviewed head, which is the pre-fix figure; the case above is the delta. Prose: every line this round adds, measured in characters off `git diff -U0 c2a1b38` by a script that keeps its own `+++` state — **wide=0, orphans=0**. The only line over 80 is the `state show` line inside the runbook's fence, which sits beside the 110-column `import` line already in that block; the message's own copies are fenced too. `make plan`, `make store-plan` and `make store` cannot run here — no `.env` — so no plan is quoted and none is claimed. ## PR body One line edited in place: `key-mint-test` 156 → 157, because this round grew that suite. Read back from the API and compared to what was sent (`equal=True`, 5548 characters, anchor gone, new text present once). Nothing else moved, and the `## Merge Danger` blast radius still holds: no plan shape, no Target and no credential changed this round. ## Noticed, not this round's `docs/adr/0010-…:37` is 111 columns — a bullet the earlier wording left with its long link on one line. It is in neither this round's findings nor its delta from `c2a1b38`, so I have left it rather than widen this round's blast radius.
Member

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

**Review started** (round 1/5) on 9883ad3b472814a6405a2feaae3c5536f10e0d5a — reading the diff now.
bot-minos approved these changes 2026-11-09 19:17:03 +00:00
bot-minos left a comment

olympus/infra-silo #28 · head 9883ad3 · round 1/5 (the dispatch's counter; the thread already carries two reviews, at e92d5da and c2a1b38, both re-checked below) · no blocker, 0 findings

Recommendation: merge

Spec: the PR description (SL-26 and task 309 answer 401 to this bot, see Could not verify) plus the ticket text quoted in the two earlier reviews. Standards: AGENTS.md (§Secrets, §Privacy, §Code comments, §Docs), docs/adr/index.md (the record lifecycle rule), docs/index.md.

Prior rounds

Round 1 and round 2 carried no blocker, so there is none to re-check. Round 2's three advisories are all closed:

# Round-2 finding Status Evidence
1 0002:61 — the rewritten Gate's count was short by one (make key-audit takes the root credential too) Fixed (f36af50) docs/runbooks/0002-store-contents.md:60-63 now names "those two and make key-audit". grep -rn MC_HOST_silo over the tree returns exactly three Targets — key-mint.sh, key-rotate.sh, key-audit.sh — so the count is right; the two other homes of the same sentence (0003:507-514, 0003:695-701) moved with it, and no "one recurring use" wording survives.
2 0003:474-479 — the block the guard cites had no way to obtain the access key Fixed (9883ad3) docs/runbooks/0003-the-state-in-the-store.md:476 carries tofu -chdir=silo state show '<address>' on the line before state rm, and 482-483 say why the read comes first. The guard's message (store-plan-guard.sh:104-109) and the page now show one procedure in one order.
3 key-mint.test.sh pinned that the read is named, not that it precedes the removal Fixed (9883ad3) scripts/tests/key-mint.test.sh:667 uses expect_out_order. I reproduced the author's mutation myself: the guard's two lines swapped in a throwaway copy of 9883ad3 → rc=1, 156 ok, 1 not ok, and it is exactly the entry is read before it is the one removed. The case measures the property it claims.

Standards

No findings.

The whole diff, file by file: Makefile (Target, help text, guard note), README.md (Target list), docs/adr/0010 (amended in place with a dated note — the decision, the owner, is unchanged, so docs/adr/index.md's "reversing one means a new file" does not bite), docs/agents/workflow.md (mutation table, credential class, test list), docs/architecture.md, docs/runbooks/0002, docs/runbooks/0003, scripts/key-mint.sh (path derivation moved to a shared lib, behaviour identical), scripts/key-rotate.sh (new; mode 100755), scripts/lib/state-key-path.sh (new, sourced, 100644 like its neighbour), scripts/store-plan-guard.sh (second refusal), scripts/tests/key-mint.test.sh (68 new cases, none removed or weakened), silo/main.tf, silo/store/state-keys.tf, silo/store/variables.tf, silo/variables.tf. All 64 relative links and in-page anchors across the six changed pages resolve, including #rotating-one-make-key-rotate and #creating-one-make-key-mint. The commented code explains provider semantics the code cannot carry (a write-only pair), which is the case AGENTS.md allows, and the procedure itself lives on a docs page.

Spec

No findings. The PR's claims, each reproduced below: the declaration carries no secret and no version; make key-rotate edits one field at the store and touches no state; make store refuses a plan that clears a recorded version; the docs, ADR and Target tables follow. Nothing in the diff was not asked for.

Verified

claim how result
the repo's gate passes at head mise exec -- make check in a worktree at 9883ad3 rc=0, "Success! The configuration is valid."
the suites are the body's numbers each Target run separately, ok rows counted env-test 43, key-audit-test 39, key-mint-test 157, deploy-test 55 — all four, 0 failures
key-mint-test was 89 at main that suite at 84b28b4 89 ok, 0 not ok
the defect the ticket names real tofu plan (1.12.6, pinned aminueza/minio 3.45.0, -refresh=false) at the real module address against a handcrafted state whose entry holds version 2 - secret_key_wo_version = 2 -> null, "1 to change" — and after.secret_key_wo: null, confirming a write-only secret is invisible to the plan JSON
the guard refuses that plan, and did not before that plan's own JSON through scripts/store-plan-guard.sh at head, then at 84b28b4 rc=1, naming the key and "the state holds version 2" and the re-adoption / rc=0
a null-version entry is not refused the same plan with the entry's version null, through the guard at head rc=0
the rotation edits one field and nothing else suite cases rotate, rotate-implied, rotate-policy-moved, rotate-name-moved the store sees info → edit --secret-key → info and nothing else; no --policy, --name, import or state rm
the suite tests the rotation's refusals mutation: the name/access-key check removed from key-rotate.sh, the suite run against it rc=1, 2 not ok — the right access key is refused, and the wrong-key edit is caught
the removed variable leaves nothing behind grep -rn state_key_secrets over the tree no hits; tofu validate passes
no credential, no address the whole diff read test literals only (AKROTATED000000001, rotated-secret-half); no DDNS name and no new external address
CI commit statuses at 9883ad3 success (run 36)

Could not verify

  • A live rotation, and the No changes plan after it. No store credential and no .env here, and no rotation was due. My handcrafted null-version state plans as an empty-diff 1 to change — at 84b28b4 as well as at head, so that artefact is my fixture and the pinned provider's write-only handling, not this change; it neither confirms nor refutes the claim. What I did prove is the plan shape either side of it: version 2 → the clear the guard refuses, version null → the guard passes. The author marks the same line "Unproven live".
  • SL-26 and its comments. vikunja.thepit.space/api/v1/tasks/309 answers 401 to this bot; the spec is the PR description plus the ticket text quoted in the two earlier reviews.
  • mcli admin accesskey edit --secret-key at the pinned tag. The client is neither in the repo nor on this host; the flag still rests on the help output in the body. create --secret-key is exercised in production by key-mint, edit is not — a live rotation is the first run of that call.
  • That an import sets secret_key_wo_version to null. The re-adoption route depends on it and there is no store here to import against.

Named, not charged

  • The new secret reaches mcli on argv (scripts/key-rotate.sh:109), visible to ps on the host. scripts/key-mint.sh:132 already passes it the same way — a repo-wide pattern question, not this change's, and named in round 1 already.
  • AC1 ("the comment records the route chosen and why the others were not") is due on the task's resolution, per AGENTS.md §Pull requests — "a comment, then done: true". The PR body carries route 1's and route 3's rejections; carry both across, with the unproven-live line, when the task is closed.

Summary

Standards: 0 findings. Spec: 0 findings. Blockers: none. The two prior rounds' advisories are closed where the findings pointed — and the round-2 test-order case is proven by mutation, not by assertion. The recommendation is merge.

<!-- minos review-loop: repo=olympus/infra-silo pr=28 head=9883ad3b472814a6405a2feaae3c5536f10e0d5a round=1/5 axes=standards,spec --> **olympus/infra-silo #28** · head `9883ad3` · round **1/5** (the dispatch's counter; the thread already carries two reviews, at `e92d5da` and `c2a1b38`, both re-checked below) · **no blocker, 0 findings** Recommendation: merge Spec: the PR description (SL-26 and task 309 answer 401 to this bot, see *Could not verify*) plus the ticket text quoted in the two earlier reviews. Standards: `AGENTS.md` (§Secrets, §Privacy, §Code comments, §Docs), `docs/adr/index.md` (the record lifecycle rule), `docs/index.md`. ## Prior rounds Round 1 and round 2 carried no blocker, so there is none to re-check. Round 2's three advisories are all closed: | # | Round-2 finding | Status | Evidence | |---|---|---|---| | 1 | `0002:61` — the rewritten Gate's count was short by one (`make key-audit` takes the root credential too) | **Fixed** (`f36af50`) | `docs/runbooks/0002-store-contents.md:60-63` now names "those two and `make key-audit`". `grep -rn MC_HOST_silo` over the tree returns exactly three Targets — `key-mint.sh`, `key-rotate.sh`, `key-audit.sh` — so the count is right; the two other homes of the same sentence (`0003:507-514`, `0003:695-701`) moved with it, and no "one recurring use" wording survives. | | 2 | `0003:474-479` — the block the guard cites had no way to obtain the access key | **Fixed** (`9883ad3`) | `docs/runbooks/0003-the-state-in-the-store.md:476` carries `tofu -chdir=silo state show '<address>'` on the line before `state rm`, and 482-483 say why the read comes first. The guard's message (`store-plan-guard.sh:104-109`) and the page now show one procedure in one order. | | 3 | `key-mint.test.sh` pinned that the read is *named*, not that it *precedes* the removal | **Fixed** (`9883ad3`) | `scripts/tests/key-mint.test.sh:667` uses `expect_out_order`. I reproduced the author's mutation myself: the guard's two lines swapped in a throwaway copy of `9883ad3` → `rc=1`, 156 ok, **1** not ok, and it is exactly `the entry is read before it is the one removed`. The case measures the property it claims. | ## Standards **No findings.** The whole diff, file by file: `Makefile` (Target, help text, guard note), `README.md` (Target list), `docs/adr/0010` (amended in place with a dated note — the decision, the owner, is unchanged, so `docs/adr/index.md`'s "reversing one means a new file" does not bite), `docs/agents/workflow.md` (mutation table, credential class, test list), `docs/architecture.md`, `docs/runbooks/0002`, `docs/runbooks/0003`, `scripts/key-mint.sh` (path derivation moved to a shared lib, behaviour identical), `scripts/key-rotate.sh` (new; mode `100755`), `scripts/lib/state-key-path.sh` (new, sourced, `100644` like its neighbour), `scripts/store-plan-guard.sh` (second refusal), `scripts/tests/key-mint.test.sh` (68 new cases, none removed or weakened), `silo/main.tf`, `silo/store/state-keys.tf`, `silo/store/variables.tf`, `silo/variables.tf`. All 64 relative links and in-page anchors across the six changed pages resolve, including `#rotating-one-make-key-rotate` and `#creating-one-make-key-mint`. The commented code explains provider semantics the code cannot carry (a write-only pair), which is the case `AGENTS.md` allows, and the procedure itself lives on a docs page. ## Spec **No findings.** The PR's claims, each reproduced below: the declaration carries no secret and no version; `make key-rotate` edits one field at the store and touches no state; `make store` refuses a plan that clears a recorded version; the docs, ADR and Target tables follow. Nothing in the diff was not asked for. ## Verified | claim | how | result | |---|---|---| | the repo's gate passes at head | `mise exec -- make check` in a worktree at `9883ad3` | rc=0, "Success! The configuration is valid." | | the suites are the body's numbers | each Target run separately, `ok` rows counted | `env-test` 43, `key-audit-test` 39, `key-mint-test` 157, `deploy-test` 55 — all four, 0 failures | | `key-mint-test` was 89 at `main` | that suite at `84b28b4` | 89 ok, 0 not ok | | **the defect the ticket names** | real `tofu plan` (1.12.6, pinned `aminueza/minio` 3.45.0, `-refresh=false`) at the real module address against a handcrafted state whose entry holds version 2 | `- secret_key_wo_version = 2 -> null`, "1 to change" — and `after.secret_key_wo: null`, confirming a write-only secret is invisible to the plan JSON | | the guard refuses that plan, and did not before | that plan's own JSON through `scripts/store-plan-guard.sh` at head, then at `84b28b4` | rc=1, naming the key and "the state holds version 2" and the re-adoption / rc=0 | | a null-version entry is not refused | the same plan with the entry's version null, through the guard at head | rc=0 | | the rotation edits one field and nothing else | suite cases `rotate`, `rotate-implied`, `rotate-policy-moved`, `rotate-name-moved` | the store sees `info` → `edit --secret-key` → `info` and nothing else; no `--policy`, `--name`, `import` or `state rm` | | the suite tests the rotation's refusals | mutation: the name/access-key check removed from `key-rotate.sh`, the suite run against it | rc=1, 2 not ok — the right access key is refused, and the wrong-key edit is caught | | the removed variable leaves nothing behind | `grep -rn state_key_secrets` over the tree | no hits; `tofu validate` passes | | no credential, no address | the whole diff read | test literals only (`AKROTATED000000001`, `rotated-secret-half`); no DDNS name and no new external address | | CI | commit statuses at `9883ad3` | success (run 36) | ## Could not verify - **A live rotation, and the `No changes` plan after it.** No store credential and no `.env` here, and no rotation was due. My handcrafted null-version state plans as an empty-diff `1 to change` — **at `84b28b4` as well as at head**, so that artefact is my fixture and the pinned provider's write-only handling, not this change; it neither confirms nor refutes the claim. What I did prove is the plan shape either side of it: version 2 → the clear the guard refuses, version null → the guard passes. The author marks the same line "Unproven live". - **SL-26 and its comments.** `vikunja.thepit.space/api/v1/tasks/309` answers 401 to this bot; the spec is the PR description plus the ticket text quoted in the two earlier reviews. - **`mcli admin accesskey edit --secret-key` at the pinned tag.** The client is neither in the repo nor on this host; the flag still rests on the help output in the body. `create --secret-key` is exercised in production by `key-mint`, `edit` is not — a live rotation is the first run of that call. - **That an import sets `secret_key_wo_version` to null.** The re-adoption route depends on it and there is no store here to import against. ## Named, not charged - The new secret reaches `mcli` on argv (`scripts/key-rotate.sh:109`), visible to `ps` on the host. `scripts/key-mint.sh:132` already passes it the same way — a repo-wide pattern question, not this change's, and named in round 1 already. - AC1 ("the comment records the route chosen and why the others were not") is due on the task's resolution, per `AGENTS.md` §Pull requests — "a comment, then `done: true`". The PR body carries route 1's and route 3's rejections; carry both across, with the unproven-live line, when the task is closed. ## Summary **Standards: 0 findings. Spec: 0 findings. Blockers: none.** The two prior rounds' advisories are closed where the findings pointed — and the round-2 test-order case is proven by mutation, not by assertion. The recommendation is `merge`.
pit merged commit 502539c9ee into main 2026-11-09 20:22:37 +00:00
pit deleted branch hermes/SL-26-a-state-key-rotation-leaves-the-standing 2026-11-09 20:22:37 +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-silo!28
No description provided.