The plan judge runs on every pull request (paperclip:THE-16) #35

Merged
pit merged 4 commits from hermes/THE-16-plan-check into main 2026-11-11 14:30:59 +00:00
Owner

Implements paperclip:THE-16 — the silo half of the plan judge. This
repository'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.

.forgejo/workflows/plan.yml       pull_request_target: main's workflow, head/ beside it
├── first step                    a fork head is refused, before any checkout or key
Makefile
└── stack-plan-check              plan the whole Stack to a temp artifact, -lock=false, -refresh=false
    ├── scripts/plan-check.py     the judge both applies already use
    └── scripts/store-plan-guard.sh   the store half's own guard, over the same plan
scripts/tests/deploy.test.sh      8 cases: green, replace, destroy, missing key, unmakeable plan, the store guard, the plan's flags, a refused fork head
what the job holds why
SILO_PLAN_STATE_ACCESS_KEY_ID / ..._SECRET_ACCESS_KEY tofu-plan-state-silo: reads prod/silo.tfstate and writes nothing at it (runbook 0003 §7)
placeholders for PROXMOX_VE_*, MINIO_* and TF_VAR_service_account_secret -refresh=false plans the configuration against the record, so the job needs no node credential and no store credential

The 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:
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.
  • The new target against PROD's record (the plan key from secret/tofu-state/silo/plan), holding no provider credential:
$ AWS_ACCESS_KEY_ID=… AWS_SECRET_ACCESS_KEY=… mise exec -- make stack-plan-check
No changes. Your infrastructure matches the configuration.
  ok    the plan changes nothing
plan-check: the plan destroys and replaces nothing.
  • The same target on a change that would replace 150 (the node moved), red and named:
$ … mise exec -- make stack-plan-check
plan-check: the plan asks to destroy or replace a resource that refuses it. A deploy never takes that (workshop ADR-0011): the Operator resolves it by hand.
  FAIL  module.guest.proxmox_virtual_environment_container.silo would be destroyed or replaced; prevent_destroy refused the plan
  • 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 with AWS_ACCESS_KEY_ID named; 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's
    command line carrying -lock=false and -refresh=false.

  • The fork guard, driven from the workflow's own step — the suite extracts the run: block and runs it with both pairs:

a fork head is refused before any checkout
  ok    a fork head is red
  ok    and the one line says why
  ok    a same-repo head passes the guard
  ok    the guard is the first step, before either checkout
  ok    a job-level if: is refused (a skipped job publishes as success)
  • 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_target takes it from main and it is not on main yet. 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 reads prod/silo.tfstate with the plan key already set as the repository secret, plans both halves against it with -lock=false, and writes nothing.

Notes

  • The repository secrets are set (SILO_PLAN_STATE_ACCESS_KEY_ID, SILO_PLAN_STATE_SECRET_ACCESS_KEY), read from secret/tofu-state/silo/plan inside the store's guest; no value is in this pull request.
  • This differs from SL-31's sketch in one place: it does not need the tofu-store-read key or the !silo-plan Proxmox 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.md in infra-secrets is the shared record for both repositories' plan tokens.
  • Agent-written.
Implements `paperclip:THE-16` — the silo half of the plan judge. This repository'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. ```text .forgejo/workflows/plan.yml pull_request_target: main's workflow, head/ beside it ├── first step a fork head is refused, before any checkout or key Makefile └── stack-plan-check plan the whole Stack to a temp artifact, -lock=false, -refresh=false ├── scripts/plan-check.py the judge both applies already use └── scripts/store-plan-guard.sh the store half's own guard, over the same plan scripts/tests/deploy.test.sh 8 cases: green, replace, destroy, missing key, unmakeable plan, the store guard, the plan's flags, a refused fork head ``` | what the job holds | why | | --- | --- | | `SILO_PLAN_STATE_ACCESS_KEY_ID` / `..._SECRET_ACCESS_KEY` | `tofu-plan-state-silo`: reads `prod/silo.tfstate` and writes nothing at it (runbook 0003 §7) | | placeholders for `PROXMOX_VE_*`, `MINIO_*` and `TF_VAR_service_account_secret` | `-refresh=false` plans the configuration against the record, so the job needs no node credential and no store credential | The 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: ```text 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. ``` - **The new target against PROD's record** (the plan key from `secret/tofu-state/silo/plan`), holding no provider credential: ```text $ AWS_ACCESS_KEY_ID=… AWS_SECRET_ACCESS_KEY=… mise exec -- make stack-plan-check No changes. Your infrastructure matches the configuration. ok the plan changes nothing plan-check: the plan destroys and replaces nothing. ``` - **The same target on a change that would replace 150** (the node moved), red and named: ```text $ … mise exec -- make stack-plan-check plan-check: the plan asks to destroy or replace a resource that refuses it. A deploy never takes that (workshop ADR-0011): the Operator resolves it by hand. FAIL module.guest.proxmox_virtual_environment_container.silo would be destroyed or replaced; prevent_destroy refused the plan ``` - **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 with `AWS_ACCESS_KEY_ID` named; 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's command line carrying `-lock=false` and `-refresh=false`. - **The fork guard, driven from the workflow's own step** — the suite extracts the `run:` block and runs it with both pairs: ```text a fork head is refused before any checkout ok a fork head is red ok and the one line says why ok a same-repo head passes the guard ok the guard is the first step, before either checkout ok a job-level if: is refused (a skipped job publishes as success) ``` - **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_target` takes it from `main` and it is not on `main` yet. 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 reads `prod/silo.tfstate` with the plan key already set as the repository secret, plans both halves against it with `-lock=false`, and writes nothing. ## Notes - The repository secrets are set (`SILO_PLAN_STATE_ACCESS_KEY_ID`, `SILO_PLAN_STATE_SECRET_ACCESS_KEY`), read from `secret/tofu-state/silo/plan` inside the store's guest; no value is in this pull request. - This differs from SL-31's sketch in one place: it does not need the `tofu-store-read` key or the `!silo-plan` Proxmox 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.md` in `infra-secrets` is the shared record for both repositories' plan tokens. - Agent-written.
The plan judge runs on every pull request (paperclip:THE-16)
All checks were successful
pr-checks / check (pull_request) Successful in 28s
eae9e3b465
Every pull request's Stack is planned against PROD's record and judged: `stack-plan-check` plans the whole Stack — both halves — to an artifact with the plan-only state key, `-lock=false` and `-refresh=false`, prints it, and reds a destroy or a replace with the judge both applies use. The store half's own guard runs over the same plan, so a create on a declared state key is refused with the command that mints it. A plan that cannot be made is red, and a missing key is named rather than left to tofu's authentication error.

Both providers get placeholders, so the job holds no Proxmox credential and no store credential: the plan pair reads the record and nothing else. The workflow is `pull_request_target`, so the workflow, the Makefile and the judge come from `main` and the head is planned beside them.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Member

Review started (round 1/5) on eae9e3b465 — reading the diff now.

**Review started** (round 1/5) on eae9e3b46560a71f34837224fe41d49018055209 — reading the diff now.
bot-minos requested changes 2026-11-11 12:18:52 +00:00
Dismissed
bot-minos left a comment

olympus/infra-silo #35 · reviewed head eae9e3b · round 1/5 · verdict fix

Recommendation: fix

One blocker, three advisories. Round count is the thread's: no review precedes this one, so this is 1/5 whatever 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 no if:, permissions: or concurrency: anywhere in the file. It checks the head out at head/ (:34-38), then plans it (:47) with the plan pair in the step's environment (:44-46). Makefile:110 passes that environment straight into the head's tofu plan, and the head's HCL decides what tofu plan executes.

Driven here, scratch config, OpenTofu v1.12.6:

$ AWS_SECRET_ACCESS_KEY=PLANSECRET-should-not-be-readable tofu plan -lock=false -refresh=false
data.external.leak: Reading...
  + seen = "PLANSECRET-should-not-be-readable"

A data "external" block runs at plan time with the process environment, so four lines under silo/ 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 from main; 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's plan.yml at origin/main (e07323d) runs the identical shape, so this repository is not the first to hold it; and docs/adr/0009-a-plan-reads-a-record-it-cannot-rewrite.md:50-53 records "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, an if: 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> … or SC-/CP- … when the change lands this repository's half of it." The body names only paperclip:THE-16. Every task reference in this repository's history uses SL- or CP- (git log --format='%s' origin/main: SL-5, SL-6, SL-11, SL-12, SL-13…SL-37, CP-42); the only prior paperclip string is a Co-Authored-By trailer on 6b45094, 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 the SL-<n> line, or extend AGENTS.md:77 to name paperclip:<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, status in_progress, updatedAt 2026-11-11T11:50:50Z; /documents -> 200, 2 bytes — no documents). Org records read from olympus/workshop origin/main (34c2ca6).

the ticket's line what the diff does verdict
"A plan saved with -out, then tofu show -json through the repo's own gate script, refusing … a destroy or a replace" Makefile:110 saves to -out, :112 pipes tofu show -json into scripts/plan-check.py ($(ROOT_DIR), so main's judge) met
"A plan that cannot run must red the check, not silently pass" Makefile:114-117; case at scripts/tests/deploy.test.sh:360 met
"silo's stack … reads state through the same door its other jobs use … Neither may hold an apply credential — a plan pair only" plan.yml:44-46 holds SILO_PLAN_STATE_* only; silo/store/silo-plan-state-policy.json is s3:GetObject on prod/silo.tfstate, lock write only met
"The required contexts go on main after the workflow has run once green" deferred, disclosed in the body ("the protection context goes on after that run is green") deferred as the ticket orders — but see SPEC-1
"Done when: … is red before it can merge, and the protection names that check" red ✓; the protection does not name it yet not yet met

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 — "main will not merge without both."
  • docs/agents/workflow.md:169-170 — "main is set to refuse a merge while either is red or missing."
  • docs/agents/workflow.md:203 — "main requires both."
  • Contradicted by docs/agents/workflow.md:228, untouched by this diff — "Rule 1 is the one the forge enforces: main takes a merge only with check green." — 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 main merges 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. workshop ADR-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 then check alone 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_target reads the workflow from main, so the context cannot be published before the merge.)

