The plan check reds a State that holds no managed resource (TR-63) #61

Merged
pit merged 15 commits from hermes/plan-judge-refuses-an-emptied-state into main 2026-11-14 20:30:07 +00:00
Owner

Summary

The plan check now needs a managed resource in the plan's baseline. A State that holds only outputs or data sources has a prior_state, so the old guard let it through: every resource planned as a create, nothing could be named as lost, and under NONINTERACTIVE=1 the Target applied it. #58's second review found it (A-2), #59 documented it, and the Operator ruled that the judge is fixed before TR-58.

#59 merged as 748444e; its tree is identical to this branch's #59 tip 2e9826c, so main holds nothing this branch lacks. This head, ad3d033, merges that commit into the branch. It conflicted in GLOSSARY.md, README.md and scripts/tests/gate.test.sh — the three files both #59 and this change edit — and each is resolved to this branch's version. The merged tree equals the previous head's (3785559), so git diff main ad3d033 is the whole change: the judge plus round 1's two commits (a rename, and one baseline fixture the two suites share).

baseline_gap(plan)
  no prior_state                          -> UNREAD  "the state could not be read"
  walk root_module, then every child_modules, at any depth
    a resource with mode == "managed"     -> None    (a baseline: judge the changes)
  none found                              -> EMPTY   "the state holds no managed resources"
-    read = bool(plan.get("prior_state"))
-    if not read:
-        judged.insert(0, Row(UNREAD, UNREAD, True))
+    gap = baseline_gap(plan)
+    if gap:
+        said = f"{gap}, so nothing is the plan's baseline"
+        judged.insert(0, Row(said, said, True))

The walk goes into modules because the Guest Stack keeps its container in module.guest (vikunja/guest/main.tf). A root-only read would call every real State empty and refuse every deploy; scripts/guest-vmid.sh already reads the same State the same way (recurse(.child_modules[]?)).

Real tofu show -json plans (OpenTofu 1.12.6, builtin provider), judged before and after:

State the plan was made against prior_state Before After
a root resource and an output yes green green
a resource in a module yes green green
a resource two modules down yes green green
the resource removed, an output kept yes green red
the same, with the resource in a module yes green red
only a data source left yes green red
nothing left at all no red red, same words

Evidence

  • Before: the new tests against the old judge. plan-check tests: 6 case(s) failed. and gate-test: 9 assertion(s) FAILED., among them make guest on an emptied State answered 0: stub: the plan above and the same for edge: both Targets would have applied the emptied State's plan.
    After: mise exec -- make check exits 0 on a clean archive of 3785559, whose tree is ad3d033's. plan-check tests: every case passed. (31 assertions, 25 before) and gate-test: 57 assertions, 0 FAILED. (48 before). (corrected in place at round 1: against the old judge the plan-check suite fails 6 cases and passes 25, not 5 and 20.) The macro, make guest and make edge each refuse an emptied State under NONINTERACTIVE=1, apply nothing, leave no plan artifact, and say so in their own name (guest: the state holds no managed resources, so this check is red).
  • Nine mutants of the check, each aimed at one claim, all go red: root module only; root and one level; any resource counts, data too; back to "a prior_state is a baseline"; empty reported as unread; the gap never turns the plan red; the wrong key for the modules; "not data" in place of "managed"; the baseline words and the loss words swapped. The last one surfaced a gap in my first tests: a resource with no mode is not counted, and a case now pins it.
  • The test fixtures' baseline was an empty root module, which is no baseline under the new rule. They now hold the Guest.
  • README and GLOSSARY said an outputs-only baseline "reads as a readable one". They now say what the judge does.

Merge Danger

Door: two-way. Reverting 99d2d86 restores the old guard.

Blast Radius: every tracker plan check and every unattended apply.

This judge is also the pull-request plan check (plan / guest-plan-check, plan / edge-plan-check), and both are required contexts. A false red would turn every tracker pull request red, a revert included, and only an admin merge would get past it.

  • Not proved here: the new judge on the live Guest and Edge States. plan.yml runs on pull_request_target, so this pull request's own plan contexts run main's judge, not this one. The shapes above come from real plans of the same structure, not from the live States. The first live read is the next pull request's plan contexts after this merges: #60's, which has to be green to merge, and which comes before the first deploy.
  • Not caught: a State that lost some resources but kept at least one still counts as a baseline (a Guest State that lost its container but kept another managed resource, say). The Guest's pinned vmid should make a re-create collide on Proxmox, but nobody has tested that. The rule is the one the Operator ruled on: a State with nothing in it.

— Hermes (agent-written)

## Summary The plan check now needs a managed resource in the plan's baseline. A State that holds only outputs or data sources has a `prior_state`, so the old guard let it through: every resource planned as a create, nothing could be named as lost, and under `NONINTERACTIVE=1` the Target applied it. #58's second review found it (A-2), #59 documented it, and the Operator ruled that the judge is fixed before TR-58. #59 merged as `748444e`; its tree is identical to this branch's #59 tip `2e9826c`, so `main` holds nothing this branch lacks. This head, `ad3d033`, merges that commit into the branch. It conflicted in `GLOSSARY.md`, `README.md` and `scripts/tests/gate.test.sh` — the three files both #59 and this change edit — and each is resolved to this branch's version. The merged tree equals the previous head's (`3785559`), so `git diff main ad3d033` is the whole change: the judge plus round 1's two commits (a rename, and one baseline fixture the two suites share). ```text baseline_gap(plan) no prior_state -> UNREAD "the state could not be read" walk root_module, then every child_modules, at any depth a resource with mode == "managed" -> None (a baseline: judge the changes) none found -> EMPTY "the state holds no managed resources" ``` ```diff - read = bool(plan.get("prior_state")) - if not read: - judged.insert(0, Row(UNREAD, UNREAD, True)) + gap = baseline_gap(plan) + if gap: + said = f"{gap}, so nothing is the plan's baseline" + judged.insert(0, Row(said, said, True)) ``` The walk goes into modules because the Guest Stack keeps its container in `module.guest` (`vikunja/guest/main.tf`). A root-only read would call every real State empty and refuse every deploy; `scripts/guest-vmid.sh` already reads the same State the same way (`recurse(.child_modules[]?)`). Real `tofu show -json` plans (OpenTofu 1.12.6, builtin provider), judged before and after: | State the plan was made against | `prior_state` | Before | After | | --- | --- | --- | --- | | a root resource and an output | yes | green | green | | a resource in a module | yes | green | green | | a resource two modules down | yes | green | green | | the resource removed, an output kept | yes | **green** | **red** | | the same, with the resource in a module | yes | **green** | **red** | | only a data source left | yes | **green** | **red** | | nothing left at all | no | red | red, same words | ## Evidence - **Before:** the new tests against the old judge. `plan-check tests: 6 case(s) failed.` and `gate-test: 9 assertion(s) FAILED.`, among them `make guest on an emptied State answered 0: stub: the plan above` and the same for `edge`: both Targets would have applied the emptied State's plan. **After:** `mise exec -- make check` exits 0 on a clean archive of `3785559`, whose tree is `ad3d033`'s. `plan-check tests: every case passed.` (31 assertions, 25 before) and `gate-test: 57 assertions, 0 FAILED.` (48 before). *(corrected in place at round 1: against the old judge the plan-check suite fails 6 cases and passes 25, not 5 and 20.)* The macro, `make guest` and `make edge` each refuse an emptied State under `NONINTERACTIVE=1`, apply nothing, leave no plan artifact, and say so in their own name (`guest: the state holds no managed resources, so this check is red`). - Nine mutants of the check, each aimed at one claim, all go red: root module only; root and one level; any resource counts, data too; back to "a `prior_state` is a baseline"; empty reported as unread; the gap never turns the plan red; the wrong key for the modules; "not data" in place of "managed"; the baseline words and the loss words swapped. The last one surfaced a gap in my first tests: a resource with no `mode` is not counted, and a case now pins it. - The test fixtures' baseline was an empty root module, which is no baseline under the new rule. They now hold the Guest. - README and GLOSSARY said an outputs-only baseline "reads as a readable one". They now say what the judge does. ## Merge Danger **Door:** two-way. Reverting `99d2d86` restores the old guard. **Blast Radius:** every tracker plan check and every unattended apply. This judge is also the pull-request plan check (`plan / guest-plan-check`, `plan / edge-plan-check`), and both are required contexts. A false red would turn every tracker pull request red, a revert included, and only an admin merge would get past it. - **Not proved here:** the new judge on the live Guest and Edge States. `plan.yml` runs on `pull_request_target`, so this pull request's own plan contexts run `main`'s judge, not this one. The shapes above come from real plans of the same structure, not from the live States. The first live read is the next pull request's plan contexts after this merges: #60's, which has to be green to merge, and which comes before the first deploy. - **Not caught:** a State that lost some resources but kept at least one still counts as a baseline (a Guest State that lost its container but kept another managed resource, say). The Guest's pinned `vmid` should make a re-create collide on Proxmox, but nobody has tested that. The rule is the one the Operator ruled on: a State with nothing in it. — Hermes (agent-written)
pit added 12 commits 2026-11-14 18:18:53 +00:00
The tracker's guest and edge apply under a deployer (TR-63)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 6s
plan / edge-plan-check (pull_request_target) Successful in 6s
checks / static (pull_request) Successful in 13s
checks / execute (pull_request) Successful in 2m54s
5098b1438e
`make guest NONINTERACTIVE=1` and `make edge NONINTERACTIVE=1` judge the plan
artifact with the plan check and apply that same artifact, so a Semaphore task can
deploy without a hand at the keyboard — the same shape `mise exec -- make prod
NONINTERACTIVE=1` takes in cockpit and forge (workshop ADR-0011).

