A Stack's state is read with a key of its own #16

Merged
pit merged 3 commits from hermes/adr-0006-state-credentials into main 2026-10-27 16:13:14 +00:00
Owner

Summary

One org-wide record for how a Stack's state is reached, and the vocabulary it introduces.

docs/adr/
  0006-a-stacks-state-is-read-with-a-key-of-its-own.md          new
  index.md                                                     + one row
GLOSSARY.md                                                    + a State section: state key, apply key, plan key

The standard: a Stack's state is read and written by a key minted for that Stack alone, from a policy the store's owner holds — and the consuming repository carries the pair, never the policy. A run that only plans holds a key that reads the record and writes only the lock beside it, so a run that decides nothing can destroy nothing. Two shapes and no third.

It is filed Proposed: the merge is yours, and there are keys to mint behind the store's root credential before the standard is true of anything.

The glossary gains three terms the record needs — state key, apply key, plan key — because the record and the tickets that follow it name them, and docs/agents/domain.md asks for the gap to be closed where it is found.

Evidence

Claim How Result
One pair reached every record in the store, not the two objects its policy file names GET per object with each key pair already in the repositories' environment, against the store on the LAN the pair infra-silo and infra-semaphore share answered 200 on all six prod/*.tfstate records; 403 on the buckets outside it, on ?versioning and on ?policy
What it does is the policy text from before the narrowing the policy file's own history against that behaviour the earlier file named arn:aws:s3:::tfstate/prod/*; the current one names two objects; the key behaves like the earlier text, and a key keeps the policy it was minted with
Four records already run on a key of their own the same read, with the forge's and the tracker's per-Stack pairs 200 on the record each was minted for, 403 on every other
A second Stack's policy file has no mint behind it grep of both repositories, then the store owner's key table the file exists only in the consuming repository, the key table does not list it, and that Stack runs as the other pair
A pull-request-triggered job holds an apply key the tracker's edge workflow job and the target it runs secrets.EDGE_STATE_* are the apply key's halves, and the target passes -lock=false
Nothing compares a key's policy against its file ADR-0005's guard, read where it runs it compares the bucket a backend names against the bucket the store declares; the policy is never read
Not run — no key was minted or removed, and the store's access-key list was not read: both need the root credential, which this change did not take

Merge Danger

Door: three documents. No credential, service, workflow or configuration is touched, and nothing enforces the standard yet. Blast radius if merged and never acted on: an ADR that the index lists beside five Accepted ones, reading as binding before the keys that would carry it exist. Blast radius if acted on: two mints per Stack behind the store's root credential, and a rotation in the wrong order fails closed — the retired pair answers 403 on the record it no longer holds, so a run stops rather than writing with it.

Ticket: Vikunja WR-35 — Decide the state credentials: one pair per Stack, or shared, closed on this decision; part of the map Wayfinder: shared secrets for every actor.

Prose in this body and in the files is agent-written (Hermes); the change is yours to review and merge.

## Summary One org-wide record for how a Stack's state is reached, and the vocabulary it introduces. ``` docs/adr/ 0006-a-stacks-state-is-read-with-a-key-of-its-own.md new index.md + one row GLOSSARY.md + a State section: state key, apply key, plan key ``` The standard: a Stack's state is read and written by a key minted for that Stack alone, from a policy the store's owner holds — and the consuming repository carries the pair, never the policy. A run that only plans holds a key that reads the record and writes only the lock beside it, so a run that decides nothing can destroy nothing. Two shapes and no third. It is filed **Proposed**: the merge is yours, and there are keys to mint behind the store's root credential before the standard is true of anything. The glossary gains three terms the record needs — *state key*, *apply key*, *plan key* — because the record and the tickets that follow it name them, and `docs/agents/domain.md` asks for the gap to be closed where it is found. ## Evidence | Claim | How | Result | | --- | --- | --- | | One pair reached every record in the store, not the two objects its policy file names | `GET` per object with each key pair already in the repositories' environment, against the store on the LAN | the pair `infra-silo` and `infra-semaphore` share answered `200` on all six `prod/*.tfstate` records; `403` on the buckets outside it, on `?versioning` and on `?policy` | | What it does is the policy text from before the narrowing | the policy file's own history against that behaviour | the earlier file named `arn:aws:s3:::tfstate/prod/*`; the current one names two objects; the key behaves like the earlier text, and a key keeps the policy it was minted with | | Four records already run on a key of their own | the same read, with the forge's and the tracker's per-Stack pairs | `200` on the record each was minted for, `403` on every other | | A second Stack's policy file has no mint behind it | grep of both repositories, then the store owner's key table | the file exists only in the consuming repository, the key table does not list it, and that Stack runs as the other pair | | A pull-request-triggered job holds an apply key | the tracker's `edge` workflow job and the target it runs | `secrets.EDGE_STATE_*` are the apply key's halves, and the target passes `-lock=false` | | Nothing compares a key's policy against its file | ADR-0005's guard, read where it runs | it compares the bucket a backend names against the bucket the store declares; the policy is never read | | Not run | — | no key was minted or removed, and the store's access-key list was not read: both need the root credential, which this change did not take | ## Merge Danger Door: three documents. No credential, service, workflow or configuration is touched, and nothing enforces the standard yet. Blast radius if merged and never acted on: an ADR that the index lists beside five Accepted ones, reading as binding before the keys that would carry it exist. Blast radius if acted on: two mints per Stack behind the store's root credential, and a rotation in the wrong order fails closed — the retired pair answers `403` on the record it no longer holds, so a run stops rather than writing with it. **Ticket:** Vikunja [WR-35 — Decide the state credentials: one pair per Stack, or shared](https://vikunja.thepit.space/tasks/149), closed on this decision; part of the map [Wayfinder: shared secrets for every actor](https://vikunja.thepit.space/tasks/137). Prose in this body and in the files is agent-written (Hermes); the change is yours to review and merge.
pit force-pushed hermes/adr-0006-state-credentials from 4b752f5fd0 to b3c65cf1c6 2026-10-25 10:43:33 +00:00 Compare
pit changed title from ADR 0006: the key that reads a state belongs to that Stack to A Stack's state is read with a key of its own 2026-10-25 10:43:37 +00:00
bot-minos approved these changes 2026-10-25 10:46:18 +00:00
Dismissed
bot-minos left a comment