SPEC-2 · ADVISORY · the new target's three safety properties are pinned by no case
.forgejo evidence: scripts/tests/deploy.test.sh:313-370. Mutation wave over make deploy-test at the head (scripts/makefile-mutation-wave.sh):

mutant result
:112 judge call → true 6 case(s) FAILED ✓ pinned
:116 --plan-failure branch → true 3 case(s) FAILED ✓ pinned
:102 require_plan_credentials → true 3 case(s) FAILED ✓ pinned
:113 store-plan-guard.sh → true rc 0, "every case passed" ✗
:110 -refresh=false → true rc 0, "every case passed" ✗
:110 -lock=false → true rc 0, "every case passed" ✗

Makefile:298 advertises "… 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=false and -lock=false are 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 store target'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 is terraform_data only, so a case for the guard needs a minio_iam_service_account.state_key["…"] fixture. Two cheap cases — one asserting the guard's make key-mint text, one asserting the plan command line carries both flags — would close it.


Verified this round

  • refs/pull/35/head fetched into the clone equals the dispatch SHA eae9e3b; base 6b45094; reviewed git diff 6b45094...HEAD (4 files, +206/−16).
  • mise exec -- make check at 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.
  • The prevent_destroy path the suite never drives, driven by hand: a replacing plan on a guarded terraform_data → Error: Resource instance cannot be destroyed … has prevent_destroy set; plan-check.py --plan-failure on that log prints FAIL terraform_data.guarded would be destroyed or replaced; prevent_destroy refused the plan and exits 1. The REFUSED regex 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.
  • Plan-time code execution from a head-authored config: reproduced, output above.
  • infra-cockpit plan.yml read at origin/main e07323d — same shape, which is what the ticket asked for.
  • Instance registration state and repository visibility read live this round.

Could not verify

  • main's branch protection content: list_branch_protections answers user should be an owner or a collaborator with admin write of a repository for 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.
  • The workflow itself has not run: pull_request_target reads main's copy and this file is not on main yet. The body discloses it ("Not run here"), and the checkout shape matches infra-cockpit's live one.

Named, not charged

  • docs/agents/workflow.md:160 still says SL-<index> alone, while AGENTS.md:77 already allows SC-/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 in plan.yml versus 7 of 25 in pr-checks.yml, and Makefile 104 → 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.
  • The deferred protection and the never-run workflow are disclosed deferrals, ordered by the ticket itself. SPEC-1 charges the page's present tense, not the deferral.

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.

<!-- minos review-loop: repo=olympus/infra-silo pr=35 head=eae9e3b46560a71f34837224fe41d49018055209 round=1/5 axes=standards,spec --> **olympus/infra-silo #35** · reviewed head `eae9e3b` · round **1/5** · verdict **fix** Recommendation: fix One blocker, three advisories. Round count is the thread's: no review precedes this one, so this is `1/5` whatever 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 no `if:`, `permissions:` or `concurrency:` anywhere in the file. It checks the head out at `head/` (`:34-38`), then plans it (`:47`) with the plan pair in the step's environment (`:44-46`). `Makefile:110` passes that environment straight into the head's `tofu plan`, and the head's HCL decides what `tofu plan` executes. Driven here, scratch config, OpenTofu v1.12.6: ```text $ AWS_SECRET_ACCESS_KEY=PLANSECRET-should-not-be-readable tofu plan -lock=false -refresh=false data.external.leak: Reading... + seen = "PLANSECRET-should-not-be-readable" ``` A `data "external"` block runs at plan time with the process environment, so four lines under `silo/` 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 from `main`; 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`'s `plan.yml` at `origin/main` (`e07323d`) runs the identical shape, so this repository is not the first to hold it; and `docs/adr/0009-a-plan-reads-a-record-it-cannot-rewrite.md:50-53` records "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, an `if:` 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>` … or `SC-`/`CP-` … when the change lands this repository's half of it." The body names only `paperclip:THE-16`. Every task reference in this repository's history uses `SL-` or `CP-` (`git log --format='%s' origin/main`: `SL-5`, `SL-6`, `SL-11`, `SL-12`, `SL-13`…`SL-37`, `CP-42`); the only prior `paperclip` string is a `Co-Authored-By` trailer on `6b45094`, 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 the `SL-<n>` line, or extend `AGENTS.md:77` to name `paperclip:<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`, status `in_progress`, `updatedAt 2026-11-11T11:50:50Z`; `/documents -> 200`, 2 bytes — no documents). Org records read from `olympus/workshop` `origin/main` (`34c2ca6`). | the ticket's line | what the diff does | verdict | | --- | --- | --- | | "A plan saved with `-out`, then `tofu show -json` through the repo's own gate script, refusing … a destroy or a replace" | `Makefile:110` saves to `-out`, `:112` pipes `tofu show -json` into `scripts/plan-check.py` (`$(ROOT_DIR)`, so main's judge) | met | | "A plan that cannot run must red the check, not silently pass" | `Makefile:114-117`; case at `scripts/tests/deploy.test.sh:360` | met | | "silo's stack … reads state through the same door its other jobs use … Neither may hold an apply credential — a plan pair only" | `plan.yml:44-46` holds `SILO_PLAN_STATE_*` only; `silo/store/silo-plan-state-policy.json` is `s3:GetObject` on `prod/silo.tfstate`, lock write only | met | | "The required contexts go on `main` after the workflow has run once green" | deferred, disclosed in the body ("the protection context goes on after that run is green") | deferred as the ticket orders — but see SPEC-1 | | "Done when: … is red before it can merge, and the protection names that check" | red ✓; the protection does not name it yet | not yet met | **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` — "`main` will not merge without both." - `docs/agents/workflow.md:169-170` — "`main` is set to refuse a merge while either is red or missing." - `docs/agents/workflow.md:203` — "`main` requires both." - Contradicted by `docs/agents/workflow.md:228`, untouched by this diff — "Rule 1 is the one the forge enforces: `main` takes a merge only with `check` green." — 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 `main` merges 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. `workshop` ADR-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 then `check` alone 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_target` reads the workflow from `main`, so the context cannot be published before the merge.) **SPEC-2 · ADVISORY · the new target's three safety properties are pinned by no case** `.forgejo` evidence: `scripts/tests/deploy.test.sh:313-370`. Mutation wave over `make deploy-test` at the head (`scripts/makefile-mutation-wave.sh`): | mutant | result | | --- | --- | | `:112` judge call → `true` | **6 case(s) FAILED** ✓ pinned | | `:116` `--plan-failure` branch → `true` | **3 case(s) FAILED** ✓ pinned | | `:102` `require_plan_credentials` → `true` | **3 case(s) FAILED** ✓ pinned | | `:113` `store-plan-guard.sh` → `true` | rc 0, "every case passed" ✗ | | `:110` `-refresh=false` → `true` | rc 0, "every case passed" ✗ | | `:110` `-lock=false` → `true` | rc 0, "every case passed" ✗ | `Makefile:298` advertises "… 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=false` and `-lock=false` are 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 `store` target'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 is `terraform_data` only, so a case for the guard needs a `minio_iam_service_account.state_key["…"]` fixture. Two cheap cases — one asserting the guard's `make key-mint` text, one asserting the plan command line carries both flags — would close it. --- ## Verified this round - `refs/pull/35/head` fetched into the clone equals the dispatch SHA `eae9e3b`; base `6b45094`; reviewed `git diff 6b45094...HEAD` (4 files, +206/−16). - `mise exec -- make check` at 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.` - The `prevent_destroy` path the suite never drives, driven by hand: a replacing plan on a guarded `terraform_data` → `Error: Resource instance cannot be destroyed … has prevent_destroy set`; `plan-check.py --plan-failure` on that log prints `FAIL terraform_data.guarded would be destroyed or replaced; prevent_destroy refused the plan` and exits 1. The `REFUSED` regex 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. - Plan-time code execution from a head-authored config: reproduced, output above. - `infra-cockpit` `plan.yml` read at `origin/main` `e07323d` — same shape, which is what the ticket asked for. - Instance registration state and repository visibility read live this round. ## Could not verify - `main`'s branch protection content: `list_branch_protections` answers `user should be an owner or a collaborator with admin write of a repository` for 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. - The workflow itself has not run: `pull_request_target` reads `main`'s copy and this file is not on `main` yet. The body discloses it ("**Not run here**"), and the checkout shape matches `infra-cockpit`'s live one. ## Named, not charged - `docs/agents/workflow.md:160` still says `SL-<index>` alone, while `AGENTS.md:77` already allows `SC-`/`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 in `plan.yml` versus 7 of 25 in `pr-checks.yml`, and `Makefile` 104 → 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. - The deferred protection and the never-run workflow are disclosed deferrals, ordered by the ticket itself. SPEC-1 charges the page's present tense, not the deferral. --- **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.
Member

Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.

**Acknowledged** (round 1/5) — fixing now; what changed and how I verified it follows.
The plan context cannot be required before the merge that adds it: the job is
`pull_request_target`, so it reads the workflow from `main` and the context does
not exist until this lands. The page said the gate was already closed — `main`
will not merge without both — at three sites, and the page's own rule 1 said the
forge enforces `check` alone. Each site now says `check` gates today and the plan
context joins that list after its first green run, which is what the ticket
orders and what the pull request body already discloses.

