Declare the tracker records' deploy-shaped state keys (SC-15) #19

Merged
pit merged 3 commits from hermes/sc15-tracker-deploy-state-keys into main 2026-11-05 12:49:57 +00:00
Owner

Summary

SC-15. The two infra-tracker records gain their third key shape — the deploy key a Stack is applied with, which writes the record and deletes only the lock beside it (workshop ADR-0012).

 silo/store/
+├── tracker-guest-deploy-state-policy.json   prod/tracker-guest.tfstate + its lock
+└── tracker-edge-deploy-state-policy.json    prod/tracker-edge.tfstate + its lock
 silo/store/variables.tf
   var.state_keys
+    tofu-deploy-state-tracker-guest
+    tofu-deploy-state-tracker-edge
 docs/runbooks/0003-the-state-in-the-store.md   §7's table, the count, and a new note

Each policy is the record's apply policy narrowed to the deploy shape: s3:GetObject and s3:PutObject on the record, plus DeleteObject on the lock alone, so a deploy cannot remove a state object.

Evidence

  • Plan: 2 to add, 0 to change, 0 to destroy — no key is replaced and nothing else moves.
  • Both keys are in the store, with make key-audit reporting 21 key(s) under silo/, 20 audited, 1 out of scope, **0 failing**.
  • Reach, from the values the store holds: each key reads its own record, gets 403 on prod/openbao.tfstate and prod/silo.tfstate, and AccessDenied on a delete outside its policy. A wrong secret on the same access key answers 403, so the test is not falling back to admin credentials.
  • make check passes.

A created key is not a scoped key — §7 now says so. minio_iam_service_account created both with Policy: implied, inheriting the account's root, while tofu plan still read clean because the provider never reads a policy back. They were re-created with mcli admin accesskey create silo/ --policy … --access-key … --secret-key …, which embeds it; both now read embedded. The declaration stays as the reviewed policy and the destroy guard. Anything created by the declaration alone — SC-16's and SC-20's keys next — has the same hole, which is the ticket filed beside this one.

Merge Danger

Door: two-way. Removing an entry is a key's delete, which is why the destroy guard refuses it without the guard lifted in the same diff.

Blast Radius: two records. Only the runner's deploy reads them, and that Guest does not exist yet (CP-42), so nothing consumes either key today.

## Summary SC-15. The two infra-tracker records gain their third key shape — the deploy key a Stack is applied with, which writes the record and deletes only the lock beside it (workshop ADR-0012). ```diff silo/store/ +├── tracker-guest-deploy-state-policy.json prod/tracker-guest.tfstate + its lock +└── tracker-edge-deploy-state-policy.json prod/tracker-edge.tfstate + its lock silo/store/variables.tf var.state_keys + tofu-deploy-state-tracker-guest + tofu-deploy-state-tracker-edge docs/runbooks/0003-the-state-in-the-store.md §7's table, the count, and a new note ``` Each policy is the record's `apply` policy narrowed to the deploy shape: `s3:GetObject` and `s3:PutObject` on the record, plus `DeleteObject` on the lock alone, so a deploy cannot remove a state object. ## Evidence - **Plan:** `2 to add, 0 to change, 0 to destroy` — no key is replaced and nothing else moves. - **Both keys are in the store**, with `make key-audit` reporting `21 key(s) under silo/, 20 audited, 1 out of scope, **0 failing**`. - **Reach, from the values the store holds:** each key reads its own record, gets `403` on `prod/openbao.tfstate` and `prod/silo.tfstate`, and `AccessDenied` on a delete outside its policy. A wrong secret on the same access key answers `403`, so the test is not falling back to admin credentials. - `make check` passes. **A created key is not a scoped key — §7 now says so.** `minio_iam_service_account` created both with `Policy: implied`, inheriting the account's root, while `tofu plan` still read clean because the provider never reads a policy back. They were re-created with `mcli admin accesskey create silo/ --policy … --access-key … --secret-key …`, which embeds it; both now read `embedded`. The declaration stays as the reviewed policy and the destroy guard. Anything created by the declaration alone — SC-16's and SC-20's keys next — has the same hole, which is the ticket filed beside this one. ## Merge Danger **Door:** two-way. Removing an entry is a key's delete, which is why the destroy guard refuses it without the guard lifted in the same diff. **Blast Radius:** two records. Only the runner's deploy reads them, and that Guest does not exist yet (CP-42), so nothing consumes either key today.
Declare the tracker records' deploy-shaped state keys (SC-15)
All checks were successful
pr-checks / check (pull_request) Successful in 16s
c9c3ab4eda
Two keys for the deployer's third shape: tofu-deploy-state-tracker-{guest,edge},
each naming its record and deleting only the lock beside it (workshop ADR 0012).
Both are in the store with the policy embedded; the runbook records that
minio_iam_service_account leaves a created key's policy implied and that
make key-audit is what tells the two apart.
Member

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

**Review started** (round 1/5) on c9c3ab4edaed4c80a40a08c998834b8cf383f458 — reading the diff now.
Author
Owner

The provider hole this branch ran into is filed as SL-22 (needs-triage, related to SC-15): "A key the declaration creates is not scoped: minio_iam_service_account leaves the policy implied".

It carries the three shapes a fix could take, with a recommendation (a make key-mint that creates with --policy and imports; key-audit failing on implied beside it). Nothing about this branch waits on it: both keys here are embedded and audit clean.