repo: olympus/workshop · pr: 16 · head: b3c65cf1c6 · round: 1/5 · state: APPROVE · blockers: 0

Recommendation: fix


What I reviewed. The live head, b3c65cf. The dispatched SHA 4b752f5 no longer exists on the forge — the branch was amended 23 s after the PR opened (updated 10:43:38Z), the ADR retitled to 0006-a-stacks-state-is-read-with-a-key-of-its-own.md, and the title and body rewritten to match. I reviewed refs/pull/16/head and checked the body against it; the two agree.

Spec. Vikunja WR-35 (task 149, index 35, done) — the grilling's resolution comment (131) holds the five decisions, the credential table and the hand-offs; the PR body holds the record's own standard. No issue on the forge: AGENTS.md and docs/agents/issue-tracker.md put the tickets in Vikunja, and I read them there.

Why "fix" and not "merge". No blocker, so this review is APPROVED and the label goes to review/merge-ready. The recommendation turns on the advisory count (4 ≥ 3), not on weight — the decision the record states is sound and its evidence holds, and one batched polishing round costs you less than four taste calls argued one at a time.

Standards

ADVISORY — GLOSSARY.md:37-40 — the new org term contradicts a merged sibling term.
**Plan key** … _Avoid_: read key, read-only key, plan credential. infra-silo's main already carries the same credential as **the plan-only key** (GLOSSARY.md:146-152) with _Avoid_: read key, CI key, plan key, and its ADR 0009-a-plan-reads-a-record-it-cannot-rewrite.md is Accepted (docs/adr/index.md:22). After this merge the two glossaries name one thing differently and each forbids the other's word — the drift GLOSSARY.md:3-6 exists to stop, in the change whose subject is the vocabulary. The org hierarchy makes workshop's word the one that wins, so this is not a reason to hold the PR; it is a reason to write the convergence down. Clears with: one clause in the Plan key entry or in the ADR's consequences naming plan-only key as the sibling's spelling, and handing infra-silo's _Avoid_ line to the change that acts on this record.

ADVISORY — GLOSSARY.md:27-30 and docs/adr/0006-…:17 — the reach is one grant short.
Both say the key is "minted … naming one object in the store plus the lock beside it" / "one object, and the lock beside it". The merged policy every working key carries grants two more actions, on the bucket rather than the object: silo/store/state-policy.json:5-8 (infra-silo main) allows s3:ListBucket and s3:GetBucketLocation on arn:aws:s3:::tfstate, and infra-silo's own glossary states it — "grants nothing beyond them but the listing of the bucket" (GLOSSARY.md:140-143). A mint written to this record's enumeration fails the run's first listing. Clears with: the clause "and the bucket's listing, which a run reads before it reads the object" in both places.

ADVISORY — docs/adr/0006-…:9-36 — the only unwrapped record in the set.
15 of its 36 lines exceed 80 characters (longest 516); all five siblings wrap each paragraph, longest line 82-97 (0002:29, 0003:11, 0004:21, 0005:30, 0001:9). Nothing in this repo documents a width, so this is house style, not a rule. Clears with: rewrapping the paragraphs to the siblings' width; no wording changes.

Spec

ADVISORY — docs/adr/0006-…:26, against :19 — the rotation proof does not prove the apply key.
:19 — "An apply key reads and writes the record and the lock beside it". :26 — "Mint, put the pair where the Stack reads it, prove it with the repository's own plan, then remove the old key." A plan run on a new apply key exercises the read and the lock and never the record write, so the step the record calls proof passes on a key that cannot apply; the write half stays unproven until an apply refuses after the old key is gone. The ticket's rotation paragraph says the same, so this is inherited rather than introduced. Clears with: "…prove it with the repository's own plan — and, for an apply key, its apply".

The rest of the ticket's five decisions land where the ticket put them: per-Stack keys, the owner holding the policy files and the consumer only the pair, and the two shapes are in the record (:17-21); the wide pair's retirement, the supplied-credential exclusion and the migration order are the ticket's own actions and belong to WR-34; the layout is deferred by :21 to WR-27, as the ticket says.

Checked and accepted — not findings

  • "There are two shapes and no third" (:19) against the ticket's conditional read-anything key: the sentence's subject is a key "minted for that Stack alone", and :34 already names "wider than an apply key" as the trigger that retires the rule. Read consistently; nothing to fix.
  • Proposed in a table of five Accepted rows — :5 states it and the body states the blast radius; the index orders nothing by status.
  • docs/index.md's "Update when: A decision is made…" — satisfied through adr/index.md, which the diff updates.
  • "record" used beside "state" — house vocabulary (infra-silo GLOSSARY.md:136-139), not a coinage.
  • No credential, address or secret in the diff; three documents and nothing else moved.

Verified

  • refs/pull/16/head = b3c65cf, tree clean; git diff f61d49c...b3c65cf --name-status → M GLOSSARY.md, A docs/adr/0006-…, M docs/adr/index.md; +54/−0.
  • Every relative link in the three files resolves at HEAD (6/6); the new index row is a 4-field row like its neighbours; 5 Accepted rows beside it, matching the body's "five".
  • infra-silo main: 0009 Accepted with both glossary terms and the state-policy.json grants quoted above; its Makefile:61-80 compares backend.tf's bucket against silo/store/variables.tf and reads no policy — the record's "the policy is never read" (:28) reproduced at the site it names.
  • Repo gates on this head: decide.test.js 71/71, scan.test.py 24/0, render.test.py 141/0 — not evidence for a docs change, evidence that nothing else moved.

Could not verify

  • The store reads in the body's evidence table (200 on six records, 403 elsewhere). They need the store's credential, which this review did not take; I read them in WR-35's comment, they are internally consistent, and I did not reproduce them.
  • Rendering the three pages through the forge: POST /api/v1/markdown/raw answers 401 to an unauthenticated call here, so structure is checked by inspection, not by render.

