docs: a deploy's key is the third shape of a Stack's state (SC-14) #39
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/workshop!39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/adr-0012-deploy-state-shape"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Answers the blocking finding on infra-silo !16 — the change that ships the deploy shape's policy file (SC-14,
infra-secrets). No WR ticket: the record is owed by that review, and that review names the clearing.Summary
workshop/docs/adr/0006counted two shapes of state key — apply and plan — and said "There are two shapes and no third". The credential a deploy holds is neither, and infra-silo !16 declares it. The review of that PR blocked on the gap: the org record every olympus author reads first would keep answering with a count the change contradicts.0012 is
Accepted — 2026-11-04, because the shape it records is already in force: the key exists, and it was minted against the policy file on !16. What it decides, in one line: a deploy key is the apply shape with the one action that deletes the record taken out of it — it reads and writes the record and reads, writes and deletes the lock, and it cannot delete the record.0006 is amended rather than replaced, and the index keeps its rule (a new file is for reversing a decision): the decision stands, the enumeration of shapes moved, so 0006 gets a dated note under its status, the count rewritten in the past tense with a pointer at 0012, and an Update when bullet moved to the next condition. The index row for 0006 carries the same moved cell.
Evidence
The record names no tool, host or configuration key, and every line it adds is inside the 80-column register:
Merge Danger
Door: one-way for the text — a merged record is changed only by a later record, so undoing this one takes a second.
Blast Radius: documentation only. It binds the credential every infrastructure repository's deploy holds; it changes no file another repository runs.
Order: merge this before infra-silo !16. That PR's runbook cites 0012 by number, and the number sits in review until this lands.
Review started (round 1/5) on
1d3c97f48a— reading the diff now.repo: olympus/workshop · pr: #39 · head:
1d3c97f48a· round: 1/5 · verdict: blockRecommendation: fix
The record is right and matches the policy files. The page that defines the vocabulary was not brought along, and it now contradicts it.
Standards
Sources:
AGENTS.md§Decisions/§Docs;docs/adr/index.md;docs/index.md:14;GLOSSARY.md§State; precedent6b26098.S1 — BLOCKER —
GLOSSARY.md:34-43(absent from the diff)docs/index.md:14sets the glossary's update trigger: a term is coined, or one drifts. This change coins deploy key (0012:42,index.md:25); the glossary still defines two shapes.They now define the same word differently:
0012:40-43: apply "deletes both"; the deploy key is "the apply shape with the one action that deletes the record taken out of it".GLOSSARY.md:34-36: apply "reads and writes ... the record and the lock beside it" - no deletion.The deletion is the third shape's whole point, and the glossary's apply definition lacks it. Read through the glossary, a deploy key is an apply key.
docs/agents/domain.mdsends authors there for exactly this vocabulary.Checked against the policies: apply = Get/Put/Delete on record and lock; plan = Get on record, Get/Put/Delete on lock. 0012 is accurate; the glossary is stale.
Precedent:
6b26098shipped ADR-0006 with## State, Apply key and Plan key in one commit (GLOSSARY.md+20).Clears with: a
**Deploy key**:entry under## State, plus the delete added to the Apply key line.S2 — ADVISORY —
0006:52vs0012:62-640006 still says every record costs two mints; a deploying Stack now costs three, as 0012 says. The note at
0006:7-9warrants the rest unchanged, and this is the one consequence the change falsifies; a reader stopping at 0006 under-counts by one.Clears with: "or three where the Stack deploys (0012)" in that bullet.
S3 — ADVISORY —
0012:13vs0006:5,index.md:190012 calls 0006 "settled" and says the rest stands, while 0006 is still
Proposedand the index row this PR edits keeps that cell. An Accepted record now half-supersedes a proposal.Clears with: either the status moved to Accepted, or 0012 resting on usage rather than on status.
Spec
Spec source: the clearing named in infra-silo !16's blocking review (379) - a new file plus an index row in
workshop/docs/adr/- plus this PR's description. No WR ticket; the description says why.0012, Accepted, three shapes at:38-44.index.md:25; 0006's trigger cell moved (index.md:19).0006:7-9, past-tense count0006:41-44, trigger0006:76-78; the index's new-file rule (index.md:27-28) kept.silo/store/semaphore-deploy-state-policy.jsonatorigin/pr16: record Get/Put, no Delete; lock Get/Put/Delete; bucket List/GetBucketLocation.No requirement missing; no scope creep.
P1 — ADVISORY — description, Merge Danger / Order
"That PR's runbook cites 0012 by number" is false at !16
f1113d4:docs/runbooks/0003-the-state-in-the-store.md:338-339still says two shapes and no third, and that until that record is amended the row is this repo's declaration. Merge order is right; !16 still has that half to land.Verified by hand
mise exec -- make docs-check: 3 assertions, 22 links across 21 docs (matches the description).0012:60).origin/main, deployorigin/pr16) read against0012:40-44.make-targets.md:185names no count, needs no row; nothing else. The file that should have changed and did not isGLOSSARY.md(S1).Not verified
make key-auditagainst the store - no root credential here; the audit line is the author's word.Summary
Standards: 3 findings - 1 BLOCKER (glossary not updated; the two apply-key definitions now disagree), 2 ADVISORY.
Spec: 1 finding - 0 BLOCKER, 1 ADVISORY (the 0012 citation is not yet in !16's runbook).
The recommendation turns on the BLOCKER; the three advisories would trip the volume rule on their own and travel as advice.
Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Round 1/5 — fixed and verified. Three new commits, appended to
hermes/adr-0012-deploy-state-shape; no history rewritten, nothing force-pushed,mainuntouched. Head is now1a753e6.GLOSSARY.mdnever learned the third shape22faccd0006:52still counts two mints82cfdb40012:13calls a Proposed record "settled"1a753e6!16claimWhat changed
S1 —
22faccd.GLOSSARY.mdgains a**Deploy key**:entry under## State, worded off 0012's Decision rather than restated from memory, and the Apply key line gets its deletion back so the two no longer read as the same shape:That is the clearing you named: entry present, delete on the apply line. The
_Avoid_line is the convention every other entry carries; it namesapply keybecause that is the drift the review found — read through the page, a deploy key was an apply key.S2 —
82cfdb4. The consequence now reads "Every record costs two mints, by hand, behind the store's root credential, or three where the Stack deploys (0012)." One bullet, your wording, inside 80 columns.S3 —
1a753e6. 0012 no longer calls 0006 "settled"; it says 0006 set out how a Stack's state is reached and that every state key in the store is minted that way. The record now rests on use, not on a status cell it cannot move — I did not touch 0006'sProposedstatus, which is a decision of its own.P1 — left alone, with the reason. The finding was true at
!16f1113d4.!16's head is now2d0fe8f, and its runbook diff adds the rowsemaphore-deploy-state-policy.json/tofu-deploy-state-semaphoreplus the paragraph "Workshop ADR-0012 names the shape". So the description's Order sentence holds against the head it names, and there is nothing here to amend.Scope: documentation only, and only files this PR already touches. Nothing else in the tree had a shape count or a 0006 citation left to move —
0005:12's "no third place" is about copies of a bucket, not key shapes.Verified
The two contexts the protection rule requires, by hand, on the pushed head:
Widths, counted in characters (not bytes — an em dash inflated my first pass by two): every line I added in 0006 and 0012 is ≤ 80, as is every added line in
GLOSSARY.md. The one 81-character line inGLOSSARY.mdis line 21, pre-existing and untouched.Self-reviewed with the two-axis pass (Standards against
AGENTS.md§Decisions/§Docs,docs/index.md's glossary trigger,docs/agents/domain.md; Spec against the clearing in!16's review): one Standards note, that my first 0012 sentence said "minted" twice, fixed before the push in the same commit.Not verified, as before: the live key and
make key-auditagainst the store (no root credential here), and the mint from the policy file byte for byte — both belong to!16, not to this record.Review started (round 2/5) on
1a753e6743— reading the diff now.repo: olympus/workshop · pr: #39 · head:
1a753e6743· round: 2/5 · verdict: mergeRecommendation: merge
Round 1's blocker is cleared, and the record and the three policy files now say the same thing about the same three shapes. Two advisories travel as advice; neither earns a round trip.
Round 1 findings, re-verified
GLOSSARY.mdnever learned the third shape22faccd.GLOSSARY.md:46-50is the**Deploy key**entry under## State, worded off 0012's Decision;:34-36now gives the apply key its delete back ("and deletes both"). The two definitions no longer read as one shape.0006:52counted two mints82cfdb4.0006:52-54: "or three where the Stack deploys (0012)".0012:13called a Proposed record "settled"1a753e6.0012:13-15now rests on practice ("every state key in the store is minted that way"), not on 0006's status cell.History was appended, not rewritten:
e2c478cis an ancestor of1a753e6, the six commits are linear, the tree is clean.Standards
Sources:
AGENTS.md§Decisions, §Docs;docs/index.md:14(glossary trigger: "a term is coined, or one drifts");docs/agents/domain.md(use the glossary's vocabulary);docs/adr/index.mdfooter (one file per decision, a row per decision, reversing by new file).A1 — ADVISORY —
GLOSSARY.md:39-41Pre-existing text, not introduced here — but this change makes it the odd one out. The page's axis is now the action set:
:34-36says the apply key "deletes both",:46-49says the deploy key "deletes the lock, and cannot delete the record". The plan entry still says it "reads a Stack's record and writes only the lock beside it", with no delete named.The plan key does delete its lock —
infra-silosilo/store/semaphore-plan-state-policy.jsongrantss3:DeleteObjectonprod/semaphore.tfstate.tflock, and0012:41states it ("reads, writes and deletes the lock"). A reader minting from the glossary alone would not know a plan run can release a lock, which is how a failed run stops blocking the next one.0006:43carries the same wording; it is untouched text and I am not asking for it here.Clears with: "and deletes the lock" added to the plan entry, so all three shapes state their deletes.
Spec
Spec source: the PR description, plus the clearing named in infra-silo !16's blocking review — a new file and an index row under
docs/adr/. No WR ticket; the description says why.0012(76 lines), Accepted 2026-11-04, three shapes at:36-44.0006:7-9, past tense at:41-44, trigger at:76-78; the index's add-a-file rule kept.index.md:25and:19.+8/-1,+15/-9,+76,+2/-1.A2 — ADVISORY — description, Merge Danger / Order
"Order: merge this before [infra-silo !16]" can no longer be followed: !16 landed on
infra-silomainasb778b3d, andsilo/store/semaphore-deploy-state-policy.jsonis onmain. Its runbook already cites this record by number —docs/runbooks/0003-the-state-in-the-store.md:338, "Workshop ADR-0012 names the shape" — soinfra-silomainis currently pointing at an ADR number that exists only on this branch. That is an argument to land this promptly, not a defect in the diff.Clears with: the Order line reworded to what is now true — !16 has landed, the citation is dangling until this merges.
Verified by hand
mise exec -- make docs-checkon the head: 3 assertions hold, 22 links across 21 documents — reproduced against the description.node pr-review-loop/tests/decide.test.js95/95,parse.test.js12/12,bash scripts/tests/protect-main.test.shall 131 checks — the two protection contexts pass at this head.0012:40-44against the policies oninfra-siloorigin/main: apply (semaphore-state-policy.json) Get/Put/Delete on record and lock — "deletes both"; plan Get on record only, Get/Put/Delete on.tflock— "reads, writes and deletes the lock"; deploy Get/Put on record, Get/Put/Delete on.tflock, bucket List — "cannot delete the record". All three exact.0003-the-state-in-the-store.md:332-339describes the deploy shape as "the pair of theapplypolicy minuss3:DeleteObjecton the.tfstate" — the same subtraction as0012:42-44.GLOSSARY.mdmax 78,0006max 79,0012max 80; no added prose line over 80.GLOSSARY.md:21at 81 is pre-existing and untouched by the diff.docs/adr/index.mdrows are table rows and long throughout.0012, the author's pattern: no output, exit 1.0005:12's "no third place" is about copies of a bucket, not keys;make-targets.md:126-128names a plan key and an apply key without a count. Nothing else to move.Not verified
0012:13's "every state key in the store is minted that way" is a claim about the live store; no root credential here, somake key-auditis the author's word. The sixteen policy files ininfra-siloare consistent with it, andprovisioner-policy.jsonis a provisioner credential rather than a state key, so nothing in the tree contradicts it.Summary
Standards: 1 finding — 0 BLOCKER, 1 ADVISORY (the glossary's plan entry is the last shape that does not name its delete, now that apply and deploy both do).
Spec: 1 finding — 0 BLOCKER, 1 ADVISORY (the description's merge order was overtaken by !16 landing).
No blocker on either axis. Two advisories sit under the volume rule, so the recommendation is merge; both are advice and either can ride in a later change.