Declare the Semaphore runner Stack's plan state key (CP-42) #22

Merged
pit merged 2 commits from hermes/cp42-semaphore-runner-plan-key into main 2026-11-06 09:02:31 +00:00
Owner

The second key on the runner Guest's (145) record: the plan shape infra-cockpit's pull-request plan check will read it with. Same path as !21: declare it here, then make key-mint.

CP-42 — Add the Semaphore runner on Guest 145 · this PR is the declaration half of its plan key.

Summary

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

The policy differs from semaphore-plan-state-policy.json only in its two object ARNs. It holds the five actions ADR 0009 allows a plan key: ListBucket and GetBucketLocation on the bucket, GetObject on prod/semaphore-runner.tfstate, and Get/Put/Delete on its .tflock. It has no write on the record. key-mint derives secret/tofu-state/semaphore-runner/plan from the file name.

The name is exactly 32 characters, which is the store's limit, so it keeps the tofu-plan-state-<record> pattern. The deploy key in !21 is 34 characters with that pattern, so it couldn't.

Evidence

  • mise exec -- make check → exit 0 (Success! The configuration is valid.); make fmt-check → exit 0.
  • 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-plan-state-semaphore-runner"] will be created, then Plan: 1 to add, 2 to change, 0 to destroy.
    • make store refuses that add (SL-22). The key arrives through make key-mint KEY=tofu-plan-state-semaphore-runner after the merge, and the add disappears from the plan.
  • Not yet run: the mint, the OpenBao write and make key-audit. They follow this PR.

Already on main, not part of this change: the two changes are the tracker deploy keys' secret_key_wo_version going to null, as in !21.

Merge Danger

Door: two-way until the key is minted. After that, removing the entry means lifting the prevent_destroy guard in the same diff.

Blast Radius: none. The merge creates nothing, and the other eighteen declared keys are untouched.

