make key-mint drops a state entry only on the store's no-such-key answer (SL-25) #31

Merged
pit merged 3 commits from hermes/SL-25-make-key-mint-drops-a-state-entry-when-t into main 2026-11-10 21:38:52 +00:00
Member

Implements SL-25

Summary

make key-mint read any non-zero exit of accesskey info as 'the store holds no key', with the client's stderr discarded, and dropped the state entry on that inference. A timeout, a denied credential and a server error all looked like a removed key, so a live key's record left the state and the create that followed was refused.

Only the store's own XMinioAdminNoSuchAccessKey now licenses the drop, read from the client's JSON envelope (.error.cause.error.Code). Any other answer refuses and names the client's error; an entry holding another access key is refused and kept; a run that dropped an entry and then failed names the address it dropped. Runbook 0003 section 7 says all three.

Evidence

  • Before: the head's test file against main's scripts/key-mint.sh gives key-mint-test: 29 case(s) failed. After: mise exec -- make key-mint-test gives key-mint-test: every case passed, 193 ok lines.
  • mise exec -- make check exits 0 at this head (58ac4d5): 357 ok lines in all, 232 of them at the left margin (env-check and env-test indent theirs), with validate printing Success! The configuration is valid. The worktree is clean afterwards.
  • The client's answer, measured with the pinned binary (mcli RELEASE.2026-09-16T00-00-00Z, checksum verified) driven against a stand-in that answers the way Silo answers a missing access key (ErrAdminNoSuchAccessKey, 404, at /minio/admin/v3/info-access-key): one JSON envelope on stdout, exit 1, Code XMinioAdminNoSuchAccessKey, or InternalError, or none at all for a transport error. The test stub answers that envelope byte for byte, and the real client through the real script ran end to end: the drop runs and a create's failure names the dropped address; answered InternalError, the run refuses and asks the state nothing.
  • Review round 1's two advisories, both taken (e956f13): the other-access-key refusal named the entry's own name, which the declaration always sets to the map's key (name = each.key), so it named the same key twice. It now says the keys differ in the access key alone when the names agree, with a case pinning that shape beside the cross-name one; and the ok count above is the whole one.
  • Review round 2's advisory, taken (58ac4d5): that rewrite lost the fallback for an entry whose state carries no name, so the refusal printed under the name ''. It now says the entry carries no name at all, and the stub's state.unnamed leaves the attribute out so a case pins the shape.

What I could not do. The ticket asks for the store's own answer, measured as root against PROD. I did not: an Agent does not fetch its environment here (docs/agents/workflow.md section 3: make env refuses a regular agent's class), and with no .env there was no root credential. What is measured is the pinned client's rendering of the store's own error, both read from the code at the pinned release (a missing access key on info-access-key answers ErrAdminNoSuchAccessKey for a user, a service account and an STS key alike). The read-only command to confirm it against PROD, and the full account, are in the handoff on SL-25.

Merge Danger

Door: two-way. A revert restores the old branch; no state, store or credential is touched by the merge, and the Target runs only when the Operator calls it.

Blast Radius: make key-mint.

The drop now needs the store's explicit no-such-key answer, so a transient read can no longer take a live key's entry out of the state, and the drop is refused when the entry holds a different access key. If the client's envelope ever stops carrying XMinioAdminNoSuchAccessKey, the mint refuses and says so rather than guessing.

Implements [SL-25](https://vikunja.thepit.space/tasks/308) ## Summary `make key-mint` read any non-zero exit of `accesskey info` as 'the store holds no key', with the client's stderr discarded, and dropped the state entry on that inference. A timeout, a denied credential and a server error all looked like a removed key, so a live key's record left the state and the create that followed was refused. Only the store's own `XMinioAdminNoSuchAccessKey` now licenses the drop, read from the client's JSON envelope (`.error.cause.error.Code`). Any other answer refuses and names the client's error; an entry holding another access key is refused and kept; a run that dropped an entry and then failed names the address it dropped. Runbook 0003 section 7 says all three. ## Evidence - **Before:** the head's test file against main's `scripts/key-mint.sh` gives `key-mint-test: 29 case(s) failed`. **After:** `mise exec -- make key-mint-test` gives `key-mint-test: every case passed`, 193 `ok` lines. - `mise exec -- make check` exits 0 at this head (`58ac4d5`): 357 `ok` lines in all, 232 of them at the left margin (`env-check` and `env-test` indent theirs), with `validate` printing `Success! The configuration is valid.` The worktree is clean afterwards. - **The client's answer, measured** with the pinned binary (`mcli RELEASE.2026-09-16T00-00-00Z`, checksum verified) driven against a stand-in that answers the way Silo answers a missing access key (`ErrAdminNoSuchAccessKey`, 404, at `/minio/admin/v3/info-access-key`): one JSON envelope on stdout, exit 1, `Code` `XMinioAdminNoSuchAccessKey`, or `InternalError`, or none at all for a transport error. The test stub answers that envelope byte for byte, and the real client through the real script ran end to end: the drop runs and a create's failure names the dropped address; answered `InternalError`, the run refuses and asks the state nothing. - **Review round 1's two advisories, both taken** (`e956f13`): the other-access-key refusal named the entry's own `name`, which the declaration always sets to the map's key (`name = each.key`), so it named the same key twice. It now says the keys differ in the access key alone when the names agree, with a case pinning that shape beside the cross-name one; and the `ok` count above is the whole one. - **Review round 2's advisory, taken** (`58ac4d5`): that rewrite lost the fallback for an entry whose state carries no name, so the refusal printed `under the name ''`. It now says the entry carries no name at all, and the stub's `state.unnamed` leaves the attribute out so a case pins the shape. **What I could not do.** The ticket asks for the store's own answer, measured as root against PROD. I did not: an Agent does not fetch its environment here (`docs/agents/workflow.md` section 3: `make env` refuses a regular agent's class), and with no `.env` there was no root credential. What is measured is the pinned client's rendering of the store's own error, both read from the code at the pinned release (a missing access key on `info-access-key` answers `ErrAdminNoSuchAccessKey` for a user, a service account and an STS key alike). The read-only command to confirm it against PROD, and the full account, are in the handoff on SL-25. ## Merge Danger **Door:** two-way. A revert restores the old branch; no state, store or credential is touched by the merge, and the Target runs only when the Operator calls it. **Blast Radius:** `make key-mint`. The drop now needs the store's explicit no-such-key answer, so a transient read can no longer take a live key's entry out of the state, and the drop is refused when the entry holds a different access key. If the client's envelope ever stops carrying `XMinioAdminNoSuchAccessKey`, the mint refuses and says so rather than guessing.
ticket-dispatch: make key-mint drops a state entry only on the store's no-such-key answer (SL-25)
All checks were successful
pr-checks / check (pull_request) Successful in 25s
5344c3393b
Member

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

**Review started** (round 1/5) on 5344c3393b52c388e49580d3f782f9f8bcfbeea5 — reading the diff now.
bot-minos approved these changes 2026-11-10 20:57:05 +00:00
Dismissed
bot-minos left a comment

repo olympus/infra-silo · PR #31 · head 5344c3393b · round 1/5 (the thread carries no earlier review) · verdict: no blockers, 2 advisories

Recommendation: merge

Spec source: SL-25 on Vikunja (project 7, index 25, task id 308), fetched live; its acceptance criteria are the contract. The PR body cites it as SL-25, as AGENTS.md §Pull requests asks. Standards source: AGENTS.md (§Code comments, §Toolchain, §Docs), docs/adr/ (nothing in it governs this change).

Reviewed revision: refs/pull/31/head = 5344c33 on the host, equal to the dispatch SHA; base 3eeb606 = main. Delta = git diff 3eeb606 5344c33: 3 files, +186/−13 (runbook 0003, scripts/key-mint.sh, scripts/tests/key-mint.test.sh), matching list_pull_request_files.

Spec (SL-25)

Acceptance criterion Verdict Evidence I produced
An info failure that is not not-found drops nothing and mints nothing met scripts/key-mint.sh:138-143; cases at scripts/tests/key-mint.test.sh:475-504 (InternalError and i/o timeout); mutant "if false at line 139" turns 11 rows red
An entry holding a different access key is refused and kept met key-mint.sh:151-155; case at key-mint.test.sh:506-522; mutant "delete lines 153-155" turns 6 rows red
A create (or import) that fails after a drop names the dropped address met key-mint.sh:116-118, :158, :166; cases at key-mint.test.sh:524-543; mutating :166 and :158 away each turns 2 rows red
Each case fails against the current script and passes after met head test against main's key-mint.sh: key-mint-test: 21 case(s) failed (the PR's number, reproduced); head script + head test: every case passed, 183 ok
The existing "adopted when the state still holds the address" case still passes met in the 183-ok green run
mise exec -- make check exits 0 met rc=0 on the head worktree; git status --porcelain was clean before my own probe ran
The real client's not-found text is recorded and the stub answers with it partly met, disclosed text recorded at key-mint.sh:130-137, stub answers it at key-mint.test.sh:134-137; measured against a stand-in, not the live store (see Named, not charged)
Runbook 0003 §7 says when the drop happens and when it is refused met 0003-the-state-in-the-store.md:473-493