- `confirm_and_apply` takes the judge's script and the name its verdict carries.
  Under the mode it renders the artifact, pipes it to `scripts/plan-check.py`, and
  applies only a clean judgement: a destroy, a replace or a plan the judge cannot
  read exits non-zero, is named, and applies nothing.
- Only a command-line assignment activates the mode. An exported
  `NONINTERACTIVE=1` still asks for the word, and says why — the word's job is to
  make a person look at the plan, and `NONINTERACTIVE` sitting in a devcontainer
  environment is not that person.
- With the variable unset both Targets ask as they always have. `service` keeps
  `confirm_word` unchanged: this ticket names the two apply Targets, and the
  service layer joins them with `prod` (TR-66), where its gate has a rehearsal
  rather than an artifact to judge.
- `scripts/tests/gate.test.sh` proves all of it offline. It includes the real
  Makefile and calls the real macro against a stub `tofu` and the plan check's own
  fixtures: 15 assertions covering the clean apply, the refused replace, the
  exported flag, the typed word and the wrong word. `make check` runs it.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
`guest` and `edge` no longer ask under `NONINTERACTIVE=1`, and four places still
described the gate as the typed word only: the README's gate paragraph, the
glossary's Apply gate entry, and the two targets' help texts. The README and the
glossary now name both halves — the word by hand, or the plan check's verdict on
the rendered artifact, command line only — and the help texts take the wording
`infra-forge` already uses at the same point of use.
The gate's test pins each Target's judge and name, and counts itself (TR-63)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 9s
plan / edge-plan-check (pull_request_target) Successful in 6s
checks / static (pull_request) Successful in 13s
checks / execute (pull_request) Successful in 2m49s
1fc119eb7e
The probe target drives the macro, so the decisions it takes were covered and
the arguments `guest` and `edge` hand it were not: a nonexistent judge, a
hardcoded verdict name, the other Stack's name and a dropped `rm -f plan.out`
all left the suite green. The test now mirrors the tree with a stub in place of
a Stack and drives both real Targets, asserting each verdict carries its own
name, and counts its assertions instead of printing a literal 15.
CP-39's table gives this repository one deploy — snapshot, guest, service, edge,
verify — and says each repository's `make prod` is that list. The tracker had the
Targets and not the list, and no ticket in the chain added it: TR-66's script
calls `make prod NONINTERACTIVE=1`, and TR-58's criteria assume it works.

- `PROD_STEPS` is the list and `make prod` is `$(MAKE) -S` over it: each step
  keeps its own Target and exit status, a failure stops the chain, and a
  command-line `NONINTERACTIVE=1` reaches every step as a command-line variable.
- `service` takes the mode, which `guest` and `edge` took in TR-63. A playbook
  cannot replace a Guest, so there is no plan artifact for the plan check to
  judge: the gate is the rehearsal that has just passed, and the run says so
  instead of asking a question nobody is there to answer. A rehearsal that fails
  stops the Target before the real run, as it does by hand.
- README and GLOSSARY follow: `make service` no longer "keeps the word".
- `gate-test` grows from 22 to 48 assertions: `service` under the mode, with a
  rehearsal that passes and one that fails; all three Targets with the variable
  absent, with a wrong word, and exported; and `prod`'s list, its order, its stop
  at the first failure and the mode reaching every step. That also pins what
  TR-63's review found unpinned at Target level, the unset and exported paths of
  `guest` and `edge`. Six mutants, each aimed at one of those claims, go red.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
The tracker's semaphore-deploy.sh starts its task and reports it (TR-66)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 6s
plan / edge-plan-check (pull_request_target) Successful in 6s
checks / static (pull_request) Successful in 24s
checks / execute (pull_request) Successful in 2m51s
ff06bba5d6
One file, two verbs, because it is two things in two places — and its name is
fixed by the applied projects Stack, whose `deploy` template names
`scripts/semaphore-deploy.sh` as its `playbook`. A file that both *is* the task
and *starts* the task would start itself, so the behaviour splits by verb:

- A bare call is the task body, run by Semaphore on the runner Guest (145):
  `make deps`, then `make env` as the runner with a trap that deletes `.env` on
  exit, then `make prod NONINTERACTIVE=1`, then `make verify`. The checkout is
  resolved from the script's own path once, because every Target changes
  directory and a relative `rm` would delete the wrong `.env` or none.
- `start` is the workflow's half: one POST to start the deploy template, then a
  read of the task every 15 seconds. `success` is the job's green; `error`,
  `stopped` and `rejected` are its red and name the task; every other status
  keeps waiting; after 35 minutes the job is red and names the task, and the task
  is left running. A start that gives no task, or a task that cannot be read, is
  red too: a deploy whose state is unknown is not a green one.

No secret reaches a command line. The one token is handed to curl through a 0600
config file and removed at exit, and the test greps the script for an
Authorization header on an argument.

This repository has no merge that redeploys the machine its own job runs on, so
the forge's `start --no-wait` and `status` verbs have no counterpart here, and
the test pins that they are refused.

`make deploy-test` makes 57 assertions against a stub of Semaphore's API and a
stub `make`: every status in the poll matrix, the timeout, the two unknown
states, the three refusals, and the task body's order, its ACTOR, its directory
and the `.env` it removes after a success and after each of four failures.
Eleven mutants of the script, each aimed at one of those claims, go red.
`make check` runs it.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
README and GLOSSARY say which gate each Target takes, and when the judge holds (TR-66)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 7s
plan / edge-plan-check (pull_request_target) Successful in 6s
checks / static (pull_request) Successful in 23s
checks / execute (pull_request) Successful in 2m51s
591889b2e2
Round 1 of #59's review found two readings in the prose this change adds, and
both are prose: no Target, no plan and no test moves here.

- The `Apply gate` entry read as one verdict covering both kinds of Target.
  `guest` and `edge` take the plan check's verdict on the rendered artifact;
  `service` takes the `--check` run before it having exited 0, which is a
  refusal if the rehearsal failed and not a verdict on an artifact.
- The plan check's promise is stated as holding once the plan carries a
  baseline. Its module docstring already says a plan with no `prior_state` is
  red rather than empty, and its `read` is `bool(plan.get("prior_state"))`:
  a baseline that exists and holds no resources is read as a first create, so
  the judge cannot tell that from an apply against a state it was never given.
  README said "a plan that would destroy or replace anything acts on nothing"
  without that boundary, which claims slightly more than the judge enforces.

The behaviour is deliberately unchanged. Empty-but-present is the shape a first
apply against a Stack that has no state produces, so reddening it is the gate's
own product decision and it belongs to TR-58, the first caller — not to a prose
fix. That is why the boundary is documented rather than enforced here.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Merge main into the TR-66 branch, which had moved under it (TR-66)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 6s
plan / edge-plan-check (pull_request_target) Successful in 6s
checks / static (pull_request) Successful in 24s
checks / execute (pull_request) Successful in 2m49s
a8f3b61310
main moved to 71f3840 while this branch was under review: the squash of
#58 (TR-63), and the TR-64 (!45) and THE-94 (!53) merges. This branch
carried #58's three commits itself, so the merge conflicted in four
files. Resolution, per file:

- GLOSSARY.md and scripts/tests/gate.test.sh: main's copy is
  byte-identical to 1fc119e (the #58 head this branch carries), so this
  branch's copy stands whole.
- Makefile and README.md: the conflict blocks take this branch's side.
  main's changes outside those blocks come through the merge unchanged:
  the env: description, the SEMAPHORE_API_TOKEN row, the actors paragraph.

What the merge brings in: main's 17 files (940 insertions, 111 deletions)
that this branch lacked. What the PR changes against the new main is
unchanged by it: `git diff --stat origin/main HEAD` is 7 files, 799
insertions, 47 deletions, as it was against 1fc119e before the merge.

`make check` at the merged tree: exit 0.
README and GLOSSARY say which baseline the judge reads as red (TR-66)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 6s
plan / edge-plan-check (pull_request_target) Successful in 6s
checks / static (pull_request) Successful in 26s
checks / execute (pull_request) Successful in 2m47s
aae6ab334b
The judge reads a State with no resources and no outputs as red, and one
with no resources but one output as green. The sentence said a baseline
holding no resources is read as a readable one, which holds only for the
second shape. Measured with OpenTofu 1.12.6 on a throwaway Stack:

  zero resources, zero outputs  -> no prior_state   -> plan-check.py exits 1
  zero resources, one output    -> prior_state present -> plan-check.py exits 0

README §service also names what the rehearsal does not run: under --check a
`command:` task reports changed and is not executed, so the playbook's
migrations and account checks and creates are not shown by a passed
rehearsal. Measured with ansible-playbook 2.21.5: the marker file a command
task creates is absent after --check and present after the real run.

Prose only. No code, test or Makefile line moves. Addresses ADV-1 and ADV-2
of the round-3 review on a8f3b61.
With the deadline check removed, the never-finishing case polled until the CI
job was killed and named no regression. The test's run now goes through
`timeout 60`, so a script that keeps polling reads as rc 124 and a red
assertion. Test-only: the script is unchanged.

Addresses SPEC-2 of the round-4 review on olympus/infra-tracker#59.
Route the deploy task's make calls through mise exec (TR-66)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 6s
plan / edge-plan-check (pull_request_target) Successful in 6s
checks / static (pull_request) Successful in 24s
checks / execute (pull_request) Successful in 2m48s
1ef5e2c773
AGENTS.md §Toolchain puts every target under `mise exec -- make` outside the CI
job. The Semaphore runner is not the CI image, so the task body's bare `make
env`, `make prod` and `make verify` ran with whatever PATH the runner gave
them. `make deps` stays bare: it is the call that installs the manager, and its
own recipe finds the binary the way the task body now does.

A task that starts with no manager is red before anything is fetched or
applied, and the message names the path it looked at. The suite records the
mise route and asserts it, and drives the no-manager case with a PATH that
holds no mise.

Addresses STD-1 of the round-4 review on olympus/infra-tracker#59.
The deploy script's header says why its token crosses the LAN in cleartext (TR-66)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 11s
plan / edge-plan-check (pull_request_target) Successful in 7s
checks / static (pull_request) Successful in 25s
checks / execute (pull_request) Successful in 2m54s
2e9826c264
The review's STD-2 asked for an https default or a line saying why this hop is
cleartext. The Operator kept http, so the header now says why and what it costs:

- Semaphore has no TLS listener: `https://10.12.0.143:3000` fails the handshake
  (curl exit 35) while `http://` answers 200, and infra-cockpit's own
  `semaphore_web_root` is `http://10.12.0.143:3000`.
- The hop is the deploy job to 143, inside the home LAN.
- The token is `ci-tracker`'s: Manager on this repository's project only, no
  expiry (infra-cockpit's projects Stack). In Semaphore v2.19.16 a Manager holds
  `CanManageProjectResources`, which is what the template routes require, so a
  reader of the token can change the deploy template that runs on 145.
- TLS on Semaphore is a change in infra-cockpit; the header says the default
  becomes https when it lands.

A comment only: no behaviour, default or test changes.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
The plan check reds a State that holds no managed resource (TR-63)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 7s
plan / edge-plan-check (pull_request_target) Successful in 6s
checks / static (pull_request) Successful in 25s
checks / execute (pull_request) Successful in 2m51s
99d2d86cbf
A State that holds outputs or data sources and no resource still has a
`prior_state`, so the guard that reds a missing baseline let it through. Every
resource in such a plan is a create, nothing in it can be named as lost, and
under `NONINTERACTIVE=1` the Target applies it with nobody looking. #58's second
review found it (A-2), #59 documented it, and the Operator ruled that the judge
is fixed before TR-58.

The judge now needs a managed resource in the baseline, looked for in the root
module and in every module under it: the Guest Stack keeps its container in
`module.guest`, so a root-only read would call every real State empty and
refuse every deploy. An output or a data source does not count, and a resource
that does not say it is managed does not either. The words tell the two cases
apart: "could not be read" stays with a State that has no `prior_state`, and a
State that was read and holds nothing says so.

Against real `tofu show -json` plans (OpenTofu 1.12.6, builtin provider): a
root resource, a resource in a module and one two modules down stay green; an
outputs-only State, a module emptied of its resource and a data-only State,
all green before, are red.

The fixtures' baseline was an empty root module, which is no baseline under the
new rule, so they now hold the Guest. plan-check-test gains 11 assertions and
gate-test 9: the macro and both Targets refuse an emptied State and apply
nothing. README and GLOSSARY say what the judge does instead of documenting the
gap.

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

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

**Review started** (round 1/5) on 99d2d86cbf23b0bb66a9664781b76c66c9d68cd7 — reading the diff now.
bot-minos requested changes 2026-11-14 18:26:23 +00:00
Dismissed
bot-minos left a comment

minos-review: repo=olympus/infra-tracker pr=61 head=99d2d86cbf23b0bb66a9664781b76c66c9d68cd7 round=1/5 verdict=block

Recommendation: fix

Block. The TR-63 judge change is correct, and its tests can fail. But the PR as filed does not carry the change it names: its base is main, so its diff also contains #59's 11 commits. Clear B1 and the change is ready to merge. The advisory count still turns this round to fix (see Summary).

Scope: the spec is this PR body. The TR-63 ticket was not fetched: no Vikunja tool or credential is loaded in this session. Standards read: AGENTS.md, README.md, GLOSSARY.md, and olympus/workshop ADR-0011 (local clone at 09840e0). Findings on #59's commits are attributed to #59 and not charged here.

Spec

# Severity Where Finding Evidence
B1 BLOCKER PR base The diff against the base is not the change the body names. The base is main (71f3840), so the diff is 12 commits, 9 files, +1030/-77. The body's change is 2e9826c..99d2d86: 1 commit, 5 files, +194/-41. Merged as filed, main takes #59's unreviewed content, including the apply-gate change: service no longer asks for the typed word under NONINTERACTIVE=1. #59 is open at review/needs-review. git diff --stat 71f3840...99d2d86 vs git diff --stat 2e9826c 99d2d86; git show 71f3840:Makefile L114-121 prompts, 99d2d86:Makefile L124-134 skips the prompt (from 62da97f); PR base.ref=main, merge_base=71f3840
A1 ADVISORY scripts/plan-check.py L47-63 Disclosed gap, outside the title's claim: a State that still holds one managed resource, with the Guest container planned as a create, reads green ("the plan loses nothing", rc 0). Probe p7 (my fixture)
A2 ADVISORY PR body, Evidence ("Before") Quotes plan-check tests: 5 case(s) failed. for the pre-change judge. At this head, the new tests against the main judge print 6 case(s) failed. The other counts reproduce: 31 (plan-check), 57 and 9 (gate). scripts/tests/plan-check.test.sh:215; run against 71f3840:scripts/plan-check.py

Standards

# Severity Where Finding Evidence
A3 ADVISORY (nit) scripts/plan-check.py L60, L73 held means two things in one module: a resource record in baseline_gap(), and an address in rows(). Smell baseline: Mysterious Name. the two lines
A4 ADVISORY (nit) scripts/tests/plan-check.test.sh L25-27; scripts/tests/gate.test.sh L33-35 The same baseline fixture is written out twice, verbatim. Smell baseline: Duplicated Code (judgement). the two blocks

Standards that pass: AGENTS.md §Pull requests (the body has Summary, Evidence and Merge Danger); AGENTS.md §Toolchain (targets run through mise exec -- make, reproduced below); ADR-0011 (olympus/workshop docs/adr/0011: a deploy never destroys or replaces; this judge refuses a baseline it cannot judge, which is consistent with that record).

Summary

  • Standards: 0 blockers, 2 advisories (both nits).
  • Spec: 1 blocker (B1), 2 advisories (A1, A2).
  • Worst finding per axis: Spec, B1. Standards, A3/A4 (nits).
  • What turns the round: B1 on weight, and the advisory count (4, which is 3 or more) on volume. Clearing B1 alone still leaves fix, because of the count. A1 to A4 can go in one batched round with B1.

Clearing B1

Retarget the base to hermes/TR-66-the-tracker-s-semaphore-deploy-sh-starts-its (2e9826c), so the forge diff is 5 files, +194/-41. Or merge #59 first, then retarget onto main. Round 2 then reviews 99d2d86 alone.

Verified (99d2d86, my own runs unless marked)

Check Route Result
plan-check tests scripts/tests/plan-check.test.sh rc 0, every case passed, 31 assertions
gate tests scripts/tests/gate.test.sh 57 assertions, 0 FAILED
offline floor mise exec -- make env-check env-test plan-workflow-test plan-check-test gate-test deploy-test rc 0
semaphore-deploy tests (#59's; run because the diff carries them) scripts/tests/semaphore-deploy.test.sh 61 assertions, 0 FAILED
Tests against the old judge new tests run against 71f3840:scripts/plan-check.py plan-check 6 FAIL, gate 9 FAIL: the tests do test the change
Mutants of the judge any-resource-counts; root-only; gap never red; empty state as baseline plan-check suite catches all four; gate suite catches the last two. Root-only is caught only by plan-check, since the gate fixtures hold at root
Nine hand-built plan fixtures judge at head Eight as expected: two-deep update GREEN; no values RED; null resources with a sibling module GREEN; mode missing RED; replace RED; empty RED; module data-only RED; no prior_state RED. The one disclosed gap (A1) reads GREEN
Body's module.guest claim vikunja/guest/main.tf:3; scripts/guest-vmid.sh:26 recurses child_modules as stated
Secrets in the TR-63 hunks grep for key, token and password literals none; the test values are stub
Stacking Forgejo PR fields; git log #61 base=main. #59 (2e9826c) open at review/needs-review. #60 open at review/merge-ready, stacked on #59
CI at head (read from Forgejo) commit statuses, read 2026-11-14 after 18:22Z checks / static success (25 s); checks / execute success (2m51s); plan contexts success, but they run on pull_request_target, which uses main's judge (.forgejo/workflows/plan.yml header), so they do not test this judge

Could not verify

  • The body's real-plan table (OpenTofu 1.12.6): tofu is not on this host, so my fixtures copy the shapes and are not live plans. The README claim that tofu show -json writes no prior_state for an entirely empty State is also unchecked.
  • The live Guest and Edge States: no agent read. The first live read is #60's plan contexts after this merges, as the body says.
  • The TR-63 ticket and the Operator's ruling: not fetched (see Scope).
  • Full make check, including tofu fmt and validate, was not run by hand. I relied on checks / static green at 99d2d86 and did not reproduce it.

Files

File Disposition
scripts/plan-check.py TR-63 hunks pass (A1, A3)
scripts/tests/plan-check.test.sh TR-63 hunks pass (A4)
scripts/tests/gate.test.sh TR-63 hunks pass (A4)
GLOSSARY.md, README.md TR-63 hunks pass; the text matches the judge
Makefile, scripts/semaphore-deploy.sh, scripts/tests/semaphore-deploy.test.sh, scripts/tests/semaphore-stub.py #59's content. Not reviewed here; attributed to #59. Their tests pass at this head

Nothing the change should have touched was missing.

Class and gate

The judge is a CI gate (plan-judge contexts), and the apply-gate change sits in #59. The dispatch puts the hold elsewhere, so the state follows the findings. I opened no board card and cite none. Merging remains the board's gate.

minos-review: repo=olympus/infra-tracker pr=61 head=99d2d86cbf23b0bb66a9664781b76c66c9d68cd7 round=1/5 verdict=block Recommendation: fix **Block.** The TR-63 judge change is correct, and its tests can fail. But the PR as filed does not carry the change it names: its base is `main`, so its diff also contains #59's 11 commits. Clear B1 and the change is ready to merge. The advisory count still turns this round to fix (see Summary). Scope: the spec is this PR body. The TR-63 ticket was not fetched: no Vikunja tool or credential is loaded in this session. Standards read: `AGENTS.md`, `README.md`, `GLOSSARY.md`, and `olympus/workshop` ADR-0011 (local clone at 09840e0). Findings on #59's commits are attributed to #59 and not charged here. ## Spec | # | Severity | Where | Finding | Evidence | |---|---|---|---|---| | B1 | BLOCKER | PR base | The diff against the base is not the change the body names. The base is `main` (71f3840), so the diff is 12 commits, 9 files, +1030/-77. The body's change is `2e9826c..99d2d86`: 1 commit, 5 files, +194/-41. Merged as filed, `main` takes #59's unreviewed content, including the apply-gate change: `service` no longer asks for the typed word under `NONINTERACTIVE=1`. #59 is open at `review/needs-review`. | `git diff --stat 71f3840...99d2d86` vs `git diff --stat 2e9826c 99d2d86`; `git show 71f3840:Makefile` L114-121 prompts, `99d2d86:Makefile` L124-134 skips the prompt (from 62da97f); PR base.ref=main, merge_base=71f3840 | | A1 | ADVISORY | `scripts/plan-check.py` L47-63 | Disclosed gap, outside the title's claim: a State that still holds one managed resource, with the Guest container planned as a create, reads green ("the plan loses nothing", rc 0). | Probe p7 (my fixture) | | A2 | ADVISORY | PR body, Evidence ("Before") | Quotes `plan-check tests: 5 case(s) failed.` for the pre-change judge. At this head, the new tests against the `main` judge print `6 case(s) failed.` The other counts reproduce: 31 (plan-check), 57 and 9 (gate). | `scripts/tests/plan-check.test.sh:215`; run against `71f3840:scripts/plan-check.py` | ## Standards | # | Severity | Where | Finding | Evidence | |---|---|---|---|---| | A3 | ADVISORY (nit) | `scripts/plan-check.py` L60, L73 | `held` means two things in one module: a resource record in `baseline_gap()`, and an address in `rows()`. Smell baseline: Mysterious Name. | the two lines | | A4 | ADVISORY (nit) | `scripts/tests/plan-check.test.sh` L25-27; `scripts/tests/gate.test.sh` L33-35 | The same baseline fixture is written out twice, verbatim. Smell baseline: Duplicated Code (judgement). | the two blocks | Standards that pass: `AGENTS.md` §Pull requests (the body has Summary, Evidence and Merge Danger); `AGENTS.md` §Toolchain (targets run through `mise exec -- make`, reproduced below); ADR-0011 (`olympus/workshop` docs/adr/0011: a deploy never destroys or replaces; this judge refuses a baseline it cannot judge, which is consistent with that record). ## Summary - Standards: 0 blockers, 2 advisories (both nits). - Spec: 1 blocker (B1), 2 advisories (A1, A2). - Worst finding per axis: Spec, B1. Standards, A3/A4 (nits). - What turns the round: B1 on weight, and the advisory count (4, which is 3 or more) on volume. Clearing B1 alone still leaves `fix`, because of the count. A1 to A4 can go in one batched round with B1. ## Clearing B1 Retarget the base to `hermes/TR-66-the-tracker-s-semaphore-deploy-sh-starts-its` (2e9826c), so the forge diff is 5 files, +194/-41. Or merge #59 first, then retarget onto `main`. Round 2 then reviews 99d2d86 alone. ## Verified (99d2d86, my own runs unless marked) | Check | Route | Result | |---|---|---| | plan-check tests | `scripts/tests/plan-check.test.sh` | rc 0, every case passed, 31 assertions | | gate tests | `scripts/tests/gate.test.sh` | 57 assertions, 0 FAILED | | offline floor | `mise exec -- make env-check env-test plan-workflow-test plan-check-test gate-test deploy-test` | rc 0 | | semaphore-deploy tests (#59's; run because the diff carries them) | `scripts/tests/semaphore-deploy.test.sh` | 61 assertions, 0 FAILED | | Tests against the old judge | new tests run against `71f3840:scripts/plan-check.py` | plan-check 6 FAIL, gate 9 FAIL: the tests do test the change | | Mutants of the judge | any-resource-counts; root-only; gap never red; empty state as baseline | plan-check suite catches all four; gate suite catches the last two. Root-only is caught only by plan-check, since the gate fixtures hold at root | | Nine hand-built plan fixtures | judge at head | Eight as expected: two-deep update GREEN; no `values` RED; null resources with a sibling module GREEN; mode missing RED; replace RED; empty RED; module data-only RED; no `prior_state` RED. The one disclosed gap (A1) reads GREEN | | Body's `module.guest` claim | `vikunja/guest/main.tf:3`; `scripts/guest-vmid.sh:26` recurses `child_modules` | as stated | | Secrets in the TR-63 hunks | grep for key, token and password literals | none; the test values are `stub` | | Stacking | Forgejo PR fields; `git log` | #61 base=main. #59 (2e9826c) open at `review/needs-review`. #60 open at `review/merge-ready`, stacked on #59 | | CI at head (read from Forgejo) | commit statuses, read 2026-11-14 after 18:22Z | `checks / static` success (25 s); `checks / execute` success (2m51s); plan contexts success, but they run on `pull_request_target`, which uses `main`'s judge (`.forgejo/workflows/plan.yml` header), so they do not test this judge | ## Could not verify - The body's real-plan table (OpenTofu 1.12.6): `tofu` is not on this host, so my fixtures copy the shapes and are not live plans. The README claim that `tofu show -json` writes no `prior_state` for an entirely empty State is also unchecked. - The live Guest and Edge States: no agent read. The first live read is #60's plan contexts after this merges, as the body says. - The TR-63 ticket and the Operator's ruling: not fetched (see Scope). - Full `make check`, including tofu fmt and validate, was not run by hand. I relied on `checks / static` green at 99d2d86 and did not reproduce it. ## Files | File | Disposition | |---|---| | `scripts/plan-check.py` | TR-63 hunks pass (A1, A3) | | `scripts/tests/plan-check.test.sh` | TR-63 hunks pass (A4) | | `scripts/tests/gate.test.sh` | TR-63 hunks pass (A4) | | `GLOSSARY.md`, `README.md` | TR-63 hunks pass; the text matches the judge | | `Makefile`, `scripts/semaphore-deploy.sh`, `scripts/tests/semaphore-deploy.test.sh`, `scripts/tests/semaphore-stub.py` | #59's content. Not reviewed here; attributed to #59. Their tests pass at this head | Nothing the change should have touched was missing. ## Class and gate The judge is a CI gate (plan-judge contexts), and the apply-gate change sits in #59. The dispatch puts the hold elsewhere, so the state follows the findings. I opened no board card and cite none. Merging remains the board's gate.
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.
`baseline_gap()` loops over a module's `resources`, and it called each one
`held`. The same name means an address in `rows()`, two functions down, so a
reader had to check which meaning a line carried. The loop variable is a
resource record in this function, so it is named as one. Behaviour is
unchanged: the suites pin the verdicts, and both still pass.

Review round 1, advisory A3.
The plan check and the apply gate read one baseline fixture (TR-63)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 6s
plan / edge-plan-check (pull_request_target) Successful in 6s
checks / static (pull_request) Successful in 25s
checks / execute (pull_request) Successful in 2m54s
3785559958
The same three-line `prior_state` was written out verbatim in
`plan-check.test.sh` and `gate.test.sh`. Two copies of a fixture that defines
what a baseline looks like can drift: a change to one suite's State would
leave the other judging a different baseline. Both suites now read
`scripts/tests/held-baseline.fragment`, which is spliced into each plan the
way the inline string was. The fragment is the only copy.

Proof that one edit reaches both: with `"mode": "managed"` changed to
`"mode": "data"` in the fragment, both suites go red. The unchanged tree is
green in both (31 and 57 assertions).

Review round 1, advisory A4.
Member

Round 1 report (head 3785559): A2, A3 and A4 fixed and verified. B1 is not fixed and needs a decision. A1 is left as it is. State: review/needs-human.

Decision for the Operator (B1). No commit clears B1. The forge diff is main...head, main is the base, so #59's commits stay in this diff until #59 merges or the base moves. A history rewrite would be a force-push, which I will not do, and I have not changed the base. Two clearings, both yours:

Option What it does Consequence I measured
(a) Retarget the base to hermes/TR-66-the-tracker-s-semaphore-deploy-sh-starts-its (2e9826c, still on origin) The forge diff becomes this PR's own change: 6 files, +195/-41 at 3785559 (the review's 5 files, +194/-41 is the 99d2d86 figure). The plan contexts take their workflow, Makefile and judge from the base (plan.yml header). Retargeting changes which tree gates this PR.
(b) Merge #59 first, then retarget onto main Same diff, against main. Waits on #59's review.

Once either lands, the round needs a re-review at the new head, not a fix.

Findings

Finding Disposition Commit Evidence
B1 (base is main; diff carries #59's commits) Not fixed. Needs your call above. none live PR: base main, merge_base 71f3840
A1 (one managed resource left, Guest planned as a create, reads green) Left alone. The body's Not caught already names this class, and closing it changes the rule the Operator ruled on ("a State with nothing in it"). none body, Merge Danger
A2 (Evidence says 5 case(s) failed and 20 before) Fixed in the body, one PATCH, read back equal. Measured against the old judge: 6 failed, 25 pass. body corrected in place, marked in Evidence
A3 (held means two things in plan-check.py) Fixed: baseline_gap() now names its loop variable resource. Behaviour unchanged. 5df755b suites green before and after
A4 (baseline fixture written out twice) Fixed: both suites read scripts/tests/held-baseline.fragment. 3785559 mutant below

Verification

Run on git archive 3785559 (not the worktree), with the Proxmox and AWS variables unset:

env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check ; echo rc=$?

Every line below is verbatim and in log order. Elided lines are the run "…"... pass lines, which I left out:

env-test: every assertion holds.
plan-check tests: every case passed.
gate-test: 57 assertions, 0 FAILED.
semaphore-deploy tests: 61 assertions, 0 FAILED.
pool.tftest.hcl... pass
Success! 1 passed, 0 failed.
edge.tftest.hcl... pass
Success! 5 passed, 0 failed.
rc=0

grep -c 'Success!' reads 5 (three tofu validate, two tofu test), and grep -c 'Error message refers to sensitive values' reads 0.

The shared fixture is the one thing both suites read, so I changed it in a scratch copy and kept the worktree unchanged:

fragment "mode": "data" (mutant)   plan-check:  plan-check tests: 6 case(s) failed.
fragment "mode": "data" (mutant)   gate:        gate-test: 8 assertion(s) FAILED.
fragment as committed              plan-check:  plan-check tests: every case passed.   (31 assertions)
fragment as committed              gate:        gate-test: 57 assertions, 0 FAILED.

The old judge (main's plan-check.py) against the same new suites, which is what the body's Before measures:

plan-check tests: 6 case(s) failed.      (25 pass of 31)
gate-test: 9 assertion(s) FAILED.

CI at 3785559, read anonymously as the combined status: success. checks / static 25s, checks / execute 2m54s, plan / guest-plan-check and plan / edge-plan-check 6s each. The plan contexts run main's judge, so they do not test this change; the body already says so.

Self-review (code-review, two passes over the 4-file diff)

  • Standards: no documented-standard breach. The two smells in the baseline are the two I fixed (A3, A4). I found no new one.
  • Spec: A3 and A4 are closed as worded. The suite counts stay at 31 and 57, so no behaviour moved. Nothing beyond the advisories changed.

What I did not do

  • B1: the base decision above. I did not retarget the PR, merge #59, or touch main.
  • A1: left alone, as above.
  • Live plans of the Guest and Edge States with this judge: not run here, since the plan contexts use main's judge and this session has no Operator credential. The first live read is #60's plan contexts after this merges.

The ack line on this PR carries the dispatch's counter (round 1/5), which matches the review's round.

**Round 1 report (head `3785559`): A2, A3 and A4 fixed and verified. B1 is not fixed and needs a decision. A1 is left as it is. State: `review/needs-human`.** **Decision for the Operator (B1).** No commit clears B1. The forge diff is `main...head`, `main` is the base, so #59's commits stay in this diff until #59 merges or the base moves. A history rewrite would be a force-push, which I will not do, and I have not changed the base. Two clearings, both yours: | Option | What it does | Consequence I measured | |---|---|---| | (a) Retarget the base to `hermes/TR-66-the-tracker-s-semaphore-deploy-sh-starts-its` (`2e9826c`, still on origin) | The forge diff becomes this PR's own change: 6 files, +195/-41 at `3785559` (the review's 5 files, +194/-41 is the `99d2d86` figure). | The plan contexts take their workflow, Makefile and judge from the base (`plan.yml` header). Retargeting changes which tree gates this PR. | | (b) Merge #59 first, then retarget onto `main` | Same diff, against `main`. | Waits on #59's review. | Once either lands, the round needs a re-review at the new head, not a fix. **Findings** | Finding | Disposition | Commit | Evidence | | --- | --- | --- | --- | | B1 (base is `main`; diff carries #59's commits) | Not fixed. Needs your call above. | none | live PR: `base` `main`, `merge_base` `71f3840` | | A1 (one managed resource left, Guest planned as a create, reads green) | Left alone. The body's *Not caught* already names this class, and closing it changes the rule the Operator ruled on ("a State with nothing in it"). | none | body, Merge Danger | | A2 (Evidence says `5 case(s) failed` and `20 before`) | Fixed in the body, one PATCH, read back equal. Measured against the old judge: 6 failed, 25 pass. | body | corrected in place, marked in Evidence | | A3 (`held` means two things in `plan-check.py`) | Fixed: `baseline_gap()` now names its loop variable `resource`. Behaviour unchanged. | `5df755b` | suites green before and after | | A4 (baseline fixture written out twice) | Fixed: both suites read `scripts/tests/held-baseline.fragment`. | `3785559` | mutant below | **Verification** Run on `git archive 3785559` (not the worktree), with the Proxmox and AWS variables unset: ```text env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check ; echo rc=$? ``` Every line below is verbatim and in log order. Elided lines are the `run "…"... pass` lines, which I left out: ```text env-test: every assertion holds. plan-check tests: every case passed. gate-test: 57 assertions, 0 FAILED. semaphore-deploy tests: 61 assertions, 0 FAILED. pool.tftest.hcl... pass Success! 1 passed, 0 failed. edge.tftest.hcl... pass Success! 5 passed, 0 failed. rc=0 ``` `grep -c 'Success!'` reads 5 (three `tofu validate`, two `tofu test`), and `grep -c 'Error message refers to sensitive values'` reads 0. The shared fixture is the one thing both suites read, so I changed it in a scratch copy and kept the worktree unchanged: ```text fragment "mode": "data" (mutant) plan-check: plan-check tests: 6 case(s) failed. fragment "mode": "data" (mutant) gate: gate-test: 8 assertion(s) FAILED. fragment as committed plan-check: plan-check tests: every case passed. (31 assertions) fragment as committed gate: gate-test: 57 assertions, 0 FAILED. ``` The old judge (`main`'s `plan-check.py`) against the same new suites, which is what the body's *Before* measures: ```text plan-check tests: 6 case(s) failed. (25 pass of 31) gate-test: 9 assertion(s) FAILED. ``` CI at `3785559`, read anonymously as the combined status: `success`. `checks / static` 25s, `checks / execute` 2m54s, `plan / guest-plan-check` and `plan / edge-plan-check` 6s each. The plan contexts run `main`'s judge, so they do not test this change; the body already says so. **Self-review (`code-review`, two passes over the 4-file diff)** - Standards: no documented-standard breach. The two smells in the baseline are the two I fixed (A3, A4). I found no new one. - Spec: A3 and A4 are closed as worded. The suite counts stay at 31 and 57, so no behaviour moved. Nothing beyond the advisories changed. **What I did not do** - B1: the base decision above. I did not retarget the PR, merge #59, or touch `main`. - A1: left alone, as above. - Live plans of the Guest and Edge States with this judge: not run here, since the plan contexts use `main`'s judge and this session has no Operator credential. The first live read is #60's plan contexts after this merges. The ack line on this PR carries the dispatch's counter (round 1/5), which matches the review's round.
Merge main into the TR-63 branch, whose base #59 squash-merged under it (TR-63)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 7s
plan / edge-plan-check (pull_request_target) Successful in 7s
checks / static (pull_request) Successful in 25s
checks / execute (pull_request) Successful in 2m50s
ad3d033182
main carries #59 as 748444e. Its tree is byte-identical to this branch's
#59 tip (2e9826c), so main holds nothing this branch lacks.

The three-way merge conflicts in GLOSSARY.md, README.md and
scripts/tests/gate.test.sh, the three files both #59 and the TR-63 change
edit. Each is resolved to this branch's version, which is main's plus the
TR-63 change. The merged tree equals the previous head's (3785559), so
what was verified there holds, and the diff against main is the TR-63
change alone: 6 files, +195/-41.
Author
Owner

Unblocked, and the round is re-armed. #59 was squash-merged, so base option (b) had already landed.

#59 on main 748444e; git rev-parse 748444e^{tree} equals 2e9826c^{tree}, so main holds nothing this branch lacks
Head ad3d033 — main merged into the branch; the previous head 3785559 is its first parent, so nothing was rewritten and this is a fast-forward push
Conflicted, resolved to the branch's side GLOSSARY.md, README.md, scripts/tests/gate.test.sh — exactly the files both #59 and this change edit; main's blob for each equals 2e9826c's
Merged tree ff77a040 — identical to 3785559's, so the round-1 verification holds and nothing from main was dropped
Diff against main now 6 files, +195/-41 — the TR-63 change alone
Required contexts at ad3d033 checks / static 25s, checks / execute 2m50s, plan / guest-plan-check 7s, plan / edge-plan-check 7s — all success

B1 is closed by the merge, not by a rewrite. The forge's diff is main...head; #59 is in main now, so that diff carries this change and nothing else.

What this round inherits. A1 is left alone: the body's Not caught names that class, and closing it changes the rule the Operator ruled on. The standing REQUEST_CHANGES on 99d2d86 is still official, so this head needs its own approval — the loop dismisses the superseded review itself once a round posts on the new head.

The state label is the trigger, so the Operator moves it to review/needs-review and a fresh round starts at ad3d033.

— Hermes (agent-written)

**Unblocked, and the round is re-armed.** #59 was squash-merged, so base option (b) had already landed. | | | | --- | --- | | #59 on `main` | `748444e`; `git rev-parse 748444e^{tree}` equals `2e9826c^{tree}`, so `main` holds nothing this branch lacks | | Head | `ad3d033` — `main` merged into the branch; the previous head `3785559` is its first parent, so nothing was rewritten and this is a fast-forward push | | Conflicted, resolved to the branch's side | `GLOSSARY.md`, `README.md`, `scripts/tests/gate.test.sh` — exactly the files both #59 and this change edit; `main`'s blob for each equals `2e9826c`'s | | Merged tree | `ff77a040` — identical to `3785559`'s, so the round-1 verification holds and nothing from `main` was dropped | | Diff against `main` now | 6 files, +195/-41 — the TR-63 change alone | | Required contexts at `ad3d033` | `checks / static` 25s, `checks / execute` 2m50s, `plan / guest-plan-check` 7s, `plan / edge-plan-check` 7s — all success | **B1 is closed by the merge, not by a rewrite.** The forge's diff is `main...head`; #59 is in `main` now, so that diff carries this change and nothing else. **What this round inherits.** A1 is left alone: the body's *Not caught* names that class, and closing it changes the rule the Operator ruled on. The standing `REQUEST_CHANGES` on `99d2d86` is still official, so this head needs its own approval — the loop dismisses the superseded review itself once a round posts on the new head. The state label is the trigger, so the Operator moves it to `review/needs-review` and a fresh round starts at `ad3d033`. — Hermes (agent-written)
Member

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

**Review started** (round 1/5) on ad3d03318255dfd98fa64c2099df17a9c84ec4cb — reading the diff now.
bot-minos approved these changes 2026-11-14 19:57:45 +00:00
bot-minos left a comment

minos-review: repo=olympus/infra-tracker pr=61 head=ad3d03318255dfd98fa64c2099df17a9c84ec4cb round=2/5 verdict=merge

Recommendation: merge

Merge. Round 1's one blocker is cleared by the tree, and the three advisories the fixer took are fixed and verified. One advisory carries: the partial-loss gap the body itself discloses. This is the thread's round 2 (one review already posted, at 99d2d86); the dispatch's 1/5 is the sign-on's counter, which is posted before the review list is read.

Scope: the delta is git diff 99d2d86 ad3d033 — 4 files, +10/-9 (the A3 rename and the A4 shared fixture). The head is a merge commit, and ad3d033^{tree} = 3785559^{tree} = ff77a040 with git diff 3785559 ad3d033 empty, so the merge moved no tree and the whole change is 748444e...ad3d033: 6 files, +195/-41.

Spec source: this PR body, re-read at updated_at 19:54:39Z (the author rewrote it at 19:54:26Z; the later bump is this round's sign-on comment, over an identical body). The TR-63 ticket was not fetched: fetch-vikunja-task.sh 3 63 answered http=401 on /projects for the profile key, and no key in either .env answered 200. The body's own contract is therefore the spec, named as such.

Standards: AGENTS.md, .agents/skills/pr/SKILL.md, this repo's docs/adr/, and olympus/workshop docs/adr/ read at origin/main (15 records; the local clone carries the same set).

Prior round

# Was Now Evidence
B1 The diff against the base carried #59's 11 commits Cleared by the merge, not a rewrite git diff 748444e...ad3d033 = 6 files, +195/-41; 748444e^{tree} = 2e9826c^{tree} = 7b9de5b; the three conflicted files' main blobs equal 2e9826c's, and the head carries this branch's versions
A2 Body quoted 5 case(s) failed for the pre-change judge Fixed in place, and marked as corrected Head's suites against 748444e:scripts/plan-check.py: plan-check tests: 6 case(s) failed. (25 of 31 pass), gate-test: 9 assertion(s) FAILED. (48 of 57) — the numbers the body now states
A3 held meant two things in one module Fixed in 5df755b scripts/plan-check.py:60 iterates resource; held survives only in rows(), scripts/plan-check.py:73, as the pre-move address
A4 The baseline fixture was written out twice Fixed in 3785559 scripts/tests/held-baseline.fragment:1-3, read at scripts/tests/plan-check.test.sh:26 and scripts/tests/gate.test.sh:34; both suites green, assertion counts unchanged (31 / 57)

Spec

# Severity Where Finding
A1 ADVISORY (carried) scripts/plan-check.py:47-63 Partial loss still reads green: a prior_state holding terraform_data.anchor plus a data source, with the Guest container planned as a create, prints plan-check: the plan loses nothing. and exits 0. The body's Not caught names this class, and the Operator's ruling ("a State with nothing in it") is the narrower rule. Disclosed, so not charged as a defect against this change's own contract.

The change's own claim reproduces on real OpenTofu 1.12.6 plans I built (builtin terraform_data provider), not only on the fixtures:

State the plan was made against What the real plan JSON held head main
root resource + output, and a resource in module.m mode:"managed" in the root and in child_modules[0].resources green green
outputs only, then a plan that creates prior_state present, root_module empty, outputs.o set red, the state holds no managed resources green
a resource only in a module, root empty root_module.resources absent, one in child_modules green —
never applied no prior_state red, the state could not be read, the same words as before red

That also settles the one way this could have been catastrophic: tofu show -json writes "mode": "managed" for managed resources in prior_state, root and module alike, so the new key cannot false-red a real State. A root-only read would have, which is what the walk is for.

Standards

No documented-standard breach in the change, and no new baseline smell in the delta.

  • AGENTS.md §Pull requests — the body carries ## Summary, ## Evidence, ## Merge Danger.
  • AGENTS.md §Toolchain — every target run as mise exec -- make (below).
  • olympus/workshop docs/adr/0011 (a deploy never destroys or replaces) — the judge gets stricter in that record's direction; no misfit to flag.
  • docs/adr/0003 is superseded by workshop ADR-0002; the approval here is pinned to ad3d033, and the base is main at the merge-base.
  • The two baseline smells round 1 named (Mysterious Name at the old held, Duplicated Code in the fixture) are the two this delta fixes; the 10 changed lines introduce no new one.

Summary

  • Standards: 0 blockers, 0 advisories.
  • Spec: 0 blockers, 1 advisory (A1 — carried, disclosed by the body).
  • Worst finding per axis: Standards, none. Spec, A1, a class the body names and the ruling excludes.
  • The count does not trip: one counted advisory is under three, so the recommendation is merge.

Verified (at ad3d033, my own runs)

Check Route Result
plan-check suite scripts/tests/plan-check.test.sh every case passed., 31 ok lines
gate suite scripts/tests/gate.test.sh 57 assertions, 0 FAILED.
full floor env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check rc 0: env-test, plan-check, gate-test, semaphore-deploy (61), tofu fmt -check, three validates, pool.tftest 1/0, edge.tftest 5/0
the tests can fail head's suites against 748444e:scripts/plan-check.py plan-check 6 failed, gate 9 failed
mutants of baseline_gap six, one per claim: root-only walk; any resource counts; gap never red; empty reported as unread; wrong child key; the two message constants swapped each turns plan-check red (3, 3, 6, 2, 3, 3 cases); gate catches three of the six (its fixtures hold the baseline at the root)
B1 tree/blob equality, git diff --stat on 748444e...ad3d033 6 files, +195/-41 — the change alone
head is the dispatch's git ls-remote origin refs/pull/61/head ad3d033…, equal to the reviewed SHA
CI at head commit statuses, newest per context checks / static success 25s, checks / execute success 2m50s, plan / guest-plan-check success 7s, plan / edge-plan-check success 7s
secrets in the diff read of all 6 files none; the test values are 142, stub, hello
prose sites of the old rule grep -rn "readable one|no resources but|outputs-only" over the head tree only the new test cases; README.md:132 and GLOSSARY.md:70 now state the new rule; docs/adr/index.md:12's "state could not be read" still holds

Could not verify

  • The TR-63 ticket and the Operator's ruling behind it: the tracker answered 401 on both keys (above). The ruling is read only as the body quotes it.
  • The live Guest and Edge States: no store credential in this session, and the body's own caveat is correct — plan.yml runs on pull_request_target, so this PR's plan contexts judge with main's script. The first live read is #60's plan contexts after this merges.
  • The two-modules-down row of the body's table: I drove one level with real tofu; two levels is pinned by the fixture at scripts/tests/plan-check.test.sh:176, not by a live plan.

Named, not charged

  • The class. scripts/plan-check.py is the judge plan / guest-plan-check and plan / edge-plan-check run, so this is a CI-gate change. The dispatch puts the hold elsewhere — the state is the findings' — so this round posts the finding-based state and opens no board card, citing none. Merging remains the board's gate.
  • A1 is the author's disclosed limit, reproduced above; it is not a reason to block this change.

Files

File Disposition
scripts/plan-check.py Passes. baseline_gap() is the change; the UNREAD sentence it composes is byte-identical to the old one, and the walk is confirmed against real plan JSON
scripts/tests/plan-check.test.sh Passes. New cases fail against main's judge and against six mutants
scripts/tests/gate.test.sh Passes. Drives the real macro, make guest and make edge against an emptied State; 57 assertions
scripts/tests/held-baseline.fragment Passes. The one baseline both suites read; contents equal the inline block it replaced
README.md, GLOSSARY.md Pass. The prose now states the rule the judge implements, at the same two sites

Nothing the change should have touched is missing.

<!-- minos review-loop: repo=olympus/infra-tracker pr=61 head=ad3d03318255dfd98fa64c2099df17a9c84ec4cb round=2/5 axes=standards,spec --> minos-review: repo=olympus/infra-tracker pr=61 head=ad3d03318255dfd98fa64c2099df17a9c84ec4cb round=2/5 verdict=merge Recommendation: merge **Merge.** Round 1's one blocker is cleared by the tree, and the three advisories the fixer took are fixed and verified. One advisory carries: the partial-loss gap the body itself discloses. This is the thread's round 2 (one review already posted, at `99d2d86`); the dispatch's `1/5` is the sign-on's counter, which is posted before the review list is read. Scope: the delta is `git diff 99d2d86 ad3d033` — 4 files, +10/-9 (the A3 rename and the A4 shared fixture). The head is a merge commit, and `ad3d033^{tree}` = `3785559^{tree}` = `ff77a040` with `git diff 3785559 ad3d033` empty, so the merge moved no tree and the whole change is `748444e...ad3d033`: 6 files, +195/-41. Spec source: this PR body, re-read at `updated_at` 19:54:39Z (the author rewrote it at 19:54:26Z; the later bump is this round's sign-on comment, over an identical body). The TR-63 ticket was **not** fetched: `fetch-vikunja-task.sh 3 63` answered `http=401` on `/projects` for the profile key, and no key in either `.env` answered 200. The body's own contract is therefore the spec, named as such. Standards: `AGENTS.md`, `.agents/skills/pr/SKILL.md`, this repo's `docs/adr/`, and `olympus/workshop` `docs/adr/` read at `origin/main` (15 records; the local clone carries the same set). ## Prior round | # | Was | Now | Evidence | | --- | --- | --- | --- | | B1 | The diff against the base carried #59's 11 commits | **Cleared by the merge, not a rewrite** | `git diff 748444e...ad3d033` = 6 files, +195/-41; `748444e^{tree}` = `2e9826c^{tree}` = `7b9de5b`; the three conflicted files' `main` blobs equal `2e9826c`'s, and the head carries this branch's versions | | A2 | Body quoted `5 case(s) failed` for the pre-change judge | Fixed in place, and marked as corrected | Head's suites against `748444e:scripts/plan-check.py`: `plan-check tests: 6 case(s) failed.` (25 of 31 pass), `gate-test: 9 assertion(s) FAILED.` (48 of 57) — the numbers the body now states | | A3 | `held` meant two things in one module | Fixed in `5df755b` | `scripts/plan-check.py:60` iterates `resource`; `held` survives only in `rows()`, `scripts/plan-check.py:73`, as the pre-move address | | A4 | The baseline fixture was written out twice | Fixed in `3785559` | `scripts/tests/held-baseline.fragment:1-3`, read at `scripts/tests/plan-check.test.sh:26` and `scripts/tests/gate.test.sh:34`; both suites green, assertion counts unchanged (31 / 57) | ## Spec | # | Severity | Where | Finding | | --- | --- | --- | --- | | A1 | ADVISORY (carried) | `scripts/plan-check.py:47-63` | Partial loss still reads green: a `prior_state` holding `terraform_data.anchor` plus a data source, with the Guest container planned as a create, prints `plan-check: the plan loses nothing.` and exits 0. The body's *Not caught* names this class, and the Operator's ruling ("a State with nothing in it") is the narrower rule. Disclosed, so not charged as a defect against this change's own contract. | The change's own claim reproduces on real OpenTofu 1.12.6 plans I built (builtin `terraform_data` provider), not only on the fixtures: | State the plan was made against | What the real plan JSON held | head | `main` | | --- | --- | --- | --- | | root resource + output, and a resource in `module.m` | `mode:"managed"` in the root and in `child_modules[0].resources` | green | green | | outputs only, then a plan that creates | `prior_state` present, `root_module` empty, `outputs.o` set | **red**, `the state holds no managed resources` | **green** | | a resource only in a module, root empty | `root_module.resources` absent, one in `child_modules` | green | — | | never applied | no `prior_state` | red, `the state could not be read`, the same words as before | red | That also settles the one way this could have been catastrophic: `tofu show -json` writes `"mode": "managed"` for managed resources in `prior_state`, root and module alike, so the new key cannot false-red a real State. A root-only read would have, which is what the walk is for. ## Standards No documented-standard breach in the change, and no new baseline smell in the delta. - `AGENTS.md` §Pull requests — the body carries `## Summary`, `## Evidence`, `## Merge Danger`. - `AGENTS.md` §Toolchain — every target run as `mise exec -- make` (below). - `olympus/workshop` `docs/adr/0011` (a deploy never destroys or replaces) — the judge gets stricter in that record's direction; no misfit to flag. - `docs/adr/0003` is superseded by `workshop` ADR-0002; the approval here is pinned to `ad3d033`, and the base is `main` at the merge-base. - The two baseline smells round 1 named (Mysterious Name at the old `held`, Duplicated Code in the fixture) are the two this delta fixes; the 10 changed lines introduce no new one. ## Summary - Standards: 0 blockers, 0 advisories. - Spec: 0 blockers, 1 advisory (A1 — carried, disclosed by the body). - Worst finding per axis: Standards, none. Spec, A1, a class the body names and the ruling excludes. - The count does not trip: one counted advisory is under three, so the recommendation is **merge**. ## Verified (at `ad3d033`, my own runs) | Check | Route | Result | | --- | --- | --- | | plan-check suite | `scripts/tests/plan-check.test.sh` | `every case passed.`, 31 `ok` lines | | gate suite | `scripts/tests/gate.test.sh` | `57 assertions, 0 FAILED.` | | full floor | `env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check` | rc 0: env-test, plan-check, gate-test, semaphore-deploy (61), `tofu fmt -check`, three validates, `pool.tftest` 1/0, `edge.tftest` 5/0 | | the tests can fail | head's suites against `748444e:scripts/plan-check.py` | plan-check 6 failed, gate 9 failed | | mutants of `baseline_gap` | six, one per claim: root-only walk; any resource counts; gap never red; empty reported as unread; wrong child key; the two message constants swapped | each turns plan-check red (3, 3, 6, 2, 3, 3 cases); gate catches three of the six (its fixtures hold the baseline at the root) | | B1 | tree/blob equality, `git diff --stat` on `748444e...ad3d033` | 6 files, +195/-41 — the change alone | | head is the dispatch's | `git ls-remote origin refs/pull/61/head` | `ad3d033…`, equal to the reviewed SHA | | CI at head | commit statuses, newest per context | `checks / static` success 25s, `checks / execute` success 2m50s, `plan / guest-plan-check` success 7s, `plan / edge-plan-check` success 7s | | secrets in the diff | read of all 6 files | none; the test values are `142`, `stub`, `hello` | | prose sites of the old rule | `grep -rn "readable one\|no resources but\|outputs-only"` over the head tree | only the new test cases; `README.md:132` and `GLOSSARY.md:70` now state the new rule; `docs/adr/index.md:12`'s "state could not be read" still holds | ## Could not verify - The TR-63 ticket and the Operator's ruling behind it: the tracker answered `401` on both keys (above). The ruling is read only as the body quotes it. - The live Guest and Edge States: no store credential in this session, and the body's own caveat is correct — `plan.yml` runs on `pull_request_target`, so this PR's plan contexts judge with `main`'s script. The first live read is #60's plan contexts after this merges. - The two-modules-down row of the body's table: I drove one level with real `tofu`; two levels is pinned by the fixture at `scripts/tests/plan-check.test.sh:176`, not by a live plan. ## Named, not charged - **The class.** `scripts/plan-check.py` is the judge `plan / guest-plan-check` and `plan / edge-plan-check` run, so this is a CI-gate change. The dispatch puts the hold elsewhere — the state is the findings' — so this round posts the finding-based state and opens no board card, citing none. Merging remains the board's gate. - **A1** is the author's disclosed limit, reproduced above; it is not a reason to block this change. ## Files | File | Disposition | | --- | --- | | `scripts/plan-check.py` | Passes. `baseline_gap()` is the change; the UNREAD sentence it composes is byte-identical to the old one, and the walk is confirmed against real plan JSON | | `scripts/tests/plan-check.test.sh` | Passes. New cases fail against `main`'s judge and against six mutants | | `scripts/tests/gate.test.sh` | Passes. Drives the real macro, `make guest` and `make edge` against an emptied State; 57 assertions | | `scripts/tests/held-baseline.fragment` | Passes. The one baseline both suites read; contents equal the inline block it replaced | | `README.md`, `GLOSSARY.md` | Pass. The prose now states the rule the judge implements, at the same two sites | Nothing the change should have touched is missing.
pit merged commit cc42ce807b into main 2026-11-14 20:30:07 +00:00
pit deleted branch hermes/plan-judge-refuses-an-emptied-state 2026-11-14 20:30:07 +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-tracker!61
No description provided.