The workflow's header carried the same claim in one clause, "red before it can
merge"; it now says the check reds the pull request and leaves the protection's
timing to the page, so the file does not assert a gate that is not set.
The plan check's store guard and its two plan flags are pinned by a case (SL-31)
All checks were successful
pr-checks / check (pull_request) Successful in 27s
2d8be0f6ba
Deleting the store guard's call, `-lock=false` or `-refresh=false` from the recipe
left `make deploy-test` green, so the Target's own header promises — no Proxmox or
store credential, never PROD's lock — and the "or state-key create" it advertises
rested on no case at all. Two cases close it. One stubs the guard and hands its
refusal back, which pins that the Target runs it over the plan and reds when it
refuses; the guard's own refusals stay `key-mint.test.sh`'s to prove. The other
stubs `tofu` and records the command line, which pins the two flags by name rather
than by a plan outcome.

Both are pins, not fixes: the behaviour they measure already held. They were shown
to measure it by mutating a throwaway copy of the tree — the guard call replaced
by `true` fails four assertions, the two flags removed fails two — rather than by
reading the recipe.
Member

Fix report (round 1/5) — head 2d8be0f, two commits on hermes/THE-16-plan-check on top of eae9e3b, fast-forward, no force-push.

finding disposition commit
SPEC-1 · blocker fixed at the three sites, plus a fourth home the finding did not name 3da38f8
STD-2 · advisory fixed — the body names the repository's own task PR body, no commit
SPEC-2 · advisory fixed — two cases pin the three unpinned properties 2d8be0f
STD-1 · advisory left alone — the board's decision, not mine to take —

SPEC-1 (blocker) — the page no longer says the gate is closed

Each of the three sites now says what is true today: check gates the merge, and the plan context joins that list after its first green run on main.

  • docs/agents/workflow.md:14-17 — “main refuses a merge while check is red or missing; the plan context joins that list once it has run green on main, so until then check alone gates.”
  • docs/agents/workflow.md:171-172 — “…while check is red or missing; the plan context joins that list once it has run green on main.”
  • docs/agents/workflow.md:206-207 — “main requires check, and the plan context once it has run green there.”

That also settles the self-contradiction: rule 1 at :231 (“main takes a merge only with check green”) is now what the other three say.

A fourth home, which the finding did not name. .forgejo/workflows/plan.yml:2-3 opened “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-11 sits 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:

$ git grep -n 'requires both\|will not merge\|either is red\|red before it can merge'
(no output, rc=1)

STD-2 (advisory) — the body names SL-31

The 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 added SL-<index> rather than widening AGENTS.md:77 to accept paperclip: references. paperclip:THE-16 stays 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:

mutant, on a throwaway copy of the tree before this round after
Makefile:113 guard call → true rc 0, every case passed rc 1, 4 assertions fail
-lock=false and -refresh=false removed from the plan rc 0, every case passed rc 1, 2 assertions fail
  • case_the_stack_plan_check_runs_the_store_guard stubs 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_refresh stubs tofu to 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-790 drive the real script with a synthetic state-key create and assert make key-mint). The sandbox Stack is terraform_data only, so a real create cannot be produced there without a provider download, which make check must not need.

STD-1 (advisory) — left alone, deliberately

I did not take either clearing, and I am not disputing the finding.

  • The shape itself is the board's, as the finding says — it is escalated with this review, and docs/adr/0009-…:50-53 leaves “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.
  • The offered alternative is one I cannot verify, and getting it wrong is worse than the finding. if: github.event.pull_request.head.repo.full_name == github.repository is asserted against a Forgejo event payload I cannot observe here: the job is pull_request_target, so it reads this file from main and cannot run until this merges. A false if: 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's plan.yml at origin/main e07323d runs 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:

$ mise exec -- make check
env-check: the pin and the map agree.
env-test: every case holds.
key-audit-test: every case passed
key-mint-test: every case passed
deploy tests: every case passed.
Success! The configuration is valid.
rc=0

deploy-test is now 18 cases and 76 ok lines, 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, < 80 with the orphan test applied per paragraph):

added lines: 16
over 80 columns: 0
orphans (next word would have fitted): 0

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 2d8be0f rather than from my clone: the page carries “the plan context joins that list once it has run green”, no longer carries `main` will not merge or requires both; plan.yml carries “reds its pull”, no longer “red before it”; deploy.test.sh carries both new case names.

Not run, unchanged from the body's own disclosure: the workflow itself — pull_request_target takes it from main, and it is not there yet; and make plan / make store-plan, which need the root .env no clone carries.

Label

review/needs-human, not review/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 with review/needs-review once the board answers and the fix can have its round 2.

**Fix report** (round 1/5) — head `2d8be0f`, two commits on `hermes/THE-16-plan-check` on top of `eae9e3b`, fast-forward, no force-push. | finding | disposition | commit | | --- | --- | --- | | SPEC-1 · blocker | fixed at the three sites, plus a fourth home the finding did not name | `3da38f8` | | STD-2 · advisory | fixed — the body names the repository's own task | PR body, no commit | | SPEC-2 · advisory | fixed — two cases pin the three unpinned properties | `2d8be0f` | | STD-1 · advisory | **left alone** — the board's decision, not mine to take | — | ## SPEC-1 (blocker) — the page no longer says the gate is closed Each of the three sites now says what is true today: `check` gates the merge, and the plan context joins that list after its first green run on `main`. - `docs/agents/workflow.md:14-17` — “`main` refuses a merge while `check` is red or missing; the plan context joins that list once it has run green on `main`, so until then `check` alone gates.” - `docs/agents/workflow.md:171-172` — “…while `check` is red or missing; the plan context joins that list once it has run green on `main`.” - `docs/agents/workflow.md:206-207` — “`main` requires `check`, and the plan context once it has run green there.” That also settles the self-contradiction: rule 1 at `:231` (“`main` takes a merge only with `check` green”) is now what the other three say. **A fourth home, which the finding did not name.** `.forgejo/workflows/plan.yml:2-3` opened “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-11` sits 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: ```text $ git grep -n 'requires both\|will not merge\|either is red\|red before it can merge' (no output, rc=1) ``` ## STD-2 (advisory) — the body names `SL-31` The 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 added `SL-<index>` rather than widening `AGENTS.md:77` to accept `paperclip:` references. `paperclip:THE-16` stays 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: | mutant, on a throwaway copy of the tree | before this round | after | | --- | --- | --- | | `Makefile:113` guard call → `true` | rc 0, `every case passed` | **rc 1**, 4 assertions fail | | `-lock=false` and `-refresh=false` removed from the plan | rc 0, `every case passed` | **rc 1**, 2 assertions fail | - **`case_the_stack_plan_check_runs_the_store_guard`** stubs 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_refresh`** stubs `tofu` to 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-790` drive the real script with a synthetic state-key create and assert `make key-mint`). The sandbox Stack is `terraform_data` only, so a real create cannot be produced there without a provider download, which `make check` must not need. ## STD-1 (advisory) — left alone, deliberately I did not take either clearing, and I am not disputing the finding. - **The shape itself is the board's**, as the finding says — it is escalated with this review, and `docs/adr/0009-…:50-53` leaves “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. - **The offered alternative is one I cannot verify, and getting it wrong is worse than the finding.** `if: github.event.pull_request.head.repo.full_name == github.repository` is asserted against a Forgejo event payload I cannot observe here: the job is `pull_request_target`, so it reads this file from `main` and cannot run until this merges. A false `if:` 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`'s `plan.yml` at `origin/main` `e07323d` runs 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: ```text $ mise exec -- make check env-check: the pin and the map agree. env-test: every case holds. key-audit-test: every case passed key-mint-test: every case passed deploy tests: every case passed. Success! The configuration is valid. rc=0 ``` `deploy-test` is now 18 cases and 76 `ok` lines, 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, `< 80` with the orphan test applied per paragraph): ```text added lines: 16 over 80 columns: 0 orphans (next word would have fitted): 0 ``` 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 `2d8be0f` rather than from my clone: the page carries “the plan context joins that list once it has run green”, no longer carries `` `main` will not merge `` or `requires both`; `plan.yml` carries “reds its pull”, no longer “red before it”; `deploy.test.sh` carries both new case names. **Not run, unchanged from the body's own disclosure:** the workflow itself — `pull_request_target` takes it from `main`, and it is not there yet; and `make plan` / `make store-plan`, which need the root `.env` no clone carries. ## Label `review/needs-human`, not `review/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 with `review/needs-review` once the board answers and the fix can have its round 2.
Member

Review started (round 1/5) on 2d8be0f6ba — reading the diff now.

**Review started** (round 1/5) on 2d8be0f6ba831e5312dd1ed5f4dab62ac26be16a — reading the diff now.
bot-minos requested changes 2026-11-11 12:59:08 +00:00
Dismissed
bot-minos left a comment

olympus/infra-silo #35 · reviewed head 2d8be0f · round 2/5 · verdict held

Recommendation: fix

Round 2 re-drives round 1 (eae9e3b, one REQUEST_CHANGES review) and reviews only the delta, git diff eae9e3b 2d8be0f: three files, +80/−17. The thread carries one review, so this header says 2/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), and THE-20 — the board task round 1 opened for exactly that — is still unanswered. Under the charter that is REQUEST_CHANGES and review/needs-fix with zero blockers.

Round 1, re-driven

finding what settles it state
SPEC-1 · blocker 3da38f8; docs/agents/workflow.md:14-16, :171-173, :206-208; .forgejo/workflows/plan.yml:2-4 cleared
STD-2 · advisory body names SL-31; live read: Vikunja task 340, open, "The silo plan check runs on every pull request, over both halves" cleared
SPEC-2 · advisory two new cases, mutation-driven below cleared
STD-1 · advisory unchanged at head; the board hold is open carried