The provider hole this branch ran into is filed as **SL-22** (needs-triage, related to SC-15): "A key the declaration creates is not scoped: minio_iam_service_account leaves the policy implied". It carries the three shapes a fix could take, with a recommendation (a `make key-mint` that creates with `--policy` and imports; `key-audit` failing on `implied` beside it). Nothing about this branch waits on it: both keys here are `embedded` and audit clean.
bot-minos approved these changes 2026-11-05 12:37:08 +00:00
Dismissed
bot-minos left a comment

olympus/infra-silo #19 · head c9c3ab4 · round 1/5 (the dispatch's 1/5; the thread carried no prior review) · verdict: merge, four advisories carried

Recommendation: fix

Verdict

Merge. Nothing in the diff is wrong: both policy files are this repo's established deploy shape narrowed to the right record, the two var.state_keys entries name them, and make check is green at the head. There are four advisories, all documentation and all one-line, and the recommendation turns on their count, not their weight — at three or more advisories one batched pass costs less than three taste calls argued one at a time. No blocker stands, so the state is APPROVE.

Standards

S1 · ADVISORY · the PR body names a task this repository's tracker cannot resolve.
AGENTS.md:75-79 §Pull requests: "Name the task a PR addresses in its body as SL-<index>." AGENTS.md:69-73 puts this repo's tasks in Vikunja project infra-silo (id 7, identifier SL). The body opens "SC-15", which is project infra-secrets (id 8). No SL task covers this change: project 7 carries SL-19 and SL-21 for the other Stacks' keys and SL-22 for the provider hole below, but nothing for the two tracker deploy keys. !15 and !16 carried SC references too, so this may be house practice now — if it is, the file that should say so is AGENTS.md.
Clearing: an SL-<index> reference in the body, or the AGENTS.md:75-79 rule amended in this diff.

Spec

Spec source: SC-15 (Give the Semaphore runner its policy and infra-tracker's reach) with its comment of 2026-11-05 12:27, which records this branch and this commit. What the change claims — two policies, two declarations, §7's table, count and note — is delivered. The policy shape is exactly workshop ADR-0012's (verified below). The three findings are in the prose the change edits.

P1 · ADVISORY · docs/runbooks/0003-the-state-in-the-store.md:334-337 says one row of the table takes the deploy shape; three do.
"tofu-deploy-state-semaphore is the one row of the table that takes it" — true before this diff, false after it: the table this same change edits carries three deploy rows, the two it adds at :302-303 and the semaphore row at :306. The reader is corrected by the table a screen above, which is what keeps this advisory rather than blocking.
Clearing: name the three rows, or write "the rows that take it".

P2 · ADVISORY · the count this change moves is corrected in §7 and left stale in two other places.

  • docs/adr/0010-a-declared-state-key-keeps-the-owner-it-was-minted-with.md:4-6: "a key per record per shape, seventeen of them across the fleet … the store half now declares fifteen of them". At this head the two numbers are 19 and 17 (eight records × apply+plan = 16, plus three deploy keys). The change moved §7's copy (:262, :449, both now correct) and not the ADR's.
  • docs/runbooks/0003-the-state-in-the-store.md:376-378: "The fifteen keys were minted by hand … it names fifteen keys to add". That is the rebuild procedure, and a fresh record plans seventeen to add at this head.
    Clearing: renumber both in this diff.

P3 · ADVISORY · the mint recipe in the new note omits --name, and a nameless key is the one key make key-audit does not audit.
docs/runbooks/0003-the-state-in-the-store.md:458-463 gives mcli admin accesskey create silo/ --policy <file> --access-key … --secret-key …, then tells the reader make key-audit "is the check that tells the two apart … run it after any key is added or re-created". scripts/key-audit.sh:140-158 decides a key's scope from its --name (label=${label:-unnamed}, then the tofu*) case): an unnamed key is printed as "out of scope" and never counted in audited, so a key minted by that recipe is the one the audit skips. §0's own mint (:39-42) carries --name tofu-state --description …, and the body's audit line (20 audited, 1 out of scope) only adds up if the two re-created keys were named.
Clearing: add --name <the key's name> to the example.

Verified, by my own hand

Claim How it was checked
Reviewed revision is the dispatch's refs/pull/19/head resolved from the forge twice — at the start and again before this report — both c9c3ab4edaed4c80a40a08c998834b8cf383f458; base main 3617cab
The diff is four files, +61/−2 git diff 3617cab...c9c3ab4 --stat
Both new files are the deploy shape ADR-0012 defines Parsed; then canonicalised with key-audit.sh's own canon and compared with semaphore-deploy-state-policy.json, the record name normalised away: identical. Per statement: GetObject+PutObject on the record, GetObject+PutObject+DeleteObject on the lock, ListBucket+GetBucketLocation on the bucket, and DeleteObject absent from the record
Each policy names the record its Stack actually reads infra-tracker at main: vikunja/guest/backend.tf → key = "prod/tracker-guest.tfstate", npm/backend.tf → key = "prod/tracker-edge.tfstate", bucket tfstate, use_lockfile = true (so the .tflock object the policy scopes is the one the backend takes)
The 17/17 count in §7 is right var.state_keys has 17 entries at the head; §7's table has 18 rows (17 declared + this repo's plan key)
The repo's own gates mise exec -- make check → exit 0 (env-check, env-test, tofu fmt -check, tofu validate); make key-audit-test → exit 0, every case passed; tofu fmt -check -recursive silo/ clean
CI at the head pr-checks / check (pull_request) → success, 16s
Docs conventions Every relative link in the edited runbook resolves inside the repo (AGENTS.md §Docs); no secret or plaintext credential in the diff (AGENTS.md §Secrets)

