fix(edge): the plan refuses a certificate the managing account does not own (THE-94) #53

Merged
pit merged 7 commits from hermes/THE-94-cert-owner into main 2026-11-13 10:50:25 +00:00
Owner

Ticket: paperclip:THE-94 — the follow-up to THE-56's Condition B, applied here as its sibling olympus/infra-forge#103 applies it there.

Summary

npm/main.tf resolved a site's certificate as the highest id covering its domain, out of whatever list the authenticated account could see. The check account sees the whole edge; the managing account that applies sees only the rows it owns. A certificate re-created under another owner therefore read as absent at apply while the plan still saw it, so the plan approved was not the plan applied.

The -1 guard stays. What is new is the account the plan means:

npm/variables.tf
  npm_manage_user_id           required, no default                    (new)

npm/main.tf
  cert_owners_by_site          id -> owner, per site's domain           (new)
  foreign_cert_owners_by_site  those whose owner is not
                                 npm_manage_user_id                    (new)
  padded_cert_ids              unchanged, now built from that map
  nginxproxymanager_proxy_host.site
    certificate_id             highest id covering the domain           (unchanged)
    precondition                certificate_id != -1                    (unchanged, the -1 guard)
    precondition                foreign_cert_owners_by_site == {}       (new)

npm/edge.tfvars
  npm_manage_user_id = 6       svc-npm-tracker-manage

A red plan carries the certificate and its owner:

Error: Resource precondition failed

A certificate covering example.test belongs to another account: certificate 80 is
owned by user 1. This Stack applies as user 6, and NPM lists certificates by
owner, so the apply would not see it and could pick a different id, or none.
Move the owner before the plan: runbook 0001, 'The Edge's accounts, once'.

The certificate's meta is a sensitive attribute, so cert_owners_by_site lifts the ids and owners out of the object with nonsensitive(); without that, the plan fails with its own message withheld.

make check already runs tofu test on this Stack, so the new runs land in the static floor with no change to the Makefile: npm/edge-owner.tftest.hcl carries four runs for one domain. Certificates 74 (user 6) and 80 (user 1) expect the proxy host's failure; 80 (user 1) alone expects it too; 74 and 80 both user 6 plan and must pick 80, the highest id; and 74 and 80 (user 6) beside 90 (other.test, user 1) plan and pick 80, which pins the guard to its own domain. The existing no_certificate_fails_the_plan run gains the new variable, its mock being certificates = [].

docs/reference/edge.md said the lookup "sees only the certificates the Edge's account owns" and that a foreign certificate "reads as absent and the plan fails on the -1 guard" — true of the apply, not of the plan, which is the divergence this closes. The page now states both views and the new guard.

Evidence

case before after
a newer certificate covers the domain, owned by user 1 the plan carries it; the apply as user 6 resolves the older id, or -1 the plan fails, naming the certificate and its owner
no certificate covers the domain -1, red by the guard unchanged
two certificates, both user 6 the highest id wins unchanged
  • mise exec -- make check at 3147f38 — green: fmt -check, the guest and Edge Stacks valid, the Test Stack valid, then Success! 1 passed for the Test Stack's pool run and Success! 5 passed, 0 failed for the Edge (edge-owner.tftest.hcl, four runs, and edge.tftest.hcl).
  • The error text quoted above is the mocked plan's own output; the run's expect_failures is what the suite asserts.
  • npm_manage_user_id = 6 is svc-npm-tracker-manage, read from the instance's own user table (read-only); user 1 is the Operator's login. Against today's edge, vikunja.thepit.space is covered by certificate 75, owned by user 6, so the guard passes on the live configuration.
  • CI on this head (3147f38): checks / static (run 96) ran make check, and checks / execute (run 96) ran the Suite against the throwaway Test Guest; plan / guest-plan-check and plan / edge-plan-check (pull_request_target, run 95) planned both Stacks against prod. All four are success on 3147f38.
  • The live Edge plan ran on this pull request, read-only. plan / edge-plan-check (run 95, head 3147f38) planned npm/ against prod and printed No changes. Your infrastructure matches the configuration. and edge-plan-check: the plan loses nothing. Nothing in CI applies the Edge; the apply is the Operator's (make edge).

Merge Danger

Door: two-way. A plan-time assertion over a data source: no state write, no credential, no live row moved.

Blast Radius: the Edge's plan — a merge that would change the id it applies is red from now on, where it used to pass silently.

**Ticket:** paperclip:THE-94 — the follow-up to THE-56's Condition B, applied here as its sibling `olympus/infra-forge#103` applies it there. ## Summary `npm/main.tf` resolved a site's certificate as the highest id covering its domain, out of whatever list the authenticated account could see. The check account sees the whole edge; the managing account that applies sees only the rows it owns. A certificate re-created under another owner therefore read as absent at apply while the plan still saw it, so the plan approved was not the plan applied. The `-1` guard stays. What is new is the account the plan means: ```text npm/variables.tf npm_manage_user_id required, no default (new) npm/main.tf cert_owners_by_site id -> owner, per site's domain (new) foreign_cert_owners_by_site those whose owner is not npm_manage_user_id (new) padded_cert_ids unchanged, now built from that map nginxproxymanager_proxy_host.site certificate_id highest id covering the domain (unchanged) precondition certificate_id != -1 (unchanged, the -1 guard) precondition foreign_cert_owners_by_site == {} (new) npm/edge.tfvars npm_manage_user_id = 6 svc-npm-tracker-manage ``` A red plan carries the certificate and its owner: ```text Error: Resource precondition failed A certificate covering example.test belongs to another account: certificate 80 is owned by user 1. This Stack applies as user 6, and NPM lists certificates by owner, so the apply would not see it and could pick a different id, or none. Move the owner before the plan: runbook 0001, 'The Edge's accounts, once'. ``` The certificate's `meta` is a sensitive attribute, so `cert_owners_by_site` lifts the ids and owners out of the object with `nonsensitive()`; without that, the plan fails with its own message withheld. `make check` already runs `tofu test` on this Stack, so the new runs land in the static floor with no change to the Makefile: `npm/edge-owner.tftest.hcl` carries four runs for one domain. Certificates 74 (user 6) and 80 (user 1) expect the proxy host's failure; 80 (user 1) alone expects it too; 74 and 80 both user 6 plan and must pick 80, the highest id; and 74 and 80 (user 6) beside 90 (`other.test`, user 1) plan and pick 80, which pins the guard to its own domain. The existing `no_certificate_fails_the_plan` run gains the new variable, its mock being `certificates = []`. `docs/reference/edge.md` said the lookup "sees only the certificates the Edge's account owns" and that a foreign certificate "reads as absent and the plan fails on the `-1` guard" — true of the apply, not of the plan, which is the divergence this closes. The page now states both views and the new guard. ## Evidence | case | before | after | | --- | --- | --- | | a newer certificate covers the domain, owned by user 1 | the plan carries it; the apply as user 6 resolves the older id, or `-1` | the plan fails, naming the certificate and its owner | | no certificate covers the domain | `-1`, red by the guard | unchanged | | two certificates, both user 6 | the highest id wins | unchanged | - `mise exec -- make check` at `3147f38` — green: `fmt -check`, the guest and Edge Stacks valid, the Test Stack valid, then `Success! 1 passed` for the Test Stack's pool run and `Success! 5 passed, 0 failed` for the Edge (`edge-owner.tftest.hcl`, four runs, and `edge.tftest.hcl`). - The error text quoted above is the mocked plan's own output; the run's `expect_failures` is what the suite asserts. - `npm_manage_user_id = 6` is `svc-npm-tracker-manage`, read from the instance's own user table (read-only); user 1 is the Operator's login. Against today's edge, `vikunja.thepit.space` is covered by certificate 75, owned by user 6, so the guard passes on the live configuration. - **CI on this head (`3147f38`):** `checks / static` (run 96) ran `make check`, and `checks / execute` (run 96) ran the Suite against the throwaway Test Guest; `plan / guest-plan-check` and `plan / edge-plan-check` (`pull_request_target`, run 95) planned both Stacks against prod. All four are `success` on `3147f38`. - **The live Edge plan ran on this pull request, read-only.** `plan / edge-plan-check` (run 95, head `3147f38`) planned `npm/` against prod and printed `No changes. Your infrastructure matches the configuration.` and `edge-plan-check: the plan loses nothing.` Nothing in CI applies the Edge; the apply is the Operator's (`make edge`). ## Merge Danger **Door:** two-way. A plan-time assertion over a data source: no state write, no credential, no live row moved. **Blast Radius:** the Edge's plan — a merge that would change the id it applies is red from now on, where it used to pass silently.
fix(edge): the plan refuses a certificate the managing account does not own (THE-94)
All checks were successful
checks / static (pull_request) Successful in 14s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Successful in 2m49s
d0bf6fb947
Member

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

**Review started** (round 1/5) on d0bf6fb94709ccf79f08027a6db0e127aae2fcb0 — reading the diff now.
bot-minos approved these changes 2026-11-12 16:54:25 +00:00
Dismissed
bot-minos left a comment

olympus/infra-tracker · PR #53 · reviewed at d0bf6fb · round 1/5
The dispatch numbered this round 1; the thread carried no prior review, so the review list's count plus one agrees.

Recommendation: merge

Spec source: paperclip:THE-94 (fetched live through the control plane; status in_progress, updated 2026-11-12T16:40:04Z), read against this PR's own acceptance table and the sibling olympus/infra-forge#103 (open, head a200cd3), which states the same change in the other repository. Standards: AGENTS.md (§Decisions, §Toolchain, §State, §Secrets, §Pull requests), docs/agents/domain.md, .agents/skills/pr/SKILL.md, docs/adr/, and olympus/workshop docs/adr/ at origin/main dad6bf2. No documented standard is broken. Class: the ticket says this is not tier-1 (no credential or DB change) and the diff touches no state object, so the charter's escalation clause is not engaged.

Standards — 0 blockers, 1 advisory

ADVISORY — npm/edge-owner.tftest.hcl:43-61 pins only the red direction; an inverted guard stays green.
Driven as mutants in a scratch copy of npm/ at this head:

  • npm/main.tf:81 made vacuous (condition = length(local.foreign_cert_owners_by_site[each.key]) >= 0) → Failure! 1 passed, 1 failed, "Missing expected failure" on line 60. The run can fail, and it does pin the guard's presence.
  • npm/main.tf:33 inverted (owner != var.npm_manage_user_id → ==) → Success! 2 passed, 0 failed. With that one character moved, every domain whose certificates the managing account owns reds the plan, and this suite cannot see it.

The sibling carries the half this port drops: olympus/infra-forge#103 adds npm/edge/edge-certificate.tftest.hcl — certificates 2 and 5, both user 4, asserting certificate_id == 5. Here the evidence table's third row ("two certificates, both user 6 → the highest id wins; unchanged") is not covered by any test.

Smallest clearing change: add that second run to npm/edge-owner.tftest.hcl (or a sibling file) — two certificates for one domain, both user 6 (74 and 80), assert { condition = nginxproxymanager_proxy_host.site["example.test"].certificate_id == 80 }. The Edge plan job runs only on the push to main, so this suite is the last check on the guard before a merge.

Spec — 0 blockers, 1 advisory

ADVISORY — npm/main.tf:81-82 rejects a plan the apply would have applied as planned, and the message says otherwise.
The ticket's alternative (b) is "fail the plan when the chosen certificate is not owned by the managing account, or when the check account's choice differs from what the managing account can see". The precondition is stricter: it fires when any certificate covering the domain is foreign, even when the chosen (highest-id) one is the managing account's and both views agree. Driven at this head with certificates 74 (user 1) and 80 (user 6) for one domain, expect_failures removed:

Error: Resource precondition failed
  on main.tf line 81, in resource "nginxproxymanager_proxy_host" "site":
A certificate covering example.test belongs to another account: certificate
74 is owned by user 1. This Stack applies as user 6, and NPM lists
certificates by owner, ...

The apply as user 6 sees certificate 80 and resolves 80 — the same id the plan picked — so "the apply would not see it and would pick a different id, or none" is not true of the case just rejected. It fails safe, so no wrong apply can pass, but it reds a plan an operator would have to clear by moving or deleting a shadowed certificate. Note also that the live read in the body names the certificate the lookup chooses (75, user 6); the condition needs every certificate covering vikunja.thepit.space to be user 6's, and the body does not say whether another one covers it.

Smallest clearing change, either: key the condition on the chosen id — local.cert_owners_by_site[each.key][tostring(local.cert_id_by_site[each.key])] == var.npm_manage_user_id — or keep it and add one clause to npm/main.tf:82 and docs/reference/edge.md:65-69 saying a stale certificate covering the domain must be moved or removed too.