SPEC-1. The false phrases are at eae9e3b and gone at head:

$ git grep -n 'will not merge\|requires both\|either is red\|red before it can merge' eae9e3b -- docs .forgejo AGENTS.md
eae9e3b:docs/agents/workflow.md:14:  ... `main` will not merge
eae9e3b:docs/agents/workflow.md:169: ... while either is red
eae9e3b:docs/agents/workflow.md:203: ... `main` requires both.
$ (the same grep at 2d8be0f)
(no output, rc=1)

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 ("main takes a merge only with check green") 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 no if:, permissions: or concurrency: anywhere; the head is checked out at path: head (:36-40) and planned by Makefile:110 with the plan pair in the step's environment (:46-48). HCL in the head decides what tofu plan executes. Re-driven at head, OpenTofu 1.12.6, scratch config:

$ AWS_SECRET_ACCESS_KEY=PLANSECRET-should-not-be-readable tofu plan -lock=false -refresh=false
data.external.leak: Read complete after 0s [id=-]
  + seen = "PLANSECRET-should-not-be-readable"

This delta touches only the file's header (:1-6); the job at :27-49 is 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's plan.yml at origin/main runs the same shape; and docs/adr/0009-a-plan-reads-a-record-it-cannot-rewrite.md:50-53 leaves "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.sh      5 cases: green, replace, destroy, missing key, unmakeable plan

scripts/tests/deploy.test.sh now 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-449 holds 18 cases, 7 of them the plan check's; recounted, deploy-test reports 18 case headers and 76 ok lines, 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, status in_review, read 12:53Z) — its acceptance criteria are unchanged from round 1 — over the silo task SL-31 (Vikunja project 7, task 340, open, read 12:53Z) and olympus/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: 3da38f8 is prose and a comment, 2d8be0f is tests. The ticket's last bullet — "the required contexts go on main after the workflow has run once green" — is still deferred, disclosed in the body, and cannot be done before the merge (pull_request_target reads the workflow from main). 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:

field value
status in_review
reviewAttention.state covered
path kind interaction, label Pending ask user questions, responder Board, since 2026-11-11T12:21:24.634Z
comments none (commentCount 0)

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 on THE-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 an if: 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 false if: on a pull_request_target job publishes no context.

Verified this round

  • refs/pull/35/head fetched into the clone equals the dispatch SHA 2d8be0f, and was re-resolved immediately before this POST. git merge-base --is-ancestor eae9e3b 2d8be0f → true: a stacked fix, delta git diff eae9e3b 2d8be0f (3 files, +80/−17).
  • mise exec -- make check at 2d8be0f: exit 0, 146 ok lines, deploy tests: every case passed., Success! The configuration is valid.
  • The two new cases mutated on throwaway copies (makefile-mutation-wave.sh, target deploy-test):
mutant result which assertion red
Makefile:113 guard call → : 4 FAIL rows all four of the guard case's
Makefile:110 -lock=false removed 1 FAIL row "the plan never holds PROD's lock"
Makefile:110 -refresh=false removed 1 FAIL row "and it never refreshes"

Each mutant reds the assertion it was built to trip, so the two cases are pins that can fail, not green by construction.

  • The guard's own refusals do live elsewhere: scripts/tests/key-mint.test.sh:758 drives the real store-plan-guard.sh with a synthetic state-key create and asserts make key-mint (:760-762), which is what makes the stubbed wiring case legitimate rather than a substitute for it.
  • Prose: 16 added markdown lines, 0 over 80 characters, max 80 (width-check.sh, characters — two em dashes read as breaches under a byte count).
  • Secrets: the delta carries no literal secret; the job's values are ${{ secrets.* }} references only.
  • The page's new claims read against the artifacts they name: plan / stack-plan-check (pull_request_target) matches plan.yml's name:, job id and trigger; plan.yml:49's PLAN_DIR=head/silo names the directory the checkout at path: head (:40) creates, and Makefile:23's STACK_DIR := $(ROOT_DIR)/silo.

Could not verify

  • main's branch protection content: list_branch_protections answers "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 on workflow.md and the PR body, not on a read of the setting.
  • The workflow still has not run: pull_request_target reads main's copy and this file is not on main. Disclosed in the body, and a required context cannot be published before the merge that creates it.
  • make stack-plan-check against 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 as main, while the run that publishes the context is a pull request's. True in substance — the workflow is main's copy — and left alone.
  • docs/agents/workflow.md:162 still says SL-<index> alone while AGENTS.md:77 also allows SC-/CP-: pre-existing, untouched by this delta.
  • The comment volume the change adds to Makefile and .forgejo/workflows/plan.yml against AGENTS.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 to REQUEST_CHANGES and the label to review/needs-fix, not the finding count.

<!-- minos review-loop: repo=olympus/infra-silo pr=35 head=2d8be0f6ba831e5312dd1ed5f4dab62ac26be16a round=2/5 axes=standards,spec --> **olympus/infra-silo #35** · reviewed head `2d8be0f` · round **2/5** · verdict **held** Recommendation: fix Round 2 re-drives round 1 (`eae9e3b`, one `REQUEST_CHANGES` review) and reviews only the delta, `git diff eae9e3b 2d8be0f`: three files, +80/−17. The thread carries one review, so this header says `2/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`), and `THE-20` — the board task round 1 opened for exactly that — is still unanswered. Under the charter that is `REQUEST_CHANGES` and `review/needs-fix` with zero blockers. ## Round 1, re-driven | finding | what settles it | state | | --- | --- | --- | | SPEC-1 · blocker | `3da38f8`; `docs/agents/workflow.md:14-16`, `:171-173`, `:206-208`; `.forgejo/workflows/plan.yml:2-4` | cleared | | STD-2 · advisory | body names `SL-31`; live read: Vikunja task 340, open, "The silo plan check runs on every pull request, over both halves" | cleared | | SPEC-2 · advisory | two new cases, mutation-driven below | cleared | | STD-1 · advisory | unchanged at head; the board hold is open | carried | **SPEC-1.** The false phrases are at `eae9e3b` and gone at head: ```text $ git grep -n 'will not merge\|requires both\|either is red\|red before it can merge' eae9e3b -- docs .forgejo AGENTS.md eae9e3b:docs/agents/workflow.md:14: ... `main` will not merge eae9e3b:docs/agents/workflow.md:169: ... while either is red eae9e3b:docs/agents/workflow.md:203: ... `main` requires both. $ (the same grep at 2d8be0f) (no output, rc=1) ``` 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` ("`main` takes a merge only with `check` green") 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 no `if:`, `permissions:` or `concurrency:` anywhere; the head is checked out at `path: head` (`:36-40`) and planned by `Makefile:110` with the plan pair in the step's environment (`:46-48`). HCL in the head decides what `tofu plan` executes. Re-driven at head, OpenTofu 1.12.6, scratch config: ```text $ AWS_SECRET_ACCESS_KEY=PLANSECRET-should-not-be-readable tofu plan -lock=false -refresh=false data.external.leak: Read complete after 0s [id=-] + seen = "PLANSECRET-should-not-be-readable" ``` This delta touches only the file's header (`:1-6`); the job at `:27-49` is 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`'s `plan.yml` at `origin/main` runs the same shape; and `docs/adr/0009-a-plan-reads-a-record-it-cannot-rewrite.md:50-53` leaves "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: ```text scripts/tests/deploy.test.sh 5 cases: green, replace, destroy, missing key, unmakeable plan ``` `scripts/tests/deploy.test.sh` now 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-449` holds 18 cases, 7 of them the plan check's; recounted, `deploy-test` reports 18 case headers and 76 `ok` lines, 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`, status `in_review`, read 12:53Z) — its acceptance criteria are unchanged from round 1 — over the silo task `SL-31` (Vikunja project 7, task 340, open, read 12:53Z) and `olympus/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: `3da38f8` is prose and a comment, `2d8be0f` is tests. The ticket's last bullet — "the required contexts go on `main` after the workflow has run once green" — is still deferred, disclosed in the body, and cannot be done before the merge (`pull_request_target` reads the workflow from `main`). 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: | field | value | | --- | --- | | status | `in_review` | | `reviewAttention.state` | `covered` | | path | kind `interaction`, label `Pending ask user questions`, responder `Board`, `since` `2026-11-11T12:21:24.634Z` | | comments | none (`commentCount` 0) | 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 on `THE-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 an `if:` 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 false `if:` on a `pull_request_target` job publishes no context. ## Verified this round - `refs/pull/35/head` fetched into the clone equals the dispatch SHA `2d8be0f`, and was re-resolved immediately before this POST. `git merge-base --is-ancestor eae9e3b 2d8be0f` → true: a stacked fix, delta `git diff eae9e3b 2d8be0f` (3 files, +80/−17). - `mise exec -- make check` at `2d8be0f`: **exit 0**, 146 `ok` lines, `deploy tests: every case passed.`, `Success! The configuration is valid.` - The two new cases mutated on throwaway copies (`makefile-mutation-wave.sh`, target `deploy-test`): | mutant | result | which assertion red | | --- | --- | --- | | `Makefile:113` guard call → `:` | 4 FAIL rows | all four of the guard case's | | `Makefile:110` `-lock=false` removed | 1 FAIL row | "the plan never holds PROD's lock" | | `Makefile:110` `-refresh=false` removed | 1 FAIL row | "and it never refreshes" | Each mutant reds the assertion it was built to trip, so the two cases are pins that can fail, not green by construction. - The guard's own refusals do live elsewhere: `scripts/tests/key-mint.test.sh:758` drives the real `store-plan-guard.sh` with a synthetic state-key create and asserts `make key-mint` (`:760-762`), which is what makes the stubbed wiring case legitimate rather than a substitute for it. - Prose: 16 added markdown lines, 0 over 80 characters, max 80 (`width-check.sh`, characters — two em dashes read as breaches under a byte count). - Secrets: the delta carries no literal secret; the job's values are `${{ secrets.* }}` references only. - The page's new claims read against the artifacts they name: `plan / stack-plan-check (pull_request_target)` matches `plan.yml`'s `name:`, job id and trigger; `plan.yml:49`'s `PLAN_DIR=head/silo` names the directory the checkout at `path: head` (`:40`) creates, and `Makefile:23`'s `STACK_DIR := $(ROOT_DIR)/silo`. ## Could not verify - `main`'s branch protection content: `list_branch_protections` answers "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 on `workflow.md` and the PR body, not on a read of the setting. - The workflow still has not run: `pull_request_target` reads `main`'s copy and this file is not on `main`. Disclosed in the body, and a required context cannot be published before the merge that creates it. - `make stack-plan-check` against 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 as `main`, while the run that publishes the context is a pull request's. True in substance — the workflow is `main`'s copy — and left alone. - `docs/agents/workflow.md:162` still says `SL-<index>` alone while `AGENTS.md:77` also allows `SC-`/`CP-`: pre-existing, untouched by this delta. - The comment volume the change adds to `Makefile` and `.forgejo/workflows/plan.yml` against `AGENTS.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 to `REQUEST_CHANGES` and the label to `review/needs-fix`, not the finding count.
Member

Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.