Not verified, and why

  • The live-store evidence in the body — plan 2 to add, 0 to change, 0 to destroy; make key-audit reporting 21 key(s) under silo/, 20 audited, 1 out of scope, 0 failing; the 403s on prod/openbao.tfstate and prod/silo.tfstate; AccessDenied on a delete outside the policy; Policy: embedded. All of it needs the store's root credential (MC_HOST_silo), which I do not hold, and nothing was run against a store. The audit's arithmetic is at least consistent with the repo (18 table rows + §0's apply key + the provisioning key = 20 in scope, + the store-app credential = 21) — that is consistency, not observation.
  • minio_iam_service_account leaving the policy implied on create. Taken as the author's live observation; SL-22 tracks it and nothing in the repo contradicts it. Its consequence for this change is worth stating once: the declaration is not what scopes these two keys today — the mcli re-create is — so the note's advice ("run key-audit after any key is added or re-created") is the only guard on every future entry to this map, which is why P3 matters.

Pre-existing, not charged

The §7 table is described as "the whole set" (:274) but carries 18 rows while the store holds 20 in-scope keys: §0's apply key and the provisioning key are not rows. That gap predates this change and this diff does not touch it. Noted so it is not read as approved.

Summary

Axis Findings Worst
Standards 1 advisory, 0 blockers S1 — the body's ticket reference breaks AGENTS.md:75-79
Spec 3 advisories, 0 blockers P1 — §7 asserts one deploy row while its own table shows three

Four advisories and no blocker: state APPROVE, Recommendation: fix because the count tripped the three-advisory line, and review/needs-fix on that recommendation — not because anything here is a defect. All four clear in one pass.

<!-- minos review-loop: repo=olympus/infra-silo pr=19 head=c9c3ab4edaed4c80a40a08c998834b8cf383f458 round=1/5 axes=standards,spec --> **olympus/infra-silo #19** · head `c9c3ab4` · round **1/5** (the dispatch's 1/5; the thread carried no prior review) · verdict: **merge**, four advisories carried Recommendation: fix ## Verdict Merge. Nothing in the diff is wrong: both policy files are this repo's established deploy shape narrowed to the right record, the two `var.state_keys` entries name them, and `make check` is green at the head. There are four advisories, all documentation and all one-line, and the recommendation turns on their **count, not their weight** — at three or more advisories one batched pass costs less than three taste calls argued one at a time. No blocker stands, so the state is APPROVE. ## Standards **S1 · ADVISORY · the PR body names a task this repository's tracker cannot resolve.** `AGENTS.md:75-79` §Pull requests: "Name the task a PR addresses in its body as `SL-<index>`." `AGENTS.md:69-73` puts this repo's tasks in Vikunja project `infra-silo` (id 7, identifier `SL`). The body opens "SC-15", which is project `infra-secrets` (id 8). No SL task covers this change: project 7 carries SL-19 and SL-21 for the other Stacks' keys and SL-22 for the provider hole below, but nothing for the two tracker deploy keys. !15 and !16 carried SC references too, so this may be house practice now — if it is, the file that should say so is `AGENTS.md`. *Clearing:* an `SL-<index>` reference in the body, or the `AGENTS.md:75-79` rule amended in this diff. ## Spec Spec source: **SC-15** (*Give the Semaphore runner its policy and infra-tracker's reach*) with its comment of 2026-11-05 12:27, which records this branch and this commit. What the change claims — two policies, two declarations, §7's table, count and note — is delivered. The policy shape is exactly workshop ADR-0012's (verified below). The three findings are in the prose the change edits. **P1 · ADVISORY · `docs/runbooks/0003-the-state-in-the-store.md:334-337` says one row of the table takes the deploy shape; three do.** "`tofu-deploy-state-semaphore` is the one row of the table that takes it" — true before this diff, false after it: the table this same change edits carries three deploy rows, the two it adds at `:302-303` and the semaphore row at `:306`. The reader is corrected by the table a screen above, which is what keeps this advisory rather than blocking. *Clearing:* name the three rows, or write "the rows that take it". **P2 · ADVISORY · the count this change moves is corrected in §7 and left stale in two other places.** - `docs/adr/0010-a-declared-state-key-keeps-the-owner-it-was-minted-with.md:4-6`: "a key per record per shape, seventeen of them across the fleet … the store half now declares fifteen of them". At this head the two numbers are **19** and **17** (eight records × apply+plan = 16, plus three deploy keys). The change moved §7's copy (`:262`, `:449`, both now correct) and not the ADR's. - `docs/runbooks/0003-the-state-in-the-store.md:376-378`: "The fifteen keys were minted by hand … it names fifteen keys to add". That is the rebuild procedure, and a fresh record plans **seventeen** to add at this head. *Clearing:* renumber both in this diff. **P3 · ADVISORY · the mint recipe in the new note omits `--name`, and a nameless key is the one key `make key-audit` does not audit.** `docs/runbooks/0003-the-state-in-the-store.md:458-463` gives `mcli admin accesskey create silo/ --policy <file> --access-key … --secret-key …`, then tells the reader `make key-audit` "is the check that tells the two apart … run it after any key is added or re-created". `scripts/key-audit.sh:140-158` decides a key's scope from its `--name` (`label=${label:-unnamed}`, then the `tofu*)` case): an unnamed key is printed as "out of scope" and never counted in `audited`, so a key minted by that recipe is the one the audit skips. §0's own mint (`:39-42`) carries `--name tofu-state --description …`, and the body's audit line (20 audited, 1 out of scope) only adds up if the two re-created keys were named. *Clearing:* add `--name <the key's name>` to the example. ## Verified, by my own hand | Claim | How it was checked | | --- | --- | | Reviewed revision is the dispatch's | `refs/pull/19/head` resolved from the forge twice — at the start and again before this report — both `c9c3ab4edaed4c80a40a08c998834b8cf383f458`; base `main` `3617cab` | | The diff is four files, +61/−2 | `git diff 3617cab...c9c3ab4 --stat` | | Both new files are the deploy shape ADR-0012 defines | Parsed; then canonicalised with `key-audit.sh`'s own `canon` and compared with `semaphore-deploy-state-policy.json`, the record name normalised away: identical. Per statement: `GetObject`+`PutObject` on the record, `GetObject`+`PutObject`+`DeleteObject` on the lock, `ListBucket`+`GetBucketLocation` on the bucket, and `DeleteObject` **absent** from the record | | Each policy names the record its Stack actually reads | `infra-tracker` at main: `vikunja/guest/backend.tf` → `key = "prod/tracker-guest.tfstate"`, `npm/backend.tf` → `key = "prod/tracker-edge.tfstate"`, bucket `tfstate`, `use_lockfile = true` (so the `.tflock` object the policy scopes is the one the backend takes) | | The 17/17 count in §7 is right | `var.state_keys` has 17 entries at the head; §7's table has 18 rows (17 declared + this repo's plan key) | | The repo's own gates | `mise exec -- make check` → exit 0 (env-check, env-test, `tofu fmt -check`, `tofu validate`); `make key-audit-test` → exit 0, every case passed; `tofu fmt -check -recursive silo/` clean | | CI at the head | `pr-checks / check (pull_request)` → `success`, 16s | | Docs conventions | Every relative link in the edited runbook resolves inside the repo (`AGENTS.md` §Docs); no secret or plaintext credential in the diff (`AGENTS.md` §Secrets) | ## Not verified, and why - **The live-store evidence in the body** — plan `2 to add, 0 to change, 0 to destroy`; `make key-audit` reporting `21 key(s) under silo/, 20 audited, 1 out of scope, 0 failing`; the `403`s on `prod/openbao.tfstate` and `prod/silo.tfstate`; `AccessDenied` on a delete outside the policy; `Policy: embedded`. All of it needs the store's root credential (`MC_HOST_silo`), which I do not hold, and nothing was run against a store. The audit's arithmetic is at least consistent with the repo (18 table rows + §0's apply key + the provisioning key = 20 in scope, + the store-app credential = 21) — that is consistency, not observation. - **`minio_iam_service_account` leaving the policy implied on create.** Taken as the author's live observation; SL-22 tracks it and nothing in the repo contradicts it. Its consequence for this change is worth stating once: the declaration is not what scopes these two keys today — the `mcli` re-create is — so the note's advice ("run key-audit after any key is added or re-created") is the only guard on every future entry to this map, which is why P3 matters. ## Pre-existing, not charged The §7 table is described as "the whole set" (`:274`) but carries 18 rows while the store holds 20 in-scope keys: §0's apply key and the provisioning key are not rows. That gap predates this change and this diff does not touch it. Noted so it is not read as approved. ## Summary | Axis | Findings | Worst | | --- | --- | --- | | Standards | 1 advisory, 0 blockers | S1 — the body's ticket reference breaks `AGENTS.md:75-79` | | Spec | 3 advisories, 0 blockers | P1 — §7 asserts one deploy row while its own table shows three | Four advisories and no blocker: state APPROVE, `Recommendation: fix` because the count tripped the three-advisory line, and `review/needs-fix` on that recommendation — not because anything here is a defect. All four clear in one pass.
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.
- §7 said `tofu-deploy-state-semaphore` was "the one row of the table that takes
  it". Three rows do at this head — that one and the two this change adds — so
  the paragraph names all three, which is what its own table shows a screen
  above.
- The count the change moved was corrected in §7 alone. ADR 0010's opening still
  said seventeen keys across the fleet and fifteen of them declared; at this head
  it is nineteen and seventeen (eight records × apply+plan, plus three deploy
  keys). The rebuild procedure still said the fifteen keys were minted by hand
  and that a plan names fifteen to add; seventeen is what it plans.
- `docs/runbooks/0001-deploy-and-teardown.md`'s teardown comment carried the same
  fifteen ("rather than fifteen times"), which the finding did not name. It moves
  with the rest.
- The mint recipe in the new note omitted `--name`, and the name is the scope
  test `make key-audit` applies: `scripts/key-audit.sh` reads `.name` off
  `accesskey info`, falls back to `unnamed`, and counts only a `tofu*` label —
  so a key minted by that recipe is exactly the one the audit prints as out of
  scope. The command carries the flag, and the sentence says why the check that
  tells the two apart needs it.
The PR body may name a sibling project's task (SC-15)
All checks were successful
pr-checks / check (pull_request) Successful in 16s
a042dd7d0c
`AGENTS.md` required an `SL-<index>` reference in every PR body, and §Issue
tracker puts this repository's tasks in project 7. This change's spec is SC-15,
in `infra-secrets`, and no SL task covers it — project 7's SL-19 and SL-21 are
the other Stacks' keys, and SL-22 is the provider hole the body names — so an
`SL-` reference would have been a false one. !15 and !16 already cite `SC-`
tasks, so the practice is older than the rule.

The rule names the task by the project it belongs to instead: `SL-<index>` here,
`SC-<index>`/`CP-<index>` when the change lands this repository's half of a task
in `infra-secrets`/`infra-cockpit`. `docs/agents/issue-tracker.md`'s bullet on
resolving a PR's task moves with it, since it is the copy `AGENTS.md` defers to.

Verified: `mise exec -- make check` rc=0 — env-check's two cases, env-test's
forty-five, a clean `fmt-check`, and `tofu validate` ending `Success! The
configuration is valid.`; `mise exec -- make key-audit-test` rc=0, `every case
passed`. Every added doc line is ≤80 characters with no line whose break leaves
one word that would have fit, measured over the diff's `+` lines.
bot-efesto dismissed bot-minos's review 2026-11-05 12:42:51 +00:00
Reason:

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

Member

Fixed at a042dd7 — two commits on hermes/sc15-tracker-deploy-state-keys, c9c3ab4..a042dd7, fast-forward, nothing rewritten.

Finding What changed Commit
S1 · the body names a task this tracker cannot resolve Took the second clearing: AGENTS.md §Pull requests names the task by the project it belongs to — SL-<index> here, SC-<index>/CP-<index> when the change lands this repository's half of a task in infra-secrets/infra-cockpit — and docs/agents/issue-tracker.md's bullet on resolving a PR's task moves with it. I did not add an SL- reference: project 7 holds no task for these keys (SL-19 and SL-21 are the other Stacks' keys, SL-22 the provider hole), so one would have been false. a042dd7
P1 · "the one row of the table that takes it" Three rows take it at this head; §7 names all three. beb10ee
P2 · the count, stale in two places ADR 0010 opens with nineteen keys across the fleet and seventeen declared; the rebuild procedure says seventeen minted by hand and a plan naming seventeen to add. beb10ee
P2 · a third home the finding did not name docs/runbooks/0001-deploy-and-teardown.md:170 carried the same count in its teardown comment ("rather than fifteen times"). It moved with the rest. beb10ee
P3 · the mint recipe omits --name The command carries --name <the key's name>, and the note says why: key-audit scopes a key by that name (label=${label:-unnamed}, then tofu*), so an unnamed key is the one it prints as out of scope. beb10ee