Summary. Standards: 3 findings — worst is the glossary term that contradicts infra-silo's merged plan-only key. Spec: 1 finding — worst is the rotation proof that never exercises an apply key's write. No blockers: APPROVE, review/merge-ready.

repo: olympus/workshop · pr: 16 · head: b3c65cf1c67742eeea60db1dc2812a69b2cf0582 · round: 1/5 · state: APPROVE · blockers: 0 **Recommendation: fix** --- **What I reviewed.** The live head, `b3c65cf`. The dispatched SHA `4b752f5` no longer exists on the forge — the branch was amended 23 s after the PR opened (`updated 10:43:38Z`), the ADR retitled to `0006-a-stacks-state-is-read-with-a-key-of-its-own.md`, and the title and body rewritten to match. I reviewed `refs/pull/16/head` and checked the body against it; the two agree. **Spec.** Vikunja **WR-35** (task `149`, index `35`, `done`) — the grilling's resolution comment (`131`) holds the five decisions, the credential table and the hand-offs; the PR body holds the record's own standard. No issue on the forge: `AGENTS.md` and `docs/agents/issue-tracker.md` put the tickets in Vikunja, and I read them there. **Why "fix" and not "merge".** No blocker, so this review is APPROVED and the label goes to `review/merge-ready`. The recommendation turns on the **advisory count (4 ≥ 3)**, not on weight — the decision the record states is sound and its evidence holds, and one batched polishing round costs you less than four taste calls argued one at a time. ## Standards **ADVISORY — `GLOSSARY.md:37-40` — the new org term contradicts a merged sibling term.** `**Plan key**` … `_Avoid_: read key, read-only key, plan credential`. `infra-silo`'s `main` already carries the same credential as `**the plan-only key**` (`GLOSSARY.md:146-152`) with `_Avoid_: read key, CI key, plan key`, and its ADR `0009-a-plan-reads-a-record-it-cannot-rewrite.md` is **Accepted** (`docs/adr/index.md:22`). After this merge the two glossaries name one thing differently and each forbids the other's word — the drift `GLOSSARY.md:3-6` exists to stop, in the change whose subject is the vocabulary. The org hierarchy makes workshop's word the one that wins, so this is not a reason to hold the PR; it is a reason to write the convergence down. *Clears with:* one clause in the `Plan key` entry or in the ADR's consequences naming `plan-only key` as the sibling's spelling, and handing `infra-silo`'s `_Avoid_` line to the change that acts on this record. **ADVISORY — `GLOSSARY.md:27-30` and `docs/adr/0006-…:17` — the reach is one grant short.** Both say the key is "minted … naming one object in the store plus the lock beside it" / "one object, and the lock beside it". The merged policy every working key carries grants two more actions, on the bucket rather than the object: `silo/store/state-policy.json:5-8` (`infra-silo` main) allows `s3:ListBucket` and `s3:GetBucketLocation` on `arn:aws:s3:::tfstate`, and `infra-silo`'s own glossary states it — "grants nothing beyond them but the listing of the bucket" (`GLOSSARY.md:140-143`). A mint written to this record's enumeration fails the run's first listing. *Clears with:* the clause "and the bucket's listing, which a run reads before it reads the object" in both places. **ADVISORY — `docs/adr/0006-…:9-36` — the only unwrapped record in the set.** 15 of its 36 lines exceed 80 characters (longest 516); all five siblings wrap each paragraph, longest line 82-97 (`0002:29`, `0003:11`, `0004:21`, `0005:30`, `0001:9`). Nothing in this repo documents a width, so this is house style, not a rule. *Clears with:* rewrapping the paragraphs to the siblings' width; no wording changes. ## Spec **ADVISORY — `docs/adr/0006-…:26`, against `:19` — the rotation proof does not prove the apply key.** `:19` — "An **apply** key reads and writes the record and the lock beside it". `:26` — "Mint, put the pair where the Stack reads it, prove it with the repository's own plan, then remove the old key." A plan run on a new apply key exercises the read and the lock and never the record write, so the step the record calls proof passes on a key that cannot apply; the write half stays unproven until an apply refuses after the old key is gone. The ticket's rotation paragraph says the same, so this is inherited rather than introduced. *Clears with:* "…prove it with the repository's own plan — and, for an apply key, its apply". The rest of the ticket's five decisions land where the ticket put them: per-Stack keys, the owner holding the policy files and the consumer only the pair, and the two shapes are in the record (`:17-21`); the wide pair's retirement, the supplied-credential exclusion and the migration order are the ticket's own actions and belong to WR-34; the layout is deferred by `:21` to WR-27, as the ticket says. ## Checked and accepted — not findings - "There are two shapes and no third" (`:19`) against the ticket's conditional read-anything key: the sentence's subject is a key "minted for that Stack alone", and `:34` already names "wider than an apply key" as the trigger that retires the rule. Read consistently; nothing to fix. - `Proposed` in a table of five `Accepted` rows — `:5` states it and the body states the blast radius; the index orders nothing by status. - `docs/index.md`'s "Update when: A decision is made…" — satisfied through `adr/index.md`, which the diff updates. - "record" used beside "state" — house vocabulary (`infra-silo` `GLOSSARY.md:136-139`), not a coinage. - No credential, address or secret in the diff; three documents and nothing else moved. ## Verified - `refs/pull/16/head` = `b3c65cf`, tree clean; `git diff f61d49c...b3c65cf --name-status` → `M GLOSSARY.md`, `A docs/adr/0006-…`, `M docs/adr/index.md`; `+54/−0`. - Every relative link in the three files resolves at HEAD (6/6); the new index row is a 4-field row like its neighbours; 5 `Accepted` rows beside it, matching the body's "five". - `infra-silo` `main`: `0009` Accepted with both glossary terms and the `state-policy.json` grants quoted above; its `Makefile:61-80` compares `backend.tf`'s bucket against `silo/store/variables.tf` and reads no policy — the record's "the policy is never read" (`:28`) reproduced at the site it names. - Repo gates on this head: `decide.test.js` 71/71, `scan.test.py` 24/0, `render.test.py` 141/0 — not evidence for a docs change, evidence that nothing else moved. ## Could not verify - The store reads in the body's evidence table (200 on six records, 403 elsewhere). They need the store's credential, which this review did not take; I read them in WR-35's comment, they are internally consistent, and I did not reproduce them. - Rendering the three pages through the forge: `POST /api/v1/markdown/raw` answers **401** to an unauthenticated call here, so structure is checked by inspection, not by render. --- **Summary.** Standards: 3 findings — worst is the glossary term that contradicts `infra-silo`'s merged `plan-only key`. Spec: 1 finding — worst is the rotation proof that never exercises an apply key's write. No blockers: APPROVE, `review/merge-ready`.
Author
Owner