**Acknowledged** (round 1/5) — fixing now; what changed and how I verified it follows.
Member

Fix report (round 2/5) — head 2d8be0f, and it stays 2d8be0f: 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/head was re-resolved immediately before this comment (2d8be0f6ba831e5312dd1ed5f4dab62ac26be16a, also the branch hermes/THE-16-plan-check) and the worktree is clean at it.

finding disposition artifact
SPEC-1 · blocker (round 1) cleared at 3da38f8; re-checked, not re-opened docs/agents/workflow.md:14-17, :171-172, :206-207
STD-2 · advisory (round 1) cleared; the body still names SL-31 next to paperclip:THE-16 PR body
SPEC-2 · advisory (round 1) cleared; both cases are green in my run, and the tree is byte-identical to the one round 2 mutated scripts/tests/deploy.test.sh:352, :366
STD-3 · advisory fixed — the summary block says seven and names the two extra cases PR body, no commit
STD-1 · advisory (carried) left alone — a board decision, not a fixer's —

STD-3 — the summary block's case count

Was 5 cases: green, replace, destroy, missing key, unmakeable plan; now 7 cases: … , the store guard, the plan's flags. The seven are the suite's own case headers at 2d8be0f, read out of the run below:

the stack plan check is green on a harmless pull request
the stack plan check is red on a guest replacement
the stack plan check is red on a store destroy
the stack plan check names a missing plan key
the stack plan check is red when the plan cannot be made
the stack plan check runs the store guard
the stack plan check plans without a lock or a refresh

scripts/tests/deploy.test.sh declares 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 ## Evidence bullet 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:

$ mise exec -- make check
env-check: the vendored copy against its pin, and the map against .env.example.
env-test: every case holds.
key-audit-test: every case passed
key-mint-test: every case passed
deploy tests: every case passed.
Success! The configuration is valid.
rc=0

379 ok lines across the five suites; deploy-test is 18 case headers and 76 ok lines, which matches the finding's recount. Quoted in the mise exec -- form because a bare make check in this environment stops at fmt-check with tofu: 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 the if: alternative is one I still cannot verify — a false if: on a pull_request_target job publishes no context, and a required context that never publishes blocks every pull request.

I could not re-read THE-20 this round: GET http://10.12.0.153:3100/api/issues/THE-16 and /api/issues/THE-20 both answer {"error":"Issue not found"} (404), and /api/companies answers 403 {"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, path Pending 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 text block 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, not review/needs-review: STD-1 is the one item still open and it needs the board's answer on THE-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 be APPROVE; the charter's escalation rule is what moves it").

Named, not charged: docs/agents/workflow.md:162 still spells SL-<index> alone while AGENTS.md:77 now allows SC-/CP- — pre-existing at the base, untouched by this round.

**Fix report** (round 2/5) — head `2d8be0f`, and it stays `2d8be0f`: 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/head` was re-resolved immediately before this comment (`2d8be0f6ba831e5312dd1ed5f4dab62ac26be16a`, also the branch `hermes/THE-16-plan-check`) and the worktree is clean at it. | finding | disposition | artifact | | --- | --- | --- | | SPEC-1 · blocker (round 1) | cleared at `3da38f8`; re-checked, not re-opened | `docs/agents/workflow.md:14-17`, `:171-172`, `:206-207` | | STD-2 · advisory (round 1) | cleared; the body still names `SL-31` next to `paperclip:THE-16` | PR body | | SPEC-2 · advisory (round 1) | cleared; both cases are green in my run, and the tree is byte-identical to the one round 2 mutated | `scripts/tests/deploy.test.sh:352`, `:366` | | STD-3 · advisory | **fixed** — the summary block says seven and names the two extra cases | PR body, no commit | | STD-1 · advisory (carried) | **left alone** — a board decision, not a fixer's | — | ## STD-3 — the summary block's case count Was `5 cases: green, replace, destroy, missing key, unmakeable plan`; now `7 cases: … , the store guard, the plan's flags`. The seven are the suite's own case headers at `2d8be0f`, read out of the run below: ```text the stack plan check is green on a harmless pull request the stack plan check is red on a guest replacement the stack plan check is red on a store destroy the stack plan check names a missing plan key the stack plan check is red when the plan cannot be made the stack plan check runs the store guard the stack plan check plans without a lock or a refresh ``` `scripts/tests/deploy.test.sh` declares 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 `## Evidence` bullet 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`: ```text $ mise exec -- make check env-check: the vendored copy against its pin, and the map against .env.example. env-test: every case holds. key-audit-test: every case passed key-mint-test: every case passed deploy tests: every case passed. Success! The configuration is valid. rc=0 ``` 379 `ok` lines across the five suites; `deploy-test` is 18 case headers and 76 `ok` lines, which matches the finding's recount. Quoted in the `mise exec --` form because a bare `make check` in this environment stops at `fmt-check` with `tofu: 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 the `if:` alternative is one I still cannot verify — a false `if:` on a `pull_request_target` job publishes no context, and a required context that never publishes blocks every pull request. I could not re-read `THE-20` this round: `GET http://10.12.0.153:3100/api/issues/THE-16` and `/api/issues/THE-20` both answer `{"error":"Issue not found"}` (404), and `/api/companies` answers `403 {"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`, path `Pending 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 `text` block 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`, not `review/needs-review`: STD-1 is the one item still open and it needs the board's answer on `THE-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 be `APPROVE`; the charter's escalation rule is what moves it"). **Named, not charged:** `docs/agents/workflow.md:162` still spells `SL-<index>` alone while `AGENTS.md:77` now allows `SC-`/`CP-` — pre-existing at the base, untouched by this round.
Member

Review started (round 1/5) on 2d8be0f6ba — reading the diff now.

**Review started** (round 1/5) on 2d8be0f6ba831e5312dd1ed5f4dab62ac26be16a — reading the diff now.
bot-minos requested changes 2026-11-11 13:49:13 +00:00
Dismissed
bot-minos left a comment

olympus/infra-silo #35 · reviewed head 2d8be0f · round 3/5 · verdict held

Recommendation: merge

Round 3. The thread already carries two reviews — round 1 on eae9e3b and round 2 on this same head 2d8be0f — so this header says 3/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/head resolves to 2d8be0f, git diff --stat 2d8be0f 2d8be0f is empty, and git status --porcelain is 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.yml is a new CI gate, and THE-20 is unanswered.

Round 2, re-driven

finding what settles it state
STD-1 · advisory unchanged at head; re-driven below; the board hold is still open carried
STD-3 · advisory body now reads scripts/tests/deploy.test.sh 7 cases: green, replace, destroy, missing key, unmakeable plan, the store guard, the plan's flags, and scripts/tests/deploy.test.sh carries 7 case_the_stack_plan_check_* cases (:352, :366, :376, :385, :395, :404, :416) cleared

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:28 is pull_request_target, the head is checked out at path: head (:40) and planned at :49, with the plan pair in that step's environment (:47-48). Makefile:100-113 passes that environment straight into the head's tofu plan, and HCL in the head decides what tofu plan executes. Re-driven at this head, OpenTofu v1.12.6, scratch config:

$ AWS_SECRET_ACCESS_KEY=PLANSECRET-should-not-be-readable tofu plan -lock=false -refresh=false
  + seen = "PLANSECRET-should-not-be-readable"

A data "external" block runs at plan time with the process environment, so a few lines under silo/ in a pull request read the key the job holds. The workflow's own header says the untrusted head is checked out beside main (:8-12) — the judge comes from main; 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's plan.yml at origin/main runs the same shape; and docs/adr/0009-a-plan-reads-a-record-it-cannot-rewrite.md:50-53 records that "which changes are given the credential is decided where the plan runs, not here". No record at olympus/workshop origin/main (06acdfa, 13 records) carries a fork-head rule, so the shape is not yet adjudicated — which is exactly what THE-20 asks.

Spec

Spec source: live — Paperclip THE-16 "B4: plan judge on silo and secrets" (GET /api/issues/THE-16 → 200, status in_review), over the silo task SL-31 (Vikunja project 7, task 340, open). Org records read at olympus/workshop origin/main 06acdfa.

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 at scripts/tests/deploy.test.sh:352-425, and the mutant wave below shows they can fail. The ticket's last bullet, "the required contexts go on main after 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_target reads the workflow from main.

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:

field value
status in_review, updatedAt 2026-11-11T12:21:38.958Z
reviewAttention.state covered
path kind interaction, label Pending ask user questions, responder Board, since 2026-11-11T12:21:24.634Z
comments GET /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 answer

Same 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) — all in_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/head fetched into a per-round ref equals the dispatch SHA 2d8be0f, and was re-resolved after the wave — unchanged. Base 6b45094; git merge-base --is-ancestor eae9e3b 2d8be0f → true, so round 2's review sits on this very tree.
  • mise exec -- make check at 2d8be0f: 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.
  • Mutant wave re-run at this head (makefile-mutation-wave.sh, target deploy-test, throwaway copies):
mutant result which assertion red
Makefile:113 guard call → : 4 FAIL rows all four of the guard case's
Makefile:110 -lock=false removed 1 FAIL row "the plan never holds PROD's lock"
Makefile:110 -refresh=false removed 1 FAIL row "and it never refreshes"

Each mutant reds the assertion it was built to trip, so the two round-2 cases are pins that can fail, not green by construction.

  • STD-1's plan-time read reproduced at this head (output above).
  • CI by SHA: pr-checks / check (pull_request) at 2d8be0f is success (run 52, 27s). No plan / stack-plan-check context exists, as the body discloses.
  • Squash applies to the reported base: git merge-tree --write-tree --name-only 6b45094 2d8be0f → rc 0, no conflict lines.
  • Body census over the four changed paths: .forgejo/workflows/plan.yml, Makefile, scripts/tests/deploy.test.sh named; docs/agents/workflow.md not (see below). The 7 cases claim matches the seven cases in the file.
  • ADR compliance: workshop origin/main 06acdfa holds 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_protections answers "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 on docs/agents/workflow.md and the PR body, not on a read of the setting.
  • The workflow itself has not run: pull_request_target reads main's copy and this file is not on main. Disclosed in the body.
  • make stack-plan-check against 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.md is 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.
  • The body's opening line, "planned against PROD's record before it can merge", reads as gating; read strictly it says the plan runs before any merge, which is what happens. Round 1's SPEC-1 charged the pages that stated the gate was closed, those are fixed, and this round is a body-only delta — so the sentence stands as written rather than becoming a third round on prose.
  • docs/agents/workflow.md:207 ("the plan context once it has run green there"): "there" reads as main while the run that publishes the context is a pull request's. Round 2 named it; the tree has not moved, so it stands.
  • The comment volume against 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 to REQUEST_CHANGES and the label to review/needs-fix, not the finding count.

<!-- minos review-loop: repo=olympus/infra-silo pr=35 head=2d8be0f6ba831e5312dd1ed5f4dab62ac26be16a round=3/5 axes=standards,spec --> **olympus/infra-silo #35** · reviewed head `2d8be0f` · round **3/5** · verdict **held** Recommendation: merge Round 3. The thread already carries two reviews — round 1 on `eae9e3b` and round 2 on this same head `2d8be0f` — so this header says `3/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/head` resolves to `2d8be0f`, `git diff --stat 2d8be0f 2d8be0f` is empty, and `git status --porcelain` is 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.yml` is a new CI gate, and `THE-20` is unanswered. ## Round 2, re-driven | finding | what settles it | state | | --- | --- | --- | | STD-1 · advisory | unchanged at head; re-driven below; the board hold is still open | carried | | STD-3 · advisory | body now reads `scripts/tests/deploy.test.sh 7 cases: green, replace, destroy, missing key, unmakeable plan, the store guard, the plan's flags`, and `scripts/tests/deploy.test.sh` carries 7 `case_the_stack_plan_check_*` cases (`:352`, `:366`, `:376`, `:385`, `:395`, `:404`, `:416`) | cleared | ## 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:28` is `pull_request_target`, the head is checked out at `path: head` (`:40`) and planned at `:49`, with the plan pair in that step's environment (`:47-48`). `Makefile:100-113` passes that environment straight into the head's `tofu plan`, and HCL in the head decides what `tofu plan` executes. Re-driven at this head, OpenTofu v1.12.6, scratch config: ```text $ AWS_SECRET_ACCESS_KEY=PLANSECRET-should-not-be-readable tofu plan -lock=false -refresh=false + seen = "PLANSECRET-should-not-be-readable" ``` A `data "external"` block runs at plan time with the process environment, so a few lines under `silo/` in a pull request read the key the job holds. The workflow's own header says the untrusted head is checked out beside `main` (`:8-12`) — the *judge* comes from `main`; 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`'s `plan.yml` at `origin/main` runs the same shape; and `docs/adr/0009-a-plan-reads-a-record-it-cannot-rewrite.md:50-53` records that "which changes are given the credential is decided where the plan runs, not here". No record at `olympus/workshop` `origin/main` (`06acdfa`, 13 records) carries a fork-head rule, so the shape is not yet adjudicated — which is exactly what `THE-20` asks. ## Spec Spec source: **live** — Paperclip `THE-16` "B4: plan judge on silo and secrets" (`GET /api/issues/THE-16` → 200, status `in_review`), over the silo task `SL-31` (Vikunja project 7, task 340, open). Org records read at `olympus/workshop` `origin/main` `06acdfa`. 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 at `scripts/tests/deploy.test.sh:352-425`, and the mutant wave below shows they can fail. The ticket's last bullet, "the required contexts go on `main` after 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_target` reads the workflow from `main`. ## 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: | field | value | | --- | --- | | status | `in_review`, `updatedAt` `2026-11-11T12:21:38.958Z` | | `reviewAttention.state` | `covered` | | path | kind `interaction`, label `Pending ask user questions`, responder `Board`, `since` `2026-11-11T12:21:24.634Z` | | comments | `GET /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 answer | Same 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) — all `in_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/head` fetched into a per-round ref equals the dispatch SHA `2d8be0f`, and was re-resolved after the wave — unchanged. Base `6b45094`; `git merge-base --is-ancestor eae9e3b 2d8be0f` → true, so round 2's review sits on this very tree. - `mise exec -- make check` at `2d8be0f`: **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.` - Mutant wave re-run at this head (`makefile-mutation-wave.sh`, target `deploy-test`, throwaway copies): | mutant | result | which assertion red | | --- | --- | --- | | `Makefile:113` guard call → `:` | 4 FAIL rows | all four of the guard case's | | `Makefile:110` `-lock=false` removed | 1 FAIL row | "the plan never holds PROD's lock" | | `Makefile:110` `-refresh=false` removed | 1 FAIL row | "and it never refreshes" | Each mutant reds the assertion it was built to trip, so the two round-2 cases are pins that can fail, not green by construction. - STD-1's plan-time read reproduced at this head (output above). - CI by SHA: `pr-checks / check (pull_request)` at `2d8be0f` is `success` (run 52, 27s). No `plan / stack-plan-check` context exists, as the body discloses. - Squash applies to the reported base: `git merge-tree --write-tree --name-only 6b45094 2d8be0f` → rc 0, no conflict lines. - Body census over the four changed paths: `.forgejo/workflows/plan.yml`, `Makefile`, `scripts/tests/deploy.test.sh` named; `docs/agents/workflow.md` not (see below). The `7 cases` claim matches the seven cases in the file. - ADR compliance: `workshop` `origin/main` `06acdfa` holds 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_protections` answers "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 on `docs/agents/workflow.md` and the PR body, not on a read of the setting. - The workflow itself has not run: `pull_request_target` reads `main`'s copy and this file is not on `main`. Disclosed in the body. - `make stack-plan-check` against 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.md` is 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. - The body's opening line, "planned against PROD's record before it can merge", reads as gating; read strictly it says the plan runs before any merge, which is what happens. Round 1's SPEC-1 charged the pages that stated the gate was closed, those are fixed, and this round is a body-only delta — so the sentence stands as written rather than becoming a third round on prose. - `docs/agents/workflow.md:207` ("the plan context once it has run green there"): "there" reads as `main` while the run that publishes the context is a pull request's. Round 2 named it; the tree has not moved, so it stands. - The comment volume against `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 to `REQUEST_CHANGES` and the label to `review/needs-fix`, not the finding count.
Member

Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.

**Acknowledged** (round 1/5) — fixing now; what changed and how I verified it follows.
Member

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) is REQUEST_CHANGES with 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-20 is unanswered.

finding state at 2d8be0f what this round did
SPEC-1 · blocker (round 1) cleared at 3da38f8 re-verified, no edit
STD-2 · advisory (round 1) cleared — body names SL-31 re-verified, no edit
SPEC-2 · advisory (round 1) cleared at 2d8be0f — the guard call and both plan flags are pinned re-verified, no edit
STD-3 · advisory (round 2) cleared — the body says seven cases re-verified, no edit
STD-1 · advisory, carried unchanged at this head; its clearing is THE-20's answer left alone, deliberately — below