The counts, measured rather than transcribed. var.state_keys has 17 entries at a042dd7, 3 of them deploy; 17 + this Stack's own apply and plan keys is the 19 ADR 0010 now states. §7's table has 18 rows — the 17 declared plus this repository's plan key — which is the arithmetic the review used.

Verified

mise exec -- make check           rc=0   45 ok cases, no failure; env-check, env-test, fmt-check, then
                                        tofu validate ending "Success! The configuration is valid."
mise exec -- make key-audit-test  rc=0   "key-audit-test: every case passed"

Both run on the committed tree at a042dd7. Width and orphan test over the diff's added lines, in characters (not bytes): 29 added lines, 0 over 80, 0 whose break leaves a word that would have fitted on it. Every relative link in the edited files resolves inside the repo, and the diff adds none.

Disagreed with, or left alone: nothing. All four advisories are cleared, and I did not dispute any. Three notes for the reviewer, none of them a request:

  • The AGENTS.md amendment is the wider of the two clearings on offer: it changes a rule rather than one PR body. It is also the truthful one — !15 and !16 already cite SC- tasks, so the rule was behind the practice.
  • Unobservable here, unchanged by this diff: make plan, make store-plan and make key-audit refuse for want of a .env and the store's root credential. A docs-only change needs none of them; the live claims in the body are still the author's observation, as the review recorded.
  • The pre-existing gap you noted and did not charge — §7 described as "the whole set" while carrying 18 rows against 20 in-scope keys — is untouched.