This pull request has changes conflicting with the target branch.

  • docs/adr/index.md
    
This pull request has changes conflicting with the target branch. - docs/adr/index.md
main gained ADR 0007 and its index row while this branch was in review, and
both branches touch docs/adr/index.md: the merge conflicted on that file, and
both rows are kept, 0006 above 0007.
The review's four advisories, all of them in the two documents this change
carries.

The record was the only unwrapped one in docs/adr: its paragraphs and bullets
now run to 80 columns like 0003-0005 and 0007, with no wording changed.

The reach was one grant short. "State key" and the record's Decision now say
the key is minted for one object, the lock beside it, and nothing beyond them
but the listing of the bucket — which is what the policy every working key
carries grants, alongside the two object actions.

The rotation proof never exercised an apply key's write, so it now names the
apply as the thing that proves an apply key.

"Plan key" contradicted infra-silo's merged "the plan-only key", whose _Avoid_
line forbids this page's word. The entry now names the sibling's spelling and
hands the convergence to the change that acts on this record.
bot-efesto dismissed bot-minos's review 2026-10-27 16:03:07 +00:00
Reason:

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

Member

Fixed: the conflict with main, and the four advisories the standing review left open. Two new commits, no force-push, no history rewritten.

What dispatched this round

There is no new review to read. The newest review is bot-minos APPROVED at b3c65cf — its own header says blockers: 0, and it moved the label to review/merge-ready, recommending a polishing round on the advisory count (4 ≥ 3), not on weight. The review/needs-fix label that dispatched me was moved by pit at 15:59:40Z, eight seconds after Forgejo's own conflict notice (#issuecomment-2123: "This pull request has changes conflicting with the target branch — docs/adr/index.md").

So the ask is inferred, and I am saying so: the conflict is the dispatched finding, and the four advisories the approval left standing ride along — a human re-arming a reviewed head is not asking for nothing. If I read that wrong, the conflict half stands on its own and the advisories can be reverted as one commit.

Commits

Commit What it does Why
cd98e68 Merges origin/main into hermes/adr-0006-state-credentials main gained ADR 0007 and its index row (807c9bf) while this was in review; both branches touch docs/adr/index.md, and the merge conflicted on that one file. Both rows are kept, 0006 above 0007
97529be The four advisories All of them live in the two documents this change carries. No wording changed except the three clauses the findings named

Finding by finding

Finding (standing review) Resolution Commit
Conflict — docs/adr/index.md conflicts with the target branch Both rows kept in numeric order, no conflict markers left; the PR reads mergeable: true again cd98e68
A1 — Plan key contradicts infra-silo's merged the plan-only key, whose _Avoid_ line forbids this page's word The Plan key entry now names the plan-only key as the sibling's spelling, and states that the convergence belongs to the change that acts on this record 97529be
A2 — the reach is one grant short: neither GLOSSARY.md's State key nor the record's Decision names the bucket listing Both now read "one object … the lock beside it, and nothing beyond them but the listing of the bucket" 97529be
A3 — the only unwrapped record in the set (15 of 36 lines over 80, longest 514 by len()) Paragraphs and bullets wrapped to the siblings' register. git diff -w against b3c65cf shows only the A2 and A4 clauses as non-whitespace change, so the rewrap carries no wording edits 97529be
A4 — the rotation proof never exercises an apply key's write "…prove it with the repository's own plan — and, for an apply key, its apply — then remove the old key." 97529be

Two notes on how I took A1 and A2

A2 — the wording. I used the sibling's own phrasing, "nothing beyond them but the listing of the bucket", rather than the offered clause "and the bucket's listing, which a run reads before it reads the object". The offered sentence asserts an order of reads I did not measure, and this is a record that is read as the standard; the sibling phrase is the merged precedent (infra-silo GLOSSARY.md:143, word for word) and claims only the grant. The grant itself is s3:ListBucket and s3:GetBucketLocation on arn:aws:s3:::tfstate (infra-silo silo/store/state-policy.json:5-8), which is two actions the phrase covers as one — the same shorthand infra-silo already uses for the same policy.

A1 — the hand-off. The glossary clause names the sibling spelling and where the convergence lives; the _Avoid_ line itself (_Avoid_: read key, CI key, plan key, infra-silo GLOSSARY.md:152) is a change in another repository, so it is not in this PR's blast radius. It belongs to the implementation work that acts on this record — WR-34, "Hand off: write the implementation work". If you would rather have a tracker task for it than a sentence in the glossary, say so and I will open one.

Left alone, deliberately

  • docs/adr/0001 (longest line 95) and 0002 (longest 81) fail the same 80-column check on main today, before this change. Untouched: a retidy of someone else's record is a ticket of its own, not a passenger on this one.
  • The PR body is unchanged. It quotes no figure my commits move, its file tree still matches the diff against main, and its "beside five Accepted ones" still holds — 0001–0005 Accepted, 0006 and 0007 Proposed.

Verification

Suites were run from git archive 97529be — a fresh tree byte-identical to the pushed head — unpiped, with rc quoted. AGENTS.md and the README name no make test/make check; these five are the repo's own suites, through the manager.

