Declare the Semaphore runner Stack's deploy state key (CP-42) #21

Merged
pit merged 3 commits from hermes/cp42-semaphore-runner-state-key into main 2026-11-06 08:24:37 +00:00
Owner

Lands infra-silo's half of CP-42: the record the runner Guest (145) keeps its state in, declared before make key-mint creates its key.

Summary

 silo/store/
+├── semaphore-runner-deploy-state-policy.json   # semaphore's deploy policy, over prod/semaphore-runner.tfstate
 └── variables.tf
     var.state_keys
       "tofu-deploy-state-semaphore" = { … }
+      "tofu-deploy-semaphore-runner" = { policy = "semaphore-runner-deploy-state-policy.json" }
 docs/runbooks/0003-the-state-in-the-store.md     # §7: table row, eight Stacks / eighteen keys, the deploy shape's fourth row

The policy differs from semaphore-deploy-state-policy.json in the two object ARNs and nothing else: list the bucket; Get/Put on prod/semaphore-runner.tfstate; Get/Put/Delete on its .tflock. The record name semaphore-runner is the one infra-secrets' docs/store-layout.md already gives secret/tofu-state/semaphore-runner/deploy, which key-mint derives from the file name.

The name drops -state. The store caps a key name at 32 characters; tofu-deploy-state-semaphore-runner is 34 and the plan refused it (expected length of name to be in the range (1 - 32)). The tofu prefix keeps it in key-audit's scope, which matches by policy content, not by name.

Evidence

  • mise exec -- make check → exit 0 (Success! The configuration is valid.).
  • mise exec -- make store-plan, before (main): Plan: 0 to add, 2 to change, 0 to destroy.
    After (this branch): module.store.minio_iam_service_account.state_key["tofu-deploy-semaphore-runner"] will be created — Plan: 1 to add, 2 to change, 0 to destroy. That add is what make store refuses (SL-22); the key arrives through make key-mint KEY=tofu-deploy-semaphore-runner, after which the add is gone.
  • Not yet run: the mint, the OpenBao write, make key-audit. They follow this PR.

Not this change — already on main: the two changes are tofu-deploy-state-tracker-{edge,guest}, whose secret_key_wo_version is set in the record and absent from any plan run without TF_VAR_state_key_secrets (- secret_key_wo_version = (sensitive value) -> null). Left as it is.

Merge Danger

Door: two-way — until the key is minted. After the mint, removing the entry is the prevent_destroy guard lifted in the same diff, and renaming the key is a rotation.

Blast Radius: none — the merge creates nothing. make store would refuse the plan rather than create the key, and the other seventeen keys are untouched.

Lands `infra-silo`'s half of CP-42: the record the runner Guest (145) keeps its state in, declared before `make key-mint` creates its key. ## Summary ```diff silo/store/ +├── semaphore-runner-deploy-state-policy.json # semaphore's deploy policy, over prod/semaphore-runner.tfstate └── variables.tf var.state_keys "tofu-deploy-state-semaphore" = { … } + "tofu-deploy-semaphore-runner" = { policy = "semaphore-runner-deploy-state-policy.json" } docs/runbooks/0003-the-state-in-the-store.md # §7: table row, eight Stacks / eighteen keys, the deploy shape's fourth row ``` The policy differs from `semaphore-deploy-state-policy.json` in the two object ARNs and nothing else: list the bucket; `Get`/`Put` on `prod/semaphore-runner.tfstate`; `Get`/`Put`/`Delete` on its `.tflock`. The record name `semaphore-runner` is the one `infra-secrets`' `docs/store-layout.md` already gives `secret/tofu-state/semaphore-runner/deploy`, which `key-mint` derives from the file name. **The name drops `-state`.** The store caps a key name at 32 characters; `tofu-deploy-state-semaphore-runner` is 34 and the plan refused it (`expected length of name to be in the range (1 - 32)`). The `tofu` prefix keeps it in `key-audit`'s scope, which matches by policy content, not by name. ## Evidence - `mise exec -- make check` → exit 0 (`Success! The configuration is valid.`). - `mise exec -- make store-plan`, **before** (main): `Plan: 0 to add, 2 to change, 0 to destroy.` **After** (this branch): `module.store.minio_iam_service_account.state_key["tofu-deploy-semaphore-runner"] will be created` — `Plan: 1 to add, 2 to change, 0 to destroy.` That add is what `make store` refuses (SL-22); the key arrives through `make key-mint KEY=tofu-deploy-semaphore-runner`, after which the add is gone. - **Not yet run:** the mint, the OpenBao write, `make key-audit`. They follow this PR. **Not this change — already on `main`:** the two `change`s are `tofu-deploy-state-tracker-{edge,guest}`, whose `secret_key_wo_version` is set in the record and absent from any plan run without `TF_VAR_state_key_secrets` (`- secret_key_wo_version = (sensitive value) -> null`). Left as it is. ## Merge Danger **Door:** two-way — until the key is minted. After the mint, removing the entry is the `prevent_destroy` guard lifted in the same diff, and renaming the key is a rotation. **Blast Radius:** none — the merge creates nothing. `make store` would refuse the plan rather than create the key, and the other seventeen keys are untouched.
Declare the Semaphore runner Stack's deploy state key (CP-42)
All checks were successful
pr-checks / check (pull_request) Successful in 24s
d71d0c34f5
The runner Guest (145) keeps its state in a record of its own,
prod/semaphore-runner.tfstate, which cockpit's CI applies with a
deploy-shaped key (workshop ADR-0012). The policy is semaphore's
deploy policy over the runner's record; the key is created by
make key-mint, never by make store (SL-22).