**Fixed** at `a042dd7` — two commits on `hermes/sc15-tracker-deploy-state-keys`, `c9c3ab4..a042dd7`, fast-forward, nothing rewritten. | Finding | What changed | Commit | | --- | --- | --- | | **S1** · the body names a task this tracker cannot resolve | Took the second clearing: `AGENTS.md` §Pull requests names the task by the project it belongs to — `SL-<index>` here, `SC-<index>`/`CP-<index>` when the change lands this repository's half of a task in `infra-secrets`/`infra-cockpit` — and `docs/agents/issue-tracker.md`'s bullet on resolving a PR's task moves with it. I did **not** add an `SL-` reference: project 7 holds no task for these keys (SL-19 and SL-21 are the other Stacks' keys, SL-22 the provider hole), so one would have been false. | `a042dd7` | | **P1** · "the one row of the table that takes it" | Three rows take it at this head; §7 names all three. | `beb10ee` | | **P2** · the count, stale in two places | ADR 0010 opens with nineteen keys across the fleet and seventeen declared; the rebuild procedure says seventeen minted by hand and a plan naming seventeen to add. | `beb10ee` | | **P2** · a third home the finding did not name | `docs/runbooks/0001-deploy-and-teardown.md:170` carried the same count in its teardown comment ("rather than fifteen times"). It moved with the rest. | `beb10ee` | | **P3** · the mint recipe omits `--name` | The command carries `--name <the key's name>`, and the note says why: `key-audit` scopes a key by that name (`label=${label:-unnamed}`, then `tofu*`), so an unnamed key is the one it prints as out of scope. | `beb10ee` | **The counts, measured rather than transcribed.** `var.state_keys` has 17 entries at `a042dd7`, 3 of them deploy; 17 + this Stack's own apply and plan keys is the 19 ADR 0010 now states. §7's table has 18 rows — the 17 declared plus this repository's plan key — which is the arithmetic the review used. **Verified** ``` mise exec -- make check rc=0 45 ok cases, no failure; env-check, env-test, fmt-check, then tofu validate ending "Success! The configuration is valid." mise exec -- make key-audit-test rc=0 "key-audit-test: every case passed" ``` Both run on the committed tree at `a042dd7`. Width and orphan test over the diff's **added** lines, in characters (not bytes): 29 added lines, **0 over 80**, **0** whose break leaves a word that would have fitted on it. Every relative link in the edited files resolves inside the repo, and the diff adds none. **Disagreed with, or left alone: nothing.** All four advisories are cleared, and I did not dispute any. Three notes for the reviewer, none of them a request: - The `AGENTS.md` amendment is the wider of the two clearings on offer: it changes a rule rather than one PR body. It is also the truthful one — !15 and !16 already cite `SC-` tasks, so the rule was behind the practice. - **Unobservable here, unchanged by this diff:** `make plan`, `make store-plan` and `make key-audit` refuse for want of a `.env` and the store's root credential. A docs-only change needs none of them; the live claims in the body are still the author's observation, as the review recorded. - The pre-existing gap you noted and did not charge — §7 described as "the whole set" while carrying 18 rows against 20 in-scope keys — is untouched.
Member

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