Command Output
mise exec -- python3 nas-disk-report/tests/scan.test.py 24 passed, 0 failed, rc=0
mise exec -- python3 nas-disk-report/tests/render.test.py 141 passed, 0 failed, rc=0
mise exec -- node pr-review-loop/tests/decide.test.js 71/71 checks passed, rc=0
mise exec -- bash scripts/tests/protect-main.test.sh all 63 checks pass, rc=0
mise exec -- bash scripts/tests/onboard-repo.test.sh all 41 checks pass, rc=0
adr_index_check.py . at 97529be 2 failed — 0001 longest=95, 0002 longest=81; 0006 is now ok inside the 80-column register longest=80 (it was FAIL longest=514 at b3c65cf)
adr_index_check.py . at 807c9bf (main) the same 2 failed, the same two files — they are main's, not this branch's
POST /api/v1/markdown over the three files index.md renders 8 <tr>, every row 4 cells; the record renders 9 <li> (5 consequences + 4 Update when); both new clauses present in the rendered text

The repository defines no workflow on main or on the branch, so there are no status contexts to wait for — GET /commits/97529be/status answers total_count: 0. This comment is the verification record.

I read the three files back from the branch, not from my clone (GET /raw/<path>?ref=97529be): the listing clause, the apply clause, the plan-only key clause and both index rows are all there, and no conflict marker survives.

Self-review

The code-review skill asks for two parallel sub-agents. No claude, codex or agent CLI exists on this host, so both passes were mine, run in sequence in one context — said plainly rather than implying children ran them. Standards: the record now matches the family's shape (80 columns, hanging-indent bullets, trailing newline) and the index row stays 4 cells. Spec: the five items above are the whole of what changed, and nothing outside them moved — git diff --name-status origin/main...HEAD is M GLOSSARY.md, A docs/adr/0006-…, M docs/adr/index.md, +98/−0.

State label moved to review/needs-review, since a new commit is on the branch and the standing approval was pinned to b3c65cf.

<!-- fix-meta repo=olympus/workshop pr=16 head=97529be214b0a5c4d102085e816d92a90bcb77db round=1/5 disposition=fixed --> **Fixed: the conflict with `main`, and the four advisories the standing review left open.** Two new commits, no force-push, no history rewritten. ## What dispatched this round There is no new review to read. The newest review is `bot-minos` **APPROVED** at `b3c65cf` — its own header says `blockers: 0`, and it moved the label to `review/merge-ready`, recommending a polishing round on the **advisory count (4 ≥ 3)**, not on weight. The `review/needs-fix` label that dispatched me was moved by `pit` at `15:59:40Z`, eight seconds after Forgejo's own conflict notice (`#issuecomment-2123`: *"This pull request has changes conflicting with the target branch — `docs/adr/index.md`"*). So the ask is inferred, and I am saying so: **the conflict is the dispatched finding, and the four advisories the approval left standing ride along** — a human re-arming a reviewed head is not asking for nothing. If I read that wrong, the conflict half stands on its own and the advisories can be reverted as one commit. ## Commits | Commit | What it does | Why | | --- | --- | --- | | `cd98e68` | Merges `origin/main` into `hermes/adr-0006-state-credentials` | `main` gained ADR 0007 and its index row (`807c9bf`) while this was in review; both branches touch `docs/adr/index.md`, and the merge conflicted on that one file. Both rows are kept, 0006 above 0007 | | `97529be` | The four advisories | All of them live in the two documents this change carries. No wording changed except the three clauses the findings named | ## Finding by finding | Finding (standing review) | Resolution | Commit | | --- | --- | --- | | **Conflict** — `docs/adr/index.md` conflicts with the target branch | Both rows kept in numeric order, no conflict markers left; the PR reads `mergeable: true` again | `cd98e68` | | **A1** — `Plan key` contradicts `infra-silo`'s merged `the plan-only key`, whose `_Avoid_` line forbids this page's word | The `Plan key` entry now names **the plan-only key** as the sibling's spelling, and states that the convergence belongs to the change that acts on this record | `97529be` | | **A2** — the reach is one grant short: neither `GLOSSARY.md`'s `State key` nor the record's `Decision` names the bucket listing | Both now read *"one object … the lock beside it, and nothing beyond them but the listing of the bucket"* | `97529be` | | **A3** — the only unwrapped record in the set (15 of 36 lines over 80, longest 514 by `len()`) | Paragraphs and bullets wrapped to the siblings' register. `git diff -w` against `b3c65cf` shows only the A2 and A4 clauses as non-whitespace change, so the rewrap carries no wording edits | `97529be` | | **A4** — the rotation proof never exercises an apply key's write | *"…prove it with the repository's own plan — and, for an apply key, its apply — then remove the old key."* | `97529be` | ### Two notes on how I took A1 and A2 **A2 — the wording.** I used the sibling's own phrasing, *"nothing beyond them but the listing of the bucket"*, rather than the offered clause *"and the bucket's listing, which a run reads before it reads the object"*. The offered sentence asserts an order of reads I did not measure, and this is a record that is read as the standard; the sibling phrase is the merged precedent (`infra-silo` `GLOSSARY.md:143`, word for word) and claims only the grant. The grant itself is `s3:ListBucket` and `s3:GetBucketLocation` on `arn:aws:s3:::tfstate` (`infra-silo` `silo/store/state-policy.json:5-8`), which is two actions the phrase covers as one — the same shorthand `infra-silo` already uses for the same policy. **A1 — the hand-off.** The glossary clause names the sibling spelling and where the convergence lives; the `_Avoid_` line itself (`_Avoid_: read key, CI key, plan key`, `infra-silo` `GLOSSARY.md:152`) is a change in **another repository**, so it is not in this PR's blast radius. It belongs to the implementation work that acts on this record — WR-34, *"Hand off: write the implementation work"*. If you would rather have a tracker task for it than a sentence in the glossary, say so and I will open one. ## Left alone, deliberately - `docs/adr/0001` (longest line 95) and `0002` (longest 81) fail the same 80-column check **on `main` today**, before this change. Untouched: a retidy of someone else's record is a ticket of its own, not a passenger on this one. - The PR body is unchanged. It quotes no figure my commits move, its file tree still matches the diff against `main`, and its *"beside five Accepted ones"* still holds — 0001–0005 Accepted, 0006 and 0007 Proposed. ## Verification Suites were run from `git archive 97529be` — a fresh tree byte-identical to the pushed head — unpiped, with `rc` quoted. `AGENTS.md` and the README name no `make test`/`make check`; these five are the repo's own suites, through the manager. | Command | Output | | --- | --- | | `mise exec -- python3 nas-disk-report/tests/scan.test.py` | `24 passed, 0 failed`, `rc=0` | | `mise exec -- python3 nas-disk-report/tests/render.test.py` | `141 passed, 0 failed`, `rc=0` | | `mise exec -- node pr-review-loop/tests/decide.test.js` | `71/71 checks passed`, `rc=0` | | `mise exec -- bash scripts/tests/protect-main.test.sh` | `all 63 checks pass`, `rc=0` | | `mise exec -- bash scripts/tests/onboard-repo.test.sh` | `all 41 checks pass`, `rc=0` | | `adr_index_check.py .` at `97529be` | `2 failed` — `0001 longest=95`, `0002 longest=81`; `0006` is now `ok inside the 80-column register longest=80` (it was `FAIL longest=514` at `b3c65cf`) | | `adr_index_check.py .` at `807c9bf` (`main`) | the same `2 failed`, the same two files — they are `main`'s, not this branch's | | `POST /api/v1/markdown` over the three files | `index.md` renders 8 `<tr>`, every row 4 cells; the record renders 9 `<li>` (5 consequences + 4 *Update when*); both new clauses present in the rendered text | The repository defines no workflow on `main` or on the branch, so there are no status contexts to wait for — `GET /commits/97529be/status` answers `total_count: 0`. This comment is the verification record. I read the three files back from the branch, not from my clone (`GET /raw/<path>?ref=97529be`): the listing clause, the apply clause, the `plan-only key` clause and both index rows are all there, and no conflict marker survives. ## Self-review The `code-review` skill asks for two parallel sub-agents. No `claude`, `codex` or `agent` CLI exists on this host, so **both passes were mine, run in sequence in one context** — said plainly rather than implying children ran them. Standards: the record now matches the family's shape (80 columns, hanging-indent bullets, trailing newline) and the index row stays 4 cells. Spec: the five items above are the whole of what changed, and nothing outside them moved — `git diff --name-status origin/main...HEAD` is `M GLOSSARY.md`, `A docs/adr/0006-…`, `M docs/adr/index.md`, `+98/−0`. State label moved to `review/needs-review`, since a new commit is on the branch and the standing approval was pinned to `b3c65cf`.
bot-minos approved these changes 2026-10-27 16:08:32 +00:00
bot-minos left a comment

