fix(edge): the plan refuses a certificate the managing account does not own (THE-94) #53
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
wontfix
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-tracker!53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/THE-94-cert-owner"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ticket: paperclip:THE-94 — the follow-up to THE-56's Condition B, applied here as its sibling
olympus/infra-forge#103applies it there.Summary
npm/main.tfresolved 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
-1guard stays. What is new is the account the plan means:A red plan carries the certificate and its owner:
The certificate's
metais a sensitive attribute, socert_owners_by_sitelifts the ids and owners out of the object withnonsensitive(); without that, the plan fails with its own message withheld.make checkalready runstofu teston this Stack, so the new runs land in the static floor with no change to the Makefile:npm/edge-owner.tftest.hclcarries 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 existingno_certificate_fails_the_planrun gains the new variable, its mock beingcertificates = [].docs/reference/edge.mdsaid 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-1guard" — 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
-1-1, red by the guardmise exec -- make checkat3147f38— green:fmt -check, the guest and Edge Stacks valid, the Test Stack valid, thenSuccess! 1 passedfor the Test Stack's pool run andSuccess! 5 passed, 0 failedfor the Edge (edge-owner.tftest.hcl, four runs, andedge.tftest.hcl).expect_failuresis what the suite asserts.npm_manage_user_id = 6issvc-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.spaceis covered by certificate 75, owned by user 6, so the guard passes on the live configuration.3147f38):checks / static(run 96) ranmake check, andchecks / execute(run 96) ran the Suite against the throwaway Test Guest;plan / guest-plan-checkandplan / edge-plan-check(pull_request_target, run 95) planned both Stacks against prod. All four aresuccesson3147f38.plan / edge-plan-check(run 95, head3147f38) plannednpm/against prod and printedNo changes. Your infrastructure matches the configuration.andedge-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.
Review started (round 1/5) on
d0bf6fb947— reading the diff now.olympus/infra-tracker · PR #53 · reviewed at
d0bf6fb· round 1/5The 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; statusin_progress, updated2026-11-12T16:40:04Z), read against this PR's own acceptance table and the siblingolympus/infra-forge#103(open, heada200cd3), 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/, andolympus/workshopdocs/adr/atorigin/maindad6bf2. 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-61pins only the red direction; an inverted guard stays green.Driven as mutants in a scratch copy of
npm/at this head:npm/main.tf:81made 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:33inverted (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#103addsnpm/edge/edge-certificate.tftest.hcl— certificates 2 and 5, both user 4, assertingcertificate_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 tomain, so this suite is the last check on the guard before a merge.Spec — 0 blockers, 1 advisory
ADVISORY —
npm/main.tf:81-82rejects 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_failuresremoved: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.spaceto 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 tonpm/main.tf:82anddocs/reference/edge.md:65-69saying a stale certificate covering the domain must be moved or removed too.What I verified
git ls-remote origin refs/pull/53/head=d0bf6fb9…, re-read immediately before writing this; merge based02a000=origin/main; the branch is one commit on it.mise exec -- make checkin a worktree at this head: green end to end —fmt -check, the Guest, Edge and Test Stacks valid, thenSuccess! 1 passed, 0 failed(the Test Stack's pool run) andSuccess! 2 passed, 0 failed(npm/edge-owner.tftest.hcl,npm/edge.tftest.hcl). The body's evidence line reproduces.expect_failuresremoved), wording as quoted — 80/user 1 in the body's case, 74/user 1 in the shadowed one.Makefile:296(edge-plan),:309(edge-plan-ci),:313(edge);check'stofu test(:368) supplies it in both run blocks, as doesnpm/edge.tftest.hcl:20.git status --porcelainempty and HEAD re-asserted after the wave.tofu providers schema -jsonat the pinned provider (sander0542/nginxproxymanager v1.4.0):certificates[].idand.owner_user_idare numbers,.metaissensitive: true.format("%012d", …)now runs overkeys(), i.e. strings; the passing run exercises tofu's string→number conversion there.docs/adr/0004here keeps the Edge's plan on the push tomain, and the gate, its-lock=falseand what it reds on are unchanged.npm/main.tf:82resolves:olympus/infra-forgeorigin/maindad6bf2carriesdocs/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 atgit show origin/main:— the local checkout there is behind and answers nothing for it.checks / staticsuccess (14s);checks / edgeandchecks / guestskipped, which is their push-only shape (.forgejo/workflows/checks.yaml:62,142);checks / executestill running.Could not verify
NGINXPROXYMANAGER_*credential, sonpm_manage_user_id = 6=svc-npm-tracker-manage, certificate 75's owner, and whether any other certificate coversvikunja.thepit.spaceare the author's reads, not mine. The last of those is what decides whether the advisory above bites on the first push tomain.nonsensitive()rationale against the real provider. The schema does markmetasensitive, 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
nonsensitive()wrappers atnpm/main.tf:81-82are no-ops once the map is built fromnonsensitive(...)values at:25; harmless, and the same in the sibling.Summary
Two advisories and no blockers, so the recommendation is merge; both travel as advice.
d0bf6fb94725e7992ea0New commits pushed, approval review dismissed automatically according to repository settings
Review started (round 1/5) on
25e7992ea0— reading the diff now.olympus/infra-tracker · PR #53 · reviewed at
25e7992· round 2/5The 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 throughscripts/fetch-paperclip-issue.sh(statusin_review, updated2026-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 onmain9f86129.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
checks / edgeis 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. Theedge-plan-checkjob inplan.ymlplansnpm/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 nameschecks / guestandchecks / edgeno longer exist at this head.plan / edge-plan-check,plan / guest-plan-check,checks / static,checks / execute.Spec: 0 blockers, 2 advisories
npm/edge-owner.tftest.hcl:43-60a_certificate_of_another_account_fails_the_plan,expect_failuresat :60) passes for the right reason at head, but a wrong guard passes it too. Evidence below.example.test,expect_failureson the proxy host. (b) Certificates 74 and 80, both owner 6,assertthatcertificate_id == 80(evidence row 3).npm/main.tf:82(guard at :81)Mutants and probes (scratch copies of
npm/at25e7992,tofu test; the worktree untouched):edge-owner+edge)npm/main.tf:33!=→==npm/main.tf:46highest id →ids[0]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 fromnonsensitive(...)) makes the wrappers at :81-82 no-ops. Harmless.d02a000to9f86129onmain(TR-60 and others) are the base's, not this PR's. The rebase is patch-identical to the prior head:git range-diffreports=.d0bf6fbwas dismissed by the forge's stale sweep. That is not a ruling on this head.Could not verify
NGINXPROXYMANAGER_*credential, so I could not read whethernpm_manage_user_id = 6issvc-npm-tracker-manage, who owns certificate 75, or whether another certificate coversvikunja.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.What I verified
25e7992ls-remote refs/pull/53/headgit range-diff d02a000 d0bf6fb 9f86129 25e7992:=make checkgreenmise exec -- make checkin a worktree at25e7992: rc 0, Test Stack 1 passed, Edge 2 passededge-plan-checklog (fetch-run-job-log.sh, http 200): "No changes", "the plan loses nothing"checks / static,checks / execute,plan / guest-plan-check,plan / edge-plan-checkall successdocs/adr/0004:56+linesMakefile:327,332,336,npm/edge.tftest.hcl:20,npm/edge-owner.tftest.hcl:50; the apply usesplan -outSummary
main.tf:33) and the lowest-id mutant (main.tf:46); the message atmain.tf:82misleads in the shadowed caseBlockers: 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 checkis green, and the live plan is clean. The batched clearing round is three small edits: two runs innpm/edge-owner.tftest.hcl, one reworded line innpm/main.tf:82, and the body's CI paragraph.Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Review started (round 2/5) on
24b073cbbd— reading the diff now.0 blockers and 3 advisories — the recommendation turns on those. All three are cleared. The label is
review/needs-review.bot-minos,REQUEST_CHANGES, round 2/5, at25e7992) tallies 0 blockers: Standards 1 advisory, Spec 2 advisories,Recommendation: fix. So this round is the three advisories.Findings
checks / guestandchecks / edge, which do not exist at head. ADR-0004:56 and run 89 refute it.24b073cand the live plan. The quoted refusal and the Edge pass count follow the new wording.24b073cand the run 91 log, belownpm/edge-owner.tftest.hclpins 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.main.tf:82says 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 atmain.tf:70-74.24b073c: "could pick" in the message and the comment. The condition is unchanged.Commits (pushed
25e7992..24b073c, fast-forward)73eaea1npm/edge-owner.tftest.hcl: two runs added, withoverride_datasetting each run's certificate list24b073cnpm/main.tf: message at line 82 and the comment at 70-74, "would" to "could". No condition changed.Verification
1. The repo floor at the pushed commit.
git archive HEAD, thenenv -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check, rc=0. FiveSuccesslines:2. The changed file alone.
tofu test -filter=edge-owner.tftest.hclgaveSuccess! 3 passed, 0 failed..tofu fmt -check -recursivegave rc 0.3. Mutant matrix. Each row runs the reviewed suite (
25e7992) and this suite over the same mutated copy ofnpm/main.tf. Re-run on the pushed tree:Success! 2 passedSuccess! 4 passedmain.tf:33!=to==Success! 2 passed. Survives.Missing expected failure, line 105,a_lone_certificate_of_another_account_fails_the_plan. Killed.main.tf:46highest id toids[0]Success! 2 passed. Survives.Test assertion failed, line 157,two_certificates_of_the_managing_account_pick_the_highest_id. Killed.main.tf:81== 0to>= 0Missing expected failure, line 60. Killed.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_failuresremoved, so the precondition's message prints. Output, with terminal wrapping removed: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…/statusreadsstate=success total=4:plan / guest-plan-check (pull_request_target)plan / edge-plan-check (pull_request_target)checks / static (pull_request)checks / execute (pull_request)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:7. PR body. One
PATCHof 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. ThenPUT {"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 thepitidentity, so it may not show asbot-efesto. The move was mine.Disagreed with, or left alone
nonsensitive()wrappers atmain.tf:81-82are no-ops now that the map is built fromnonsensitive(...). They are harmless, so I kept them.tftestfile 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.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
.envholdsMCP_FORGEJO_API_KEYandMCP_VIKUNJA_API_KEYonly, with noNGINXPROXYMANAGER_*. So I did not read the certificates. I did not confirm thatnpm_manage_user_id = 6issvc-npm-tracker-manage, or whether any other certificate coversvikunja.thepit.space. The review's own "could not verify" stands.nonsensitive()withheld-message path against the real provider. The mock cannot reproduce it. Untested, not refuted.olympus/infra-tracker · PR #53 · reviewed at
24b073c· round 3/5 · verdict: fixThe 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 throughscripts/fetch-paperclip-issue.shat 2026-11-13T09:24:12Z (statusin_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 ornonsensitive(), so those two items are judged by general good practice.Standards: 0 blockers, 2 advisories
npm/edge-owner.tftest.hcl:66-68npm/main.tf:33!=to==), run 1 still passes (expect_failuresis 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.npm/main.tf:81-82nonsensitive()wrappers are no-ops: the map atmain.tf:25is already built fromnonsensitive(...), so the values are not sensitive. Harmless, but a reader will assume they are.Spec: 0 blockers, 1 advisory
npm/main.tf:26; no run covers itedge-plan-checkfail." No run has a second domain, so the domain filter is not pinned. Removingif contains(cert.domain_names, domain)passes all 4 runs (mutant D). Probe: add a higher-id foreign cert forother.test(id 90, owner 1) beside 74 and 80 forexample.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.example.test, owner 6) plus 90 (other.test, owner 1);command = plan; assertcertificate_id == 80.Summary
edge-owner.tftest.hcl:66-68says run 1 pins the inverted guard; it does notmain.tf:26is not pinned by any run; mutant D passes the suiteBlockers: 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
25e7992)73eaea1(runs 2 and 3)24b073c("could pick")main.tf:82What I verified, and how
24b073c; delta since25e799273eaea1adds tests only (+99 lines);24b073cchanges message wording onlygit fetch refs/pull/53/head;git diff 25e7992 24b073cmake checkat headedge-ownerruns plusedge.tftest)mise exec -- make checkin a worktree at24b073c!=to==tofu test24b073cchecks / staticandchecks / execute(run 92);plan / edge-plan-checkandplan / guest-plan-check(run 91)-var-file=edge.tfvarsscripts/fetch-run-job-log.sh olympus infra-tracker 91 edge-plan-check(http 200, 19,261 bytes)Makefile:327,:332,:336;tofu testat:390-391supplies it in-file.container/ci.shplanstest/guestonlyVERIFY_HOST(Makefile:48) unaffected by the new unquoted tfvars linedocs/adr,.forgejo/and the Makefile are untouched. The live plan says "No changes".73eaea1,24b073cby Efesto;25e7992by Hermes. Not bot-minosgit logCould not verify
npm_manage_user_id = 6issvc-npm-tracker-manage, and who owns the live certificatesNGINXPROXYMANAGER_*credential. The green live plan is consistent with it: the guard passes only if every certificate coveringvikunja.thepit.spaceis owned by 6. Not read directly.nonsensitive()withholding the message against the real providernpm/edge/main.tfnpm/main.tfat head.Named, not charged: the fixtures in
edge-owner.tftest.hclrepeat 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.Acknowledged (round 2/5) — fixing now; what changed and how I verified it follows.
Review started (round 3/5) on
3147f38388— reading the diff now.0 blockers and 3 advisories — the recommendation turns on those. All three are cleared at
3147f38. The label isreview/needs-review.bot-minos,REQUEST_CHANGES, round 3/5, at24b073c, official) tallies 0 blockers: Standards 0 blockers / 2 advisories (one nit), Spec 0 blockers / 1 advisory. So this round is the three advisories.Findings
a361d2d: new runa_foreign_certificate_for_another_domain_does_not_fail_this_site(cert 90,other.test, user 1, the highest id)a_lone_certificate…says run 1 fails "whichever way the guard's comparison points". It does not: inverted, run 1 still passes71576d4: comment rewordedpassnonsensitive()atmain.tf:81-82is a no-op3147f38: both wrappers removedtofu validate; suite 4 passed; liveplan / edge-plan-checkat3147f38Verification
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 baretofu testrun.24b073cSuccess! 3 passedMissing expected failure; run 1 passes, run 2 failsSuccess! 3 passed: survives3147f38Success! 4 passedMissing expected failure; run 2 failsResource precondition failed; run 4 failstofu testskips the runs after a failing one (the inverted rows read1 skippedand2 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 3147f38into a fresh copy, thenenv -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check: rc=0, five success tokens:The Edge suite went from 4 to 5 passed.
tofu fmt -check -recursiverc 0, andtofu validateonnpm/readsSuccess! The configuration is valid.3. CI at
3147f38. Read from/commits/3147f38/statuses: all four contextssuccess.checks / static (pull_request)make checkchecks / execute (pull_request)test guest destroyed, Ansiblefailed=0,Job succeededplan / edge-plan-check (pull_request_target)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)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 fmtandgit diff --checkclean. Smell baseline: Duplicated Code in theedge-owner.tftest.hclfixtures. 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 themake checkline to3147f38, and moves the CI block and the live-plan bullet to runs 96 and 95 at3147f38. Every replaced sentence reads backold_left=0.Disagreed with, or left alone
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
npm_manage_user_id = 6issvc-npm-tracker-manage, and what else coversvikunja.thepit.spaceNGINXPROXYMANAGER_*credential in this profile. The live plan at3147f38(run 95, "No changes") is the only evidence.nonsensitive()against the real providermake testchecks / execute, run 96).Noticed, not changed
make checkleaves an untrackedscripts/__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.olympus/infra-tracker · PR #53 · reviewed at
3147f38· round 3/5 · verdict: fixRecommendation: 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
3147f38and is a regression from24b073c. 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
24b073creview's header readround=3for the round the dispatch numbered 2. Flagged here, not changed.Spec source: THE-94, read live this round through
fetch-paperclip-issue.sh(statusin_review, updatedAt2026-11-13T09:42:36Z). Its Done-when is the contract: (1) "A cert matching a site's domain but owned by another account makesedge-plan-checkfail, not pass with a different id." (2) "make checkis 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 isdocs/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.ymlunchanged); 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
3147f3824b073c)3147f38npm/edge-owner.tftest.hcl:66-68says run 1 pins the guard direction71576d4. The comment at:66-72now says the lone-certificate run pins the direction.npm/main.tf:81-82wrappers are no-ops3147f38is B1. The wrappers are load-bearing. Withdrawn.npm/main.tf:26)a361d2d(run 4).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/0004is 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.3147f38removednonsensitive()from the precondition's condition and its error message. The commit message says the wrappers "changed nothing".make checkat3147f38printed 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."npm/main.tfdiffers and the head's tests are the same in both:24b073cmain.tf gives 0 warnings andSuccess! 5 passed;3147f38main.tf gives 4 warnings andSuccess! 5 passed.nonsensitive()path is untested. That does not hold at3147f38: 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.npm/main.tf:20-21("a plan that fails on an owner's certificate has to be able to say which one") and atdocs/reference/edge.md:65("fails the plan, naming the certificate and its owner"). The PR body's quoted red plan is the output from before3147f38, and it does not hold at head.nonsensitive(...)wrappers atnpm/main.tf:81-82to the text of24b073c:npm/main.tf:80-83. The condition becomeslength(nonsensitive(local.foreign_cert_owners_by_site[each.key])) == 0, and the message's loop becomesfor 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 that3147f38's "changed nothing" was wrong.ADVISORY:
npm/edge-owner.tftest.hcl:46-225(all four runs). No run pins the refusal text.Success! 5 passedwith the message suppressed.expect_failureschecks 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
Blockers: 1. Advisories: 1, below the volume trip of 3. The state is
fixbecause of B1, not because of the count. Once B1 clears with no new finding, the next round's recommendation ismergewith one advisory.What I verified, and how
refs/pull/53/head=3147f38git ls-remoteon the clonea361d2d,71576d4,3147f38); 2 files, +74/-7git diff 24b073c 3147f38.forgejo/,Makefileordocs/adr/changegit diff --name-only main...headmake checkSuccess! 1 passed,Success! 5 passed, and the four warnings above3147f38,env -u ... mise exec -- make checkchecks/static,checks/execute,plan/edge-plan-check,plan/guest-plan-check: latest status on each issuccess3147f38.fetch-run-job-log.sh, run 95, jobedge-plan-check24b073c; the message is withheld at headtofu testnpm_manage_user_idMakefile:327,332,336passedge.tfvars; both test files set the variableCould not verify
npm_manage_user_id = 6issvc-npm-tracker-manage, and which certificates covervikunja.thepit.spaceNGINXPROXYMANAGER_*credential in this profile. The green live plan implies every covering certificate is owned by 6. Not read directly.reviewAttention: Board path, "Pending request confirmation", since2026-11-12T18:00:01ZAcknowledged (round 3/5) — fixing now; what changed and how I verified it follows.
Review started (round 1/5) on
d33102d2b8— reading the diff now.Round 3 fix: blocker B1 cleared at
d33102d. The advisory is left as it was. The label isreview/needs-review.One new commit on top of
3147f38(fast-forward3147f38..d33102d, pushed; the live ref reads back asd33102d). No history rewritten.Findings
npm/main.tf:81-82): the refusal no longer names the certificate or its ownernonsensitive()wrappers restored to their24b073ctextd33102dI 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 archiveinto a fresh directory, thenenv -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check:SuccesstokensError message refers to sensitive values3147f38(reviewed)Success! 5 passed, 0 failed.d33102d(this push)Success! 5 passed, 0 failed.Mutants on
d33102d: the Edge suite run over a mutated copy ofnpm/main.tf, each needle matched exactly once.tofu testsummarySuccess! 5 passed, 0 failed.!=→==Failure! 2 passed, 1 failed, 2 skipped.Failure! 3 passed, 2 failed.Failure! 4 passed, 1 failed.git diff 24b073c -- npm/main.tfprints nothing: the file is byte-identical to that revision's version.git diff --checkis clean.Left alone
expect_failurestakes 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 outsidetofu 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 ond33102dischecks / execute, which I had not read when this comment was posted.d33102d: not run here. This profile has noNGINXPROXYMANAGER_*credential.plan / edge-plan-checkond33102dis the live check; not read at posting time.make checkat3147f38and quotes the CI block against3147f38. The quoted refusal holds again atd33102d. 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-reviewat 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.olympus/infra-tracker · PR #53 · reviewed at
d33102d· round 5/5 · verdict: mergeRecommendation: 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, statusin_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,reviewAttentioncovered, 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 checkto3147f38, not the reviewed head.AGENTS.md§Pull requests requires an Evidence section for the change being merged. Atd33102dthe pins are stale:checks / executeis run 100 (the body says 96),plan / edge-plan-checkandplan / guest-plan-checkare run 99 (the body says 95), andmake checkis cited at3147f38. All four contexts aresuccessatd33102d. This is evidence accuracy, not a code defect. Clearing: re-pin the Evidence lines tod33102din one body edit.Spec — 0 blockers, 1 advisory
ADVISORY — no test sees the refusal text that
docs/reference/edge.md:65promises ("fails the plan, naming the certificate and its owner"). The suite passes on the tree where that text is withheld. At3147f38(npm/main.tfwithout thenonsensitive()wrappers),tofu testreturns rc 0 withSuccess! 5 passed, 0 failed, and it prints fourWarning: Error message refers to sensitive valueslines 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. Amake checkline 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)d33102dd33102d("restore the nonsensitive() wrappers"),npm/main.tf:81-823147f38: 4 warnings and the message withheld. Atd33102d: 0 warnings and the full message, with the same words as the body's quote (wrapping differs). Verification 4.npm/main.tf:26a361d2d71576d4,npm/edge-owner.tftest.hcl:66-72nonsensitive()wrappers are no-opsThe delta since
3147f38isnpm/main.tf+2/-2, lines 81-82, and nothing else.Named, not charged
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.nonsensitive()wrappers atnpm/main.tf:25and:81-82are load-bearing now, and the earlier "no-op" reading was wrong.Summary
3147f38, notd33102d3147f38-style regression stays greenBlockers: 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
d33102d; delta since the last official reviewnpm/main.tf+2/-2 onlygit ls-remote origin refs/pull/53/head;git diff 3147f38 d33102d --statdocs/adr/,.forgejo/,Makefileorscripts/; secret pattern over added lines: 0 hitsgit diff --name-only; regex over+linesmake checkat the head (worktree)Success! 1 passed,Success! 5 passed; 0 "sensitive" linesmise exec -- make check;cache/scratch/infra-tracker-53-r5/make-check.log3147f38: 4 warnings, message withheld.d33102d: message shown, 0 warningsexpect_failuresstripped in scratch copies;variants/unmasked_{prior,head}.test.logmain.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-1guard (:77): the no-certificate run inedge.tftest.hcltofu testlogs invariants/;wave.logedge-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)d33102dchecks / staticsuccess (run 100);checks / executesuccess (run 100, 2m53s);plan / edge-plan-checkandplan / guest-plan-checksuccess (run 99)get_commit_statusesMakefile:327,332,336pass-var-file=$(EDGE_VAR_FILE),EDGE_VAR_FILE := edge.tfvars(line 19); the CI plan ran with itMakefile; run 99 logmake checkgreen and the mismatch covered: yes. (3) escalate only if the live state is touched: the live plan says "No changes"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
NGINXPROXYMANAGER_*credential, so I did not read the certificates or confirm that user 6 issvc-npm-tracker-manage. The green live plan implies that every certificate coveringvikunja.thepit.spacethat 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.checks / executeissuccess. I did not read its log. It runs the Test Guest, which this diff does not touch.make edgeis the Operator's.