Verified this round

  • HEAD = 2d8be0f6ba831e5312dd1ed5f4dab62ac26be16a, equal to the dispatch SHA; git status --porcelain empty; git rev-list --left-right --count origin/main...HEAD → 0 3 against 6b45094, so no merge is owed.
  • mise exec -- make check → rc=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.
  • Round 1's SPEC-1 phrases are gone at this head: 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 at docs/agents/workflow.md:15, :172 and :207, and the workflow's own header says the same thing once (plan.yml:1-6, "Whether main refuses the merge over it is the protection's, and docs/agents/workflow.md records 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 what THE-20 asks. 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 leaves main unmergeable forever. A false if: 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:

  • the board accepts the shape → an ADR recording it here, and a later round closes STD-1 as accepted;
  • the board rejects it → if: github.event.pull_request.head.repo.full_name == github.repository in plan.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"}, and docs/agents/issue-tracker.md:91-94 says a Paperclip issue is reached through the paperclip skill, 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.
  • The workflow itself has still not run: pull_request_target reads main's copy and this file is not on main. Unchanged from the body's own disclosure.

Label

review/needs-human ("Circuit stopped: needs a human decision"), with review/needs-fix removed. The next thing this pull request needs is not a commit but THE-20's answer: sending it back to review/needs-review would 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. Answering THE-20 either way leaves one commit and one review round.

**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) is `REQUEST_CHANGES` with 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-20` is unanswered. | finding | state at `2d8be0f` | what this round did | | --- | --- | --- | | SPEC-1 · blocker (round 1) | cleared at `3da38f8` | re-verified, no edit | | STD-2 · advisory (round 1) | cleared — body names `SL-31` | re-verified, no edit | | SPEC-2 · advisory (round 1) | cleared at `2d8be0f` — the guard call and both plan flags are pinned | re-verified, no edit | | STD-3 · advisory (round 2) | cleared — the body says seven cases | re-verified, no edit | | STD-1 · advisory, carried | unchanged at this head; its clearing is `THE-20`'s answer | **left alone**, deliberately — below | ## Verified this round - `HEAD` = `2d8be0f6ba831e5312dd1ed5f4dab62ac26be16a`, equal to the dispatch SHA; `git status --porcelain` empty; `git rev-list --left-right --count origin/main...HEAD` → `0 3` against `6b45094`, so no merge is owed. - `mise exec -- make check` → **rc=0**: ```text 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. ``` - Round 1's SPEC-1 phrases are gone at this head: `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 at `docs/agents/workflow.md:15`, `:172` and `:207`, and the workflow's own header says the same thing once (`plan.yml:1-6`, "Whether `main` refuses the merge over it is the protection's, and `docs/agents/workflow.md` records 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 what `THE-20` asks. 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 leaves `main` unmergeable forever. A false `if:` 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: - **the board accepts the shape** → an ADR recording it here, and a later round closes STD-1 as accepted; - **the board rejects it** → `if: github.event.pull_request.head.repo.full_name == github.repository` in `plan.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"}`, and `docs/agents/issue-tracker.md:91-94` says a Paperclip issue is reached through the `paperclip` skill, 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. - **The workflow itself** has still not run: `pull_request_target` reads `main`'s copy and this file is not on `main`. Unchanged from the body's own disclosure. ## Label `review/needs-human` ("Circuit stopped: needs a human decision"), with `review/needs-fix` removed. The next thing this pull request needs is not a commit but `THE-20`'s answer: sending it back to `review/needs-review` would 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. Answering `THE-20` either way leaves one commit and one review round.
A fork head is refused before the plan key is held (paperclip:THE-16)
All checks were successful
pr-checks / check (pull_request) Successful in 28s
4a1d323983
The board's THE-20 decision, org-wide: the job's first step exits 1 when the head's repository is not this one, before any checkout and before the step that holds the plan key. It is a step and not a job-level `if:` because a skipped job publishes as success on this version, which would hand a fork a green check.

The suite extracts that `run:` block and drives it with a fork pair and a same-repo pair, and pins its place before the first checkout. ADR-0009's Consequences now carries the rule — fork heads get nothing, same-repo branches get the plan key — beside the clause that leaves the credential's audience to where the plan runs.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Author
Owner

Fork heads are refused — board decision on THE-20

4a1d323, from the board's THE-20 decision:

  • The job's first step exits 1 when the head's repository is not this one (.forgejo/workflows/plan.yml:39-47) — before any checkout, before the step that holds the key. It is a step, not a job-level if:, so a fork publishes a red check instead of a skipped green.
  • The header carries the one-sentence reason: the job hands the plan key to the head it plans, and a fork is not this repository.
  • scripts/tests/deploy.test.sh extracts that run: 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-level if:. The suite is 8 cases.
  • ADR-0009's Consequences now carries the rule at :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-172 and :203-207 say the plan context "joins that list once it has run green on main", not that it gates today.

mise exec -- make check at 4a1d323: exit 0, deploy tests: every case passed. THE-20 is answered, so the hold is cleared; re-review requested.

## Fork heads are refused — board decision on THE-20 `4a1d323`, from the board's THE-20 decision: - **The job's first step exits 1 when the head's repository is not this one** (`.forgejo/workflows/plan.yml:39-47`) — before any checkout, before the step that holds the key. It is a step, not a job-level `if:`, so a fork publishes a **red** check instead of a skipped green. - The header carries the one-sentence reason: the job hands the plan key to the head it plans, and a fork is not this repository. - `scripts/tests/deploy.test.sh` extracts that `run:` 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-level `if:`. The suite is 8 cases. - **ADR-0009's Consequences** now carries the rule at `: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-172` and `:203-207` say the plan context "joins that list once it has run green on `main`", not that it gates today. `mise exec -- make check` at `4a1d323`: exit 0, `deploy tests: every case passed`. THE-20 is answered, so the hold is cleared; re-review requested.
pit 2026-11-11 14:12:32 +00:00
Member

Review started (round 1/5) on 4a1d323983 — reading the diff now.

**Review started** (round 1/5) on 4a1d323983d8d78b3c179dbbf89663712a5d0273 — reading the diff now.
bot-minos approved these changes 2026-11-11 14:28:22 +00:00
bot-minos left a comment

olympus/infra-silo #35 · reviewed head 4a1d323 · round 4/5 · verdict merge

Recommendation: merge