repo: olympus/workshop · pr: 16 · head: 97529be · round: 2/5 · state: APPROVE · blockers: 0

Recommendation: merge


Round number. The dispatch says round=1/5; the timeline already carries this loop's round 1, pinned to b3c65cf. I numbered by the timeline, so this is the second review, and it is a re-review whatever the dispatch number says.

What I reviewed. 97529be, re-resolved twice — when I started and again before composing this. refs/pull/16/head = branch tip = the dispatched SHA, tree clean. The round's delta is two commits: cd98e68 (main merged in) and 97529be (the four advisories). git diff 807c9bf...97529be is M GLOSSARY.md, A docs/adr/0006-…, M docs/adr/index.md, +98/−0.

The prior round left no blockers, and four advisories. All four are cleared, verified at 97529be, not taken on the fixer's word.

Prior finding Cleared by What I checked
Conflict on docs/adr/index.md cd98e68 Both rows kept in numeric order (0006 above 0007), no conflict markers anywhere in the tree, PR reads mergeable: true
A1 — Plan key contradicted infra-silo's merged term 97529be GLOSSARY.md:40-42 infra-silo main 5fe2283 carries the plan-only key at GLOSSARY.md:146-152 with _Avoid_: read key, CI key, plan key — the premise reproduces word for word
A2 — the reach was one grant short 97529be GLOSSARY.md:30-31, 0006:31-32 The clause now matches every policy file in silo/store/: state, forge-guest, forge-edge, tracker-guest, tracker-edge and each -plan variant grant s3:ListBucket + s3:GetBucketLocation on arn:aws:s3:::tfstate, plus Get/Put/Delete on {object, .tflock}; infra-semaphore's own file is identical
A3 — the only unwrapped record in the set 97529be whole file Longest line 80 characters, 0 lines over 80 (was 15 over, longest 514). git diff -w b3c65cf 97529be on that file shows only the A2 and A4 clauses
A4 — the rotation proof never exercised an apply key's write 97529be 0006:51-53 "…prove it with the repository's own plan — and, for an apply key, its apply — then remove the old key"

Standards

Two advisories, no blockers.

ADVISORY — docs/adr/0006-…:67-77 against docs/adr/index.md:19 — the update triggers are now stated twice, and the two copies already disagree. The record lists four triggers; the index row lists three. The one dropped is the trigger that retires the record's own stated limitation (:58-61, "Nothing compares the policy a file states against the policy a key holds"): "Something starts comparing a key's live policy against the policy file it was minted from". Records 0001–0005 carry no ## Update when section at all, so for them the row is the only statement of the triggers; this record creates the second copy, and it is out of step on the day it merges — the drift-detection trigger, which is the likeliest of the four to be crossed, is invisible to a reader who only reads the index. Nothing in the repo governs this (index.md:12 defines the column, :23-24 says only "add a file and a row"), so this is a judgement call on a duplicated shape, not a documented rule. Clears with: add the fourth trigger to the row — or drop the section and let the row carry the list, the 0001–0005 shape.

ADVISORY — GLOSSARY.md:35 — one line of the new ## State section escapes the section's own wrap. "The state key shape that reads and writes a Stack's record and the lock beside it." is 82 characters, while both neighbours in the same section (State key :28-31, Plan key :39-42) wrap at 80 or under, and the record this change adds now has no line over 80. House style, not a rule: nothing in this repo documents a width. Clears with: wrapping that one entry.

Spec

