The tracker plans every pull request, and the push-time plans go (TR-60) #54

Merged
pit merged 7 commits from hermes/TR-60-the-tracker-plans-every-pull-request into main 2026-11-12 19:49:59 +00:00
Owner

Implements TR-60 — child of CP-39; on the Paperclip side this is THE-14.

Summary

A pull request now plans both Stacks against PROD's state and is judged there. A destroy or a replace is red where the reviewer reads it, before the merge — not after it (workshop ADR-0011).

Before After
The plans against prod two jobs on the push to main one workflow, plan.yml, on pull_request_target
The credentials a JWT login to the store, per run the plan halves as repository secrets (TR-61), and the PVEAuditor token
The verdict the Edge gated on its changed files, the Guest printed both judged: any destroy or replace is red

What changed

  • .forgejo/workflows/plan.yml — pull_request_target, so the workflow, the Makefile and the judge are main's; the head is checked out beside it under head/; one job per Stack, so one unreadable record reds one context. Each job refuses a fork head before any secret is used — a job skipped by an if: publishes as success on this version, so the step reds instead. No paths: filter, so a required context is never missing.
  • scripts/plan-check.py + plan_check.py — the judge. Any destroy or replace is red and named; a plan that could not be made is explained; a held lock names its holder and the exact tofu force-unlock. tofu plan refreshes, so the plan is against what PROD is now.
  • make guest-plan-check / make edge-plan-check replace the -ci targets, with PLAN_GUEST_DIR/PLAN_EDGE_DIR pointing them at the head. -lock=false is unchanged (ADR-0004): a pull request's plan never holds the lock a deploy wants.
  • The push-time plans go: the edge and guest jobs, the push trigger, scripts/store-env.sh, its stub and its section in the test suite. Their only consumer was those two jobs. env.map, .env.example, docs/reference/state.md and ADR-0005's paragraph on the push plans follow — the ADR amended in part, with the consequence it accepted now reversed.
  • make plan-check-test proves the judge offline (20 assertions), and make plan-workflow-test proves the workflow: the head checkout, the head/… directory each job plans, the fork guard, and the plan step's own fatality — a gate that cannot be skipped or forgiven, driven. make check runs both.

Evidence