The refusal is safe on every other answer: with a non-JSON stdout or a missing code, code is empty and the run refuses (key-mint.sh:139).

ADVISORY 1 — the "other key" refusal cannot name two different keys under the real declaration (scripts/key-mint.sh:152,154; scripts/tests/key-mint.test.sh:509,513; runbook :486). The criterion says "Name both keys by the key's name". The entry at state_key["<name>"] is declared with name = each.key (silo/store/state-keys.tf:21), so the name it holds is always <name> itself. I ran the case with the fixture's state.name set to what the real state would hold (tofu-state-forge-guest, cache/scratch/infra-silo-31-r1/real.log:81) and the refusal reads: the state entry for 'tofu-state-forge-guest' holds the key 'tofu-state-forge-guest', and the pair in the environment is a different key's for 'tofu-state-forge-guest'. The refusal, the kept entry and the exit code are right; the message does not tell the two keys apart, and the case passes only because its fixture holds a name (tofu-plan-state-forge-guest) the declaration cannot produce at that address. The runbook sentence "names both keys by the name each was minted under" inherits the same overstatement. Smallest fix: say the entry holds a different access key under the same name, or pin the case on a fixture the declaration can produce.

ADVISORY 2 — the evidence line's "222 ok lines" is a partial count (PR body, Evidence). grep -c '^ok' over my make check log gives 222, but 125 further ok lines are indented and uncounted by an anchored grep (347 in all). The green run is real; the stated total is not the whole. One clause fixes it.

Standards (AGENTS.md)

No blocker. make check is green (env-check, env-test, key-audit-test, key-mint-test, deploy-test, fmt-check, validate); the PR's docs paragraphs add no relative link; the change touches the files its own ticket names and the sibling commits (SL-23, SL-26) touched.

Standards has 0 findings.

Named, not charged

  • Live measurement (disclosed deferral). SL-25 asks for the store's answer measured as root against PROD; the author says an agent cannot fetch the environment (docs/agents/workflow.md §3) and gives a one-command read-only check. I could not run it either: no root credential on this host. The wrong-code failure direction is safe: a different live answer makes the mint refuse every new key loudly. Someone with the Operator's word should run that command before the Target is next used on a new key.
  • Not verified by me: the pinned mcli's JSON envelope (the author's measurement against a stand-in); I read the script's handling of it and drove the stub shapes, not the binary.
  • Comment volume. AGENTS.md §Code comments says "Keep comments to a minimum"; the diff adds ~25 comment lines to key-mint.sh. The ticket itself asks for a comment recording the client's text, and the file's base carries comparable comment density through SL-22, SL-23 and SL-26, so I read the rule as applied loosely here and do not charge it.
  • Survivor of my mutation wave: deleting trap - ERR (key-mint.sh:187) leaves all cases green. Nothing can fail after that line, so the line is redundant rather than wrong.
  • Probe side effect: tofu init -backend=false in my scratch worktree left an untracked silo/store/.terraform.lock.hcl; it is mine, not in the PR.

Summary

Axis Findings Worst
Spec 1 (ADVISORY 1) the two-key refusal names the same key twice under the real declaration
Standards 0 —
Evidence (PR body) 1 (ADVISORY 2) the 222 ok total is a partial count

Two advisories, no blockers: the volume rule (three or more advisories) is not tripped, so the state is APPROVE, the recommendation is merge and the label is review/merge-ready.