No findings. The contract is WR-35 (Vikunja task 149, done), whose resolution comment holds five decisions and a three-line standard, and whose own closing section names this PR as the ADR that carries it. All three standard lines land in the record's Decision (:30-43): a key minted per Stack from a policy the store's owner holds, with the consumer carrying the pair and never the policy; a plan key that reads the record and writes only the lock; reach not widened for convenience. Decisions 1, 3 and 4 are in the record; 2 (retirement of the wide pair), 5 (supplied credentials stay outside) and the migration order are the ticket's own hand-off to WR-34, and the ticket says so. Nothing in the diff is unasked for — three documents, exactly the file tree the body claims.

Checked and accepted — not findings

Item Why it is not a finding
"There are two shapes and no third" (:37) against the ticket's read-anything key (decision 2) The sentence's subject is a key "minted for that Stack alone"; :71 already names "wider than an apply key" as the trigger that retires the rule. Read consistently
Proposed beside five Accepted rows index.md:5 — "the numbering is an address, not a ranking"; nothing orders by status, and the body states the blast radius
"naming … the listing of the bucket" as one phrase for two actions The sibling's merged shorthand (infra-silo GLOSSARY.md:140-143), and the phrase is now true of all six policy files rather than one
0001 (38 lines over 80, longest 95) and 0002 (2, longest 81) Pre-existing on main at 807c9bf, untouched here, and declared out of scope in the fixer's comment
ADR-0007 in the delta main's, brought in by the merge commit — not this change; the diff against main is the three files
Secrets No credential, address or token in the diff; three Markdown files

Verified

  • refs/pull/16/head = branch tip = 97529be, clean tree; git diff --name-status 807c9bf...97529be → M GLOSSARY.md, A docs/adr/0006-…, M docs/adr/index.md; +98/−0.
  • Widths by character count: 0006 longest 80, 0 over; 0003/0004/0005/0007 also 0 over; 0001 38 over (95), 0002 2 over (81) — and the same two fail at 807c9bf, so they are main's.
  • Every relative link in the three files resolves at head (7/7); every index row is 4 cells; 0006 sits between 0005 and 0007.
  • POST /api/v1/markdown, authenticated: 200 for all three. index.md renders 1 <table> / 8 <tr>; 0006 renders 9 <li>; the listing clause, the apply-proof clause and "the plan-only key" are all present in the rendered text.
  • infra-silo @ 5fe2283: silo/store/state-policy.json:5-8 grants the bucket listing; GLOSSARY.md:146-152 the plan-only key; Makefile:61-89 compares backend.tf's bucket against silo/store/variables.tf and reads no policy — the record's :58-61 reproduced at the site it names.
  • infra-tracker @ 0d09bf2: .forgejo/workflows/checks.yaml:67-68 gives the PR-triggered job secrets.EDGE_STATE_*, and Makefile:228-231 (edge-plan-ci) runs -lock=false — the record's Context :24-26 reproduced.
  • infra-semaphore: semaphore/guest/state-policy.json exists only in the consuming repo, and silo/store/ has no semaphore policy — the body's evidence row 4, the half that can be read without the store.

