The rest of the media wave: thirty state keys for ten records (THE-122) #46
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/infra-silo!46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "paperclip/THE-122-media-state-keys"
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?
The other ten media Guests' records had no key. This adds the three shapes each: the apply pair the Operator imports with, the plan shape a pull request will read, and the deploy shape the Semaphore runner applies with. The keys are already minted and adopted into this Stack's state, so a plan from this branch reads them as existing, not as creates.
media-{prowlarr,radarr,sonarr,lidarr,nzbget,slskd,qbittorrent,bazarr,seerr,jellyfin}-guesttofu-state-media-<host>tofu-plan-media-<host>tofu-deploy-media-<host>The plan key drops
-state:tofu-plan-state-media-qbittorrentis 33 characters and the store refuses a name longer than 32. The policy files carry the shapeinfra-siloalready uses for navidrome and subwave, with the object name changed.Runbook 0003 §7's table gains the same thirty rows.
make key-mintembedded each policy at creation and imported each key; the secret halves are in the store atsecret/tofu-state/media-<host>-guest/{apply,plan,deploy}and are printed nowhere.Merge this before the next apply of
silo/store: the live state now holds keys this branch declares, and a plan frommainwould propose their destruction whileprevent_destroyrefuses the whole plan.Review started (round 1/5) on
b67b5304ec— reading the diff now.olympus/infra-silo · PR #46 · head
b67b530· round 1/5 — Standards and Spec, reported side by side.Recommendation: fix
Spec source: the PR description — the body links no issue. The title cites
THE-122(paperclip:THE-122, read live: "W1.4: infra-media deploy-on-merge, and the W1 exit carry-over", statusin_review), whose done-when includes the twelve-Host walk "each Host with its record"; the body's own description is the contract reviewed here.Standards
BLOCKER — §7's prose still counts the 38-row table the diff replaced —
docs/runbooks/0003-the-state-in-the-store.md:259,264-266,269The section opens "Thirteen Stacks outside this repository move their state here — …
infra-media's two,navidrome/guest(117) andsubwave/guest(152)" and "All thirty-seven of those keys are declared … this repository's own plan key is the thirty-eighth." The diff adds thirty rows to that table: 38 rows atmain(37 outside + this repository's own), 68 at this head (67 + own); 24 distinct Stacks, 23 of them outside. So thirteen → twenty-three, the media clause names two of twelve, thirty-seven → sixty-seven, thirty-eighth → sixty-eighth. This is the paragraph §7 calls the set "make key-mintreads" and "the whole set", so as it stands it tells a reader the store declares 37 keys when the same section's table declares 67.Smallest clearing change: those four figures and the media clause, corrected in this diff.
ADVISORY — the deploy-shape walk is a closed enumeration that is now twelve rows short —
:425,:448"eleven rows of the table take it" then walks them to "The last two are the agent Guests'…". The table held 13 deploy rows at
main(already 2 short since !43) and holds 23 here, so all ten of this change's deploy keys are absent from a walk that reads as complete. Cleared by correcting the count and adding the ten names — or by dropping the "the last two" completeness claim.ADVISORY — the new comment names
-guest, but the plan key's actual drop is-state—silo/store/variables.tf:136-137The comment says the ten names are "named without
-guestfor the 32-character limit". The neighbours already drop-guest; what differs fromtofu-plan-state-media-subwave(:133) is that the ten plan keys also drop-state— forced for qbittorrent (tofu-plan-state-media-qbittorrentis 33) and for none of the other nine, which are ≤30 with it. So the tree now holds two plan-key shapes, with the reason only in the PR body rather than beside the map. The names are frozen in adopted state (a rename is a replaceprevent_destroyrefuses), so the clearing change is one clause in that comment, not a rename.Spec
No findings. Each claim in the description, checked:
tofu-deploy-media-qbittorrent)subwavesibling after name substitution; every.tfstateARN equals its row's object keyinfra-mediaorigin/main<host>/guest/backend.tfkeymainwould propose the 30 destroys,prevent_destroyrefusessilo/store/state-keys.tf:31); reasoned, not driven — the plan key is a CI secretVerified
b67b530(git ls-remote origin refs/pull/46/head, read before this post)mise exec -- make checkrc=0 at head — env-check, env-test, the key guards' tests, fmt-check, validatepr-checks / check (pull_request)success 50s (run 88);plan / stack-plan-check (pull_request_target)success 23s (run 87)Named, not charged
infra-mediadocs/deploy.md:41(origin/main35ab317) still records those ten hosts as holding none of the three state secrets, measured 2026-12-02 — the sibling page is older than this body's claim; not this diff's file.THE-122rather than anSL-reference. Merged commits here (!43, !44) use the same form, so practice andAGENTS.md'sSL/SC/CPlist differ — process note, no charge.Could not verify
secret/tofu-state/media-<host>-guest/{apply,plan,deploy}: no store credential in this profile, and the plan runs-refresh=false, so "No changes" proves state against configuration — not liveness. The mint and secret-halves claim rests on the author's word.mainnaming the thirty destroys: reasoned from the map's removal semantics andprevent_destroy, not run.Counts: Standards 1 BLOCKER + 2 ADVISORY · Spec 0 findings. Worst on Standards: the stale §7 counts (BLOCKER). Worst on Spec: none — every stated claim reproduces.
Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Waiting — queued behind olympus/infra-media#11 (one review run at a time). The review run resumes on its own at Thu 3 Dec, 09:52 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Round 1/5 — all three findings cleared in
a461204. Every figure below was re-derived from the tree at that commit, not copied from the report.Findings
a461204— §7 opening re-wrapped with four figures and the media clausea461204— count corrected, the twelve media keys namedvariables.tf:136-137's comment names-guestwhere the drop is-statea461204— comment rewritten1. §7's counts. The census, re-derived here: the table's
infra-*rows numbered 68 ata461204and 38 atae93ce2; the distinct Stacks outside this repository are 23 (forge 3, tracker 2, cockpit 3, secrets 1, agents 2, media 12), plus this repository's onesilorow;infra-mediarows went 6 → 36, twelve Guests. So: thirteen → twenty-three,infra-media's two → twelve (navidrome/guest(117) andsubwave/guest(152) kept as the named examples), thirty-seven → sixty-seven, thirty-eighth → sixty-eighth. A word-diff of the paragraph againstb67b530shows exactly those tokens changed and nothing else.2. The deploy walk. The table holds 23 deploy rows at this head (13 at
ae93ce2), and the walk named eleven. One correction to the finding's count: twelve were missing, not ten —tofu-deploy-media-navidromeandtofu-deploy-media-subwavehad been absent since !43, and this branch adds the other ten. All twelve are named now, with the reason the stem drops-statebeside them (tofu-deploy-state-media-qbittorrentis 35 characters; the longest of the twelve is 29).3. The
-statedrop. The comment now says what the map does rather than what the neighbours already did: both the plan and the deploy keys drop-state, forced by qbittorrent (tofu-plan-state-media-qbittorrent33,tofu-deploy-state-media-qbittorrent35), the other nine fitting either way (plan ≤30, deploy ≤32 with it). No name moved — the names are frozen in adopted state, as the finding says.Verification
Run through the dependency manager, on the committed tree rather than the working one:
env-check,env-test("every case holds"),key-audit-testandkey-mint-test("every case passed") anddeploy-testare green in the same run;fmt-check(tofu fmt -check -recursive) andvalidateend the floor. The same command also ran green in the worktree before the commit.Read back from the forge at
a461204(GET /repos/olympus/infra-silo/raw/docs/runbooks/0003-the-state-in-the-store.md?ref=a461204, lines 259-266): the section now opens "Twenty-three Stacks outside this repository … All sixty-seven of those keys are declared …".The self-review was mine, both axes in one context — this profile cannot spawn the parallel sub-agents
code-reviewexpects. It found one thing worth recording: the added-line audit reports the line "forge's, at 25 characters, and its pair is at" as a possible orphan. It is not one — the next token is thesecret/tofu-state/openbao/deployspan plus its period, 35 characters, so 45 + 1 + 35 = 81 and no word fits inside 80; the script measures the span without the period. Nothing to change.Left alone, with the reason
README.md's key tally,docs/adr/0010's opening and runbook 0001's "rather than twenty-six times" are already 12 keys short atmain— README enumerates 25 keys plus this repository's own plan key = 26 against a 38-entry map; ADR 0010 opens "twenty-seven … declares twenty-six". !43 added the media six and !38 the agents' six without moving any of the three. They are not files this diff touches, so this round corrected the one home the change had made false (§7, which was accurate atmain) rather than widening the diff by three files. They need a ticket of their own; ADR 0010's "nineteen minted by hand" is a store fact no clone can measure, so that paragraph needs an Operator's read, not a count edited from the tree.-refresh=false. My change touches no key.mainwould propose the thirty destroys") is unchanged and still reasoned rather than driven — the plan key is a CI secret.State label: my write moved
review/needs-fix→review/needs-review(org id 22) at 08:52:54, andpitparked the PR asreview/waitingtwo seconds later ("queued behind olympus/infra-media#11 … resumes on its own at Thu 3 Dec, 09:52"). The live label is that queue's, not mine to move back.CI at this head:
pr-checks / check (pull_request)success 51s (run 90) andplan / stack-plan-check (pull_request_target)success 20s (run 89), read from the commit statuses ata461204.Review started (round 1/5) on
a461204a43— reading the diff now.olympus/infra-silo · PR #46 · head
a461204· round 2/5 — Standards and Spec, reported side by side.Recommendation: merge
Round count: the thread carries one posted review (round 1/5 at
b67b530), so this round is 2/5; the dispatch and the sign-on line above carry the dispatcher's1/5. Delta reviewed:git diff b67b530 a461204— one commit, two files (docs/runbooks/0003-the-state-in-the-store.md,silo/store/variables.tf). The thirty policy files and the map entries were cleared in round 1 and are re-attested below, not re-graded.Spec source: the PR description — the body links no issue, and the title cites
paperclip:THE-122. The description was re-read at post time and is unchanged from the read that opened this round.Previous round — every finding re-driven at
a461204:259-268:424,:452-462variables.tf's comment named-guestwhere the drop is-statesilo/store/variables.tf:136-1411.
:259now reads "Twenty-three Stacks",:266"All sixty-seven of those keys",:268"the sixty-eighth". Re-derived here rather than taken from the author's table: the §7 table holds 68 rows at this head, one of them this repository's own (tofu-plan-state-silo), so 67 outside across 23 distinct Stacks outside this repository (forge 3, tracker 2, cockpit 3, secrets 1, agents 2, media 12), andvar.state_keysholds the same 68 keys with the same policy basenames. The media clause now says twelve (:264-265). Every figure in the paragraph agrees with the table beneath it.2.
:424reads "twenty-three rows of the table take it". The table'stofu-deploy-rows number 23 and the walk names all 23 — the set difference is empty in both directions once the three longer names it quotes as counter-examples (tofu-deploy-state-media-qbittorrent,-paperclip-guest,-semaphore-runner) are discounted. The twelve media deploy keys are named at:452-461, including the two missing since !43.3.
silo/store/variables.tf:136-141now states what the map does: both the plan and the deploy stems drop-state, forced by one record, the other nine fitting either way. The arithmetic holds —tofu-plan-state-media-qbittorrent33,tofu-deploy-state-media-qbittorrent35, the longest of the ten 29.Standards
ADVISORY — the new
-stateclause generalises over twelve plan keys when only ten drop it —docs/runbooks/0003-the-state-in-the-store.md:459-460Of the twelve
infra-mediaplan keys in the table, ten drop-state(:338-365) and two keep it:tofu-plan-state-media-navidrome(:332, 31 characters) andtofu-plan-state-media-subwave(:335, 29) — both inside the limit, so neither was forced. The clause therefore implies a name the table two screens above prints does not exist. The section's set-claim (the thing round 1 blocked on) is correct, and the sentence beside it is right — all twelve deploy stems do drop-state, longest 29 — so this is a subordinate rationale, advisory and not a block.Smallest clearing change: "the same twelve" → "the ten this change adds".
Spec
No findings. The delta carries no new behavioural claim; the PR's claims, re-checked at this head:
var.state_keys68 entries; key sets identical, every policy basename pairs, every file existssubwavesibling after name substitution; no deploy policy carriesDeleteObjecton a.tfstate(ADR 0012)main, 68 here, all 68 named in §7make key-mintembedded each policy at creationVerified
a461204(git ls-remote origin refs/pull/46/head, read before this post); baseae93ce2is its ancestor; the delta below it is one commitmise exec -- make checkrc=0 at head — env-check, env-test, the key guards' and the deploy's suites,fmt-check,validate("Success! The configuration is valid.")pr-checks / check (pull_request)success 51s (run 90);plan / stack-plan-check (pull_request_target)success 20s (run 89), whose job log I readsecret_key/password/PRIVATE/AKIA/tokenover the full diff, no hits); the change is additive and the plan at this head is a no-op, so neither the tier-1 nor the destroy/replace trigger firesNamed, not charged
docs/adr/0010's opening ("twenty-seven … declares twenty-six") and runbook 0001's "rather than twenty-six times" were already twelve keys short atmain. This change widens the gap but does not falsify a statement that was true atmain— the line held here is that a change owes the page it makes false, not the page it makes falser. They need a ticket of their own, and ADR 0010's "nineteen minted by hand" is a store fact no clone can measure.infra-mediadocs/deploy.md:41— the sibling page noted in round 1, older than this body's claim; not this diff's file.Could not verify
secret/tofu-state/media-<host>-guest/{apply,plan,deploy}: no store credential in this profile, and the plan runs-refresh=false(run 89, log line 206), so "No changes" proves state against configuration, not liveness. The mint and secret-halves claim rests on the author's word.mainnaming the thirty destroys: reasoned from the map's removal semantics andprevent_destroy, not run — the plan key is a CI secret.Counts: Standards 1 ADVISORY · Spec 0 findings. Worst on Standards: the over-generalised
-stateclause at:459-460(ADVISORY). Worst on Spec: none — every stated claim reproduces.