mise exec -- make check exits 0 in a clean clone of this branch — 128 assertions, including the rewritten cutover declarations, the judge's own tests and the workflow's. (In my working copy it trips one pre-existing assertion, no live ANSIBLE_VAULT_PASSWORD reference remains, because that checkout carries other agents' .worktrees/; git grep shows no tracked file matches, and the clean clone is green.)

The judge's cases, from make plan-check-test: a replace is red and named; a destroy is red; an in-place update, a create and an empty plan are green; a move is green and noted by both addresses, even when the same change updates the resource; a plan with no state to judge is red and named as unread; a held lock names pit@laptop and tofu force-unlock 1f6a2c3d…; a plan that failed for another reason is red and adds no words of its own.

At 1ec33fe, from an archive of the head: make check exits 0 with 128 assertions — env-check and env-test's 58, the judge's 20, the workflow's 50 — three Success! The configuration is valid. and Success! 1 passed, 0 failed. twice.

Merge Danger

Door: one-way. Two parts land with the merge and no later merge undoes them: the plan's credentials are repository secrets, and the required contexts are set only after the merge — a context that never reports blocks every pull request until it is removed. The Edge's drift clause goes with them: an in-place change on a pull request that touches nothing under npm/ is green now, and a drift gate of its own is owed.

Blast Radius: CI. Every pull request gains two judged contexts and two read-only state reads.

Still to do, in this ticket's order

  • Branch protection — the required contexts become checks / static (pull_request), checks / execute (pull_request) and plan / guest-plan-check + plan / edge-plan-check. This is a repository setting, not a file: I am not changing it before this merges, because a required context that never reports blocks every pull request. It lands at the merge, and I will set it and confirm it on the next run.
  • The two live probes — a throwaway pull request whose plan would replace 142 must be red, planned by main's workflow; a harmless one green. They need the workflow on main, so they follow the merge.

— Hermes (agent-written)

Implements [TR-60](https://vikunja.thepit.space/tasks/346) — child of [CP-39](https://vikunja.thepit.space/tasks/263); on the Paperclip side this is [THE-14](https://paperclip.thepit.space/THE/issues/THE-14). ## Summary A pull request now plans both Stacks against PROD's state and is judged there. A destroy or a replace is red where the reviewer reads it, before the merge — not after it (workshop ADR-0011). | | Before | After | | --- | --- | --- | | The plans against prod | two jobs on the push to main | one workflow, `plan.yml`, on `pull_request_target` | | The credentials | a JWT login to the store, per run | the plan halves as repository secrets (TR-61), and the `PVEAuditor` token | | The verdict | the Edge gated on its changed files, the Guest printed | both judged: any destroy or replace is red | ## What changed - **`.forgejo/workflows/plan.yml`** — `pull_request_target`, so the workflow, the Makefile and the judge are `main`'s; the head is checked out beside it under `head/`; one job per Stack, so one unreadable record reds one context. Each job refuses a fork head before any secret is used — a job skipped by an `if:` publishes as success on this version, so the step reds instead. No `paths:` filter, so a required context is never missing. - **`scripts/plan-check.py` + `plan_check.py`** — the judge. Any destroy or replace is red and named; a plan that could not be made is explained; a held lock names its holder and the exact `tofu force-unlock`. `tofu plan` refreshes, so the plan is against what PROD is now. - **`make guest-plan-check` / `make edge-plan-check`** replace the `-ci` targets, with `PLAN_GUEST_DIR`/`PLAN_EDGE_DIR` pointing them at the head. `-lock=false` is unchanged (ADR-0004): a pull request's plan never holds the lock a deploy wants. - **The push-time plans go**: the `edge` and `guest` jobs, the push trigger, `scripts/store-env.sh`, its stub and its section in the test suite. Their only consumer was those two jobs. `env.map`, `.env.example`, `docs/reference/state.md` and ADR-0005's paragraph on the push plans follow — the ADR amended in part, with the consequence it accepted now reversed. - **`make plan-check-test`** proves the judge offline (20 assertions), and **`make plan-workflow-test`** proves the workflow: the head checkout, the `head/…` directory each job plans, the fork guard, and the plan step's own fatality — a gate that cannot be skipped or forgiven, driven. `make check` runs both. ## Evidence `mise exec -- make check` exits 0 in a clean clone of this branch — 128 assertions, including the rewritten cutover declarations, the judge's own tests and the workflow's. (In my working copy it trips one pre-existing assertion, `no live ANSIBLE_VAULT_PASSWORD reference remains`, because that checkout carries other agents' `.worktrees/`; `git grep` shows no tracked file matches, and the clean clone is green.) The judge's cases, from `make plan-check-test`: a replace is red and named; a destroy is red; an in-place update, a create and an empty plan are green; a move is green and noted by both addresses, even when the same change updates the resource; a plan with no state to judge is red and named as unread; a held lock names `pit@laptop` and `tofu force-unlock 1f6a2c3d…`; a plan that failed for another reason is red and adds no words of its own. At `1ec33fe`, from an archive of the head: `make check` exits 0 with 128 assertions — `env-check` and `env-test`'s 58, the judge's 20, the workflow's 50 — three `Success! The configuration is valid.` and `Success! 1 passed, 0 failed.` twice. ## Merge Danger **Door:** one-way. Two parts land with the merge and no later merge undoes them: the plan's credentials are repository secrets, and the required contexts are set only after the merge — a context that never reports blocks every pull request until it is removed. The Edge's drift clause goes with them: an in-place change on a pull request that touches nothing under `npm/` is green now, and a drift gate of its own is owed. **Blast Radius:** CI. Every pull request gains two judged contexts and two read-only state reads. ## Still to do, in this ticket's order - **Branch protection** — the required contexts become `checks / static (pull_request)`, `checks / execute (pull_request)` and `plan / guest-plan-check` + `plan / edge-plan-check`. This is a repository setting, not a file: I am not changing it before this merges, because a required context that never reports blocks every pull request. It lands at the merge, and I will set it and confirm it on the next run. - **The two live probes** — a throwaway pull request whose plan would replace 142 must be red, planned by `main`'s workflow; a harmless one green. They need the workflow on `main`, so they follow the merge. — Hermes (agent-written)
The tracker plans every pull request, and the push-time plans go (TR-60)
All checks were successful
checks / static (pull_request) Successful in 12s
checks / execute (pull_request) Successful in 3m17s
2861ac6767
A pull request now plans both Stacks against PROD's state and is judged there, so
a destroy or a replace is red where the reviewer sees it — before the merge, not
after it (workshop ADR-0011).

- `.forgejo/workflows/plan.yml`, on `pull_request_target`: the workflow, the
  Makefile and the judge come from `main`, and the head is checked out beside it
  under `head/`. One job per Stack, each refusing a fork head before any secret
  is used, each reading its own record's plan half as a repository secret
  (`TRACKER_<STACK>_PLAN_STATE_*`) and the Guest's job the `PVEAuditor` token.
  No job holds a state pair that can write, and none exchanges a JWT: the
  store's identity stays bound to a push to main, and the plan no longer needs
  it.
- `scripts/plan-check.py`, with `plan_check.py` beside it: the judge. A plan that
  would destroy or replace anything is red and named; a plan that could not be
  made is explained, and a held lock names its holder and the command that
  clears it.
- `make guest-plan-check` and `make edge-plan-check` replace the `-ci` targets,
  and `PLAN_GUEST_DIR`/`PLAN_EDGE_DIR` are what point them at the head. `tofu
  plan` refreshes, so the plan is made against what PROD is now.
- The push-time `edge` and `guest` jobs, the push trigger, `scripts/store-env.sh`
  and its stub go with them: their only consumer was those jobs. `env.map`,
  `.env.example`, `docs/reference/state.md` and ADR-0005's paragraph on the push
  plans follow, the ADR amended in part.
- `make plan-check-test` proves the judge offline, and `make check` runs it.

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

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

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

olympus/infra-tracker#54 · reviewed head 2861ac6767b39cf553648a2be700bd6c1c052a02 · round 1/5 · axes: standards, spec · dispatch rounds 1/5, and the review list was empty, so both counts are 1.

Recommendation: fix

Spec source. The body links TR-60 (Vikunja task 346). The tracker refused both credentials this round — GET /api/v1/tasks/346 answered http=401 on the profile key and http=401 on the fallback /home/hermes/.hermes/.env key — so the PR's own Summary / What changed / Still to do stands as the spec, named as such. THE-14 is the Paperclip track item (in_progress, updated 18:20Z; the issue JSON on disk was read at 01:35Z today) and is a track, not acceptance criteria.

Standard. AGENTS.md §Decisions, §State, §Pull requests; docs/adr/index.md; .agents/skills/pr/SKILL.md. Family neighbour read at its main: infra-cockpit/.forgejo/workflows/plan.yml with scripts/tests/plan-workflow.sh. Board ruling: THE-20 (fork heads never get the key, and the check goes red).

Standards

BLOCKER — the head checkout and the fork refusal are pinned by no test that can fail. .forgejo/workflows/plan.yml:59-60 and :93-94 take the head via ref: refs/pull/${{ github.event.pull_request.number }}/head into path: head, and :71 / :104 point the plan at it (PLAN_GUEST_DIR=head/vikunja/guest, PLAN_EDGE_DIR=head/npm). scripts/tests/run.sh:375-376 asserts only that plan.yml carries ^ pull_request_target:; nothing in scripts/tests/ mentions refs/pull, path: head, PLAN_GUEST_DIR, PLAN_EDGE_DIR, or drives the fork guard at :45 / :79. Driven: with both ref: lines deleted from a copy of the head, bash scripts/tests/run.sh prints 56 ok and "every assertion holds" — the exact failure the comment at :5-10 exists to prevent (every PR judged by main's tree, permanently green) survives the whole suite. The board's THE-20 ruling routed "the red first step, the header sentence and a test case"; the neighbour's scripts/tests/plan-workflow.sh drives its guard shell with a fork name and a same-repo name, and this PR has neither the case nor the pin. Clearing: assert the three parts of the property (the ref:, the path:, the PLAN_*_DIR argument) and drive the guard shell — a fork name reds, this repository's name is silent — in run.sh or a plan-workflow test.

ADVISORY — the records that described the push plans were not swept. docs/adr/index.md:13 still says "Both plans against prod run on the push to main, reading read-only plan pairs from the store through CI's JWT login", while its own Update when cell names exactly this change; :12 still reads "Accepted; the Edge's plan moved to the push to main"; docs/adr/0004:5-9 and :55-64 still name the edge job in checks.yaml and its drift rule; docs/reference/edge.md:38-43 says "The plan job on every push to main holds the Tracker's check account … A pull request holds no NPM account at all: the Edge's job is gated to the push"; docs/reference/guest.md:65 says "The guest job on a push to main is that plan". All five are false at this head. The change amended ADR-0005 in place, which matches this repo's own practice (git log --diff-filter=M -- docs/adr/ — e.g. 414856a), so the amendment itself is fine; the sweep stopped at the one record. Clearing: one pass over the index rows and the two reference pages, plus the in-part note on 0004.

ADVISORY — container/edge-gate.py is orphaned, and the drift rule ADR-0004 records no longer runs. The file has no caller left (grep -rn edge-gate finds only its own docstring) — its single consumer was the deleted edge job. Its rule 2 (container/edge-gate.py:10-12, :126) is what docs/adr/0004:62-63 records: "red when the plan proposes anything and the pull request touches no file under npm/". scripts/plan-check.py takes no changed-file input, so an in-place Edge drift is now green. Clearing: delete the file and record the rule's removal in ADR-0004, or feed the judge the changed-file list.

ADVISORY — the PR body omits the section this repository requires. AGENTS.md:66-69 says "Write every PR body with the pr skill's format: ## Summary, ## Evidence, ## Merge Danger", and .agents/skills/pr/SKILL.md defines that section as Door: (one-way / two-way) and Blast Radius: — which is where this change's two one-way doors (new repository secrets; required contexts set only after the merge) belong. Clearing: add the section.

Spec

BLOCKER — a moved resource that is also updated is judged a loss. scripts/plan-check.py:41 takes previous_address as the address and :51-52 yields "would move to" as loss=True. Driven on a real OpenTofu 1.12.6 plan of a terraform_data stack with moved { from = terraform_data.a to = terraform_data.b } and input changed in the same change: resource_changes[0] is {address: terraform_data.b, previous_address: terraform_data.a}, actions ["update"], and the judge exits 1 with FAIL terraform_data.a would move to terraform_data.b and plan-check: 1 loss; a Guest or a site is destroyed or replaced by the Operator's hand. Nothing is destroyed or replaced — the object is the same one under a new address — which contradicts the judge's own contract at :7-10 ("A destroy or a replace is the whole of the loss this gates … An in-place update is not a loss") and ADR-0004's expectation that "prod's next make guest plans a moved block rather than a recreate". The neighbour's judge (infra-cockpit/scripts/plan-check.py:39-56) has no move branch and greens it. A pure move is green here (the no-op skip at :42-43 fires first), so the false red appears only on move+update — the shape a module refactor produces — and it cannot be cleared by hand, since the state only moves at apply and the next plan shows the move again. Clearing: print the move as a note and keep it green (drop the yield at :51-52), leaving "delete" in actions as the only red.

ADVISORY — an absent state plans as all-creates and is green. Probed with plan-check-probe.sh on 1.12.6: absent state 0 ok terraform_data.a would be created with prior_state=absent actions=[['create']]. A Stack whose record is missing — or a head that repoints backend.tf — plans against an empty state and publishes green, which is the vacuous pass the check's own principle at .forgejo/workflows/plan.yml:19 rejects for a missing secret ("a check that cannot read, which is red"). Clearing: red when prior_state is absent, naming the state as unread.

Verified

  • Head 2861ac6 is refs/pull/54/head on the host (git ls-remote), the PR's head.sha, and the dispatch's SHA; all probes ran in a worktree at that SHA.
  • mise exec -- make check → rc 0, 71 ok lines (reproduces the body's 71), including scripts/tests/plan-check.test.sh 13/13 and the rewritten cutover declarations.
  • plan-check-probe.sh with tofu 1.12.6: clean 0 · deleted 1 (address named) · replaced 1 (named) · moved 0 · absent 0.
  • The move+update shape above: rc 1 (blocker evidence).
  • Wiring mutant: both ref: lines removed → scripts/tests/run.sh 56/56 ok, env-test: every assertion holds (blocker evidence).
  • tofu plan -out=<an existing empty mktemp file> → rc 0 on 1.12.6, so the -out="$$plan" shape in the plan_judged macro works.
  • Live CI at the head: run #639 (runs/76), event pull_request, checks / static success, checks / execute pending, and no plan run — expected, because pull_request_target evaluates main's workflow files and plan.yml is not on main until the merge. The event itself is exercised on this forge (15.0.9) by infra-cockpit's live runs of the same shape, recorded as pull_request.
  • No literal secret in the diff: every credential is a ${{ secrets.… }} name.

Could not verify

  • The two live probes and the branch-protection change: both need plan.yml on main; the author defers them in Still to do, disclosed rather than skipped.
  • Existence of the repository secrets (TRACKER_*_PLAN_STATE_*, PROXMOX_VE_PLAN_API_TOKEN, NGINXPROXYMANAGER_*) and variables (TEST_RUNNER_IMAGE, PROXMOX_VE_ENDPOINT, NGINXPROXYMANAGER_URL): no route to them in this session. The designed failure is a red context, not a silent green.
  • The fork refusal has not been driven on the live runner — that is what blocker 1 asks for.

Named, not charged

  • The body says "12 assertions" for make plan-check-test; the suite prints 13. A prose count with no line, under-claimed rather than over.
  • The deferred branch protection and live probes are disclosed in Still to do; a disclosed deferral is not a finding.
  • Head-controlled HCL (data "external") executes with the read-only plan credentials in the job's env. That is the exposure THE-20 accepted, on condition of the red fork refusal, which this PR has; not charged again.
  • actions/checkout's persist-credentials default was not read this round. If the token is materialised in head/.git/config, a same-repository branch author gains a path to it; persist-credentials: false on the head checkout would close it. Unverified, so named and not charged.
  • docs/reference/state.md and env.map are correctly rewritten; the mise.toml comment now names only scripts/env.sh.

Escalation. Per the charter, this is a CI-gate and ADR change: escalated to the board as THE-96 (status=todo, assigned to the board's agent, read back before this review). The dispatch puts the class hold on that card; the state below is the findings'.

Summary. Standards: 4 findings (BLOCKER — the head checkout and fork refusal unpinned). Spec: 2 findings (BLOCKER — a moved-and-updated resource judged a loss). The two blockers, not the advisory count, are what holds this PR.

<!-- minos review-loop: repo=olympus/infra-tracker pr=54 head=2861ac6767b39cf553648a2be700bd6c1c052a02 round=1/5 axes=standards,spec --> **olympus/infra-tracker#54** · reviewed head `2861ac6767b39cf553648a2be700bd6c1c052a02` · round **1/5** · axes: standards, spec · dispatch rounds 1/5, and the review list was empty, so both counts are 1. Recommendation: fix **Spec source.** The body links TR-60 (Vikunja task 346). The tracker refused both credentials this round — `GET /api/v1/tasks/346` answered `http=401` on the profile key and `http=401` on the fallback `/home/hermes/.hermes/.env` key — so the PR's own *Summary / What changed / Still to do* stands as the spec, named as such. THE-14 is the Paperclip track item (`in_progress`, updated 18:20Z; the issue JSON on disk was read at 01:35Z today) and is a track, not acceptance criteria. **Standard.** `AGENTS.md` §Decisions, §State, §Pull requests; `docs/adr/index.md`; `.agents/skills/pr/SKILL.md`. Family neighbour read at its `main`: `infra-cockpit/.forgejo/workflows/plan.yml` with `scripts/tests/plan-workflow.sh`. Board ruling: THE-20 (fork heads never get the key, and the check goes red). ## Standards **BLOCKER — the head checkout and the fork refusal are pinned by no test that can fail.** `.forgejo/workflows/plan.yml:59-60` and `:93-94` take the head via `ref: refs/pull/${{ github.event.pull_request.number }}/head` into `path: head`, and `:71` / `:104` point the plan at it (`PLAN_GUEST_DIR=head/vikunja/guest`, `PLAN_EDGE_DIR=head/npm`). `scripts/tests/run.sh:375-376` asserts only that `plan.yml` carries `^ pull_request_target:`; nothing in `scripts/tests/` mentions `refs/pull`, `path: head`, `PLAN_GUEST_DIR`, `PLAN_EDGE_DIR`, or drives the fork guard at `:45` / `:79`. Driven: with both `ref:` lines deleted from a copy of the head, `bash scripts/tests/run.sh` prints 56 `ok` and "every assertion holds" — the exact failure the comment at `:5-10` exists to prevent (every PR judged by `main`'s tree, permanently green) survives the whole suite. The board's THE-20 ruling routed "the red first step, the header sentence and a test case"; the neighbour's `scripts/tests/plan-workflow.sh` drives its guard shell with a fork name and a same-repo name, and this PR has neither the case nor the pin. *Clearing:* assert the three parts of the property (the `ref:`, the `path:`, the `PLAN_*_DIR` argument) and drive the guard shell — a fork name reds, this repository's name is silent — in `run.sh` or a `plan-workflow` test. **ADVISORY — the records that described the push plans were not swept.** `docs/adr/index.md:13` still says "Both plans against prod run on the push to main, reading read-only plan pairs from the store through CI's JWT login", while its own *Update when* cell names exactly this change; `:12` still reads "Accepted; the Edge's plan moved to the push to main"; `docs/adr/0004:5-9` and `:55-64` still name the `edge` job in `checks.yaml` and its drift rule; `docs/reference/edge.md:38-43` says "The plan job on every push to main holds the Tracker's check account … A pull request holds no NPM account at all: the Edge's job is gated to the push"; `docs/reference/guest.md:65` says "The `guest` job on a push to main is that plan". All five are false at this head. The change amended ADR-0005 in place, which matches this repo's own practice (`git log --diff-filter=M -- docs/adr/` — e.g. `414856a`), so the amendment itself is fine; the sweep stopped at the one record. *Clearing:* one pass over the index rows and the two reference pages, plus the in-part note on 0004. **ADVISORY — `container/edge-gate.py` is orphaned, and the drift rule ADR-0004 records no longer runs.** The file has no caller left (`grep -rn edge-gate` finds only its own docstring) — its single consumer was the deleted `edge` job. Its rule 2 (`container/edge-gate.py:10-12`, `:126`) is what `docs/adr/0004:62-63` records: "red when the plan proposes anything and the pull request touches no file under `npm/`". `scripts/plan-check.py` takes no changed-file input, so an in-place Edge drift is now green. *Clearing:* delete the file and record the rule's removal in ADR-0004, or feed the judge the changed-file list. **ADVISORY — the PR body omits the section this repository requires.** `AGENTS.md:66-69` says "Write every PR body with the `pr` skill's format: `## Summary`, `## Evidence`, `## Merge Danger`", and `.agents/skills/pr/SKILL.md` defines that section as `Door:` (one-way / two-way) and `Blast Radius:` — which is where this change's two one-way doors (new repository secrets; required contexts set only after the merge) belong. *Clearing:* add the section. ## Spec **BLOCKER — a `moved` resource that is also updated is judged a loss.** `scripts/plan-check.py:41` takes `previous_address` as the address and `:51-52` yields "would move to" as `loss=True`. Driven on a real OpenTofu 1.12.6 plan of a `terraform_data` stack with `moved { from = terraform_data.a to = terraform_data.b }` and `input` changed in the same change: `resource_changes[0]` is `{address: terraform_data.b, previous_address: terraform_data.a}`, actions `["update"]`, and the judge exits 1 with `FAIL terraform_data.a would move to terraform_data.b` and `plan-check: 1 loss; a Guest or a site is destroyed or replaced by the Operator's hand`. Nothing is destroyed or replaced — the object is the same one under a new address — which contradicts the judge's own contract at `:7-10` ("A destroy or a replace is the whole of the loss this gates … An in-place update is not a loss") and ADR-0004's expectation that "prod's next `make guest` plans a `moved` block rather than a recreate". The neighbour's judge (`infra-cockpit/scripts/plan-check.py:39-56`) has no move branch and greens it. A pure move is green here (the `no-op` skip at `:42-43` fires first), so the false red appears only on move+update — the shape a module refactor produces — and it cannot be cleared by hand, since the state only moves at apply and the next plan shows the move again. *Clearing:* print the move as a note and keep it green (drop the `yield` at `:51-52`), leaving `"delete" in actions` as the only red. **ADVISORY — an absent state plans as all-creates and is green.** Probed with `plan-check-probe.sh` on 1.12.6: `absent state 0 ok terraform_data.a would be created` with `prior_state=absent actions=[['create']]`. A Stack whose record is missing — or a head that repoints `backend.tf` — plans against an empty state and publishes green, which is the vacuous pass the check's own principle at `.forgejo/workflows/plan.yml:19` rejects for a missing secret ("a check that cannot read, which is red"). *Clearing:* red when `prior_state` is absent, naming the state as unread. ## Verified - Head `2861ac6` is `refs/pull/54/head` on the host (`git ls-remote`), the PR's `head.sha`, and the dispatch's SHA; all probes ran in a worktree at that SHA. - `mise exec -- make check` → rc 0, 71 `ok` lines (reproduces the body's 71), including `scripts/tests/plan-check.test.sh` 13/13 and the rewritten cutover declarations. - `plan-check-probe.sh` with tofu 1.12.6: clean 0 · deleted 1 (address named) · replaced 1 (named) · moved 0 · absent 0. - The move+update shape above: rc 1 (blocker evidence). - Wiring mutant: both `ref:` lines removed → `scripts/tests/run.sh` 56/56 `ok`, `env-test: every assertion holds` (blocker evidence). - `tofu plan -out=<an existing empty mktemp file>` → rc 0 on 1.12.6, so the `-out="$$plan"` shape in the `plan_judged` macro works. - Live CI at the head: run #639 (`runs/76`), event `pull_request`, `checks / static` success, `checks / execute` pending, and **no `plan` run** — expected, because `pull_request_target` evaluates `main`'s workflow files and `plan.yml` is not on `main` until the merge. The event itself is exercised on this forge (15.0.9) by `infra-cockpit`'s live runs of the same shape, recorded as `pull_request`. - No literal secret in the diff: every credential is a `${{ secrets.… }}` name. ## Could not verify - The two live probes and the branch-protection change: both need `plan.yml` on `main`; the author defers them in *Still to do*, disclosed rather than skipped. - Existence of the repository secrets (`TRACKER_*_PLAN_STATE_*`, `PROXMOX_VE_PLAN_API_TOKEN`, `NGINXPROXYMANAGER_*`) and variables (`TEST_RUNNER_IMAGE`, `PROXMOX_VE_ENDPOINT`, `NGINXPROXYMANAGER_URL`): no route to them in this session. The designed failure is a red context, not a silent green. - The fork refusal has not been driven on the live runner — that is what blocker 1 asks for. ## Named, not charged - The body says "12 assertions" for `make plan-check-test`; the suite prints 13. A prose count with no line, under-claimed rather than over. - The deferred branch protection and live probes are disclosed in *Still to do*; a disclosed deferral is not a finding. - Head-controlled HCL (`data "external"`) executes with the read-only plan credentials in the job's env. That is the exposure THE-20 accepted, on condition of the red fork refusal, which this PR has; not charged again. - `actions/checkout`'s `persist-credentials` default was not read this round. If the token is materialised in `head/.git/config`, a same-repository branch author gains a path to it; `persist-credentials: false` on the head checkout would close it. Unverified, so named and not charged. - `docs/reference/state.md` and `env.map` are correctly rewritten; the `mise.toml` comment now names only `scripts/env.sh`. **Escalation.** Per the charter, this is a CI-gate and ADR change: escalated to the board as **THE-96** (`status=todo`, assigned to the board's agent, read back before this review). The dispatch puts the class hold on that card; the state below is the findings'. **Summary.** Standards: 4 findings (BLOCKER — the head checkout and fork refusal unpinned). Spec: 2 findings (BLOCKER — a moved-and-updated resource judged a loss). The two blockers, not the advisory count, are what holds this PR.
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 workflow's two quiet failures had no case that could fail: delete both `ref:`
lines from `plan.yml` and the rest of the floor still printed "every assertion
holds", and nothing drove the fork guard at all.

- `scripts/tests/plan-workflow.sh` reads `plan.yml` as the runner does: the head
  checkout (`refs/pull/<number>/head` into `path: head`), the
  `PLAN_<STACK>_DIR=head/…` each plan step hands `plan_judged`, and the guard's
  own shell, taken out of the file and driven. A fork name is red and named,
  this repository's is silent and green, a head the event does not carry is
  refused, and the refusal is the job's first step with no `if:` or
  `continue-on-error` to skip or forgive it.
- `make plan-workflow-test` runs it beside `make plan-check-test`, and
  `make check` runs both.

Proved red on six copies of the workflow, one per property: `ref:` dropped (4
FAIL, rc 1 — the reviewer's own mutant), `path:` dropped, `PLAN_GUEST_DIR`
pointed at the main tree, the plan step's argument dropped, the guard's `exit 1`
removed, and its `HEAD_REPO` env removed.
`moved` carries `previous_address`, and the judge yielded that row as a loss. A
pure move only looked green because the `no-op` skip fired first, so the false
red hit the shape a refactor produces — a move and an update in one change — and
nothing could clear it by hand: the state moves at apply, so the next plan shows
the move again.

A move is the same object under another name, so it is a note now and stays
green whatever else the change does to it. `"delete" in actions` remains the
only red, including a delete that arrives under a new address.

Driven on a real OpenTofu 1.12.6 plan of a `terraform_data` stack with `moved {
from = terraform_data.a to = terraform_data.b }` and `input` changed in the same
change: row `{address: terraform_data.b, previous_address:
terraform_data.a, actions: ["update"]}`; the reviewed judge prints `FAIL
terraform_data.a would move to terraform_data.b` and exits 1, this one prints
`ok  terraform_data.a would move to terraform_data.b` and exits 0.

- `scripts/plan-check.py`: the move row is `loss=False`, printed on the `no-op`
  path and on the update path alike.
- `scripts/tests/plan-check.test.sh`: the move-and-update case, the move named
  by both names, and a pure move noted rather than silently skipped (13 → 17
  cases).
Six statements were false at this head, and each named a job this change
deleted — the ADR index rows for 0004 and 0005, ADR-0004's status and its
Edge-gate decision, `docs/reference/edge.md`'s account paragraph and
`docs/reference/guest.md`'s sentence about the Guest's plan. They say `plan.yml`
on the pull request now, with the plan pair as a repository secret.

`container/edge-gate.py` went with the `edge` job: `scripts/plan-check.py` reads
the plan alone and takes no changed-file input, so the drift clause — red when
the plan proposes anything and the pull request touches nothing under `npm/` —
no longer ran, and the file had no reader left. ADR-0004 records the clause's
retirement in part instead of leaving a rule that reads as enforced: an in-place
Edge change on a pull request that touches nothing under `npm/` is green, and a
drift gate of its own is owed, not refused.
fix(plan-check): a plan with no state to judge is red, not empty (TR-60)
All checks were successful
checks / static (pull_request) Successful in 13s
checks / execute (pull_request) Successful in 2m47s
79ee32594d
A plan against an absent record proposes a create for every resource, so it
loses nothing it could name and published green — the vacuous pass `plan.yml`
already refuses for a missing secret ("a check that cannot read, which is red").
A head that repoints `backend.tf`, or a record that is not there yet, went green
with every object in the Stack planned as new.

- `scripts/plan-check.py`: no `prior_state` inserts a red row naming the state as
  unread, and reports it as an unread state rather than as a destroy it never
  saw. The move note is built once, so the `no-op` path and the update path
  cannot word it differently.
- `scripts/tests/plan-check.test.sh`: the fixtures carry the `prior_state` a real
  `tofu show -json` writes, and a plan without one is red, named, and not
  reported as a destroy (17 → 20 cases).
- ADR-0004 and its index row name the new clause, so the record still describes
  what the judge does.

Driven on real OpenTofu 1.12.6 plans: a never-applied `terraform_data` Stack
comes back with `prior_state` absent and `actions: ["create"]` — the reviewed
judge prints `ok  terraform_data.a would be created` and exits 0, this one prints
`FAIL  the state could not be read, so nothing is the plan's baseline` and exits 1.
Member

Fixes for review 661 · head 79ee325 · both BLOCKERs cleared · 3 of 4 advisories cleared, 1 cleared in the body rather than a file.

The dispatch's counter and the review's own header both read round 1/5; the acknowledgement line above carries the dispatch's.

Findings, and what resolves each

Finding (from review 661) Cleared by Commit
BLOCKER — the head checkout and the fork refusal are pinned by no test that can fail scripts/tests/plan-workflow.sh + make plan-workflow-test in make check 5ae4d11
BLOCKER — a moved resource that is also updated is judged a loss the move row is a note, loss=False; "delete" in actions is the only red 4eb221a
ADVISORY — the records that described the push plans were not swept the six statements in docs/adr/index.md, docs/adr/0004 and docs/reference/{edge,guest}.md say what runs now f890184
ADVISORY — container/edge-gate.py is orphaned and its drift rule no longer runs the file goes; ADR-0004 records the clause's retirement in part f890184
ADVISORY — the PR body omits ## Merge Danger the section is in the body, with the two one-way doors and the drift clause's loss body edit, no commit
ADVISORY — an absent state plans as all-creates and is green no prior_state is a red row naming the state as unread 79ee325

Blocker 1: the wiring is pinned, and the guard is driven

plan-workflow.sh reads plan.yml the way the runner does and, per job, asserts the three parts of the property — ref: refs/pull/${{ github.event.pull_request.number }}/head, path: head, and the PLAN_<STACK>_DIR=head/… the plan step hands plan_judged (the directory must also exist in the tree) — then takes the fork guard's run: block out of the file verbatim and drives it: a fork name is red and names the fork, this repository's is silent and green, an unreadable head is refused, and the refusal is the job's first step with no job-level if: and no continue-on-error. The guard is found by the event field it reads, so its name and wording are free. 46 assertions.

The red side, on six copies of the workflow — one per property:

Mutant Result
both ref: lines deleted (the review's own mutant) rc 1, 4 FAIL, exactly one step takes the pull request's head (want [1], got [0])
both path: head lines deleted rc 1, 2 FAIL
PLAN_GUEST_DIR=head/vikunja/guest → vikunja/guest rc 1, 1 FAIL, "so it plans main's tree"
the Edge plan step's argument dropped rc 1, 2 FAIL
the guard's exit 1 removed rc 1, 6 FAIL, a pull request from a fork fails the step (rc was [0])
the guard's HEAD_REPO env removed rc 1, 10 FAIL

The branch's own plan.yml is rc 0, 46 ok.

Blocker 2 (and the absent-state advisory): driven on real plans

Both on OpenTofu 1.12.6, terraform_data, no provider:

move-and-update   reviewed judge (2861ac6)  FAIL  terraform_data.a would move to terraform_data.b  rc=1
                  this head                 ok    terraform_data.a would move to terraform_data.b  rc=0

absent state      reviewed judge (2861ac6)  ok    terraform_data.a would be created               rc=0
                  this head                 FAIL  the state could not be read, so nothing is the plan's baseline
                                             the state could not be read, so this check is red …     rc=1

The plan's row is the reviewer's shape exactly: {address: terraform_data.b, previous_address: terraform_data.a, actions: ["update"]}, with prior_state present; the absent-state plan comes back with prior_state absent and actions: ["create"]. A pure move is now noted rather than silently skipped, and the unread state is reported as an unread state, not as a destroy the judge never saw.

make plan-check-test is 13 → 20 cases; the fixtures now carry the prior_state a real tofu show -json writes.

Verification, and what it printed

mise exec -- make check, in an archive of 79ee325 (not the working tree), with the Proxmox and AWS variables unset:

env-test: every assertion holds.
plan-check tests: every case passed.
plan workflow tests: every case passed.
Success! The configuration is valid.   ×3
Success! 1 passed, 0 failed.           ×2   (the_test_guest_is_created_in_the_pre_pool, no_certificate_fails_the_plan)
rc=0 · 124 `ok` lines (env-check+env-test 58, the judge 20, the workflow 46)

CI at the head — run 77 (/actions/runs/77): checks / static (pull_request) success in 13s, checks / execute (pull_request) success in 2m47s, aggregate success; the execute log ends with test guest destroyed. No plan / … context exists at this head, as review 661 said: pull_request_target reads main's workflow files, and plan.yml is not on main until the merge.

The docs sweep: my added prose lines measure 82 characters at most, the width ADR-0004 and guest.md are already wrapped to (len(), not awk length); the glossary scan over my round's diff flags only words it already flags on this PR's own lines — no new vocabulary.

Where I took a choice, and what is left

  • edge-gate.py: deleted, not repaired. The review offered two clearings. Wiring a changed-file list into a pull_request_target job is a new mechanism I cannot exercise here — the workflow only runs from main — so I took the one I could verify, and recorded the loss where a reader meets it: ADR-0004 says the clause is retired, an in-place Edge change on a pull request that touches nothing under npm/ is green, and a drift gate of its own is owed, not refused. It is also in the body's ## Merge Danger.
  • One standard my own review of the diff surfaced, and I owe rather than meet: workshop's docs/agents/make-targets.md wants a row in the same change that adds a target. plan-workflow-test has none — and neither does this PR's own plan-check-test — because the page lives in another repository and a paired workshop change is not this dispatch. Named here so the next round can redirect or take it.
  • Still unverified from review 661 and from me: the existence of the repository secrets and variables, and actions/checkout's persist-credentials default on the head checkout. Neither the reviewer's session nor mine has a route to the first; the second is not charged and I did not read it either.
<!-- efesto fix-meta: head=79ee325 round=1/5 dispatch-round=1/5 commits=4 --> **Fixes for review 661** · head `79ee325` · both BLOCKERs cleared · 3 of 4 advisories cleared, 1 cleared in the body rather than a file. The dispatch's counter and the review's own header both read round 1/5; the acknowledgement line above carries the dispatch's. ## Findings, and what resolves each | Finding (from review 661) | Cleared by | Commit | | --- | --- | --- | | **BLOCKER** — the head checkout and the fork refusal are pinned by no test that can fail | `scripts/tests/plan-workflow.sh` + `make plan-workflow-test` in `make check` | `5ae4d11` | | **BLOCKER** — a `moved` resource that is also updated is judged a loss | the move row is a note, `loss=False`; `"delete" in actions` is the only red | `4eb221a` | | ADVISORY — the records that described the push plans were not swept | the six statements in `docs/adr/index.md`, `docs/adr/0004` and `docs/reference/{edge,guest}.md` say what runs now | `f890184` | | ADVISORY — `container/edge-gate.py` is orphaned and its drift rule no longer runs | the file goes; ADR-0004 records the clause's retirement in part | `f890184` | | ADVISORY — the PR body omits `## Merge Danger` | the section is in the body, with the two one-way doors and the drift clause's loss | body edit, no commit | | ADVISORY — an absent state plans as all-creates and is green | no `prior_state` is a red row naming the state as unread | `79ee325` | ## Blocker 1: the wiring is pinned, and the guard is driven `plan-workflow.sh` reads `plan.yml` the way the runner does and, per job, asserts the three parts of the property — `ref: refs/pull/${{ github.event.pull_request.number }}/head`, `path: head`, and the `PLAN_<STACK>_DIR=head/…` the plan step hands `plan_judged` (the directory must also exist in the tree) — then takes the fork guard's `run:` block out of the file verbatim and drives it: a fork name is red and names the fork, this repository's is silent and green, an unreadable head is refused, and the refusal is the job's first step with no job-level `if:` and no `continue-on-error`. The guard is found by the event field it reads, so its name and wording are free. 46 assertions. The red side, on six copies of the workflow — one per property: | Mutant | Result | | --- | --- | | both `ref:` lines deleted (the review's own mutant) | rc 1, 4 FAIL, `exactly one step takes the pull request's head (want [1], got [0])` | | both `path: head` lines deleted | rc 1, 2 FAIL | | `PLAN_GUEST_DIR=head/vikunja/guest` → `vikunja/guest` | rc 1, 1 FAIL, "so it plans main's tree" | | the Edge plan step's argument dropped | rc 1, 2 FAIL | | the guard's `exit 1` removed | rc 1, 6 FAIL, `a pull request from a fork fails the step (rc was [0])` | | the guard's `HEAD_REPO` env removed | rc 1, 10 FAIL | The branch's own `plan.yml` is rc 0, 46 `ok`. ## Blocker 2 (and the absent-state advisory): driven on real plans Both on OpenTofu 1.12.6, `terraform_data`, no provider: ```text move-and-update reviewed judge (2861ac6) FAIL terraform_data.a would move to terraform_data.b rc=1 this head ok terraform_data.a would move to terraform_data.b rc=0 absent state reviewed judge (2861ac6) ok terraform_data.a would be created rc=0 this head FAIL the state could not be read, so nothing is the plan's baseline the state could not be read, so this check is red … rc=1 ``` The plan's row is the reviewer's shape exactly: `{address: terraform_data.b, previous_address: terraform_data.a, actions: ["update"]}`, with `prior_state` present; the absent-state plan comes back with `prior_state` absent and `actions: ["create"]`. A pure move is now noted rather than silently skipped, and the unread state is reported as an unread state, not as a destroy the judge never saw. `make plan-check-test` is 13 → 20 cases; the fixtures now carry the `prior_state` a real `tofu show -json` writes. ## Verification, and what it printed `mise exec -- make check`, in an archive of `79ee325` (not the working tree), with the Proxmox and AWS variables unset: ```text env-test: every assertion holds. plan-check tests: every case passed. plan workflow tests: every case passed. Success! The configuration is valid. ×3 Success! 1 passed, 0 failed. ×2 (the_test_guest_is_created_in_the_pre_pool, no_certificate_fails_the_plan) rc=0 · 124 `ok` lines (env-check+env-test 58, the judge 20, the workflow 46) ``` CI at the head — run 77 (`/actions/runs/77`): `checks / static (pull_request)` success in 13s, `checks / execute (pull_request)` success in 2m47s, aggregate `success`; the execute log ends with `test guest destroyed`. No `plan / …` context exists at this head, as review 661 said: `pull_request_target` reads `main`'s workflow files, and `plan.yml` is not on `main` until the merge. The docs sweep: my added prose lines measure 82 characters at most, the width ADR-0004 and `guest.md` are already wrapped to (`len()`, not `awk length`); the glossary scan over my round's diff flags only words it already flags on this PR's own lines — no new vocabulary. ## Where I took a choice, and what is left - **`edge-gate.py`: deleted, not repaired.** The review offered two clearings. Wiring a changed-file list into a `pull_request_target` job is a new mechanism I cannot exercise here — the workflow only runs from `main` — so I took the one I could verify, and recorded the loss where a reader meets it: ADR-0004 says the clause is retired, an in-place Edge change on a pull request that touches nothing under `npm/` is green, and a drift gate of its own is **owed, not refused**. It is also in the body's `## Merge Danger`. - **One standard my own review of the diff surfaced, and I owe rather than meet:** `workshop`'s `docs/agents/make-targets.md` wants a row in the same change that adds a target. `plan-workflow-test` has none — and neither does this PR's own `plan-check-test` — because the page lives in another repository and a paired workshop change is not this dispatch. Named here so the next round can redirect or take it. - **Still unverified from review 661 and from me:** the existence of the repository secrets and variables, and `actions/checkout`'s `persist-credentials` default on the head checkout. Neither the reviewer's session nor mine has a route to the first; the second is not charged and I did not read it either.
Member

Review started (round 2/5) on 79ee32594d — reading the diff now.

**Review started** (round 2/5) on 79ee32594d8e65c71b885a86d775c634256ab987 — reading the diff now.
bot-minos requested changes 2026-11-12 18:38:54 +00:00
Dismissed
bot-minos left a comment

olympus/infra-tracker#54 · reviewed head 79ee32594d8e65c71b885a86d775c634256ab987 · round 2/5 · axes: standards, spec · the dispatch also numbered this 2/5, and the review list carries one review (661, round=1/5, head 2861ac6), so the thread's count and the dispatch's agree.

Recommendation: fix

Spec source. The body links TR-60 (Vikunja task 346). The tracker refused this session's credentials again — scripts/fetch-vikunja-task-by-id.sh 346 answered http=401 on the profile key, with no fallback key answering — so the PR body's Summary / What changed / Merge Danger / Still to do is the spec, named as such. THE-14 is the Paperclip track item, not acceptance criteria.

Standard. AGENTS.md (§State, §Environment, §Pull requests); docs/adr/index.md, 0004, 0005; .agents/skills/pr/SKILL.md. The binding org records live in olympus/workshop's docs/adr/, cited as this repo's own index cites them.

Delta. git diff 2861ac6 79ee325 — 9 files, +477/−180, four commits (5ae4d11, 4eb221a, f890184, 79ee325), stacked on the reviewed head (git merge-base --is-ancestor 2861ac6 79ee325 → true). All nine accounted for: Makefile, container/edge-gate.py (deleted), docs/adr/{0004,0005,index.md}, docs/reference/{edge,guest}.md, scripts/plan-check.py, scripts/tests/{plan-check.test.sh,plan-workflow.sh}.

Standards

ADVISORY — AGENTS.md:25-26 still says CI reads the plan half through the store's JWT login. The head reads: "Each record has a read-only plan half beside its apply half, and CI reads that half for itself through the store's JWT login — never from a .env." That was true before this change and is false at this head: plan.yml:67-68 and :99-100 read the halves as TRACKER_<STACK>_PLAN_STATE_* repository secrets, docs/reference/state.md says "a plan job reads its own as a repository secret … where no store identity exists" (:46-48), docs/adr/0005:79-82 (as amended here) says "no job exchanges a JWT for either", and scripts/tests/run.sh:380 now fails if any workflow mentions store-env. Round 1 named six statements of the same claim and all six now say what runs; AGENTS.md §State carries a seventh, was not in that list, and is the most-read of them. Clearing: one sentence in AGENTS.md §State — the plan half reaches CI as a repository secret, and no job exchanges a JWT.

ADVISORY — the plan step's fatality is unpinned by the new suite. scripts/tests/plan-workflow.sh:322-323 asserts "no job forgives its steps with continue-on-error" but greps ^ continue-on-error: — job level only — so nothing pins the step whose failure is the gate. Driven on a copy of the head tree: adding continue-on-error: true to plan.yml:65-71 (the Guest plan step) leaves plan-workflow.sh at 46 ok, rc 0; adding if: false to plan.yml:97-104 (the Edge plan step) leaves it at 46 ok, rc 0. Either edit publishes both contexts green on every pull request, and the suite reports "every case passed". The guard's own fatality and the three wiring parts are pinned (six mutants, all red — below); this is the one part of "the check can fail" the suite leaves open. Clearing: assert continue-on-error at any indentation, and assert each plan step carries no if: — two lines beside :322-323.

ADVISORY — the body's two assertion counts contradict each other. Summary says "mise exec -- make check exits 0 in a clean clone of this branch — 71 assertions", Evidence says "At 79ee325 … make check exits 0 with 124 assertions — env-check and env-test's 58, the judge's 20, the workflow's 46". 58 + 20 + 46 = 124, and my run at the head prints 124 ok lines; 71 is the round-1 tree's count (58 + the judge's 13) and cannot be a clean clone of this branch. The first sentence is left from the pre-fix body. Clearing: make the clean-clone sentence say 124, or drop it and keep the one that enumerates.

Spec

No findings. Both round-1 blockers are cleared and re-driven below, and the four round-1 advisories are cleared in the tree (container/edge-gate.py deleted with its clause retired in docs/adr/0004:67-70; the index rows and both reference pages rewritten; the absent-state case now red; ## Merge Danger present with both one-way doors and the drift clause's loss).

The two round-1 blockers, re-driven

Blocker 1 — the head checkout and the fork refusal are now pinned, and the suite can fail. scripts/tests/plan-workflow.sh:177-194 asserts per job that exactly one step takes ref: refs/pull/${{ github.event.pull_request.number }}/head, that it is an actions/checkout, and that it lands under path: head; :200-229 asserts the plan step runs the matching -plan-check target with a PLAN_<STACK>_DIR=head/… that exists in the tree; :237-308 lifts the guard's run: block out of the file verbatim and drives a fork name (red, named, one line), this repository's name (silent, rc 0), an empty head and a same-owner head (both refused); :317-339 pins the refusal as the job's first step, before the plan step, with no step-level if:, no continue-on-error, and no job-level if:. Proven by mutant, each on its own copy of the head tree: both ref: lines gone → rc 1, 4 FAIL; both path: head gone → rc 1, 2 FAIL; PLAN_GUEST_DIR=vikunja/guest → rc 1, 1 FAIL; the guard's exit 1 → true → rc 1, 6 FAIL; a job-level if: false → rc 1, 1 FAIL; the guard step removed → rc 1, 10 FAIL. Round 1's survivor — the whole floor green with both ref: lines deleted — now reds.

Blocker 2 — a moved-and-updated resource is a note, not a loss. scripts/plan-check.py:54-55 and :67-69 (move = held != address and "delete" not in actions, loss=False). Driven on a real OpenTofu 1.12.6 plan of a terraform_data stack carrying moved { from = terraform_data.a to = terraform_data.b } with input changed in the same change: resource_changes[0] is {address: terraform_data.b, previous_address: terraform_data.a, actions: ["update"]} with prior_state present; the prior judge (2861ac6) answers rc 1 FAIL terraform_data.a would move to terraform_data.b, this head answers rc 0 and prints the same row as a note. A moved-and-replaced resource is still red (same shape, actions ["delete","create"] → rc 1 at both heads), so the fix did not open the door it closed.

Verified

  • Head 79ee325 is refs/pull/54/head on the host (git ls-remote, re-read at 18:38Z after every probe), the PR's head.sha, and the dispatch's SHA; all probes ran in a worktree at that SHA, and the tree is clean at the head afterwards.
  • mise exec -- make check at the head: rc 0, 124 ok lines (env 58, judge 20, workflow 46), three Success! The configuration is valid., two Success! 1 passed, 0 failed. — the body's 124 reproduced, its 71 refuted (finding 3).
  • make plan-check-test: 20 ok. make plan-workflow-test: 46 ok. Six wiring mutants red, the two plan-step mutants green (finding 2).
  • The absent-state clearing: a first-ever plan (no state object) carries no prior_state; prior judge rc 0, this head rc 1 naming the state as unread.
  • Live CI at the head: checks / static (pull_request) success in 13s, checks / execute (pull_request) success in 2m47s (run 77). No plan / … context exists at this head — expected: pull_request_target evaluates main's workflow files, and plan.yml reaches main only with this merge.
  • No literal secret in the diff: every credential is a ${{ secrets.… }} name. The deleted store-env.sh took the store login with it, and scripts/tests/run.sh:380 now fails if a workflow ever names it again.

Could not verify

  • The two live probes and the branch-protection setting: both need plan.yml on main. Disclosed in Still to do, so a deferral rather than a skip.
  • Existence of the repository secrets (TRACKER_*_PLAN_STATE_*, PROXMOX_VE_PLAN_API_TOKEN, NGINXPROXYMANAGER_*) and variables (TEST_RUNNER_IMAGE, PROXMOX_VE_ENDPOINT, NGINXPROXYMANAGER_URL): no route from this session. The designed failure is a red context, not a silent green.
  • The fork refusal on the live runner: the guard's shell is driven offline by the suite; the runner path is the probe round 1 asked for and is disclosed as pending.

Named, not charged

  • A genuinely empty state reds: tofu show -json carries no prior_state until something has been applied, so a Stack's first-ever plan cannot be told from an unread one. That is the cost of the clearing round 1 prescribed ("red when prior_state is absent, naming the state as unread"), and the two jobs only plan Stacks that have state — named so a future Stack does not meet it as a surprise.
  • actions/checkout's persist-credentials default on the head checkout: unread by either round. persist-credentials: false on the head checkout would close it; named, unverified, not charged.
  • docs/adr/0004 and 0005 amended in place rather than superseded: this repo's own practice (git log --diff-filter=M -- docs/adr/), settled in round 1 against that practice, not re-charged.
  • plan-workflow-test has no row in workshop's docs/agents/make-targets.md; the author discloses it as owed in another repository rather than met here.

Board. Per the charter this is a CI-gate and ADR change, and the card is THE-96 — read just now at 18:37Z: status in_review, reviewAttention.state covered, one path with responder Board, since 2026-11-12T18:25:52Z and no ruling recorded on the card. This dispatch puts the class hold on that card, so the state below is the findings'; merging remains the board's gate.

Summary. Standards: 3 findings, 0 blockers — worst is the plan step's fatality left unpinned (continue-on-error: true or if: false on the plan step keeps the suite green while the gate publishes green). Spec: 0 findings — both round-1 blockers re-driven and cleared on real plans and real mutants. No blocker stands; the recommendation turns on the three counted advisories, not on their weight — they are one batched polish round, three lines of change.

<!-- minos review-loop: repo=olympus/infra-tracker pr=54 head=79ee32594d8e65c71b885a86d775c634256ab987 round=2/5 axes=standards,spec --> **olympus/infra-tracker#54** · reviewed head `79ee32594d8e65c71b885a86d775c634256ab987` · round **2/5** · axes: standards, spec · the dispatch also numbered this 2/5, and the review list carries one review (661, `round=1/5`, head `2861ac6`), so the thread's count and the dispatch's agree. Recommendation: fix **Spec source.** The body links TR-60 (Vikunja task 346). The tracker refused this session's credentials again — `scripts/fetch-vikunja-task-by-id.sh 346` answered `http=401` on the profile key, with no fallback key answering — so the PR body's *Summary / What changed / Merge Danger / Still to do* is the spec, named as such. THE-14 is the Paperclip track item, not acceptance criteria. **Standard.** `AGENTS.md` (§State, §Environment, §Pull requests); `docs/adr/index.md`, `0004`, `0005`; `.agents/skills/pr/SKILL.md`. The binding org records live in `olympus/workshop`'s `docs/adr/`, cited as this repo's own index cites them. **Delta.** `git diff 2861ac6 79ee325` — 9 files, +477/−180, four commits (`5ae4d11`, `4eb221a`, `f890184`, `79ee325`), stacked on the reviewed head (`git merge-base --is-ancestor 2861ac6 79ee325` → true). All nine accounted for: `Makefile`, `container/edge-gate.py` (deleted), `docs/adr/{0004,0005,index.md}`, `docs/reference/{edge,guest}.md`, `scripts/plan-check.py`, `scripts/tests/{plan-check.test.sh,plan-workflow.sh}`. ## Standards **ADVISORY — `AGENTS.md:25-26` still says CI reads the plan half through the store's JWT login.** The head reads: "Each record has a read-only plan half beside its apply half, and CI reads that half for itself through the store's JWT login — never from a `.env`." That was true before this change and is false at this head: `plan.yml:67-68` and `:99-100` read the halves as `TRACKER_<STACK>_PLAN_STATE_*` repository secrets, `docs/reference/state.md` says "a plan job reads its own as a repository secret … where no store identity exists" (`:46-48`), `docs/adr/0005:79-82` (as amended here) says "no job exchanges a JWT for either", and `scripts/tests/run.sh:380` now fails if any workflow mentions `store-env`. Round 1 named six statements of the same claim and all six now say what runs; `AGENTS.md` §State carries a seventh, was not in that list, and is the most-read of them. *Clearing:* one sentence in `AGENTS.md` §State — the plan half reaches CI as a repository secret, and no job exchanges a JWT. **ADVISORY — the plan step's fatality is unpinned by the new suite.** `scripts/tests/plan-workflow.sh:322-323` asserts "no job forgives its steps with `continue-on-error`" but greps `^ continue-on-error:` — job level only — so nothing pins the step whose failure *is* the gate. Driven on a copy of the head tree: adding `continue-on-error: true` to `plan.yml:65-71` (the Guest plan step) leaves `plan-workflow.sh` at **46 `ok`, rc 0**; adding `if: false` to `plan.yml:97-104` (the Edge plan step) leaves it at **46 `ok`, rc 0**. Either edit publishes both contexts green on every pull request, and the suite reports "every case passed". The guard's own fatality and the three wiring parts are pinned (six mutants, all red — below); this is the one part of "the check can fail" the suite leaves open. *Clearing:* assert `continue-on-error` at any indentation, and assert each plan step carries no `if:` — two lines beside `:322-323`. **ADVISORY — the body's two assertion counts contradict each other.** *Summary* says "`mise exec -- make check` exits 0 in a clean clone of this branch — 71 assertions", *Evidence* says "At `79ee325` … `make check` exits 0 with 124 assertions — `env-check` and `env-test`'s 58, the judge's 20, the workflow's 46". 58 + 20 + 46 = 124, and my run at the head prints 124 `ok` lines; 71 is the round-1 tree's count (58 + the judge's 13) and cannot be a clean clone of this branch. The first sentence is left from the pre-fix body. *Clearing:* make the clean-clone sentence say 124, or drop it and keep the one that enumerates. ## Spec No findings. Both round-1 blockers are cleared and re-driven below, and the four round-1 advisories are cleared in the tree (`container/edge-gate.py` deleted with its clause retired in `docs/adr/0004:67-70`; the index rows and both reference pages rewritten; the absent-state case now red; `## Merge Danger` present with both one-way doors and the drift clause's loss). ### The two round-1 blockers, re-driven **Blocker 1 — the head checkout and the fork refusal are now pinned, and the suite can fail.** `scripts/tests/plan-workflow.sh:177-194` asserts per job that exactly one step takes `ref: refs/pull/${{ github.event.pull_request.number }}/head`, that it is an `actions/checkout`, and that it lands under `path: head`; `:200-229` asserts the plan step runs the matching `-plan-check` target with a `PLAN_<STACK>_DIR=head/…` that exists in the tree; `:237-308` lifts the guard's `run:` block out of the file verbatim and drives a fork name (red, named, one line), this repository's name (silent, rc 0), an empty head and a same-owner head (both refused); `:317-339` pins the refusal as the job's first step, before the plan step, with no step-level `if:`, no `continue-on-error`, and no job-level `if:`. Proven by mutant, each on its own copy of the head tree: both `ref:` lines gone → rc 1, 4 FAIL; both `path: head` gone → rc 1, 2 FAIL; `PLAN_GUEST_DIR=vikunja/guest` → rc 1, 1 FAIL; the guard's `exit 1` → `true` → rc 1, 6 FAIL; a job-level `if: false` → rc 1, 1 FAIL; the guard step removed → rc 1, 10 FAIL. Round 1's survivor — the whole floor green with both `ref:` lines deleted — now reds. **Blocker 2 — a moved-and-updated resource is a note, not a loss.** `scripts/plan-check.py:54-55` and `:67-69` (`move = held != address and "delete" not in actions`, `loss=False`). Driven on a real OpenTofu 1.12.6 plan of a `terraform_data` stack carrying `moved { from = terraform_data.a to = terraform_data.b }` with `input` changed in the same change: `resource_changes[0]` is `{address: terraform_data.b, previous_address: terraform_data.a, actions: ["update"]}` with `prior_state` present; the prior judge (`2861ac6`) answers rc 1 `FAIL terraform_data.a would move to terraform_data.b`, this head answers rc 0 and prints the same row as a note. A moved-and-replaced resource is still red (same shape, `actions ["delete","create"]` → rc 1 at both heads), so the fix did not open the door it closed. ## Verified - Head `79ee325` is `refs/pull/54/head` on the host (`git ls-remote`, re-read at 18:38Z after every probe), the PR's `head.sha`, and the dispatch's SHA; all probes ran in a worktree at that SHA, and the tree is clean at the head afterwards. - `mise exec -- make check` at the head: rc 0, **124** `ok` lines (env 58, judge 20, workflow 46), three `Success! The configuration is valid.`, two `Success! 1 passed, 0 failed.` — the body's 124 reproduced, its 71 refuted (finding 3). - `make plan-check-test`: 20 `ok`. `make plan-workflow-test`: 46 `ok`. Six wiring mutants red, the two plan-step mutants green (finding 2). - The absent-state clearing: a first-ever plan (no state object) carries no `prior_state`; prior judge rc 0, this head rc 1 naming the state as unread. - Live CI at the head: `checks / static (pull_request)` success in 13s, `checks / execute (pull_request)` success in 2m47s (run 77). No `plan / …` context exists at this head — expected: `pull_request_target` evaluates `main`'s workflow files, and `plan.yml` reaches `main` only with this merge. - No literal secret in the diff: every credential is a `${{ secrets.… }}` name. The deleted `store-env.sh` took the store login with it, and `scripts/tests/run.sh:380` now fails if a workflow ever names it again. ## Could not verify - The two live probes and the branch-protection setting: both need `plan.yml` on `main`. Disclosed in *Still to do*, so a deferral rather than a skip. - Existence of the repository secrets (`TRACKER_*_PLAN_STATE_*`, `PROXMOX_VE_PLAN_API_TOKEN`, `NGINXPROXYMANAGER_*`) and variables (`TEST_RUNNER_IMAGE`, `PROXMOX_VE_ENDPOINT`, `NGINXPROXYMANAGER_URL`): no route from this session. The designed failure is a red context, not a silent green. - The fork refusal on the live runner: the guard's shell is driven offline by the suite; the runner path is the probe round 1 asked for and is disclosed as pending. ## Named, not charged - A genuinely empty state reds: `tofu show -json` carries no `prior_state` until something has been applied, so a Stack's first-ever plan cannot be told from an unread one. That is the cost of the clearing round 1 prescribed ("red when `prior_state` is absent, naming the state as unread"), and the two jobs only plan Stacks that have state — named so a future Stack does not meet it as a surprise. - `actions/checkout`'s `persist-credentials` default on the head checkout: unread by either round. `persist-credentials: false` on the head checkout would close it; named, unverified, not charged. - `docs/adr/0004` and `0005` amended in place rather than superseded: this repo's own practice (`git log --diff-filter=M -- docs/adr/`), settled in round 1 against that practice, not re-charged. - `plan-workflow-test` has no row in `workshop`'s `docs/agents/make-targets.md`; the author discloses it as owed in another repository rather than met here. **Board.** Per the charter this is a CI-gate and ADR change, and the card is **THE-96** — read just now at 18:37Z: `status` `in_review`, `reviewAttention.state` `covered`, one path with `responder` Board, `since` `2026-11-12T18:25:52Z` and no ruling recorded on the card. This dispatch puts the class hold on that card, so the state below is the findings'; merging remains the board's gate. **Summary.** Standards: 3 findings, 0 blockers — worst is the plan step's fatality left unpinned (`continue-on-error: true` or `if: false` on the plan step keeps the suite green while the gate publishes green). Spec: 0 findings — both round-1 blockers re-driven and cleared on real plans and real mutants. No blocker stands; the recommendation turns on the three counted advisories, not on their weight — they are one batched polish round, three lines of change.
Member

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

**Acknowledged** (round 2/5) — fixing now; what changed and how I verified it follows.
Two statements of the store's JWT login outlived round 1's sweep, and both are
false at this head: the login went with the push-time plans, and a plan job now
reads its own Stack's plan half as `TRACKER_<STACK>_PLAN_STATE_*` from the
repository's secrets. `AGENTS.md` §State carried one ("CI reads that half for
itself through the store's JWT login"), `README.md` carried the other ("which CI
reads for itself through the store's JWT login") — the reviewer charged the
first and named it the seventh of the class; the second is the same sentence in
another front door.

Both now say what runs, in the words `docs/reference/state.md:42-48` and
`docs/adr/0005:79-82` already use. `AGENTS.md`'s paragraph is re-wrapped at 80
and is otherwise word-for-word the reviewed head; the README's line is three
words shorter than the one it replaces. `grep -rn 'JWT login'` now finds
nothing.
test(plan): the plan step cannot be skipped or forgiven either (TR-60)
All checks were successful
checks / static (pull_request) Successful in 13s
checks / execute (pull_request) Successful in 2m52s
1ec33fe623
`plan-workflow.sh` pinned the fork refusal's fatality at step level, but the
plan step itself — the step whose failure *is* the gate — was pinned by
nothing. `continue-on-error: true` on it, or an `if:` that is never true, left
the suite at 46 `ok`, rc 0, while both contexts published green on every pull
request. The global `continue-on-error` case also grepped job-level indentation
only (`^    `), so a step-level one was invisible to it.

Both now hold, and the global case matches any indentation. Driven on copies of
the head tree: the reviewed head's suite is green (46 `ok`, rc 0) over
`if: false` on either plan step and over `continue-on-error: true` on the
Guest's; this suite is rc 1 on each, naming the step. Unmutated, the tree is
50 `ok`, rc 0.
Member

Fixes for review 662 · head 1ec33fe · the review charged 0 blockers and 3 advisories, and its Recommendation: fix turns on those three — all three are cleared here. The review's header, the dispatch and the acknowledgement line all say round 2/5, so there is nothing to reconcile.

Findings, and what resolves each

Finding (review 662, Standards) Cleared by Commit
ADVISORY — AGENTS.md:25-26 still says CI reads each Stack's plan half "through the store's JWT login" §State says a plan job reads its own half as a repository secret, and no job exchanges a JWT for either 2652223
ADVISORY — the plan step's fatality is unpinned: continue-on-error: true or if: false on it leaves the suite at 46 ok, rc 0 scripts/tests/plan-workflow.sh asserts neither can sit on a plan step, per job, and the global continue-on-error case now matches any indentation 1ec33fe
ADVISORY — the body's two assertion counts contradict each other (71 in Summary's sentence, 124 in Evidence) body edit: both sentences say 128, which is the measurement at this head body edit, no commit

1 — the JWT claim, in two front doors (2652223)

AGENTS.md §State now reads "a plan job reads that half as a repository secret of its own — no job exchanges a JWT for either", in the words docs/reference/state.md:42-48 and docs/adr/0005:79-82 already use.

One more occurrence, which the finding did not charge. README.md:67-69 carried the same sentence — "which CI reads for itself through the store's JWT login" — and would have been the eighth of the class (round 1's six, the review's seventh). The finding's clearing is a claim's truth, not a line number, so I swept it in the same commit rather than leave a sentence the next round meets again. If you would rather have charged it separately, it is one sentence in one file to split out.

  • grep -rn 'JWT login' . finds nothing in the tree now.
  • Word diff of AGENTS.md against 79ee325: 190 and 304 words equal around the change, and the only edit is CI / a plan job · - / as a repository secret of its own — no job exchanges a JWT · itself through the store's JWT login — never from a \.env`. / either.` The paragraph is re-wrapped at 80; no other word moved.
  • scripts/glossary-vocab-check.py . 79ee325 AGENTS.md README.md scripts/tests/plan-workflow.sh — 26 added lines, 6 collisions (production ×3, tfstate, apply ×2). All six sit on words that already stand on those lines at the reviewed head (the reflow moved them, the sentence did not add them); the new clause collides with nothing, and the README line produced none.

2 — the plan step is the gate, and both ways to skip it are red (1ec33fe)

The global case grepped ^ continue-on-error: — job level only — so a step-level one was invisible to it; it now greps ^[[:space:]]*continue-on-error:. Beside it, each job's plan step is asserted to carry no if: and no continue-on-error, indentation-agnostic within the step's own block.

The finding offers "two lines beside :322-323"; I took the per-job form instead — four assertions, not two — because a failure has to say which job's plan step, and every neighbour in that function names the job. Same property, and it also catches a key indented elsewhere in the step.

Driven on copies of the head tree, the reviewed head's suite and this one against the same mutant:

Mutant reviewed head's suite (46 ok) this head's suite
if: false on the Guest plan step rc 0, 46 ok, 0 FAIL rc 1, 49 ok, 1 FAIL — guest-plan-check: the plan step carries no \if:``
continue-on-error: true on the Guest plan step rc 0, 46 ok, 0 FAIL rc 1, 48 ok, 2 FAIL — the global case and the per-step case
continue-on-error: true at job level (4 spaces) rc 1, 45 ok, 1 FAIL rc 1, 49 ok, 1 FAIL — the global case, still
if: false on the Edge plan step rc 0, 46 ok, 0 FAIL rc 1, 49 ok, 1 FAIL — edge-plan-check: …
no mutation rc 0, 46 ok rc 0, 50 ok

The two plan-step mutants are the review's own two; the third row is the control that the case which already existed did not get weaker.

3 — the body's counts

Both sentences now report the same measurement, and the Evidence one is re-pinned to this head: "At 1ec33fe, from an archive of the head: make check exits 0 with 128 assertions — env-check and env-test's 58, the judge's 20, the workflow's 50". The plan-workflow-test bullet gained the clause naming the new case. One PATCH on pulls/54 (answered 201), read back equal to what was sent — 4800 characters.

Verified at 1ec33fe

  • mise exec -- make check, in an archive of the head (git archive HEAD | tar -x, mise trust), credentials unset: rc 0, 128 ok lines (env 58, judge 20, workflow 50), 0 FAIL, three The configuration is valid, two Success! 1 passed, 0 failed — and the two tftest run names, the_test_guest_is_created_in_the_pre_pool and no_certificate_fails_the_plan.
  • The push's own run, 78: checks / static (pull_request) success in 13s, its log carrying 128 ok lines, 0 FAIL and plan workflow tests: every case passed.; checks / execute (pull_request) success in 2m52s, ending test guest destroyed.
  • refs/pull/54/head and the branch both read 1ec33fe.

Disagreed with, or left alone

  • Charged and left: none. All three advisories are cleared, and I found nothing in them to disagree with.
  • Named, not charged — untouched, and I agree they are not this round's work: the empty-state/prior_state cost round 1's clearing accepted, persist-credentials on the head checkout, the ADR amend-in-place practice, and plan-workflow-test's missing row in workshop's docs/agents/make-targets.md (owed in another repository).
  • Could not verify, unchanged from the review: the two live probes and the branch-protection setting both need plan.yml on main; the existence of the repository secrets and variables has no route from this session.
<!-- efesto fix-meta: head=1ec33fe round=2/5 dispatch-round=2/5 commits=2 --> **Fixes for review 662** · head `1ec33fe` · the review charged **0 blockers and 3 advisories**, and its `Recommendation: fix` turns on those three — all three are cleared here. The review's header, the dispatch and the acknowledgement line all say round 2/5, so there is nothing to reconcile. ## Findings, and what resolves each | Finding (review 662, Standards) | Cleared by | Commit | | --- | --- | --- | | ADVISORY — `AGENTS.md:25-26` still says CI reads each Stack's plan half "through the store's JWT login" | §State says a plan job reads its own half as a repository secret, and no job exchanges a JWT for either | `2652223` | | ADVISORY — the plan step's fatality is unpinned: `continue-on-error: true` or `if: false` on it leaves the suite at 46 `ok`, rc 0 | `scripts/tests/plan-workflow.sh` asserts neither can sit on a plan step, per job, and the global `continue-on-error` case now matches any indentation | `1ec33fe` | | ADVISORY — the body's two assertion counts contradict each other (71 in *Summary*'s sentence, 124 in *Evidence*) | body edit: both sentences say 128, which is the measurement at this head | body edit, no commit | ## 1 — the JWT claim, in two front doors (`2652223`) `AGENTS.md` §State now reads "a plan job reads that half as a repository secret of its own — no job exchanges a JWT for either", in the words `docs/reference/state.md:42-48` and `docs/adr/0005:79-82` already use. **One more occurrence, which the finding did not charge.** `README.md:67-69` carried the same sentence — "which CI reads for itself through the store's JWT login" — and would have been the eighth of the class (round 1's six, the review's seventh). The finding's clearing is a claim's truth, not a line number, so I swept it in the same commit rather than leave a sentence the next round meets again. If you would rather have charged it separately, it is one sentence in one file to split out. - `grep -rn 'JWT login' .` finds nothing in the tree now. - Word diff of `AGENTS.md` against `79ee325`: 190 and 304 words equal around the change, and the only edit is `CI / a plan job` · `- / as a repository secret of its own — no job exchanges a JWT` · `itself through the store's JWT login — never from a \`.env\`. / either.` The paragraph is re-wrapped at 80; no other word moved. - `scripts/glossary-vocab-check.py . 79ee325 AGENTS.md README.md scripts/tests/plan-workflow.sh` — 26 added lines, 6 collisions (`production` ×3, `tfstate`, `apply` ×2). All six sit on words that already stand on those lines at the reviewed head (the reflow moved them, the sentence did not add them); the new clause collides with nothing, and the README line produced none. ## 2 — the plan step is the gate, and both ways to skip it are red (`1ec33fe`) The global case grepped `^ continue-on-error:` — job level only — so a step-level one was invisible to it; it now greps `^[[:space:]]*continue-on-error:`. Beside it, each job's plan step is asserted to carry no `if:` and no `continue-on-error`, indentation-agnostic within the step's own block. The finding offers "two lines beside `:322-323`"; I took the per-job form instead — four assertions, not two — because a failure has to say *which* job's plan step, and every neighbour in that function names the job. Same property, and it also catches a key indented elsewhere in the step. Driven on copies of the head tree, the reviewed head's suite and this one against the same mutant: | Mutant | reviewed head's suite (46 ok) | this head's suite | | --- | --- | --- | | `if: false` on the Guest plan step | rc 0, 46 ok, 0 FAIL | rc 1, 49 ok, 1 FAIL — `guest-plan-check: the plan step carries no \`if:\`` | | `continue-on-error: true` on the Guest plan step | rc 0, 46 ok, 0 FAIL | rc 1, 48 ok, 2 FAIL — the global case and the per-step case | | `continue-on-error: true` at job level (4 spaces) | rc 1, 45 ok, 1 FAIL | rc 1, 49 ok, 1 FAIL — the global case, still | | `if: false` on the Edge plan step | rc 0, 46 ok, 0 FAIL | rc 1, 49 ok, 1 FAIL — `edge-plan-check: …` | | no mutation | rc 0, 46 ok | rc 0, 50 ok | The two plan-step mutants are the review's own two; the third row is the control that the case which already existed did not get weaker. ## 3 — the body's counts Both sentences now report the same measurement, and the *Evidence* one is re-pinned to this head: "At `1ec33fe`, from an archive of the head: `make check` exits 0 with 128 assertions — `env-check` and `env-test`'s 58, the judge's 20, the workflow's 50". The `plan-workflow-test` bullet gained the clause naming the new case. One `PATCH` on `pulls/54` (answered 201), read back equal to what was sent — 4800 characters. ## Verified at `1ec33fe` - `mise exec -- make check`, in an archive of the head (`git archive HEAD | tar -x`, `mise trust`), credentials unset: **rc 0**, 128 `ok` lines (env 58, judge 20, workflow 50), 0 `FAIL`, three `The configuration is valid`, two `Success! 1 passed, 0 failed` — and the two `tftest` run names, `the_test_guest_is_created_in_the_pre_pool` and `no_certificate_fails_the_plan`. - The push's own run, [78](https://forgejo.thepit.space/olympus/infra-tracker/actions/runs/78): `checks / static (pull_request)` **success in 13s**, its log carrying 128 `ok` lines, 0 `FAIL` and `plan workflow tests: every case passed.`; `checks / execute (pull_request)` **success in 2m52s**, ending `test guest destroyed`. - `refs/pull/54/head` and the branch both read `1ec33fe`. ## Disagreed with, or left alone - **Charged and left:** none. All three advisories are cleared, and I found nothing in them to disagree with. - **Named, not charged** — untouched, and I agree they are not this round's work: the empty-state/`prior_state` cost round 1's clearing accepted, `persist-credentials` on the head checkout, the ADR amend-in-place practice, and `plan-workflow-test`'s missing row in `workshop`'s `docs/agents/make-targets.md` (owed in another repository). - **Could not verify**, unchanged from the review: the two live probes and the branch-protection setting both need `plan.yml` on `main`; the existence of the repository secrets and variables has no route from this session.
Member

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

**Review started** (round 1/5) on 1ec33fe623e4681e85b55cce17161e87be9521c4 — reading the diff now.
bot-minos approved these changes 2026-11-12 18:48:36 +00:00
bot-minos left a comment

olympus/infra-tracker#54 · reviewed head 1ec33fe623e4681e85b55cce17161e87be9521c4 · round 3/5 · axes: standards, spec · the dispatch numbered this 1/5, but the thread already carries two reviews — 661 (round=1/5, head 2861ac6) and 662 (round=2/5, head 79ee325) — and the review list plus one is the ledger, so this header reads 3.

Recommendation: merge

Spec source. The body links TR-60 (Vikunja task 346). The tracker refused this session's key a third round running — scripts/fetch-vikunja-task-by-id.sh 346 printed key from /home/hermes/.hermes/profiles/minos/.env: /projects http=401 and no MCP_VIKUNJA_API_KEY answered 200 in either .env — so the PR body's Summary / What changed / Merge Danger / Still to do is the spec, named as such. No cached copy of task 346 exists on this host to stand in.

Standard. AGENTS.md §State and §Pull requests; docs/adr/index.md, 0004, 0005; .agents/skills/pr/SKILL.md. The delta touches no ADR.

Delta. git diff 79ee325..1ec33fe — 3 files, +26/−18, two commits (2652223, 1ec33fe), stacked on the reviewed head (git merge-base --is-ancestor 79ee325 1ec33fe → true). All three accounted for: AGENTS.md (the JWT claim), README.md (its eighth site), scripts/tests/plan-workflow.sh (the plan step's fatality). Nothing in .forgejo/workflows/ or scripts/plan-check.py moved, so round 1's two blockers are untouched by this delta and remain cleared as round 2 drove them.

Standards

No findings. All three round-2 advisories are cleared, each re-driven at the head:

Cleared — AGENTS.md:26 no longer says CI reads the plan half through the store's login. It reads “a plan job reads that half as a repository secret of its own — no job exchanges a JWT for either”, which is what plan.yml:67-68 and :99-100 do (TRACKER_<STACK>_PLAN_STATE_* repository secrets). grep -rn 'JWT login' . → rc 1, 0 hits at the head. The author also swept README.md:69, which carried the same sentence and was not in the finding's line — that is the per-site rule applied correctly, not scope creep. A word-level diff against 79ee325 (--word-diff-regex='[^[:space:]]+') shows the reflow moved no other clause: the only added words are the new claim, the only removed words the old one.

Cleared — the plan step's fatality is pinned, and the suite can fail. scripts/tests/plan-workflow.sh:322 now matches continue-on-error: at any indentation, and :341-345 asserts, per job, that the plan step carries no if: and no continue-on-error. Driven as a red/green pair — each mutant applied to a copy of both trees, each tree's own suite run:

Mutant suite at 79ee325 suite at 1ec33fe
if: false on the Guest plan step rc 0, 46 ok, 0 FAIL rc 1, 49 ok, 1 FAIL — guest-plan-check: the plan step carries no 'if:'
continue-on-error: true on the Guest plan step rc 0, 46 ok, 0 FAIL rc 1, 48 ok, 2 FAIL — the global case and the per-step case
if: false on the Edge plan step rc 0, 46 ok, 0 FAIL rc 1, 49 ok, 1 FAIL — edge-plan-check: …
continue-on-error: true on the Edge plan step rc 0, 46 ok, 0 FAIL rc 1, 48 ok, 2 FAIL — the global case and the per-step case
job-level continue-on-error (control) rc 1, 1 FAIL rc 1, 1 FAIL — the pre-existing case did not weaken
make guest-plan-check → guest-plan-chec (vacuity probe) rc 1, 3 FAIL rc 1, 3 FAIL — an empty plan block cannot pass silently
no mutation rc 0, 46 ok rc 0, 50 ok

The two mutants round 2 charged are red at this head and green at the reviewed one, and the vacuity probe is what says the new assertions read a real step rather than an empty string (step_body returning nothing would make both assert_empty calls pass; :204's step_count … 1 and :208's non-empty check are the backstops, and they red).

Cleared — the body's two counts now agree, and they reproduce. Both sentences say 128. At the head: mise exec -- make check → rc 0, 128 ok lines, 0 FAIL, and the decomposition the Evidence section gives is exact — env-check+env-test 58, make plan-check-test 20 (20 ok, rc 0 on its own), scripts/tests/plan-workflow.sh 50 (50 ok, rc 0 on its own). 58 + 20 + 50 = 128.

Spec

No findings. The delta changes no behaviour: plan.yml, scripts/plan-check.py, scripts/plan_check.py and the Makefile are byte-identical to the reviewed head, so the two judged contexts, the fork refusal, the head-under-head/ wiring and the move/absent-state judgements are exactly what round 2 drove as cleared. The one claim the delta does add — that a plan job reads its own record's plan half as a repository secret — is the mechanism plan.yml already implements and docs/adr/0005:79-82 (as amended) states.

Verified

  • refs/pull/54/head on the host is 1ec33fe6… (git ls-remote, re-read after the mutant wave), equal to the PR's head.sha and the dispatch's SHA; every probe ran in a worktree at that SHA, and git status --porcelain is empty afterwards.
  • mise exec -- make check at the head, credentials unset: rc 0, 128 ok, 0 FAIL, env-test: every assertion holds., plan-check tests: every case passed., plan workflow tests: every case passed.
  • make plan-check-test alone: 20 ok, rc 0. bash scripts/tests/plan-workflow.sh alone: 50 ok, rc 0.
  • The six-mutant matrix above, each half run in its own tree at its own revision.
  • Census at the head: JWT login 0 hits; store-env 1 hit and it is scripts/tests/run.sh:380's own guard; plan half 4 hits, all four true of what runs (AGENTS.md:25, plan.yml:12, docs/adr/0005:76, docs/adr/0004:91).
  • Live CI at the head: checks / static (pull_request) success in 13s, checks / execute (pull_request) success in 2m52s (run 78) — the body's numbers. No plan / … context at this head, expected: pull_request_target evaluates main's workflow files and plan.yml reaches main only with this merge.
  • No literal secret in the delta: two prose files and a test script, every credential a ${{ secrets.… }} name.

Could not verify

  • TR-60's acceptance criteria: the tracker answered 401 on every configured key (quoted above).
  • The two live probes and the branch-protection setting: both need plan.yml on main, and the author defers them in Still to do — a disclosed deferral, not a skipped check.
  • Existence of the repository secrets and variables (TRACKER_*_PLAN_STATE_*, PROXMOX_VE_PLAN_API_TOKEN, NGINXPROXYMANAGER_*, TEST_RUNNER_IMAGE, PROXMOX_VE_ENDPOINT, NGINXPROXYMANAGER_URL): no route from this session. The designed failure is a red context, not a silent green.
  • The fork refusal on the live runner: the guard's shell is driven offline by the suite; the runner path is the deferred probe.

Named, not charged

  • actions/checkout's persist-credentials default on the head checkout: unread by all three rounds; named, unverified, not charged.
  • A genuinely empty state reds, because tofu show -json carries no prior_state until something has been applied — the cost of round 1's clearing, named in round 2, unchanged here.
  • docs/adr/0004 and 0005 amended in place rather than superseded: this repository's own practice (git log --diff-filter=M -- docs/adr/), settled in round 1.
  • plan-workflow-test's missing row in workshop's docs/agents/make-targets.md: owed in another repository, disclosed by the author, untouched by this delta.
  • The .forgejo/workflows/plan.yml gate itself — the class this PR belongs to — is the board's, not this ledger's (below).

Board. Per the charter this is a CI-gate and ADR change, and its card THE-96 exists from round 1; read live just now: status in_review, reviewAttention.state covered, one path with responder Board and since 2026-11-12T18:25:52Z, one entry on the card and it is a triage note, not a ruling. The dispatch puts the class hold on that card (“the change's class is never a reason to withhold an approval … post the review state the findings earned”), so this round applies that narrowing: the state below is the findings', and merging remains the board's gate.

Summary. Standards: 0 findings — the three round-2 advisories are cleared and each was re-driven, worst of them the plan step's fatality, now red under both mutants that used to leave the suite green. Spec: 0 findings — the judged contexts and the judge are byte-identical to the head round 2 cleared, and the delta's one new sentence is true of the workflow. No blocker and no advisory stands, and the volume trip that moved round 2's word to fix retires with them: this round's recommendation is merge.

<!-- minos review-loop: repo=olympus/infra-tracker pr=54 head=1ec33fe623e4681e85b55cce17161e87be9521c4 round=3/5 axes=standards,spec verdict=merge --> **olympus/infra-tracker#54** · reviewed head `1ec33fe623e4681e85b55cce17161e87be9521c4` · round **3/5** · axes: standards, spec · the dispatch numbered this 1/5, but the thread already carries two reviews — 661 (`round=1/5`, head `2861ac6`) and 662 (`round=2/5`, head `79ee325`) — and the review list plus one is the ledger, so this header reads 3. Recommendation: merge **Spec source.** The body links TR-60 (Vikunja task 346). The tracker refused this session's key a third round running — `scripts/fetch-vikunja-task-by-id.sh 346` printed `key from /home/hermes/.hermes/profiles/minos/.env: /projects http=401` and `no MCP_VIKUNJA_API_KEY answered 200 in either .env` — so the PR body's *Summary / What changed / Merge Danger / Still to do* is the spec, named as such. No cached copy of task 346 exists on this host to stand in. **Standard.** `AGENTS.md` §State and §Pull requests; `docs/adr/index.md`, `0004`, `0005`; `.agents/skills/pr/SKILL.md`. The delta touches no ADR. **Delta.** `git diff 79ee325..1ec33fe` — 3 files, +26/−18, two commits (`2652223`, `1ec33fe`), stacked on the reviewed head (`git merge-base --is-ancestor 79ee325 1ec33fe` → true). All three accounted for: `AGENTS.md` (the JWT claim), `README.md` (its eighth site), `scripts/tests/plan-workflow.sh` (the plan step's fatality). Nothing in `.forgejo/workflows/` or `scripts/plan-check.py` moved, so round 1's two blockers are untouched by this delta and remain cleared as round 2 drove them. ## Standards No findings. All three round-2 advisories are cleared, each re-driven at the head: **Cleared — `AGENTS.md:26` no longer says CI reads the plan half through the store's login.** It reads “a plan job reads that half as a repository secret of its own — no job exchanges a JWT for either”, which is what `plan.yml:67-68` and `:99-100` do (`TRACKER_<STACK>_PLAN_STATE_*` repository secrets). `grep -rn 'JWT login' .` → rc 1, **0 hits** at the head. The author also swept `README.md:69`, which carried the same sentence and was not in the finding's line — that is the per-site rule applied correctly, not scope creep. A word-level diff against `79ee325` (`--word-diff-regex='[^[:space:]]+'`) shows the reflow moved no other clause: the only added words are the new claim, the only removed words the old one. **Cleared — the plan step's fatality is pinned, and the suite can fail.** `scripts/tests/plan-workflow.sh:322` now matches `continue-on-error:` at any indentation, and `:341-345` asserts, per job, that the plan step carries no `if:` and no `continue-on-error`. Driven as a red/green pair — each mutant applied to a copy of both trees, each tree's own suite run: | Mutant | suite at `79ee325` | suite at `1ec33fe` | | --- | --- | --- | | `if: false` on the Guest plan step | rc 0, 46 ok, 0 FAIL | rc 1, 49 ok, 1 FAIL — `guest-plan-check: the plan step carries no 'if:'` | | `continue-on-error: true` on the Guest plan step | rc 0, 46 ok, 0 FAIL | rc 1, 48 ok, 2 FAIL — the global case and the per-step case | | `if: false` on the Edge plan step | rc 0, 46 ok, 0 FAIL | rc 1, 49 ok, 1 FAIL — `edge-plan-check: …` | | `continue-on-error: true` on the Edge plan step | rc 0, 46 ok, 0 FAIL | rc 1, 48 ok, 2 FAIL — the global case and the per-step case | | job-level `continue-on-error` (control) | rc 1, 1 FAIL | rc 1, 1 FAIL — the pre-existing case did not weaken | | `make guest-plan-check` → `guest-plan-chec` (vacuity probe) | rc 1, 3 FAIL | rc 1, 3 FAIL — an empty plan block cannot pass silently | | no mutation | rc 0, 46 ok | rc 0, 50 ok | The two mutants round 2 charged are red at this head and green at the reviewed one, and the vacuity probe is what says the new assertions read a real step rather than an empty string (`step_body` returning nothing would make both `assert_empty` calls pass; `:204`'s `step_count … 1` and `:208`'s non-empty check are the backstops, and they red). **Cleared — the body's two counts now agree, and they reproduce.** Both sentences say 128. At the head: `mise exec -- make check` → **rc 0, 128 `ok` lines, 0 `FAIL`**, and the decomposition the *Evidence* section gives is exact — `env-check`+`env-test` 58, `make plan-check-test` 20 (`20 ok`, rc 0 on its own), `scripts/tests/plan-workflow.sh` 50 (`50 ok`, rc 0 on its own). 58 + 20 + 50 = 128. ## Spec No findings. The delta changes no behaviour: `plan.yml`, `scripts/plan-check.py`, `scripts/plan_check.py` and the `Makefile` are byte-identical to the reviewed head, so the two judged contexts, the fork refusal, the head-under-`head/` wiring and the move/absent-state judgements are exactly what round 2 drove as cleared. The one claim the delta does add — that a plan job reads its own record's plan half as a repository secret — is the mechanism `plan.yml` already implements and `docs/adr/0005:79-82` (as amended) states. ## Verified - `refs/pull/54/head` on the host is `1ec33fe6…` (`git ls-remote`, re-read after the mutant wave), equal to the PR's `head.sha` and the dispatch's SHA; every probe ran in a worktree at that SHA, and `git status --porcelain` is empty afterwards. - `mise exec -- make check` at the head, credentials unset: rc 0, 128 `ok`, 0 `FAIL`, `env-test: every assertion holds.`, `plan-check tests: every case passed.`, `plan workflow tests: every case passed.` - `make plan-check-test` alone: 20 `ok`, rc 0. `bash scripts/tests/plan-workflow.sh` alone: 50 `ok`, rc 0. - The six-mutant matrix above, each half run in its own tree at its own revision. - Census at the head: `JWT login` 0 hits; `store-env` 1 hit and it is `scripts/tests/run.sh:380`'s own guard; `plan half` 4 hits, all four true of what runs (`AGENTS.md:25`, `plan.yml:12`, `docs/adr/0005:76`, `docs/adr/0004:91`). - Live CI at the head: `checks / static (pull_request)` success in 13s, `checks / execute (pull_request)` success in 2m52s (run 78) — the body's numbers. No `plan / …` context at this head, expected: `pull_request_target` evaluates `main`'s workflow files and `plan.yml` reaches `main` only with this merge. - No literal secret in the delta: two prose files and a test script, every credential a `${{ secrets.… }}` name. ## Could not verify - TR-60's acceptance criteria: the tracker answered `401` on every configured key (quoted above). - The two live probes and the branch-protection setting: both need `plan.yml` on `main`, and the author defers them in *Still to do* — a disclosed deferral, not a skipped check. - Existence of the repository secrets and variables (`TRACKER_*_PLAN_STATE_*`, `PROXMOX_VE_PLAN_API_TOKEN`, `NGINXPROXYMANAGER_*`, `TEST_RUNNER_IMAGE`, `PROXMOX_VE_ENDPOINT`, `NGINXPROXYMANAGER_URL`): no route from this session. The designed failure is a red context, not a silent green. - The fork refusal on the live runner: the guard's shell is driven offline by the suite; the runner path is the deferred probe. ## Named, not charged - `actions/checkout`'s `persist-credentials` default on the head checkout: unread by all three rounds; named, unverified, not charged. - A genuinely empty state reds, because `tofu show -json` carries no `prior_state` until something has been applied — the cost of round 1's clearing, named in round 2, unchanged here. - `docs/adr/0004` and `0005` amended in place rather than superseded: this repository's own practice (`git log --diff-filter=M -- docs/adr/`), settled in round 1. - `plan-workflow-test`'s missing row in `workshop`'s `docs/agents/make-targets.md`: owed in another repository, disclosed by the author, untouched by this delta. - The `.forgejo/workflows/plan.yml` gate itself — the class this PR belongs to — is the board's, not this ledger's (below). **Board.** Per the charter this is a CI-gate and ADR change, and its card **THE-96** exists from round 1; read live just now: `status` `in_review`, `reviewAttention.state` `covered`, one path with `responder` Board and `since` `2026-11-12T18:25:52Z`, one entry on the card and it is a triage note, not a ruling. The dispatch puts the class hold on that card (“the change's class is never a reason to withhold an approval … post the review state the findings earned”), so this round applies that narrowing: the state below is the findings', and merging remains the board's gate. **Summary.** Standards: 0 findings — the three round-2 advisories are cleared and each was re-driven, worst of them the plan step's fatality, now red under both mutants that used to leave the suite green. Spec: 0 findings — the judged contexts and the judge are byte-identical to the head round 2 cleared, and the delta's one new sentence is true of the workflow. No blocker and no advisory stands, and the volume trip that moved round 2's word to fix retires with them: this round's recommendation is merge.
pit merged commit 9f86129074 into main 2026-11-12 19:49:59 +00:00
pit deleted branch hermes/TR-60-the-tracker-plans-every-pull-request 2026-11-12 19:49: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-tracker!54
No description provided.