**Review started** (round 2/5) on a042dd7d0cb9d051a89bb9e46618ccd5eb1b1360 — reading the diff now.
bot-minos approved these changes 2026-11-05 12:48:49 +00:00
bot-minos left a comment

olympus/infra-silo #19 · head a042dd7 · round 2/5 · verdict: merge, one advisory carried

Recommendation: merge

Verdict

Merge. All four round-1 findings are cleared at this head, and the two new policy files are the deploy shape exactly — ADR-0012's apply shape minus DeleteObject on the record — named for the record each tracker Stack's backend.tf actually types. The diff is 8 files, +85/−17, and every one of them earns its place. One advisory stands: the rule a042dd7 amended in AGENTS.md is still stated the old way in two other files. It is advice, not a blocker — one clause each — and the contract this PR is judged against is now the correct one.

Round-1 findings — every one cleared

Finding Where it is resolved at a042dd7 Status
S1 · body names an SC- task against an SL--only rule AGENTS.md:77-81 (rule now names SC-<index>/CP-<index> for infra-secrets/infra-cockpit) and docs/agents/issue-tracker.md:61-63 — commit a042dd7, the wider of the two clearings round 1 offered cleared
P1 · "the one row of the table that takes it" docs/runbooks/0003-the-state-in-the-store.md:335-339 names all three rows; the table at :302-303 carries the two this change adds cleared
P2 · the count, stale in two places (and a third the finding did not name) ADR 0010 :4-6 (nineteen / seventeen), runbook :262, :378-381, :451, and docs/runbooks/0001-deploy-and-teardown.md:170 — commit beb10ee cleared
P3 · the mint recipe omits --name runbook :461-466 carries --name <the key's name> and says why scripts/key-audit.sh:24-25 skips an unnamed key cleared

I re-checked the arithmetic behind P2 rather than take it: var.state_keys has 17 entries at this head (silo/store/variables.tf:54-82), §7's table has 18 rows (the 17 declared plus this repository's plan key), and 17 + this Stack's apply and plan keys is the 19 ADR 0010 now states. §0's and 0002's mints at :40-42 both already carry --name, so the amended recipe matches its sibling runbooks.

Standards

S1 · ADVISORY · the rule this change amends is still stated the old way in two files.
AGENTS.md:77-81 now says SL-<index>, or SC-<index>/CP-<index> for a sibling project's task. Two files carrying the same instruction were not moved with it:

  • README.md:190-191: "Name the task the change addresses in the pull request body as SL-<index>"
  • docs/agents/workflow.md:139: "Name the task in the body (SL-<index>)"

Before a042dd7 those four files agreed. Now AGENTS.md and docs/agents/issue-tracker.md:61-63 allow what README.md and docs/agents/workflow.md still forbid, and an agent following workflow.md §4 reproduces exactly the error round 1 charged. No gate reads prose, so nothing goes red.
Clearing: one clause in each, in the phrasing AGENTS.md:77-81 now uses — in this diff or a follow-up.

Spec

Spec source: the PR description, which states what the change is for in full. It names SC-15 but links no task, and the tracker answers 401 to an unauthenticated read — this session holds no tracker credential — so the description is the spec and nothing is invented past it.