The second key on the runner Guest's (145) record: the plan shape `infra-cockpit`'s pull-request plan check will read it with. Same path as !21: declare it here, then `make key-mint`. [CP-42 — Add the Semaphore runner on Guest 145](https://vikunja.thepit.space/tasks/270) · this PR is the declaration half of its plan key. ## Summary ```diff silo/store/ +├── semaphore-runner-plan-state-policy.json # semaphore's plan policy, over prod/semaphore-runner.tfstate └── variables.tf var.state_keys "tofu-deploy-semaphore-runner" = { … } + "tofu-plan-state-semaphore-runner" = { policy = "semaphore-runner-plan-state-policy.json" } docs/runbooks/0003-the-state-in-the-store.md # §7: table row, nineteen keys, the runner record's two shapes ``` The policy differs from `semaphore-plan-state-policy.json` only in its two object ARNs. It holds the five actions ADR 0009 allows a plan key: `ListBucket` and `GetBucketLocation` on the bucket, `GetObject` on `prod/semaphore-runner.tfstate`, and `Get`/`Put`/`Delete` on its `.tflock`. It has no write on the record. `key-mint` derives `secret/tofu-state/semaphore-runner/plan` from the file name. The name is exactly 32 characters, which is the store's limit, so it keeps the `tofu-plan-state-<record>` pattern. The deploy key in !21 is 34 characters with that pattern, so it couldn't. ## Evidence - `mise exec -- make check` → exit 0 (`Success! The configuration is valid.`); `make fmt-check` → exit 0. - `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-plan-state-semaphore-runner"] will be created`, then `Plan: 1 to add, 2 to change, 0 to destroy.` - `make store` refuses that add (SL-22). The key arrives through `make key-mint KEY=tofu-plan-state-semaphore-runner` after the merge, and the add disappears from the plan. - **Not yet run:** the mint, the OpenBao write and `make key-audit`. They follow this PR. **Already on `main`, not part of this change:** the two `change`s are the tracker deploy keys' `secret_key_wo_version` going to `null`, as in !21. ## Merge Danger **Door:** two-way until the key is minted. After that, removing the entry means lifting the `prevent_destroy` guard in the same diff. **Blast Radius:** none. The merge creates nothing, and the other eighteen declared keys are untouched.
Declare the Semaphore runner Stack's plan state key (CP-42)
All checks were successful
pr-checks / check (pull_request) Successful in 21s
8b17f7fb1e
The runner Guest's record (prod/semaphore-runner.tfstate) gets the
plan shape beside its deploy key: GetObject on the record, the lock
beside it, and ListBucket (ADR 0009), for the pull request's plan
check in infra-cockpit. The policy is semaphore's plan policy over the
runner's record; the key is created by make key-mint (SL-22).

tofu-plan-state-semaphore-runner is exactly 32 characters, the store's
limit, so it keeps the pattern the deploy key could not.
Member

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

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

repo olympus/infra-silo · PR #22 · reviewed head 8b17f7fb1e (matches the dispatch and refs/pull/22/head on the host) · round 1/5 (no earlier review on the thread) · verdict: no blocker, three advisories

Recommendation: fix

The recommendation turns on the count, not on the weight: there is no BLOCKER, the review state is APPROVED, and three counted advisories trip the volume rule ("the third advisory turns the verdict"). Every finding below is cheap — one batched round clears all three.

Spec source: CP-42 "Add the Semaphore runner on Guest 145" (Vikunja, infra-cockpit), read live, including its comments. The PR body cites it only in the title. The ticket's second comment lists "Plan key (tofu-plan-state-semaphore-runner, exactly 32 characters) … Not minted" as still open — this PR is the declaration half of that item. Standards source: AGENTS.md (head worktree) §Pull requests, §Code comments, §Docs; docs/runbooks/0003-the-state-in-the-store.md §7.

Standards

  1. ADVISORY — counts the change makes stale are brought current in one page and not in the others. The PR raises the declared-key total from 18 to 19 (silo/store/variables.tf map: 18 entries at origin/main, 19 at head, counted off the tofu fmt-read map) and updates docs/runbooks/0003-the-state-in-the-store.md:263 ("Nineteen"), but two untouched sentences still carry the old figures:
    • docs/runbooks/0001-deploy-and-teardown.md:170 — "rather than eighteen times" (the map now has nineteen entries).
    • README.md:139-140 — "the semaphore's four (apply, plan, its CI deploy's, its runner's deploy)"; the semaphore's keys are now five, the new plan key being the fifth.
      Precedent: the previous PR (!21, 492cebf) moved exactly these two sentences ("seventeen → eighteen" in 0001, "three → four" in the README) when it added the deploy key. One finding, two sites. Clearing change: "nineteen" at 0001:170, and "five (apply, plan, its CI deploy's, its runner's deploy and plan)" at README.md:139-140.
  2. ADVISORY — the PR body does not name the task by reference. AGENTS.md §Pull requests: "Name the task a PR addresses in its body by its own reference: SL-<index> … or SC-<index>/CP-<index> for one in infra-secrets/infra-cockpit, when the change lands this repository's half of it." CP-42 appears in the title and the commit subject only; the body has no CP-42 and no SL- reference (it points at !21, which is a pull request, not the task). The spec is recoverable from the title, so this is a metadata fix, not a code one. Clearing change: one CP-42 line in the body.

Spec

  1. ADVISORY — a number in the body is off by one. ## Merge Danger / Blast Radius: "the other nineteen keys are untouched". After the merge the map holds nineteen keys including the new one, so the others are eighteen (18 at origin/main, 19 at head — the count above). The body's own ## Summary and the runbook say nineteen in total. Body-only; clearing change is "eighteen".

Nothing else in the spec axis is missing or surplus: the diff is the plan-shape declaration CP-42's comment asks for (policy file + map entry + runbook row/counts) and nothing beyond it.

Verified (by my own hand, head 8b17f7f)

Claim Result
"Policy differs from semaphore-plan-state-policy.json only in its two object ARNs" diff -u shows exactly those two Resource lines, nothing else. Against the runner's deploy policy the only difference is s3:PutObject dropped on the record, so the plan key has no write on it.
"Holds the five actions ADR 0009 allows a plan key" ListBucket, GetBucketLocation (bucket); GetObject (record); GetObject, PutObject, DeleteObject (.tflock) — five, no write at the record. jq parses the file.
Name is exactly 32 characters; deploy shape with -state is 34 ${#name}: tofu-plan-state-semaphore-runner = 32, tofu-deploy-state-semaphore-runner = 34, tofu-deploy-semaphore-runner = 28.
"key-mint derives secret/tofu-state/semaphore-runner/plan from the file name" key-mint.sh's own case on semaphore-runner-plan-state-policy.json → secret/tofu-state/semaphore-runner/plan. Its map read (through tofu fmt) finds the entry and returns that policy file. Declared count 19.
make check → exit 0; make fmt-check → exit 0 Reproduced via mise exec -- make check: Success! The configuration is valid.; key-audit-test and key-mint-test: every case passed; fmt-check clean. Working tree clean afterwards.
Runbook §7 table row 20 table rows at head, 19 at base; the new row's record, policy path and key name match the map entry. Prose "(CP-42) … plan key beside it and no apply key … exactly 32" matches.
Door and blast radius Read, not driven: the diff adds one policy file, one map entry and doc lines; state-keys.tf keeps prevent_destroy = true on the resource, and creation is make key-mint's (the body's "two-way until minted" follows). Nothing in the diff touches the other 18 entries.

Not verified: make store-plan's Plan: 1 to add, 2 to change and the make store refusal (SL-22) — they need the store credential, which this profile does not hold; the add follows from the new map entry by construction. The mint, the OpenBao write and make key-audit are the body's own "not yet run" items and cannot exist before the merge.

Named, not charged

  • secret/tofu-state/semaphore-runner/plan is not yet in infra-secrets docs/store-layout.md (only /deploy, still "not minted") nor in bao/policies/ci-cockpit.hcl at origin/main. That is the other repository's half, listed as open on CP-42; this PR is the infra-silo half and discloses the mint as pending.
  • The two changes in the plan evidence (secret_key_wo_version → null) are on main already, as the body says.

Summary

Axis Findings Worst
Standards 2 (both ADVISORY) stale counts at docs/runbooks/0001-deploy-and-teardown.md:170 and README.md:139-140
Spec 1 (ADVISORY) body's "other nineteen keys" should be eighteen

0 BLOCKERs, 3 ADVISORYs. State follows blockers (none → APPROVED); the Recommendation: fix and the review/needs-fix label follow the advisory count.

<!-- minos review-loop: repo=olympus/infra-silo pr=22 head=8b17f7fb1ebd56a622c9c008eb3cb9cb248ed3ca round=1/5 axes=standards,spec --> repo olympus/infra-silo · PR #22 · reviewed head 8b17f7fb1ebd56a622c9c008eb3cb9cb248ed3ca (matches the dispatch and `refs/pull/22/head` on the host) · round 1/5 (no earlier review on the thread) · verdict: no blocker, three advisories Recommendation: fix The recommendation turns on the count, not on the weight: there is no BLOCKER, the review state is APPROVED, and three counted advisories trip the volume rule ("the third advisory turns the verdict"). Every finding below is cheap — one batched round clears all three. **Spec source:** CP-42 "Add the Semaphore runner on Guest 145" (Vikunja, infra-cockpit), read live, including its comments. The PR body cites it only in the title. The ticket's second comment lists "Plan key (`tofu-plan-state-semaphore-runner`, exactly 32 characters) … Not minted" as still open — this PR is the declaration half of that item. **Standards source:** `AGENTS.md` (head worktree) §Pull requests, §Code comments, §Docs; `docs/runbooks/0003-the-state-in-the-store.md` §7. ## Standards 1. **ADVISORY — counts the change makes stale are brought current in one page and not in the others.** The PR raises the declared-key total from 18 to 19 (`silo/store/variables.tf` map: 18 entries at `origin/main`, 19 at head, counted off the `tofu fmt`-read map) and updates `docs/runbooks/0003-the-state-in-the-store.md:263` ("Nineteen"), but two untouched sentences still carry the old figures: - `docs/runbooks/0001-deploy-and-teardown.md:170` — "rather than eighteen times" (the map now has nineteen entries). - `README.md:139-140` — "the semaphore's four (apply, plan, its CI deploy's, its runner's deploy)"; the semaphore's keys are now five, the new plan key being the fifth. Precedent: the previous PR (!21, `492cebf`) moved exactly these two sentences ("seventeen → eighteen" in 0001, "three → four" in the README) when it added the deploy key. One finding, two sites. Clearing change: "nineteen" at 0001:170, and "five (apply, plan, its CI deploy's, its runner's deploy and plan)" at README.md:139-140. 2. **ADVISORY — the PR body does not name the task by reference.** `AGENTS.md` §Pull requests: "Name the task a PR addresses in its body by its own reference: `SL-<index>` … or `SC-<index>`/`CP-<index>` for one in `infra-secrets`/`infra-cockpit`, when the change lands this repository's half of it." `CP-42` appears in the title and the commit subject only; the body has no `CP-42` and no `SL-` reference (it points at !21, which is a pull request, not the task). The spec is recoverable from the title, so this is a metadata fix, not a code one. Clearing change: one `CP-42` line in the body. ## Spec 3. **ADVISORY — a number in the body is off by one.** `## Merge Danger` / Blast Radius: "the other nineteen keys are untouched". After the merge the map holds nineteen keys *including* the new one, so the others are eighteen (18 at `origin/main`, 19 at head — the count above). The body's own `## Summary` and the runbook say nineteen in total. Body-only; clearing change is "eighteen". Nothing else in the spec axis is missing or surplus: the diff is the plan-shape declaration CP-42's comment asks for (policy file + map entry + runbook row/counts) and nothing beyond it. ## Verified (by my own hand, head `8b17f7f`) | Claim | Result | |---|---| | "Policy differs from `semaphore-plan-state-policy.json` only in its two object ARNs" | `diff -u` shows exactly those two `Resource` lines, nothing else. Against the runner's deploy policy the only difference is `s3:PutObject` dropped on the record, so the plan key has no write on it. | | "Holds the five actions ADR 0009 allows a plan key" | ListBucket, GetBucketLocation (bucket); GetObject (record); GetObject, PutObject, DeleteObject (`.tflock`) — five, no write at the record. `jq` parses the file. | | Name is exactly 32 characters; deploy shape with `-state` is 34 | `${#name}`: `tofu-plan-state-semaphore-runner` = 32, `tofu-deploy-state-semaphore-runner` = 34, `tofu-deploy-semaphore-runner` = 28. | | "`key-mint` derives `secret/tofu-state/semaphore-runner/plan` from the file name" | `key-mint.sh`'s own `case` on `semaphore-runner-plan-state-policy.json` → `secret/tofu-state/semaphore-runner/plan`. Its map read (through `tofu fmt`) finds the entry and returns that policy file. Declared count 19. | | `make check` → exit 0; `make fmt-check` → exit 0 | Reproduced via `mise exec -- make check`: `Success! The configuration is valid.`; `key-audit-test` and `key-mint-test: every case passed`; `fmt-check` clean. Working tree clean afterwards. | | Runbook §7 table row | 20 table rows at head, 19 at base; the new row's record, policy path and key name match the map entry. Prose "(CP-42) … plan key beside it and no apply key … exactly 32" matches. | | Door and blast radius | Read, not driven: the diff adds one policy file, one map entry and doc lines; `state-keys.tf` keeps `prevent_destroy = true` on the resource, and creation is `make key-mint`'s (the body's "two-way until minted" follows). Nothing in the diff touches the other 18 entries. | **Not verified:** `make store-plan`'s `Plan: 1 to add, 2 to change` and the `make store` refusal (SL-22) — they need the store credential, which this profile does not hold; the add follows from the new map entry by construction. The mint, the OpenBao write and `make key-audit` are the body's own "not yet run" items and cannot exist before the merge. ## Named, not charged - `secret/tofu-state/semaphore-runner/plan` is not yet in `infra-secrets` `docs/store-layout.md` (only `/deploy`, still "not minted") nor in `bao/policies/ci-cockpit.hcl` at `origin/main`. That is the other repository's half, listed as open on CP-42; this PR is the infra-silo half and discloses the mint as pending. - The two `change`s in the plan evidence (`secret_key_wo_version` → `null`) are on `main` already, as the body says. ## Summary | Axis | Findings | Worst | |---|---|---| | Standards | 2 (both ADVISORY) | stale counts at `docs/runbooks/0001-deploy-and-teardown.md:170` and `README.md:139-140` | | Spec | 1 (ADVISORY) | body's "other nineteen keys" should be eighteen | 0 BLOCKERs, 3 ADVISORYs. State follows blockers (none → APPROVED); the `Recommendation: fix` and the `review/needs-fix` label follow the advisory count.
Member

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

**Acknowledged** (round 1/5) — fixing now; what changed and how I verified it follows.
Bring the declared-key counts current for the plan key (CP-42)
All checks were successful
pr-checks / check (pull_request) Successful in 21s
ffff01c7e6
The map's nineteenth entry moves three counts: the fleet total (21), the keys
that exist (20) and the declared set (19). README's semaphore group gains the
plan shape, runbook 0001's teardown comment counts the map, and ADR 0010's
opening carries the arithmetic. The previous round moved the same sentences
for the deploy key; ADR 0010 and 0001 were the two it left behind.

Section 7's first-import paragraph stops naming a count altogether: "one key to
add for every entry the map declares" cannot go stale when the map grows, and
the seventeen it carried was already behind the map by one before this branch.

Verified: mise exec -- make check (rc=0, "Success! The configuration is valid."),
158 ok lines across the env, key-mint and key-audit suites, fmt-check clean.
bot-efesto dismissed bot-minos's review 2026-11-06 08:55:28 +00:00
Reason:

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

Member

Round 1 fix — ffff01c on hermes/cp42-semaphore-runner-plan-key. Three advisories, none disputed; all three cleared, and the count they charge was brought current in two further homes the review did not name.

Findings

# Finding Resolution
1 — stale counts docs/runbooks/0001-deploy-and-teardown.md:170 "rather than eighteen times"; README.md:139-140 "the semaphore's four" nineteen, and "the semaphore's five (apply, plan, its CI deploy's, its runner's deploy and plan)" — the review's own wording
2 — body names no task CP-42 appeared nowhere in the body [CP-42 — Add the Semaphore runner on Guest 145](https://vikunja.thepit.space/tasks/270) under the opening paragraph
3 — blast radius off by one "the other nineteen keys are untouched" nothing to change: the stored body read "the other eighteen declared keys are untouched" when I fetched it before writing anything, and deleting my one added line reproduces that body byte for byte

Two more homes for finding 1's count

Grepping the number word rather than the two quoted lines found two more, both moved in ffff01c:

  • docs/adr/0010-a-declared-state-key-keeps-the-owner-it-was-minted-with.md:3-6 — "twenty of them across the fleet, nineteen … declares eighteen". Now twenty-one / twenty / nineteen. The map holds 19 entries (18 at origin/main), this repository's own apply and plan keys are the other two, and the runner's deploy key was minted on 2026-11-06 (CP-42's mint comment, make key-audit: 22 key(s) under silo/, 21 audited … 0 failing), so twenty of the twenty-one exist and the plan key this PR declares is the one that does not. !21 moved this same sentence for the deploy key, though the finding's precedent lists only the other two sites.
  • docs/runbooks/0003-the-state-in-the-store.md:486-488 — "The seventeen keys … it names seventeen keys to add". That one was already behind the map by one at origin/main, so it is not this branch's defect, but it is the same count in the same section. It now carries no count at all — "it names one key to add for every entry the map declares" — which cannot fall behind the map again.

Verification

$ mise exec -- make check
env-check: the pin and the map agree.
env-test: every case holds.            (43 ok)
key-audit-test: every case passed      (38 ok)
key-mint-test: every case passed       (75 ok)
Success! The configuration is valid.
rc=0
  • tofu fmt -check -recursive clean and tofu validate green on the committed tree; git status clean afterwards.
  • Added lines measured against the reviewed head 8b17f7f, in characters (not awk length, which counts an em dash as three): README 6, ADR 0010 4, 0001 1, 0003 5 — widest 80, none over 80, no orphan wrap (no added line whose next line's first word would still have fitted).
  • wordseq 8b17f7f per file: only the intended words moved — four→five, deploy)→deploy and plan), twenty→twenty-one, nineteen→twenty, eighteen→nineteen — and README's five-line reflow is whitespace only, no clause lost or duplicated.
  • Counts read off the tree rather than transcribed: 19 keys from tofu fmt - < silo/store/variables.tf, README's groups 6 + 6 + 5 + 2 = 19.

Not run, and why: make store-plan and the mint need the store credential this profile does not hold; the mint is the Operator's after the merge, as the body says. Nothing in this round touches silo/, so the plan outcome is the one the body already records.

Nothing was disagreed with. Moving the state label to review/needs-review.

**Round 1 fix — `ffff01c` on `hermes/cp42-semaphore-runner-plan-key`.** Three advisories, none disputed; all three cleared, and the count they charge was brought current in two further homes the review did not name. ### Findings | # | Finding | Resolution | |---|---|---| | 1 — stale counts | `docs/runbooks/0001-deploy-and-teardown.md:170` "rather than eighteen times"; `README.md:139-140` "the semaphore's four" | `nineteen`, and "the semaphore's five (apply, plan, its CI deploy's, its runner's deploy and plan)" — the review's own wording | | 2 — body names no task | `CP-42` appeared nowhere in the body | `[CP-42 — Add the Semaphore runner on Guest 145](https://vikunja.thepit.space/tasks/270)` under the opening paragraph | | 3 — blast radius off by one | "the other nineteen keys are untouched" | nothing to change: the stored body read "the other eighteen declared keys are untouched" when I fetched it before writing anything, and deleting my one added line reproduces that body byte for byte | ### Two more homes for finding 1's count Grepping the number word rather than the two quoted lines found two more, both moved in `ffff01c`: - **`docs/adr/0010-a-declared-state-key-keeps-the-owner-it-was-minted-with.md:3-6`** — "twenty of them across the fleet, nineteen … declares eighteen". Now `twenty-one` / `twenty` / `nineteen`. The map holds 19 entries (18 at `origin/main`), this repository's own apply and plan keys are the other two, and the runner's deploy key was minted on 2026-11-06 (CP-42's mint comment, `make key-audit`: `22 key(s) under silo/, 21 audited … 0 failing`), so twenty of the twenty-one exist and the plan key this PR declares is the one that does not. !21 moved this same sentence for the deploy key, though the finding's precedent lists only the other two sites. - **`docs/runbooks/0003-the-state-in-the-store.md:486-488`** — "The seventeen keys … it names seventeen keys to add". That one was already behind the map by one at `origin/main`, so it is not this branch's defect, but it is the same count in the same section. It now carries no count at all — "it names one key to add for every entry the map declares" — which cannot fall behind the map again. ### Verification ``` $ mise exec -- make check env-check: the pin and the map agree. env-test: every case holds. (43 ok) key-audit-test: every case passed (38 ok) key-mint-test: every case passed (75 ok) Success! The configuration is valid. rc=0 ``` - `tofu fmt -check -recursive` clean and `tofu validate` green on the committed tree; `git status` clean afterwards. - Added lines measured against the reviewed head `8b17f7f`, in characters (not `awk length`, which counts an em dash as three): README 6, ADR 0010 4, 0001 1, 0003 5 — widest 80, none over 80, no orphan wrap (no added line whose next line's first word would still have fitted). - `wordseq 8b17f7f` per file: only the intended words moved — `four`→`five`, `deploy)`→`deploy and plan)`, `twenty`→`twenty-one`, `nineteen`→`twenty`, `eighteen`→`nineteen` — and README's five-line reflow is whitespace only, no clause lost or duplicated. - Counts read off the tree rather than transcribed: 19 keys from `tofu fmt - < silo/store/variables.tf`, README's groups 6 + 6 + 5 + 2 = 19. **Not run, and why:** `make store-plan` and the mint need the store credential this profile does not hold; the mint is the Operator's after the merge, as the body says. Nothing in this round touches `silo/`, so the plan outcome is the one the body already records. **Nothing was disagreed with.** Moving the state label to `review/needs-review`.
Member

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

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

repo olympus/infra-silo · PR #22 · reviewed head ffff01c7e6 (equals refs/pull/22/head on the host, read again before posting) · round 2/5 (the thread holds one earlier review, so this is its second; the dispatch's 2/5 agrees) · verdict: no blocker, one advisory

Recommendation: merge

Fixed point: the round-1 review's commit_id 8b17f7f. git merge-base --is-ancestor 8b17f7f ffff01c is true (the fixer stacked, no base merge), so the round's delta is git diff 8b17f7f ffff01c: one commit, ffff01c, four docs files (README.md, ADR 0010, runbooks 0001 and 0003), 16 insertions and 16 deletions, nothing under silo/. Round 1 was dismissed by the forge when the head moved; its body is still on the thread.

Spec source: CP-42 "Add the Semaphore runner on Guest 145" (Vikunja task 270, read live with its comments). Its second comment lists the plan key tofu-plan-state-semaphore-runner as "Not minted" — this PR is the declaration half. Standards source: AGENTS.md (head worktree, unchanged since round 1) §Pull requests, §Code comments, §Docs; docs/runbooks/0003-the-state-in-the-store.md.

Bar: round > 1 — a new BLOCKER must be a correctness or security defect introduced or exposed by the fix; anything else newly spotted is ADVISORY. The finding below is a documentation defect, so it is graded ADVISORY against that bar.

Round 1, re-driven

Round 1 had no BLOCKER; its three advisories:

# Round-1 advisory Status Evidence at head
1 stale counts at 0001:170 and README.md:139-140 resolved in ffff01c 0001:170 reads "rather than nineteen times"; README.md:139-140 reads "the semaphore's five (apply, plan, its CI deploy's, its runner's deploy and plan)". Recounted off silo/store/variables.tf: 19 entries at head (18 at 492cebf), groups forge 6 + tracker 6 + semaphore 5 + openbao 2 = 19, so README's five is right.
2 body names no CP-42 resolved (body edit) PR body now carries [CP-42 — Add the Semaphore runner on Guest 145](…/tasks/270), as AGENTS.md §Pull requests asks.
3 body "other nineteen keys" resolved body reads "the other eighteen declared keys are untouched"; 18 declared at base, matches. The author's note that it already read so is consistent with what I fetched.

The fix also moved two more homes of the count that round 1 did not name (ADR 0010 opening, runbook 0003 first-import paragraph). The census of number words over the tree at head (seventeen…twenty-one, .md/.tf/.sh/.yml, vendored .terraform aside) finds no sentence still carrying an old declared-key count.

Standards

  1. ADVISORY — ADR 0010 and runbook 0003 now call the runner's deploy key a hand mint, which this repository's own record says it is not. docs/adr/0010-a-declared-state-key-keeps-the-owner-it-was-minted-with.md:5 now reads "twenty-one of them across the fleet, twenty of them minted by hand at a console, one command each". The count of hand mints did not move with this change: at 492cebf it was nineteen with the runner deploy key declared and unminted; the key was minted afterwards, by make key-mint (CP-42's mint comment: "Minted by: make key-mint as the Operator pit, 2026-11-06"), so the hand mints are still nineteen and the minted total is twenty. The repository says the same about itself: docs/runbooks/0003-the-state-in-the-store.md:583-584 "The tracker records' two deploy keys were minted by hand before the Target existed (SC-15); every key after them arrives through it", and :344-345 "whose keys make key-mint creates". The runbook paragraph at docs/runbooks/0003-the-state-in-the-store.md:486 — "The keys were minted by hand before this declaration existed" — went from a counted subset ("The seventeen keys") to an all-quantified claim over a map that now holds two key-mint keys. One defect, two sites; both are sentences ffff01c itself rewrote. Clearing change: ADR 0010:5 — "twenty of them minted, nineteen of them by hand at a console, one command each" (or drop "by hand at a console" from the twenty); runbook 0003:486 — scope the clause back ("The keys minted before this declaration existed were minted by hand, …"). The first-import procedure itself (one add per declared entry, nothing in the record yet) is correct as written.

Spec

No findings. The delta is count-keeping for CP-42's declaration half and goes nowhere else: the arithmetic in the ADR (21 = 19 declared + this repository's own apply and plan keys; 20 minted = 21 less the unminted plan key this PR declares) matches the ticket's mint comment and make key-audit line ("22 key(s) under silo/, 21 audited, 1 out of scope"). The round-1 contract (policy file + map entry + runbook row, Plan: 1 to add for the plan key) is untouched by the delta: git diff 8b17f7f ffff01c --stat -- silo/ is empty.

Verified (by my own hand, head ffff01c)

Claim Result
"make check rc=0, 158 ok lines" Reproduced with mise exec -- make check: rc=0, "Success! The configuration is valid.", 158 lines matching ^\s*ok; git status --porcelain empty afterwards (silo/.terraform is ignored).
"only the intended words moved" Word-stream diff of each file, 8b17f7f vs head: README four→five, deploy)→deploy and plan); ADR 0010 twenty→twenty-one, nineteen→twenty, eighteen→nineteen; 0001 eighteen→nineteen; 0003 seventeen×2 removed, "keys" → "one key for every entry the map declares". README's reflow is whitespace only.
"no added line over 80 characters" Added lines measured in characters: widest 80.
README group arithmetic 6 + 6 + 5 + 2 = 19 from the map's key names, 19 entries at head, 18 at 492cebf.