<!-- minos review-loop: repo=olympus/infra-silo pr=31 head=5344c3393b52c388e49580d3f782f9f8bcfbeea5 round=1/5 axes=standards,spec --> repo olympus/infra-silo · PR #31 · head 5344c3393b52c388e49580d3f782f9f8bcfbeea5 · round 1/5 (the thread carries no earlier review) · verdict: no blockers, 2 advisories Recommendation: merge **Spec source:** SL-25 on Vikunja (project 7, index 25, task id 308), fetched live; its acceptance criteria are the contract. The PR body cites it as `SL-25`, as `AGENTS.md` §Pull requests asks. **Standards source:** `AGENTS.md` (§Code comments, §Toolchain, §Docs), `docs/adr/` (nothing in it governs this change). **Reviewed revision:** `refs/pull/31/head` = 5344c33 on the host, equal to the dispatch SHA; base 3eeb606 = `main`. Delta = `git diff 3eeb606 5344c33`: 3 files, +186/−13 (runbook 0003, `scripts/key-mint.sh`, `scripts/tests/key-mint.test.sh`), matching `list_pull_request_files`. ## Spec (SL-25) | Acceptance criterion | Verdict | Evidence I produced | | --- | --- | --- | | An `info` failure that is not not-found drops nothing and mints nothing | met | `scripts/key-mint.sh:138-143`; cases at `scripts/tests/key-mint.test.sh:475-504` (InternalError and i/o timeout); mutant "`if false` at line 139" turns 11 rows red | | An entry holding a different access key is refused and kept | met | `key-mint.sh:151-155`; case at `key-mint.test.sh:506-522`; mutant "delete lines 153-155" turns 6 rows red | | A create (or import) that fails after a drop names the dropped address | met | `key-mint.sh:116-118`, `:158`, `:166`; cases at `key-mint.test.sh:524-543`; mutating `:166` and `:158` away each turns 2 rows red | | Each case fails against the current script and passes after | met | head test against `main`'s `key-mint.sh`: `key-mint-test: 21 case(s) failed` (the PR's number, reproduced); head script + head test: `every case passed`, 183 `ok` | | The existing "adopted when the state still holds the address" case still passes | met | in the 183-`ok` green run | | `mise exec -- make check` exits 0 | met | rc=0 on the head worktree; `git status --porcelain` was clean before my own probe ran | | The real client's not-found text is recorded and the stub answers with it | partly met, disclosed | text recorded at `key-mint.sh:130-137`, stub answers it at `key-mint.test.sh:134-137`; measured against a stand-in, not the live store (see Named, not charged) | | Runbook 0003 §7 says when the drop happens and when it is refused | met | `0003-the-state-in-the-store.md:473-493` | The refusal is safe on every other answer: with a non-JSON stdout or a missing code, `code` is empty and the run refuses (`key-mint.sh:139`). **ADVISORY 1 — the "other key" refusal cannot name two different keys under the real declaration** (`scripts/key-mint.sh:152,154`; `scripts/tests/key-mint.test.sh:509,513`; runbook `:486`). The criterion says "Name both keys by the key's name". The entry at `state_key["<name>"]` is declared with `name = each.key` (`silo/store/state-keys.tf:21`), so the `name` it holds is always `<name>` itself. I ran the case with the fixture's `state.name` set to what the real state would hold (`tofu-state-forge-guest`, `cache/scratch/infra-silo-31-r1/real.log:81`) and the refusal reads: `the state entry for 'tofu-state-forge-guest' holds the key 'tofu-state-forge-guest', and the pair in the environment is a different key's for 'tofu-state-forge-guest'`. The refusal, the kept entry and the exit code are right; the message does not tell the two keys apart, and the case passes only because its fixture holds a name (`tofu-plan-state-forge-guest`) the declaration cannot produce at that address. The runbook sentence "names both keys by the name each was minted under" inherits the same overstatement. Smallest fix: say the entry holds a different access key under the same name, or pin the case on a fixture the declaration can produce. **ADVISORY 2 — the evidence line's "222 `ok` lines" is a partial count** (PR body, Evidence). `grep -c '^ok'` over my `make check` log gives 222, but 125 further `ok` lines are indented and uncounted by an anchored grep (347 in all). The green run is real; the stated total is not the whole. One clause fixes it. ## Standards (`AGENTS.md`) No blocker. `make check` is green (`env-check`, `env-test`, `key-audit-test`, `key-mint-test`, `deploy-test`, `fmt-check`, `validate`); the PR's docs paragraphs add no relative link; the change touches the files its own ticket names and the sibling commits (SL-23, SL-26) touched. Standards has 0 findings. ## Named, not charged - **Live measurement (disclosed deferral).** SL-25 asks for the store's answer measured as root against PROD; the author says an agent cannot fetch the environment (`docs/agents/workflow.md` §3) and gives a one-command read-only check. I could not run it either: no root credential on this host. The wrong-code failure direction is safe: a different live answer makes the mint refuse every new key loudly. Someone with the Operator's word should run that command before the Target is next used on a new key. - **Not verified by me:** the pinned `mcli`'s JSON envelope (the author's measurement against a stand-in); I read the script's handling of it and drove the stub shapes, not the binary. - **Comment volume.** `AGENTS.md` §Code comments says "Keep comments to a minimum"; the diff adds ~25 comment lines to `key-mint.sh`. The ticket itself asks for a comment recording the client's text, and the file's base carries comparable comment density through SL-22, SL-23 and SL-26, so I read the rule as applied loosely here and do not charge it. - **Survivor of my mutation wave:** deleting `trap - ERR` (`key-mint.sh:187`) leaves all cases green. Nothing can fail after that line, so the line is redundant rather than wrong. - **Probe side effect:** `tofu init -backend=false` in my scratch worktree left an untracked `silo/store/.terraform.lock.hcl`; it is mine, not in the PR. ## Summary | Axis | Findings | Worst | | --- | --- | --- | | Spec | 1 (ADVISORY 1) | the two-key refusal names the same key twice under the real declaration | | Standards | 0 | — | | Evidence (PR body) | 1 (ADVISORY 2) | the `222 ok` total is a partial count | Two advisories, no blockers: the volume rule (three or more advisories) is not tripped, so the state is APPROVE, the recommendation is merge and the label is `review/merge-ready`.
pit force-pushed hermes/SL-25-make-key-mint-drops-a-state-entry-when-t from 5344c3393b
All checks were successful
pr-checks / check (pull_request) Successful in 25s
to da387b240e
All checks were successful
pr-checks / check (pull_request) Successful in 25s
2026-11-10 20:58:30 +00:00
Compare
Say which name the entry holds when the keys differ (SL-25 review)
All checks were successful
pr-checks / check (pull_request) Successful in 25s
e956f13e0f
bot-efesto dismissed bot-minos's review 2026-11-10 20:59:42 +00:00
Reason:

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

Author
Member

Both of review round 1's advisories are taken, in e956f13, and the body above now carries the corrected ok count (352 in all, 227 at the left margin) and the fix note. Nothing else changed: the head is e956f13 on top of ffdb31d, and mise exec -- make check is green there.

Both of review round 1's advisories are taken, in `e956f13`, and the body above now carries the corrected `ok` count (352 in all, 227 at the left margin) and the fix note. Nothing else changed: the head is `e956f13` on top of `ffdb31d`, and `mise exec -- make check` is green there.
Author
Member

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

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

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

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

repo olympus/infra-silo · PR #31 · head e956f13e0f · round 2/5 by the thread (one earlier review, at 5344c33; the dispatch said 1/5 — its counter does not see that review, which the push dismissed as stale) · verdict: no blockers, 1 advisory

Recommendation: merge

Spec source: SL-25 on Vikunja (project 7, index 25, task id 308), read live this round; its acceptance criteria are the contract (the round-1 table already graded them). Standards source: AGENTS.md at the head (§Code comments, §Toolchain, §Docs); docs/adr/ governs nothing here. One reviewer held both axes; the sections are kept apart.

Fixed point. The prior head 5344c33 is not an ancestor of e956f13: the author rebased onto main ffdb31d (was 3eeb606), so git diff 5344c33 e956f13 would show the base's own SL-37 files. Measured instead: the blobs of scripts/key-mint.sh (04be9e7), scripts/tests/key-mint.test.sh (bd8ec76) and the runbook (a3a0ecd) are identical at 5344c33 and at the rebased da387b2, so the round's own change is exactly git show e956f13: 3 files, +34/−6. Nothing else moved; the base's files (docs/runbooks/0001-…, silo/guest/keys.d/semaphore-runner.pub) are SL-37's.

Closing round 1 (0 blockers; 2 advisories, both cleared)

Round-1 finding State Evidence I drove
ADVISORY 1: the other-key refusal named the same key twice cleared scripts/key-mint.sh:158-163: the refusal now says under the same name: the two keys differ in the access key alone when the names agree, under the name '<held>' when they differ. Red/green: head test against da387b2's script (the pre-fix script) fails 2 cases, the refusal names the entry by the name it holds and the refusal says the names agree and the keys do not, the first showing the old text holds the key 'tofu-state-forge-guest', and the pair in the environment is a different key's for 'tofu-state-forge-guest' (round 1's finding, reproduced); head script: key-mint-test: every case passed. Mutation: forcing the if to false reds the same-name case alone (1 case); forcing it to true reds the cross-name case alone (1 case). Runbook docs/runbooks/0003-the-state-in-the-store.md:485-491 now says the same as the script.
ADVISORY 2: 222 ok was a partial count cleared PR body now says 352 ok in all, 227 at the left margin. Recounted at the head: make check 227 anchored, 352 with indented rows; key-mint-test 188 (anchored = all). The body's 188 and its Success! The configuration is valid. also hold (make check rc=0, git status --porcelain clean afterwards).

Spec (SL-25)

All eight criteria met at the head, as round 1 graded them; the delta moves only the criterion about the other-key refusal, which stays met and is now truthful: the real declaration (name = each.key) yields the same-name arm, and the case at scripts/tests/key-mint.test.sh:521-536 pins that shape beside the cross-name one at :506-519. make key-mint-test against main's script (ffdb31d) at the head test: 25 cases fail (the body's 21 was measured against the round-1 test; each number is true of its own run, so this is a note and not a finding).

ADVISORY 1 — the rewritten refusal prints under the name '' when the entry carries no name (scripts/key-mint.sh:152,161; introduced by e956f13). The line it replaced fell back to ${held_name:-this map does not name its owner}; the new holds=", under the name '$held_name'" has no fallback. Driven: with the stub's state show printing no name line, the refusal reads …holds a different access key from the one in the environment, under the name ''. Importing this run's key…. The refusal, the kept entry and exit 2 are right, and the declaration sets name = each.key so a real entry always has one — hence an advisory and not a blocker: the defect is a message shape on a branch the declaration does not reach. Smallest fix: ${held_name:-an unnamed key} in the else arm at :161 (or a third arm for the empty name).

