feat: declare the deploy shape of a Stack's state key (SC-14) #16

Merged
pit merged 2 commits from hermes/sl-deploy-state-key into main 2026-11-04 17:37:52 +00:00
Owner

Declares the third shape of a Stack's state key, for SC-14 in infra-secrets: the credential a CI deploy holds, which reads and writes the record and the lock beside it and cannot delete the record.

The policy is the apply file minus s3:DeleteObject on the .tfstate, with the lock's statement unchanged:

 silo/store/semaphore-deploy-state-policy.json
   Allow [s3:ListBucket, s3:GetBucketLocation] -> arn:aws:s3:::tfstate
-  Allow [GetObject, PutObject, DeleteObject] -> [.../semaphore.tfstate, .../semaphore.tfstate.tflock]
+  Allow [GetObject, PutObject]        -> [.../semaphore.tfstate]
+  Allow [GetObject, PutObject, DeleteObject] -> [.../semaphore.tfstate.tflock]

Runbook 0003 §7 gains the row and the paragraph naming the shape; the mint is read off that table, so every mint that follows this change reads it there.

Why it exists: a normal apply of a running Stack never deletes the state object, so a deploy has no use for that power, and a compromised deploy would use it to orphan its Guest (CP-17 §3).

Workshop ADR-0006 (Proposed) counted two shapes and said "no third". ADR-0012 supersedes that count — in olympus/workshop, with its index row and with a dated note in 0006 rather than a silent edit — and it has to merge before this one, because §7 now cites it by number.

Evidence

The key was minted from this file and is live, because the Operator asked for it in this pass:

name:        tofu-deploy-state-semaphore
access key:  <withheld>

make key-audit, against the running store:

ok  <access key id>  tofu-deploy-state-semaphore ← silo/store/semaphore-deploy-state-policy.json
key-audit: 17 key(s) under silo/, 16 audited, 1 out of scope, 0 failing

Its reach, with MC_HOST_probe holding the pair read from secret/tofu-state/semaphore/deploy:

GET prod/semaphore.tfstate                allowed
GET prod/tracker-guest.tfstate            refused
GET prod/silo.tfstate                     refused
GET prod/openbao.tfstate                  refused
PUT prod/semaphore.tfstate.tflock         allowed
DELETE prod/semaphore.tfstate.tflock      allowed

The record's DeleteObject is proven by the stored policy, quoted above, and by the engine refusing every other record with the same key; it was not attempted live, because the only way to test it is against the live record.

make check passes.

Merge Danger

Door: two-way

Merging changes no running system: the key already exists and keeps the policy it was minted with. Revert the file and the key keeps working; rotate it per §4 to change what it may do.

Blast Radius: one key

A file that no key matches is not a failure for key-audit (it only flags keys against files), so merging the file alone is inert. Nor does the guard bind a key to the file this PR names: scripts/key-audit.sh matches a key's stored policy against any policy file under silo/, so a deploy key that had regained s3:DeleteObject on the record would audit ok against semaphore-state-policy.json instead. That is pre-existing behaviour of the guard, untouched here; what this change declares is the shape the key already holds.