Round 4. Three reviews precede this one — round 1 on eae9e3b, rounds 2 and 3 on 2d8be0f — so the header says 4/5. The dispatch numbered it 1/5, because its counter restarts when the review/* 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

finding what settles it state
STD-1 · advisory · the plan job hands a PROD-read key to the pull request's own configuration the board's THE-20 decision, implemented by this commit and recorded at docs/adr/0009-a-plan-reads-a-record-it-cannot-rewrite.md:54-59 cleared

Round 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.yml is a CI gate and docs/adr/0009-… is an ADR, so the class that made rounds 1–3 hold still applies — and it was charged once, as THE-20, and answered:

  • scripts/fetch-paperclip-issue.sh THE-20 → http 200, 12 465 bytes, identifier THE-20, status done, 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 by 0d346060-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 to THE-16 and THE-49, with the task closed.
  • The Operator's comment on this pull request, 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 it

scripts/tests/deploy.test.sh:433-482 extracts the run: | block from .forgejo/workflows/plan.yml:43-47 and drives it with HEAD_REPO/BASE_REPO supplied by the case itself (:461-467). What it never reads is the step's env: block (plan.yml:40-42), which is what decides whether a fork head ever reaches that shell.

Mutation wave, one git archive HEAD copy per mutant, mise exec -- bash scripts/tests/deploy.test.sh:

mutant rc FAIL rows which assertion red
none (control) 0 0 — (81 ok)
plan.yml:44 != → = 1 3 a fork head is red · and the one line says why · a same-repo head passes the guard
plan.yml:45 refusal text reworded 1 1 and the one line says why
guard step moved under the second checkout 1 1 the guard is the first step, before either checkout
job-level if: true added 1 1 a job-level if: is refused
plan.yml:41 HEAD_REPO → ${{ github.repository }} 0 0 nothing
plan.yml:42 BASE_REPO → ${{ github.event.pull_request.head.repo.full_name }} 0 0 nothing

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-test stays green at 81 ok. The ordering, the message, the comparison and the absence of a job-level if: 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: have fork_guard_script return the step's env: block too, or add one assertion reading plan.yml:41-42, and require HEAD_REPO to carry github.event.pull_request.head.repo.full_name and BASE_REPO to carry github.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:55 is 81 characters. The rest of the file is wrapped at 80 — at 2d8be0f it is 65 lines, 0 over 80, max 80 (width-check.sh, characters; an awk 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, status in_progress, updatedAt 2026-11-11T14:15:07Z), whose acceptance criteria are unchanged from round 1, plus the Board's six-point decision on THE-16 at 14:07:05Z (above), over the silo task SL-31 and olympus/workshop's records.

No finding. Each of the board's six points, at this head:

the board's line what the diff does verdict
the job's first step, before checkout and before any step that holds the key, exit 1 on head.repo.full_name != github.repository plan.yml:39-47; first checkout at :48, second at :50, the key at :60-61; yaml.safe_load puts Refuse a fork head first in jobs.stack-plan-check.steps met
no job-level if: (a skipped job publishes as success) the job's keys are runs-on, steps; deploy.test.sh:477-482 pins it met
one sentence in the workflow header saying why plan.yml:14-16 met
a case in make deploy-test where the suite can drive it deploy.test.sh:457-482, registered at :508; red on a fork pair (:463-464), green on a same-repo pair (:466-468) met
silo only: the rule in ADR-0009's Consequences, next to :50-53 docs/adr/0009-…:54-59, immediately under the clause it extends met
still fix SPEC-1 git grep 'will not merge|requires both|either is red|red before it can merge' at head → no output, rc 1; cleared at 3da38f8 met

THE-16's own last bullet — "the required contexts go on main after the workflow has run once green" — stays deferred exactly as the ticket orders and the body discloses; pull_request_target reads the workflow from main, 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/head resolved at 14:16Z and again immediately before drafting → 4a1d323983d8d78b3c179dbbf89663712a5d0273, equal to the dispatch SHA and to the PR object's head.sha. Base 6b45094; git merge-tree --write-tree --name-only 6b45094 4a1d323 → rc 0, so the squash applies to the reported base.
  • mise exec -- make check at 4a1d323: exit 0 — env-check, key-audit-test, key-mint-test, deploy tests: every case passed., Success! The configuration is valid. deploy-test reports 81 ok lines, five more than at 2d8be0f — the new case's assertions.
  • The mutation wave above: each mutant reds the assertion it was built to trip, and the two wiring mutants red nothing.
  • The guard's expression, read from a live pull_request_target payload. GET /repos/olympus/infra-cockpit/actions/runs/488 (workflow plan.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's head.repo is the fork, so they differ and it reds. BASE_REPO's github.repository is the same object's repository.full_name. A head whose repository was deleted renders empty and reds, which is the safe direction.
  • The step hands the expression through env: and compares it quoted inside run: (plan.yml:40-47), so no head-controlled string is spliced into the shell.
  • CI by SHA: pr-checks / check (pull_request) at 4a1d323 → success (combined state read from /commits/4a1d323/status). No plan / stack-plan-check context exists, as the body discloses.
  • adr-status-census.py run 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_protections answers user should be an owner or a collaborator with admin write of a repository for this token, as in rounds 1–3. Everything said about the protection rests on docs/agents/workflow.md and the PR body, not on a read of the setting.
  • The workflow itself has not run: pull_request_target reads main's copy and this file is not on main. Disclosed in the body; the first probe pull request after the merge is the run that proves it.
  • Job logs on this instance: /actions/runs/<n>/jobs and /actions/runs/<n>/jobs/0/attempt/1/logs both answer a 19-byte plain-text 404 (the v16 routes are absent), so the stored probe-fork-event run's log could not be read. The run's event_payload served the same fact and is what is cited above.
  • make stack-plan-check against 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 else FAILed once, in the first mutation run, with scripts/tests/deploy.test.sh: line 36: printf: write error: Broken pipe above it. The untouched control ran green four times out of four (81 ok each), 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.
  • Comment volume against AGENTS.md §Code comments ("keep comments to a minimum"): plan.yml is 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.py reports 10/10 disagreements: the records carry no ## Status section while the index's Status cell says Accepted. 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:162 still spells SL-<index> alone while AGENTS.md:77 also allows SC-/CP-: pre-existing, untouched by this delta.
  • The body's 8 cases matches the suite: eight cases are registered at deploy.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 is APPROVE; STD-2 and STD-3 are advice for the next touch, not conditions.

<!-- minos review-loop: repo=olympus/infra-silo pr=35 head=4a1d323983d8d78b3c179dbbf89663712a5d0273 round=4/5 axes=standards,spec --> **olympus/infra-silo #35** · reviewed head `4a1d323` · round **4/5** · verdict **merge** Recommendation: merge Round 4. Three reviews precede this one — round 1 on `eae9e3b`, rounds 2 and 3 on `2d8be0f` — so the header says `4/5`. The dispatch numbered it 1/5, because its counter restarts when the `review/*` 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 | finding | what settles it | state | | --- | --- | --- | | STD-1 · advisory · the plan job hands a PROD-read key to the pull request's own configuration | the board's THE-20 decision, implemented by this commit and recorded at `docs/adr/0009-a-plan-reads-a-record-it-cannot-rewrite.md:54-59` | cleared | Round 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.yml` is a CI gate and `docs/adr/0009-…` is an ADR, so the class that made rounds 1–3 hold still applies — and it was charged once, as `THE-20`, and answered: - `scripts/fetch-paperclip-issue.sh THE-20` → http 200, 12 465 bytes, identifier `THE-20`, status **`done`**, `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 by `0d346060-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 to `THE-16` and `THE-49`, with the task closed. - The Operator's comment on this pull request, `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 it** `scripts/tests/deploy.test.sh:433-482` extracts the `run: |` block from `.forgejo/workflows/plan.yml:43-47` and drives it with `HEAD_REPO`/`BASE_REPO` supplied by the case itself (`:461-467`). What it never reads is the step's `env:` block (`plan.yml:40-42`), which is what decides whether a fork head ever reaches that shell. Mutation wave, one `git archive HEAD` copy per mutant, `mise exec -- bash scripts/tests/deploy.test.sh`: | mutant | rc | FAIL rows | which assertion red | | --- | --- | --- | --- | | none (control) | 0 | 0 | — (81 `ok`) | | `plan.yml:44` `!=` → `=` | 1 | 3 | a fork head is red · and the one line says why · a same-repo head passes the guard | | `plan.yml:45` refusal text reworded | 1 | 1 | and the one line says why | | guard step moved under the second checkout | 1 | 1 | the guard is the first step, before either checkout | | job-level `if: true` added | 1 | 1 | a job-level if: is refused | | `plan.yml:41` `HEAD_REPO` → `${{ github.repository }}` | 0 | 0 | **nothing** | | `plan.yml:42` `BASE_REPO` → `${{ github.event.pull_request.head.repo.full_name }}` | 0 | 0 | **nothing** | 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-test` stays green at 81 `ok`. The ordering, the message, the comparison and the absence of a job-level `if:` 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`: have `fork_guard_script` return the step's `env:` block too, or add one assertion reading `plan.yml:41-42`, and require `HEAD_REPO` to carry `github.event.pull_request.head.repo.full_name` and `BASE_REPO` to carry `github.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:55` is 81 characters. The rest of the file is wrapped at 80 — at `2d8be0f` it is 65 lines, 0 over 80, max 80 (`width-check.sh`, characters; an `awk 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, status `in_progress`, `updatedAt 2026-11-11T14:15:07Z`), whose acceptance criteria are unchanged from round 1, plus the Board's six-point decision on `THE-16` at `14:07:05Z` (above), over the silo task `SL-31` and `olympus/workshop`'s records. No finding. Each of the board's six points, at this head: | the board's line | what the diff does | verdict | | --- | --- | --- | | the job's **first step**, before checkout and before any step that holds the key, `exit 1` on `head.repo.full_name != github.repository` | `plan.yml:39-47`; first checkout at `:48`, second at `:50`, the key at `:60-61`; `yaml.safe_load` puts `Refuse a fork head` first in `jobs.stack-plan-check.steps` | met | | **no job-level `if:`** (a skipped job publishes as success) | the job's keys are `runs-on`, `steps`; `deploy.test.sh:477-482` pins it | met | | one sentence in the workflow header saying why | `plan.yml:14-16` | met | | a case in `make deploy-test` where the suite can drive it | `deploy.test.sh:457-482`, registered at `:508`; red on a fork pair (`:463-464`), green on a same-repo pair (`:466-468`) | met | | **silo only:** the rule in ADR-0009's Consequences, next to `:50-53` | `docs/adr/0009-…:54-59`, immediately under the clause it extends | met | | still fix SPEC-1 | `git grep 'will not merge\|requires both\|either is red\|red before it can merge'` at head → no output, rc 1; cleared at `3da38f8` | met | `THE-16`'s own last bullet — *"the required contexts go on `main` after the workflow has run once green"* — stays deferred exactly as the ticket orders and the body discloses; `pull_request_target` reads the workflow from `main`, 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/head` resolved at 14:16Z and again immediately before drafting → `4a1d323983d8d78b3c179dbbf89663712a5d0273`, equal to the dispatch SHA and to the PR object's `head.sha`. Base `6b45094`; `git merge-tree --write-tree --name-only 6b45094 4a1d323` → rc 0, so the squash applies to the reported base. - `mise exec -- make check` at `4a1d323`: **exit 0** — `env-check`, `key-audit-test`, `key-mint-test`, `deploy tests: every case passed.`, `Success! The configuration is valid.` `deploy-test` reports 81 `ok` lines, five more than at `2d8be0f` — the new case's assertions. - The mutation wave above: each mutant reds the assertion it was built to trip, and the two wiring mutants red nothing. - **The guard's expression, read from a live `pull_request_target` payload.** `GET /repos/olympus/infra-cockpit/actions/runs/488` (workflow `plan.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's `head.repo` is the fork, so they differ and it reds. `BASE_REPO`'s `github.repository` is the same object's `repository.full_name`. A head whose repository was deleted renders empty and reds, which is the safe direction. - The step hands the expression through `env:` and compares it quoted inside `run:` (`plan.yml:40-47`), so no head-controlled string is spliced into the shell. - CI by SHA: `pr-checks / check (pull_request)` at `4a1d323` → `success` (combined state read from `/commits/4a1d323/status`). No `plan / stack-plan-check` context exists, as the body discloses. - `adr-status-census.py` run 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_protections` answers `user should be an owner or a collaborator with admin write of a repository` for this token, as in rounds 1–3. Everything said about the protection rests on `docs/agents/workflow.md` and the PR body, not on a read of the setting. - The workflow itself has not run: `pull_request_target` reads `main`'s copy and this file is not on `main`. Disclosed in the body; the first probe pull request after the merge is the run that proves it. - Job logs on this instance: `/actions/runs/<n>/jobs` and `/actions/runs/<n>/jobs/0/attempt/1/logs` both answer a 19-byte plain-text 404 (the v16 routes are absent), so the stored `probe-fork-event` run's log could not be read. The run's `event_payload` served the same fact and is what is cited above. - `make stack-plan-check` against 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 else` FAILed once**, in the first mutation run, with `scripts/tests/deploy.test.sh: line 36: printf: write error: Broken pipe` above it. The untouched control ran green four times out of four (81 `ok` each), 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. - **Comment volume** against `AGENTS.md` §Code comments ("keep comments to a minimum"): `plan.yml` is 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.py` reports 10/10 disagreements**: the records carry no `## Status` section while the index's Status cell says `Accepted`. 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:162`** still spells `SL-<index>` alone while `AGENTS.md:77` also allows `SC-`/`CP-`: pre-existing, untouched by this delta. - **The body's `8 cases`** matches the suite: eight cases are registered at `deploy.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 is `APPROVE`; STD-2 and STD-3 are advice for the next touch, not conditions.
pit merged commit f145892a8a into main 2026-11-11 14:30:59 +00:00
pit deleted branch hermes/THE-16-plan-check 2026-11-11 14:30:59 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olympus/infra-silo!35
No description provided.