Standards (AGENTS.md)

No finding. make check is green at the head (env-check, env-test, key-audit-test, key-mint-test, deploy-test, fmt-check, validate); the runbook hunk adds no relative link; the delta touches only the three files its finding named, the same set the SL-23/SL-26 commits touched.

Named, not charged

  • Comment volume (AGENTS.md §Code comments, "Keep comments to a minimum"): e956f13 adds 4 comment lines to key-mint.sh and 4 to the test. Round 1 read the rule as applied loosely across SL-22/23/26 and named it uncharged; the same reading holds.
  • Live measurement (disclosed deferral, carried from round 1): the store's answer as root against PROD is not measured by the author or by me (no root credential on this host); the pinned client's envelope is the author's measurement against a stand-in, not re-run by me. The refusal is safe in the wrong-code direction: a different live answer refuses loudly and drops nothing.
  • trap - ERR at key-mint.sh:196 survived round 1's mutation wave as redundant; unchanged by this delta.
  • CI by SHA: pr-checks / check (pull_request) is success on e956f13. The head was re-read from the host (refs/pull/31/head) before the post and equals the dispatched SHA; the branch is current with main (base.sha = ffdb31d = refs/heads/main).
  • Probe side effects: all scratch trees live under cache/scratch/infra-silo-31-r2/; the head worktree stayed clean.

Summary

Axis Findings Worst
Spec 1 (ADVISORY 1) the rewritten refusal prints under the name '' for a name-less entry
Standards 0 none

One advisory, no blockers: the state is APPROVED, the recommendation is merge (the volume rule trips at three advisories and does not), and the label is review/merge-ready.

<!-- minos review-loop: repo=olympus/infra-silo pr=31 head=e956f13e0f2cc10c501a3343cb5daa9aeef66a83 round=2/5 axes=standards,spec --> repo olympus/infra-silo · PR #31 · head e956f13e0f2cc10c501a3343cb5daa9aeef66a83 · round 2/5 by the thread (one earlier review, at 5344c33; the dispatch said 1/5 — its counter does not see that review, which the push dismissed as stale) · verdict: no blockers, 1 advisory Recommendation: merge **Spec source:** SL-25 on Vikunja (project 7, index 25, task id 308), read live this round; its acceptance criteria are the contract (the round-1 table already graded them). **Standards source:** `AGENTS.md` at the head (§Code comments, §Toolchain, §Docs); `docs/adr/` governs nothing here. One reviewer held both axes; the sections are kept apart. **Fixed point.** The prior head 5344c33 is **not** an ancestor of e956f13: the author rebased onto `main` ffdb31d (was 3eeb606), so `git diff 5344c33 e956f13` would show the base's own SL-37 files. Measured instead: the blobs of `scripts/key-mint.sh` (04be9e7), `scripts/tests/key-mint.test.sh` (bd8ec76) and the runbook (a3a0ecd) are identical at 5344c33 and at the rebased da387b2, so the round's own change is exactly `git show e956f13`: 3 files, +34/−6. Nothing else moved; the base's files (`docs/runbooks/0001-…`, `silo/guest/keys.d/semaphore-runner.pub`) are SL-37's. ## Closing round 1 (0 blockers; 2 advisories, both cleared) | Round-1 finding | State | Evidence I drove | | --- | --- | --- | | ADVISORY 1: the other-key refusal named the same key twice | cleared | `scripts/key-mint.sh:158-163`: the refusal now says `under the same name: the two keys differ in the access key alone` when the names agree, `under the name '<held>'` when they differ. Red/green: head test against da387b2's script (the pre-fix script) fails 2 cases, `the refusal names the entry by the name it holds` and `the refusal says the names agree and the keys do not`, the first showing the old text `holds the key 'tofu-state-forge-guest', and the pair in the environment is a different key's for 'tofu-state-forge-guest'` (round 1's finding, reproduced); head script: `key-mint-test: every case passed`. Mutation: forcing the `if` to false reds the same-name case alone (1 case); forcing it to true reds the cross-name case alone (1 case). Runbook `docs/runbooks/0003-the-state-in-the-store.md:485-491` now says the same as the script. | | ADVISORY 2: `222 ok` was a partial count | cleared | PR body now says 352 `ok` in all, 227 at the left margin. Recounted at the head: `make check` 227 anchored, 352 with indented rows; `key-mint-test` 188 (anchored = all). The body's 188 and its `Success! The configuration is valid.` also hold (`make check` rc=0, `git status --porcelain` clean afterwards). | ## Spec (SL-25) All eight criteria met at the head, as round 1 graded them; the delta moves only the criterion about the other-key refusal, which stays met and is now truthful: the real declaration (`name = each.key`) yields the same-name arm, and the case at `scripts/tests/key-mint.test.sh:521-536` pins that shape beside the cross-name one at `:506-519`. `make key-mint-test` against `main`'s script (ffdb31d) at the head test: 25 cases fail (the body's 21 was measured against the round-1 test; each number is true of its own run, so this is a note and not a finding). **ADVISORY 1 — the rewritten refusal prints `under the name ''` when the entry carries no name** (`scripts/key-mint.sh:152,161`; introduced by e956f13). The line it replaced fell back to `${held_name:-this map does not name its owner}`; the new `holds=", under the name '$held_name'"` has no fallback. Driven: with the stub's `state show` printing no `name` line, the refusal reads `…holds a different access key from the one in the environment, under the name ''. Importing this run's key…`. The refusal, the kept entry and exit 2 are right, and the declaration sets `name = each.key` so a real entry always has one — hence an advisory and not a blocker: the defect is a message shape on a branch the declaration does not reach. Smallest fix: `${held_name:-an unnamed key}` in the `else` arm at `:161` (or a third arm for the empty name). ## Standards (`AGENTS.md`) No finding. `make check` is green at the head (`env-check`, `env-test`, `key-audit-test`, `key-mint-test`, `deploy-test`, `fmt-check`, `validate`); the runbook hunk adds no relative link; the delta touches only the three files its finding named, the same set the SL-23/SL-26 commits touched. ## Named, not charged - **Comment volume** (`AGENTS.md` §Code comments, "Keep comments to a minimum"): e956f13 adds 4 comment lines to `key-mint.sh` and 4 to the test. Round 1 read the rule as applied loosely across SL-22/23/26 and named it uncharged; the same reading holds. - **Live measurement** (disclosed deferral, carried from round 1): the store's answer as root against PROD is not measured by the author or by me (no root credential on this host); the pinned client's envelope is the author's measurement against a stand-in, not re-run by me. The refusal is safe in the wrong-code direction: a different live answer refuses loudly and drops nothing. - **`trap - ERR` at `key-mint.sh:196`** survived round 1's mutation wave as redundant; unchanged by this delta. - **CI by SHA:** `pr-checks / check (pull_request)` is `success` on e956f13. The head was re-read from the host (`refs/pull/31/head`) before the post and equals the dispatched SHA; the branch is current with `main` (base.sha = ffdb31d = `refs/heads/main`). - **Probe side effects:** all scratch trees live under `cache/scratch/infra-silo-31-r2/`; the head worktree stayed clean. ## Summary | Axis | Findings | Worst | | --- | --- | --- | | Spec | 1 (ADVISORY 1) | the rewritten refusal prints `under the name ''` for a name-less entry | | Standards | 0 | none | One advisory, no blockers: the state is APPROVED, the recommendation is merge (the volume rule trips at three advisories and does not), and the label is `review/merge-ready`.
Say an entry carries no name rather than printing empty quotes (SL-25 review)
All checks were successful
pr-checks / check (pull_request) Successful in 26s
58ac4d50ae
The other-key refusal read the entry's name and put it in the sentence, which
e956f13 rewrote to tell the same-name case apart from the cross-name one. The
rewrite lost the fallback: an entry whose state carries no name printed
`under the name ''`, which tells the reader nothing about the key it is
looking at.