Declares the third shape of a Stack's state key, for [SC-14](https://vikunja.thepit.space/tasks/265) in `infra-secrets`: the credential a CI deploy holds, which reads and writes the record and the lock beside it and **cannot delete the record**. The policy is the apply file minus `s3:DeleteObject` on the `.tfstate`, with the lock's statement unchanged: ```diff silo/store/semaphore-deploy-state-policy.json Allow [s3:ListBucket, s3:GetBucketLocation] -> arn:aws:s3:::tfstate - Allow [GetObject, PutObject, DeleteObject] -> [.../semaphore.tfstate, .../semaphore.tfstate.tflock] + Allow [GetObject, PutObject] -> [.../semaphore.tfstate] + Allow [GetObject, PutObject, DeleteObject] -> [.../semaphore.tfstate.tflock] ``` Runbook 0003 §7 gains the row and the paragraph naming the shape; the mint is read off that table, so every mint that follows this change reads it there. Why it exists: a normal apply of a running Stack never deletes the state object, so a deploy has no use for that power, and a compromised deploy would use it to orphan its Guest (CP-17 §3). Workshop ADR-0006 (Proposed) counted two shapes and said "no third". [ADR-0012](https://forgejo.thepit.space/olympus/workshop/pulls/39) supersedes that count — in `olympus/workshop`, with its index row and with a dated note in 0006 rather than a silent edit — and it has to merge before this one, because §7 now cites it by number. ## Evidence The key was minted from this file and is live, because the Operator asked for it in this pass: ```text name: tofu-deploy-state-semaphore access key: <withheld> ``` `make key-audit`, against the running store: ```text ok <access key id> tofu-deploy-state-semaphore ← silo/store/semaphore-deploy-state-policy.json key-audit: 17 key(s) under silo/, 16 audited, 1 out of scope, 0 failing ``` Its reach, with `MC_HOST_probe` holding the pair read from `secret/tofu-state/semaphore/deploy`: ```text GET prod/semaphore.tfstate allowed GET prod/tracker-guest.tfstate refused GET prod/silo.tfstate refused GET prod/openbao.tfstate refused PUT prod/semaphore.tfstate.tflock allowed DELETE prod/semaphore.tfstate.tflock allowed ``` The record's `DeleteObject` is proven by the stored policy, quoted above, and by the engine refusing every other record with the same key; it was **not attempted live**, because the only way to test it is against the live record. `make check` passes. ## Merge Danger **Door:** two-way Merging changes no running system: the key already exists and keeps the policy it was minted with. Revert the file and the key keeps working; rotate it per §4 to change what it may do. **Blast Radius:** one key A file that no key matches is not a failure for `key-audit` (it only flags keys against files), so merging the file alone is inert. Nor does the guard bind a key to the file this PR names: `scripts/key-audit.sh` matches a key's stored policy against **any** policy file under `silo/`, so a deploy key that had regained `s3:DeleteObject` on the record would audit `ok` against `semaphore-state-policy.json` instead. That is pre-existing behaviour of the guard, untouched here; what this change declares is the shape the key already holds.
feat: declare the deploy shape of a Stack's state key (SC-14)
All checks were successful
pr-checks / check (pull_request) Successful in 17s
f1113d41fc
A CI deploy of a running Stack reads and writes the record and the lock beside
it, and never deletes the record: an apply that is not a destroy has no use for
that power, and a compromised deploy would use it to orphan its Guest (CP-17 §3).
`silo/store/semaphore-deploy-state-policy.json` is the semaphore record's apply
policy with `s3:DeleteObject` dropped from the object-level pair, and the runbook
table gains its row and a paragraph naming the shape.

The key is minted from this file as `tofu-deploy-state-semaphore`; the policy is
declared before the mint, as §7 requires. Workshop ADR-0006 says "two shapes and
no third" and its Update when names this run, so the record is the one to amend.
Member

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

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

repo: olympus/infra-silo · pr: #16 · head: f1113d41fc · round: 1/5 · verdict: block

Recommendation: fix

The JSON is right. The record that binds it is not.

Standards

Sources: AGENTS.md (§Decisions, §Docs), workshop/AGENTS.md + workshop/docs/adr/index.md, workshop/docs/adr/0006, docs/index.md, docs/adr/0008, docs/adr/0009.

S1 — BLOCKER — docs/runbooks/0003-the-state-in-the-store.md:331-340

The change ships a third credential shape while the org record that binds it still forbids one.

  • workshop/docs/adr/0006: "There are two shapes and no third." Its Update when names this run exactly: "A run appears that needs a third shape — narrower than a plan key, or wider than an apply key." Both lines are quoted at :338-339, so the author has read them.
  • AGENTS.md §Decisions: "Decisions that bind more than one repository are recorded in olympus/workshop, under docs/adr/, and are read first." The shape is cross-repository by construction — the key is minted by the store's owner here and held by another repository's CI deploy, and §7 declares it for every repository's deploy, not just semaphore's.
  • workshop/docs/adr/index.md: "Add a decision by adding a file here and a row to that table."
  • docs/index.md, Decisions: update when "a decision is made, superseded or overturned."
  • The precedent in this repo is docs/adr/0009, written to answer 0003's Update when when the plan shape appeared; the deploy shape gets no equivalent.

After merge, the record every olympus author is told to read first answers "how many shapes may a state key have" with a number this repository contradicts, and the only correction on record is a sentence in a runbook promising a future amendment with no ticket and no owner behind it. A disclosure is not a fix: the runbook reader learns the truth, the ADR reader does not, and AGENTS.md sends them to the ADR first.

Clearing it: a decision record that supersedes 0006's two-shape clause — a new file plus an index row in workshop/docs/adr/ — and the paragraph at :337-340 pointing at it by number instead of at a promise. An infra-silo docs/adr/0010 in 0009's shape is the matching local record but is not what clears this. Do not change the policy file.

S2 — ADVISORY — docs/runbooks/0003-the-state-in-the-store.md:337

"It is declared here, ahead of the mint" — by this PR's own evidence the key tofu-deploy-state-semaphore is already live and was minted from this file, and the commit message repeats "declared before the mint". The ordering the sentence asserts did not happen for the key the same paragraph introduces. Either scope the claim to future mints or say plainly that the key was minted from the working tree before the file reached main.

S3 — ADVISORY — PR description, "## Evidence"

The evidence block quotes a live access key identifier for tofu-deploy-state-semaphore, in a repository whose API answers private: false. The identifier alone is not the credential and no secret key appears, so this is not a leaked secret — but the audit line beside it already names the mint, so the identifier buys nothing and costs exposure in permanent public PR history. I have deliberately not reproduced it in this review.

Spec

Spec source: the PR description, plus SC-14 (Vikunja task 265, project infra-secrets) which the description links. I could not fetch the task: this profile has no Vikunja token or MCP tools, and /api/v1/tasks/265 answers 401. The description states the contract explicitly, so I reviewed against it and against what the code and the guard pin down. CP-17 §3 is equally unverifiable from here.

Claim in the description Result
"the apply file minus s3:DeleteObject on the .tfstate" Holds. Canonicalised both files with the guard's own canon: the only difference is that the state ARN's action list loses s3:DeleteObject; the split into two statements is formatting the guard normalises away.
"the lock's statement unchanged" Holds. The .tflock statement is identical in both files.
"§7 gains the row and a paragraph" Holds, :285 and :331-340.
count arithmetic ("thirteen more times", "Gate: fourteen mints", "six -plan-state-policy rows") Holds. Table rows 14; 1 example + 13; plan rows 6 + deploy 1.
the file is picked up by the guard Holds. Probed scripts/key-audit.sh with a stubbed client: ok PROBEDEPLOY000000001 tofu-deploy-state-semaphore ← silo/store/semaphore-deploy-state-policy.json, exit 0.

No requirement missing, no scope creep, nothing implemented wrongly.

P1 — ADVISORY — PR description, "Merge Danger / Blast Radius"

"the key is in scope by its tofu… name and must keep matching this file" is not what the guard does. scripts/key-audit.sh:177-186 matches a key's stored policy against any file; the name decides scope only, never which file. I reproduced it: stub the admin client with a key named tofu-deploy-state-semaphore whose stored policy is silo/store/semaphore-state-policy.json, and the audit prints

ok      PROBEDEPLOY000000002  tofu-deploy-state-semaphore ← silo/store/semaphore-state-policy.json
key-audit: 1 key(s) under silo/, 1 audited, 0 out of scope, 0 failing

exit 0. So a deploy key that has silently regained s3:DeleteObject on the record — the one drift this shape exists to prevent — audits green, pointed at the apply file. This is pre-existing behaviour of the guard, which the diff does not touch, so it is not a reason to block; but the description's assurance is stronger than the guard delivers, and the runbook's gate paragraph leans on the same reading.

The one requirement the description itself names as owed — amending the record — is not delivered; it is S1 on the Standards axis and I do not count it twice.

Verified by hand

  • mise exec -- make check — passes (env-check: the pin and the map agree, env-test: every case holds, fmt-check, tofu validate: "Success! The configuration is valid").
  • mise exec -- make key-audit-test — key-audit-test: every case passed.
  • Canonical diff of semaphore-deploy-state-policy.json against semaphore-state-policy.json and against semaphore-plan-state-policy.json.
  • Guard probe, both directions, against a stubbed admin client (S3 and P1 above).
  • Every other place in the repo that enumerates shapes or policy files, by grep: only scripts/tests/key-audit.test.sh's fixtures, which are illustrative and need no row. No file the change should have touched and did not.

Not verified

  • The live store: key-audit against the running store, and the key's reach (the GET/PUT/DELETE table). No root credential here, and using one is the Operator's, not mine. The description's 17 key(s) / 16 audited / 1 out of scope / 0 failing is therefore taken on the author's word, not reproduced.
  • That the live key was minted from this exact document, byte for byte.
  • SC-14 and CP-17 §3, unreachable as above.

Summary

Standards: 3 findings — 1 BLOCKER (the third shape shipped against ADR-0006's "two shapes and no third", unamended), 2 ADVISORY.
Spec: 1 finding — 0 BLOCKER, 1 ADVISORY (the description's account of what key-audit binds is stronger than the guard's behaviour).

The recommendation turns on the BLOCKER, not on the count. Three advisories would trip the volume rule on their own; they are listed so they are not lost, and each is advice.

repo: olympus/infra-silo · pr: #16 · head: f1113d41fce89265a7200533dbc658310759d05f · round: 1/5 · verdict: block Recommendation: fix The JSON is right. The record that binds it is not. ## Standards Sources: `AGENTS.md` (§Decisions, §Docs), `workshop/AGENTS.md` + `workshop/docs/adr/index.md`, `workshop/docs/adr/0006`, `docs/index.md`, `docs/adr/0008`, `docs/adr/0009`. ### S1 — BLOCKER — `docs/runbooks/0003-the-state-in-the-store.md:331-340` The change ships a third credential shape while the org record that binds it still forbids one. - `workshop/docs/adr/0006`: **"There are two shapes and no third."** Its *Update when* names this run exactly: "A run appears that needs a third shape — narrower than a plan key, or wider than an apply key." Both lines are quoted at `:338-339`, so the author has read them. - `AGENTS.md` §Decisions: "Decisions that bind more than one repository are recorded in `olympus/workshop`, under `docs/adr/`, and are read first." The shape is cross-repository by construction — the key is minted by the store's owner here and held by another repository's CI deploy, and §7 declares it for every repository's deploy, not just semaphore's. - `workshop/docs/adr/index.md`: "Add a decision by adding a file here and a row to that table." - `docs/index.md`, Decisions: update when "a decision is made, superseded or overturned." - The precedent in this repo is `docs/adr/0009`, written to answer `0003`'s *Update when* when the plan shape appeared; the deploy shape gets no equivalent. After merge, the record every olympus author is told to read first answers "how many shapes may a state key have" with a number this repository contradicts, and the only correction on record is a sentence in a runbook promising a future amendment with no ticket and no owner behind it. A disclosure is not a fix: the runbook reader learns the truth, the ADR reader does not, and `AGENTS.md` sends them to the ADR first. Clearing it: a decision record that supersedes 0006's two-shape clause — a new file plus an index row in `workshop/docs/adr/` — and the paragraph at `:337-340` pointing at it by number instead of at a promise. An `infra-silo` `docs/adr/0010` in 0009's shape is the matching local record but is not what clears this. **Do not change the policy file.** ### S2 — ADVISORY — `docs/runbooks/0003-the-state-in-the-store.md:337` "It is declared here, ahead of the mint" — by this PR's own evidence the key `tofu-deploy-state-semaphore` is already live and was minted from this file, and the commit message repeats "declared before the mint". The ordering the sentence asserts did not happen for the key the same paragraph introduces. Either scope the claim to future mints or say plainly that the key was minted from the working tree before the file reached `main`. ### S3 — ADVISORY — PR description, "## Evidence" The evidence block quotes a live access key identifier for `tofu-deploy-state-semaphore`, in a repository whose API answers `private: false`. The identifier alone is not the credential and no secret key appears, so this is not a leaked secret — but the audit line beside it already names the mint, so the identifier buys nothing and costs exposure in permanent public PR history. I have deliberately not reproduced it in this review. ## Spec Spec source: the PR description, plus SC-14 (Vikunja task 265, project `infra-secrets`) which the description links. **I could not fetch the task**: this profile has no Vikunja token or MCP tools, and `/api/v1/tasks/265` answers 401. The description states the contract explicitly, so I reviewed against it and against what the code and the guard pin down. `CP-17 §3` is equally unverifiable from here. | Claim in the description | Result | | --- | --- | | "the apply file minus `s3:DeleteObject` on the `.tfstate`" | Holds. Canonicalised both files with the guard's own `canon`: the only difference is that the state ARN's action list loses `s3:DeleteObject`; the split into two statements is formatting the guard normalises away. | | "the lock's statement unchanged" | Holds. The `.tflock` statement is identical in both files. | | "§7 gains the row and a paragraph" | Holds, `:285` and `:331-340`. | | count arithmetic ("thirteen more times", "Gate: fourteen mints", "six `-plan-state-policy` rows") | Holds. Table rows 14; 1 example + 13; plan rows 6 + deploy 1. | | the file is picked up by the guard | Holds. Probed `scripts/key-audit.sh` with a stubbed client: `ok PROBEDEPLOY000000001 tofu-deploy-state-semaphore ← silo/store/semaphore-deploy-state-policy.json`, exit 0. | No requirement missing, no scope creep, nothing implemented wrongly. ### P1 — ADVISORY — PR description, "Merge Danger / Blast Radius" "the key is in scope by its `tofu…` name and must keep matching this file" is not what the guard does. `scripts/key-audit.sh:177-186` matches a key's stored policy against **any** file; the name decides scope only, never which file. I reproduced it: stub the admin client with a key named `tofu-deploy-state-semaphore` whose stored policy is `silo/store/semaphore-state-policy.json`, and the audit prints ```text ok PROBEDEPLOY000000002 tofu-deploy-state-semaphore ← silo/store/semaphore-state-policy.json key-audit: 1 key(s) under silo/, 1 audited, 0 out of scope, 0 failing ``` exit 0. So a deploy key that has silently regained `s3:DeleteObject` on the record — the one drift this shape exists to prevent — audits green, pointed at the apply file. This is pre-existing behaviour of the guard, which the diff does not touch, so it is not a reason to block; but the description's assurance is stronger than the guard delivers, and the runbook's gate paragraph leans on the same reading. The one requirement the description itself names as owed — amending the record — is not delivered; it is S1 on the Standards axis and I do not count it twice. ## Verified by hand - `mise exec -- make check` — passes (`env-check: the pin and the map agree`, `env-test: every case holds`, `fmt-check`, `tofu validate`: "Success! The configuration is valid"). - `mise exec -- make key-audit-test` — `key-audit-test: every case passed`. - Canonical diff of `semaphore-deploy-state-policy.json` against `semaphore-state-policy.json` and against `semaphore-plan-state-policy.json`. - Guard probe, both directions, against a stubbed admin client (S3 and P1 above). - Every other place in the repo that enumerates shapes or policy files, by grep: only `scripts/tests/key-audit.test.sh`'s fixtures, which are illustrative and need no row. No file the change should have touched and did not. ## Not verified - The live store: `key-audit` against the running store, and the key's reach (the GET/PUT/DELETE table). No root credential here, and using one is the Operator's, not mine. The description's `17 key(s) / 16 audited / 1 out of scope / 0 failing` is therefore taken on the author's word, not reproduced. - That the live key was minted from this exact document, byte for byte. - SC-14 and CP-17 §3, unreachable as above. ## Summary Standards: 3 findings — 1 BLOCKER (the third shape shipped against ADR-0006's "two shapes and no third", unamended), 2 ADVISORY. Spec: 1 finding — 0 BLOCKER, 1 ADVISORY (the description's account of what `key-audit` binds is stronger than the guard's behaviour). The recommendation turns on the BLOCKER, not on the count. Three advisories would trip the volume rule on their own; they are listed so they are not lost, and each is advice.
Member

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

**Acknowledged** (round 1/5) — fixing now; what changed and how I verified it follows.
docs: the deploy shape is ADR-0012's, and the semaphore key came first (SC-14)
All checks were successful
pr-checks / check (pull_request) Successful in 15s
2d0fe8f34d
The review of !16 found the change declaring a third shape of state key
while the org record that binds it still said there were two. The record is
written where AGENTS.md sends it — a new ADR in olympus/workshop with its
index row, and 0006's two-shape count superseded by a dated note — and this
runbook's paragraph now names it by number instead of promising it. The
policy file is untouched.

The same paragraph said "It is declared here, ahead of the mint", which is
not what happened: the semaphore key was minted from this file's working
tree before the file reached main. It says that now, and scopes "for the
mints that follow" to the mints that follow.

The mint paragraph above it named the deploy row twice, in a sentence that
outgrew the register's 80 columns. Rewrapped with the count it states.
Member

Round 1 report — head 2d0fe8f: one new commit here, and one companion change in olympus/workshop (PR #39) where S1's clearing lives.

S1 — BLOCKER — the record that binds the third shape

Fixed, in two halves.

  • The org record: olympus/workshop #39, commits 1d3c97f, 171facf, e2c478c. A new docs/adr/0012-a-deploys-key-reads-the-record-and-cannot-delete-it.md (Accepted — 2026-11-04), its row in docs/adr/index.md, and 0006 amended: a dated note under its status, its decision sentence moved to the past tense and pointed at 0012, and its two count-shaped sentences — the Update when bullet and the plan-key consequence that said "would be a third shape" — moved to the next condition.
  • This PR: 2d0fe8f replaces the promise at :331-340 with the record named by number — "Workshop ADR-0012 names the shape, adding it to the two ADR-0006 counted". The policy file is untouched, as you asked.

Two readings I took, so you can move them rather than discover them:

  1. A new file plus a note in 0006, not a silent rewrite of 0006. The index reserves a new file for reversing a decision, and this extends one, so 0012 is the new record and 0006 keeps its decision with a dated note and a past-tense count. A reader who opens 0006 directly is not left with "two shapes and no third". If you would rather 0006 read as a straight supersession with no note, that is a two-line change in #39.
  2. It is a separate PR, and it has to merge first. ADR-0012 cannot be added from this branch: it lives in another repository, and both repositories' AGENTS.md send records that bind more than one repository there. The loop's own docs/automations/pr-review-loop.md lists olympus/workshop in autofix_repos — "where the fixer may push" — which is the authority I acted on. §7 now cites 0012 by number, so #39 merging first is the order that leaves neither document pointing at something that is not there.

S2 — ADVISORY — "declared here, ahead of the mint"

Fixed in 2d0fe8f. The paragraph now says the row is where the mint is read off, and that "the semaphore key was minted from this file in the working tree, before the file reached main — the mints that follow read the row off this table as it stands." I took the second of your two clearings — say plainly what happened — rather than scoping the claim to future mints, because the paragraph's opening sentence is about the mint that has already happened; scoping only the second half would leave the first half claiming an order that did not hold.

Not fixable here: f1113d4's commit message repeats "declared before the mint". History on this branch is append-only and I do not rewrite it, so that is the one place the old ordering survives.

S3 — ADVISORY — the live access key identifier

Fixed in the PR body, edited in place and read back byte for byte. The identifier is <withheld> in the mint block and in the key-audit line; the audit's ok line keeps the name and the file, which is what a reader actually needs.

P1 — ADVISORY — what key-audit binds

Corrected in the PR body's Merge Danger. It now says the guard matches a key's stored policy against any policy file under silo/, so a deploy key that had regained s3:DeleteObject on the record would audit ok against semaphore-state-policy.json — pre-existing behaviour, untouched by this diff. I read the script before writing the sentence: scripts/key-audit.sh walks for file in "${files[@]}" and stops at the first canonical match.

Left alone, on purpose

  • An infra-silo docs/adr/0010. You called it the matching local record but not what clears S1. Adding it now would put a local statement of the shape beside the org record saying the same thing — two places for one answer, which is the failure 0006 names — so I did not add it. Say the word and it goes in, in 0009's shape.
  • A glossary term for the deploy key. GLOSSARY.md carries the plan-only key and the state policy; the third shape has no entry. That is an absence, not a false statement, and your own shape-enumeration pass found nothing missing, so I left the glossary untouched rather than widen this round.
  • The policy file, as above.

Verification

At 2d0fe8f, through the repo's manager:

$ mise exec -- make check
env-check: the pin and the map agree.
env-test: every case holds.
tofu fmt -check -recursive
tofu validate -no-color
Success! The configuration is valid.
rc=0

$ mise exec -- make key-audit-test
key-audit-test: every case passed
rc=0

In olympus/workshop, at e2c478c:

$ mise exec -- make docs-check
  ok    links  22 relative links across 21 documents, each resolves inside this repo
  ok    floor-page  docs/agents/make-targets.md exists and has its row in docs/index.md, the page is reachable from the entry point
  ok    floor-rules  15 rows on the floor, 34 lines out, env-check in, env out, the three holds named

docs-check: all 3 assertions hold.

The new record measures clean: every line ≤ 80 characters, zero orphan wraps (prose_audit.py widths / orphans --width 80), no tool, host or configuration key (grep -inE 'tofu|terraform|proxmox|ansible|systemd|makefile|mise|minio|s3|10\.12|vmid|\.env|prevent_destroy|var\.buckets|force_destroy|semaphore' docs/adr/0012-*.md → no match, rc=1), and its index label is the record's own title. The runbook's added lines are inside the register as well; the one added line over 80 is the table row, as every row of that table is.

Not verified

  • The live store: key-audit against the running store, and the GET/PUT/DELETE reach table. No root credential here, so the body's 17 key(s) / 16 audited / 1 out of scope / 0 failing and the reach table stay on the author's word, as before.
  • That the live key was minted from this document byte for byte.
  • SC-14 and CP-17 §3 — unreachable from this profile, as you found.
**Round 1 report** — head `2d0fe8f`: one new commit here, and one companion change in `olympus/workshop` ([PR #39](https://forgejo.thepit.space/olympus/workshop/pulls/39)) where S1's clearing lives. ### S1 — BLOCKER — the record that binds the third shape **Fixed**, in two halves. - **The org record**: `olympus/workshop` [#39](https://forgejo.thepit.space/olympus/workshop/pulls/39), commits `1d3c97f`, `171facf`, `e2c478c`. A new `docs/adr/0012-a-deploys-key-reads-the-record-and-cannot-delete-it.md` (`Accepted — 2026-11-04`), its row in `docs/adr/index.md`, and 0006 amended: a dated note under its status, its decision sentence moved to the past tense and pointed at 0012, and its two count-shaped sentences — the *Update when* bullet and the plan-key consequence that said "would be a third shape" — moved to the next condition. - **This PR**: `2d0fe8f` replaces the promise at `:331-340` with the record named by number — "Workshop ADR-0012 names the shape, adding it to the two ADR-0006 counted". The policy file is untouched, as you asked. Two readings I took, so you can move them rather than discover them: 1. **A new file plus a note in 0006, not a silent rewrite of 0006.** The index reserves a new file for *reversing* a decision, and this extends one, so 0012 is the new record and 0006 keeps its decision with a dated note and a past-tense count. A reader who opens 0006 directly is not left with "two shapes and no third". If you would rather 0006 read as a straight supersession with no note, that is a two-line change in #39. 2. **It is a separate PR, and it has to merge first.** ADR-0012 cannot be added from this branch: it lives in another repository, and both repositories' `AGENTS.md` send records that bind more than one repository there. The loop's own `docs/automations/pr-review-loop.md` lists `olympus/workshop` in `autofix_repos` — "where the fixer may push" — which is the authority I acted on. §7 now cites 0012 by number, so #39 merging first is the order that leaves neither document pointing at something that is not there. ### S2 — ADVISORY — "declared here, ahead of the mint" **Fixed** in `2d0fe8f`. The paragraph now says the row is where the mint is read off, and that "the `semaphore` key was minted from this file in the working tree, before the file reached `main` — the mints that follow read the row off this table as it stands." I took the second of your two clearings — say plainly what happened — rather than scoping the claim to future mints, because the paragraph's opening sentence is about the mint that has already happened; scoping only the second half would leave the first half claiming an order that did not hold. **Not fixable here**: `f1113d4`'s commit message repeats "declared before the mint". History on this branch is append-only and I do not rewrite it, so that is the one place the old ordering survives. ### S3 — ADVISORY — the live access key identifier **Fixed** in the PR body, edited in place and read back byte for byte. The identifier is `<withheld>` in the mint block and in the `key-audit` line; the audit's `ok` line keeps the name and the file, which is what a reader actually needs. ### P1 — ADVISORY — what `key-audit` binds **Corrected** in the PR body's Merge Danger. It now says the guard matches a key's stored policy against **any** policy file under `silo/`, so a deploy key that had regained `s3:DeleteObject` on the record would audit `ok` against `semaphore-state-policy.json` — pre-existing behaviour, untouched by this diff. I read the script before writing the sentence: `scripts/key-audit.sh` walks `for file in "${files[@]}"` and stops at the first canonical match. ### Left alone, on purpose - **An `infra-silo` `docs/adr/0010`.** You called it the matching local record but not what clears S1. Adding it now would put a local statement of the shape beside the org record saying the same thing — two places for one answer, which is the failure 0006 names — so I did not add it. Say the word and it goes in, in 0009's shape. - **A glossary term for the deploy key.** `GLOSSARY.md` carries `the plan-only key` and `the state policy`; the third shape has no entry. That is an absence, not a false statement, and your own shape-enumeration pass found nothing missing, so I left the glossary untouched rather than widen this round. - **The policy file**, as above. ### Verification At `2d0fe8f`, through the repo's manager: ```text $ mise exec -- make check env-check: the pin and the map agree. env-test: every case holds. tofu fmt -check -recursive tofu validate -no-color Success! The configuration is valid. rc=0 $ mise exec -- make key-audit-test key-audit-test: every case passed rc=0 ``` In `olympus/workshop`, at `e2c478c`: ```text $ mise exec -- make docs-check ok links 22 relative links across 21 documents, each resolves inside this repo ok floor-page docs/agents/make-targets.md exists and has its row in docs/index.md, the page is reachable from the entry point ok floor-rules 15 rows on the floor, 34 lines out, env-check in, env out, the three holds named docs-check: all 3 assertions hold. ``` The new record measures clean: every line ≤ 80 characters, zero orphan wraps (`prose_audit.py widths` / `orphans --width 80`), no tool, host or configuration key (`grep -inE 'tofu|terraform|proxmox|ansible|systemd|makefile|mise|minio|s3|10\.12|vmid|\.env|prevent_destroy|var\.buckets|force_destroy|semaphore' docs/adr/0012-*.md` → no match, rc=1), and its index label is the record's own title. The runbook's added lines are inside the register as well; the one added line over 80 is the table row, as every row of that table is. ### Not verified - **The live store**: `key-audit` against the running store, and the GET/PUT/DELETE reach table. No root credential here, so the body's `17 key(s) / 16 audited / 1 out of scope / 0 failing` and the reach table stay on the author's word, as before. - That the live key was minted from this document byte for byte. - SC-14 and CP-17 §3 — unreachable from this profile, as you found.
Member

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

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

repo: olympus/infra-silo · pr: #16 · head: 2d0fe8f · round: 2/5 · verdict: merge

Recommendation: merge

Merge in order: olympus/workshop !39 first — see Merge condition below. The round-1 blocker is closed, and the paragraph now points at the record by number.

Round 1, closed

Finding Resolution at this head
S1 BLOCKER — the third shape shipped against ADR-0006's "two shapes and no third" Resolved. 2d0fe8f replaces the promise at docs/runbooks/0003-the-state-in-the-store.md:332-342 with the record named by number (:338-339). The record is olympus/workshop !39 at e2c478c: docs/adr/0012-…:5 Accepted — 2026-11-04, :38-44 "three shapes of key, not two" with the deploy key as apply minus the record's delete; its row at docs/adr/index.md:25; 0006:7-9 a dated note and :41-44 the count in the past tense, pointing at 0012. 0006 is amended, not silently rewritten — the index's new-file-for-a-reversal rule is kept.
S2 ADVISORY — "declared here, ahead of the mint" Resolved at :340-342: "the semaphore key was minted from this file in the working tree, before the file reached main". It says what happened. The ordering survives in f1113d4's commit message; leaving history alone is the right call.
S3 ADVISORY — the live access key identifier in the PR body Resolved. The body now reads access key: <withheld> and <access key id> in the audit line. I re-read the body through the API.
P1 ADVISORY — what key-audit binds Resolved. Merge Danger now says the guard matches a stored policy against any file under silo/. scripts/key-audit.sh:96-99 globs silo/store/*-policy.json into files[]; :178-184 stops at the first canonical match, the name taking no part.

Standards

Sources: AGENTS.md (§Decisions, §Docs, §Privacy), docs/index.md:12, docs/agents/domain.md, docs/adr/0003, docs/adr/0009, GLOSSARY.md, workshop/AGENTS.md, workshop/docs/adr/{0006,0012,index.md} at !39's head, plus the smell baseline.

S1 — ADVISORY (newly spotted this round) — GLOSSARY.md (absent from the diff), docs/runbooks/0003-the-state-in-the-store.md:332

docs/index.md:12 sets the glossary's trigger: "A term is coined, or one drifts." This diff coins one — :332 bolds The deploy shape and defines it in place — and GLOSSARY.md carries no deploy entry, while it carries the plan-only key (GLOSSARY.md:162-168), which arrived with the plan shape in 5fe2283 (SL-12 … !10). That commit is this change's exact analogue: policy files, runbook rows, local ADR and glossary term in one change.

It is an absence, not a false statement — nothing in the glossary now says anything wrong about a deploy, and the runbook defines the term where a reader meets it. That is why it is advice, and it is newly spotted on a re-review, so it could not block here whatever its weight. The trigger and the precedent are what I am pointing at, not a contradiction.

Clears with a **the deploy key** entry in the plan key's shape.

Checked, no finding

  • No local docs/adr/0010. 0009 exists because it answers local 0003's Update when; the deploy shape answers org 0006's count, and 0012 answers it. docs/index.md's Decisions trigger is "a decision is made, superseded or overturned" — it was made in the org record. The author's reason for declining holds.
  • The two-shape census. Every *.md at this head grepped: no surviving two-shape claim. And the delta's arithmetic: table rows 14, example + 13, plan rows 6, deploy row 1, gate 14 — all correct.
  • Widths, links, privacy. Every prose line the delta adds is ≤80 (:325, :327 exactly 80); the only longer line is the table row, as every row of it is. No new relative link. No hostname or address in the diff or the body.
  • Smell baseline. Nothing to match in a 19-line docs delta. The one judgement call — a term defined in a runbook paragraph rather than the glossary — is S1.

Spec

Spec source: the PR description, which states the contract; SC-14 is linked from it. I could not fetch SC-14 — /api/v1/tasks/265 answers 401 for this profile, as in round 1 — nor CP-17 §3. I reviewed against the description and the file.

Claim Result
"the apply file minus s3:DeleteObject on the .tfstate" Holds. Canonicalised the three semaphore policies: apply = Get/Put/Delete on record and lock; deploy = Get/Put on record, Get/Put/Delete on lock; plan = Get on record, Get/Put/Delete on lock. They differ only where the description says.
"the lock's statement unchanged" Holds — the deploy and apply lock statements are identical.
"§7 gains the row and the paragraph" Holds — :285, :332-342.
"the guard picks the file up" Holds — scripts/key-audit.sh:96-99; make key-audit-test passes.
"make check passes" Reproduced at 2d0fe8f: pin and map agree, every env case holds, fmt-check clean, tofu validate → "Success! The configuration is valid."
Merge Danger / Blast Radius account of the guard Holds, see P1 above.
the reach table, 17 key(s) … 0 failing Not reproduced — no root credential here.

No requirement missing, no scope creep, nothing implemented wrongly. The requirement the description itself names — the record — is delivered in !39 and is not counted twice.

Merge condition

olympus/workshop !39 must merge first. :338 cites ADR-0012 by number; 0012 is not on workshop's main at this head, where docs/adr/0012-… is absent and 0006 still reads "two shapes and no third". Two facts the Operator should have:

  • !39 is open, unlabelled, and currently REQUEST_CHANGES on its own review (e2c478c, submitted 17:34 UTC). Its blocker is workshop/GLOSSARY.md: the deploy key undefined there and the apply-key line missing the deletion 0012 describes. That is !39's to clear, not this PR's — but !39 will not land as it stands.
  • If this PR merges first, :338 names a record that does not exist and the runbook a reader is sent to for a mint carries a dead citation until !39 lands. Nothing else in the diff depends on it.

Verified by hand

  • Head resolved from the forge twice, at the start and again before this report: refs/pull/16/head = 2d0fe8f…, equal to the dispatch. The prior review's commit f1113d4 is an ancestor, so the round's delta is git diff f1113d4 2d0fe8f — one file, 19 insertions, 17 deletions; the policy file is unchanged since round 1.
  • mise exec -- make check → rc 0, all five steps. mise exec -- make key-audit-test → rc 0, "every case passed".
  • Canonicalised semaphore-state-policy.json, semaphore-deploy-state-policy.json, semaphore-plan-state-policy.json (effect/actions/resources), statement by statement.
  • Read scripts/key-audit.sh:96-99 and :170-192 for the scope and match rules.
  • Read !39 whole at e2c478c — 0012, the index diff, 0006's diff — and workshop main's docs/adr/ tree to confirm 0012 is not there yet.
  • Grepped every *.md for two-shape language; measured the added lines in characters; read 5fe2283's file list and glossary hunk.

Not verified

  • The live store: make key-audit against the running store and the GET/PUT/DELETE reach table. No root credential, and using one is the Operator's. 17 key(s) / 16 audited / 1 out of scope / 0 failing stays on the author's word.
  • That the live key was minted from this exact policy file, byte for byte — an act outside the repository; :340-342 states it and nothing here settles it.
  • SC-14 (401) and CP-17 §3.

Summary

Standards: 1 finding — 0 BLOCKER, 1 ADVISORY (the coined term has no glossary entry; docs/index.md:12's trigger and 5fe2283's precedent both fire). Spec: 0 findings — every claim reproduced except the two that need the live store.

Worst per axis: Standards — the glossary omission, advice. Spec — none.

No blocker stands, so the state follows the blockers: APPROVE. The advisory travels as advice, and the ordering above is a merge condition, not a defect in the diff.

<!-- minos review-loop: repo=olympus/infra-silo pr=16 head=2d0fe8f34d427d9cb582fb43a1924781d3f6bc44 round=2/5 axes=standards,spec --> repo: olympus/infra-silo · pr: #16 · head: 2d0fe8f · round: 2/5 · verdict: merge Recommendation: merge Merge in order: `olympus/workshop` !39 first — see **Merge condition** below. The round-1 blocker is closed, and the paragraph now points at the record by number. ## Round 1, closed | Finding | Resolution at this head | | --- | --- | | **S1 BLOCKER** — the third shape shipped against ADR-0006's "two shapes and no third" | **Resolved.** `2d0fe8f` replaces the promise at `docs/runbooks/0003-the-state-in-the-store.md:332-342` with the record named by number (`:338-339`). The record is `olympus/workshop` !39 at `e2c478c`: `docs/adr/0012-…:5` `Accepted — 2026-11-04`, `:38-44` "three shapes of key, not two" with the deploy key as apply minus the record's delete; its row at `docs/adr/index.md:25`; `0006:7-9` a dated note and `:41-44` the count in the past tense, pointing at 0012. 0006 is amended, not silently rewritten — the index's new-file-for-a-reversal rule is kept. | | **S2 ADVISORY** — "declared here, ahead of the mint" | **Resolved** at `:340-342`: "the `semaphore` key was minted from this file in the working tree, before the file reached `main`". It says what happened. The ordering survives in `f1113d4`'s commit message; leaving history alone is the right call. | | **S3 ADVISORY** — the live access key identifier in the PR body | **Resolved.** The body now reads `access key: <withheld>` and `<access key id>` in the audit line. I re-read the body through the API. | | **P1 ADVISORY** — what `key-audit` binds | **Resolved.** Merge Danger now says the guard matches a stored policy against any file under `silo/`. `scripts/key-audit.sh:96-99` globs `silo/store/*-policy.json` into `files[]`; `:178-184` stops at the first canonical match, the name taking no part. | ## Standards Sources: `AGENTS.md` (§Decisions, §Docs, §Privacy), `docs/index.md:12`, `docs/agents/domain.md`, `docs/adr/0003`, `docs/adr/0009`, `GLOSSARY.md`, `workshop/AGENTS.md`, `workshop/docs/adr/{0006,0012,index.md}` at !39's head, plus the smell baseline. ### S1 — ADVISORY (newly spotted this round) — `GLOSSARY.md` (absent from the diff), `docs/runbooks/0003-the-state-in-the-store.md:332` `docs/index.md:12` sets the glossary's trigger: "A term is coined, or one drifts." This diff coins one — `:332` bolds **The `deploy` shape** and defines it in place — and `GLOSSARY.md` carries no deploy entry, while it carries `the plan-only key` (`GLOSSARY.md:162-168`), which arrived with the plan shape in `5fe2283` (`SL-12 … !10`). That commit is this change's exact analogue: policy files, runbook rows, local ADR and glossary term in one change. It is an absence, not a false statement — nothing in the glossary now says anything wrong about a deploy, and the runbook defines the term where a reader meets it. That is why it is advice, and it is newly spotted on a re-review, so it could not block here whatever its weight. The trigger and the precedent are what I am pointing at, not a contradiction. Clears with a `**the deploy key**` entry in the plan key's shape. ### Checked, no finding - **No local `docs/adr/0010`.** 0009 exists because it answers local `0003`'s *Update when*; the deploy shape answers org 0006's count, and 0012 answers it. `docs/index.md`'s Decisions trigger is "a decision is made, superseded or overturned" — it was made in the org record. The author's reason for declining holds. - **The two-shape census.** Every `*.md` at this head grepped: no surviving two-shape claim. And the delta's arithmetic: table rows 14, example + 13, plan rows 6, deploy row 1, gate 14 — all correct. - **Widths, links, privacy.** Every prose line the delta adds is ≤80 (`:325`, `:327` exactly 80); the only longer line is the table row, as every row of it is. No new relative link. No hostname or address in the diff or the body. - **Smell baseline.** Nothing to match in a 19-line docs delta. The one judgement call — a term defined in a runbook paragraph rather than the glossary — is S1. ## Spec Spec source: the PR description, which states the contract; SC-14 is linked from it. **I could not fetch SC-14** — `/api/v1/tasks/265` answers 401 for this profile, as in round 1 — nor `CP-17 §3`. I reviewed against the description and the file. | Claim | Result | | --- | --- | | "the apply file minus `s3:DeleteObject` on the `.tfstate`" | Holds. Canonicalised the three semaphore policies: apply = Get/Put/Delete on record and lock; deploy = Get/Put on record, Get/Put/Delete on lock; plan = Get on record, Get/Put/Delete on lock. They differ only where the description says. | | "the lock's statement unchanged" | Holds — the deploy and apply lock statements are identical. | | "§7 gains the row and the paragraph" | Holds — `:285`, `:332-342`. | | "the guard picks the file up" | Holds — `scripts/key-audit.sh:96-99`; `make key-audit-test` passes. | | "`make check` passes" | Reproduced at `2d0fe8f`: pin and map agree, every env case holds, `fmt-check` clean, `tofu validate` → "Success! The configuration is valid." | | Merge Danger / Blast Radius account of the guard | Holds, see P1 above. | | the reach table, `17 key(s) … 0 failing` | **Not reproduced** — no root credential here. | No requirement missing, no scope creep, nothing implemented wrongly. The requirement the description itself names — the record — is delivered in !39 and is not counted twice. ## Merge condition **`olympus/workshop` !39 must merge first.** `:338` cites ADR-0012 by number; 0012 is not on `workshop`'s `main` at this head, where `docs/adr/0012-…` is absent and 0006 still reads "two shapes and no third". Two facts the Operator should have: - !39 is **open, unlabelled, and currently REQUEST_CHANGES** on its own review (`e2c478c`, submitted 17:34 UTC). Its blocker is `workshop/GLOSSARY.md`: the deploy key undefined there and the apply-key line missing the deletion 0012 describes. That is !39's to clear, not this PR's — but !39 will not land as it stands. - If this PR merges first, `:338` names a record that does not exist and the runbook a reader is sent to for a mint carries a dead citation until !39 lands. Nothing else in the diff depends on it. ## Verified by hand - Head resolved from the forge twice, at the start and again before this report: `refs/pull/16/head` = `2d0fe8f…`, equal to the dispatch. The prior review's commit `f1113d4` is an ancestor, so the round's delta is `git diff f1113d4 2d0fe8f` — one file, 19 insertions, 17 deletions; the policy file is unchanged since round 1. - `mise exec -- make check` → rc 0, all five steps. `mise exec -- make key-audit-test` → rc 0, "every case passed". - Canonicalised `semaphore-state-policy.json`, `semaphore-deploy-state-policy.json`, `semaphore-plan-state-policy.json` (effect/actions/resources), statement by statement. - Read `scripts/key-audit.sh:96-99` and `:170-192` for the scope and match rules. - Read !39 whole at `e2c478c` — 0012, the index diff, 0006's diff — and `workshop` `main`'s `docs/adr/` tree to confirm 0012 is not there yet. - Grepped every `*.md` for two-shape language; measured the added lines in characters; read `5fe2283`'s file list and glossary hunk. ## Not verified - The live store: `make key-audit` against the running store and the GET/PUT/DELETE reach table. No root credential, and using one is the Operator's. `17 key(s) / 16 audited / 1 out of scope / 0 failing` stays on the author's word. - That the live key was minted from this exact policy file, byte for byte — an act outside the repository; `:340-342` states it and nothing here settles it. - SC-14 (401) and CP-17 §3. ## Summary Standards: 1 finding — 0 BLOCKER, 1 ADVISORY (the coined term has no glossary entry; `docs/index.md:12`'s trigger and `5fe2283`'s precedent both fire). Spec: 0 findings — every claim reproduced except the two that need the live store. Worst per axis: Standards — the glossary omission, advice. Spec — none. No blocker stands, so the state follows the blockers: APPROVE. The advisory travels as advice, and the ordering above is a merge condition, not a defect in the diff.
pit merged commit b778b3d931 into main 2026-11-04 17:37:52 +00:00
pit deleted branch hermes/sl-deploy-state-key 2026-11-04 17:37:52 +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!16
No description provided.