Could not verify

  • The store reads — 200 on six prod/*.tfstate records, 403 elsewhere, and "no mint behind semaphore's policy". Both need the store's credential and its root key list, which this review did not take. I read them in WR-35's resolution comment; they are internally consistent and I did not reproduce them.
  • The fixer's adr_index_check.py is not in this repo or in this profile, so the named checker could not be run. I measured the widths directly instead and its figures reproduce (0006 80/0, 0001 95, 0002 81), so the conclusion stands without the tool.

Summary. Standards: 2 findings — worst is the update-trigger list stated twice and already disagreeing (0006:67-77 against index.md:19). Spec: 0 findings. No blockers, so this is APPROVE and the label goes to review/merge-ready. Two advisories is below the volume trip, so I recommend the merge rather than another round: both are one-line edits, and they travel as advice.

<!-- minos review-loop: repo=olympus/workshop pr=16 head=97529be214b0a5c4d102085e816d92a90bcb77db round=2/5 axes=standards,spec --> repo: olympus/workshop · pr: 16 · head: 97529be · round: 2/5 · state: APPROVE · blockers: 0 Recommendation: merge --- **Round number.** The dispatch says `round=1/5`; the timeline already carries this loop's round 1, pinned to `b3c65cf`. I numbered by the timeline, so this is the second review, and it is a re-review whatever the dispatch number says. **What I reviewed.** `97529be`, re-resolved twice — when I started and again before composing this. `refs/pull/16/head` = branch tip = the dispatched SHA, tree clean. The round's delta is two commits: `cd98e68` (main merged in) and `97529be` (the four advisories). `git diff 807c9bf...97529be` is `M GLOSSARY.md`, `A docs/adr/0006-…`, `M docs/adr/index.md`, `+98/−0`. **The prior round left no blockers, and four advisories. All four are cleared, verified at `97529be`, not taken on the fixer's word.** | Prior finding | Cleared by | What I checked | | --- | --- | --- | | Conflict on `docs/adr/index.md` | `cd98e68` | Both rows kept in numeric order (0006 above 0007), no conflict markers anywhere in the tree, PR reads `mergeable: true` | | A1 — `Plan key` contradicted `infra-silo`'s merged term | `97529be` `GLOSSARY.md:40-42` | `infra-silo` main `5fe2283` carries `the plan-only key` at `GLOSSARY.md:146-152` with `_Avoid_: read key, CI key, plan key` — the premise reproduces word for word | | A2 — the reach was one grant short | `97529be` `GLOSSARY.md:30-31`, `0006:31-32` | The clause now matches **every** policy file in `silo/store/`: `state`, `forge-guest`, `forge-edge`, `tracker-guest`, `tracker-edge` and each `-plan` variant grant `s3:ListBucket` + `s3:GetBucketLocation` on `arn:aws:s3:::tfstate`, plus `Get/Put/Delete` on `{object, .tflock}`; `infra-semaphore`'s own file is identical | | A3 — the only unwrapped record in the set | `97529be` whole file | Longest line 80 characters, 0 lines over 80 (was 15 over, longest 514). `git diff -w b3c65cf 97529be` on that file shows only the A2 and A4 clauses | | A4 — the rotation proof never exercised an apply key's write | `97529be` `0006:51-53` | "…prove it with the repository's own plan — and, for an apply key, its apply — then remove the old key" | ## Standards **Two advisories, no blockers.** **ADVISORY — `docs/adr/0006-…:67-77` against `docs/adr/index.md:19` — the update triggers are now stated twice, and the two copies already disagree.** The record lists four triggers; the index row lists three. The one dropped is the trigger that retires the record's own stated limitation (`:58-61`, "Nothing compares the policy a file states against the policy a key holds"): *"Something starts comparing a key's live policy against the policy file it was minted from"*. Records 0001–0005 carry no `## Update when` section at all, so for them the row is the only statement of the triggers; this record creates the second copy, and it is out of step on the day it merges — the drift-detection trigger, which is the likeliest of the four to be crossed, is invisible to a reader who only reads the index. Nothing in the repo governs this (`index.md:12` defines the column, `:23-24` says only "add a file and a row"), so this is a judgement call on a duplicated shape, not a documented rule. *Clears with:* add the fourth trigger to the row — or drop the section and let the row carry the list, the 0001–0005 shape. **ADVISORY — `GLOSSARY.md:35` — one line of the new `## State` section escapes the section's own wrap.** "The state key shape that reads and writes a Stack's record and the lock beside it." is 82 characters, while both neighbours in the same section (`State key` `:28-31`, `Plan key` `:39-42`) wrap at 80 or under, and the record this change adds now has no line over 80. House style, not a rule: nothing in this repo documents a width. *Clears with:* wrapping that one entry. ## Spec **No findings.** The contract is WR-35 (Vikunja task `149`, `done`), whose resolution comment holds five decisions and a three-line standard, and whose own closing section names this PR as the ADR that carries it. All three standard lines land in the record's Decision (`:30-43`): a key minted per Stack from a policy the store's owner holds, with the consumer carrying the pair and never the policy; a plan key that reads the record and writes only the lock; reach not widened for convenience. Decisions 1, 3 and 4 are in the record; 2 (retirement of the wide pair), 5 (supplied credentials stay outside) and the migration order are the ticket's own hand-off to WR-34, and the ticket says so. Nothing in the diff is unasked for — three documents, exactly the file tree the body claims. ## Checked and accepted — not findings | Item | Why it is not a finding | | --- | --- | | "There are two shapes and no third" (`:37`) against the ticket's read-anything key (decision 2) | The sentence's subject is a key "minted for that Stack alone"; `:71` already names "wider than an apply key" as the trigger that retires the rule. Read consistently | | `Proposed` beside five `Accepted` rows | `index.md:5` — "the numbering is an address, not a ranking"; nothing orders by status, and the body states the blast radius | | "naming … the listing of the bucket" as one phrase for two actions | The sibling's merged shorthand (`infra-silo` `GLOSSARY.md:140-143`), and the phrase is now true of all six policy files rather than one | | `0001` (38 lines over 80, longest 95) and `0002` (2, longest 81) | Pre-existing on `main` at `807c9bf`, untouched here, and declared out of scope in the fixer's comment | | ADR-0007 in the delta | `main`'s, brought in by the merge commit — not this change; the diff against `main` is the three files | | Secrets | No credential, address or token in the diff; three Markdown files | ## Verified - `refs/pull/16/head` = branch tip = `97529be`, clean tree; `git diff --name-status 807c9bf...97529be` → `M GLOSSARY.md`, `A docs/adr/0006-…`, `M docs/adr/index.md`; `+98/−0`. - Widths by character count: `0006` longest 80, 0 over; `0003`/`0004`/`0005`/`0007` also 0 over; `0001` 38 over (95), `0002` 2 over (81) — and the same two fail at `807c9bf`, so they are `main`'s. - Every relative link in the three files resolves at head (7/7); every index row is 4 cells; `0006` sits between `0005` and `0007`. - `POST /api/v1/markdown`, authenticated: 200 for all three. `index.md` renders 1 `<table>` / 8 `<tr>`; `0006` renders 9 `<li>`; the listing clause, the apply-proof clause and "the plan-only key" are all present in the rendered text. - `infra-silo` @ `5fe2283`: `silo/store/state-policy.json:5-8` grants the bucket listing; `GLOSSARY.md:146-152` the plan-only key; `Makefile:61-89` compares `backend.tf`'s bucket against `silo/store/variables.tf` and reads no policy — the record's `:58-61` reproduced at the site it names. - `infra-tracker` @ `0d09bf2`: `.forgejo/workflows/checks.yaml:67-68` gives the PR-triggered job `secrets.EDGE_STATE_*`, and `Makefile:228-231` (`edge-plan-ci`) runs `-lock=false` — the record's Context `:24-26` reproduced. - `infra-semaphore`: `semaphore/guest/state-policy.json` exists only in the consuming repo, and `silo/store/` has no semaphore policy — the body's evidence row 4, the half that can be read without the store. ## Could not verify - The store reads — 200 on six `prod/*.tfstate` records, 403 elsewhere, and "no mint behind semaphore's policy". Both need the store's credential and its root key list, which this review did not take. I read them in WR-35's resolution comment; they are internally consistent and I did not reproduce them. - The fixer's `adr_index_check.py` is not in this repo or in this profile, so the named checker could not be run. I measured the widths directly instead and its figures reproduce (`0006` 80/0, `0001` 95, `0002` 81), so the conclusion stands without the tool. --- **Summary.** Standards: 2 findings — worst is the update-trigger list stated twice and already disagreeing (`0006:67-77` against `index.md:19`). Spec: 0 findings. No blockers, so this is APPROVE and the label goes to `review/merge-ready`. Two advisories is below the volume trip, so I recommend the merge rather than another round: both are one-line edits, and they travel as advice.
pit merged commit 6b26098ec0 into main 2026-10-27 16:13:14 +00:00
pit deleted branch hermes/adr-0006-state-credentials 2026-10-27 16:13:14 +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/workshop!16
No description provided.