A third arm says the entry carries no name. The stub's `state.unnamed` leaves
the attribute out, and a case pins the refusal, so the shape cannot regress
silently. Red against the head: 2 cases; green after: the whole suite, 193
`ok` lines.
bot-efesto dismissed bot-minos's review 2026-11-10 21:16:10 +00:00
Reason:

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

Author
Member

Round 0/5 (dispatch) → fixed in 58ac4d5, a fast-forward on e956f13.

One thing about the dispatch first: the blocking label reached me before bot-minos had posted a review of the head, and its round-2 report landed while I was reading (pulls/31/reviews/502, verdict no blockers, 1 advisory, on e956f13, moving the label to review/merge-ready). I took that newest review as the report, and I cleared its advisory rather than closing the round on "no blockers".

Finding Commit Evidence
ADVISORY 1 — the other-access-key refusal prints under the name '' when the entry carries no name (scripts/key-mint.sh:152,161; introduced by e956f13) 58ac4d5 red-first: the head test file against the pre-fix tree (e956f13) gives key-mint-test: 2 case(s) failed, the refusal reading …under the name ''. verbatim; green after: key-mint-test: every case passed, 193 ok

What changed. key-mint.sh gets the third arm the finding offered: elif [ -n "$held_name" ] keeps , under the name '<held>', and the empty name now reads , under no name at all. The same-name and cross-name arms are untouched.

The case pins it. scripts/tests/key-mint.test.sh gains a state.unnamed fixture — the stub's state show leaves the name attribute out, as the provider does for an entry never given one — and a case asserting the refusal says under no name at all and never prints under the name '', with the entry kept and nothing minted.

Verified at 58ac4d5:

  • mise exec -- make key-mint-test → key-mint-test: every case passed, rc=0, 193 ok lines (188 at e956f13; the new case adds 5).
  • mise exec -- make check → rc=0: env-check, env-test, key-audit-test, key-mint-test, deploy-test, fmt-check, validate all green; 357 ok lines in all, 232 of them anchored (125 indented); Success! The configuration is valid.; git status --porcelain empty afterwards.
  • pr-checks / check (pull_request) on 58ac4d5: success, 26s.

PR body. The Evidence transcript now quotes this head's figures — 29 cases failed before, 193 ok after, 357/232 for make check — and carries a round-2 line; the old 21/188/352 figures are gone. Merge Danger is unchanged: the revert is still two-way and the blast radius is still make key-mint.

Left alone. Nothing disputed. Round 2's note that the body's 21 was measured against the round-1 test file is true of that run; it is re-measured at 29 for this head's test file and no claim now rests on the older figure.

Self-review of the diff (git diff e956f13..58ac4d5: 2 files, +24/−2): Standards — AGENTS.md §Code comments holds (4 comment lines across the two files, in the register the block already carries), no docs page is contradicted (the runbook says the line names which name the entry holds; an entry with none is the case it now says so for), nothing added outside the message shape. Spec — the criterion "name both keys by the key's name" keeps both existing arms and gains the no-name shape; no behaviour outside the refusal text moved.

**Round 0/5 (dispatch) → fixed in `58ac4d5`**, a fast-forward on `e956f13`. One thing about the dispatch first: the blocking label reached me before `bot-minos` had posted a review of the head, and its round-2 report landed while I was reading (`pulls/31/reviews/502`, verdict **no blockers, 1 advisory**, on `e956f13`, moving the label to `review/merge-ready`). I took that newest review as the report, and I cleared its advisory rather than closing the round on "no blockers". | Finding | Commit | Evidence | | --- | --- | --- | | ADVISORY 1 — the other-access-key refusal prints `under the name ''` when the entry carries no name (`scripts/key-mint.sh:152,161`; introduced by `e956f13`) | `58ac4d5` | red-first: the head test file against the pre-fix tree (`e956f13`) gives `key-mint-test: 2 case(s) failed`, the refusal reading `…under the name ''.` verbatim; green after: `key-mint-test: every case passed`, 193 `ok` | **What changed.** `key-mint.sh` gets the third arm the finding offered: `elif [ -n "$held_name" ]` keeps `, under the name '<held>'`, and the empty name now reads `, under no name at all`. The same-name and cross-name arms are untouched. **The case pins it.** `scripts/tests/key-mint.test.sh` gains a `state.unnamed` fixture — the stub's `state show` leaves the `name` attribute out, as the provider does for an entry never given one — and a case asserting the refusal says `under no name at all` and never prints `under the name ''`, with the entry kept and nothing minted. **Verified at `58ac4d5`:** - `mise exec -- make key-mint-test` → `key-mint-test: every case passed`, rc=0, 193 `ok` lines (188 at `e956f13`; the new case adds 5). - `mise exec -- make check` → rc=0: `env-check`, `env-test`, `key-audit-test`, `key-mint-test`, `deploy-test`, `fmt-check`, `validate` all green; 357 `ok` lines in all, 232 of them anchored (125 indented); `Success! The configuration is valid.`; `git status --porcelain` empty afterwards. - `pr-checks / check (pull_request)` on `58ac4d5`: **success**, 26s. **PR body.** The Evidence transcript now quotes this head's figures — 29 cases failed before, 193 `ok` after, 357/232 for `make check` — and carries a round-2 line; the old `21`/`188`/`352` figures are gone. Merge Danger is unchanged: the revert is still two-way and the blast radius is still `make key-mint`. **Left alone.** Nothing disputed. Round 2's note that the body's `21` was measured against the round-1 test file is true of that run; it is re-measured at 29 for this head's test file and no claim now rests on the older figure. Self-review of the diff (`git diff e956f13..58ac4d5`: 2 files, +24/−2): Standards — `AGENTS.md` §Code comments holds (4 comment lines across the two files, in the register the block already carries), no docs page is contradicted (the runbook says the line names which name the entry holds; an entry with none is the case it now says so for), nothing added outside the message shape. Spec — the criterion "name both keys by the key's name" keeps both existing arms and gains the no-name shape; no behaviour outside the refusal text moved.
Member

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

**Review started** (round 2/5) on 58ac4d50aeed34c3d29fff1e1adaa93140094730 — reading the diff now.
bot-minos approved these changes 2026-11-10 21:20:05 +00:00
Dismissed
bot-minos left a comment

repo olympus/infra-silo · PR #31 · head 58ac4d50ae · round 3/5 by the thread (two reviews already posted: 5344c33 at round 1, e956f13 at round 2 — the dispatch said 2/5, whose counter does not see the round-2 review, which the push dismissed as stale) · verdict: no blockers, 0 advisories

Recommendation: merge

Spec source: SL-25 on Vikunja (project 7, index 25, task id 308), read live this round; its acceptance criteria are the contract. Standards source: AGENTS.md at the head (§Code comments, §Toolchain, §Docs); docs/adr/ at the head governs nothing here — its refusals are about bucket destruction, Stack composition and the record credential, not a message shape.

Fixed point. The prior head e956f13 is an ancestor of 58ac4d5 (git merge-base --is-ancestor, exit 0), so the round's delta is git diff e956f13 58ac4d5: 2 files, +24/−2 — scripts/key-mint.sh and scripts/tests/key-mint.test.sh. That is the file set round 2's advisory named, and nothing else, so nothing outside it was re-opened.

Closing round 2 (0 blockers; 1 advisory, cleared)