No findings. Delivered as described: two silo/store/*-deploy-state-policy.json, the two var.state_keys entries (variables.tf:67-71), §7's table (:302-303), the three-row paragraph (:335-339), the count, and the "a created key is not a scoped key" note (:456-466). Nothing in the diff is outside the ask: the AGENTS.md amendment is the clearing round 1 offered, not scope creep.

Verified, by my own hand

Claim How it was checked
Reviewed revision is the dispatch's refs/pull/19/head resolved twice — at the start and again before this report — a042dd7 both times; merge-base 3617cab; diff 8 files, +85/−17
Both new policies are the ADR-0012 deploy shape jq -S canonicalised and compared against silo/store/semaphore-deploy-state-policy.json with the record name normalised: identical. Record statement GetObject+PutObject only (tracker-guest-deploy-state-policy.json:9-13); lock statement adds DeleteObject (:14-18); bucket pair ListBucket+GetBucketLocation; no DeleteObject on any .tfstate
Each policy names the record its Stack reads infra-tracker at origin/main: vikunja/guest/backend.tf:7-8,17 → bucket tfstate, key prod/tracker-guest.tfstate, use_lockfile = true; npm/backend.tf:7-8,17 → prod/tracker-edge.tfstate, same — so the .tflock object each policy scopes is the one the backend writes
The counts var.state_keys = 17 entries; §7's table = 18 rows; 17 + 2 = 19 (ADR 0010 :4)
The repo's gates mise exec -- make check → rc 0 (env-check "the pin and the map agree", env-test "every case holds", fmt-check, tofu validate → "Success! The configuration is valid."); make key-audit-test → rc 0, "every case passed"
CI at this head pr-checks / check (pull_request) → success, 16s (run 16)
The amended rule's prefixes SC = infra-secrets (project 8) and CP = infra-cockpit (project 11) per those repositories' own AGENTS.md
Docs conventions Longest added line is exactly 80 characters, counted in characters not bytes (my first pass measured bytes and read two lines as over — the author's "characters (not bytes)" note is correct); no relative link added; no secret or plaintext credential in the diff

Not verified, and why

  • Every live-store claim in the body — plan 2 to add, 0 to change, 0 to destroy; make key-audit at 21 key(s) under silo/, 20 audited, 1 out of scope, 0 failing; the 403s on prod/openbao.tfstate and prod/silo.tfstate; AccessDenied on an out-of-policy delete; Policy: embedded. All need the store's root credential, which I do not hold, and nothing was run against a store. The audit arithmetic is consistent with the repo (18 table rows + this Stack's apply key + the provisioning key = 20 in scope, + the store-app credential = 21) — consistency, not observation.
  • The mcli recipe's flags. There is no mcli in the checkout (runbook 0002 §0 downloads it), so admin accesskey create --policy … --name … --access-key … --secret-key … is checked for consistency with runbook 0003:40-42 and 0002:40-42 only, not against the client.
  • minio_iam_service_account leaving the policy implied on create. Taken as the author's observation; SL-22 tracks it and nothing in the repo contradicts it. Worth stating once: the declaration is not what scopes these two keys today — the mcli re-create is — which is why the note's "run key-audit after any key is added or re-created" is the guard, not the declaration.

Pre-existing, not charged

  • §7's "the whole set" (:274) carries 18 rows against 19 keys now that ADR 0010 states nineteen. The sentence predates this change and this diff does not touch it; noted again so it is not read as approved.
  • No gate reads a policy file's content. A *-deploy-state-policy.json that regained s3:DeleteObject on its .tfstate would keep make check and CI green, and key-audit would agree with it because the file is what it compares against. True of every policy file here, the semaphore deploy key included; a one-line test over silo/store/*-deploy-state-policy.json would pin it. Not this PR's debt, and not charged.

Summary

Axis Findings Worst
Standards 1 advisory, 0 blockers S1 — the amended PR-body rule left stale in README.md:190-191 and docs/agents/workflow.md:139
Spec 0 findings, 0 blockers —

One advisory, no blocker: state APPROVE and Recommendation: merge. The volume rule does not come into play at one, and S1 — a clause in each of two files — does not hold the merge.

<!-- minos review-loop: repo=olympus/infra-silo pr=19 head=a042dd7d0cb9d051a89bb9e46618ccd5eb1b1360 round=2/5 axes=standards,spec --> **olympus/infra-silo #19** · head `a042dd7` · round **2/5** · verdict: **merge**, one advisory carried Recommendation: merge ## Verdict Merge. All four round-1 findings are cleared at this head, and the two new policy files are the deploy shape exactly — ADR-0012's apply shape minus `DeleteObject` on the record — named for the record each tracker Stack's `backend.tf` actually types. The diff is 8 files, +85/−17, and every one of them earns its place. One advisory stands: the rule `a042dd7` amended in `AGENTS.md` is still stated the old way in two other files. It is advice, not a blocker — one clause each — and the contract this PR is judged against is now the correct one. ## Round-1 findings — every one cleared | Finding | Where it is resolved at `a042dd7` | Status | | --- | --- | --- | | **S1** · body names an `SC-` task against an `SL-`-only rule | `AGENTS.md:77-81` (rule now names `SC-<index>`/`CP-<index>` for `infra-secrets`/`infra-cockpit`) and `docs/agents/issue-tracker.md:61-63` — commit `a042dd7`, the wider of the two clearings round 1 offered | cleared | | **P1** · "the one row of the table that takes it" | `docs/runbooks/0003-the-state-in-the-store.md:335-339` names all three rows; the table at `:302-303` carries the two this change adds | cleared | | **P2** · the count, stale in two places (and a third the finding did not name) | ADR 0010 `:4-6` (nineteen / seventeen), runbook `:262`, `:378-381`, `:451`, and `docs/runbooks/0001-deploy-and-teardown.md:170` — commit `beb10ee` | cleared | | **P3** · the mint recipe omits `--name` | runbook `:461-466` carries `--name <the key's name>` and says why `scripts/key-audit.sh:24-25` skips an unnamed key | cleared | I re-checked the arithmetic behind P2 rather than take it: `var.state_keys` has 17 entries at this head (`silo/store/variables.tf:54-82`), §7's table has 18 rows (the 17 declared plus this repository's plan key), and 17 + this Stack's apply and plan keys is the 19 ADR 0010 now states. §0's and 0002's mints at `:40-42` both already carry `--name`, so the amended recipe matches its sibling runbooks. ## Standards **S1 · ADVISORY · the rule this change amends is still stated the old way in two files.** `AGENTS.md:77-81` now says `SL-<index>`, or `SC-<index>`/`CP-<index>` for a sibling project's task. Two files carrying the same instruction were not moved with it: - `README.md:190-191`: "Name the task the change addresses in the pull request body as `SL-<index>`" - `docs/agents/workflow.md:139`: "Name the task in the body (`SL-<index>`)" Before `a042dd7` those four files agreed. Now `AGENTS.md` and `docs/agents/issue-tracker.md:61-63` allow what `README.md` and `docs/agents/workflow.md` still forbid, and an agent following `workflow.md` §4 reproduces exactly the error round 1 charged. No gate reads prose, so nothing goes red. *Clearing:* one clause in each, in the phrasing `AGENTS.md:77-81` now uses — in this diff or a follow-up. ## Spec Spec source: **the PR description**, which states what the change is for in full. It names `SC-15` but links no task, and the tracker answers `401` to an unauthenticated read — this session holds no tracker credential — so the description is the spec and nothing is invented past it. No findings. Delivered as described: two `silo/store/*-deploy-state-policy.json`, the two `var.state_keys` entries (`variables.tf:67-71`), §7's table (`:302-303`), the three-row paragraph (`:335-339`), the count, and the "a created key is not a scoped key" note (`:456-466`). Nothing in the diff is outside the ask: the `AGENTS.md` amendment is the clearing round 1 offered, not scope creep. ## Verified, by my own hand | Claim | How it was checked | | --- | --- | | Reviewed revision is the dispatch's | `refs/pull/19/head` resolved twice — at the start and again before this report — `a042dd7` both times; merge-base `3617cab`; diff 8 files, +85/−17 | | Both new policies are the ADR-0012 deploy shape | `jq -S` canonicalised and compared against `silo/store/semaphore-deploy-state-policy.json` with the record name normalised: identical. Record statement `GetObject`+`PutObject` only (`tracker-guest-deploy-state-policy.json:9-13`); lock statement adds `DeleteObject` (`:14-18`); bucket pair `ListBucket`+`GetBucketLocation`; **no `DeleteObject` on any `.tfstate`** | | Each policy names the record its Stack reads | `infra-tracker` at `origin/main`: `vikunja/guest/backend.tf:7-8,17` → bucket `tfstate`, key `prod/tracker-guest.tfstate`, `use_lockfile = true`; `npm/backend.tf:7-8,17` → `prod/tracker-edge.tfstate`, same — so the `.tflock` object each policy scopes is the one the backend writes | | The counts | `var.state_keys` = 17 entries; §7's table = 18 rows; 17 + 2 = 19 (ADR 0010 `:4`) | | The repo's gates | `mise exec -- make check` → rc 0 (env-check "the pin and the map agree", env-test "every case holds", fmt-check, `tofu validate` → "Success! The configuration is valid."); `make key-audit-test` → rc 0, "every case passed" | | CI at this head | `pr-checks / check (pull_request)` → `success`, 16s (run 16) | | The amended rule's prefixes | `SC` = `infra-secrets` (project 8) and `CP` = `infra-cockpit` (project 11) per those repositories' own `AGENTS.md` | | Docs conventions | Longest added line is exactly 80 characters, counted in characters not bytes (my first pass measured bytes and read two lines as over — the author's "characters (not bytes)" note is correct); no relative link added; no secret or plaintext credential in the diff | ## Not verified, and why - **Every live-store claim in the body** — plan `2 to add, 0 to change, 0 to destroy`; `make key-audit` at `21 key(s) under silo/, 20 audited, 1 out of scope, 0 failing`; the `403`s on `prod/openbao.tfstate` and `prod/silo.tfstate`; `AccessDenied` on an out-of-policy delete; `Policy: embedded`. All need the store's root credential, which I do not hold, and nothing was run against a store. The audit arithmetic is *consistent* with the repo (18 table rows + this Stack's apply key + the provisioning key = 20 in scope, + the store-app credential = 21) — consistency, not observation. - **The `mcli` recipe's flags.** There is no `mcli` in the checkout (runbook 0002 §0 downloads it), so `admin accesskey create --policy … --name … --access-key … --secret-key …` is checked for consistency with `runbook 0003:40-42` and `0002:40-42` only, not against the client. - **`minio_iam_service_account` leaving the policy implied on create.** Taken as the author's observation; SL-22 tracks it and nothing in the repo contradicts it. Worth stating once: the declaration is not what scopes these two keys today — the `mcli` re-create is — which is why the note's "run `key-audit` after any key is added or re-created" is the guard, not the declaration. ## Pre-existing, not charged - **§7's "the whole set"** (`:274`) carries 18 rows against 19 keys now that ADR 0010 states nineteen. The sentence predates this change and this diff does not touch it; noted again so it is not read as approved. - **No gate reads a policy file's content.** A `*-deploy-state-policy.json` that regained `s3:DeleteObject` on its `.tfstate` would keep `make check` and CI green, and `key-audit` would agree with it because the file is what it compares against. True of every policy file here, the semaphore deploy key included; a one-line test over `silo/store/*-deploy-state-policy.json` would pin it. Not this PR's debt, and not charged. ## Summary | Axis | Findings | Worst | | --- | --- | --- | | Standards | 1 advisory, 0 blockers | S1 — the amended PR-body rule left stale in `README.md:190-191` and `docs/agents/workflow.md:139` | | Spec | 0 findings, 0 blockers | — | One advisory, no blocker: state APPROVE and `Recommendation: merge`. The volume rule does not come into play at one, and S1 — a clause in each of two files — does not hold the merge.
pit merged commit ee347ff0ac into main 2026-11-05 12:49:57 +00:00
pit deleted branch hermes/sc15-tracker-deploy-state-keys 2026-11-05 12:49:57 +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!19
No description provided.