A Stack's state is read with a key of its own #16
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/workshop!16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/adr-0006-state-credentials"
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?
Summary
One org-wide record for how a Stack's state is reached, and the vocabulary it introduces.
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.mdasks for the gap to be closed where it is found.Evidence
GETper object with each key pair already in the repositories' environment, against the store on the LANinfra-siloandinfra-semaphoreshare answered200on all sixprod/*.tfstaterecords;403on the buckets outside it, on?versioningand on?policyarn: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 with200on the record each was minted for,403on every otheredgeworkflow job and the target it runssecrets.EDGE_STATE_*are the apply key's halves, and the target passes-lock=falseMerge 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
403on 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.
4b752f5fd0tob3c65cf1c6ADR 0006: the key that reads a state belongs to that Stackto A Stack's state is read with a key of its ownrepo: olympus/workshop · pr: 16 · head:
b3c65cf1c6· round: 1/5 · state: APPROVE · blockers: 0Recommendation: fix
What I reviewed. The live head,
b3c65cf. The dispatched SHA4b752f5no longer exists on the forge — the branch was amended 23 s after the PR opened (updated 10:43:38Z), the ADR retitled to0006-a-stacks-state-is-read-with-a-key-of-its-own.md, and the title and body rewritten to match. I reviewedrefs/pull/16/headand checked the body against it; the two agree.Spec. Vikunja WR-35 (task
149, index35,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.mdanddocs/agents/issue-tracker.mdput 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'smainalready carries the same credential as**the plan-only key**(GLOSSARY.md:146-152) with_Avoid_: read key, CI key, plan key, and its ADR0009-a-plan-reads-a-record-it-cannot-rewrite.mdis Accepted (docs/adr/index.md:22). After this merge the two glossaries name one thing differently and each forbids the other's word — the driftGLOSSARY.md:3-6exists 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 thePlan keyentry or in the ADR's consequences namingplan-only keyas the sibling's spelling, and handinginfra-silo's_Avoid_line to the change that acts on this record.ADVISORY —
GLOSSARY.md:27-30anddocs/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-silomain) allowss3:ListBucketands3:GetBucketLocationonarn:aws:s3:::tfstate, andinfra-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:21to WR-27, as the ticket says.Checked and accepted — not findings
:19) against the ticket's conditional read-anything key: the sentence's subject is a key "minted for that Stack alone", and:34already names "wider than an apply key" as the trigger that retires the rule. Read consistently; nothing to fix.Proposedin a table of fiveAcceptedrows —:5states 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 throughadr/index.md, which the diff updates.infra-siloGLOSSARY.md:136-139), not a coinage.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.Acceptedrows beside it, matching the body's "five".infra-silomain:0009Accepted with both glossary terms and thestate-policy.jsongrants quoted above; itsMakefile:61-80comparesbackend.tf's bucket againstsilo/store/variables.tfand reads no policy — the record's "the policy is never read" (:28) reproduced at the site it names.decide.test.js71/71,scan.test.py24/0,render.test.py141/0 — not evidence for a docs change, evidence that nothing else moved.Could not verify
POST /api/v1/markdown/rawanswers 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 mergedplan-only key. Spec: 1 finding — worst is the rotation proof that never exercises an apply key's write. No blockers: APPROVE,review/merge-ready.This pull request has changes conflicting with the target branch.
New commits pushed, approval review dismissed automatically according to repository settings
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-minosAPPROVED atb3c65cf— its own header saysblockers: 0, and it moved the label toreview/merge-ready, recommending a polishing round on the advisory count (4 ≥ 3), not on weight. Thereview/needs-fixlabel that dispatched me was moved bypitat15: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
cd98e68origin/mainintohermes/adr-0006-state-credentialsmaingained ADR 0007 and its index row (807c9bf) while this was in review; both branches touchdocs/adr/index.md, and the merge conflicted on that one file. Both rows are kept, 0006 above 000797529beFinding by finding
docs/adr/index.mdconflicts with the target branchmergeable: trueagaincd98e68Plan keycontradictsinfra-silo's mergedthe plan-only key, whose_Avoid_line forbids this page's wordPlan keyentry now names the plan-only key as the sibling's spelling, and states that the convergence belongs to the change that acts on this record97529beGLOSSARY.md'sState keynor the record'sDecisionnames the bucket listing97529belen())git diff -wagainstb3c65cfshows only the A2 and A4 clauses as non-whitespace change, so the rewrap carries no wording edits97529be97529beTwo 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-siloGLOSSARY.md:143, word for word) and claims only the grant. The grant itself iss3:ListBucketands3:GetBucketLocationonarn:aws:s3:::tfstate(infra-silosilo/store/state-policy.json:5-8), which is two actions the phrase covers as one — the same shorthandinfra-siloalready 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-siloGLOSSARY.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) and0002(longest 81) fail the same 80-column check onmaintoday, before this change. Untouched: a retidy of someone else's record is a ticket of its own, not a passenger on this one.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, withrcquoted.AGENTS.mdand the README name nomake test/make check; these five are the repo's own suites, through the manager.mise exec -- python3 nas-disk-report/tests/scan.test.py24 passed, 0 failed,rc=0mise exec -- python3 nas-disk-report/tests/render.test.py141 passed, 0 failed,rc=0mise exec -- node pr-review-loop/tests/decide.test.js71/71 checks passed,rc=0mise exec -- bash scripts/tests/protect-main.test.shall 63 checks pass,rc=0mise exec -- bash scripts/tests/onboard-repo.test.shall 41 checks pass,rc=0adr_index_check.py .at97529be2 failed—0001 longest=95,0002 longest=81;0006is nowok inside the 80-column register longest=80(it wasFAIL longest=514atb3c65cf)adr_index_check.py .at807c9bf(main)2 failed, the same two files — they aremain's, not this branch'sPOST /api/v1/markdownover the three filesindex.mdrenders 8<tr>, every row 4 cells; the record renders 9<li>(5 consequences + 4 Update when); both new clauses present in the rendered textThe repository defines no workflow on
mainor on the branch, so there are no status contexts to wait for —GET /commits/97529be/statusanswerstotal_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, theplan-only keyclause and both index rows are all there, and no conflict marker survives.Self-review
The
code-reviewskill asks for two parallel sub-agents. Noclaude,codexoragentCLI 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...HEADisM 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 tob3c65cf.repo: olympus/workshop · pr: 16 · head:
97529be· round: 2/5 · state: APPROVE · blockers: 0Recommendation: merge
Round number. The dispatch says
round=1/5; the timeline already carries this loop's round 1, pinned tob3c65cf. 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) and97529be(the four advisories).git diff 807c9bf...97529beisM 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.docs/adr/index.mdcd98e68mergeable: truePlan keycontradictedinfra-silo's merged term97529beGLOSSARY.md:40-42infra-silomain5fe2283carriesthe plan-only keyatGLOSSARY.md:146-152with_Avoid_: read key, CI key, plan key— the premise reproduces word for word97529beGLOSSARY.md:30-31,0006:31-32silo/store/:state,forge-guest,forge-edge,tracker-guest,tracker-edgeand each-planvariant grants3:ListBucket+s3:GetBucketLocationonarn:aws:s3:::tfstate, plusGet/Put/Deleteon{object, .tflock};infra-semaphore's own file is identical97529bewhole filegit diff -w b3c65cf 97529beon that file shows only the A2 and A4 clauses97529be0006:51-53Standards
Two advisories, no blockers.
ADVISORY —
docs/adr/0006-…:67-77againstdocs/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 whensection 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:12defines the column,:23-24says 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## Statesection 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
:37) against the ticket's read-anything key (decision 2):71already names "wider than an apply key" as the trigger that retires the rule. Read consistentlyProposedbeside fiveAcceptedrowsindex.md:5— "the numbering is an address, not a ranking"; nothing orders by status, and the body states the blast radiusinfra-siloGLOSSARY.md:140-143), and the phrase is now true of all six policy files rather than one0001(38 lines over 80, longest 95) and0002(2, longest 81)mainat807c9bf, untouched here, and declared out of scope in the fixer's commentmain's, brought in by the merge commit — not this change; the diff againstmainis the three filesVerified
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.0006longest 80, 0 over;0003/0004/0005/0007also 0 over;000138 over (95),00022 over (81) — and the same two fail at807c9bf, so they aremain's.0006sits between0005and0007.POST /api/v1/markdown, authenticated: 200 for all three.index.mdrenders 1<table>/ 8<tr>;0006renders 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-8grants the bucket listing;GLOSSARY.md:146-152the plan-only key;Makefile:61-89comparesbackend.tf's bucket againstsilo/store/variables.tfand reads no policy — the record's:58-61reproduced at the site it names.infra-tracker@0d09bf2:.forgejo/workflows/checks.yaml:67-68gives the PR-triggered jobsecrets.EDGE_STATE_*, andMakefile:228-231(edge-plan-ci) runs-lock=false— the record's Context:24-26reproduced.infra-semaphore:semaphore/guest/state-policy.jsonexists only in the consuming repo, andsilo/store/has no semaphore policy — the body's evidence row 4, the half that can be read without the store.Could not verify
prod/*.tfstaterecords, 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.adr_index_check.pyis 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 (000680/0,000195,000281), so the conclusion stands without the tool.Summary. Standards: 2 findings — worst is the update-trigger list stated twice and already disagreeing (
0006:67-77againstindex.md:19). Spec: 0 findings. No blockers, so this is APPROVE and the label goes toreview/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.