Round-2 finding State Evidence I drove
ADVISORY 1: the rewritten other-access-key refusal printed under the name '' when the entry carries no name (scripts/key-mint.sh:161 at e956f13) cleared scripts/key-mint.sh:162-166 is the third arm the finding offered as its alternative: elif [ -n "$held_name" ] keeps , under the name '<held>' at :161, and the empty name now reads , under no name at all at :165. Red/green: the head test file against e956f13's script fails 2 cases, the first printing the round-2 text verbatim — …holds a different access key from the one in the environment, under the name ''. Importing this run's key there…; at the head, key-mint-test: every case passed, 193 ok, rc=0. Mutation: inverting the new guard to [ -z "$held_name" ] reds 3 cases — the cross-name case falls to "under no name at all" and the unnamed case back to "under the name ''" — so both arms of the new if are pinned by a case that can fail.

Round 1's two advisories stay cleared. The cross-name arm is pinned by the mutation above; the same-name arm is green in my run and was proved by mutation in round 2.

Spec (SL-25)

0 findings. The delta clears the one criterion round 2 found short and touches no other: the other seven stay as round 1 graded them, and nothing here mints, drops or imports in a new shape.

Verified in my own hand at this head:

  • make key-mint-test → rc=0, key-mint-test: every case passed, 193 ok lines (anchored and total agree). At e956f13 with its own test file: 188 ok — so the delta adds exactly the 5 assertions of the new case, as the body says.
  • The red the body claims: the head test file against main's (ffdb31d) scripts/key-mint.sh → key-mint-test: 29 case(s) failed, rc=1. Reproduced.
  • make check → rc=0: env-check (pin and map agree), env-test ("every case holds"), key-audit-test, key-mint-test, deploy tests, fmt-check, validate (Success! The configuration is valid.); 357 ok lines in all, 232 anchored, 0 not ok; git status --porcelain empty afterwards.
  • CI by SHA: pr-checks / check (pull_request) is success in 26s on 58ac4d5.
  • The head was resolved from the host (refs/pull/31/head) at the start and again before this post: both 58ac4d5…, equal to the dispatch.
  • Runbook 0003 §7 (docs/runbooks/0003-the-state-in-the-store.md:486-489) read at head: "It says which name the entry holds — the declaration gives every entry the map's key as its name (name = each.key), so an entry it wrote carries this run's name and the refusal says as much." The new arm does not contradict it: the sentence scopes itself to an entry the declaration wrote, and the no-name arm is the shape for one it did not.

Standards (AGENTS.md)

0 findings. No documented rule is broken by the delta: make check is green including fmt-check and validate; the delta adds no relative link and touches no docs page; it changes only the two files its finding named, the same set the SL-23/SL-26 commits touched.

Named, not charged

  • Comment volume (AGENTS.md §Code comments, "Keep comments to a minimum"): the delta adds 3 comment lines to key-mint.sh beside a 5-line message arm. Rounds 1 and 2 read this rule as applied loosely across SL-22/23/26 — the file carries rationale comments throughout — and that reading holds unchanged; charging it now would turn the label on furniture.
  • The runbook does not describe the no-name arm. Round 2's clearing change reworded the message, so I read the page it cites at head. The page states truthfully what the refusal says for an entry the declaration wrote and is silent about the defensive arm; the arm carries no step the page omits, so this is not the half of a finding left behind.
  • Live measurement (disclosed deferral, carried from rounds 1-2): the store's own answer as root against PROD is measured by neither the author nor me — no root credential on this host. The pinned client's envelope is the author's measurement against a stand-in; I read the script's handling of it and drove the stub shapes, not the binary. The refusal direction is safe: a different live answer refuses loudly and drops nothing.
  • trap - ERR at scripts/key-mint.sh:200 survived round 1's mutation wave as redundant (nothing can fail after it); untouched by this delta.
  • Probe side effects: this round's trees live under cache/scratch/infra-silo-31-r3/; the head worktree stayed clean.

Summary

Axis Findings Worst
Spec 0 none — round 2's advisory is cleared
Standards 0 none

Zero findings, no blockers: the state is APPROVED, the recommendation is merge (the volume rule trips at three counted advisories and there are none), and the label is review/merge-ready.

<!-- minos review-loop: repo=olympus/infra-silo pr=31 head=58ac4d50aeed34c3d29fff1e1adaa93140094730 round=3/5 axes=standards,spec --> repo olympus/infra-silo · PR #31 · head 58ac4d50aeed34c3d29fff1e1adaa93140094730 · round 3/5 by the thread (two reviews already posted: 5344c33 at round 1, e956f13 at round 2 — the dispatch said 2/5, whose counter does not see the round-2 review, which the push dismissed as stale) · verdict: no blockers, 0 advisories Recommendation: merge **Spec source:** SL-25 on Vikunja (project 7, index 25, task id 308), read live this round; its acceptance criteria are the contract. **Standards source:** `AGENTS.md` at the head (§Code comments, §Toolchain, §Docs); `docs/adr/` at the head governs nothing here — its refusals are about bucket destruction, Stack composition and the record credential, not a message shape. **Fixed point.** The prior head `e956f13` **is** an ancestor of `58ac4d5` (`git merge-base --is-ancestor`, exit 0), so the round's delta is `git diff e956f13 58ac4d5`: 2 files, +24/−2 — `scripts/key-mint.sh` and `scripts/tests/key-mint.test.sh`. That is the file set round 2's advisory named, and nothing else, so nothing outside it was re-opened. ## Closing round 2 (0 blockers; 1 advisory, cleared) | Round-2 finding | State | Evidence I drove | | --- | --- | --- | | ADVISORY 1: the rewritten other-access-key refusal printed `under the name ''` when the entry carries no name (`scripts/key-mint.sh:161` at e956f13) | cleared | `scripts/key-mint.sh:162-166` is the third arm the finding offered as its alternative: `elif [ -n "$held_name" ]` keeps `, under the name '<held>'` at `:161`, and the empty name now reads `, under no name at all` at `:165`. **Red/green:** the head test file against `e956f13`'s script fails **2 cases**, the first printing the round-2 text verbatim — `…holds a different access key from the one in the environment, under the name ''. Importing this run's key there…`; at the head, `key-mint-test: every case passed`, 193 `ok`, rc=0. **Mutation:** inverting the new guard to `[ -z "$held_name" ]` reds 3 cases — the cross-name case falls to "under no name at all" and the unnamed case back to "under the name ''" — so both arms of the new `if` are pinned by a case that can fail. | Round 1's two advisories stay cleared. The cross-name arm is pinned by the mutation above; the same-name arm is green in my run and was proved by mutation in round 2. ## Spec (SL-25) 0 findings. The delta clears the one criterion round 2 found short and touches no other: the other seven stay as round 1 graded them, and nothing here mints, drops or imports in a new shape. **Verified in my own hand at this head:** - `make key-mint-test` → rc=0, `key-mint-test: every case passed`, **193** `ok` lines (anchored and total agree). At `e956f13` with its own test file: 188 `ok` — so the delta adds exactly the 5 assertions of the new case, as the body says. - The red the body claims: the head test file against `main`'s (`ffdb31d`) `scripts/key-mint.sh` → `key-mint-test: 29 case(s) failed`, rc=1. Reproduced. - `make check` → rc=0: `env-check` (pin and map agree), `env-test` ("every case holds"), `key-audit-test`, `key-mint-test`, `deploy tests`, `fmt-check`, `validate` (`Success! The configuration is valid.`); **357** `ok` lines in all, **232** anchored, 0 `not ok`; `git status --porcelain` empty afterwards. - CI by SHA: `pr-checks / check (pull_request)` is `success` in 26s on `58ac4d5`. - The head was resolved from the host (`refs/pull/31/head`) at the start and again before this post: both `58ac4d5…`, equal to the dispatch. - Runbook 0003 §7 (`docs/runbooks/0003-the-state-in-the-store.md:486-489`) read at head: *"It says which name the entry holds — the declaration gives every entry the map's key as its name (`name = each.key`), so an entry it wrote carries this run's name and the refusal says as much."* The new arm does not contradict it: the sentence scopes itself to an entry the declaration wrote, and the no-name arm is the shape for one it did not. ## Standards (`AGENTS.md`) 0 findings. No documented rule is broken by the delta: `make check` is green including `fmt-check` and `validate`; the delta adds no relative link and touches no docs page; it changes only the two files its finding named, the same set the SL-23/SL-26 commits touched. ## Named, not charged - **Comment volume** (`AGENTS.md` §Code comments, "Keep comments to a minimum"): the delta adds 3 comment lines to `key-mint.sh` beside a 5-line message arm. Rounds 1 and 2 read this rule as applied loosely across SL-22/23/26 — the file carries rationale comments throughout — and that reading holds unchanged; charging it now would turn the label on furniture. - **The runbook does not describe the no-name arm.** Round 2's clearing change reworded the message, so I read the page it cites at head. The page states truthfully what the refusal says for an entry the declaration wrote and is silent about the defensive arm; the arm carries no step the page omits, so this is not the half of a finding left behind. - **Live measurement** (disclosed deferral, carried from rounds 1-2): the store's own answer as root against PROD is measured by neither the author nor me — no root credential on this host. The pinned client's envelope is the author's measurement against a stand-in; I read the script's handling of it and drove the stub shapes, not the binary. The refusal direction is safe: a different live answer refuses loudly and drops nothing. - **`trap - ERR` at `scripts/key-mint.sh:200`** survived round 1's mutation wave as redundant (nothing can fail after it); untouched by this delta. - **Probe side effects:** this round's trees live under `cache/scratch/infra-silo-31-r3/`; the head worktree stayed clean. ## Summary | Axis | Findings | Worst | | --- | --- | --- | | Spec | 0 | none — round 2's advisory is cleared | | Standards | 0 | none | Zero findings, no blockers: the state is APPROVED, the recommendation is merge (the volume rule trips at three counted advisories and there are none), and the label is `review/merge-ready`.
pit force-pushed hermes/SL-25-make-key-mint-drops-a-state-entry-when-t from 58ac4d50ae
All checks were successful
pr-checks / check (pull_request) Successful in 26s
to 8a7620e610
All checks were successful
pr-checks / check (pull_request) Successful in 30s
2026-11-10 21:32:06 +00:00
Compare
pit dismissed bot-minos's review 2026-11-10 21:32:06 +00:00
Reason:

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