Not verified: make store-plan's Plan: 1 to add, 2 to change and the make store refusal — they need the store credential this profile does not hold, and nothing under silo/ moved this round. The plan-key mint, the OpenBao write and make key-audit are the body's own "not yet run" items.

Named, not charged

  • The PR body's ## Summary tree still lists only the policy file, variables.tf and runbook 0003; the delta also touches README, ADR 0010 and runbook 0001 (the fix comment on the thread says so). AGENTS.md sets no rule for the body's file list, and the diff wins where they differ; carried to the author, not counted.
  • The plan key's path is not yet in infra-secrets docs/store-layout.md or bao/policies/ci-cockpit.hcl — the other repository's half, listed open on CP-42 (carried from round 1).

Summary

Axis Findings Worst
Standards 1 (ADVISORY) ADR 0010:5 and runbook 0003:486 count/describe the make key-mint runner deploy key as a hand mint
Spec 0 none

0 BLOCKERs, 1 ADVISORY. State follows blockers (none → APPROVED); one advisory is below the volume rule's three, so Recommendation: merge; the advisory is advice and the label is review/merge-ready.

<!-- minos review-loop: repo=olympus/infra-silo pr=22 head=ffff01c7e6da0864c6104516b329508a124acf20 round=2/5 axes=standards,spec --> repo olympus/infra-silo · PR #22 · reviewed head ffff01c7e6da0864c6104516b329508a124acf20 (equals `refs/pull/22/head` on the host, read again before posting) · round 2/5 (the thread holds one earlier review, so this is its second; the dispatch's 2/5 agrees) · verdict: no blocker, one advisory Recommendation: merge **Fixed point:** the round-1 review's `commit_id` `8b17f7f`. `git merge-base --is-ancestor 8b17f7f ffff01c` is true (the fixer stacked, no base merge), so the round's delta is `git diff 8b17f7f ffff01c`: one commit, `ffff01c`, four docs files (README.md, ADR 0010, runbooks 0001 and 0003), 16 insertions and 16 deletions, nothing under `silo/`. Round 1 was dismissed by the forge when the head moved; its body is still on the thread. **Spec source:** CP-42 "Add the Semaphore runner on Guest 145" (Vikunja task 270, read live with its comments). Its second comment lists the plan key `tofu-plan-state-semaphore-runner` as "Not minted" — this PR is the declaration half. **Standards source:** `AGENTS.md` (head worktree, unchanged since round 1) §Pull requests, §Code comments, §Docs; `docs/runbooks/0003-the-state-in-the-store.md`. **Bar:** round > 1 — a new BLOCKER must be a correctness or security defect introduced or exposed by the fix; anything else newly spotted is ADVISORY. The finding below is a documentation defect, so it is graded ADVISORY against that bar. ## Round 1, re-driven Round 1 had no BLOCKER; its three advisories: | # | Round-1 advisory | Status | Evidence at head | |---|---|---|---| | 1 | stale counts at `0001:170` and `README.md:139-140` | resolved in `ffff01c` | `0001:170` reads "rather than nineteen times"; `README.md:139-140` reads "the semaphore's five (apply, plan, its CI deploy's, its runner's deploy and plan)". Recounted off `silo/store/variables.tf`: 19 entries at head (18 at `492cebf`), groups forge 6 + tracker 6 + semaphore 5 + openbao 2 = 19, so README's five is right. | | 2 | body names no `CP-42` | resolved (body edit) | PR body now carries `[CP-42 — Add the Semaphore runner on Guest 145](…/tasks/270)`, as `AGENTS.md` §Pull requests asks. | | 3 | body "other nineteen keys" | resolved | body reads "the other eighteen declared keys are untouched"; 18 declared at base, matches. The author's note that it already read so is consistent with what I fetched. | The fix also moved two more homes of the count that round 1 did not name (ADR 0010 opening, runbook 0003 first-import paragraph). The census of number words over the tree at head (`seventeen`…`twenty-one`, `.md/.tf/.sh/.yml`, vendored `.terraform` aside) finds no sentence still carrying an old declared-key count. ## Standards 1. **ADVISORY — ADR 0010 and runbook 0003 now call the runner's deploy key a hand mint, which this repository's own record says it is not.** `docs/adr/0010-a-declared-state-key-keeps-the-owner-it-was-minted-with.md:5` now reads "twenty-one of them across the fleet, twenty of them minted by hand at a console, one command each". The count of hand mints did not move with this change: at `492cebf` it was nineteen with the runner deploy key declared and unminted; the key was minted afterwards, by `make key-mint` (CP-42's mint comment: "Minted by: `make key-mint` as the Operator `pit`, 2026-11-06"), so the hand mints are still nineteen and the minted total is twenty. The repository says the same about itself: `docs/runbooks/0003-the-state-in-the-store.md:583-584` "The tracker records' two deploy keys were minted by hand before the Target existed (SC-15); every key after them arrives through it", and `:344-345` "whose keys `make key-mint` creates". The runbook paragraph at `docs/runbooks/0003-the-state-in-the-store.md:486` — "The keys were minted by hand before this declaration existed" — went from a counted subset ("The seventeen keys") to an all-quantified claim over a map that now holds two `key-mint` keys. One defect, two sites; both are sentences `ffff01c` itself rewrote. Clearing change: ADR 0010:5 — "twenty of them minted, nineteen of them by hand at a console, one command each" (or drop "by hand at a console" from the twenty); runbook 0003:486 — scope the clause back ("The keys minted before this declaration existed were minted by hand, …"). The first-import procedure itself (one add per declared entry, nothing in the record yet) is correct as written. ## Spec No findings. The delta is count-keeping for CP-42's declaration half and goes nowhere else: the arithmetic in the ADR (21 = 19 declared + this repository's own apply and plan keys; 20 minted = 21 less the unminted plan key this PR declares) matches the ticket's mint comment and `make key-audit` line ("22 key(s) under silo/, 21 audited, 1 out of scope"). The round-1 contract (policy file + map entry + runbook row, `Plan: 1 to add` for the plan key) is untouched by the delta: `git diff 8b17f7f ffff01c --stat -- silo/` is empty. ## Verified (by my own hand, head `ffff01c`) | Claim | Result | |---|---| | "`make check` rc=0, 158 ok lines" | Reproduced with `mise exec -- make check`: rc=0, "Success! The configuration is valid.", 158 lines matching `^\s*ok`; `git status --porcelain` empty afterwards (`silo/.terraform` is ignored). | | "only the intended words moved" | Word-stream diff of each file, 8b17f7f vs head: README `four→five`, `deploy)→deploy and plan)`; ADR 0010 `twenty→twenty-one`, `nineteen→twenty`, `eighteen→nineteen`; 0001 `eighteen→nineteen`; 0003 `seventeen`×2 removed, "keys" → "one key for every entry the map declares". README's reflow is whitespace only. | | "no added line over 80 characters" | Added lines measured in characters: widest 80. | | README group arithmetic | 6 + 6 + 5 + 2 = 19 from the map's key names, 19 entries at head, 18 at `492cebf`. | **Not verified:** `make store-plan`'s `Plan: 1 to add, 2 to change` and the `make store` refusal — they need the store credential this profile does not hold, and nothing under `silo/` moved this round. The plan-key mint, the OpenBao write and `make key-audit` are the body's own "not yet run" items. ## Named, not charged - The PR body's `## Summary` tree still lists only the policy file, `variables.tf` and runbook 0003; the delta also touches README, ADR 0010 and runbook 0001 (the fix comment on the thread says so). `AGENTS.md` sets no rule for the body's file list, and the diff wins where they differ; carried to the author, not counted. - The plan key's path is not yet in `infra-secrets` `docs/store-layout.md` or `bao/policies/ci-cockpit.hcl` — the other repository's half, listed open on CP-42 (carried from round 1). ## Summary | Axis | Findings | Worst | |---|---|---| | Standards | 1 (ADVISORY) | ADR 0010:5 and runbook 0003:486 count/describe the `make key-mint` runner deploy key as a hand mint | | Spec | 0 | none | 0 BLOCKERs, 1 ADVISORY. State follows blockers (none → APPROVED); one advisory is below the volume rule's three, so `Recommendation: merge`; the advisory is advice and the label is `review/merge-ready`.
pit merged commit c88d16af83 into main 2026-11-06 09:02:31 +00:00
pit deleted branch hermes/cp42-semaphore-runner-plan-key 2026-11-06 09:02:31 +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!22
No description provided.