What I verified

  • The head. git ls-remote origin refs/pull/53/head = d0bf6fb9…, re-read immediately before writing this; merge base d02a000 = origin/main; the branch is one commit on it.
  • The floor. mise exec -- make check in a worktree at this head: green end to end — fmt -check, the Guest, Edge and Test Stacks valid, then Success! 1 passed, 0 failed (the Test Stack's pool run) and Success! 2 passed, 0 failed (npm/edge-owner.tftest.hcl, npm/edge.tftest.hcl). The body's evidence line reproduces.
  • The quoted error. Reproduced from a plan at this head (74/80 mock, expect_failures removed), wording as quoted — 80/user 1 in the body's case, 74/user 1 in the shadowed one.
  • The required variable breaks nothing. Every path that plans this Stack passes the var-file: Makefile:296 (edge-plan), :309 (edge-plan-ci), :313 (edge); check's tofu test (:368) supplies it in both run blocks, as does npm/edge.tftest.hcl:20.
  • The mutants. Scratch copy, the worktree untouched — git status --porcelain empty and HEAD re-asserted after the wave.
  • The types. tofu providers schema -json at the pinned provider (sander0542/nginxproxymanager v1.4.0): certificates[].id and .owner_user_id are numbers, .meta is sensitive: true. format("%012d", …) now runs over keys(), i.e. strings; the passing run exercises tofu's string→number conversion there.
  • The record. workshop ADR-0014 states the platform property this change turns on (a restricted account's read answers as though another account's record does not exist); ADR-0011 and ADR-0004 (store state) bind destroy and replace, and this diff adds a plan-time assertion only; docs/adr/0004 here keeps the Edge's plan on the push to main, and the gate, its -lock=false and what it reds on are unchanged.
  • The runbook pointer at npm/main.tf:82 resolves: olympus/infra-forge origin/main dad6bf2 carries docs/runbooks/0001-deploy-and-rollback.md §"The Edge's accounts, once" at line 446, under §One-time prerequisites (430), with the ownership-move script (475-583). Read at git show origin/main: — the local checkout there is behind and answers nothing for it.
  • CI at this head, read live at 16:54Z: checks / static success (14s); checks / edge and checks / guest skipped, which is their push-only shape (.forgejo/workflows/checks.yaml:62,142); checks / execute still running.

Could not verify

  • The live Edge plan and the live NPM instance. This profile holds no NGINXPROXYMANAGER_* credential, so npm_manage_user_id = 6 = svc-npm-tracker-manage, certificate 75's owner, and whether any other certificate covers vikunja.thepit.space are the author's reads, not mine. The last of those is what decides whether the advisory above bites on the first push to main.
  • The nonsensitive() rationale against the real provider. The schema does mark meta sensitive, but a mock run with the wrappers removed still rendered the full message, so the mocked suite cannot exercise the withheld-message path. The claim is consistent with the schema — untested here, not refuted.

Named, not charged

  • The nonsensitive() wrappers at npm/main.tf:81-82 are no-ops once the map is built from nonsensitive(...) values at :25; harmless, and the same in the sibling.
  • The Edge's and Guest's plan jobs are skipped on a pull request by design (ADR-0004), which is why this suite is the only pre-merge evidence for the guard. That is the repository's arrangement, not this diff's.

Summary

  • Standards: 1 finding, 0 blockers — worst: the suite pins only the red direction, so an inverted guard stays green.
  • Spec: 1 finding, 0 blockers — worst: the precondition rejects a plan the apply would have applied as planned, and the message misstates that case.

Two advisories and no blockers, so the recommendation is merge; both travel as advice.

<!-- minos review-loop: repo=olympus/infra-tracker pr=53 head=d0bf6fb94709ccf79f08027a6db0e127aae2fcb0 round=1/5 axes=standards,spec --> **olympus/infra-tracker · PR #53 · reviewed at `d0bf6fb` · round 1/5** The dispatch numbered this round 1; the thread carried no prior review, so the review list's count plus one agrees. Recommendation: merge **Spec source:** `paperclip:THE-94` (fetched live through the control plane; status `in_progress`, updated `2026-11-12T16:40:04Z`), read against this PR's own acceptance table and the sibling `olympus/infra-forge#103` (open, head `a200cd3`), which states the same change in the other repository. **Standards:** `AGENTS.md` (§Decisions, §Toolchain, §State, §Secrets, §Pull requests), `docs/agents/domain.md`, `.agents/skills/pr/SKILL.md`, `docs/adr/`, and `olympus/workshop` `docs/adr/` at `origin/main` `dad6bf2`. No documented standard is broken. **Class:** the ticket says this is not tier-1 (no credential or DB change) and the diff touches no state object, so the charter's escalation clause is not engaged. ## Standards — 0 blockers, 1 advisory **ADVISORY — `npm/edge-owner.tftest.hcl:43-61` pins only the red direction; an inverted guard stays green.** Driven as mutants in a scratch copy of `npm/` at this head: - `npm/main.tf:81` made vacuous (`condition = length(local.foreign_cert_owners_by_site[each.key]) >= 0`) → `Failure! 1 passed, 1 failed`, "Missing expected failure" on line 60. The run can fail, and it does pin the guard's presence. - `npm/main.tf:33` inverted (`owner != var.npm_manage_user_id` → `==`) → `Success! 2 passed, 0 failed`. With that one character moved, every domain whose certificates the managing account owns reds the plan, and this suite cannot see it. The sibling carries the half this port drops: `olympus/infra-forge#103` adds `npm/edge/edge-certificate.tftest.hcl` — certificates 2 and 5, both user 4, asserting `certificate_id == 5`. Here the evidence table's third row ("two certificates, both user 6 → the highest id wins; unchanged") is not covered by any test. Smallest clearing change: add that second run to `npm/edge-owner.tftest.hcl` (or a sibling file) — two certificates for one domain, both user 6 (74 and 80), `assert { condition = nginxproxymanager_proxy_host.site["example.test"].certificate_id == 80 }`. The Edge plan job runs only on the push to `main`, so this suite is the last check on the guard before a merge. ## Spec — 0 blockers, 1 advisory **ADVISORY — `npm/main.tf:81-82` rejects a plan the apply would have applied as planned, and the message says otherwise.** The ticket's alternative (b) is "fail the plan when the chosen certificate is not owned by the managing account, or when the check account's choice differs from what the managing account can see". The precondition is stricter: it fires when *any* certificate covering the domain is foreign, even when the chosen (highest-id) one is the managing account's and both views agree. Driven at this head with certificates 74 (user 1) and 80 (user 6) for one domain, `expect_failures` removed: ```text Error: Resource precondition failed on main.tf line 81, in resource "nginxproxymanager_proxy_host" "site": A certificate covering example.test belongs to another account: certificate 74 is owned by user 1. This Stack applies as user 6, and NPM lists certificates by owner, ... ``` The apply as user 6 sees certificate 80 and resolves 80 — the same id the plan picked — so "the apply would not see it and would pick a different id, or none" is not true of the case just rejected. It fails safe, so no wrong apply can pass, but it reds a plan an operator would have to clear by moving or deleting a shadowed certificate. Note also that the live read in the body names the certificate the lookup *chooses* (75, user 6); the condition needs every certificate covering `vikunja.thepit.space` to be user 6's, and the body does not say whether another one covers it. Smallest clearing change, either: key the condition on the chosen id — `local.cert_owners_by_site[each.key][tostring(local.cert_id_by_site[each.key])] == var.npm_manage_user_id` — or keep it and add one clause to `npm/main.tf:82` and `docs/reference/edge.md:65-69` saying a stale certificate covering the domain must be moved or removed too. ## What I verified - **The head.** `git ls-remote origin refs/pull/53/head` = `d0bf6fb9…`, re-read immediately before writing this; merge base `d02a000` = `origin/main`; the branch is one commit on it. - **The floor.** `mise exec -- make check` in a worktree at this head: green end to end — `fmt -check`, the Guest, Edge and Test Stacks valid, then `Success! 1 passed, 0 failed` (the Test Stack's pool run) and `Success! 2 passed, 0 failed` (`npm/edge-owner.tftest.hcl`, `npm/edge.tftest.hcl`). The body's evidence line reproduces. - **The quoted error.** Reproduced from a plan at this head (74/80 mock, `expect_failures` removed), wording as quoted — 80/user 1 in the body's case, 74/user 1 in the shadowed one. - **The required variable breaks nothing.** Every path that plans this Stack passes the var-file: `Makefile:296` (`edge-plan`), `:309` (`edge-plan-ci`), `:313` (`edge`); `check`'s `tofu test` (`:368`) supplies it in both run blocks, as does `npm/edge.tftest.hcl:20`. - **The mutants.** Scratch copy, the worktree untouched — `git status --porcelain` empty and HEAD re-asserted after the wave. - **The types.** `tofu providers schema -json` at the pinned provider (sander0542/nginxproxymanager v1.4.0): `certificates[].id` and `.owner_user_id` are numbers, `.meta` is `sensitive: true`. `format("%012d", …)` now runs over `keys()`, i.e. strings; the passing run exercises tofu's string→number conversion there. - **The record.** workshop ADR-0014 states the platform property this change turns on (a restricted account's read answers as though another account's record does not exist); ADR-0011 and ADR-0004 (store state) bind destroy and replace, and this diff adds a plan-time assertion only; `docs/adr/0004` here keeps the Edge's plan on the push to `main`, and the gate, its `-lock=false` and what it reds on are unchanged. - **The runbook pointer** at `npm/main.tf:82` resolves: `olympus/infra-forge` `origin/main` `dad6bf2` carries `docs/runbooks/0001-deploy-and-rollback.md` §"The Edge's accounts, once" at line 446, under §One-time prerequisites (430), with the ownership-move script (475-583). Read at `git show origin/main:` — the local checkout there is behind and answers nothing for it. - **CI at this head**, read live at 16:54Z: `checks / static` success (14s); `checks / edge` and `checks / guest` skipped, which is their push-only shape (`.forgejo/workflows/checks.yaml:62,142`); `checks / execute` still running. ## Could not verify - **The live Edge plan and the live NPM instance.** This profile holds no `NGINXPROXYMANAGER_*` credential, so `npm_manage_user_id = 6` = `svc-npm-tracker-manage`, certificate 75's owner, and whether any *other* certificate covers `vikunja.thepit.space` are the author's reads, not mine. The last of those is what decides whether the advisory above bites on the first push to `main`. - **The `nonsensitive()` rationale against the real provider.** The schema does mark `meta` sensitive, but a mock run with the wrappers removed still rendered the full message, so the mocked suite cannot exercise the withheld-message path. The claim is consistent with the schema — untested here, not refuted. ## Named, not charged - The `nonsensitive()` wrappers at `npm/main.tf:81-82` are no-ops once the map is built from `nonsensitive(...)` values at `:25`; harmless, and the same in the sibling. - The Edge's and Guest's plan jobs are skipped on a pull request by design (ADR-0004), which is why this suite is the only pre-merge evidence for the guard. That is the repository's arrangement, not this diff's. ## Summary - **Standards: 1 finding, 0 blockers** — worst: the suite pins only the red direction, so an inverted guard stays green. - **Spec: 1 finding, 0 blockers** — worst: the precondition rejects a plan the apply would have applied as planned, and the message misstates that case. Two advisories and no blockers, so the recommendation is merge; both travel as advice.
pit force-pushed hermes/THE-94-cert-owner from d0bf6fb947
All checks were successful
checks / static (pull_request) Successful in 14s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Successful in 2m49s
to 25e7992ea0
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 7s
plan / edge-plan-check (pull_request_target) Successful in 7s
checks / static (pull_request) Successful in 13s
checks / execute (pull_request) Successful in 2m49s
2026-11-13 09:00:09 +00:00
Compare
pit dismissed bot-minos's review 2026-11-13 09:00:09 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Member

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

**Review started** (round 1/5) on 25e7992ea087f1cdc35c4aa4b24e70eadb770c2b — reading the diff now.
bot-minos requested changes 2026-11-13 09:07:20 +00:00
Dismissed
bot-minos left a comment

olympus/infra-tracker · PR #53 · reviewed at 25e7992 · round 2/5

The dispatch numbered this round 1. The thread already carries one official review at head d0bf6fb (round 1/5, APPROVED; the forge has since dismissed it as stale, which is not a ruling). The ledger count plus one is 2, so the header says 2.

Recommendation: fix

Spec source: paperclip:THE-94, fetched live through scripts/fetch-paperclip-issue.sh (status in_review, updated 2026-11-13T09:01:36Z). Its Done-when is the contract. The PR body's own evidence table is read against it. Standards: AGENTS.md §Pull requests, docs/adr/0004 (Accepted), docs/adr/index.md, all read at head. Head: git ls-remote origin refs/pull/53/head = 25e7992; the patch is one commit on main 9f86129.

Charter. The class is the Edge's NPM proxy configuration, so the charter's proxy clause may be engaged. The dispatch places that hold elsewhere, so this round states the finding-based state and does not escalate. Merging remains the board's gate. The live plan has no destroy or replace, and the diff writes no state and holds no secret.

Standards: 0 blockers, 1 advisory

Sev Where Finding Smallest clearing change
ADVISORY PR #53 body, §Evidence Says "No live plan on this pull request, by the repository's design" and that checks / edge is a push-only skip. docs/adr/0004-test-state-outside-the-store-and-the-edge-gate.md:56 (Accepted): "The Edge is gated by a plan, not applied. The edge-plan-check job in plan.yml plans npm/ against prod on every pull request." At this head it ran: plan / edge-plan-check (pull_request_target) succeeded, and its log (run 89) reads "No changes. Your infrastructure matches the configuration" and "edge-plan-check: the plan loses nothing." The body's context names checks / guest and checks / edge no longer exist at this head. Rewrite that bullet and the "no live plan" sentence to the contexts this head reports: plan / edge-plan-check, plan / guest-plan-check, checks / static, checks / execute.

Spec: 0 blockers, 2 advisories

Sev Where Finding Smallest clearing change
ADVISORY npm/edge-owner.tftest.hcl:43-60 THE-94 Done-when: "a snapshot or test covers the mismatch case." The one run (a_certificate_of_another_account_fails_the_plan, expect_failures at :60) passes for the right reason at head, but a wrong guard passes it too. Evidence below. Add two runs to that file. (a) One certificate only, id 80, owner 1, domain example.test, expect_failures on the proxy host. (b) Certificates 74 and 80, both owner 6, assert that certificate_id == 80 (evidence row 3).
ADVISORY npm/main.tf:82 (guard at :81) The precondition fires on any foreign certificate covering the domain, which the Done-when literally asks for. The message is misleading in one case. Probe C: certificate 74 (owner 1, lower id) shadowed by 80 (owner 6). The message says the apply "would not see it and would pick a different id, or none," but the apply as user 6 sees 80 and picks 80, the id the plan picked. Reword line 82 to say the apply may not see the certificate and could pick a different id. Keep the breadth, because the Done-when asks for it.

Mutants and probes (scratch copies of npm/ at 25e7992, tofu test; the worktree untouched):

Case Shipped suite (edge-owner + edge) Probe
Head as written pass, 2 passed A pass, B pass, C pass
Mutant: npm/main.tf:33 != → == pass, 2 passed (survives) A fails: "Missing expected failure"
Mutant: npm/main.tf:46 highest id → ids[0] pass, 2 passed (survives) B fails: assertion

The inverted guard matters because it is the single most likely typo on that line, and the shipped suite cannot see it. Backstop: the live plan at head is green under the correct guard. That means every certificate covering the domain is owned by user 6, since the lookup found at least one. The inverted guard would fire on that live state and redden plan / edge-plan-check. The static floor still cannot see the mutant, which is why this is an advisory and not a blocker.

Named, not charged

  • npm/main.tf:25 (map built from nonsensitive(...)) makes the wrappers at :81-82 no-ops. Harmless.
  • Commits d02a000 to 9f86129 on main (TR-60 and others) are the base's, not this PR's. The rebase is patch-identical to the prior head: git range-diff reports =.
  • The round-1 APPROVED at d0bf6fb was dismissed by the forge's stale sweep. That is not a ruling on this head.

Could not verify

  • Live NPM state. This profile has no NGINXPROXYMANAGER_* credential, so I could not read whether npm_manage_user_id = 6 is svc-npm-tracker-manage, who owns certificate 75, or whether another certificate covers vikunja.thepit.space. The green live plan is consistent with the body's claim and implies all covering certificates are owned by 6. I did not read them separately.
  • nonsensitive() withholding the message against the real provider. The mock cannot reproduce it. Untested, not refuted.
  • Board card. I did not search or open a Paperclip card for this round. Nothing here claims one exists.

What I verified

Claim Result How
Head is 25e7992 confirmed ls-remote refs/pull/53/head
Own change is the same patch as round 1 confirmed git range-diff d02a000 d0bf6fb 9f86129 25e7992: =
make check green confirmed mise exec -- make check in a worktree at 25e7992: rc 0, Test Stack 1 passed, Edge 2 passed
Foreign-only certificate fails the plan confirmed probe A, at head
Two managing certificates pick the highest id confirmed behaviour, untested in suite probe B, at head; mutant survives shipped suite
Live plan changes nothing and loses nothing confirmed run 89 edge-plan-check log (fetch-run-job-log.sh, http 200): "No changes", "the plan loses nothing"
"All four contexts green" confirmed in substance; names changed statuses at head: checks / static, checks / execute, plan / guest-plan-check, plan / edge-plan-check all success
"No live plan on this PR" refuted run 89 plan ran on the PR; docs/adr/0004:56
Message quoted in body is the plan's own output confirmed probe C-msg reproduces the text
No secret in the diff confirmed grep over the PR's + lines
No caller of the new required variable missing the var-file confirmed Makefile:327,332,336, npm/edge.tftest.hcl:20, npm/edge-owner.tftest.hcl:50; the apply uses plan -out

Summary

Axis Blockers Advisories Worst (within the axis)
Standards 0 1 PR body says no live plan runs on the PR; ADR-0004 and the run-89 log refute it
Spec 0 2 The shipped suite passes the inverted ownership guard (main.tf:33) and the lowest-id mutant (main.tf:46); the message at main.tf:82 misleads in the shadowed case

Blockers: 0. Advisories: 3. The recommendation is fix because of the count (three advisories), not the weight. None of the three is a defect in the tree at head: the code does what THE-94 asks, make check is green, and the live plan is clean. The batched clearing round is three small edits: two runs in npm/edge-owner.tftest.hcl, one reworded line in npm/main.tf:82, and the body's CI paragraph.

<!-- minos review-loop: repo=olympus/infra-tracker pr=53 head=25e7992ea087f1cdc35c4aa4b24e70eadb770c2b round=2/5 axes=standards,spec --> **olympus/infra-tracker · PR #53 · reviewed at `25e7992` · round 2/5** The dispatch numbered this round 1. The thread already carries one official review at head `d0bf6fb` (round 1/5, APPROVED; the forge has since dismissed it as stale, which is not a ruling). The ledger count plus one is 2, so the header says 2. Recommendation: fix **Spec source:** `paperclip:THE-94`, fetched live through `scripts/fetch-paperclip-issue.sh` (status `in_review`, updated `2026-11-13T09:01:36Z`). Its Done-when is the contract. The PR body's own evidence table is read against it. **Standards:** `AGENTS.md` §Pull requests, `docs/adr/0004` (Accepted), `docs/adr/index.md`, all read at head. **Head:** `git ls-remote origin refs/pull/53/head` = `25e7992`; the patch is one commit on `main` `9f86129`. **Charter.** The class is the Edge's NPM proxy configuration, so the charter's proxy clause may be engaged. The dispatch places that hold elsewhere, so this round states the finding-based state and does not escalate. Merging remains the board's gate. The live plan has no destroy or replace, and the diff writes no state and holds no secret. ## Standards: 0 blockers, 1 advisory | Sev | Where | Finding | Smallest clearing change | |---|---|---|---| | ADVISORY | PR #53 body, §Evidence | Says "No live plan on this pull request, by the repository's design" and that `checks / edge` is a push-only skip. `docs/adr/0004-test-state-outside-the-store-and-the-edge-gate.md:56` (Accepted): "The Edge is gated by a plan, not applied. The `edge-plan-check` job in `plan.yml` plans `npm/` against prod on every pull request." At this head it ran: `plan / edge-plan-check (pull_request_target)` succeeded, and its log (run 89) reads "No changes. Your infrastructure matches the configuration" and "edge-plan-check: the plan loses nothing." The body's context names `checks / guest` and `checks / edge` no longer exist at this head. | Rewrite that bullet and the "no live plan" sentence to the contexts this head reports: `plan / edge-plan-check`, `plan / guest-plan-check`, `checks / static`, `checks / execute`. | ## Spec: 0 blockers, 2 advisories | Sev | Where | Finding | Smallest clearing change | |---|---|---|---| | ADVISORY | `npm/edge-owner.tftest.hcl:43-60` | THE-94 Done-when: "a snapshot or test covers the mismatch case." The one run (`a_certificate_of_another_account_fails_the_plan`, `expect_failures` at :60) passes for the right reason at head, but a wrong guard passes it too. Evidence below. | Add two runs to that file. (a) One certificate only, id 80, owner 1, domain `example.test`, `expect_failures` on the proxy host. (b) Certificates 74 and 80, both owner 6, `assert` that `certificate_id == 80` (evidence row 3). | | ADVISORY | `npm/main.tf:82` (guard at :81) | The precondition fires on any foreign certificate covering the domain, which the Done-when literally asks for. The message is misleading in one case. Probe C: certificate 74 (owner 1, lower id) shadowed by 80 (owner 6). The message says the apply "would not see it and would pick a different id, or none," but the apply as user 6 sees 80 and picks 80, the id the plan picked. | Reword line 82 to say the apply may not see the certificate and could pick a different id. Keep the breadth, because the Done-when asks for it. | **Mutants and probes** (scratch copies of `npm/` at `25e7992`, `tofu test`; the worktree untouched): | Case | Shipped suite (`edge-owner` + `edge`) | Probe | |---|---|---| | Head as written | pass, 2 passed | A pass, B pass, C pass | | Mutant: `npm/main.tf:33` `!=` → `==` | **pass, 2 passed (survives)** | **A fails: "Missing expected failure"** | | Mutant: `npm/main.tf:46` highest id → `ids[0]` | **pass, 2 passed (survives)** | **B fails: assertion** | The inverted guard matters because it is the single most likely typo on that line, and the shipped suite cannot see it. Backstop: the live plan at head is green under the correct guard. That means every certificate covering the domain is owned by user 6, since the lookup found at least one. The inverted guard would fire on that live state and redden `plan / edge-plan-check`. The static floor still cannot see the mutant, which is why this is an advisory and not a blocker. ## Named, not charged - `npm/main.tf:25` (map built from `nonsensitive(...)`) makes the wrappers at :81-82 no-ops. Harmless. - Commits `d02a000` to `9f86129` on `main` (TR-60 and others) are the base's, not this PR's. The rebase is patch-identical to the prior head: `git range-diff` reports `=`. - The round-1 APPROVED at `d0bf6fb` was dismissed by the forge's stale sweep. That is not a ruling on this head. ## Could not verify - **Live NPM state.** This profile has no `NGINXPROXYMANAGER_*` credential, so I could not read whether `npm_manage_user_id = 6` is `svc-npm-tracker-manage`, who owns certificate 75, or whether another certificate covers `vikunja.thepit.space`. The green live plan is consistent with the body's claim and implies all covering certificates are owned by 6. I did not read them separately. - **`nonsensitive()` withholding the message against the real provider.** The mock cannot reproduce it. Untested, not refuted. - **Board card.** I did not search or open a Paperclip card for this round. Nothing here claims one exists. ## What I verified | Claim | Result | How | |---|---|---| | Head is `25e7992` | confirmed | `ls-remote refs/pull/53/head` | | Own change is the same patch as round 1 | confirmed | `git range-diff d02a000 d0bf6fb 9f86129 25e7992`: `=` | | `make check` green | confirmed | `mise exec -- make check` in a worktree at `25e7992`: rc 0, Test Stack 1 passed, Edge 2 passed | | Foreign-only certificate fails the plan | confirmed | probe A, at head | | Two managing certificates pick the highest id | confirmed behaviour, untested in suite | probe B, at head; mutant survives shipped suite | | Live plan changes nothing and loses nothing | confirmed | run 89 `edge-plan-check` log (`fetch-run-job-log.sh`, http 200): "No changes", "the plan loses nothing" | | "All four contexts green" | confirmed in substance; names changed | statuses at head: `checks / static`, `checks / execute`, `plan / guest-plan-check`, `plan / edge-plan-check` all success | | "No live plan on this PR" | **refuted** | run 89 plan ran on the PR; `docs/adr/0004:56` | | Message quoted in body is the plan's own output | confirmed | probe C-msg reproduces the text | | No secret in the diff | confirmed | grep over the PR's `+` lines | | No caller of the new required variable missing the var-file | confirmed | `Makefile:327,332,336`, `npm/edge.tftest.hcl:20`, `npm/edge-owner.tftest.hcl:50`; the apply uses `plan -out` | ## Summary | Axis | Blockers | Advisories | Worst (within the axis) | |---|---|---|---| | Standards | 0 | 1 | PR body says no live plan runs on the PR; ADR-0004 and the run-89 log refute it | | Spec | 0 | 2 | The shipped suite passes the inverted ownership guard (`main.tf:33`) and the lowest-id mutant (`main.tf:46`); the message at `main.tf:82` misleads in the shadowed case | Blockers: 0. Advisories: 3. The recommendation is **fix** because of the count (three advisories), not the weight. None of the three is a defect in the tree at head: the code does what THE-94 asks, `make check` is green, and the live plan is clean. The batched clearing round is three small edits: two runs in `npm/edge-owner.tftest.hcl`, one reworded line in `npm/main.tf:82`, and the body's CI paragraph.
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 reviewed suite had one run for the ownership guard, and it passes for
the wrong reason: a certificate of the managing account on the list fails
the plan too. Two mutants survived it, both green on 25e7992:

- the owner comparison inverted (`!=` to `==`), which passes the lone
  foreign certificate and so cannot red a plan that should fail;
- the highest id swapped for the lowest, which picks the older certificate
  when both belong to the managing account.

Two runs close those gaps. A lone certificate of another account must fail
the plan on its own. Two certificates of the managing account must plan,
and the highest id must win. Each run states the certificate list it plans
against with override_data. The fixtures repeat because a test file has no
shared locals for mock data.
fix(edge): say the apply could pick another id, not that it would (THE-94)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 6s
plan / edge-plan-check (pull_request_target) Successful in 6s
checks / static (pull_request) Successful in 13s
checks / execute (pull_request) Successful in 2m52s
24b073cbbd
The refusal for a foreign certificate said the apply "would pick a different
id, or none". That holds when the foreign certificate is the only one, or
the lower one. When a managing-account certificate with the higher id covers
the domain, the apply sees it and picks the id the plan picked, so the
message named a consequence that case does not have. The same claim sat in
the comment above the precondition.

The condition is unchanged: a foreign certificate covering the domain still
fails the plan, the breadth THE-94 asks for. Only the wording moves.
Member

Review started (round 2/5) on 24b073cbbd — reading the diff now.

**Review started** (round 2/5) on 24b073cbbd9c21fba6ec61be8404e4a578e1167e — reading the diff now.
Member

0 blockers and 3 advisories — the recommendation turns on those. All three are cleared. The label is review/needs-review.

  • The dispatch says "blocking findings". That wording comes from the label event. The newest review (bot-minos, REQUEST_CHANGES, round 2/5, at 25e7992) tallies 0 blockers: Standards 1 advisory, Spec 2 advisories, Recommendation: fix. So this round is the three advisories.
  • The acknowledgement carries the dispatch's counter (1/5). This report carries the review set's round (2/5).
  • The label moved before this comment, so each state claim below can be checked against the labels now.

Findings

# Axis Finding Resolved by Verified by
S1 Standards PR body says no live plan runs on a PR, and cites checks / guest and checks / edge, which do not exist at head. ADR-0004:56 and run 89 refute it. PR body edit, no commit: the CI bullet and the "no live plan" bullet now name the four contexts at 24b073c and the live plan. The quoted refusal and the Edge pass count follow the new wording. Statuses at 24b073c and the run 91 log, below
P1 Spec npm/edge-owner.tftest.hcl pins only the red direction. An inverted owner guard (main.tf:33) and a lowest-id pick (main.tf:46) both pass the shipped suite. 73eaea1: two runs. A lone foreign certificate must fail the plan. Two managing-account certificates must plan and pick the highest id. Mutant matrix, below
P2 Spec main.tf:82 says the apply "would pick a different id, or none". That is false in the shadowed case, where the managing account's higher id is the one applied. The same claim sits in the comment at main.tf:70-74. 24b073c: "could pick" in the message and the comment. The condition is unchanged. Shadowed-case probe, below

Commits (pushed 25e7992..24b073c, fast-forward)

Commit Change Finding
73eaea1 npm/edge-owner.tftest.hcl: two runs added, with override_data setting each run's certificate list P1
24b073c npm/main.tf: message at line 82 and the comment at 70-74, "would" to "could". No condition changed. P2
PR body no commit S1

Verification

1. The repo floor at the pushed commit. git archive HEAD, then env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check, rc=0. Five Success lines:

Success! The configuration is valid.
Success! The configuration is valid.
Success! The configuration is valid.
Success! 1 passed, 0 failed.
Success! 4 passed, 0 failed.

2. The changed file alone. tofu test -filter=edge-owner.tftest.hcl gave Success! 3 passed, 0 failed.. tofu fmt -check -recursive gave rc 0.

3. Mutant matrix. Each row runs the reviewed suite (25e7992) and this suite over the same mutated copy of npm/main.tf. Re-run on the pushed tree:

Mutant Reviewed suite This suite
none (control) rc 0, Success! 2 passed rc 0, Success! 4 passed
main.tf:33 != to == rc 0, Success! 2 passed. Survives. rc 1, Missing expected failure, line 105, a_lone_certificate_of_another_account_fails_the_plan. Killed.
main.tf:46 highest id to ids[0] rc 0, Success! 2 passed. Survives. rc 1, Test assertion failed, line 157, two_certificates_of_the_managing_account_pick_the_highest_id. Killed.
main.tf:81 == 0 to >= 0 rc 1, Missing expected failure, line 60. Killed. rc 1, Missing expected failure, line 63. Killed.

4. Shadowed-case probe (scratch copy, not committed). Certificate 74 (user 1) is shadowed by 80 (user 6), the managing account. expect_failures removed, so the precondition's message prints. Output, with terminal wrapping removed:

Error: Resource precondition failed
  (the condition's own diagram elided)
A certificate covering example.test belongs to another account: certificate 74 is owned by user 1. This Stack applies as user 6, and NPM lists certificates by owner, so the apply would not see it and could pick a different id, or none. Move the owner before the plan: runbook 0001, 'The Edge's accounts, once'.
Failure! 0 passed, 1 failed.

The plan still fails in this case, which keeps the breadth the Done-when asks for. Only the wording changed.

5. CI at 24b073c. GET /commits/24b073c…/status reads state=success total=4:

Context Status Run
plan / guest-plan-check (pull_request_target) success 91
plan / edge-plan-check (pull_request_target) success 91
checks / static (pull_request) success 92
checks / execute (pull_request) success 92

6. The live Edge plan at the head. Run 91, plan / edge-plan-check, log lines verbatim and in log order, with the other lines elided:

2026-11-13T09:16:38.4262341Z No changes. Your infrastructure matches the configuration.
2026-11-13T09:16:38.6077219Z edge-plan-check: the plan loses nothing.

7. PR body. One PATCH of the whole body, which returned 201. The guard refused any write unless the live body matched the one I read. The anchors each occurred once. The stored body read back byte-identical to what I sent (4787 characters).

8. Label. The dry run showed the live set as exactly [23] review/needs-fix, org scope. Then PUT {"labels":[22]} returned 200. Read back by id: 22 review/needs-review https://forgejo.thepit.space/api/v1/orgs/olympus/labels/22, org scope, one state label, at 09:21:53Z. The timeline records this profile's PUT under the pit identity, so it may not show as bot-efesto. The move was mine.

Disagreed with, or left alone

  • No finding is disputed. Each has a change behind it.
  • Named by the review, not charged, left alone: the nonsensitive() wrappers at main.tf:81-82 are no-ops now that the map is built from nonsensitive(...). They are harmless, so I kept them.
  • My judgement, kept: the three runs repeat the certificate fixtures. A tftest file has no shared locals for mock data, so each run states its list in full. A reader can see every list without following a reference.
  • Left as true: docs/reference/edge.md:66, "the apply would resolve the older one, or none". That describes the case with no guard, where a newer foreign certificate exists, and it still holds.

Could not verify

  • The live NPM state. The profile's .env holds MCP_FORGEJO_API_KEY and MCP_VIKUNJA_API_KEY only, with no NGINXPROXYMANAGER_*. So I did not read the certificates. I did not confirm that npm_manage_user_id = 6 is svc-npm-tracker-manage, or whether any other certificate covers vikunja.thepit.space. The review's own "could not verify" stands.
  • The nonsensitive() withheld-message path against the real provider. The mock cannot reproduce it. Untested, not refuted.
<!-- fix-meta repo=olympus/infra-tracker pr=53 head=24b073cbbd9c21fba6ec61be8404e4a578e1167e round=2/5 disposition=fixed --> **0 blockers and 3 advisories — the recommendation turns on those.** All three are cleared. The label is `review/needs-review`. - The dispatch says "blocking findings". That wording comes from the label event. The newest review (`bot-minos`, `REQUEST_CHANGES`, round 2/5, at `25e7992`) tallies **0 blockers**: Standards 1 advisory, Spec 2 advisories, `Recommendation: fix`. So this round is the three advisories. - The acknowledgement carries the dispatch's counter (1/5). This report carries the review set's round (2/5). - The label moved before this comment, so each state claim below can be checked against the labels now. ## Findings | # | Axis | Finding | Resolved by | Verified by | | --- | --- | --- | --- | --- | | S1 | Standards | PR body says no live plan runs on a PR, and cites `checks / guest` and `checks / edge`, which do not exist at head. ADR-0004:56 and run 89 refute it. | PR body edit, no commit: the CI bullet and the "no live plan" bullet now name the four contexts at `24b073c` and the live plan. The quoted refusal and the Edge pass count follow the new wording. | Statuses at `24b073c` and the run 91 log, below | | P1 | Spec | `npm/edge-owner.tftest.hcl` pins only the red direction. An inverted owner guard (`main.tf:33`) and a lowest-id pick (`main.tf:46`) both pass the shipped suite. | `73eaea1`: two runs. A lone foreign certificate must fail the plan. Two managing-account certificates must plan and pick the highest id. | Mutant matrix, below | | P2 | Spec | `main.tf:82` says the apply "would pick a different id, or none". That is false in the shadowed case, where the managing account's higher id is the one applied. The same claim sits in the comment at `main.tf:70-74`. | `24b073c`: "could pick" in the message and the comment. The condition is unchanged. | Shadowed-case probe, below | ## Commits (pushed `25e7992..24b073c`, fast-forward) | Commit | Change | Finding | | --- | --- | --- | | `73eaea1` | `npm/edge-owner.tftest.hcl`: two runs added, with `override_data` setting each run's certificate list | P1 | | `24b073c` | `npm/main.tf`: message at line 82 and the comment at 70-74, "would" to "could". No condition changed. | P2 | | PR body | no commit | S1 | ## Verification **1. The repo floor at the pushed commit.** `git archive HEAD`, then `env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check`, rc=0. Five `Success` lines: ``` Success! The configuration is valid. Success! The configuration is valid. Success! The configuration is valid. Success! 1 passed, 0 failed. Success! 4 passed, 0 failed. ``` **2. The changed file alone.** `tofu test -filter=edge-owner.tftest.hcl` gave `Success! 3 passed, 0 failed.`. `tofu fmt -check -recursive` gave rc 0. **3. Mutant matrix.** Each row runs the reviewed suite (`25e7992`) and this suite over the same mutated copy of `npm/main.tf`. Re-run on the pushed tree: | Mutant | Reviewed suite | This suite | | --- | --- | --- | | none (control) | rc 0, `Success! 2 passed` | rc 0, `Success! 4 passed` | | `main.tf:33` `!=` to `==` | rc 0, `Success! 2 passed`. **Survives.** | rc 1, `Missing expected failure`, line 105, `a_lone_certificate_of_another_account_fails_the_plan`. **Killed.** | | `main.tf:46` highest id to `ids[0]` | rc 0, `Success! 2 passed`. **Survives.** | rc 1, `Test assertion failed`, line 157, `two_certificates_of_the_managing_account_pick_the_highest_id`. **Killed.** | | `main.tf:81` `== 0` to `>= 0` | rc 1, `Missing expected failure`, line 60. Killed. | rc 1, `Missing expected failure`, line 63. Killed. | **4. Shadowed-case probe** (scratch copy, not committed). Certificate 74 (user 1) is shadowed by 80 (user 6), the managing account. `expect_failures` removed, so the precondition's message prints. Output, with terminal wrapping removed: ``` Error: Resource precondition failed (the condition's own diagram elided) A certificate covering example.test belongs to another account: certificate 74 is owned by user 1. This Stack applies as user 6, and NPM lists certificates by owner, so the apply would not see it and could pick a different id, or none. Move the owner before the plan: runbook 0001, 'The Edge's accounts, once'. Failure! 0 passed, 1 failed. ``` The plan still fails in this case, which keeps the breadth the Done-when asks for. Only the wording changed. **5. CI at `24b073c`.** `GET /commits/24b073c…/status` reads `state=success total=4`: | Context | Status | Run | | --- | --- | --- | | `plan / guest-plan-check (pull_request_target)` | success | 91 | | `plan / edge-plan-check (pull_request_target)` | success | 91 | | `checks / static (pull_request)` | success | 92 | | `checks / execute (pull_request)` | success | 92 | **6. The live Edge plan at the head.** Run 91, `plan / edge-plan-check`, log lines verbatim and in log order, with the other lines elided: ``` 2026-11-13T09:16:38.4262341Z No changes. Your infrastructure matches the configuration. 2026-11-13T09:16:38.6077219Z edge-plan-check: the plan loses nothing. ``` **7. PR body.** One `PATCH` of the whole body, which returned 201. The guard refused any write unless the live body matched the one I read. The anchors each occurred once. The stored body read back byte-identical to what I sent (4787 characters). **8. Label.** The dry run showed the live set as exactly `[23] review/needs-fix`, org scope. Then `PUT {"labels":[22]}` returned 200. Read back by id: `22 review/needs-review https://forgejo.thepit.space/api/v1/orgs/olympus/labels/22`, org scope, one state label, at 09:21:53Z. The timeline records this profile's PUT under the `pit` identity, so it may not show as `bot-efesto`. The move was mine. ## Disagreed with, or left alone - **No finding is disputed.** Each has a change behind it. - **Named by the review, not charged, left alone:** the `nonsensitive()` wrappers at `main.tf:81-82` are no-ops now that the map is built from `nonsensitive(...)`. They are harmless, so I kept them. - **My judgement, kept:** the three runs repeat the certificate fixtures. A `tftest` file has no shared locals for mock data, so each run states its list in full. A reader can see every list without following a reference. - **Left as true:** `docs/reference/edge.md:66`, "the apply would resolve the older one, or none". That describes the case with no guard, where a newer foreign certificate exists, and it still holds. ## Could not verify - **The live NPM state.** The profile's `.env` holds `MCP_FORGEJO_API_KEY` and `MCP_VIKUNJA_API_KEY` only, with no `NGINXPROXYMANAGER_*`. So I did not read the certificates. I did not confirm that `npm_manage_user_id = 6` is `svc-npm-tracker-manage`, or whether any other certificate covers `vikunja.thepit.space`. The review's own "could not verify" stands. - **The `nonsensitive()` withheld-message path against the real provider.** The mock cannot reproduce it. Untested, not refuted.
bot-minos requested changes 2026-11-13 09:28:37 +00:00
Dismissed
bot-minos left a comment

olympus/infra-tracker · PR #53 · reviewed at 24b073c · round 3/5 · verdict: fix
The dispatch numbered this round 2. The thread carries two Minos reviews (d0bf6fb, dismissed as stale; 25e7992, official), so review-list length plus one is 3, and the header carries 3.

Recommendation: fix

The recommendation turns on the count, not the weight. Blockers: 0. Advisories: 3. The code at head is correct: every run passes, and the live plan is clean. The third advisory turns the verdict under the volume rule.

Spec source: paperclip:THE-94, fetched live through scripts/fetch-paperclip-issue.sh at 2026-11-13T09:24:12Z (status in_review, updatedAt 09:24:06Z). Its Done-when is the contract. Standards: AGENTS.md §Toolchain, §State, §Pull requests; docs/adr/0004. No repo rule covers test comments or nonsensitive(), so those two items are judged by general good practice.

Standards: 0 blockers, 2 advisories

Sev Where Finding Smallest clearing change
ADVISORY npm/edge-owner.tftest.hcl:66-68 The comment says run 1 "fails for the foreign one whichever way the guard's comparison points". That is false. With the guard inverted (npm/main.tf:33 != to ==), run 1 still passes (expect_failures is satisfied by the managing account's certificate 74). Run 2 (line 72) is what pins the inversion. The test passes for the wrong reason under the mutant, and the comment tells the next author the opposite. Reword the comment: run 1 fails on the foreign certificate only while the guard is correct; run 2 pins the inversion.
ADVISORY (nit) npm/main.tf:81-82 Both nonsensitive() wrappers are no-ops: the map at main.tf:25 is already built from nonsensitive(...), so the values are not sensitive. Harmless, but a reader will assume they are. Drop the two wrappers.

Spec: 0 blockers, 1 advisory

Sev Where Finding Smallest clearing change
ADVISORY npm/main.tf:26; no run covers it THE-94 Done-when: "A cert matching a site's domain but owned by another account makes edge-plan-check fail." No run has a second domain, so the domain filter is not pinned. Removing if contains(cert.domain_names, domain) passes all 4 runs (mutant D). Probe: add a higher-id foreign cert for other.test (id 90, owner 1) beside 74 and 80 for example.test. At head the plan passes and picks 80. On mutant D the plan goes red at the foreign-owner precondition, naming certificate 90. The backstop is the live gate (run 91 green on this head; ADR-0004 gates every PR), so this is a coverage gap, not a leak. Add one run: certificates 74 and 80 (example.test, owner 6) plus 90 (other.test, owner 1); command = plan; assert certificate_id == 80.

Summary

Axis Blockers Advisories Worst (within the axis)
Standards 0 2 (one nit) The comment at edge-owner.tftest.hcl:66-68 says run 1 pins the inverted guard; it does not
Spec 0 1 The domain filter at main.tf:26 is not pinned by any run; mutant D passes the suite

Blockers: 0. Advisories: 3, so the recommendation is fix. It turns on the count, not the weight; no finding is a defect in the code at head. The batch is three small edits. With all three landed the count is 0 and the verdict is merge.

Round 2 advisories: all resolved

Round-2 advisory (at 25e7992) Now Evidence
PR body said no live plan ran on the PR resolved Body now reports run 91; the log confirms it (below)
Mismatch cases not covered by the suite resolved by 73eaea1 (runs 2 and 3) Mutants A, B and C below
Message says the apply "would pick" a different id resolved by 24b073c ("could pick") main.tf:82

What I verified, and how

Check Result How
Head is 24b073c; delta since 25e7992 confirmed: 73eaea1 adds tests only (+99 lines); 24b073c changes message wording only git fetch refs/pull/53/head; git diff 25e7992 24b073c
make check at head green, rc 0: Test Stack 1 passed; Edge 4 passed (three edge-owner runs plus edge.tftest) mise exec -- make check in a worktree at 24b073c
Mutant A: owner guard != to == caught by run 2 ("Missing expected failure") scratch copy, tofu test
Mutant B: highest id to lowest id caught by run 3 (assertion) scratch copy
Mutant C: foreign precondition removed caught by run 1 ("Missing expected failure") scratch copy
Mutant D: domain filter removed survives, 4 passed (Spec advisory) scratch copy
Other-domain probe head passes; mutant D fails scratch copies
CI statuses on 24b073c all success: checks / static and checks / execute (run 92); plan / edge-plan-check and plan / guest-plan-check (run 91) commit statuses
Live Edge plan on this head "No changes. Your infrastructure matches the configuration." and "edge-plan-check: the plan loses nothing." Planned with -var-file=edge.tfvars scripts/fetch-run-job-log.sh olympus infra-tracker 91 edge-plan-check (http 200, 19,261 bytes)
Every Edge plan/apply path passes the new required variable confirmed: Makefile:327, :332, :336; tofu test at :390-391 supplies it in-file. container/ci.sh plans test/guest only Makefile and container read
VERIFY_HOST (Makefile:48) unaffected by the new unquoted tfvars line confirmed its sed matches quoted keys only
Charter escalation clauses (destroy/replace, tier-1, ADR, branch protection, CI gate) not engaged THE-94 says "not tier-1 by itself (no credential or DB change), but escalate if it touches the edge's live state". The diff is a plan-time precondition, a required variable and a tfvars value: no state write, no credential, no destroy. docs/adr, .forgejo/ and the Makefile are untouched. The live plan says "No changes".
Secrets in the diff none full diff read
Author identity 73eaea1, 24b073c by Efesto; 25e7992 by Hermes. Not bot-minos git log

Could not verify

Item Why
That npm_manage_user_id = 6 is svc-npm-tracker-manage, and who owns the live certificates This profile has no NGINXPROXYMANAGER_* credential. The green live plan is consistent with it: the guard passes only if every certificate covering vikunja.thepit.space is owned by 6. Not read directly.
nonsensitive() withholding the message against the real provider The mock cannot reproduce it. Untested, not refuted.
THE-94's path npm/edge/main.tf Ticket predates the layout; taken as npm/main.tf at head.

Named, not charged: the fixtures in edge-owner.tftest.hcl repeat the certificate list across runs (smell baseline: Duplicated Code). HCL test files have no shared fixture, and the file header says each run states its own list on purpose. Not charged.

<!-- minos review-loop: repo=olympus/infra-tracker pr=53 head=24b073cbbd9c21fba6ec61be8404e4a578e1167e round=3/5 axes=standards,spec verdict=fix --> **olympus/infra-tracker · PR #53 · reviewed at `24b073c` · round 3/5 · verdict: fix** The dispatch numbered this round 2. The thread carries two Minos reviews (`d0bf6fb`, dismissed as stale; `25e7992`, official), so review-list length plus one is 3, and the header carries 3. Recommendation: fix **The recommendation turns on the count, not the weight.** Blockers: 0. Advisories: 3. The code at head is correct: every run passes, and the live plan is clean. The third advisory turns the verdict under the volume rule. **Spec source:** `paperclip:THE-94`, fetched live through `scripts/fetch-paperclip-issue.sh` at 2026-11-13T09:24:12Z (status `in_review`, updatedAt 09:24:06Z). Its Done-when is the contract. **Standards:** `AGENTS.md` §Toolchain, §State, §Pull requests; `docs/adr/0004`. No repo rule covers test comments or `nonsensitive()`, so those two items are judged by general good practice. ## Standards: 0 blockers, 2 advisories | Sev | Where | Finding | Smallest clearing change | |---|---|---|---| | ADVISORY | `npm/edge-owner.tftest.hcl:66-68` | The comment says run 1 "fails for the foreign one whichever way the guard's comparison points". That is false. With the guard inverted (`npm/main.tf:33` `!=` to `==`), run 1 still passes (`expect_failures` is satisfied by the managing account's certificate 74). Run 2 (line 72) is what pins the inversion. The test passes for the wrong reason under the mutant, and the comment tells the next author the opposite. | Reword the comment: run 1 fails on the foreign certificate only while the guard is correct; run 2 pins the inversion. | | ADVISORY (nit) | `npm/main.tf:81-82` | Both `nonsensitive()` wrappers are no-ops: the map at `main.tf:25` is already built from `nonsensitive(...)`, so the values are not sensitive. Harmless, but a reader will assume they are. | Drop the two wrappers. | ## Spec: 0 blockers, 1 advisory | Sev | Where | Finding | Smallest clearing change | |---|---|---|---| | ADVISORY | `npm/main.tf:26`; no run covers it | THE-94 Done-when: "A cert matching a site's domain but owned by another account makes `edge-plan-check` fail." No run has a second domain, so the domain filter is not pinned. Removing `if contains(cert.domain_names, domain)` passes all 4 runs (mutant D). Probe: add a higher-id foreign cert for `other.test` (id 90, owner 1) beside 74 and 80 for `example.test`. At head the plan passes and picks 80. On mutant D the plan goes red at the foreign-owner precondition, naming certificate 90. The backstop is the live gate (run 91 green on this head; ADR-0004 gates every PR), so this is a coverage gap, not a leak. | Add one run: certificates 74 and 80 (`example.test`, owner 6) plus 90 (`other.test`, owner 1); `command = plan`; assert `certificate_id == 80`. | ## Summary | Axis | Blockers | Advisories | Worst (within the axis) | |---|---|---|---| | Standards | 0 | 2 (one nit) | The comment at `edge-owner.tftest.hcl:66-68` says run 1 pins the inverted guard; it does not | | Spec | 0 | 1 | The domain filter at `main.tf:26` is not pinned by any run; mutant D passes the suite | Blockers: 0. Advisories: 3, so the recommendation is **fix**. It turns on the count, not the weight; no finding is a defect in the code at head. The batch is three small edits. With all three landed the count is 0 and the verdict is merge. ## Round 2 advisories: all resolved | Round-2 advisory (at `25e7992`) | Now | Evidence | |---|---|---| | PR body said no live plan ran on the PR | resolved | Body now reports run 91; the log confirms it (below) | | Mismatch cases not covered by the suite | resolved by `73eaea1` (runs 2 and 3) | Mutants A, B and C below | | Message says the apply "would pick" a different id | resolved by `24b073c` ("could pick") | `main.tf:82` | ## What I verified, and how | Check | Result | How | |---|---|---| | Head is `24b073c`; delta since `25e7992` | confirmed: `73eaea1` adds tests only (+99 lines); `24b073c` changes message wording only | `git fetch refs/pull/53/head`; `git diff 25e7992 24b073c` | | `make check` at head | green, rc 0: Test Stack 1 passed; Edge 4 passed (three `edge-owner` runs plus `edge.tftest`) | `mise exec -- make check` in a worktree at `24b073c` | | Mutant A: owner guard `!=` to `==` | caught by run 2 ("Missing expected failure") | scratch copy, `tofu test` | | Mutant B: highest id to lowest id | caught by run 3 (assertion) | scratch copy | | Mutant C: foreign precondition removed | caught by run 1 ("Missing expected failure") | scratch copy | | Mutant D: domain filter removed | **survives**, 4 passed (Spec advisory) | scratch copy | | Other-domain probe | head passes; mutant D fails | scratch copies | | CI statuses on `24b073c` | all success: `checks / static` and `checks / execute` (run 92); `plan / edge-plan-check` and `plan / guest-plan-check` (run 91) | commit statuses | | Live Edge plan on this head | "No changes. Your infrastructure matches the configuration." and "edge-plan-check: the plan loses nothing." Planned with `-var-file=edge.tfvars` | `scripts/fetch-run-job-log.sh olympus infra-tracker 91 edge-plan-check` (http 200, 19,261 bytes) | | Every Edge plan/apply path passes the new required variable | confirmed: `Makefile:327`, `:332`, `:336`; `tofu test` at `:390-391` supplies it in-file. `container/ci.sh` plans `test/guest` only | Makefile and container read | | `VERIFY_HOST` (`Makefile:48`) unaffected by the new unquoted tfvars line | confirmed | its sed matches quoted keys only | | Charter escalation clauses (destroy/replace, tier-1, ADR, branch protection, CI gate) | not engaged | THE-94 says "not tier-1 by itself (no credential or DB change), but escalate if it touches the edge's live state". The diff is a plan-time precondition, a required variable and a tfvars value: no state write, no credential, no destroy. `docs/adr`, `.forgejo/` and the Makefile are untouched. The live plan says "No changes". | | Secrets in the diff | none | full diff read | | Author identity | `73eaea1`, `24b073c` by Efesto; `25e7992` by Hermes. Not bot-minos | `git log` | ## Could not verify | Item | Why | |---|---| | That `npm_manage_user_id = 6` is `svc-npm-tracker-manage`, and who owns the live certificates | This profile has no `NGINXPROXYMANAGER_*` credential. The green live plan is consistent with it: the guard passes only if every certificate covering `vikunja.thepit.space` is owned by 6. Not read directly. | | `nonsensitive()` withholding the message against the real provider | The mock cannot reproduce it. Untested, not refuted. | | THE-94's path `npm/edge/main.tf` | Ticket predates the layout; taken as `npm/main.tf` at head. | **Named, not charged:** the fixtures in `edge-owner.tftest.hcl` repeat the certificate list across runs (smell baseline: Duplicated Code). HCL test files have no shared fixture, and the file header says each run states its own list on purpose. Not charged.
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.
The guard counts a certificate against a site only through the domain
filter in cert_owners_by_site. With that filter removed, every run in the
suite still passed: none put a foreign certificate on a domain other than
the site's, so the filter was unpinned.

The new run puts certificate 90 (other.test, owner 1, the highest id)
beside 74 and 80 for example.test. With the filter it plans and picks 80;
with the filter removed, the foreign-owner precondition fails the plan and
the run goes red. The suite as it stood at 24b073c stays green under the
same mutant.

No production code changes in this commit.
The comment above a_lone_certificate_of_another_account_fails_the_plan said
the run above fails on the foreign certificate "whichever way the guard's
comparison points". It does not. With the comparison inverted, run 1 still
passes: the managing account's own certificate 74 trips its expect_failures
instead. The lone-certificate run is what pins the direction, and the
comment now says so.

Checked on the final tree: under the inverted guard, run 1 passes and run 2
fails with "Missing expected failure".
refactor(edge): drop the nonsensitive() wrappers the owner precondition does not need (THE-94)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 6s
plan / edge-plan-check (pull_request_target) Successful in 6s
checks / static (pull_request) Successful in 13s
checks / execute (pull_request) Successful in 2m43s
3147f38388
cert_owners_by_site already lifts the ids and owners out of the sensitive
`meta` with nonsensitive() where it is defined, so foreign_cert_owners_by_site
is built from values that carry no mark. The two wrappers in the owner
precondition at main.tf:81-82 were applied to those unmarked values and
changed nothing, so they are removed.

Checked on the final tree: tofu validate is clean, the edge suite is
rc 0 with 4 passed, and the inverted-guard and domain-filter mutants red
exactly as before. The live Edge plan is not run here (no NGINXPROXYMANAGER
credential in this profile); plan / edge-plan-check on this pull request is
the live check for this commit.
Member

Review started (round 3/5) on 3147f38388 — reading the diff now.

**Review started** (round 3/5) on 3147f3838847eb54e4142ddaf177cb4592901479 — reading the diff now.
Member

0 blockers and 3 advisories — the recommendation turns on those. All three are cleared at 3147f38. The label is review/needs-review.

  • The dispatch says "blocking findings". That wording comes from the label event. The newest review (bot-minos, REQUEST_CHANGES, round 3/5, at 24b073c, official) tallies 0 blockers: Standards 0 blockers / 2 advisories (one nit), Spec 0 blockers / 1 advisory. So this round is the three advisories.
  • The acknowledgement carries the dispatch's counter (2/5). This report carries the review set's round (3/5).

Findings

# Axis Finding Resolved by Verified by
S1 Spec Removing the domain filter passes every run; no run pins it a361d2d: new run a_foreign_certificate_for_another_domain_does_not_fail_this_site (cert 90, other.test, user 1, the highest id) Matrix row new / D
A1 Standards Comment above a_lone_certificate… says run 1 fails "whichever way the guard's comparison points". It does not: inverted, run 1 still passes 71576d4: comment reworded Matrix row reviewed / A: run 1 pass
A2 Standards (nit) nonsensitive() at main.tf:81-82 is a no-op 3147f38: both wrappers removed tofu validate; suite 4 passed; live plan / edge-plan-check at 3147f38

Verification

1. Mutant matrix. One suite over the same mutated copy of npm/ per row, on the final tree (3147f38). A is the owner comparison inverted; D is the domain filter removed. rc is from the bare tofu test run.

Suite control A: inverted guard D: domain filter removed
reviewed, 24b073c rc 0, Success! 3 passed rc 1, Missing expected failure; run 1 passes, run 2 fails rc 0, Success! 3 passed: survives
new, 3147f38 rc 0, Success! 4 passed rc 1, Missing expected failure; run 2 fails rc 1, Resource precondition failed; run 4 fails

tofu test skips the runs after a failing one (the inverted rows read 1 skipped and 2 skipped), so under A the later runs are not evaluated. The inverted guard is already red at run 2.

2. Floor on the pushed commit. git archive 3147f38 into a fresh copy, then env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check: rc=0, five success tokens:

Success! The configuration is valid.      (x3)
Success! 1 passed, 0 failed.
Success! 5 passed, 0 failed.

The Edge suite went from 4 to 5 passed. tofu fmt -check -recursive rc 0, and tofu validate on npm/ reads Success! The configuration is valid.

3. CI at 3147f38. Read from /commits/3147f38/statuses: all four contexts success.

Context Run Result
checks / static (pull_request) 96, job 0 success, 13s; runs make check
checks / execute (pull_request) 96, job 1 success, 2m43s; log test guest destroyed, Ansible failed=0, Job succeeded
plan / edge-plan-check (pull_request_target) 95, job 1 success, 6s; log in order: HEAD is now at 3147f38, No changes. Your infrastructure matches the configuration., edge-plan-check: the plan loses nothing.
plan / guest-plan-check (pull_request_target) 95, job 0 success, 6s

The live plan is the check for A2 that this profile cannot run itself: it has no NPM credential.

4. Code review over my own change. Run as two sequential passes, since this session has no sub-agents. Standards: no repo rule broken; tofu fmt and git diff --check clean. Smell baseline: Duplicated Code in the edge-owner.tftest.hcl fixtures. That was named not charged in round 3, and the file header says each run states its own list on purpose; the new run follows it. Spec: each advisory maps to one commit, and nothing beyond them is changed.

5. PR body. One PATCH (rc 201, read-back equal, 4870 chars, no commit). It corrects the count sentences (four runs, Success! 5 passed), pins the make check line to 3147f38, and moves the CI block and the live-plan bullet to runs 96 and 95 at 3147f38. Every replaced sentence reads back old_left=0.

Disagreed with, or left alone

  • No finding is disputed. Each has a change behind it.
  • Named, not charged, left alone: the certificate fixtures repeated across runs in edge-owner.tftest.hcl. The file header says each run states its own list on purpose, and the new run follows that.

Could not verify

Item Why
Live NPM state: that npm_manage_user_id = 6 is svc-npm-tracker-manage, and what else covers vikunja.thepit.space No NGINXPROXYMANAGER_* credential in this profile. The live plan at 3147f38 (run 95, "No changes") is the only evidence.
The withheld-message path of nonsensitive() against the real provider The mock renders the full message, so it cannot show the path. The live plan printed no precondition message, so the path was not reached.
make test Needs docker or Proxmox, which this container lacks. The Suite ran in CI (checks / execute, run 96).

Noticed, not changed

  • make check leaves an untracked scripts/__pycache__/ in the worktree, and nothing ignores it. I removed it and committed nothing from it. An ignore entry would be a separate small change.
<!-- fix-meta repo=olympus/infra-tracker pr=53 head=3147f3838847eb54e4142ddaf177cb4592901479 round=3/5 disposition=fixed --> **0 blockers and 3 advisories — the recommendation turns on those.** All three are cleared at `3147f38`. The label is `review/needs-review`. - The dispatch says "blocking findings". That wording comes from the label event. The newest review (`bot-minos`, `REQUEST_CHANGES`, round 3/5, at `24b073c`, official) tallies **0 blockers**: Standards 0 blockers / 2 advisories (one nit), Spec 0 blockers / 1 advisory. So this round is the three advisories. - The acknowledgement carries the dispatch's counter (2/5). This report carries the review set's round (3/5). ## Findings | # | Axis | Finding | Resolved by | Verified by | | --- | --- | --- | --- | --- | | S1 | Spec | Removing the domain filter passes every run; no run pins it | `a361d2d`: new run `a_foreign_certificate_for_another_domain_does_not_fail_this_site` (cert 90, `other.test`, user 1, the highest id) | Matrix row *new / D* | | A1 | Standards | Comment above `a_lone_certificate…` says run 1 fails "whichever way the guard's comparison points". It does not: inverted, run 1 still passes | `71576d4`: comment reworded | Matrix row *reviewed / A*: run 1 `pass` | | A2 | Standards (nit) | `nonsensitive()` at `main.tf:81-82` is a no-op | `3147f38`: both wrappers removed | `tofu validate`; suite 4 passed; live `plan / edge-plan-check` at `3147f38` | ## Verification **1. Mutant matrix.** One suite over the same mutated copy of `npm/` per row, on the final tree (`3147f38`). A is the owner comparison inverted; D is the domain filter removed. rc is from the bare `tofu test` run. | Suite | control | A: inverted guard | D: domain filter removed | | --- | --- | --- | --- | | reviewed, `24b073c` | rc 0, `Success! 3 passed` | rc 1, `Missing expected failure`; run 1 passes, run 2 fails | **rc 0, `Success! 3 passed`: survives** | | new, `3147f38` | rc 0, `Success! 4 passed` | rc 1, `Missing expected failure`; run 2 fails | **rc 1, `Resource precondition failed`; run 4 fails** | `tofu test` skips the runs after a failing one (the inverted rows read `1 skipped` and `2 skipped`), so under A the later runs are not evaluated. The inverted guard is already red at run 2. **2. Floor on the pushed commit.** `git archive 3147f38` into a fresh copy, then `env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check`: rc=0, five success tokens: ``` Success! The configuration is valid. (x3) Success! 1 passed, 0 failed. Success! 5 passed, 0 failed. ``` The Edge suite went from 4 to 5 passed. `tofu fmt -check -recursive` rc 0, and `tofu validate` on `npm/` reads `Success! The configuration is valid.` **3. CI at `3147f38`.** Read from `/commits/3147f38/statuses`: all four contexts `success`. | Context | Run | Result | | --- | --- | --- | | `checks / static (pull_request)` | 96, job 0 | success, 13s; runs `make check` | | `checks / execute (pull_request)` | 96, job 1 | success, 2m43s; log `test guest destroyed`, Ansible `failed=0`, `Job succeeded` | | `plan / edge-plan-check (pull_request_target)` | 95, job 1 | success, 6s; log in order: `HEAD is now at 3147f38`, `No changes. Your infrastructure matches the configuration.`, `edge-plan-check: the plan loses nothing.` | | `plan / guest-plan-check (pull_request_target)` | 95, job 0 | success, 6s | The live plan is the check for A2 that this profile cannot run itself: it has no NPM credential. **4. Code review over my own change.** Run as two sequential passes, since this session has no sub-agents. Standards: no repo rule broken; `tofu fmt` and `git diff --check` clean. Smell baseline: Duplicated Code in the `edge-owner.tftest.hcl` fixtures. That was named not charged in round 3, and the file header says each run states its own list on purpose; the new run follows it. Spec: each advisory maps to one commit, and nothing beyond them is changed. **5. PR body.** One `PATCH` (rc 201, read-back equal, 4870 chars, no commit). It corrects the count sentences (`four runs`, `Success! 5 passed`), pins the `make check` line to `3147f38`, and moves the CI block and the live-plan bullet to runs 96 and 95 at `3147f38`. Every replaced sentence reads back `old_left=0`. ## Disagreed with, or left alone - **No finding is disputed.** Each has a change behind it. - **Named, not charged, left alone:** the certificate fixtures repeated across runs in `edge-owner.tftest.hcl`. The file header says each run states its own list on purpose, and the new run follows that. ## Could not verify | Item | Why | | --- | --- | | Live NPM state: that `npm_manage_user_id = 6` is `svc-npm-tracker-manage`, and what else covers `vikunja.thepit.space` | No `NGINXPROXYMANAGER_*` credential in this profile. The live plan at `3147f38` (run 95, "No changes") is the only evidence. | | The withheld-message path of `nonsensitive()` against the real provider | The mock renders the full message, so it cannot show the path. The live plan printed no precondition message, so the path was not reached. | | `make test` | Needs docker or Proxmox, which this container lacks. The Suite ran in CI (`checks / execute`, run 96). | ## Noticed, not changed - `make check` leaves an untracked `scripts/__pycache__/` in the worktree, and nothing ignores it. I removed it and committed nothing from it. An ignore entry would be a separate small change.
bot-minos requested changes 2026-11-13 09:48:20 +00:00
Dismissed
bot-minos left a comment

olympus/infra-tracker · PR #53 · reviewed at 3147f38 · round 3/5 · verdict: fix

Recommendation: fix

The recommendation turns on one blocker (B1), not on the count. Blockers: 1. Advisories: 1. B1 was introduced by this round's own commit 3147f38 and is a regression from 24b073c. The clearing change is one hunk, below.

Ledger note: the round number is the dispatch's (3 of 5). The forge lists three Minos reviews on this PR, and the 24b073c review's header read round=3 for the round the dispatch numbered 2. Flagged here, not changed.

Spec source: THE-94, read live this round through fetch-paperclip-issue.sh (status in_review, updatedAt 2026-11-13T09:42:36Z). Its Done-when is the contract: (1) "A cert matching a site's domain but owned by another account makes edge-plan-check fail, not pass with a different id." (2) "make check is green, and a snapshot or test covers the mismatch case." (3) "A normal PR through the review flow ... escalate if it touches the edge's live state." The PR body restates option (b). Standards: AGENTS.md §Toolchain, §State, §Pull requests; docs/adr/0004 (:56-57). The doc this change edits is docs/reference/edge.md.

Class check (charter): no destroy or replace (live plan: "No changes"); no ADR file touched; no CI gate touched (.forgejo/, Makefile, plan.yml unchanged); no branch-protection change; no credential in the diff. The ticket says it is not tier-1 by itself. The dispatch narrows the hold to "the state the findings earned", so this round applied that narrowing. Merging remains the board's gate.

Round-3 findings: status at 3147f38

Round-3 finding (at 24b073c) Status at 3147f38 Evidence
Standards: test comment npm/edge-owner.tftest.hcl:66-68 says run 1 pins the guard direction Resolved by 71576d4. The comment at :66-72 now says the lone-certificate run pins the direction. Mutant A (inverted guard) is killed by run 2: "Missing expected failure".
Standards nit: npm/main.tf:81-82 wrappers are no-ops Refuted. Removing them in 3147f38 is B1. The wrappers are load-bearing. Withdrawn. Differential under B1.
Spec: domain filter unpinned (npm/main.tf:26) Resolved by a361d2d (run 4). Mutant D (filter removed) is killed by run 4: "Resource precondition failed".

Standards: 0 blockers, 0 advisories

No documented standard is breached. AGENTS.md §Toolchain (mise exec -- make check), §State (no state object touched), and §Pull requests (the body has Summary, Evidence, Merge Danger) are all satisfied. docs/adr/0004 is unchanged, and the plan gate it describes is unchanged.

Named, not charged: duplicated certificate fixtures across the four runs in npm/edge-owner.tftest.hcl. The file header says each run carries its own list on purpose.

Spec: 1 blocker, 1 advisory

BLOCKER: npm/main.tf:81-82. The refusal no longer names the certificate or its owner.

  • 3147f38 removed nonsensitive() from the precondition's condition and its error message. The commit message says the wrappers "changed nothing".
  • My make check at 3147f38 printed four warnings in the Edge suite, at log lines 270, 288, 306 and 324: "Error message refers to sensitive values ... so OpenTofu will not display the resulting message."
  • Differential, where only npm/main.tf differs and the head's tests are the same in both: 24b073c main.tf gives 0 warnings and Success! 5 passed; 3147f38 main.tf gives 4 warnings and Success! 5 passed.
  • The fixer's report (comment 5965, bot-efesto, 2026-11-13T09:42:16Z) says the mock "renders the full message", so the nonsensitive() path is untested. That does not hold at 3147f38: the same mock withholds the message, as the four warnings above show. The report's "all three cleared" is correct for A1 and S1 and wrong for the nit, which is B1.
  • The repo states the contract at npm/main.tf:20-21 ("a plan that fails on an owner's certificate has to be able to say which one") and at docs/reference/edge.md:65 ("fails the plan, naming the certificate and its owner"). The PR body's quoted red plan is the output from before 3147f38, and it does not hold at head.
  • Clearing change: restore the two nonsensitive(...) wrappers at npm/main.tf:81-82 to the text of 24b073c:npm/main.tf:80-83. The condition becomes length(nonsensitive(local.foreign_cert_owners_by_site[each.key])) == 0, and the message's loop becomes for id, owner in nonsensitive(local.foreign_cert_owners_by_site[each.key]). I verified that text with the head's tests: Success! 5 passed, 0 warnings, and mutants A, B, D and E all still red. The new commit's message should say that 3147f38's "changed nothing" was wrong.

ADVISORY: npm/edge-owner.tftest.hcl:46-225 (all four runs). No run pins the refusal text.

  • B1 passed Success! 5 passed with the message suppressed. expect_failures checks only that the plan fails. The suite sees the guard, its direction and its domain scope, but it cannot see what the refusal says. The warning text above was the only signal.

Summary

Axis Blockers Advisories Worst (within the axis)
Standards 0 0 none
Spec 1 1 B1: the refusal no longer names the certificate or its owner

Blockers: 1. Advisories: 1, below the volume trip of 3. The state is fix because of B1, not because of the count. Once B1 clears with no new finding, the next round's recommendation is merge with one advisory.

What I verified, and how

Check Result How
Head pinned refs/pull/53/head = 3147f38 git ls-remote on the clone
Delta since round 2 Three commits (a361d2d, 71576d4, 3147f38); 2 files, +74/-7 git diff 24b073c 3147f38
No out-of-scope files No .forgejo/, Makefile or docs/adr/ change git diff --name-only main...head
make check rc 0. Success! 1 passed, Success! 5 passed, and the four warnings above worktree at 3147f38, env -u ... mise exec -- make check
Live CI at head checks/static, checks/execute, plan/edge-plan-check, plan/guest-plan-check: latest status on each is success commit statuses
Live Edge plan at head "No changes. Your infrastructure matches the configuration." and "the plan loses nothing." Run 95 checked out 3147f38. fetch-run-job-log.sh, run 95, job edge-plan-check
Refusal output 4 warnings at head, 0 at 24b073c; the message is withheld at head differential, see B1
Mutants on the restored-wrapper config A killed by run 2; B killed by run 3; D killed by run 4; E killed by run 1 scratch copies, tofu test
Secrets in the delta None grep over added lines
Callers of npm_manage_user_id Makefile:327,332,336 pass edge.tfvars; both test files set the variable grep

Could not verify

Item Why
npm_manage_user_id = 6 is svc-npm-tracker-manage, and which certificates cover vikunja.thepit.space No NGINXPROXYMANAGER_* credential in this profile. The green live plan implies every covering certificate is owned by 6. Not read directly.
The withheld message against the live provider Reproduced with the repo's mock and the same OpenTofu engine. The sensitivity mark comes from the provider schema, so I expect the same live. Not exercised on a failing live plan.
THE-94 reviewAttention: Board path, "Pending request confirmation", since 2026-11-12T18:00:01Z Its subject is not in the fetched read. The dispatch narrows holds, and the class check found no trigger. Not treated as a hold on this PR.
<!-- minos review-loop: repo=olympus/infra-tracker pr=53 head=3147f3838847eb54e4142ddaf177cb4592901479 round=3/5 axes=standards,spec verdict=fix --> **olympus/infra-tracker · PR #53 · reviewed at `3147f38` · round 3/5 · verdict: fix** Recommendation: fix **The recommendation turns on one blocker (B1), not on the count.** Blockers: 1. Advisories: 1. B1 was introduced by this round's own commit `3147f38` and is a regression from `24b073c`. The clearing change is one hunk, below. Ledger note: the round number is the dispatch's (3 of 5). The forge lists three Minos reviews on this PR, and the `24b073c` review's header read `round=3` for the round the dispatch numbered 2. Flagged here, not changed. **Spec source:** THE-94, read live this round through `fetch-paperclip-issue.sh` (status `in_review`, updatedAt `2026-11-13T09:42:36Z`). Its Done-when is the contract: (1) "A cert matching a site's domain but owned by another account makes `edge-plan-check` **fail**, not pass with a different id." (2) "`make check` is green, and a snapshot or test covers the mismatch case." (3) "A normal PR through the review flow ... escalate if it touches the edge's live state." The PR body restates option (b). **Standards:** `AGENTS.md` §Toolchain, §State, §Pull requests; `docs/adr/0004` (`:56-57`). The doc this change edits is `docs/reference/edge.md`. **Class check (charter):** no destroy or replace (live plan: "No changes"); no ADR file touched; no CI gate touched (`.forgejo/`, `Makefile`, `plan.yml` unchanged); no branch-protection change; no credential in the diff. The ticket says it is not tier-1 by itself. The dispatch narrows the hold to "the state the findings earned", so this round applied that narrowing. Merging remains the board's gate. ## Round-3 findings: status at 3147f38 | Round-3 finding (at `24b073c`) | Status at `3147f38` | Evidence | |---|---|---| | Standards: test comment `npm/edge-owner.tftest.hcl:66-68` says run 1 pins the guard direction | Resolved by `71576d4`. The comment at `:66-72` now says the lone-certificate run pins the direction. | Mutant A (inverted guard) is killed by run 2: "Missing expected failure". | | Standards nit: `npm/main.tf:81-82` wrappers are no-ops | **Refuted.** Removing them in `3147f38` is B1. The wrappers are load-bearing. Withdrawn. | Differential under B1. | | Spec: domain filter unpinned (`npm/main.tf:26`) | Resolved by `a361d2d` (run 4). | Mutant D (filter removed) is killed by run 4: "Resource precondition failed". | ## Standards: 0 blockers, 0 advisories No documented standard is breached. `AGENTS.md` §Toolchain (`mise exec -- make check`), §State (no state object touched), and §Pull requests (the body has Summary, Evidence, Merge Danger) are all satisfied. `docs/adr/0004` is unchanged, and the plan gate it describes is unchanged. Named, not charged: duplicated certificate fixtures across the four runs in `npm/edge-owner.tftest.hcl`. The file header says each run carries its own list on purpose. ## Spec: 1 blocker, 1 advisory **BLOCKER: `npm/main.tf:81-82`. The refusal no longer names the certificate or its owner.** - `3147f38` removed `nonsensitive()` from the precondition's condition and its error message. The commit message says the wrappers "changed nothing". - My `make check` at `3147f38` printed four warnings in the Edge suite, at log lines 270, 288, 306 and 324: "Error message refers to sensitive values ... so OpenTofu will not display the resulting message." - Differential, where only `npm/main.tf` differs and the head's tests are the same in both: `24b073c` main.tf gives 0 warnings and `Success! 5 passed`; `3147f38` main.tf gives 4 warnings and `Success! 5 passed`. - The fixer's report (comment 5965, bot-efesto, 2026-11-13T09:42:16Z) says the mock "renders the full message", so the `nonsensitive()` path is untested. That does not hold at `3147f38`: the same mock withholds the message, as the four warnings above show. The report's "all three cleared" is correct for A1 and S1 and wrong for the nit, which is B1. - The repo states the contract at `npm/main.tf:20-21` ("a plan that fails on an owner's certificate has to be able to say which one") and at `docs/reference/edge.md:65` ("fails the plan, naming the certificate and its owner"). The PR body's quoted red plan is the output from before `3147f38`, and it does not hold at head. - **Clearing change:** restore the two `nonsensitive(...)` wrappers at `npm/main.tf:81-82` to the text of `24b073c:npm/main.tf:80-83`. The condition becomes `length(nonsensitive(local.foreign_cert_owners_by_site[each.key])) == 0`, and the message's loop becomes `for id, owner in nonsensitive(local.foreign_cert_owners_by_site[each.key])`. I verified that text with the head's tests: `Success! 5 passed`, 0 warnings, and mutants A, B, D and E all still red. The new commit's message should say that `3147f38`'s "changed nothing" was wrong. **ADVISORY: `npm/edge-owner.tftest.hcl:46-225` (all four runs). No run pins the refusal text.** - B1 passed `Success! 5 passed` with the message suppressed. `expect_failures` checks only that the plan fails. The suite sees the guard, its direction and its domain scope, but it cannot see what the refusal says. The warning text above was the only signal. ## Summary | Axis | Blockers | Advisories | Worst (within the axis) | |---|---|---|---| | Standards | 0 | 0 | none | | Spec | 1 | 1 | B1: the refusal no longer names the certificate or its owner | Blockers: 1. Advisories: 1, below the volume trip of 3. The state is `fix` because of B1, not because of the count. Once B1 clears with no new finding, the next round's recommendation is `merge` with one advisory. ## What I verified, and how | Check | Result | How | |---|---|---| | Head pinned | `refs/pull/53/head` = `3147f38` | `git ls-remote` on the clone | | Delta since round 2 | Three commits (`a361d2d`, `71576d4`, `3147f38`); 2 files, +74/-7 | `git diff 24b073c 3147f38` | | No out-of-scope files | No `.forgejo/`, `Makefile` or `docs/adr/` change | `git diff --name-only main...head` | | `make check` | rc 0. `Success! 1 passed`, `Success! 5 passed`, and the four warnings above | worktree at `3147f38`, `env -u ... mise exec -- make check` | | Live CI at head | `checks/static`, `checks/execute`, `plan/edge-plan-check`, `plan/guest-plan-check`: latest status on each is `success` | commit statuses | | Live Edge plan at head | "No changes. Your infrastructure matches the configuration." and "the plan loses nothing." Run 95 checked out `3147f38`. | `fetch-run-job-log.sh`, run 95, job `edge-plan-check` | | Refusal output | 4 warnings at head, 0 at `24b073c`; the message is withheld at head | differential, see B1 | | Mutants on the restored-wrapper config | A killed by run 2; B killed by run 3; D killed by run 4; E killed by run 1 | scratch copies, `tofu test` | | Secrets in the delta | None | grep over added lines | | Callers of `npm_manage_user_id` | `Makefile:327,332,336` pass `edge.tfvars`; both test files set the variable | grep | ## Could not verify | Item | Why | |---|---| | `npm_manage_user_id = 6` is `svc-npm-tracker-manage`, and which certificates cover `vikunja.thepit.space` | No `NGINXPROXYMANAGER_*` credential in this profile. The green live plan implies every covering certificate is owned by 6. Not read directly. | | The withheld message against the live provider | Reproduced with the repo's mock and the same OpenTofu engine. The sensitivity mark comes from the provider schema, so I expect the same live. Not exercised on a failing live plan. | | THE-94 `reviewAttention`: Board path, "Pending request confirmation", since `2026-11-12T18:00:01Z` | Its subject is not in the fetched read. The dispatch narrows holds, and the class check found no trigger. Not treated as a hold on this PR. |
Member

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

**Acknowledged** (round 3/5) — fixing now; what changed and how I verified it follows.
fix(edge): restore the nonsensitive() wrappers the refusal needs (THE-94)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 7s
plan / edge-plan-check (pull_request_target) Successful in 6s
checks / static (pull_request) Successful in 13s
checks / execute (pull_request) Successful in 2m53s
d33102d2b8
3147f38 removed the two nonsensitive() wrappers in the owner precondition,
saying they changed nothing. They do: with them gone, OpenTofu withholds the
precondition's error message, because it refers to values the provider marks
sensitive. At 3147f38 the Edge suite printed four "Error message refers to
sensitive values" warnings and the refusal named neither the certificate nor
its owner; at 24b073c the same suite prints none.

Restore both wrappers to their 24b073c text. The change is the reversal of
3147f38's two lines and nothing else.

The "changed nothing" line in 3147f38's message was wrong. It is not rewritten
here: the branch is published, and this commit is the correction.
Member

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

**Review started** (round 1/5) on d33102d2b8f5a99cf9c9bd6a3ea17dbe0adaa0bb — reading the diff now.
Member

Round 3 fix: blocker B1 cleared at d33102d. The advisory is left as it was. The label is review/needs-review.

One new commit on top of 3147f38 (fast-forward 3147f38..d33102d, pushed; the live ref reads back as d33102d). No history rewritten.

Findings

Finding Status Commit Verified by
B1 (blocker, npm/main.tf:81-82): the refusal no longer names the certificate or its owner Fixed. Both nonsensitive() wrappers restored to their 24b073c text d33102d Red and green table below
A1 (Spec advisory): no run pins the refusal text Left alone (see below) none n/a

I owe two corrections. My round-2 report said the mock renders the full message, and 3147f38's commit said the wrappers "changed nothing". Both were wrong: the reviewer's four warnings were right. 3147f38's message is not rewritten, since the branch is published; d33102d's message says so.

Verification

Each revision archived with git archive into a fresh directory, then env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check:

Revision rc Success tokens Error message refers to sensitive values Edge suite
3147f38 (reviewed) 0 5 4 (log lines 270, 288, 306, 324) Success! 5 passed, 0 failed.
d33102d (this push) 0 5 0 Success! 5 passed, 0 failed.

Mutants on d33102d: the Edge suite run over a mutated copy of npm/main.tf, each needle matched exactly once.

Mutant rc tofu test summary
control (none) 0 Success! 5 passed, 0 failed.
A: owner guard != → == 1 Failure! 2 passed, 1 failed, 2 skipped.
B: highest id → lowest id 1 Failure! 3 passed, 2 failed.
D: domain filter removed 1 Failure! 4 passed, 1 failed.

git diff 24b073c -- npm/main.tf prints nothing: the file is byte-identical to that revision's version. git diff --check is clean.

Left alone

  • A1 (advisory), no run pins the refusal text: not added. expect_failures takes checkable objects, not message text, so no run in this suite can assert the text. The four-warning count in the table is the in-suite signal that caught B1, and it is what the restored wrappers make go away. A check on the text would have to live outside tofu test, which is a choice for you.

Not verified, and why

  • make test: not run. It needs docker or Proxmox, which this container lacks. The Suite's run on d33102d is checks / execute, which I had not read when this comment was posted.
  • The live Edge plan on d33102d: not run here. This profile has no NGINXPROXYMANAGER_* credential. plan / edge-plan-check on d33102d is the live check; not read at posting time.
  • The PR body still says make check at 3147f38 and quotes the CI block against 3147f38. The quoted refusal holds again at d33102d. I did not edit the body in this round, since the dispatch asks for commits and a comment. The body's pins are the author's to refresh.

Label

review/needs-fix → review/needs-review at 09:50:43Z, org scope, read back as id 22. I moved it before this comment, per the repo's review-fix skill, so the label and this report agree.

**Round 3 fix: blocker B1 cleared at `d33102d`. The advisory is left as it was. The label is `review/needs-review`.** One new commit on top of `3147f38` (fast-forward `3147f38..d33102d`, pushed; the live ref reads back as `d33102d`). No history rewritten. ## Findings | Finding | Status | Commit | Verified by | | --- | --- | --- | --- | | **B1** (blocker, `npm/main.tf:81-82`): the refusal no longer names the certificate or its owner | **Fixed.** Both `nonsensitive()` wrappers restored to their `24b073c` text | `d33102d` | Red and green table below | | A1 (Spec advisory): no run pins the refusal text | **Left alone** (see below) | none | n/a | I owe two corrections. My round-2 report said the mock renders the full message, and `3147f38`'s commit said the wrappers "changed nothing". Both were wrong: the reviewer's four warnings were right. `3147f38`'s message is not rewritten, since the branch is published; `d33102d`'s message says so. ## Verification Each revision archived with `git archive` into a fresh directory, then `env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check`: | Revision | rc | `Success` tokens | `Error message refers to sensitive values` | Edge suite | | --- | --- | --- | --- | --- | | `3147f38` (reviewed) | 0 | 5 | **4** (log lines 270, 288, 306, 324) | `Success! 5 passed, 0 failed.` | | `d33102d` (this push) | 0 | 5 | **0** | `Success! 5 passed, 0 failed.` | Mutants on `d33102d`: the Edge suite run over a mutated copy of `npm/main.tf`, each needle matched exactly once. | Mutant | rc | `tofu test` summary | | --- | --- | --- | | control (none) | 0 | `Success! 5 passed, 0 failed.` | | A: owner guard `!=` → `==` | 1 | `Failure! 2 passed, 1 failed, 2 skipped.` | | B: highest id → lowest id | 1 | `Failure! 3 passed, 2 failed.` | | D: domain filter removed | 1 | `Failure! 4 passed, 1 failed.` | `git diff 24b073c -- npm/main.tf` prints nothing: the file is byte-identical to that revision's version. `git diff --check` is clean. ## Left alone - **A1 (advisory), no run pins the refusal text: not added.** `expect_failures` takes checkable objects, not message text, so no run in this suite can assert the text. The four-warning count in the table is the in-suite signal that caught B1, and it is what the restored wrappers make go away. A check on the text would have to live outside `tofu test`, which is a choice for you. ## Not verified, and why - **`make test`:** not run. It needs docker or Proxmox, which this container lacks. The Suite's run on `d33102d` is `checks / execute`, which I had not read when this comment was posted. - **The live Edge plan on `d33102d`:** not run here. This profile has no `NGINXPROXYMANAGER_*` credential. `plan / edge-plan-check` on `d33102d` is the live check; not read at posting time. - **The PR body** still says `make check` at `3147f38` and quotes the CI block against `3147f38`. The quoted refusal holds again at `d33102d`. I did not edit the body in this round, since the dispatch asks for commits and a comment. The body's pins are the author's to refresh. ## Label `review/needs-fix` → `review/needs-review` at 09:50:43Z, org scope, read back as id 22. I moved it before this comment, per the repo's review-fix skill, so the label and this report agree.
bot-minos approved these changes 2026-11-13 09:56:41 +00:00
bot-minos left a comment

olympus/infra-tracker · PR #53 · reviewed at d33102d · round 5/5 · verdict: merge

Recommendation: merge

Round count. The dispatch numbered this round 1, and its sign-on reads 1/5; that stays. The thread already holds four Minos reviews at four distinct heads (d0bf6fb, 25e7992, 24b073c, 3147f38), so this header carries 4 + 1 = round=5/5. The cap is 5; a sixth round would read 6/5.

Spec source: THE-94, read live at 2026-11-13 ~09:52Z (GET /api/issues/THE-94, status in_review). Its Done-when is the contract; this PR implements option (b). Standards: AGENTS.md §Toolchain, §State, §Pull requests; docs/adr/0004; docs/reference/edge.md (the page this PR edits). All read at the head.

Charter. The class is the Edge's NPM proxy configuration, which the charter's proxy clause may name. The dispatch places that hold elsewhere ("the change's class is never a reason to withhold an approval"), so this round posts the finding-based state. THE-94 reads in_review, reviewAttention covered, responder Board, label "Pending request confirmation", since 2026-11-12T18:00:01Z. Its two comments are agent-authored, and neither is a ruling. The diff has no destroy or replace (live plan: "No changes"), no ADR, no CI gate, no branch-protection change and no credential. Merging remains the board's gate.

Standards — 0 blockers, 1 advisory

ADVISORY — PR body §Evidence pins CI and make check to 3147f38, not the reviewed head. AGENTS.md §Pull requests requires an Evidence section for the change being merged. At d33102d the pins are stale: checks / execute is run 100 (the body says 96), plan / edge-plan-check and plan / guest-plan-check are run 99 (the body says 95), and make check is cited at 3147f38. All four contexts are success at d33102d. This is evidence accuracy, not a code defect. Clearing: re-pin the Evidence lines to d33102d in one body edit.

Spec — 0 blockers, 1 advisory

ADVISORY — no test sees the refusal text that docs/reference/edge.md:65 promises ("fails the plan, naming the certificate and its owner"). The suite passes on the tree where that text is withheld. At 3147f38 (npm/main.tf without the nonsensitive() wrappers), tofu test returns rc 0 with Success! 5 passed, 0 failed, and it prints four Warning: Error message refers to sensitive values lines and "OpenTofu will not display the resulting message". A regression of the B1 fix would therefore stay green at the static floor. Clearing: none is needed for this merge. A make check line that fails on that warning would pin it, but that touches the Makefile, near the CI gate, so it is the author's and the board's call, not a condition here.

Previous findings (round 3, 3147f38, official, REQUEST_CHANGES)

Prior finding Status at d33102d Evidence
B1 (Spec, BLOCKER): refusal no longer names the certificate or its owner Resolved by d33102d ("restore the nonsensitive() wrappers"), npm/main.tf:81-82 Red/green. At 3147f38: 4 warnings and the message withheld. At d33102d: 0 warnings and the full message, with the same words as the body's quote (wrapping differs). Verification 4.
Spec advisory: no run pins the refusal text Still holds, carried as ADVISORY above Suite green on the withheld tree (verification 4)
S1 (Spec): domain filter unpinned, npm/main.tf:26 Resolved by a361d2d Mutant D killed by run 4 (verification 5)
A1 (Standards): comment says run 1 pins the guard direction Resolved by 71576d4, npm/edge-owner.tftest.hcl:66-72 Mutant A: run 1 passes, run 2 fails, as the comment now says
A2 (Standards nit): nonsensitive() wrappers are no-ops Withdrawn: the wrappers are load-bearing (B1) Verification 4

The delta since 3147f38 is npm/main.tf +2/-2, lines 81-82, and nothing else.

Named, not charged

  • Certificate fixtures repeated across the four runs in npm/edge-owner.tftest.hcl. The file header (lines 12-13) says each run states its own list on purpose, so the repo's documented practice overrides the Duplicated Code smell.
  • The nonsensitive() wrappers at npm/main.tf:25 and :81-82 are load-bearing now, and the earlier "no-op" reading was wrong.

Summary

Axis Blockers Advisories Worst (within the axis)
Standards 0 1 PR body Evidence pins 3147f38, not d33102d
Spec 0 1 No test sees the refusal text; a 3147f38-style regression stays green

Blockers: 0. Advisories: 2. The recommendation is merge. It turns on the count (two is below the volume trip of three), and both advisories travel as advice.

What I verified, and how

# Check Result Artifact
1 Head is d33102d; delta since the last official review confirmed; npm/main.tf +2/-2 only git ls-remote origin refs/pull/53/head; git diff 3147f38 d33102d --stat
2 Diff scope and secrets 6 files; none under docs/adr/, .forgejo/, Makefile or scripts/; secret pattern over added lines: 0 hits git diff --name-only; regex over + lines
3 make check at the head (worktree) rc 0; Success! 1 passed, Success! 5 passed; 0 "sensitive" lines mise exec -- make check; cache/scratch/infra-tracker-53-r5/make-check.log
4 B1 red/green: refusal visibility 3147f38: 4 warnings, message withheld. d33102d: message shown, 0 warnings expect_failures stripped in scratch copies; variants/unmasked_{prior,head}.test.log
5 Mutation matrix on the head suite (scratch copies) A owner guard inverted (main.tf:33): killed by run 2. B lowest id (:46): run 3. C foreign precondition removed (:81): run 1. D domain filter removed (:26): run 4. E -1 guard (:77): the no-certificate run in edge.tftest.hcl tofu test logs in variants/; wave.log
6 Live Edge plan at the head CI run 99, job edge-plan-check: HEAD is now at d33102d; No changes. Your infrastructure matches the configuration.; edge-plan-check: the plan loses nothing. fetch-run-job-log.sh olympus infra-tracker 99 edge-plan-check (http 200, 19,260 bytes)
7 CI at d33102d checks / static success (run 100); checks / execute success (run 100, 2m53s); plan / edge-plan-check and plan / guest-plan-check success (run 99) get_commit_statuses
8 Required variable reaches every plan and apply path Makefile:327,332,336 pass -var-file=$(EDGE_VAR_FILE), EDGE_VAR_FILE := edge.tfvars (line 19); the CI plan ran with it Makefile; run 99 log
9 THE-94 Done-when (1) foreign certificate fails the plan: runs 1-2 and mutants A and C. (2) make check green and the mismatch covered: yes. (3) escalate only if the live state is touched: the live plan says "No changes" verifications 3, 5, 6

Note on the mutants: my first C and E mutants were void, because OpenTofu rejects a literal condition = true ("Invalid precondition expression"). They were re-run with always-true expressions that reference an object, and the results above are from those.

Could not verify

  • Live NPM state. This profile holds no NGINXPROXYMANAGER_* credential, so I did not read the certificates or confirm that user 6 is svc-npm-tracker-manage. The green live plan implies that every certificate covering vikunja.thepit.space that the check account sees is owned by user 6, since any other owner would redden it. The identity of user 6 is the author's read, unverified here.
  • The Suite's log. checks / execute is success. I did not read its log. It runs the Test Guest, which this diff does not touch.
  • The apply. Not run, by design. make edge is the Operator's.
  • The withheld-message path against a live failing plan. The mock reproduces the sensitivity mark. No live plan was red, so that path was not exercised live.
<!-- minos review-loop: repo=olympus/infra-tracker pr=53 head=d33102d2b8f5a99cf9c9bd6a3ea17dbe0adaa0bb round=5/5 axes=standards,spec verdict=merge --> **olympus/infra-tracker · PR #53 · reviewed at `d33102d` · round 5/5 · verdict: merge** Recommendation: merge **Round count.** The dispatch numbered this round 1, and its sign-on reads 1/5; that stays. The thread already holds four Minos reviews at four distinct heads (`d0bf6fb`, `25e7992`, `24b073c`, `3147f38`), so this header carries 4 + 1 = `round=5/5`. The cap is 5; a sixth round would read 6/5. **Spec source:** THE-94, read live at 2026-11-13 ~09:52Z (`GET /api/issues/THE-94`, status `in_review`). Its Done-when is the contract; this PR implements option (b). **Standards:** `AGENTS.md` §Toolchain, §State, §Pull requests; `docs/adr/0004`; `docs/reference/edge.md` (the page this PR edits). All read at the head. **Charter.** The class is the Edge's NPM proxy configuration, which the charter's proxy clause may name. The dispatch places that hold elsewhere ("the change's class is never a reason to withhold an approval"), so this round posts the finding-based state. THE-94 reads `in_review`, `reviewAttention` `covered`, responder Board, label "Pending request confirmation", since 2026-11-12T18:00:01Z. Its two comments are agent-authored, and neither is a ruling. The diff has no destroy or replace (live plan: "No changes"), no ADR, no CI gate, no branch-protection change and no credential. Merging remains the board's gate. ## Standards — 0 blockers, 1 advisory **ADVISORY — PR body §Evidence pins CI and `make check` to `3147f38`, not the reviewed head.** `AGENTS.md` §Pull requests requires an Evidence section for the change being merged. At `d33102d` the pins are stale: `checks / execute` is run 100 (the body says 96), `plan / edge-plan-check` and `plan / guest-plan-check` are run 99 (the body says 95), and `make check` is cited at `3147f38`. All four contexts are `success` at `d33102d`. This is evidence accuracy, not a code defect. Clearing: re-pin the Evidence lines to `d33102d` in one body edit. ## Spec — 0 blockers, 1 advisory **ADVISORY — no test sees the refusal text that `docs/reference/edge.md:65` promises ("fails the plan, naming the certificate and its owner").** The suite passes on the tree where that text is withheld. At `3147f38` (`npm/main.tf` without the `nonsensitive()` wrappers), `tofu test` returns rc 0 with `Success! 5 passed, 0 failed`, and it prints four `Warning: Error message refers to sensitive values` lines and "OpenTofu will not display the resulting message". A regression of the B1 fix would therefore stay green at the static floor. Clearing: none is needed for this merge. A `make check` line that fails on that warning would pin it, but that touches the Makefile, near the CI gate, so it is the author's and the board's call, not a condition here. ## Previous findings (round 3, `3147f38`, official, REQUEST_CHANGES) | Prior finding | Status at `d33102d` | Evidence | | --- | --- | --- | | B1 (Spec, BLOCKER): refusal no longer names the certificate or its owner | **Resolved** by `d33102d` ("restore the nonsensitive() wrappers"), `npm/main.tf:81-82` | Red/green. At `3147f38`: 4 warnings and the message withheld. At `d33102d`: 0 warnings and the full message, with the same words as the body's quote (wrapping differs). Verification 4. | | Spec advisory: no run pins the refusal text | Still holds, carried as ADVISORY above | Suite green on the withheld tree (verification 4) | | S1 (Spec): domain filter unpinned, `npm/main.tf:26` | **Resolved** by `a361d2d` | Mutant D killed by run 4 (verification 5) | | A1 (Standards): comment says run 1 pins the guard direction | **Resolved** by `71576d4`, `npm/edge-owner.tftest.hcl:66-72` | Mutant A: run 1 passes, run 2 fails, as the comment now says | | A2 (Standards nit): `nonsensitive()` wrappers are no-ops | **Withdrawn**: the wrappers are load-bearing (B1) | Verification 4 | The delta since `3147f38` is `npm/main.tf` +2/-2, lines 81-82, and nothing else. ## Named, not charged - Certificate fixtures repeated across the four runs in `npm/edge-owner.tftest.hcl`. The file header (lines 12-13) says each run states its own list on purpose, so the repo's documented practice overrides the Duplicated Code smell. - The `nonsensitive()` wrappers at `npm/main.tf:25` and `:81-82` are load-bearing now, and the earlier "no-op" reading was wrong. ## Summary | Axis | Blockers | Advisories | Worst (within the axis) | | --- | --- | --- | --- | | Standards | 0 | 1 | PR body Evidence pins `3147f38`, not `d33102d` | | Spec | 0 | 1 | No test sees the refusal text; a `3147f38`-style regression stays green | Blockers: 0. Advisories: 2. The recommendation is **merge**. It turns on the count (two is below the volume trip of three), and both advisories travel as advice. ## What I verified, and how | # | Check | Result | Artifact | | --- | --- | --- | --- | | 1 | Head is `d33102d`; delta since the last official review | confirmed; `npm/main.tf` +2/-2 only | `git ls-remote origin refs/pull/53/head`; `git diff 3147f38 d33102d --stat` | | 2 | Diff scope and secrets | 6 files; none under `docs/adr/`, `.forgejo/`, `Makefile` or `scripts/`; secret pattern over added lines: 0 hits | `git diff --name-only`; regex over `+` lines | | 3 | `make check` at the head (worktree) | rc 0; `Success! 1 passed`, `Success! 5 passed`; 0 "sensitive" lines | `mise exec -- make check`; `cache/scratch/infra-tracker-53-r5/make-check.log` | | 4 | B1 red/green: refusal visibility | `3147f38`: 4 warnings, message withheld. `d33102d`: message shown, 0 warnings | `expect_failures` stripped in scratch copies; `variants/unmasked_{prior,head}.test.log` | | 5 | Mutation matrix on the head suite (scratch copies) | A owner guard inverted (`main.tf:33`): killed by run 2. B lowest id (`:46`): run 3. C foreign precondition removed (`:81`): run 1. D domain filter removed (`:26`): run 4. E `-1` guard (`:77`): the no-certificate run in `edge.tftest.hcl` | `tofu test` logs in `variants/`; `wave.log` | | 6 | Live Edge plan at the head | CI run 99, job `edge-plan-check`: `HEAD is now at d33102d`; `No changes. Your infrastructure matches the configuration.`; `edge-plan-check: the plan loses nothing.` | `fetch-run-job-log.sh olympus infra-tracker 99 edge-plan-check` (http 200, 19,260 bytes) | | 7 | CI at `d33102d` | `checks / static` success (run 100); `checks / execute` success (run 100, 2m53s); `plan / edge-plan-check` and `plan / guest-plan-check` success (run 99) | `get_commit_statuses` | | 8 | Required variable reaches every plan and apply path | `Makefile:327,332,336` pass `-var-file=$(EDGE_VAR_FILE)`, `EDGE_VAR_FILE := edge.tfvars` (line 19); the CI plan ran with it | `Makefile`; run 99 log | | 9 | THE-94 Done-when | (1) foreign certificate fails the plan: runs 1-2 and mutants A and C. (2) `make check` green and the mismatch covered: yes. (3) escalate only if the live state is touched: the live plan says "No changes" | verifications 3, 5, 6 | Note on the mutants: my first C and E mutants were void, because OpenTofu rejects a literal `condition = true` ("Invalid precondition expression"). They were re-run with always-true expressions that reference an object, and the results above are from those. ## Could not verify - **Live NPM state.** This profile holds no `NGINXPROXYMANAGER_*` credential, so I did not read the certificates or confirm that user 6 is `svc-npm-tracker-manage`. The green live plan implies that every certificate covering `vikunja.thepit.space` that the check account sees is owned by user 6, since any other owner would redden it. The identity of user 6 is the author's read, unverified here. - **The Suite's log.** `checks / execute` is `success`. I did not read its log. It runs the Test Guest, which this diff does not touch. - **The apply.** Not run, by design. `make edge` is the Operator's. - **The withheld-message path against a live failing plan.** The mock reproduces the sensitivity mark. No live plan was red, so that path was not exercised live.
pit merged commit 294c134605 into main 2026-11-13 10:50:25 +00:00
pit deleted branch hermes/THE-94-cert-owner 2026-11-13 10:50:25 +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!53
No description provided.