Member

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

**Review started** (round 1/5) on 8a7620e610eb3c67eddadf60014795ffdf5149e8 — reading the diff now.
bot-minos approved these changes 2026-11-10 21:35:23 +00:00
bot-minos left a comment

repo olympus/infra-silo · PR #31 · head 8a7620e610 · round 4/5 by the thread (three reviews already posted: 5344c33 round 1, e956f13 round 2, 58ac4d5 round 3 — the dispatch said 1/5, whose counter restarts when a review/* label is moved by hand) · verdict: no blockers, 1 advisory

Recommendation: merge

Spec source: SL-25 on Vikunja (project 7, index 25, task id 308), fetched live this round; its acceptance criteria are the contract. Standards source: AGENTS.md at the head (§Code comments, §Toolchain, §Docs), and the org records in olympus/workshop docs/adr at main — ADR 0006 governs that a Stack's state is read with a key of its own, not this message shape, and nothing there binds this delta.

Fixed point. The prior reviewed head 58ac4d5 is not an ancestor of 8a7620e (git merge-base --is-ancestor exits 1): the branch was rebased onto main d69964a (SL-28). The blobs say the branch's own change did not move: scripts/key-mint.sh is 943fb05 at both revisions, and scripts/tests/key-mint.test.sh and the runbook differ from 58ac4d5 by exactly the base's own SL-28 changed-line sets (compared as changed-line sets: identical). So this round's delta is a rebase plus the base's lines; the branch's own diff at this base is git diff d69964a 8a7620e: 3 files, +236/−13.

Closing round 3 (0 blockers, 0 findings)

Review #506 at 58ac4d5 was APPROVED with no finding: there is nothing to clear, and the script blob is byte-identical at this head. Rounds 1 and 2's advisories remain cleared by the same two blobs.

Spec (SL-25)

Acceptance criterion Verdict Evidence I produced
A case for each scenario: an info failure that is not not-found drops nothing and mints nothing; an entry holding a different access key is refused and kept; a create that fails after a drop names the dropped address met scripts/tests/key-mint.test.sh:473-585 (info-failed, info-unreachable, entry-other-key, entry-other-key-same-name, entry-unnamed, drop-then-create-fails, drop-then-import-fails)
Each case fails against the current script and passes after met this head's test file against main's (d69964a) scripts/key-mint.sh: key-mint-test: 29 case(s) failed, rc=1; at the head key-mint-test: every case passed, 194 ok, rc=0
The existing "a key minted under an address the state still holds is adopted" case still passes met in the 194-ok run
mise exec -- make check exits 0 met rc=0 at 8a7620e: 358 ok lines in all, 233 anchored, 0 not ok; env-check, env-test, key-audit-test, key-mint-test, deploy tests, fmt-check, validate (Success! The configuration is valid.)
The comment records the real client's not-found text, and the stub answers with that text met, with the disclosed caveat scripts/key-mint.sh:130-137; the stub's envelope at scripts/tests/key-mint.test.sh:133-135; measured against a stand-in, not PROD (see Named, not charged)
Runbook 0003 §7 says when the drop happens and when it is refused met docs/runbooks/0003-the-state-in-the-store.md:476-499

The tests can fail at this head. Mutation wave on scratch copies: the unnamed arm put back to under the name '' → 2 rows red; the XMinioAdminNoSuchAccessKey guard disabled → 11 rows red; the other-access-key refusal disabled → 14 rows red; the dropped_note call on a failed create removed → 2 rows red.

No spec finding.

Standards (AGENTS.md)

0 findings. make check is green at the head, fmt-check and validate included; the delta adds no relative link and no new docs page; it touches only the three files its ticket names. AGENTS.md §Code comments is read as rounds 1-3 read it (loosely — see Named, not charged). Nothing in the org ADRs is contradicted.

Evidence (PR body)

ADVISORY 1 — the Evidence lines still quote the pre-rebase head and its counts (PR body §Evidence). The body says make key-mint-test gives "193 ok lines" and make check "exits 0 at this head (58ac4d5): 357 ok lines in all, 232 of them at the left margin". At 8a7620e I measured 194, and 358 / 233; 58ac4d5 is no longer an ancestor of the head, and the fix commits it cites (e956f13, 58ac4d5) were replayed as b5dc184 and 8a7620e. The green run and the 29-case red are real; only the two counts and the SHAs are one base commit behind — SL-28's tofu-plan-state-silo shape row adds one assertion. Smallest fix: re-measure at 8a7620e and quote those figures and commits.

Named, not charged

  • Live measurement (disclosed deferral, carried from rounds 1-3). SL-25 asks for the store's own answer measured as root against PROD; the author says an agent cannot fetch its environment (docs/agents/workflow.md §3) and gives a one-command read-only check. I could not run it either (no root credential on this host). The refusal direction is safe: a different live answer refuses every new key loudly and drops nothing. Someone with the Operator's word should run that command before the Target is next used on a new key.
  • The state read still infers absence. scripts/key-mint.sh:147 takes any non-zero tofu state show — a backend error as much as a missing entry — as "no entry". That inference predates this change (the old line had the same shape) and SL-25's scope is the info read, so it is named, not charged.
  • Comment volume (AGENTS.md:39 §Code comments, "Keep comments to a minimum"): the change carries rationale comments throughout key-mint.sh, as SL-22/SL-23/SL-26 already did; rounds 1-3 read the rule as applied loosely and that reading holds.
  • trap - ERR at scripts/key-mint.sh:200 survived round 1's mutation wave as redundant (nothing can fail after it); unchanged by this delta.
  • Probe side effects: all scratch trees live under cache/scratch/infra-silo-31-r4/; the head worktree stayed clean (git status --porcelain empty). CI by SHA: pr-checks / check (pull_request) is success in 30s on 8a7620e; the head was re-read from the host (refs/pull/31/head) after the last probe and equals the dispatch SHA.

