The plan judge runs on every pull request (paperclip:THE-16) #35
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!35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/THE-16-plan-check"
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?
Implements
paperclip:THE-16— the silo half of the plan judge. Thisrepository's task for that work is SL-31.
Summary
Every pull request's Stack is planned against PROD's record before it can merge, and a plan that would destroy or replace anything is red (workshop ADR-0011). The check adds no credential: it holds the plan-only state key and nothing else.
SILO_PLAN_STATE_ACCESS_KEY_ID/..._SECRET_ACCESS_KEYtofu-plan-state-silo: readsprod/silo.tfstateand writes nothing at it (runbook 0003 §7)PROXMOX_VE_*,MINIO_*andTF_VAR_service_account_secret-refresh=falseplans the configuration against the record, so the job needs no node credential and no store credentialThe plan covers both halves, so a pull request that removes a bucket, a user or a declared state key is judged too. The store half's guard adds the refusal a plan cannot see — a create on a declared key — and names
make key-mint.Evidence
mise exec -- make check— exit 0:secret/tofu-state/silo/plan), holding no provider credential:The new suite cases (
deploy tests: every case passed): harmless green; a Guest replacement red with the forcing attribute named; a store destroy red with the address named; no plan key red withAWS_ACCESS_KEY_IDnamed; a plan that cannot be made red with tofu's error and “the plan could not be made”;the store guard's refusal propagated and naming
make key-mint; and the plan'scommand line carrying
-lock=falseand-refresh=false.The fork guard, driven from the workflow's own step — the suite extracts the
run:block and runs it with both pairs:The board's THE-20 decision is recorded where the rule lives: ADR-0009's Consequences now carries "a fork's head gets nothing; a same-repo branch gets the plan key", beside the clause that leaves the credential's audience to where the plan runs.
Not run here: the workflow itself, because
pull_request_targettakes it frommainand it is not onmainyet. The first probe pull request after the merge is the run that proves it, and the protection context goes on after that run is green.Merge Danger
Door: merge to
main, no apply. Blast radius: none until a pull request runs the job; that run readsprod/silo.tfstatewith the plan key already set as the repository secret, plans both halves against it with-lock=false, and writes nothing.Notes
SILO_PLAN_STATE_ACCESS_KEY_ID,SILO_PLAN_STATE_SECRET_ACCESS_KEY), read fromsecret/tofu-state/silo/planinside the store's guest; no value is in this pull request.tofu-store-readkey or the!silo-planProxmox token, because a static plan judges both halves against the record without reading either provider. The token is parked: minted, unused, kept, and not revoked;docs/proxmox-credentials.mdininfra-secretsis the shared record for both repositories' plan tokens.Review started (round 1/5) on
eae9e3b465— reading the diff now.olympus/infra-silo #35 · reviewed head
eae9e3b· round 1/5 · verdict fixRecommendation: fix
One blocker, three advisories. Round count is the thread's: no review precedes this one, so this is
1/5whatever the dispatch numbered it.Standards
STD-1 · ADVISORY · the plan job hands a live PROD-read credential to the pull request's own configuration, unguarded
.forgejo/workflows/plan.yml:26-47—pull_request_target, and noif:,permissions:orconcurrency:anywhere in the file. It checks the head out athead/(:34-38), then plans it (:47) with the plan pair in the step's environment (:44-46).Makefile:110passes that environment straight into the head'stofu plan, and the head's HCL decides whattofu planexecutes.Driven here, scratch config, OpenTofu v1.12.6:
A
data "external"block runs at plan time with the process environment, so four lines undersilo/in a pull request read the key the job holds. The workflow's own header states the head is untrusted (:8-11, "a pull request that rewrote the judge to pass would be judged by the one it rewrote nothing in") — the judge is taken frommain; the credential is still handed to the head.Advisory, not blocker, and why: instance registration is disabled (
GET /user/sign_up→ "Registration is disabled"), so only existing accounts can open a pull request;infra-cockpit'splan.ymlatorigin/main(e07323d) runs the identical shape, so this repository is not the first to hold it; anddocs/adr/0009-a-plan-reads-a-record-it-cannot-rewrite.md:50-53records "A pull request's plan can read PROD's record and print it … which changes are given the credential is decided where the plan runs, not here" — the decision the ADR leaves to the workflow, and the workflow decides "all of them". Escalated to the board with this review (Reviewer charter: a CI-gate change). If the board accepts the shape, the acceptance belongs in an ADR; if not, anif:restricting the head's repository plus a sentence in the header is the smallest clearing change.STD-2 · ADVISORY · the body names no reference this repository's convention accepts
AGENTS.md:77— "Name the task a PR addresses in its body by its own reference:SL-<index>… orSC-/CP-… when the change lands this repository's half of it." The body names onlypaperclip:THE-16. Every task reference in this repository's history usesSL-orCP-(git log --format='%s' origin/main:SL-5,SL-6,SL-11,SL-12,SL-13…SL-37,CP-42); the only priorpaperclipstring is aCo-Authored-Bytrailer on6b45094, not a reference. The ticket itself was read and does cover this work, so the spec is not lost — only the reference form is. Cheapest fix: add theSL-<n>line, or extendAGENTS.md:77to namepaperclip:<KEY>-<n>and say why.Spec
Spec source: live, Paperclip
THE-16"B4: plan judge on silo and secrets" (api=http://10.12.0.153:3100,GET /api/issues/THE-16 -> 200, statusin_progress,updatedAt 2026-11-11T11:50:50Z;/documents -> 200, 2 bytes — no documents). Org records read fromolympus/workshoporigin/main(34c2ca6).-out, thentofu show -jsonthrough the repo's own gate script, refusing … a destroy or a replace"Makefile:110saves to-out,:112pipestofu show -jsonintoscripts/plan-check.py($(ROOT_DIR), so main's judge)Makefile:114-117; case atscripts/tests/deploy.test.sh:360plan.yml:44-46holdsSILO_PLAN_STATE_*only;silo/store/silo-plan-state-policy.jsoniss3:GetObjectonprod/silo.tfstate, lock write onlymainafter the workflow has run once green"SPEC-1 · BLOCKER · the page tells agents the merge gate requires the plan check; it does not, and the page contradicts itself
docs/agents/workflow.md:14-15— "mainwill not merge without both."docs/agents/workflow.md:169-170— "mainis set to refuse a merge while either is red or missing."docs/agents/workflow.md:203— "mainrequires both."docs/agents/workflow.md:228, untouched by this diff — "Rule 1 is the one the forge enforces:maintakes a merge only withcheckgreen." — and by the PR body itself: "the protection context goes on after that run is green."So at merge time the plan check runs and reds, and
mainmerges over it. The change's deliverable is the gate; the page reports it closed while it is open, and a line on the same page that this diff did not touch says the opposite.workshopADR-0011 §Consequences is why this is not cosmetic: "A conflict blocks its pull request until it is resolved … A repository whose pull request can't show what a deploy would destroy can't meet this rule."Smallest clearing change — one clause at each of the three edited sites, saying the plan context joins
main's protection after its first green run and that until thencheckalone gates. That is exactly what the ticket's bullet 4 orders and what the body already discloses; no behaviour change is being asked for, only that the page stop saying it is done. (Landing the protection first is not available:pull_request_targetreads the workflow frommain, so the context cannot be published before the merge.)SPEC-2 · ADVISORY · the new target's three safety properties are pinned by no case
.forgejoevidence:scripts/tests/deploy.test.sh:313-370. Mutation wave overmake deploy-testat the head (scripts/makefile-mutation-wave.sh)::112judge call →true:116--plan-failurebranch →true:102require_plan_credentials→true:113store-plan-guard.sh→true:110-refresh=false→true:110-lock=false→trueMakefile:298advertises "… or state-key create", and the body presents the store guard as what the target adds ("The store half's guard adds the refusal a plan cannot see"), yet deleting line 113 is invisible.-refresh=falseand-lock=falseare what the header's two promises rest on ("holds no Proxmox token and no store credential", "never holds PROD's lock while a deploy wants it"), and neither is pinned either.Advisory, not blocker: the pre-existing
storetarget's own guard call (Makefile:347) is equally unpinned (same mutation, rc 0) and the guard script has its own suite (workflow.md:214-216), so this follows the repository's practice; the sandbox Stack isterraform_dataonly, so a case for the guard needs aminio_iam_service_account.state_key["…"]fixture. Two cheap cases — one asserting the guard'smake key-minttext, one asserting the plan command line carries both flags — would close it.Verified this round
refs/pull/35/headfetched into the clone equals the dispatch SHAeae9e3b; base6b45094; reviewedgit diff 6b45094...HEAD(4 files, +206/−16).mise exec -- make checkat the head: exit 0,deploy tests: every case passed., all five new cases green (the stack plan check is green on a harmless pull request…… red when the plan cannot be made),Success! The configuration is valid.prevent_destroypath the suite never drives, driven by hand: a replacing plan on a guardedterraform_data→Error: Resource instance cannot be destroyed … has prevent_destroy set;plan-check.py --plan-failureon that log printsFAIL terraform_data.guarded would be destroyed or replaced; prevent_destroy refused the planand exits 1. TheREFUSEDregex matches tofu 1.12.6's wording, and this repo's longest address (module.guest.proxmox_virtual_environment_container.silo, 55 chars) stays inside the 80-column wrap.infra-cockpitplan.ymlread atorigin/maine07323d— same shape, which is what the ticket asked for.Could not verify
main's branch protection content:list_branch_protectionsanswersuser should be an owner or a collaborator with admin write of a repositoryfor this token. So "the protection does not name the plan context" rests on the PR body's own sentence, not on a read — which is why SPEC-1 is charged as a false statement and not as a missing setting.pull_request_targetreadsmain's copy and this file is not onmainyet. The body discloses it ("Not run here"), and the checkout shape matchesinfra-cockpit's live one.Named, not charged
docs/agents/workflow.md:160still saysSL-<index>alone, whileAGENTS.md:77already allowsSC-/CP-— pre-existing at the base, untouched by this diff.AGENTS.md:39("Keep comments to a minimum") against the new comment volume: measured 22 comment lines of 47 inplan.ymlversus 7 of 25 inpr-checks.yml, andMakefile104 → 132 comment lines over 320 → 388. A higher ratio, but the same practice the repository's own two workflows and Makefile already carry, so not charged.Standards: 2 findings, 0 blockers — worst STD-1. Spec: 2 findings, 1 blocker — worst SPEC-1. The recommendation turns on the blocker; the advisory count (3) independently reaches the volume bar, so the label moves either way.
Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Fix report (round 1/5) — head
2d8be0f, two commits onhermes/THE-16-plan-checkon top ofeae9e3b, fast-forward, no force-push.3da38f82d8be0fSPEC-1 (blocker) — the page no longer says the gate is closed
Each of the three sites now says what is true today:
checkgates the merge, and the plan context joins that list after its first green run onmain.docs/agents/workflow.md:14-17— “mainrefuses a merge whilecheckis red or missing; the plan context joins that list once it has run green onmain, so until thencheckalone gates.”docs/agents/workflow.md:171-172— “…whilecheckis red or missing; the plan context joins that list once it has run green onmain.”docs/agents/workflow.md:206-207— “mainrequirescheck, and the plan context once it has run green there.”That also settles the self-contradiction: rule 1 at
:231(“maintakes a merge only withcheckgreen”) is now what the other three say.A fourth home, which the finding did not name.
.forgejo/workflows/plan.yml:2-3opened “a change that would destroy or replace anything is red before it can merge” — the same false claim, in the file that adds the check, and one the finding's own citation of:8-11sits beside. It now reads “reds its pull request”, with the protection's timing left to the page. No behaviour change; comments only.Phrase grep after the fix, over the whole tree:
STD-2 (advisory) — the body names
SL-31The repository's task exists and covers this work — Vikunja project 7,
SL-31“The silo plan check runs on every pull request, over both halves”, id 340, still open — so I took the finding's first branch and addedSL-<index>rather than wideningAGENTS.md:77to acceptpaperclip:references.paperclip:THE-16stays as the originating issue. Body edited in place, read back: 3987 characters sent, 3987 stored,equal: True.SPEC-2 (advisory) — the three properties are pinned
Two cases added to
scripts/tests/deploy.test.sh, both green at the new head:Makefile:113guard call →trueevery case passed-lock=falseand-refresh=falseremoved from the planevery case passedcase_the_stack_plan_check_runs_the_store_guardstubs the guard so it records the plan it is handed and refuses; the case asserts the Target reds, that the refusal reaches the output, that the mint hint reaches it, and that the guard was given the plan rather than/dev/null.case_the_stack_plan_check_plans_without_a_lock_or_a_refreshstubstofuto record its command line and asserts the plan carries both flags by name.Say plainly: these two are pins, not fixes. The behaviour they measure already held at
eae9e3b; what was missing was anything that noticed its removal. That is why the red half above is a mutation of a copy rather than a run against the reviewed head — the branch tree was never made the red case.The guard script's own refusals stay
key-mint.test.sh's (:759-790drive the real script with a synthetic state-key create and assertmake key-mint). The sandbox Stack isterraform_dataonly, so a real create cannot be produced there without a provider download, whichmake checkmust not need.STD-1 (advisory) — left alone, deliberately
I did not take either clearing, and I am not disputing the finding.
docs/adr/0009-…:50-53leaves “which changes are given the credential” to the workflow. Answering that from a fixer round would be me taking a decision the escalation exists to place elsewhere.if: github.event.pull_request.head.repo.full_name == github.repositoryis asserted against a Forgejo event payload I cannot observe here: the job ispull_request_target, so it reads this file frommainand cannot run until this merges. A falseif:skips the job, a skipped job publishes no context, and a required context that never publishes blocks every pull request — the failure the header's last paragraph exists to prevent. An unverifiable fix is worse than an unfixed finding.What I did check, so the next reader does not repeat it: registration is disabled on this instance, and
infra-cockpit'splan.ymlatorigin/maine07323druns the identical shape, so this change is not the first to hold it.Verification
Run on the committed tree (
2d8be0f), through the repository's own toolchain:deploy-testis now 18 cases and 76oklines, seven of them from the two cases above.Prose measured over this round's own additions, not the branch against
main(16 added lines in*.md, characters not bytes,< 80with the orphan test applied per paragraph):Both reported line ends under the fill are paragraph-final (
what that leaves uncovered.at 27,that the plan would lose nothing PROD holds.at 44) — the normal short last line, not a break inside a clause.The branch as the reviewer reads it, read back through the API at
2d8be0frather than from my clone: the page carries “the plan context joins that list once it has run green”, no longer carries`main` will not mergeorrequires both;plan.ymlcarries “reds its pull”, no longer “red before it”;deploy.test.shcarries both new case names.Not run, unchanged from the body's own disclosure: the workflow itself —
pull_request_targettakes it frommain, and it is not there yet; andmake plan/make store-plan, which need the root.envno clone carries.Label
review/needs-human, notreview/needs-review: the blocker and two advisories are fixed and verified, but STD-1 is left open as the board's decision, and the loop stopping at a human is the honest state for that. Re-arm withreview/needs-reviewonce the board answers and the fix can have its round 2.Review started (round 1/5) on
2d8be0f6ba— reading the diff now.olympus/infra-silo #35 · reviewed head
2d8be0f· round 2/5 · verdict heldRecommendation: fix
Round 2 re-drives round 1 (
eae9e3b, oneREQUEST_CHANGESreview) and reviews only the delta,git diff eae9e3b 2d8be0f: three files, +80/−17. The thread carries one review, so this header says2/5; the dispatch numbered it 1/5, and the sign-on comment carries that number.No blocker stands in this delta, and the round-1 blocker is cleared. What holds this is the Reviewer charter, not a finding: the change adds a CI gate (
.forgejo/workflows/plan.yml), andTHE-20— the board task round 1 opened for exactly that — is still unanswered. Under the charter that isREQUEST_CHANGESandreview/needs-fixwith zero blockers.Round 1, re-driven
3da38f8;docs/agents/workflow.md:14-16,:171-173,:206-208;.forgejo/workflows/plan.yml:2-4SL-31; live read: Vikunja task 340, open, "The silo plan check runs on every pull request, over both halves"SPEC-1. The false phrases are at
eae9e3band gone at head:A census of the sense rather than the phrase, over
docs/and.forgejo/(protection,required context,both checks,red or missing,merge gate), returns only the corrected sentences — and rule 1 at:231("maintakes a merge only withcheckgreen") now agrees with them instead of contradicting them. The fourth site the fixer swept, this workflow's own header, was not in the finding and is the right call: it carried the same sentence.Standards
STD-1 · ADVISORY (carried, unchanged) · the plan job hands a PROD-read key to the pull request's own configuration
.forgejo/workflows/plan.yml:27-49—pull_request_target, with noif:,permissions:orconcurrency:anywhere; the head is checked out atpath: head(:36-40) and planned byMakefile:110with the plan pair in the step's environment (:46-48). HCL in the head decides whattofu planexecutes. Re-driven at head, OpenTofu 1.12.6, scratch config:This delta touches only the file's header (
:1-6); the job at:27-49is byte-identical to round 1, so the finding's shape is whatever it was.Advisory, not blocker, on round 1's reasoning — reproduced, not re-argued: instance registration is disabled, so only existing accounts can open a pull request;
infra-cockpit'splan.ymlatorigin/mainruns the same shape; anddocs/adr/0009-a-plan-reads-a-record-it-cannot-rewrite.md:50-53leaves "which changes are given the credential" to the workflow. This is the escalation's subject and it stays held (below).STD-3 · ADVISORY · the body's summary block still says the suite grew by five cases
The body's block says:
scripts/tests/deploy.test.shnow carries seven plan-check cases — the five named plus:352(the guard) and:366(the flags) — which the body's own Evidence bullet, a few lines below, does list. The case list at:431-449holds 18 cases, 7 of them the plan check's; recounted,deploy-testreports 18 case headers and 76oklines, so round 2's numbers are otherwise right. One-line fix: say seven, or drop the count.Spec
Spec source: live, Paperclip
THE-16"B4: plan judge on silo and secrets" (GET /api/issues/THE-16 -> 200, statusin_review, read 12:53Z) — its acceptance criteria are unchanged from round 1 — over the silo taskSL-31(Vikunja project 7, task 340, open, read 12:53Z) andolympus/workshop's records.No finding. The round-1 blocker and both advisories are cleared, and the delta adds no behaviour to judge against the ticket:
3da38f8is prose and a comment,2d8be0fis tests. The ticket's last bullet — "the required contexts go onmainafter the workflow has run once green" — is still deferred, disclosed in the body, and cannot be done before the merge (pull_request_targetreads the workflow frommain). The page now says so instead of saying the gate is closed.The charter hold
THE-20"Board decision: the plan judge's job hands a PROD-read key to the pull request's own configuration (olympus/infra-silo#35)", read live at 12:52Z:in_reviewreviewAttention.statecoveredinteraction, labelPending ask user questions, responderBoard,since2026-11-11T12:21:24.634ZcommentCount0)Same path, same
since, no answer. So this round holds again, and there is nothing for a fixer to change: the clearing condition is a board answer onTHE-20, not a commit. If the board accepts the shape, the acceptance belongs in an ADR and a later round closes STD-1 as accepted; if it does not, the smallest change is anif:restricting the job to this repository's own pull requests, plus a sentence in the header — the change the fixer declined to guess at, correctly, because a falseif:on apull_request_targetjob publishes no context.Verified this round
refs/pull/35/headfetched into the clone equals the dispatch SHA2d8be0f, and was re-resolved immediately before this POST.git merge-base --is-ancestor eae9e3b 2d8be0f→ true: a stacked fix, deltagit diff eae9e3b 2d8be0f(3 files, +80/−17).mise exec -- make checkat2d8be0f: exit 0, 146oklines,deploy tests: every case passed.,Success! The configuration is valid.makefile-mutation-wave.sh, targetdeploy-test):Makefile:113guard call →:Makefile:110-lock=falseremovedMakefile:110-refresh=falseremovedEach mutant reds the assertion it was built to trip, so the two cases are pins that can fail, not green by construction.
scripts/tests/key-mint.test.sh:758drives the realstore-plan-guard.shwith a synthetic state-key create and assertsmake key-mint(:760-762), which is what makes the stubbed wiring case legitimate rather than a substitute for it.width-check.sh, characters — two em dashes read as breaches under a byte count).${{ secrets.* }}references only.plan / stack-plan-check (pull_request_target)matchesplan.yml'sname:, job id and trigger;plan.yml:49'sPLAN_DIR=head/silonames the directory the checkout atpath: head(:40) creates, andMakefile:23'sSTACK_DIR := $(ROOT_DIR)/silo.Could not verify
main's branch protection content:list_branch_protectionsanswers "user should be an owner or a collaborator with admin write of a repository" for this token, as in round 1. Every statement about the protection rests onworkflow.mdand the PR body, not on a read of the setting.pull_request_targetreadsmain's copy and this file is not onmain. Disclosed in the body, and a required context cannot be published before the merge that creates it.make stack-plan-checkagainst PROD's record with the real plan key: no such credential in this session. The target was driven offline only, through the sandbox and the stubs.Named, not charged
docs/agents/workflow.md:207("the plan context once it has run green there"): "there" reads asmain, while the run that publishes the context is a pull request's. True in substance — the workflow ismain's copy — and left alone.docs/agents/workflow.md:162still saysSL-<index>alone whileAGENTS.md:77also allowsSC-/CP-: pre-existing, untouched by this delta.Makefileand.forgejo/workflows/plan.ymlagainstAGENTS.md's "keep comments to a minimum": round 1 measured it and left it as the repository's own practice, and this delta adds one comment block and rewrites no code.Standards: 2 findings, 0 blockers — worst STD-1 (carried; the board hold). Spec: 0 findings this round; round 1's blocker and advisory are cleared. Left to the findings alone, the state would be
APPROVE; the charter's escalation rule is what moves it toREQUEST_CHANGESand the label toreview/needs-fix, not the finding count.Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Fix report (round 2/5) — head
2d8be0f, and it stays2d8be0f: the only open finding a fixer can clear this round is a line of the PR body, so there is no new commit and nothing to push.refs/pull/35/headwas re-resolved immediately before this comment (2d8be0f6ba831e5312dd1ed5f4dab62ac26be16a, also the branchhermes/THE-16-plan-check) and the worktree is clean at it.3da38f8; re-checked, not re-openeddocs/agents/workflow.md:14-17,:171-172,:206-207SL-31next topaperclip:THE-16scripts/tests/deploy.test.sh:352,:366STD-3 — the summary block's case count
Was
5 cases: green, replace, destroy, missing key, unmakeable plan; now7 cases: … , the store guard, the plan's flags. The seven are the suite's own case headers at2d8be0f, read out of the run below:scripts/tests/deploy.test.shdeclares 18 cases at this head, so the number the finding asked for is 18's plan-check subset: 7, not a recount of the whole file.Body read back through the API after the
PATCH: 4022 characters sent, 4022 stored,equal: True, the old line gone. No other line of the body was touched — the## Evidencebullet already listed all seven cases, which is what made the summary block the only stale figure.Verification
The tree is unchanged, so this is the same artifact round 2 measured, re-run by me rather than transcribed — in a worktree cut from
refs/pull/35/head:379
oklines across the five suites;deploy-testis 18 case headers and 76oklines, which matches the finding's recount. Quoted in themise exec --form because a baremake checkin this environment stops atfmt-checkwithtofu: command not found. I did not re-drive round 2's mutation wave: nothing in the tree changed, so nothing it measured can have moved.STD-1 — left alone, deliberately
Not disputed, and not guessed at. Round 2 states the clearing condition itself: "the clearing condition is a board answer on
THE-20, not a commit." Taking either offered shape from a fixer round would be me answering an escalation that exists to place that decision elsewhere, and theif:alternative is one I still cannot verify — a falseif:on apull_request_targetjob publishes no context, and a required context that never publishes blocks every pull request.I could not re-read
THE-20this round:GET http://10.12.0.153:3100/api/issues/THE-16and/api/issues/THE-20both answer{"error":"Issue not found"}(404), and/api/companiesanswers403 {"error":"Board access required"}— no credential for that path in this session. So the state I report is round 2's live read at 12:52Z (in_review,reviewAttention.state: covered, pathPending ask user questions, no comments), which nothing I can observe contradicts.Code review over this round's change
The branch diff for this round is empty — no file changed, so there is nothing for the Standards axis to measure beyond the body edit itself: the line sits inside a fenced
textblock where no width register applies, and its count and case names match the suite. On the Spec axis the edit takes the finding's first branch ("say seven") and nothing more; the other branch it offered (drop the count) would have lost the reader the list.Label
review/needs-human, notreview/needs-review: STD-1 is the one item still open and it needs the board's answer onTHE-20. Re-arming the loop at this head before that answer arrives produces this same verdict — round 2's own closing line says as much ("Left to the findings alone, the state would beAPPROVE; the charter's escalation rule is what moves it").Named, not charged:
docs/agents/workflow.md:162still spellsSL-<index>alone whileAGENTS.md:77now allowsSC-/CP-— pre-existing at the base, untouched by this round.Review started (round 1/5) on
2d8be0f6ba— reading the diff now.olympus/infra-silo #35 · reviewed head
2d8be0f· round 3/5 · verdict heldRecommendation: merge
Round 3. The thread already carries two reviews — round 1 on
eae9e3band round 2 on this same head2d8be0f— so this header says3/5; the dispatch numbered it 1/5 and the sign-on comment carries that number, because the dispatch's counter restarts when the state label is moved by hand.No tree delta since round 2.
refs/pull/35/headresolves to2d8be0f,git diff --stat 2d8be0f 2d8be0fis empty, andgit status --porcelainis clean. The only artefact that moved is the description, which now says seven plan-check cases instead of five. On a round whose fix touched no file, a new blocker must be a defect that fix introduced or exposed, and one that touched nothing can introduce nothing — so nothing in this delta blocks. What holds the pull request is the Reviewer charter, not a finding:.forgejo/workflows/plan.ymlis a new CI gate, andTHE-20is unanswered.Round 2, re-driven
scripts/tests/deploy.test.sh 7 cases: green, replace, destroy, missing key, unmakeable plan, the store guard, the plan's flags, andscripts/tests/deploy.test.shcarries 7case_the_stack_plan_check_*cases (:352,:366,:376,:385,:395,:404,:416)Standards
STD-1 · ADVISORY (carried, unchanged) · the plan job hands a PROD-read key to the pull request's own configuration
.forgejo/workflows/plan.yml:28ispull_request_target, the head is checked out atpath: head(:40) and planned at:49, with the plan pair in that step's environment (:47-48).Makefile:100-113passes that environment straight into the head'stofu plan, and HCL in the head decides whattofu planexecutes. Re-driven at this head, OpenTofu v1.12.6, scratch config:A
data "external"block runs at plan time with the process environment, so a few lines undersilo/in a pull request read the key the job holds. The workflow's own header says the untrusted head is checked out besidemain(:8-12) — the judge comes frommain; the credential is still handed to the head.Advisory, not blocker, on round 1's reasoning, reproduced rather than re-argued: instance registration is disabled, so only existing accounts can open a pull request;
infra-cockpit'splan.ymlatorigin/mainruns the same shape; anddocs/adr/0009-a-plan-reads-a-record-it-cannot-rewrite.md:50-53records that "which changes are given the credential is decided where the plan runs, not here". No record atolympus/workshoporigin/main(06acdfa, 13 records) carries a fork-head rule, so the shape is not yet adjudicated — which is exactly whatTHE-20asks.Spec
Spec source: live — Paperclip
THE-16"B4: plan judge on silo and secrets" (GET /api/issues/THE-16→ 200, statusin_review), over the silo taskSL-31(Vikunja project 7, task 340, open). Org records read atolympus/workshoporigin/main06acdfa.No finding. Round 1's blocker and both advisories are cleared, and this delta adds no behaviour to judge: the ticket's acceptance criteria — a replacing throwaway red on the Guest half, a state-key create red on the store half naming
make key-mint, a harmless throwaway green, a plan that cannot read the store red with the failure named — are the seven cases atscripts/tests/deploy.test.sh:352-425, and the mutant wave below shows they can fail. The ticket's last bullet, "the required contexts go onmainafter the workflow has run once green", is still deferred, disclosed in the body (Not run here), and cannot be done before the merge:pull_request_targetreads the workflow frommain.The charter hold
THE-20"Board decision: the plan judge's job hands a PROD-read key to the pull request's own configuration (olympus/infra-silo#35)", read live:in_review,updatedAt2026-11-11T12:21:38.958ZreviewAttention.statecoveredinteraction, labelPending ask user questions, responderBoard,since2026-11-11T12:21:24.634ZGET /api/issues/<id>/comments→ http 200, length 1 — and that one is authored by the ticket's own assignee (authorAgentId=assigneeAgentId), a recommendation to the board, not its answerSame path, same
since, no comment from the responder: unanswered. A board search this round returns the same three sibling escalations —THE-20(silo#35),THE-18(infra-secrets#47),THE-45(infra-forge#88) — allin_review, none answered, so this round holds again rather than opening a fourth.The clearing condition is a board answer, not a commit: the next round has nothing to change until the responder answers. If the board accepts the shape, the acceptance belongs in an ADR and a later round closes STD-1 as accepted; if it does not, the smallest change is a first step that exits 1 on a fork head, plus a sentence in the header.
Verified this round
refs/pull/35/headfetched into a per-round ref equals the dispatch SHA2d8be0f, and was re-resolved after the wave — unchanged. Base6b45094;git merge-base --is-ancestor eae9e3b 2d8be0f→ true, so round 2's review sits on this very tree.mise exec -- make checkat2d8be0f: exit 0 —env-check: the pin and the map agree.,key-audit-test: every case passed,key-mint-test: every case passed,deploy tests: every case passed.,Success! The configuration is valid.makefile-mutation-wave.sh, targetdeploy-test, throwaway copies):Makefile:113guard call →:Makefile:110-lock=falseremovedMakefile:110-refresh=falseremovedEach mutant reds the assertion it was built to trip, so the two round-2 cases are pins that can fail, not green by construction.
pr-checks / check (pull_request)at2d8be0fissuccess(run 52, 27s). Noplan / stack-plan-checkcontext exists, as the body discloses.git merge-tree --write-tree --name-only 6b45094 2d8be0f→ rc 0, no conflict lines..forgejo/workflows/plan.yml,Makefile,scripts/tests/deploy.test.shnamed;docs/agents/workflow.mdnot (see below). The7 casesclaim matches the seven cases in the file.workshoporigin/main06acdfaholds 13 records; ADR-0011's Consequences require the conflict check on every deployed repository, and this change is that check. ADR-0009 and ADR-0012 are unmoved by it — the job holds a plan key, which is ADR-0012's plan shape.Could not verify
main's branch protection content:list_branch_protectionsanswers "user should be an owner or a collaborator with admin write of a repository" for this token, as in rounds 1 and 2. Every statement about the protection rests ondocs/agents/workflow.mdand the PR body, not on a read of the setting.pull_request_targetreadsmain's copy and this file is not onmain. Disclosed in the body.make stack-plan-checkagainst PROD's record with the real plan key: no such credential in this session; the target was driven offline through the sandbox and the stubs only.Named, not charged
docs/agents/workflow.mdis one of four changed paths and the body never names it. Not charged: the body's block is a diagram of what the check is made of — workflow → Target → judge and guard → tests — not a file manifest, and nothing in the body claims it lists every path. It is named here so the omission is a finding I read and declined, not one I missed.docs/agents/workflow.md:207("the plan context once it has run green there"): "there" reads asmainwhile the run that publishes the context is a pull request's. Round 2 named it; the tree has not moved, so it stands.AGENTS.md§Code comments ("Keep comments to a minimum"): rounds 1 and 2 measured it and left it as the repository's own practice. Unchanged.Standards: 1 finding, 0 blockers — worst STD-1 (carried; the board hold). Spec: 0 findings this round; round 1's blocker and round 2's advisory are cleared. On the findings alone the recommendation is merge and the state would be
APPROVE; the charter's escalation rule is what moves the state toREQUEST_CHANGESand the label toreview/needs-fix, not the finding count.Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Round report — no commit this round: the newest review carries no blocker, and the one carried finding's clearing is a board answer, not a commit.
The newest official review (id 566, head
2d8be0f, round 3/5) isREQUEST_CHANGESwith verdict held and recommendation merge — "Standards: 1 finding, 0 blockers", "Spec: 0 findings this round". What holds the pull request is the Reviewer charter's escalation rule, not a finding:THE-20is unanswered.2d8be0f3da38f8SL-312d8be0f— the guard call and both plan flags are pinnedTHE-20's answerVerified this round
HEAD=2d8be0f6ba831e5312dd1ed5f4dab62ac26be16a, equal to the dispatch SHA;git status --porcelainempty;git rev-list --left-right --count origin/main...HEAD→0 3against6b45094, so no merge is owed.mise exec -- make check→ rc=0:git grep -n 'will not merge\|requires both\|either is red\|red before it can merge' HEAD -- docs .forgejo AGENTS.md→ no output,rc=1. The corrected statements sit atdocs/agents/workflow.md:15,:172and:207, and the workflow's own header says the same thing once (plan.yml:1-6, "Whethermainrefuses the merge over it is the protection's, anddocs/agents/workflow.mdrecords when that is set").Left alone, deliberately
STD-1 is the only open item, and it is not a code finding this round may settle. Its own text gives two clearing branches — an
if:restricting the job to this repository's pull requests, or a board acceptance recorded in an ADR — and both decide which pull requests are handed a PROD-read key, which is exactly whatTHE-20asks. The review already records that the fixer who declined to guess was right to.I did not add the
if:either, and the reason is the failure mode it invites rather than taste: a condition written on a guess either changes the gate's coverage silently, or evaluates false for the pull requests that should run — and a required context that never publishes leavesmainunmergeable forever. A falseif:is worse than an unfixed finding. Nothing else in the tree depends on the answer, so the clearing is one small commit whichever way the board goes:if: github.event.pull_request.head.repo.full_name == github.repositoryinplan.yml, plus the sentence in the header.Could not verify
THE-20's live state from this session. Paperclip is not reachable from here:GET http://10.12.0.153:3100/api/issues/THE-20→404 {"error":"Issue not found"},GET /api/companies→403 {"error":"Board access required"}, anddocs/agents/issue-tracker.md:91-94says a Paperclip issue is reached through thepaperclipskill, which this run does not carry. So "the board hold is still open" rests on the review's read at 12:52–12:59Z, not on a read of my own. If the board has answered since, that answer is the entire delta the next round needs.pull_request_targetreadsmain's copy and this file is not onmain. Unchanged from the body's own disclosure.Label
review/needs-human("Circuit stopped: needs a human decision"), withreview/needs-fixremoved. The next thing this pull request needs is not a commit butTHE-20's answer: sending it back toreview/needs-reviewwould spend round 4 of 5 to arrive at this same hold, and round 5 would end at the round cap instead of at a decision. AnsweringTHE-20either way leaves one commit and one review round.Fork heads are refused — board decision on THE-20
4a1d323, from the board's THE-20 decision:.forgejo/workflows/plan.yml:39-47) — before any checkout, before the step that holds the key. It is a step, not a job-levelif:, so a fork publishes a red check instead of a skipped green.scripts/tests/deploy.test.shextracts thatrun:block from the workflow and drives it: a fork pair red with the one-line message, a same-repo pair green, the step ahead of the first checkout, and no job-levelif:. The suite is 8 cases.:54-59, beside the clause that leaves the credential's audience to where the plan runs: a fork's head gets nothing; a same-repo branch gets the plan key, because an account that can push a branch already reaches the repository's secrets through a push workflow.SPEC-1 is already fixed at the head (
3da38f8):docs/agents/workflow.md:13-16,:168-172and:203-207say the plan context "joins that list once it has run green onmain", not that it gates today.mise exec -- make checkat4a1d323: exit 0,deploy tests: every case passed. THE-20 is answered, so the hold is cleared; re-review requested.Review started (round 1/5) on
4a1d323983— reading the diff now.olympus/infra-silo #35 · reviewed head
4a1d323· round 4/5 · verdict mergeRecommendation: merge
Round 4. Three reviews precede this one — round 1 on
eae9e3b, rounds 2 and 3 on2d8be0f— so the header says4/5. The dispatch numbered it 1/5, because its counter restarts when thereview/*label is moved by hand; the sign-on comment carries that number.This round has a tree delta:
git merge-base --is-ancestor 2d8be0f 4a1d323→ 0, one commit (4a1d323),git diff 2d8be0f 4a1d323= 3 files, +79/−1:.forgejo/workflows/plan.yml,docs/adr/0009-a-plan-reads-a-record-it-cannot-rewrite.md,scripts/tests/deploy.test.sh.Round 3, re-driven
docs/adr/0009-a-plan-reads-a-record-it-cannot-rewrite.md:54-59Round 3 carried no blocker and no other finding; rounds 1 and 2 were cleared in round 2.
The charter: the escalation is answered, so this round does not hold
.forgejo/workflows/plan.ymlis a CI gate anddocs/adr/0009-…is an ADR, so the class that made rounds 1–3 hold still applies — and it was charged once, asTHE-20, and answered:scripts/fetch-paperclip-issue.sh THE-20→ http 200, 12 465 bytes, identifierTHE-20, statusdone,updatedAt 2026-11-11T14:07:05Z,reviewAttention{"state":"none","paths":[]}.GET /api/issues/8ee1dc55-bb00-448b-8eeb-9d37c21fb7b9/comments→ http 200, two entries; the newest,2026-11-11T14:07:05Z, authored by0d346060-1c73-49b0-83c5-76e45eee5a7e(the escalation's default assignee, i.e. the Board's agent), is titled "Board decision on the plan key (THE-20): fork heads are refused and the check goes red" and carries the six numbered requirements this commit implements, routed toTHE-16andTHE-49, with the task closed.2026-11-11T14:12:32Z, states the same decision and asks for re-review.So the shape is decided, the ADR edit is requirement 5 of that decision, and a fourth hold would ask the board to approve the record of its own answer. Nothing is deferred here on my account: the pull request is judged on the tree.
Standards
STD-2 · ADVISORY · the new case drives the step's shell, not the
env:that feeds itscripts/tests/deploy.test.sh:433-482extracts therun: |block from.forgejo/workflows/plan.yml:43-47and drives it withHEAD_REPO/BASE_REPOsupplied by the case itself (:461-467). What it never reads is the step'senv:block (plan.yml:40-42), which is what decides whether a fork head ever reaches that shell.Mutation wave, one
git archive HEADcopy per mutant,mise exec -- bash scripts/tests/deploy.test.sh:ok)plan.yml:44!=→=plan.yml:45refusal text rewordedif: trueaddedplan.yml:41HEAD_REPO→${{ github.repository }}plan.yml:42BASE_REPO→${{ github.event.pull_request.head.repo.full_name }}Either wiring mutation makes the comparison compare a value with itself, so in production the guard would pass every head — fork or not — and
make deploy-teststays green at 81ok. The ordering, the message, the comparison and the absence of a job-levelif:are each pinned; the two expressions that feed the comparison are not.This is a coverage gap, not a defect in what ships, and it is graded the way round 1 graded the same class (SPEC-2, three unpinned properties of the new Target): the code is right today, and what is missing is anything that would notice it stopping being right. The wiring is right, and verified — see Verified below. Smallest clearing change, mirroring the ordering assertion at
:471-476: havefork_guard_scriptreturn the step'senv:block too, or add one assertion readingplan.yml:41-42, and requireHEAD_REPOto carrygithub.event.pull_request.head.repo.full_nameandBASE_REPOto carrygithub.repository.STD-3 · ADVISORY · one ADR line is one character over the file's register
docs/adr/0009-a-plan-reads-a-record-it-cannot-rewrite.md:55is 81 characters. The rest of the file is wrapped at 80 — at2d8be0fit is 65 lines, 0 over 80, max 80 (width-check.sh, characters; anawk length()counts bytes and reads the two em dashes in this block as breaches, which they are not). Moving one word to the next line closes it. The repository documents no width rule, so this is the file's own register rather than a written standard — advice, not a block.Spec
Spec source: live, Paperclip
THE-16"B4: plan judge on silo and secrets" (scripts/fetch-paperclip-issue.sh THE-16→ http 200, 16 735 bytes, statusin_progress,updatedAt 2026-11-11T14:15:07Z), whose acceptance criteria are unchanged from round 1, plus the Board's six-point decision onTHE-16at14:07:05Z(above), over the silo taskSL-31andolympus/workshop's records.No finding. Each of the board's six points, at this head:
exit 1onhead.repo.full_name != github.repositoryplan.yml:39-47; first checkout at:48, second at:50, the key at:60-61;yaml.safe_loadputsRefuse a fork headfirst injobs.stack-plan-check.stepsif:(a skipped job publishes as success)runs-on,steps;deploy.test.sh:477-482pins itplan.yml:14-16make deploy-testwhere the suite can drive itdeploy.test.sh:457-482, registered at:508; red on a fork pair (:463-464), green on a same-repo pair (:466-468):50-53docs/adr/0009-…:54-59, immediately under the clause it extendsgit grep 'will not merge|requires both|either is red|red before it can merge'at head → no output, rc 1; cleared at3da38f8THE-16's own last bullet — "the required contexts go onmainafter the workflow has run once green" — stays deferred exactly as the ticket orders and the body discloses;pull_request_targetreads the workflow frommain, so the context cannot be published before the merge that creates it. The delta adds no behaviour beyond the six points: no scope creep.Verified this round
refs/pull/35/headresolved at 14:16Z and again immediately before drafting →4a1d323983d8d78b3c179dbbf89663712a5d0273, equal to the dispatch SHA and to the PR object'shead.sha. Base6b45094;git merge-tree --write-tree --name-only 6b45094 4a1d323→ rc 0, so the squash applies to the reported base.mise exec -- make checkat4a1d323: exit 0 —env-check,key-audit-test,key-mint-test,deploy tests: every case passed.,Success! The configuration is valid.deploy-testreports 81oklines, five more than at2d8be0f— the new case's assertions.pull_request_targetpayload.GET /repos/olympus/infra-cockpit/actions/runs/488(workflowplan.yml,trigger_event=pull_request_target),.event_payload | fromjson:repository.full_name = olympus/infra-cockpit,pull_request.head.repo.full_name = olympus/infra-cockpit. So on this instance the job's payload carries the field, and for a same-repo branch the two sides are equal — the guard passes; a fork'shead.repois the fork, so they differ and it reds.BASE_REPO'sgithub.repositoryis the same object'srepository.full_name. A head whose repository was deleted renders empty and reds, which is the safe direction.env:and compares it quoted insiderun:(plan.yml:40-47), so no head-controlled string is spliced into the shell.pr-checks / check (pull_request)at4a1d323→success(combined state read from/commits/4a1d323/status). Noplan / stack-plan-checkcontext exists, as the body discloses.adr-status-census.pyrun over the head tree; see Named, not charged for why its ten rows are not a finding.Could not verify
main's branch protection content:list_branch_protectionsanswersuser should be an owner or a collaborator with admin write of a repositoryfor this token, as in rounds 1–3. Everything said about the protection rests ondocs/agents/workflow.mdand the PR body, not on a read of the setting.pull_request_targetreadsmain's copy and this file is not onmain. Disclosed in the body; the first probe pull request after the merge is the run that proves it./actions/runs/<n>/jobsand/actions/runs/<n>/jobs/0/attempt/1/logsboth answer a 19-byte plain-text 404 (the v16 routes are absent), so the storedprobe-fork-eventrun's log could not be read. The run'sevent_payloadserved the same fact and is what is cited above.make stack-plan-checkagainst PROD's record with the real plan key: no such credential in this session; the Target was driven offline through the sandbox and the stubs only. Unchanged from rounds 1–3.Named, not charged
store aborts on anything elseFAILed once, in the first mutation run, withscripts/tests/deploy.test.sh: line 36: printf: write error: Broken pipeabove it. The untouched control ran green four times out of four (81okeach), and the second run of that mutant carried only the three FAIL rows it was built to produce. A race in a case this diff does not touch — a flake, not a finding.AGENTS.md§Code comments ("keep comments to a minimum"):plan.ymlis now 62 lines, 28 of them comments (line 1 is a#!-less header block), and the new test case opens with a six-line comment (deploy.test.sh:427-432). The added header paragraph is the board's requirement 3 and the test comment explains why the extractor exists; measured, and left where rounds 1–3 left it.adr-status-census.pyreports 10/10 disagreements: the records carry no## Statussection while the index's Status cell saysAccepted. That is the repository's shape at the base and the script's reading of it; this diff adds a Consequences bullet and moves no status.docs/agents/workflow.md:162still spellsSL-<index>alone whileAGENTS.md:77also allowsSC-/CP-: pre-existing, untouched by this delta.8 casesmatches the suite: eight cases are registered atdeploy.test.sh:501-508— the seven plan-check ones (green, replace, destroy, missing key, unmakeable plan, the store guard, the plan's flags) and the refused fork head.Standards: 2 findings, 0 blockers — worst STD-2 (an unpinned
env:block on a security step). Spec: 0 findings — the board's six points and the ticket's criteria are met, with the protection deferral ordered by the ticket itself. Two counted advisories, below the volume bar, so the recommendation is merge and the review state isAPPROVE; STD-2 and STD-3 are advice for the next touch, not conditions.