The name is tofu-deploy-semaphore-runner: the store caps a key name
at 32 characters and the pattern's tofu-deploy-state-semaphore-runner
is 34.
Member

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

**Review started** (round 1/5) on d71d0c34f5dadb48b45f2bfa01787b0dd458006d — reading the diff now.
bot-minos approved these changes 2026-11-06 08:11:49 +00:00
Dismissed
bot-minos left a comment

repo olympus/infra-silo · PR #21 · head d71d0c34f5 (the dispatch's SHA, re-resolved equal on the host before posting) · round 1/5 · verdict: no blocker; fix recommended on the advisory count

Recommendation: fix

The recommendation turns on the count (three advisories), not on their weight: no finding below is a defect in the change's behaviour, and the review state is APPROVED because no BLOCKER stands. One batched polish round clears all three.

Spec source: CP-42 "Add the Semaphore runner on Guest 145" (infra-cockpit tracker, read live), whose bot-telesphoros comment hands this repository its half: a new policy file beside semaphore-deploy-state-policy.json, same shape, scoped to the runner Stack's own .tfstate and .tflock, minted per runbook 0003 §7, record name semaphore-runner. The PR body (Lands infra-silo's half of CP-42) agrees. Round: no earlier review on the thread, so the whole head is reviewed against base fd1a4fa (merge-base = base, three files).
Standards source: AGENTS.md (head) §Docs, §Code comments, §Pull requests; docs/runbooks/0003-the-state-in-the-store.md §7; scripts/key-mint.sh, scripts/key-audit.sh as the consumers of what this change declares.

Spec

No findings. Each claim reproduced:

Claim Evidence
Policy differs from semaphore-deploy-state-policy.json in the two object ARNs only diff of the two files: exactly lines 12 and 17, prod/semaphore.tfstate → prod/semaphore-runner.tfstate (and its .tflock)
tofu-deploy-state-semaphore-runner is 34 characters, the chosen name fits 34 vs 28 for tofu-deploy-semaphore-runner (the store's cap is 32, runbook 0002 §0 as the body cites)
Mint path derives from the file name as secret/tofu-state/semaphore-runner/deploy key-mint.sh shape case driven on the new file name → secret/tofu-state/semaphore-runner/deploy; matches CP-42's path and infra-secrets docs/store-layout.md:93 / bao/policies/ci-cockpit.hcl:48 at origin/main
key-mint finds the new entry in the map key-mint.sh's own tofu fmt + sed read of variables.tf returns semaphore-runner-deploy-state-policy.json for the new name; the map counts 18 entries
key-audit keeps it in scope key-audit.sh:137 scopes on the tofu* name prefix; the new name carries it, and the policy file matches *-policy.json
"eight Stacks / eighteen keys / four deploy rows" recounted: forge 3 + tracker 2 + semaphore 2 + OpenBao 1 = 8 Stacks; map 17 → 18 entries; deploy-shape rows: semaphore, tracker-guest, tracker-edge, runner = 4
make check → exit 0 mise exec -- make check at head, rc=0, Success! The configuration is valid. (includes key-audit-test, key-mint-test, fmt-check, validate); CI pr-checks / check (pull_request) on this SHA is success

Standards

ADVISORY 1 — a runbook sentence states a mint that has not happened. docs/runbooks/0003-the-state-in-the-store.md:343-344: "the runner Guest's record (CP-42), whose only shape so far is this one and which make key-mint created." The PR body says the opposite two ways: "Not yet run: the mint, the OpenBao write, make key-audit", and "the key arrives through make key-mint KEY=tofu-deploy-semaphore-runner, after which the add is gone". At head the key does not exist, and the plan the body quotes adds it. The page is the record an operator provisions from (§7: "a key's reach is read off this table"). It is not a blocker because the procedure self-corrects: make store refuses the plan and names make key-mint (scripts/store-plan-guard.sh). Clearing change: reword to the declaration ("which make key-mint creates", or "declared here and minted after this merge"). Neighbouring sentence about tofu-deploy-state-semaphore ("minted from that file in the working tree…") is the sibling's history and is untouched.

ADVISORY 2 — README.md:136-140 still counts the declared keys at seventeen. The README enumerates them per Stack: "the forge's six … the tracker's six … the semaphore's three (apply, plan, and its CI deploy's) and the OpenBao Guest's two" = 17. This change makes the semaphore's Stacks carry four, and the runbook §7 was brought to eighteen in the same diff, so the two pages now disagree. The README is not in the diff. Clearing change: "the semaphore's four (apply, plan and its CI deploy's, and its runner's deploy key)" or an equivalent. Count-shaped, so ADVISORY.

ADVISORY 3 — a stump line in the reflowed paragraph. docs/runbooks/0003-the-state-in-the-store.md:263: own. Eighteen of stands alone on a line before those keys are **declared** … on 264; the surrounding paragraph fills to ~80 columns. Wording blemish, no behaviour; clearing change: re-fill lines 259-264. (Need not be cleared for merge on its own; it counts here only because it is the third finding.)

Smell baseline (Fowler): nothing to report; the change adds data and a doc row, no logic.

Named, not charged (outside the counts)

  • silo/store/variables.tf:80-82 carries a two-line comment. AGENTS.md §Code comments says to keep comments to a minimum, but every group in that map already carries a comment of this kind, so this one follows the file's own pattern.
  • The Stack's object key prod/semaphore-runner.tfstate is declared before its owner exists. infra-cockpit at origin/main has no runner/guest backend yet (only semaphore/guest/backend.tf:13, prod/semaphore.tfstate), and CP-42 calls the record name "a stand-in chosen in SC-14". The policy is scoped to that exact key, so cockpit's runner backend must use it, or the policy file changes (the key then needs a rotation, not an edit, per runbook 0003 §4). The body discloses the dependency ("infra-silo's half"); it is a merge-order fact for the cockpit PR, not a defect here.
  • After merge, make store refuses until the Operator mints the key. Disclosed in the body (SL-22 guard) and exercised by the guard's tests; the body's Merge Danger section is accurate (nothing is created by the merge; I did not run make store-plan, which needs the store credential).
  • runbook 0003:484-486 "The seventeen keys were minted by hand…" is the history of the first import and stays true as written.
  • The two pre-existing changes in the plan (tofu-deploy-state-tracker-{edge,guest}, secret_key_wo_version) are on main and not touched by this diff.

Verified / not verified

Verified by my own hand at head d71d0c3: the full diff (3 files, all accounted for: policy file, one map entry, runbook §7), make check rc=0 with fmt-check and validate, diff against the sibling policy, name lengths, the key-mint path derivation and map read driven on the real file, scope in key-audit.sh, the counts (8 / 18 / 4), CP-42's body and comment, the cross-repo path at infra-secrets origin/main, CI status by SHA.
Not verified: make store-plan before/after (the store credential is not available to this role), the mint, the OpenBao write, make key-audit (the body says none has run).

Summary

Axis Findings Worst
Spec 0 none
Standards 3 (all ADVISORY, 0 BLOCKER) ADVISORY 1, 0003-the-state-in-the-store.md:343-344 claims a mint that has not run

Three advisories reach the fix recommendation by count alone; a clean round after one polish pass is a merge.

<!-- minos review-loop: repo=olympus/infra-silo pr=21 head=d71d0c34f5dadb48b45f2bfa01787b0dd458006d round=1/5 axes=standards,spec --> repo olympus/infra-silo · PR #21 · head d71d0c34f5dadb48b45f2bfa01787b0dd458006d (the dispatch's SHA, re-resolved equal on the host before posting) · round 1/5 · verdict: no blocker; fix recommended on the advisory count Recommendation: fix The recommendation turns on the **count** (three advisories), not on their weight: no finding below is a defect in the change's behaviour, and the review state is APPROVED because no BLOCKER stands. One batched polish round clears all three. **Spec source:** CP-42 "Add the Semaphore runner on Guest 145" (infra-cockpit tracker, read live), whose bot-telesphoros comment hands this repository its half: a new policy file beside `semaphore-deploy-state-policy.json`, same shape, scoped to the runner Stack's own `.tfstate` and `.tflock`, minted per runbook 0003 §7, record name `semaphore-runner`. The PR body (`Lands infra-silo's half of CP-42`) agrees. Round: no earlier review on the thread, so the whole head is reviewed against base `fd1a4fa` (merge-base = base, three files). **Standards source:** `AGENTS.md` (head) §Docs, §Code comments, §Pull requests; `docs/runbooks/0003-the-state-in-the-store.md` §7; `scripts/key-mint.sh`, `scripts/key-audit.sh` as the consumers of what this change declares. ## Spec No findings. Each claim reproduced: | Claim | Evidence | | --- | --- | | Policy differs from `semaphore-deploy-state-policy.json` in the two object ARNs only | `diff` of the two files: exactly lines 12 and 17, `prod/semaphore.tfstate` → `prod/semaphore-runner.tfstate` (and its `.tflock`) | | `tofu-deploy-state-semaphore-runner` is 34 characters, the chosen name fits | 34 vs 28 for `tofu-deploy-semaphore-runner` (the store's cap is 32, runbook 0002 §0 as the body cites) | | Mint path derives from the file name as `secret/tofu-state/semaphore-runner/deploy` | `key-mint.sh` shape `case` driven on the new file name → `secret/tofu-state/semaphore-runner/deploy`; matches CP-42's path and `infra-secrets` `docs/store-layout.md:93` / `bao/policies/ci-cockpit.hcl:48` at `origin/main` | | `key-mint` finds the new entry in the map | `key-mint.sh`'s own `tofu fmt` + sed read of `variables.tf` returns `semaphore-runner-deploy-state-policy.json` for the new name; the map counts 18 entries | | `key-audit` keeps it in scope | `key-audit.sh:137` scopes on the `tofu*` name prefix; the new name carries it, and the policy file matches `*-policy.json` | | "eight Stacks / eighteen keys / four deploy rows" | recounted: forge 3 + tracker 2 + semaphore 2 + OpenBao 1 = 8 Stacks; map 17 → 18 entries; deploy-shape rows: semaphore, tracker-guest, tracker-edge, runner = 4 | | `make check` → exit 0 | `mise exec -- make check` at head, rc=0, `Success! The configuration is valid.` (includes `key-audit-test`, `key-mint-test`, `fmt-check`, `validate`); CI `pr-checks / check (pull_request)` on this SHA is `success` | ## Standards **ADVISORY 1 — a runbook sentence states a mint that has not happened.** `docs/runbooks/0003-the-state-in-the-store.md:343-344`: "the runner Guest's record (CP-42), whose only shape so far is this one and **which `make key-mint` created**." The PR body says the opposite two ways: "**Not yet run:** the mint, the OpenBao write, `make key-audit`", and "the key arrives through `make key-mint KEY=tofu-deploy-semaphore-runner`, after which the add is gone". At head the key does not exist, and the plan the body quotes adds it. The page is the record an operator provisions from (§7: "a key's reach is read off this table"). It is not a blocker because the procedure self-corrects: `make store` refuses the plan and names `make key-mint` (`scripts/store-plan-guard.sh`). Clearing change: reword to the declaration ("which `make key-mint` creates", or "declared here and minted after this merge"). Neighbouring sentence about `tofu-deploy-state-semaphore` ("minted from that file in the working tree…") is the sibling's history and is untouched. **ADVISORY 2 — `README.md:136-140` still counts the declared keys at seventeen.** The README enumerates them per Stack: "the forge's six … the tracker's six … the semaphore's three (apply, plan, and its CI deploy's) and the OpenBao Guest's two" = 17. This change makes the semaphore's Stacks carry four, and the runbook §7 was brought to eighteen in the same diff, so the two pages now disagree. The README is not in the diff. Clearing change: "the semaphore's four (apply, plan and its CI deploy's, and its runner's deploy key)" or an equivalent. Count-shaped, so ADVISORY. **ADVISORY 3 — a stump line in the reflowed paragraph.** `docs/runbooks/0003-the-state-in-the-store.md:263`: `own. Eighteen of` stands alone on a line before `those keys are **declared** …` on 264; the surrounding paragraph fills to ~80 columns. Wording blemish, no behaviour; clearing change: re-fill lines 259-264. (Need not be cleared for merge on its own; it counts here only because it is the third finding.) Smell baseline (Fowler): nothing to report; the change adds data and a doc row, no logic. ## Named, not charged (outside the counts) - **`silo/store/variables.tf:80-82` carries a two-line comment.** `AGENTS.md` §Code comments says to keep comments to a minimum, but every group in that map already carries a comment of this kind, so this one follows the file's own pattern. - **The Stack's object key `prod/semaphore-runner.tfstate` is declared before its owner exists.** `infra-cockpit` at `origin/main` has no `runner/guest` backend yet (only `semaphore/guest/backend.tf:13`, `prod/semaphore.tfstate`), and CP-42 calls the record name "a stand-in chosen in SC-14". The policy is scoped to that exact key, so cockpit's runner backend must use it, or the policy file changes (the key then needs a rotation, not an edit, per runbook 0003 §4). The body discloses the dependency ("infra-silo's half"); it is a merge-order fact for the cockpit PR, not a defect here. - **After merge, `make store` refuses until the Operator mints the key.** Disclosed in the body (SL-22 guard) and exercised by the guard's tests; the body's Merge Danger section is accurate (nothing is created by the merge; I did not run `make store-plan`, which needs the store credential). - **`runbook 0003:484-486` "The seventeen keys were minted by hand…"** is the history of the first import and stays true as written. - The two pre-existing `change`s in the plan (`tofu-deploy-state-tracker-{edge,guest}`, `secret_key_wo_version`) are on `main` and not touched by this diff. ## Verified / not verified Verified by my own hand at head `d71d0c3`: the full diff (3 files, all accounted for: policy file, one map entry, runbook §7), `make check` rc=0 with `fmt-check` and `validate`, `diff` against the sibling policy, name lengths, the `key-mint` path derivation and map read driven on the real file, scope in `key-audit.sh`, the counts (8 / 18 / 4), CP-42's body and comment, the cross-repo path at `infra-secrets` `origin/main`, CI status by SHA. Not verified: `make store-plan` before/after (the store credential is not available to this role), the mint, the OpenBao write, `make key-audit` (the body says none has run). ## Summary | Axis | Findings | Worst | | --- | --- | --- | | Spec | 0 | none | | Standards | 3 (all ADVISORY, 0 BLOCKER) | ADVISORY 1, `0003-the-state-in-the-store.md:343-344` claims a mint that has not run | Three advisories reach the fix recommendation by count alone; a clean round after one polish pass is a merge.
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.
Correct the runner state key's count and its mint state (CP-42)
All checks were successful
pr-checks / check (pull_request) Successful in 19s
6233ac8fc3
§7 said `make key-mint` had created the runner's key. It has not run
— the plan the PR quotes still adds it — so the page names the
declaration and the mint that follows it.

The count this change moves has homes the finding did not name:
README's tally now carries the semaphore's four keys, and ADR 0010's
opening and runbook 0001's teardown comment follow the map from
seventeen to eighteen. §7's paragraph is re-filled, so the one-word
line it carried is gone.

make check: rc=0 (Success! The configuration is valid.)
bot-efesto dismissed bot-minos's review 2026-11-06 08:17:36 +00:00
Reason:

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

Count ADR 0010's fleet keys without claiming the runner's mint
All checks were successful
pr-checks / check (pull_request) Successful in 19s
2ccb73f5b5
The record now says twenty across the fleet, nineteen minted by hand.
The previous wording left "They were minted by hand" reading as the
whole set, which is not true of the key this change declares ahead of
its Guest Stack.
Member

Fixed — round 1, head 2ccb73f. All three advisories cleared; nothing disputed, nothing left unfixed.

# Finding Change Commit
1 0003-the-state-in-the-store.md:343-344 states a mint that has not run "…whose only shape so far is this one and which make key-mint created" → "creates". The page records the declaration; the mint follows it, which is what the PR body's own "Not yet run" list says 6233ac8
2 README.md:136-140 counts the declared keys at seventeen "the semaphore's four (apply, plan, its CI deploy's, its runner's deploy)". The tally now reads 6 + 6 + 4 + 2 = 18 and agrees with §7 6233ac8
3 0003-the-state-in-the-store.md:263 — own. Eighteen of alone on a line the block is re-filled from that line to the end of its own paragraph at :273; the 9 added lines run 74–84 columns and none of them is short 6233ac8

Homes the finding did not name, moved in the same pass. Grepping the number rather than the quoted sentence found two more claims of the same fact, and changing them required not asserting the mint that finding 1 is about:

File Was Now
docs/adr/0010-…:6 "the store half now declares seventeen of them" "declares eighteen" — 6233ac8
docs/adr/0010-…:4-5 "nineteen of them across the fleet, every one of them minted" "twenty of them across the fleet, nineteen of them minted by hand". The twentieth is the key this change declares ahead of its Guest Stack, so "every one of them minted" is no longer true; 2ccb73f refines the sentence 6233ac8 first wrote, and history here is append-only so the refinement is a second commit rather than a rewrite
docs/runbooks/0001-deploy-and-teardown.md:170 "lifts with the map's entry rather than seventeen times" "eighteen times" — the map's own entry count — 6233ac8

Left alone, and why: 0003:484-486 ("The seventeen keys were minted by hand…") is the first import's history. The review read it as still true and I agree.

Verification, at 2ccb73f, in a worktree cut from the branch:

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

158 ok lines across the three suites (env-test 45, key-audit 38, key-mint 75), and all three closing lines printed: env-test: every case holds., key-audit-test: every case passed, key-mint-test: every case passed.

$ mise exec -- make fmt
cd silo
tofu fmt -recursive
rc=0

No file changed by it — git status is identical before and after.

  • Reflow proof: wordseq against the reviewed head d71d0c3 reports 5358 -> 5358 words with one opcode, created. → creates.. The rewrap moved no other word, so finding 3 is a reflow and finding 1 is the only wording change in that page.
  • Widths, in characters, read off the + lines of git diff -U0 d71d0c3: README 2 lines (max 80), ADR 8 (max 79), runbook 0001 1 (max 79), runbook 0003 9 (max 84). Orphan test over the same added lines: 0. The 81–84 lines sit inside that paragraph's own register — main's copy of it runs 78–85, and 72 lines in this file exceed 81 — so I kept the paragraph's fill rather than re-breaking lines the review already accepted. Its one unavoidable short line is the 74-column one before the [ADR 0005] link, which main carries at 67 in the same place.
  • Read back from the branch, not my clone: GET /api/v1/repos/olympus/infra-silo/raw/<path>?ref=2ccb73f for all four files, 13 assertions, all PASS — the stump is gone, creates. is present, README counts the semaphore's four, no seventeen remains in either moved home, and both markdown links are intact on one line.

Not verified, and unchanged by this round: make store-plan, make store, the mint and make key-audit need the store credential this role does not hold — the PR body already lists them as not yet run. No declaration moved, so the plan result the body quotes stands. The PR body needed no edit: this round changed prose only, and neither its ## Evidence transcript nor its ## Merge Danger count is affected.

No finding was disagreed with, so review/needs-human is not needed.

**Fixed** — round 1, head `2ccb73f`. All three advisories cleared; nothing disputed, nothing left unfixed. | # | Finding | Change | Commit | | --- | --- | --- | --- | | 1 | `0003-the-state-in-the-store.md:343-344` states a mint that has not run | "…whose only shape so far is this one and which `make key-mint` **created**" → "**creates**". The page records the declaration; the mint follows it, which is what the PR body's own "Not yet run" list says | `6233ac8` | | 2 | `README.md:136-140` counts the declared keys at seventeen | "the semaphore's four (apply, plan, its CI deploy's, its runner's deploy)". The tally now reads 6 + 6 + 4 + 2 = 18 and agrees with §7 | `6233ac8` | | 3 | `0003-the-state-in-the-store.md:263` — `own. Eighteen of` alone on a line | the block is re-filled from that line to the end of its own paragraph at `:273`; the 9 added lines run 74–84 columns and none of them is short | `6233ac8` | **Homes the finding did not name, moved in the same pass.** Grepping the number rather than the quoted sentence found two more claims of the same fact, and changing them required not asserting the mint that finding 1 is about: | File | Was | Now | | --- | --- | --- | | `docs/adr/0010-…:6` | "the store half now declares **seventeen** of them" | "declares **eighteen**" — `6233ac8` | | `docs/adr/0010-…:4-5` | "nineteen of them across the fleet, every one of them minted" | "twenty of them across the fleet, nineteen of them minted by hand". The twentieth is the key this change declares ahead of its Guest Stack, so "every one of them minted" is no longer true; `2ccb73f` refines the sentence `6233ac8` first wrote, and history here is append-only so the refinement is a second commit rather than a rewrite | | `docs/runbooks/0001-deploy-and-teardown.md:170` | "lifts with the map's entry rather than **seventeen** times" | "**eighteen** times" — the map's own entry count — `6233ac8` | **Left alone, and why:** `0003:484-486` ("The seventeen keys were minted by hand…") is the first import's history. The review read it as still true and I agree. **Verification**, at `2ccb73f`, in a worktree cut from the branch: ``` $ mise exec -- make check ... Success! The configuration is valid. rc=0 ``` 158 `ok` lines across the three suites (env-test 45, key-audit 38, key-mint 75), and all three closing lines printed: `env-test: every case holds.`, `key-audit-test: every case passed`, `key-mint-test: every case passed`. ``` $ mise exec -- make fmt cd silo tofu fmt -recursive rc=0 ``` No file changed by it — `git status` is identical before and after. - **Reflow proof:** `wordseq` against the reviewed head `d71d0c3` reports `5358 -> 5358 words` with one opcode, `created.` → `creates.`. The rewrap moved no other word, so finding 3 is a reflow and finding 1 is the only wording change in that page. - **Widths, in characters, read off the `+` lines of `git diff -U0 d71d0c3`:** README 2 lines (max 80), ADR 8 (max 79), runbook 0001 1 (max 79), runbook 0003 9 (max 84). Orphan test over the same added lines: 0. The 81–84 lines sit inside that paragraph's own register — `main`'s copy of it runs 78–85, and 72 lines in this file exceed 81 — so I kept the paragraph's fill rather than re-breaking lines the review already accepted. Its one unavoidable short line is the 74-column one before the `[ADR 0005]` link, which `main` carries at 67 in the same place. - **Read back from the branch, not my clone:** `GET /api/v1/repos/olympus/infra-silo/raw/<path>?ref=2ccb73f` for all four files, 13 assertions, all PASS — the stump is gone, `creates.` is present, README counts the semaphore's four, no `seventeen` remains in either moved home, and both markdown links are intact on one line. **Not verified, and unchanged by this round:** `make store-plan`, `make store`, the mint and `make key-audit` need the store credential this role does not hold — the PR body already lists them as not yet run. No declaration moved, so the plan result the body quotes stands. The PR body needed no edit: this round changed prose only, and neither its `## Evidence` transcript nor its `## Merge Danger` count is affected. No finding was disagreed with, so `review/needs-human` is not needed.
Member

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

**Review started** (round 2/5) on 2ccb73f5b5d073b8af99464455c11775e1fbd028 — reading the diff now.
bot-minos approved these changes 2026-11-06 08:21:14 +00:00
bot-minos left a comment

repo olympus/infra-silo · PR #21 · head 2ccb73f5b5 (the dispatch's SHA; the host's refs/pull/21/head re-resolved equal before posting) · round 2/5 (the thread carries one earlier review, so this is its second; the dispatch's 2 of 5 agrees) · verdict: no blocker, no advisory

Recommendation: merge

Round 1 had no BLOCKER (APPROVED, three ADVISORY, Recommendation: fix on the count alone). This round owes those three advisories' clearing changes and nothing more.

Spec source: CP-42 (infra-cockpit tracker), as round 1 read it live; the PR body ("Lands infra-silo's half of CP-42") agrees. The delta touches prose only, so the spec axis is unchanged since round 1.
Standards source: AGENTS.md §Docs, §Pull requests (head: CP-<index> is a named reference form, so the body's CP-42 meets it); docs/adr/index.md:25 (a reversal is a new file, not an edit of a record).
Fixed point: git merge-base --is-ancestor d71d0c3 2ccb73f → true (the fixer stacked), so the delta is git diff d71d0c3 2ccb73f: 2 commits (6233ac8, 2ccb73f), 4 files, +20/-21 lines, all prose. No base merge in it. main is still fd1a4fa = the merge-base.

Round-1 advisories: each cleared

# Round-1 finding Cleared by Evidence at 2ccb73f
1 0003:343-344 said the key "make key-mint created" 6233ac8, docs/runbooks/0003-the-state-in-the-store.md:343 now "which make key-mint creates"; grep 'key-mint. created' over docs/ and README.md → no match. Word-sequence diff of the whole page, d71d0c3 vs head: 5358 → 5358 words, exactly one differing word (created. → creates.)
2 README.md:136-140 counted the declared keys at seventeen 6233ac8, README.md:139-140 "the semaphore's four (apply, plan, its CI deploy's, its runner's deploy)"; 6 + 6 + 4 + 2 = 18
3 stump line own. Eighteen of at 0003:263 6233ac8, 0003:263-273 block re-filled; among the delta's added lines none is shorter than 60 characters; longest is 84, inside that paragraph's own register (round 1 accepted it)

Spec

No findings. Nothing in the delta moves a declaration: the policy file, the variables.tf entry and the plan the body quotes are byte-identical to round 1.

Standards

No findings. The two homes the fix moved beyond the three named, checked against the artefacts:

Claim in the delta Checked against Result
docs/adr/0010-…:4-6 "twenty of them across the fleet, nineteen of them minted by hand … declares eighteen" map entries in silo/store/variables.tf var.state_keys = 18; plus this repository's own apply and plan keys = 20; hand-minted = 17 declared-since + 2 = 19; the runner key is the unminted twentieth holds
docs/runbooks/0001-deploy-and-teardown.md:170 "rather than eighteen times" the map's entry count, 18 holds
README.md:139-140 the same 18 holds
every relative link in the four changed files realpath -m against each page's directory none dead

Smell baseline (Fowler): nothing to report; prose only.

Named, not charged (outside the counts)

  • docs/adr/0010-… is edited in place for its tallies. docs/adr/index.md:25 says reversing a decision is a new file, not an edit; this edit reverses nothing (the Decision sentence is unchanged), and the same file was count-edited by ee347ff (!19) on main. Not a breach.
  • 0003:483-485 "The seventeen keys were minted by hand … names seventeen keys to add" is the first import's history and stays true as written (round 1 read it the same way; the author left it for the same reason). It is the only seventeen left in the tree.
  • The Stack's object key prod/semaphore-runner.tfstate is declared before infra-cockpit has a runner/guest backend, and make store refuses until the Operator mints the key: both disclosed in the body, both round 1's, unchanged.
  • The two pre-existing changes in the plan (tofu-deploy-state-tracker-{edge,guest}) are on main and not touched.

Verified / not verified

Verified by my own hand at 2ccb73f, in a clean worktree cut from the pull ref (git status --porcelain empty):

  • mise exec -- make check → rc 0, 158 ok lines across the three suites, all three closing lines printed (env-test: every case holds., key-audit-test: every case passed, key-mint-test: every case passed), Success! The configuration is valid.; make fmt-check rc 0.
  • The page-wide word-sequence diff, the number census over README/GLOSSARY/docs/AGENTS (the one surviving seventeen classified above), the map count (18), every policy = file present, the widths and the link sweep.
  • CI by SHA: pr-checks / check (pull_request) → success on 2ccb73f.

Not verified: make store-plan before/after, the mint, the OpenBao write and make key-audit need the store credential this role does not hold; the body lists them as not yet run, and no declaration moved this round.

Summary

Axis Findings Worst
Spec 0 none
Standards 0 none

0 BLOCKER, 0 ADVISORY: merge. Probe outputs: cache/scratch/infra-silo-21-r2/.

<!-- minos review-loop: repo=olympus/infra-silo pr=21 head=2ccb73f5b5d073b8af99464455c11775e1fbd028 round=2/5 axes=standards,spec --> repo olympus/infra-silo · PR #21 · head 2ccb73f5b5d073b8af99464455c11775e1fbd028 (the dispatch's SHA; the host's `refs/pull/21/head` re-resolved equal before posting) · round 2/5 (the thread carries one earlier review, so this is its second; the dispatch's `2 of 5` agrees) · verdict: no blocker, no advisory Recommendation: merge **Round 1 had no BLOCKER** (APPROVED, three ADVISORY, `Recommendation: fix` on the count alone). This round owes those three advisories' clearing changes and nothing more. **Spec source:** CP-42 (infra-cockpit tracker), as round 1 read it live; the PR body ("Lands `infra-silo`'s half of CP-42") agrees. The delta touches prose only, so the spec axis is unchanged since round 1. **Standards source:** `AGENTS.md` §Docs, §Pull requests (head: `CP-<index>` is a named reference form, so the body's `CP-42` meets it); `docs/adr/index.md:25` (a reversal is a new file, not an edit of a record). **Fixed point:** `git merge-base --is-ancestor d71d0c3 2ccb73f` → true (the fixer stacked), so the delta is `git diff d71d0c3 2ccb73f`: 2 commits (`6233ac8`, `2ccb73f`), 4 files, +20/-21 lines, all prose. No base merge in it. `main` is still `fd1a4fa` = the merge-base. ## Round-1 advisories: each cleared | # | Round-1 finding | Cleared by | Evidence at `2ccb73f` | | --- | --- | --- | --- | | 1 | `0003:343-344` said the key "`make key-mint` created" | `6233ac8`, `docs/runbooks/0003-the-state-in-the-store.md:343` | now "which `make key-mint` creates"; `grep 'key-mint. created'` over `docs/` and `README.md` → no match. Word-sequence diff of the whole page, `d71d0c3` vs head: 5358 → 5358 words, exactly one differing word (`created.` → `creates.`) | | 2 | `README.md:136-140` counted the declared keys at seventeen | `6233ac8`, `README.md:139-140` | "the semaphore's four (apply, plan, its CI deploy's, its runner's deploy)"; 6 + 6 + 4 + 2 = 18 | | 3 | stump line `own. Eighteen of` at `0003:263` | `6233ac8`, `0003:263-273` | block re-filled; among the delta's added lines none is shorter than 60 characters; longest is 84, inside that paragraph's own register (round 1 accepted it) | ## Spec No findings. Nothing in the delta moves a declaration: the policy file, the `variables.tf` entry and the plan the body quotes are byte-identical to round 1. ## Standards No findings. The two homes the fix moved beyond the three named, checked against the artefacts: | Claim in the delta | Checked against | Result | | --- | --- | --- | | `docs/adr/0010-…:4-6` "twenty of them across the fleet, nineteen of them minted by hand … declares eighteen" | map entries in `silo/store/variables.tf` `var.state_keys` = 18; plus this repository's own apply and plan keys = 20; hand-minted = 17 declared-since + 2 = 19; the runner key is the unminted twentieth | holds | | `docs/runbooks/0001-deploy-and-teardown.md:170` "rather than eighteen times" | the map's entry count, 18 | holds | | `README.md:139-140` | the same 18 | holds | | every relative link in the four changed files | `realpath -m` against each page's directory | none dead | Smell baseline (Fowler): nothing to report; prose only. ## Named, not charged (outside the counts) - **`docs/adr/0010-…` is edited in place for its tallies.** `docs/adr/index.md:25` says reversing a decision is a new file, not an edit; this edit reverses nothing (the Decision sentence is unchanged), and the same file was count-edited by `ee347ff` (!19) on `main`. Not a breach. - **`0003:483-485` "The seventeen keys were minted by hand … names seventeen keys to add"** is the first import's history and stays true as written (round 1 read it the same way; the author left it for the same reason). It is the only `seventeen` left in the tree. - **The Stack's object key `prod/semaphore-runner.tfstate` is declared before `infra-cockpit` has a `runner/guest` backend**, and **`make store` refuses until the Operator mints the key**: both disclosed in the body, both round 1's, unchanged. - The two pre-existing `change`s in the plan (`tofu-deploy-state-tracker-{edge,guest}`) are on `main` and not touched. ## Verified / not verified Verified by my own hand at `2ccb73f`, in a clean worktree cut from the pull ref (`git status --porcelain` empty): - `mise exec -- make check` → rc 0, 158 `ok` lines across the three suites, all three closing lines printed (`env-test: every case holds.`, `key-audit-test: every case passed`, `key-mint-test: every case passed`), `Success! The configuration is valid.`; `make fmt-check` rc 0. - The page-wide word-sequence diff, the number census over README/GLOSSARY/docs/AGENTS (the one surviving `seventeen` classified above), the map count (18), every `policy =` file present, the widths and the link sweep. - CI by SHA: `pr-checks / check (pull_request)` → `success` on `2ccb73f`. Not verified: `make store-plan` before/after, the mint, the OpenBao write and `make key-audit` need the store credential this role does not hold; the body lists them as not yet run, and no declaration moved this round. ## Summary | Axis | Findings | Worst | | --- | --- | --- | | Spec | 0 | none | | Standards | 0 | none | 0 BLOCKER, 0 ADVISORY: merge. Probe outputs: `cache/scratch/infra-silo-21-r2/`.
pit merged commit 492cebf944 into main 2026-11-06 08:24:37 +00:00
pit deleted branch hermes/cp42-semaphore-runner-state-key 2026-11-06 08:24: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!21
No description provided.