Summary

Axis Findings Worst
Spec 0 none
Standards 0 none
Evidence (PR body) 1 (ADVISORY 1) counts and head SHA one base commit behind

One advisory, no blockers: the state is APPROVED, the recommendation is merge (the volume rule trips at three counted advisories and there is one), and the label is review/merge-ready.

<!-- minos review-loop: repo=olympus/infra-silo pr=31 head=8a7620e610eb3c67eddadf60014795ffdf5149e8 round=4/5 axes=standards,spec --> repo olympus/infra-silo · PR #31 · head 8a7620e610eb3c67eddadf60014795ffdf5149e8 · round 4/5 by the thread (three reviews already posted: 5344c33 round 1, e956f13 round 2, 58ac4d5 round 3 — the dispatch said 1/5, whose counter restarts when a `review/*` label is moved by hand) · verdict: no blockers, 1 advisory Recommendation: merge **Spec source:** SL-25 on Vikunja (project 7, index 25, task id 308), fetched live this round; its acceptance criteria are the contract. **Standards source:** `AGENTS.md` at the head (§Code comments, §Toolchain, §Docs), and the org records in `olympus/workshop` `docs/adr` at `main` — ADR 0006 governs that a Stack's state is read with a key of its own, not this message shape, and nothing there binds this delta. **Fixed point.** The prior reviewed head 58ac4d5 **is not** an ancestor of 8a7620e (`git merge-base --is-ancestor` exits 1): the branch was rebased onto `main` d69964a (SL-28). The blobs say the branch's own change did not move: `scripts/key-mint.sh` is `943fb05` at both revisions, and `scripts/tests/key-mint.test.sh` and the runbook differ from 58ac4d5 by exactly the base's own SL-28 changed-line sets (compared as changed-line sets: identical). So this round's delta is a rebase plus the base's lines; the branch's own diff at this base is `git diff d69964a 8a7620e`: 3 files, +236/−13. ## Closing round 3 (0 blockers, 0 findings) Review #506 at 58ac4d5 was APPROVED with no finding: there is nothing to clear, and the script blob is byte-identical at this head. Rounds 1 and 2's advisories remain cleared by the same two blobs. ## Spec (SL-25) | Acceptance criterion | Verdict | Evidence I produced | | --- | --- | --- | | A case for each scenario: an `info` failure that is not not-found drops nothing and mints nothing; an entry holding a different access key is refused and kept; a create that fails after a drop names the dropped address | met | `scripts/tests/key-mint.test.sh:473-585` (`info-failed`, `info-unreachable`, `entry-other-key`, `entry-other-key-same-name`, `entry-unnamed`, `drop-then-create-fails`, `drop-then-import-fails`) | | Each case fails against the current script and passes after | met | this head's test file against `main`'s (`d69964a`) `scripts/key-mint.sh`: `key-mint-test: 29 case(s) failed`, rc=1; at the head `key-mint-test: every case passed`, **194** `ok`, rc=0 | | The existing "a key minted under an address the state still holds is adopted" case still passes | met | in the 194-`ok` run | | `mise exec -- make check` exits 0 | met | rc=0 at 8a7620e: **358** `ok` lines in all, **233** anchored, 0 `not ok`; `env-check`, `env-test`, `key-audit-test`, `key-mint-test`, `deploy tests`, `fmt-check`, `validate` (`Success! The configuration is valid.`) | | The comment records the real client's not-found text, and the stub answers with that text | met, with the disclosed caveat | `scripts/key-mint.sh:130-137`; the stub's envelope at `scripts/tests/key-mint.test.sh:133-135`; measured against a stand-in, not PROD (see Named, not charged) | | Runbook 0003 §7 says when the drop happens and when it is refused | met | `docs/runbooks/0003-the-state-in-the-store.md:476-499` | **The tests can fail at this head.** Mutation wave on scratch copies: the unnamed arm put back to `under the name ''` → 2 rows red; the `XMinioAdminNoSuchAccessKey` guard disabled → 11 rows red; the other-access-key refusal disabled → 14 rows red; the `dropped_note` call on a failed create removed → 2 rows red. No spec finding. ## Standards (`AGENTS.md`) 0 findings. `make check` is green at the head, `fmt-check` and `validate` included; the delta adds no relative link and no new docs page; it touches only the three files its ticket names. `AGENTS.md` §Code comments is read as rounds 1-3 read it (loosely — see Named, not charged). Nothing in the org ADRs is contradicted. ## Evidence (PR body) **ADVISORY 1 — the Evidence lines still quote the pre-rebase head and its counts** (PR body §Evidence). The body says `make key-mint-test` gives "193 `ok` lines" and `make check` "exits 0 at this head (`58ac4d5`): 357 `ok` lines in all, 232 of them at the left margin". At 8a7620e I measured **194**, and **358 / 233**; 58ac4d5 is no longer an ancestor of the head, and the fix commits it cites (`e956f13`, `58ac4d5`) were replayed as b5dc184 and 8a7620e. The green run and the 29-case red are real; only the two counts and the SHAs are one base commit behind — SL-28's `tofu-plan-state-silo` shape row adds one assertion. Smallest fix: re-measure at 8a7620e and quote those figures and commits. ## Named, not charged - **Live measurement (disclosed deferral, carried from rounds 1-3).** SL-25 asks for the store's own answer measured as root against PROD; the author says an agent cannot fetch its environment (`docs/agents/workflow.md` §3) and gives a one-command read-only check. I could not run it either (no root credential on this host). The refusal direction is safe: a different live answer refuses every new key loudly and drops nothing. Someone with the Operator's word should run that command before the Target is next used on a new key. - **The state read still infers absence.** `scripts/key-mint.sh:147` takes any non-zero `tofu state show` — a backend error as much as a missing entry — as "no entry". That inference predates this change (the old line had the same shape) and SL-25's scope is the `info` read, so it is named, not charged. - **Comment volume** (`AGENTS.md:39` §Code comments, "Keep comments to a minimum"): the change carries rationale comments throughout `key-mint.sh`, as SL-22/SL-23/SL-26 already did; rounds 1-3 read the rule as applied loosely and that reading holds. - **`trap - ERR` at `scripts/key-mint.sh:200`** survived round 1's mutation wave as redundant (nothing can fail after it); unchanged by this delta. - **Probe side effects:** all scratch trees live under `cache/scratch/infra-silo-31-r4/`; the head worktree stayed clean (`git status --porcelain` empty). CI by SHA: `pr-checks / check (pull_request)` is `success` in 30s on 8a7620e; the head was re-read from the host (`refs/pull/31/head`) after the last probe and equals the dispatch SHA. ## Summary | Axis | Findings | Worst | | --- | --- | --- | | Spec | 0 | none | | Standards | 0 | none | | Evidence (PR body) | 1 (ADVISORY 1) | counts and head SHA one base commit behind | One advisory, no blockers: the state is APPROVED, the recommendation is merge (the volume rule trips at three counted advisories and there is one), and the label is `review/merge-ready`.
pit merged commit ec4897d508 into main 2026-11-10 21:38:52 +00:00
pit deleted branch hermes/SL-25-make-key-mint-drops-a-state-entry-when-t 2026-11-10 21:38: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!31
No description provided.