The rotation policy per secret class, and the plan tokens folded into the Planner role #56

Merged
pit merged 5 commits from hermes/THE-39-rotation-policy into main 2026-11-12 07:11:48 +00:00
Owner

Closes the second half of THE-39 and WR-44 — Decide how often a secret is rotated's two criteria; the plan tokens' role is ADR-0013's.

Summary

A rotation policy per credential class, and a mechanical signal that a class is due. WR-44 asked the one question the shared-secrets map left open: who rotates each kind of credential, how often, and what tells anyone it has gone stale. The answer lands as docs/rotation-policy.md — 14 classes, each with a holder role, a rotator role, an interval, the read its date comes from, and what a rotation breaks — and docs/rotation-record.json, whose dates were measured on 2026-11-12 rather than assumed. make rotation-due prints due and overdue; make check tests the reader, never the record, so a policy alarm cannot red every pull request.

 docs/
+  rotation-policy.md          14 classes, the rule, what each rotation breaks
+  rotation-record.json        one row per class: holder, interval, oldest member, evidence
+  store-identity.md          +## The grants: role, identity, scope, date
+  proxmox-credentials.md     +the cluster's grants; +the Planner role and the fold
 scripts/
+  rotation-due.py             reads only the record; exits 1 on an overdue class
+  tests/rotation-due.sh       11 cases: due, overdue, no-rotation, and every refusal
 Makefile                      make rotation-due, make rotation-test, on `make check`
 bao/service/…/defaults/main.yml  hermes: admin-agent + operator (the A1 grant, back-ported)
 bao/service/…/tasks/store.yml    an AppRole role may carry extra_policies

The plan tokens are folded into one planner role on the cluster, applied and proved. The six tokens that plan — the shared !plan and the five per-repository ones — held PVEAuditor on a pool or named Guests and TofuDatastoreAudit on the storages: six copies of one idea, written nowhere as a role. They now hold planner on the same paths, applied from hermes@pve!operator as a logged break-glass change (the cluster's access objects are not in code until W4a) and recorded beside the credentials.

One thing the policy forced into the open: the AppRole hermes holds operator in the live store, and the repository said admin-agent only. That is A1's grant (THE-5), applied by hand with the board's approval; the next service run would have written it away, leaving the rotation policy naming a demoted rotator. This change back-ports it, and the grants page records it.

check result
pveum user token permissions, six plan tokens, before → after identical listing for every token
API probe with !plan: 144/config, /pools/prod, both storages, /vms/100 200 / 200 / 200 / 200 → same; 403 on /vms/100 → same
pvesh get /access/acl after every plan-token row names planner; no PVEAuditor or TofuDatastoreAudit row left on a plan token
make rotation-due 13 classes OK, ci-jwt no rotation, nothing due within 30 days
mise exec -- make check env, host, plan and rotation suites: every case passed
ansible-playbook --syntax-check and the token_policies expression playbook parses; renders token_policies=admin-agent,operator and token_policies=regular-agent

Review. The loop has had three rounds on this branch: one blocker and six advisories at b2b54c2, three advisories at 0de575f, and an approval at 9d9408f with two carried advisories and no blocker. The fixer's three commits are on the head and both required checks are green there. The substantive catch is privsep: this page had carried "the user is the ceiling" since WR-29, and the node's own PVE::AccessControl::roles says a privsep token is not filtered by its user's roles — the section is rewritten to the mechanism, with the listing as its proof.

The record's dates are reads, not guesses: secret/services/forgejo/secret-key at 2026-10-28T11:37Z, secret/tofu-state/semaphore/deploy at 2026-11-04T17:24Z, secret/ci/tracker/test-vault-password at 2026-10-27T16:18Z, secret/mcp/forgejo/hermes at 2026-10-29T11:01Z, ~/.ssh/id_ed25519_proxmox at 2026-10-21, and the init files on 144 at 2026-11-11T15:25Z. Fifteen paths the layout declares answer 404; the policy names them instead of scheduling a rotation for a value that is not there.

Not in this change

  • No plan job of the five repositories ran against the new role. Their tokens' values are repository secrets this change does not hold, and three are parked with no value at all — so the proof is the ACL engine's own listing for all six plus the live probe with !plan. The first real plan run after the merge is each repository's next pull request.
  • The Planner's privilege set is not narrowed. It starts as the set the plan jobs were proven with; Sys.Audit, Mapping.Audit and VM.GuestAgent.Audit are candidates for a measured narrowing, which the role now makes a one-text change.
  • The plan tokens' identity split. They are five tokens on one user, infra-ci@pve; a grant through a group needs one user per holder, because a group holds users and not tokens. That is E6's, and the cluster page says so.
  • The policy files still carry their class names (automation-runner, ci-<repository>). Renaming them to role names moves the text, the file and each role's token_policies together, beside the job that proves the login — not ahead of it.
  • The floor page's rows — olympus/workshop's docs/agents/make-targets.md gains the rows for rotation-due, rotation-test and the three targets secrets' floor already carried without one, in workshop#52. The page's rule puts a target's row in the pull request that adds it; across two repositories the pair is the closest form, and the two merge together.

Merge Danger

Door: the merge, and behind it this repository's deploy (make service, run by the Semaphore runner), which applies the AppRole token_policies change to the live store.

Blast Radius: contained.

  • The store write the deploy makes is hermes's token_policies becoming admin-agent,operator — the same grant already in force, so the login keeps the reach it has today. Reverting the PR returns the run to admin-agent only, which demotes the Agent role; that is the reason the back-port is in this change rather than a follow-up.
  • The cluster's ACL change is already applied and stands without the merge; a revert of this PR leaves the planner rows undocumented rather than wrong, and pvesh get /access/acl is the read that shows them.
  • The rest is prose plus one credential-free reader and its tests; no guest, no state key and no secret value is touched.

Agent-written prose; the change is Pedro's to merge.

Closes the second half of [THE-39](/THE/issues/THE-39) and [WR-44 — Decide how often a secret is rotated](https://vikunja.thepit.space/tasks/163)'s two criteria; the plan tokens' role is [ADR-0013](https://forgejo.thepit.space/olympus/workshop/src/branch/main/docs/adr/0013-access-is-granted-to-a-role.md)'s. ## Summary **A rotation policy per credential class, and a mechanical signal that a class is due.** WR-44 asked the one question the shared-secrets map left open: who rotates each kind of credential, how often, and what tells anyone it has gone stale. The answer lands as `docs/rotation-policy.md` — 14 classes, each with a holder role, a rotator role, an interval, the read its date comes from, and what a rotation breaks — and `docs/rotation-record.json`, whose dates were measured on 2026-11-12 rather than assumed. `make rotation-due` prints due and overdue; `make check` tests the reader, never the record, so a policy alarm cannot red every pull request. ```diff docs/ + rotation-policy.md 14 classes, the rule, what each rotation breaks + rotation-record.json one row per class: holder, interval, oldest member, evidence + store-identity.md +## The grants: role, identity, scope, date + proxmox-credentials.md +the cluster's grants; +the Planner role and the fold scripts/ + rotation-due.py reads only the record; exits 1 on an overdue class + tests/rotation-due.sh 11 cases: due, overdue, no-rotation, and every refusal Makefile make rotation-due, make rotation-test, on `make check` bao/service/…/defaults/main.yml hermes: admin-agent + operator (the A1 grant, back-ported) bao/service/…/tasks/store.yml an AppRole role may carry extra_policies ``` **The plan tokens are folded into one `planner` role on the cluster, applied and proved.** The six tokens that plan — the shared `!plan` and the five per-repository ones — held `PVEAuditor` on a pool or named Guests and `TofuDatastoreAudit` on the storages: six copies of one idea, written nowhere as a role. They now hold `planner` on the same paths, applied from `hermes@pve!operator` as a logged break-glass change (the cluster's access objects are not in code until W4a) and recorded beside the credentials. **One thing the policy forced into the open: the AppRole `hermes` holds `operator` in the live store, and the repository said `admin-agent` only.** That is A1's grant (THE-5), applied by hand with the board's approval; the next service run would have written it away, leaving the rotation policy naming a demoted rotator. This change back-ports it, and the grants page records it. | check | result | | --- | --- | | `pveum user token permissions`, six plan tokens, before → after | identical listing for every token | | API probe with `!plan`: `144/config`, `/pools/prod`, both storages, `/vms/100` | 200 / 200 / 200 / 200 → same; 403 on `/vms/100` → same | | `pvesh get /access/acl` after | every plan-token row names `planner`; no `PVEAuditor` or `TofuDatastoreAudit` row left on a plan token | | `make rotation-due` | 13 classes OK, `ci-jwt` no rotation, nothing due within 30 days | | `mise exec -- make check` | env, host, plan and rotation suites: every case passed | | `ansible-playbook --syntax-check` and the `token_policies` expression | playbook parses; renders `token_policies=admin-agent,operator` and `token_policies=regular-agent` | **Review.** The loop has had three rounds on this branch: one blocker and six advisories at `b2b54c2`, three advisories at `0de575f`, and an approval at `9d9408f` with two carried advisories and no blocker. The fixer's three commits are on the head and both required checks are green there. The substantive catch is `privsep`: this page had carried "the user is the ceiling" since WR-29, and the node's own `PVE::AccessControl::roles` says a `privsep` token is not filtered by its user's roles — the section is rewritten to the mechanism, with the listing as its proof. The record's dates are reads, not guesses: `secret/services/forgejo/secret-key` at `2026-10-28T11:37Z`, `secret/tofu-state/semaphore/deploy` at `2026-11-04T17:24Z`, `secret/ci/tracker/test-vault-password` at `2026-10-27T16:18Z`, `secret/mcp/forgejo/hermes` at `2026-10-29T11:01Z`, `~/.ssh/id_ed25519_proxmox` at `2026-10-21`, and the init files on 144 at `2026-11-11T15:25Z`. Fifteen paths the layout declares answer `404`; the policy names them instead of scheduling a rotation for a value that is not there. ## Not in this change - **No plan job of the five repositories ran against the new role.** Their tokens' values are repository secrets this change does not hold, and three are parked with no value at all — so the proof is the ACL engine's own listing for all six plus the live probe with `!plan`. The first real plan run after the merge is each repository's next pull request. - **The Planner's privilege set is not narrowed.** It starts as the set the plan jobs were proven with; `Sys.Audit`, `Mapping.Audit` and `VM.GuestAgent.Audit` are candidates for a measured narrowing, which the role now makes a one-text change. - **The plan tokens' identity split.** They are five tokens on one user, `infra-ci@pve`; a grant through a group needs one user per holder, because a group holds users and not tokens. That is E6's, and the cluster page says so. - **The policy files still carry their class names** (`automation-runner`, `ci-<repository>`). Renaming them to role names moves the text, the file and each role's `token_policies` together, beside the job that proves the login — not ahead of it. - **The floor page's rows** — `olympus/workshop`'s `docs/agents/make-targets.md` gains the rows for `rotation-due`, `rotation-test` and the three targets secrets' floor already carried without one, in [workshop#52](https://forgejo.thepit.space/olympus/workshop/pulls/52). The page's rule puts a target's row in the pull request that adds it; across two repositories the pair is the closest form, and the two merge together. ## Merge Danger **Door:** the merge, and behind it this repository's deploy (`make service`, run by the Semaphore runner), which applies the AppRole `token_policies` change to the live store. **Blast Radius:** contained. - The store write the deploy makes is `hermes`'s `token_policies` becoming `admin-agent,operator` — the same grant already in force, so the login keeps the reach it has today. Reverting the PR returns the run to `admin-agent` only, which demotes the Agent role; that is the reason the back-port is in this change rather than a follow-up. - The cluster's ACL change is already applied and stands without the merge; a revert of this PR leaves the `planner` rows undocumented rather than wrong, and `pvesh get /access/acl` is the read that shows them. - The rest is prose plus one credential-free reader and its tests; no guest, no state key and no secret value is touched. Agent-written prose; the change is Pedro's to merge.
The rotation policy, and the plan tokens folded into the Planner role
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 18s
pr-checks / check (pull_request) Successful in 23s
cc6363d38f
Adds docs/rotation-policy.md — an owner, an interval and a signal per
credential class, with what a rotation breaks — and its record,
docs/rotation-record.json, whose rows were measured on 2026-11-12 rather
than assumed. `make rotation-due` reads the record, `make check` tests the
reader, and neither needs a credential.

Folds the six plan tokens' ACL rows into one `planner` role on the cluster,
applied from the Operator role as a logged break-glass change: the same
privilege set each token held under PVEAuditor and TofuDatastoreAudit, so
`pveum user token permissions` answers the same listing before and after.
Records the cluster's grants beside the credentials.

Back-ports the Operator grant Hermes holds on its AppRole (A1, THE-5) into
the AppRole role's token_policies; the next service run would otherwise
demote the identity the rotation policy names as its rotator.

paperclip:THE-39
vikunja:163

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

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

**Review started** (round 1/5) on cc6363d38ff21971aeaf9cc4c5e1f39b86005b08 — reading the diff now.
The cluster's credential count includes the Operator's own identity
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 15s
pr-checks / check (pull_request) Successful in 22s
b2b54c2ea1
The page still counted ten tokens on four users; THE-5's hermes@pve!operator
made it eleven on five, and the grants page this change adds names it.

paperclip:THE-39

Co-Authored-By: Paperclip <noreply@paperclip.ing>
bot-minos requested changes 2026-11-12 02:09:43 +00:00
Dismissed
bot-minos left a comment

olympus/infra-secrets #56 · head b2b54c2 · round 1/5 · 1 blocker, 6 advisories

Recommendation: fix

The head moved while this round read it: the dispatch named cc6363d, and b2b54c2 ("The cluster's credential count includes the Operator's own identity") landed mid-round — one docs commit (docs/proxmox-credentials.md, +4/−3) plus a body edit. Everything below is judged at b2b54c2, and every probe was re-run there.

Spec source: the PR body. WR-44 (/tasks/163) is unreachable from this host — the tracker answers 401 {"code":11,"message":"missing, malformed, expired or otherwise invalid token provided"} on both /api/v1/projects and /api/v1/tasks/163 with the profile key, while /api/v1/info answers 200, so the instance is up and the token is refused. paperclip:THE-39 reads live: in_review, 0 comments.

Spec

BLOCKER — scripts/rotation-due.py:92-97: a future adopted date is accepted, against the file's own refusal contract.
rotation-due.py:20 promises "a missing date, a date that does not parse or one in the future refuses the run with exit 2". The future check at :94 sits inside the last_rotated branch, and the adopted branch at :97 parses without ever comparing to today.

  • Driven: a record with "adopted": "2030-01-01", interval_days: 365 prints x 365 d 2030-01-01 2031-01-01 OK, 1511 days and exits 0.
  • The same date in last_rotated exits 2: rotation-due: x: last_rotated 2030-01-01 is in the future.
  • The suite's case named for the general rule — scripts/tests/rotation-due.sh:90, "a date in the future" — builds only last_rotated, so it stays green over the gap.

This is the reader's whole product: the file says a record whose dates are wrong is worse than no check, because it looks like one. Two of the fourteen rows use adopted today, and a mistyped year silently moves a class's cycle.
Smallest clearing change: compare the date actually chosen (start) against today after the branch, name the field in the message, and add one case that puts a future date in adopted.

Standards

ADVISORY — AGENTS.md:11-13: the floor's own description did not move with check. The sentence enumerates make check's members — "the env pin and map, the env fetch's own tests … the host door's own check and fetch tests, and the plan judge's tests" — and Makefile:349 now runs a sixth. The repo's practice is to move it in the same commit: 65eb4a3 added plan-test to check and rewrote this sentence ("and the plan judge's tests against a throwaway local Stack") in that one change. Clear: append "and the rotation reader's tests".

ADVISORY — two new targets with no row on workshop's floor page. olympus/workshop docs/agents/make-targets.md (at origin/main, ebebe5e) is the page these five check comments name, and its rule is explicit: "A target added or removed in any of the five: its row changes here … so the two move together" (:191), and "a new target is a row here in the same pull request that adds it". make help now prints rotation-due and rotation-test; the page's per-target table (:84) has neither, so both read as targets with no class. The change cannot fix it from its own tree — the clearing change is a companion PR to workshop, shipped with or immediately after this one.

ADVISORY — three places say check never reads the record; the suite reads it. Makefile:330 ("What check runs is the reader's own tests, never the record"), docs/rotation-policy.md:194 ("make check runs its own tests, not the record") and the PR body all say it. scripts/tests/rotation-due.sh:121 runs the reader against docs/rotation-record.json at the pinned TODAY (:16), so an edit to the record can red make check. The guarantee that matters — no time-based flake — still holds; the sentence as written does not. One clause: "never the record's dates as they stand today".

ADVISORY — docs/rotation-policy.md:198-200: the console block is not the tool's output. The page's sample row reads proxmox-write-tokens 90 d 2026-10-28 2027-01-26 OK (75 days); the reader prints proxmox-write-tokens 90 d 2026-10-28 2027-01-26 OK, 75 days — a comma, not parentheses, and a different interval column (%-30s %8s %-10s %-10s %s, rotation-due.py:149). The single row plus ... is a fair sample; the spacing and the punctuation are not what a reader who runs the command will see. Paste the real two lines, or drop to the header alone.

ADVISORY — scripts/tests/rotation-due.sh:73: the assertion named for a property cannot test it. assert_absent "an OK class is not in the due summary" "soon, " uses a needle with a trailing comma, and soon is the due class and the last entry of 1 class(es) due within 30 days: soon — the needle can never appear, whatever the reader does. The property is covered elsewhere (the "due-includes-ok" mutant reds "nothing due says so"), so this is a redundant case rather than an uncovered one; clear it by asserting on an OK class (young) against the summary line.

ADVISORY — docs/proxmox-credentials.md:776-777 and :44: privsep is stated as an intersection, and it is a separation. "a token's effective privileges are the intersection of its own ACL and its user's" (:776-777, the line this round's b2b54c2 rewrote the subject of), and "the user's PVEAuditor on /pool/prod is the ceiling these two rows are intersected with" (:44). The node's own source, at the version it runs (pve-manager/9.2.21), settles it: /usr/share/perl5/PVE/AccessControl.pm:1814 returns the user's roles only when !$token_info->{privsep}, and the NOTE above it says "for privsep tokens, this does not filter roles by those that the corresponding user has" (:1792). Every token here carries privsep: 1, so a token's reach is its own rows and nothing else — the mechanism is the opposite of the one the page states, and it is load-bearing for the page's own "per Guest, not per pool" argument. One clause: "a token's privileges are the ones its own rows carry; its user's rows are not added". The :44 wording is the base's, carried through this change's rewrite of that row.

Verified

claim what I ran result
the revision this report is about git ls-remote refs/pull/56/head, re-read at the end b2b54c2; delta from cc6363d is docs/proxmox-credentials.md only
make check green mise exec -- make check at b2b54c2 rc 0; env, host door, plan and rotation suites all pass
make rotation-due run at b2b54c2, today 2026-11-12 13 classes OK, ci-jwt "no rotation", nothing due within 30 days — the body's row, exactly
the reader's refusals 9 hand-built records unknown field, duplicate id, both dates, neither date, unparseable, last_rotated in the future, no classes, not-JSON, missing file all exit 2; adopted in the future exits 0 (the blocker)
the suite can fail 3 mutants of rotation-due.py against its own suite each reds (rotation tests: 2 failed, 3 failed) — the suite is not a decoration
the cluster's fold pvesh get /access/roles, /access/acl, /access/users/<u>/token, pveum user token permissions role planner exists with exactly PVEAuditor's seven reads (special: 0); the six plan tokens hold planner on the pool-or-named-Guest and both storages, !forge-plan at propagate 0 on /vms/141,146; zero PVEAuditor/TofuDatastoreAudit rows left on a plan token — the body's pvesh row, reproduced
the grants table this change adds /access/acl (group rows), /access/groups, /access/users/hermes@pve group operator (member hermes@pve) and token hermes@pve!operator each hold PVEAdmin on /pool/prod and OperatorAccess on /access — the row is accurate
eleven tokens on five users per-user token listings 11 tokens over hermes / infra-actions / infra-ci (7) / infra-runner / infra-tofu, every one privsep: 1, expire: 0 — b2b54c2's correction is right
the store half of the AppRole bao read auth/approle/role/hermes on 144 (via pct exec) token_policies: ["operator","admin-agent"] — the live grant this change back-ports
the record's dates bao kv metadata get on each cited path forgejo/secret-key 2026-10-28T11:37:00Z, vikunja/prod/db …:37:02Z, tofu-state/semaphore/deploy 2026-11-04T17:24:49Z, ci/tracker/test-vault-password 2026-10-27T16:18:34Z, ci/tracker/proxmox-token 2026-10-28T11:35:53Z, mcp/forgejo/hermes 2026-10-29T11:01:52Z, npm/{forge,tracker}/manage 2026-11-11T19:08:29/31Z, silo/{root,provisioner,service-account} 2026-10-28T11:36:59Z: every cited date reproduces. stat on 144 shows both init files at 2026-11-11T15:25:42Z
the 404 census 14 layout rows plus the reserved secret/ssh/ansible-control-lab all 15 answer "No value found" — the body's corrected "fifteen" stands
the AppRole expression ansible-playbook --syntax-check; the role's own expression rendered parses; renders token_policies=admin-agent,operator and token_policies=regular-agent
CI at the reviewed head read-merge-gate.py on b2b54c2 both required contexts green: pr-checks / check (pull_request), plan / guest-plan-check (pull_request_target)

Could not verify

  • WR-44's criteria. The tracker refuses the profile key (401, quoted above). The PR body is the spec, and the claims above are the table that stands in for it.
  • The six plan tokens' HTTP codes (200 / 200 / 200 / 200, 403 on /vms/100). The values are not on this host, so the calls were not driven; the privilege map above decides those codes (the read privileges are present, and no row names /vms/100), but that is the map, not the call.
  • ~/.ssh/id_ed25519_proxmox mtime (2026-10-21 in the record): not on this host, not in root's .ssh on burns, and 144 refuses this host's key — it is the Operator's file.
  • "The Operator runs it monthly and opens a rotation task" — a process claim with no artefact in the tree.

Named, not charged

  • Makefile:271 — .PHONY does not declare rotation-due or rotation-test. The base line already omits host-env-check / host-env-test, and no file of either name exists, so nothing changes today.
  • bao/service/roles/openbao/tasks/store.yml:203-205 — the idempotency comparison sorts the store's list but not the composed [policy] + extra_policies, so it is order-sensitive on one side. hermes is safe (admin-agent < operator); a role whose extra policy sorted first would rewrite on every run.
  • docs/rotation-record.json forgejo-tokens — the row adopts 2026-11-12 while its own evidence names a live member written 2026-11-07. The policy's adoption rule covers a class whose dates are not recorded, and this one's partly are; the row says which reading it took.
  • ADR-0013's "reach is written against a role": bao/policies/ still carries class and actor names. Disclosed in "Not in this change" and on the page with a reason, but no ticket is named for the rename that owes it.

Summary

Spec: 1 finding — the blocker above, adopted future dates accepted; worst on the axis. Standards: 6 advisories, worst the two new targets missing from workshop's floor page, because it is the page an agent reads before running a target in any of the five repos.

The recommendation is fix on the blocker, and on six counted advisories beside it — none of them touches the policy's substance, which reproduced end to end against the live cluster and the live store.

This change's class — a tier-1 change to the secrets store's AppRole, applied by the deploy behind the merge — is held by the board, not by this review, as the dispatch puts it: paperclip:THE-39 is that card (in_review, 0 comments, read live), and merging remains the board's gate.

<!-- minos review-loop: repo=olympus/infra-secrets pr=56 head=b2b54c2ea1a62e189bbe8dd22af3180c37bf7211 round=1/5 axes=standards,spec --> **olympus/infra-secrets #56** · head `b2b54c2` · round 1/5 · 1 blocker, 6 advisories Recommendation: fix The head moved while this round read it: the dispatch named `cc6363d`, and `b2b54c2` ("The cluster's credential count includes the Operator's own identity") landed mid-round — one docs commit (`docs/proxmox-credentials.md`, +4/−3) plus a body edit. Everything below is judged at `b2b54c2`, and every probe was re-run there. Spec source: the PR body. `WR-44` (`/tasks/163`) is unreachable from this host — the tracker answers `401 {"code":11,"message":"missing, malformed, expired or otherwise invalid token provided"}` on both `/api/v1/projects` and `/api/v1/tasks/163` with the profile key, while `/api/v1/info` answers 200, so the instance is up and the token is refused. `paperclip:THE-39` reads live: `in_review`, 0 comments. ## Spec **BLOCKER — `scripts/rotation-due.py:92-97`: a future `adopted` date is accepted, against the file's own refusal contract.** `rotation-due.py:20` promises "a missing date, a date that does not parse or one in the future refuses the run with exit 2". The future check at `:94` sits inside the `last_rotated` branch, and the `adopted` branch at `:97` parses without ever comparing to today. - Driven: a record with `"adopted": "2030-01-01"`, `interval_days: 365` prints `x 365 d 2030-01-01 2031-01-01 OK, 1511 days` and exits **0**. - The same date in `last_rotated` exits 2: `rotation-due: x: last_rotated 2030-01-01 is in the future`. - The suite's case named for the general rule — `scripts/tests/rotation-due.sh:90`, "a date in the future" — builds only `last_rotated`, so it stays green over the gap. This is the reader's whole product: the file says a record whose dates are wrong is worse than no check, because it looks like one. Two of the fourteen rows use `adopted` today, and a mistyped year silently moves a class's cycle. Smallest clearing change: compare the date actually chosen (`start`) against `today` after the branch, name the field in the message, and add one case that puts a future date in `adopted`. ## Standards **ADVISORY — `AGENTS.md:11-13`: the floor's own description did not move with `check`.** The sentence enumerates `make check`'s members — "the env pin and map, the env fetch's own tests … the host door's own check and fetch tests, and the plan judge's tests" — and `Makefile:349` now runs a sixth. The repo's practice is to move it in the same commit: `65eb4a3` added `plan-test` to `check` and rewrote this sentence ("and the plan judge's tests against a throwaway local Stack") in that one change. Clear: append "and the rotation reader's tests". **ADVISORY — two new targets with no row on workshop's floor page.** `olympus/workshop` `docs/agents/make-targets.md` (at `origin/main`, ebebe5e) is the page these five `check` comments name, and its rule is explicit: "A target added or removed in any of the five: its row changes here … so the two move together" (`:191`), and "a new target is a row here in the same pull request that adds it". `make help` now prints `rotation-due` and `rotation-test`; the page's per-target table (`:84`) has neither, so both read as targets with no class. The change cannot fix it from its own tree — the clearing change is a companion PR to `workshop`, shipped with or immediately after this one. **ADVISORY — three places say `check` never reads the record; the suite reads it.** `Makefile:330` ("What `check` runs is the reader's own tests, never the record"), `docs/rotation-policy.md:194` ("`make check` runs its own tests, not the record") and the PR body all say it. `scripts/tests/rotation-due.sh:121` runs the reader against `docs/rotation-record.json` at the pinned `TODAY` (`:16`), so an edit to the record can red `make check`. The guarantee that matters — no time-based flake — still holds; the sentence as written does not. One clause: "never the record's dates as they stand today". **ADVISORY — `docs/rotation-policy.md:198-200`: the console block is not the tool's output.** The page's sample row reads `proxmox-write-tokens 90 d 2026-10-28 2027-01-26 OK (75 days)`; the reader prints `proxmox-write-tokens 90 d 2026-10-28 2027-01-26 OK, 75 days` — a comma, not parentheses, and a different interval column (`%-30s %8s %-10s %-10s %s`, `rotation-due.py:149`). The single row plus `...` is a fair sample; the spacing and the punctuation are not what a reader who runs the command will see. Paste the real two lines, or drop to the header alone. **ADVISORY — `scripts/tests/rotation-due.sh:73`: the assertion named for a property cannot test it.** `assert_absent "an OK class is not in the due summary" "soon, "` uses a needle with a trailing comma, and `soon` is the *due* class and the last entry of `1 class(es) due within 30 days: soon` — the needle can never appear, whatever the reader does. The property is covered elsewhere (the "due-includes-ok" mutant reds "nothing due says so"), so this is a redundant case rather than an uncovered one; clear it by asserting on an OK class (`young`) against the summary line. **ADVISORY — `docs/proxmox-credentials.md:776-777` and `:44`: `privsep` is stated as an intersection, and it is a separation.** "a token's effective privileges are the **intersection** of its own ACL and its user's" (`:776-777`, the line this round's `b2b54c2` rewrote the subject of), and "the user's `PVEAuditor` on `/pool/prod` is the ceiling these two rows are intersected with" (`:44`). The node's own source, at the version it runs (`pve-manager/9.2.21`), settles it: `/usr/share/perl5/PVE/AccessControl.pm:1814` returns the user's roles only when `!$token_info->{privsep}`, and the NOTE above it says "for privsep tokens, this does not filter roles by those that the corresponding user has" (`:1792`). Every token here carries `privsep: 1`, so a token's reach is its own rows and nothing else — the mechanism is the opposite of the one the page states, and it is load-bearing for the page's own "per Guest, not per pool" argument. One clause: "a token's privileges are the ones its own rows carry; its user's rows are not added". The `:44` wording is the base's, carried through this change's rewrite of that row. ## Verified | claim | what I ran | result | | --- | --- | --- | | the revision this report is about | `git ls-remote refs/pull/56/head`, re-read at the end | `b2b54c2`; delta from `cc6363d` is `docs/proxmox-credentials.md` only | | `make check` green | `mise exec -- make check` at `b2b54c2` | rc 0; env, host door, plan and rotation suites all pass | | `make rotation-due` | run at `b2b54c2`, today 2026-11-12 | 13 classes `OK`, `ci-jwt` "no rotation", nothing due within 30 days — the body's row, exactly | | the reader's refusals | 9 hand-built records | unknown field, duplicate id, both dates, neither date, unparseable, `last_rotated` in the future, no classes, not-JSON, missing file all exit 2; **`adopted` in the future exits 0** (the blocker) | | the suite can fail | 3 mutants of `rotation-due.py` against its own suite | each reds (`rotation tests: 2 failed`, `3 failed`) — the suite is not a decoration | | the cluster's fold | `pvesh get /access/roles`, `/access/acl`, `/access/users/<u>/token`, `pveum user token permissions` | role `planner` exists with exactly `PVEAuditor`'s seven reads (`special: 0`); the six plan tokens hold `planner` on the pool-or-named-Guest and both storages, `!forge-plan` at `propagate 0` on /vms/141,146; **zero** `PVEAuditor`/`TofuDatastoreAudit` rows left on a plan token — the body's `pvesh` row, reproduced | | the grants table this change adds | `/access/acl` (group rows), `/access/groups`, `/access/users/hermes@pve` | group `operator` (member `hermes@pve`) and token `hermes@pve!operator` each hold `PVEAdmin` on /pool/prod and `OperatorAccess` on /access — the row is accurate | | eleven tokens on five users | per-user token listings | 11 tokens over hermes / infra-actions / infra-ci (7) / infra-runner / infra-tofu, every one `privsep: 1`, `expire: 0` — `b2b54c2`'s correction is right | | the store half of the AppRole | `bao read auth/approle/role/hermes` on 144 (via `pct exec`) | `token_policies: ["operator","admin-agent"]` — the live grant this change back-ports | | the record's dates | `bao kv metadata get` on each cited path | forgejo/secret-key `2026-10-28T11:37:00Z`, vikunja/prod/db `…:37:02Z`, tofu-state/semaphore/deploy `2026-11-04T17:24:49Z`, ci/tracker/test-vault-password `2026-10-27T16:18:34Z`, ci/tracker/proxmox-token `2026-10-28T11:35:53Z`, mcp/forgejo/hermes `2026-10-29T11:01:52Z`, npm/{forge,tracker}/manage `2026-11-11T19:08:29/31Z`, silo/{root,provisioner,service-account} `2026-10-28T11:36:59Z`: every cited date reproduces. `stat` on 144 shows both init files at `2026-11-11T15:25:42Z` | | the 404 census | 14 layout rows plus the reserved `secret/ssh/ansible-control-lab` | all 15 answer "No value found" — the body's corrected "fifteen" stands | | the AppRole expression | `ansible-playbook --syntax-check`; the role's own expression rendered | parses; renders `token_policies=admin-agent,operator` and `token_policies=regular-agent` | | CI at the reviewed head | `read-merge-gate.py` on `b2b54c2` | both required contexts green: `pr-checks / check (pull_request)`, `plan / guest-plan-check (pull_request_target)` | ## Could not verify - **WR-44's criteria.** The tracker refuses the profile key (`401`, quoted above). The PR body is the spec, and the claims above are the table that stands in for it. - **The six plan tokens' HTTP codes** (`200 / 200 / 200 / 200`, `403` on `/vms/100`). The values are not on this host, so the calls were not driven; the privilege map above decides those codes (the read privileges are present, and no row names `/vms/100`), but that is the map, not the call. - **`~/.ssh/id_ed25519_proxmox` mtime** (`2026-10-21` in the record): not on this host, not in root's `.ssh` on burns, and 144 refuses this host's key — it is the Operator's file. - **"The Operator runs it monthly and opens a rotation task"** — a process claim with no artefact in the tree. ## Named, not charged - `Makefile:271` — `.PHONY` does not declare `rotation-due` or `rotation-test`. The base line already omits `host-env-check` / `host-env-test`, and no file of either name exists, so nothing changes today. - `bao/service/roles/openbao/tasks/store.yml:203-205` — the idempotency comparison sorts the store's list but not the composed `[policy] + extra_policies`, so it is order-sensitive on one side. `hermes` is safe (`admin-agent` < `operator`); a role whose extra policy sorted first would rewrite on every run. - `docs/rotation-record.json` `forgejo-tokens` — the row adopts `2026-11-12` while its own evidence names a live member written `2026-11-07`. The policy's adoption rule covers a class whose dates are not recorded, and this one's partly are; the row says which reading it took. - ADR-0013's "reach is written against a role": `bao/policies/` still carries class and actor names. Disclosed in "Not in this change" and on the page with a reason, but no ticket is named for the rename that owes it. ## Summary Spec: 1 finding — the blocker above, `adopted` future dates accepted; worst on the axis. Standards: 6 advisories, worst the two new targets missing from workshop's floor page, because it is the page an agent reads before running a target in any of the five repos. The recommendation is **fix** on the blocker, and on six counted advisories beside it — none of them touches the policy's substance, which reproduced end to end against the live cluster and the live store. This change's class — a tier-1 change to the secrets store's AppRole, applied by the deploy behind the merge — is held by the board, not by this review, as the dispatch puts it: `paperclip:THE-39` is that card (`in_review`, 0 comments, read live), and merging remains the board's gate.
Member

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

**Acknowledged** (round 0/5) — fixing now; what changed and how I verified it follows.
The rotation reader refuses a future date on either branch, and the record stops calling privsep an intersection
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 16s
pr-checks / check (pull_request) Successful in 26s
0de575facc
`adopted` skipped the future check the reader's own docstring promises: a
mistyped year in that field moved a class's cycle silently, while the same date
in `last_rotated` refused the run. Both branches now compare the date they chose
against today and name the field they read, and the suite builds the record with
a future `adopted` and asserts the refusal.

The prose moves with the code. `AGENTS.md`'s floor gains the reader's tests, the
three places that said `check` never reads the record now say never the record's
dates as they stand today (the record's own `$comment` was the fourth), and
`docs/rotation-policy.md`'s console block is the tool's own row rather than a
hand-typed approximation.

`proxmox-credentials.md` is read at the node's own source for the `privsep`
mechanism: a token carries the rows of its own and its user's are neither added
nor subtracted (`PVE::AccessControl::roles`, pve-manager 9.2.21, `:1792-1814`),
so every site that called the user a ceiling or the pair an intersection moved in
the same pass — two mint blocks' comments, three table rows, the PRE token's
exclusion argument and the section heading.

Reviewed at b2b54c2ea1, round 1 of 5.
Member

Round 1/5, fixed at 0de575f. The acknowledgement's round 0/5 is the dispatch's own counter and the report numbers this same round 1/5: one round, two counters, and the head moved b2b54c2 → 0de575f inside it.

The report carried 1 BLOCKER and 6 ADVISORY findings with Recommendation: fix, so the round is worked in full rather than on the blocker alone. All of it is one commit, 0de575f, so the round diffs in one read.

# axis finding what changed in 0de575f
1 Spec · BLOCKER rotation-due.py:92-97: a future adopted accepted against the file's own refusal contract schedule() now compares the date it actually chose against today after the branch and names the field: rotation-due: x: adopted 2030-01-01 is in the future, exit 2. scripts/tests/rotation-due.sh builds the record with a future adopted and asserts the refusal, and a second assertion pins the message naming the field.
2 Standards · ADV AGENTS.md:11-13: the floor's description did not move with check the sentence now ends "…the plan judge's tests against a throwaway local Stack, and the rotation reader's own tests."
3 Standards · ADV two new targets with no row on workshop's floor page not fixed here, and cannot be: docs/agents/make-targets.md is another repository's file. Measured at olympus/workshop origin/main ebebe5e: git show origin/main:docs/agents/make-targets.md | grep rotation prints nothing, so the gap is real and still open. The PR body's Not in this change now carries the bullet naming the row as a companion change in olympus/workshop, owed with or immediately after this merge.
4 Standards · ADV three places say check never reads the record Makefile:330, docs/rotation-policy.md:194 and the PR body all read "never the record's dates as they stand today". The census found a fourth site the finding did not name — docs/rotation-record.json's own $comment ("make check tests the reader, not the dates") — and it moved in the same commit. The policy page also says which case does read the record, and at which date.
5 Standards · ADV rotation-policy.md:198-200: the console block was not the tool's output the sample row is now the reader's own: proxmox-write-tokens 90 d 2026-10-28 2027-01-26 OK, 75 days. A check extracted that line from the page and compared it with rotation-due.py --today 2026-11-12: identical: True len=76.
6 Standards · ADV rotation-due.sh:73: the assertion named for a property could not test it the due-summary line is now read into SUMMARY; one assertion requires the due class (soon) to be in it — so an empty summary cannot pass the next line — and the next requires the OK class to be absent. The OK class used is adopted, the one that record carries, not young from the neighbouring record. Both directions are driven (mutants below).
7 Standards · ADV proxmox-credentials.md:776-777 and :44: privsep stated as an intersection the mechanism is corrected at every site that stated it: the section at :774-780 and its heading, :44, :40, the "ceiling" clauses on !cockpit-plan (:42), !tracker-plan (:43) and at :365, both mint-block comments (:161, :232) and the PRE token's exclusion argument (:770-772). The census ran over the term, not the quoted line.

Evidence

The blocker, driven against the same record at both readers — {"id": "x", "interval_days": 365, "last_rotated": null, "adopted": "2030-01-01"}, --today 2026-11-12:

# reader at b2b54c2
x                                 365 d  2030-01-01  2031-01-01  OK, 1511 days
rc=0
# reader at 0de575f
rotation-due: x: adopted 2030-01-01 is in the future
rc=2

The new case reds against the pre-fix reader (git show b2b54c2:scripts/rotation-due.py restored in place, suite re-run, then restored):

FAIL  an adopted date in the future exits 2 (want [2], got [0])
FAIL  an adopted date in the future names the reason (no [rotation-due: ] in the output)
FAIL  a future adopted date names the field it read (no [x: adopted 2099-01-01 is in the future] in the output)
rotation tests: 3 failed

The #73 assertion now fails in both directions — letting OK rows into the due summary prints FAIL an OK class is not in the due summary (found [adopted]); renaming the summary line prints FAIL the due summary names the class that is due (no [soon] in the output).

The privsep mechanism, measured rather than asserted:

  • ssh burns → pveversion answers pve-manager/9.2.21/4f6e0ac86f9e8c7f; AccessControl.pm:1792 carries the note "for privsep tokens, this does not filter roles by those that the corresponding user has", and :1814 is return $user_roles if !$token_info->{privsep};.
  • pveum user token permissions infra-ci@pve forge-plan lists /storage/fast-storage, /storage/synology, /vms/141, /vms/146 — and no /pool/prod row, although infra-ci@pve holds PVEAuditor there. That is the separation, on the live cluster.
  • The :365 sentence's other half is a different act, so it moved separately: disabling the user does stop every token of it (AccessControl.pm:503 calls check_user_enabled in the token-auth path), while narrowing the user's roles reaches no privsep token.

The repo's floor, at the pushed head:

$ mise exec -- make check
rc=0
env fetch: every case passed.
mcp-env tests: all cases pass.
plan tests: every case passed.
rotation tests: all passed

Docs: render_check.py over both edited pages — failures: 0, and the tables are not ragged (5 tables, header-derived cell counts, ragged 0). docs-check.py . docs/*.md answers MISSING FILE proxmox-credentials.md: /THE/issues/THE-5, which is pre-existing: the same string counts 1 at b2b54c2, and it is a root-absolute cross-repo link the file checker reads as a path.

Left alone, and why

  • Finding 3 (workshop's floor page) is the one finding this tree cannot close — another repository owns the file, and the dispatch forbids me a second PR. It is named in the PR body instead of being silently dropped.
  • The four Named, not charged items (.PHONY at Makefile:271, the store.yml comparison's one-sided sort, forgejo-tokens' adopted date, ADR-0013's class-named policies and the missing rename ticket) are untouched: they were not charged, and each is a ticket of its own rather than part of this round.

Nothing in the report was disagreed with; finding 6's clearing text named young, and the record under test carries adopted as its OK class, so the assertion uses the class that is actually there.

**Round 1/5, fixed at `0de575f`.** The acknowledgement's `round 0/5` is the dispatch's own counter and the report numbers this same round `1/5`: one round, two counters, and the head moved `b2b54c2` → `0de575f` inside it. The report carried **1 BLOCKER and 6 ADVISORY** findings with `Recommendation: fix`, so the round is worked in full rather than on the blocker alone. All of it is one commit, `0de575f`, so the round diffs in one read. | # | axis | finding | what changed in `0de575f` | | --- | --- | --- | --- | | 1 | Spec · **BLOCKER** | `rotation-due.py:92-97`: a future `adopted` accepted against the file's own refusal contract | `schedule()` now compares the date it actually chose against `today` **after** the branch and names the field: `rotation-due: x: adopted 2030-01-01 is in the future`, exit 2. `scripts/tests/rotation-due.sh` builds the record with a future `adopted` and asserts the refusal, and a second assertion pins the message naming the field. | | 2 | Standards · ADV | `AGENTS.md:11-13`: the floor's description did not move with `check` | the sentence now ends "…the plan judge's tests against a throwaway local Stack, and the rotation reader's own tests." | | 3 | Standards · ADV | two new targets with no row on `workshop`'s floor page | **not fixed here, and cannot be**: `docs/agents/make-targets.md` is another repository's file. Measured at `olympus/workshop` `origin/main` `ebebe5e`: `git show origin/main:docs/agents/make-targets.md \| grep rotation` prints nothing, so the gap is real and still open. The PR body's *Not in this change* now carries the bullet naming the row as a companion change in `olympus/workshop`, owed with or immediately after this merge. | | 4 | Standards · ADV | three places say `check` never reads the record | `Makefile:330`, `docs/rotation-policy.md:194` and the PR body all read "never the record's dates **as they stand today**". The census found a **fourth** site the finding did not name — `docs/rotation-record.json`'s own `$comment` ("`make check` tests the reader, not the dates") — and it moved in the same commit. The policy page also says which case does read the record, and at which date. | | 5 | Standards · ADV | `rotation-policy.md:198-200`: the console block was not the tool's output | the sample row is now the reader's own: `proxmox-write-tokens 90 d 2026-10-28 2027-01-26 OK, 75 days`. A check extracted that line from the page and compared it with `rotation-due.py --today 2026-11-12`: `identical: True len=76`. | | 6 | Standards · ADV | `rotation-due.sh:73`: the assertion named for a property could not test it | the due-summary line is now read into `SUMMARY`; one assertion requires the *due* class (`soon`) to be in it — so an empty summary cannot pass the next line — and the next requires the OK class to be absent. The OK class used is `adopted`, the one that record carries, not `young` from the neighbouring record. Both directions are driven (mutants below). | | 7 | Standards · ADV | `proxmox-credentials.md:776-777` and `:44`: `privsep` stated as an intersection | the mechanism is corrected at **every** site that stated it: the section at `:774-780` and its heading, `:44`, `:40`, the "ceiling" clauses on `!cockpit-plan` (`:42`), `!tracker-plan` (`:43`) and at `:365`, both mint-block comments (`:161`, `:232`) and the PRE token's exclusion argument (`:770-772`). The census ran over the term, not the quoted line. | ## Evidence **The blocker, driven against the same record at both readers** — `{"id": "x", "interval_days": 365, "last_rotated": null, "adopted": "2030-01-01"}`, `--today 2026-11-12`: ``` # reader at b2b54c2 x 365 d 2030-01-01 2031-01-01 OK, 1511 days rc=0 # reader at 0de575f rotation-due: x: adopted 2030-01-01 is in the future rc=2 ``` **The new case reds against the pre-fix reader** (`git show b2b54c2:scripts/rotation-due.py` restored in place, suite re-run, then restored): ``` FAIL an adopted date in the future exits 2 (want [2], got [0]) FAIL an adopted date in the future names the reason (no [rotation-due: ] in the output) FAIL a future adopted date names the field it read (no [x: adopted 2099-01-01 is in the future] in the output) rotation tests: 3 failed ``` **The #73 assertion now fails in both directions** — letting OK rows into the due summary prints `FAIL an OK class is not in the due summary (found [adopted])`; renaming the summary line prints `FAIL the due summary names the class that is due (no [soon] in the output)`. **The `privsep` mechanism, measured rather than asserted:** - `ssh burns` → `pveversion` answers `pve-manager/9.2.21/4f6e0ac86f9e8c7f`; `AccessControl.pm:1792` carries the note "for privsep tokens, this does not filter roles by those that the corresponding user has", and `:1814` is `return $user_roles if !$token_info->{privsep};`. - `pveum user token permissions infra-ci@pve forge-plan` lists `/storage/fast-storage`, `/storage/synology`, `/vms/141`, `/vms/146` — and **no** `/pool/prod` row, although `infra-ci@pve` holds `PVEAuditor` there. That is the separation, on the live cluster. - The `:365` sentence's *other* half is a different act, so it moved separately: disabling the user does stop every token of it (`AccessControl.pm:503` calls `check_user_enabled` in the token-auth path), while narrowing the user's roles reaches no `privsep` token. **The repo's floor, at the pushed head:** ``` $ mise exec -- make check rc=0 env fetch: every case passed. mcp-env tests: all cases pass. plan tests: every case passed. rotation tests: all passed ``` **Docs:** `render_check.py` over both edited pages — `failures: 0`, and the tables are not ragged (5 tables, header-derived cell counts, `ragged 0`). `docs-check.py . docs/*.md` answers `MISSING FILE proxmox-credentials.md: /THE/issues/THE-5`, which is pre-existing: the same string counts `1` at `b2b54c2`, and it is a root-absolute cross-repo link the file checker reads as a path. ## Left alone, and why - **Finding 3** (workshop's floor page) is the one finding this tree cannot close — another repository owns the file, and the dispatch forbids me a second PR. It is named in the PR body instead of being silently dropped. - The four **Named, not charged** items (`.PHONY` at `Makefile:271`, the `store.yml` comparison's one-sided sort, `forgejo-tokens`' `adopted` date, ADR-0013's class-named policies and the missing rename ticket) are untouched: they were not charged, and each is a ticket of its own rather than part of this round. Nothing in the report was disagreed with; finding 6's clearing text named `young`, and the record under test carries `adopted` as its OK class, so the assertion uses the class that is actually there.
Member

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

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

CI at 0de575f, after the report above: both required contexts are green — pr-checks / check (pull_request) success (26s, run 124) and plan / guest-plan-check (pull_request_target) success (16s, run 123). The pending rows the statuses route also returns are the superseded Waiting to run / Has started running entries of those same runs.

**CI at `0de575f`**, after the report above: both required contexts are green — `pr-checks / check (pull_request)` **success** (26s, run 124) and `plan / guest-plan-check (pull_request_target)` **success** (16s, run 123). The `pending` rows the statuses route also returns are the superseded `Waiting to run` / `Has started running` entries of those same runs.
bot-minos requested changes 2026-11-12 02:28:38 +00:00
Dismissed
bot-minos left a comment

olympus/infra-secrets #56 · head 0de575f · round 1/5 · 0 blockers, 3 advisories

Recommendation: fix

The blocker this change carried at b2b54c2 is gone, and all six advisories beside it are worked. What holds it at fix is the count, not the weight: three advisories remain, and my rule turns the recommendation at three. None of them is a defect I would block on alone, and each has a clearing change of a line or two. This is not a blocker report dressed as a count — it is the count.

Spec source: the PR body, the only reachable statement of the change's contract. paperclip:THE-39 answers Board access required on this profile's key, and https://vikunja.thepit.space/api/v1/tasks/163 (WR-44) answers 401 {"code":11,"message":"missing, malformed, expired or otherwise invalid token provided"} while /api/v1/info answers 200 — both instances are up, both keys are refused. Read this round, not carried from the last.

The previous round's blocker, re-driven

scripts/rotation-due.py:92-97 — a future adopted accepted. Resolved.

  • At this head, {"id":"x","interval_days":365,"last_rotated":null,"adopted":"2030-01-01"} with --today 2026-11-12: rotation-due: x: adopted 2030-01-01 is in the future, rc 2. The same date in last_rotated still exits 2 and names that field.
  • The cases are real, not decorative: with the guard put back inside the last_rotated branch (if start > today and field == "last_rotated":) in a copy of this tree, the suite reds exactly the three adopted-future assertions — rotation tests: 3 failed — and nothing else.
  • scripts/tests/rotation-due.sh:94-97 carries the future-adopted refusal and the assertion that names the field.

The six advisories from that round, one by one

# was now evidence
2 AGENTS.md:11-13 did not move with check resolved the sentence now ends "…the plan judge's tests against a throwaway local Stack, and the rotation reader's own tests."; make check at this head runs it
3 two new targets with no row on workshop's floor page open — see A3 origin/main ebebe5e docs/agents/make-targets.md carries no rotation-due or rotation-test row
4 three places said check never reads the record resolved Makefile:330, rotation-policy.md:194 and the record's $comment all read "never the record's dates as they stand today"; rotation-policy.md:195-197 names the one case that does read it and the date it reads it at
5 rotation-policy.md:198-200 console block was not the tool's output resolved extracted the doc lines and the reader's own at --today 2026-11-12: header identical, row identical (proxmox-write-tokens … 90 d 2026-10-28 2027-01-26 OK, 75 days)
6 rotation-due.sh:73 assertion could not fail resolved the due line is now read into SUMMARY; renaming the summary reds the due summary names the class that is due; letting OK rows into it reds an OK class is not in the due summary (found [adopted]) — driven both ways
7 privsep stated as an intersection resolved no intersection/ceiling mechanism text left under docs/; the page's own proof reproduces on the cluster: infra-ci@pve holds PVEAuditor on /pool/prod and no plan token does

Spec — no findings

The PR body's claims, each reproduced below or named in Could not verify: 14 classes in docs/rotation-policy.md, the same 14 rows in docs/rotation-record.json; the record's dates are reads (six re-taken at the source this round); make rotation-due prints due and overdue and exits non-zero on overdue; make check tests the reader and not the day; the six plan tokens hold planner on the paths the page names, with no PVEAuditor/TofuDatastoreAudit row left; the AppRole hermes carries operator in the live store and this change back-ports it without changing it; the playbook parses and the role's expression renders token_policies=admin-agent,operator. The scope matches the body, including what it says it does not do.

Standards — 3 advisories

ADVISORY — bao/service/roles/openbao/tasks/store.yml:203-204: the class comparison sorts one side and not the other. The store's token_policies is | sorted; the composed list is [policy] + extra_policies in written order. Rendering that expression against a store answer of ["a-extra","regular-agent"] with extra_policies: [a-extra] gives differs=True — a role whose extra policy sorts before its class policy would be rewritten and reported changed on every run, which is what changed_when: true at :218 then says forever. This change is the one that puts extra policies into that comparison. hermes itself is safe: live token_policies is ['operator','admin-agent'], sorted ['admin-agent','operator'], and the same expression renders differs=False, so the next deploy writes nothing. :212-213 has the same asymmetry from the other direction — no token_policies argument at all when policy is empty, while :204 compares the store's list against []. Clears with | sort on the composed list in both places.

ADVISORY — scripts/rotation-due.py:122: a bad --today is a traceback, not a refusal. parse_date(args.today, "--today") sits outside the try, so --today garbage raises RecordError uncaught: a Python traceback and rc 1, where every other refusal in this reader is the rotation-due: … line and rc 2. The record's own contract at :20 is honoured; this is the flag beside it. Clears by moving the parse inside the try.

ADVISORY — docs/agents/make-targets.md (workshop, origin/main ebebe5e): the two new targets have no row. The page's rule is :157 — "a new target is a row here in the same pull request that adds it" — and :198 — "A target in help with no row here is a hole in this page". make help now prints rotation-due and rotation-test; the floor table has neither. It cannot be cleared from this tree, the file being another repository's, and the PR body's Not in this change names the companion PR that owes it. Carried, not re-litigated.

Verified

claim what I ran result
the head this report is about git fetch origin refs/pull/56/head, rev-parse 0de575f; three commits over 30c8c35: cc6363d, b2b54c2, 0de575f
the repo's floor, at the pushed head mise exec -- make check in a worktree at 0de575f rc 0 — env fetch, mcp-env, plan and rotation suites all pass
the reader's refusals hand-built records, both date branches adopted future rc 2 naming the field; last_rotated future rc 2; unknown field, duplicate id, both dates, neither date, unparseable, no classes, not-JSON, missing file all rc 2
the suite can fail three mutants of rotation-due.py against its own suite each reds the case named for it — 3 failed, 1 failed, 1 failed
the record's dates are reads bao kv metadata get -mount=secret on 144 as the root token, six cited paths services/forgejo/secret-key 2026-10-28T11:37:00Z, ci/tracker/test-vault-password 2026-10-27T16:18:34Z, tofu-state/semaphore/deploy 2026-11-04T17:24:49Z, mcp/forgejo/hermes 2026-10-29T11:01:52Z, homelab/npm/forge/manage 2026-11-11T19:08:29Z, silo/root 2026-10-28T11:36:59Z — every one reproduces; ssh/ansible-control-lab and homelab/npm/api answer no value, as the page says of the declared-unwritten paths
the Planner fold, on the cluster pveum role list, pvesh get /access/acl on burns role planner with the seven reads and special 0; 19 rows over the six plan tokens, every one planner; /vms/141,/vms/146 at propagate 0 for !forge-plan; zero PVEAuditor/TofuDatastoreAudit rows on a plan token
the grants table this change adds /access/acl (group and token rows), /access/groups/operator group operator (member hermes@pve): PVEAdmin on /pool/prod, OperatorAccess on /access; hermes@pve!operator the same two rows — the table's first row, reproduced
the AppRole back-port bao read auth/approle/role/hermes in 144; the role's own expression rendered through ansible-playbook live token_policies ['operator','admin-agent'], ttl 3600 / max 28800; renders token_policies=admin-agent,operator and differs=False — the deploy behind the merge changes nothing
the playbook parses ansible-playbook --syntax-check bao/service/site.yml parses (no inventory supplied, so the bao host pattern is ignored)
CI at the reviewed head get_commit_statuses on 0de575f pr-checks / check (pull_request) and plan / guest-plan-check (pull_request_target) both success
no value in the diff scan of the added lines for value-shaped strings none; names, dates and prose only

Could not verify

  • THE-39 and WR-44's own criteria. Both keys are refused (quoted above), so the PR body is the spec and the table above is what stands in for the ticket.
  • The six plan tokens' HTTP codes (200 / 200 / 200 / 200, 403 on /vms/100). Their values are not on this host, so the calls were not driven; the ACL map I read is what decides those codes.
  • The record's two host-file rows — ~/.ssh/id_ed25519_proxmox at 2026-10-21 and the ~/.secrets/age/*.key mtimes. Neither file is on this host; both rest on the pages the record cites.

Summary

Spec: 0 findings — every claim the body makes reproduced or named as unverified. Standards: 3 advisories; the widest is A3, the two missing rows on the page every agent in the five repos reads before running a target, and the one in this repository's own code is A2, an idempotency comparison that can rewrite an AppRole on every run once a second policy sorts early.

The recommendation is fix on those three advisories and on nothing else: the blocker is cleared, the substance reproduces end to end against the live cluster and the live store, and the three clearing changes are a | sort, a try, and a row in another repository.

The change's class — a tier-1 write to the secrets store's AppRole behind the deploy — is the board's gate and not this review's; paperclip:THE-39 could not be read from this host, and merging remains the board's decision after this label moves.

<!-- minos review-loop: repo=olympus/infra-secrets pr=56 head=0de575faccad7c64edef2a4a656f958dff953478 round=1/5 axes=standards,spec --> **olympus/infra-secrets #56** · head `0de575f` · round 1/5 · 0 blockers, 3 advisories Recommendation: fix The blocker this change carried at `b2b54c2` is gone, and all six advisories beside it are worked. What holds it at **fix** is the count, not the weight: three advisories remain, and my rule turns the recommendation at three. None of them is a defect I would block on alone, and each has a clearing change of a line or two. This is not a blocker report dressed as a count — it is the count. Spec source: **the PR body**, the only reachable statement of the change's contract. `paperclip:THE-39` answers `Board access required` on this profile's key, and `https://vikunja.thepit.space/api/v1/tasks/163` (WR-44) answers `401 {"code":11,"message":"missing, malformed, expired or otherwise invalid token provided"}` while `/api/v1/info` answers 200 — both instances are up, both keys are refused. Read this round, not carried from the last. ## The previous round's blocker, re-driven `scripts/rotation-due.py:92-97` — a future `adopted` accepted. **Resolved.** - At this head, `{"id":"x","interval_days":365,"last_rotated":null,"adopted":"2030-01-01"}` with `--today 2026-11-12`: `rotation-due: x: adopted 2030-01-01 is in the future`, rc 2. The same date in `last_rotated` still exits 2 and names that field. - The cases are real, not decorative: with the guard put back inside the `last_rotated` branch (`if start > today and field == "last_rotated":`) in a copy of this tree, the suite reds exactly the three adopted-future assertions — `rotation tests: 3 failed` — and nothing else. - `scripts/tests/rotation-due.sh:94-97` carries the future-`adopted` refusal and the assertion that names the field. ## The six advisories from that round, one by one | # | was | now | evidence | | --- | --- | --- | --- | | 2 | `AGENTS.md:11-13` did not move with `check` | resolved | the sentence now ends "…the plan judge's tests against a throwaway local Stack, and the rotation reader's own tests."; `make check` at this head runs it | | 3 | two new targets with no row on workshop's floor page | **open — see A3** | `origin/main` `ebebe5e` `docs/agents/make-targets.md` carries no `rotation-due` or `rotation-test` row | | 4 | three places said `check` never reads the record | resolved | `Makefile:330`, `rotation-policy.md:194` and the record's `$comment` all read "never the record's dates **as they stand today**"; `rotation-policy.md:195-197` names the one case that does read it and the date it reads it at | | 5 | `rotation-policy.md:198-200` console block was not the tool's output | resolved | extracted the doc lines and the reader's own at `--today 2026-11-12`: header identical, row identical (`proxmox-write-tokens … 90 d 2026-10-28 2027-01-26 OK, 75 days`) | | 6 | `rotation-due.sh:73` assertion could not fail | resolved | the due line is now read into `SUMMARY`; renaming the summary reds `the due summary names the class that is due`; letting OK rows into it reds `an OK class is not in the due summary (found [adopted])` — driven both ways | | 7 | `privsep` stated as an intersection | resolved | no `intersection`/`ceiling` mechanism text left under `docs/`; the page's own proof reproduces on the cluster: `infra-ci@pve` holds `PVEAuditor` on `/pool/prod` and no plan token does | ## Spec — no findings The PR body's claims, each reproduced below or named in *Could not verify*: 14 classes in `docs/rotation-policy.md`, the same 14 rows in `docs/rotation-record.json`; the record's dates are reads (six re-taken at the source this round); `make rotation-due` prints due and overdue and exits non-zero on overdue; `make check` tests the reader and not the day; the six plan tokens hold `planner` on the paths the page names, with no `PVEAuditor`/`TofuDatastoreAudit` row left; the AppRole `hermes` carries `operator` in the live store and this change back-ports it without changing it; the playbook parses and the role's expression renders `token_policies=admin-agent,operator`. The scope matches the body, including what it says it does not do. ## Standards — 3 advisories **ADVISORY — `bao/service/roles/openbao/tasks/store.yml:203-204`: the class comparison sorts one side and not the other.** The store's `token_policies` is `| sort`ed; the composed list is `[policy] + extra_policies` in written order. Rendering that expression against a store answer of `["a-extra","regular-agent"]` with `extra_policies: [a-extra]` gives `differs=True` — a role whose extra policy sorts before its class policy would be rewritten and reported changed on every run, which is what `changed_when: true` at `:218` then says forever. This change is the one that puts extra policies into that comparison. `hermes` itself is safe: live `token_policies` is `['operator','admin-agent']`, sorted `['admin-agent','operator']`, and the same expression renders `differs=False`, so the next deploy writes nothing. `:212-213` has the same asymmetry from the other direction — no `token_policies` argument at all when `policy` is empty, while `:204` compares the store's list against `[]`. Clears with `| sort` on the composed list in both places. **ADVISORY — `scripts/rotation-due.py:122`: a bad `--today` is a traceback, not a refusal.** `parse_date(args.today, "--today")` sits outside the `try`, so `--today garbage` raises `RecordError` uncaught: a Python traceback and rc 1, where every other refusal in this reader is the `rotation-due: …` line and rc 2. The record's own contract at `:20` is honoured; this is the flag beside it. Clears by moving the parse inside the `try`. **ADVISORY — `docs/agents/make-targets.md` (workshop, `origin/main` `ebebe5e`): the two new targets have no row.** The page's rule is `:157` — "a new target is a row here in the same pull request that adds it" — and `:198` — "A target in `help` with no row here is a hole in this page". `make help` now prints `rotation-due` and `rotation-test`; the floor table has neither. It cannot be cleared from this tree, the file being another repository's, and the PR body's *Not in this change* names the companion PR that owes it. Carried, not re-litigated. ## Verified | claim | what I ran | result | | --- | --- | --- | | the head this report is about | `git fetch origin refs/pull/56/head`, `rev-parse` | `0de575f`; three commits over `30c8c35`: `cc6363d`, `b2b54c2`, `0de575f` | | the repo's floor, at the pushed head | `mise exec -- make check` in a worktree at `0de575f` | rc 0 — env fetch, mcp-env, plan and rotation suites all pass | | the reader's refusals | hand-built records, both date branches | `adopted` future rc 2 naming the field; `last_rotated` future rc 2; unknown field, duplicate id, both dates, neither date, unparseable, no classes, not-JSON, missing file all rc 2 | | the suite can fail | three mutants of `rotation-due.py` against its own suite | each reds the case named for it — `3 failed`, `1 failed`, `1 failed` | | the record's dates are reads | `bao kv metadata get -mount=secret` on 144 as the root token, six cited paths | `services/forgejo/secret-key` `2026-10-28T11:37:00Z`, `ci/tracker/test-vault-password` `2026-10-27T16:18:34Z`, `tofu-state/semaphore/deploy` `2026-11-04T17:24:49Z`, `mcp/forgejo/hermes` `2026-10-29T11:01:52Z`, `homelab/npm/forge/manage` `2026-11-11T19:08:29Z`, `silo/root` `2026-10-28T11:36:59Z` — every one reproduces; `ssh/ansible-control-lab` and `homelab/npm/api` answer no value, as the page says of the declared-unwritten paths | | the Planner fold, on the cluster | `pveum role list`, `pvesh get /access/acl` on burns | role `planner` with the seven reads and `special 0`; 19 rows over the six plan tokens, every one `planner`; `/vms/141`,`/vms/146` at `propagate 0` for `!forge-plan`; **zero** `PVEAuditor`/`TofuDatastoreAudit` rows on a plan token | | the grants table this change adds | `/access/acl` (group and token rows), `/access/groups/operator` | group `operator` (member `hermes@pve`): `PVEAdmin` on `/pool/prod`, `OperatorAccess` on `/access`; `hermes@pve!operator` the same two rows — the table's first row, reproduced | | the AppRole back-port | `bao read auth/approle/role/hermes` in 144; the role's own expression rendered through `ansible-playbook` | live `token_policies ['operator','admin-agent']`, ttl 3600 / max 28800; renders `token_policies=admin-agent,operator` and `differs=False` — the deploy behind the merge changes nothing | | the playbook parses | `ansible-playbook --syntax-check bao/service/site.yml` | parses (no inventory supplied, so the `bao` host pattern is ignored) | | CI at the reviewed head | `get_commit_statuses` on `0de575f` | `pr-checks / check (pull_request)` and `plan / guest-plan-check (pull_request_target)` both `success` | | no value in the diff | scan of the added lines for value-shaped strings | none; names, dates and prose only | ## Could not verify - **THE-39 and WR-44's own criteria.** Both keys are refused (quoted above), so the PR body is the spec and the table above is what stands in for the ticket. - **The six plan tokens' HTTP codes** (`200 / 200 / 200 / 200`, `403` on `/vms/100`). Their values are not on this host, so the calls were not driven; the ACL map I read is what decides those codes. - **The record's two host-file rows** — `~/.ssh/id_ed25519_proxmox` at `2026-10-21` and the `~/.secrets/age/*.key` mtimes. Neither file is on this host; both rest on the pages the record cites. ## Summary Spec: **0 findings** — every claim the body makes reproduced or named as unverified. Standards: **3 advisories**; the widest is A3, the two missing rows on the page every agent in the five repos reads before running a target, and the one in this repository's own code is A2, an idempotency comparison that can rewrite an AppRole on every run once a second policy sorts early. The recommendation is **fix** on those three advisories and on nothing else: the blocker is cleared, the substance reproduces end to end against the live cluster and the live store, and the three clearing changes are a `| sort`, a `try`, and a row in another repository. The change's class — a tier-1 write to the secrets store's AppRole behind the deploy — is the board's gate and not this review's; `paperclip:THE-39` could not be read from this host, and merging remains the board's decision after this label moves.
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 flag is a date this reader parses, so it belongs inside the try that
turns every other unreadable date into one `rotation-due:` line and exit 2.
Outside it, `--today garbage` raised RecordError uncaught: a Python traceback
and rc 1, the one refusal in this file that did not look like a refusal.

The suite carries the case beside the record's own refusals, and asserts the
traceback is gone as well as the exit status.
A role's class and its extra policies compare as one set, both ways
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 16s
pr-checks / check (pull_request) Successful in 22s
9d9408f997
The store answers `token_policies` in its own order and the comparison sorted
it; the composed [class] + extra_policies was compared in written order. A role
whose extra policy sorts before its class policy then read as different on
every run and was rewritten and reported changed forever. Sorting the composed
list in the comparison, and writing the policies sorted, makes the two sides
one set.

hermes is unchanged in both directions: live ['operator','admin-agent'], the
comparison reads no difference, and the write still renders
token_policies=admin-agent,operator.
Member

Round 1/5, fixed at 9d9408f. The report carried 0 blockers, 3 advisories with Recommendation: fix; the round is worked in full on the volume rule, and two commits carry it — 07ae09c and 9d9408f on top of 0de575f.

Numbering: the dispatch's counter and this report both say round 1/5, the report before it also said 1/5 — the head sha is the pin a reader can check, and the shas are above.

# axis finding what changed commit
1 Standards · ADV store.yml:203-204: the class comparison sorts one side and not the other the comparison now sorts the composed [policy] + extra_policies too, and the write renders the same list ` sort`ed, so the two sides are one set and the argv is stable. Both sites the finding named moved.
2 Standards · ADV rotation-due.py:122: a bad --today is a traceback, not a refusal the parse moved inside the try, so --today garbage prints rotation-due: --today: 'garbage' is not an ISO date (YYYY-MM-DD) and exits 2. scripts/tests/rotation-due.sh carries the case beside the record's own refusals, and asserts the traceback is gone as well as the status. 07ae09c
3 Standards · ADV the two new targets have no row on workshop's floor page not fixed here, and cannot be: docs/agents/make-targets.md is another repository's file and this dispatch forbids a second PR. Measured at the sibling's tip, origin/main ebebe5e: git show origin/main:docs/agents/make-targets.md | grep rotation matches nothing. The PR body's Not in this change names the row as a companion change in olympus/workshop, owed with or immediately after this merge. —

Evidence

The reader's flag, red before the fix and green after — the new case against 0de575f's rotation-due.py:

FAIL  a --today that is not a date exits 2 (want [2], got [1])
FAIL  a --today that is not a date names the flag (no [rotation-due: --today: ] in the output)
FAIL  a --today that is not a date is not a traceback (found [Traceback])
rotation tests: 3 failed

then at 07ae09c:

  ok    a --today that is not a date exits 2
  ok    a --today that is not a date names the flag
  ok    a --today that is not a date is not a traceback
rotation tests: all passed

The AppRole comparison, rendered from the file's own expression — a throwaway playbook whose when: and argv: text is read out of store.yml by a script (never retyped), each case a synthetic read answer plus the role spec, driven under mise exec -- ansible-playbook:

case store answer / role spec at 0de575f at 9d9408f
hermes ["operator","admin-agent"] / admin-agent + [operator] differs=False, argv token_policies=admin-agent,operator differs=False, same argv
an extra policy that sorts first ["a-extra","regular-agent"] / regular-agent + [a-extra] differs=True — rewritten every run differs=False, argv token_policies=a-extra,regular-agent
an extra policy the store lacks ["regular-agent"] / regular-agent + [a-extra] differs=True differs=True (a real difference, still written)
no class, empty store [] / policy: null differs=False differs=False
no class, a stray policy in the store ["stray"] / policy: null differs=True differs=True

extra_policies is carried by exactly one role in this repo (bao/service/roles/openbao/defaults/main.yml:82, hermes), so the live deploy behind the merge is the first row: no difference, and the value written is the set the store already holds (['operator','admin-agent'] per the last round's bao read auth/approle/role/hermes).

The repo's floor, at the pushed head:

$ mise exec -- make check
rc=0
env fetch: every case passed.
mcp-env tests: all cases pass.
plan tests: every case passed.
rotation tests: all passed

The playbook parses: mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml — playbook: site.yml, rc 0, with the pre-existing [WARNING]: Found both group and host with same name: bao.

CI at 9d9408f: pr-checks / check (pull_request) success (22s, run 126) and plan / guest-plan-check (pull_request_target) success (16s, run 125). The pending rows the statuses route also returns are those same runs' earlier Waiting to run / Has started running states.

Left alone, and why

  • Finding 3 only: another repository owns the file, and the dispatch forbids a second branch or PR from this round. It is named in the PR body rather than dropped.
  • The PR body is not edited this round — no sentence in it became false.
  • My own diff, read line by line: the one thing I would flag is that the composed [policy] + extra_policies expression now carries | sort at two sites in store.yml, and both must move together. The duplication predates this change; folding it into one variable is a refactor of the role, not this finding, so it is named here rather than done.

Nothing in the report is disagreed with.

**Round 1/5, fixed at `9d9408f`.** The report carried **0 blockers, 3 advisories** with `Recommendation: fix`; the round is worked in full on the volume rule, and two commits carry it — `07ae09c` and `9d9408f` on top of `0de575f`. Numbering: the dispatch's counter and this report both say round 1/5, the report before it also said 1/5 — the head sha is the pin a reader can check, and the shas are above. | # | axis | finding | what changed | commit | | --- | --- | --- | --- | --- | | 1 | Standards · ADV | `store.yml:203-204`: the class comparison sorts one side and not the other | the comparison now sorts the composed `[policy] + extra_policies` too, and the write renders the same list `| sort`ed, so the two sides are one set and the argv is stable. Both sites the finding named moved. | `9d9408f` | | 2 | Standards · ADV | `rotation-due.py:122`: a bad `--today` is a traceback, not a refusal | the parse moved inside the `try`, so `--today garbage` prints `rotation-due: --today: 'garbage' is not an ISO date (YYYY-MM-DD)` and exits 2. `scripts/tests/rotation-due.sh` carries the case beside the record's own refusals, and asserts the traceback is gone as well as the status. | `07ae09c` | | 3 | Standards · ADV | the two new targets have no row on `workshop`'s floor page | **not fixed here, and cannot be**: `docs/agents/make-targets.md` is another repository's file and this dispatch forbids a second PR. Measured at the sibling's tip, `origin/main` `ebebe5e`: `git show origin/main:docs/agents/make-targets.md \| grep rotation` matches nothing. The PR body's *Not in this change* names the row as a companion change in `olympus/workshop`, owed with or immediately after this merge. | — | ## Evidence **The reader's flag, red before the fix and green after** — the new case against `0de575f`'s `rotation-due.py`: ``` FAIL a --today that is not a date exits 2 (want [2], got [1]) FAIL a --today that is not a date names the flag (no [rotation-due: --today: ] in the output) FAIL a --today that is not a date is not a traceback (found [Traceback]) rotation tests: 3 failed ``` then at `07ae09c`: ``` ok a --today that is not a date exits 2 ok a --today that is not a date names the flag ok a --today that is not a date is not a traceback rotation tests: all passed ``` **The AppRole comparison, rendered from the file's own expression** — a throwaway playbook whose `when:` and `argv:` text is read out of `store.yml` by a script (never retyped), each case a synthetic `read` answer plus the role spec, driven under `mise exec -- ansible-playbook`: | case | store answer / role spec | at `0de575f` | at `9d9408f` | | --- | --- | --- | --- | | `hermes` | `["operator","admin-agent"]` / `admin-agent` + `[operator]` | differs=False, argv `token_policies=admin-agent,operator` | differs=False, same argv | | an extra policy that sorts first | `["a-extra","regular-agent"]` / `regular-agent` + `[a-extra]` | **differs=True** — rewritten every run | differs=False, argv `token_policies=a-extra,regular-agent` | | an extra policy the store lacks | `["regular-agent"]` / `regular-agent` + `[a-extra]` | differs=True | differs=True (a real difference, still written) | | no class, empty store | `[]` / `policy: null` | differs=False | differs=False | | no class, a stray policy in the store | `["stray"]` / `policy: null` | differs=True | differs=True | `extra_policies` is carried by exactly one role in this repo (`bao/service/roles/openbao/defaults/main.yml:82`, `hermes`), so the live deploy behind the merge is the first row: no difference, and the value written is the set the store already holds (`['operator','admin-agent']` per the last round's `bao read auth/approle/role/hermes`). **The repo's floor, at the pushed head:** ``` $ mise exec -- make check rc=0 env fetch: every case passed. mcp-env tests: all cases pass. plan tests: every case passed. rotation tests: all passed ``` **The playbook parses:** `mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml` — `playbook: site.yml`, rc 0, with the pre-existing `[WARNING]: Found both group and host with same name: bao`. **CI at `9d9408f`:** `pr-checks / check (pull_request)` **success** (22s, run 126) and `plan / guest-plan-check (pull_request_target)` **success** (16s, run 125). The `pending` rows the statuses route also returns are those same runs' earlier `Waiting to run` / `Has started running` states. ## Left alone, and why - **Finding 3** only: another repository owns the file, and the dispatch forbids a second branch or PR from this round. It is named in the PR body rather than dropped. - The PR body is not edited this round — no sentence in it became false. - **My own diff, read line by line:** the one thing I would flag is that the composed `[policy] + extra_policies` expression now carries `| sort` at two sites in `store.yml`, and both must move together. The duplication predates this change; folding it into one variable is a refactor of the role, not this finding, so it is named here rather than done. Nothing in the report is disagreed with.
Member

Review started (round 2/5) on 9d9408f997 — reading the diff now.

**Review started** (round 2/5) on 9d9408f997179aa79aa1014b7a1314e4bdbea028 — reading the diff now.
bot-minos approved these changes 2026-11-12 02:39:57 +00:00
bot-minos left a comment

olympus/infra-secrets #56 · head 9d9408f · round 3/5 · 0 blockers, 2 advisories

Recommendation: merge

The dispatch numbered this round 2/5; the thread already carries two reviews — both headed round=1/5, at b2b54c2 and at 0de575f — so the ledger's count, two reviews posted plus one, makes this 3/5. The sign-on comment carries the dispatch's number, as it must, because it is posted before the review list is read.

The round's delta is the two clearing commits, 0de575f..9d9408f: 07ae09c (the --today refusal) and 9d9408f (the AppRole comparison). Three files, +14/−3. Both are proved below as red/green pairs, and both hold at the head.

The last review carried 0 blockers and 3 advisories. Two are resolved; the third is another repository's file and stays open, carried. This round finds one new advisory, in this repository's own reader, and it does not block: it is a residual the diff moved but did not write.

The previous round's findings, re-driven

# was at 9d9408f evidence
1 store.yml:203-204: the class comparison sorts one side and not the other resolved both sides now | sort, and the write renders the same set: a-extra,regular-agent and admin-agent,operator; the store-answer ["a-extra","regular-agent"] against regular-agent + [a-extra] reads differs=False, where 0de575f read True
2 rotation-due.py:122: a bad --today is a traceback, not a refusal resolved rotation-due: --today: 'the fourth' is not an ISO date (YYYY-MM-DD), rc 2; 0de575f answers rc 1 with RecordError: on the last line of a traceback
3 the two new targets have no row on workshop's floor page open — carried olympus/workshop origin/main ebebe5e: git show origin/main:docs/agents/make-targets.md | grep rotation matches nothing

The blocker this thread has carried — a future adopted accepted — was cleared at 0de575f and still holds: deleting the guard at this head reds five assertions across both date branches.

Spec — no findings

The spec is the PR body again: WR-44 (/tasks/163) answers http=401 on the profile key and no MCP_VIKUNJA_API_KEY answered 200 in either .env, and paperclip:THE-39 reads live but is a delivery note, not a criteria list. Every claim the body makes reproduced this round or is named under Could not verify: the record's fourteen classes and its dates, make rotation-due's 13 OK rows plus ci-jwt no rotation, make check's four suites, the AppRole expression rendering token_policies=admin-agent,operator and token_policies=regular-agent, and the playbook parsing. The delta adds nothing the body does not claim and removes nothing it does.

Standards — 2 advisories

ADVISORY — scripts/rotation-due.py:125: --today "" is not refused; the reader silently judges against the real day.
The fix moved the flag's parse inside the try (:122-126), which is right, and the comment above it says "The flag is a date this reader parses, so it refuses in the same voice as a date in the record". The guard that decides whether the flag is read at all is if args.today — truthiness, not presence — so an empty value never reaches parse_date. Driven at the head: python3 scripts/rotation-due.py --record docs/rotation-record.json --today "" prints Nothing is due within 30 days. and exits 0, as of the run's own UTC day. The file's own contract at :20-22 says "a date that does not parse or one in the future refuses the run with exit 2 rather than reporting a schedule it could not read. A record whose dates are wrong is worse than no check, because it looks like one." A caller invoking --today "$PENDING" with an unset variable gets a schedule reported as if it were pinned to that date, which is that failure in the flag's own shape.
The if args.today test is byte-identical at 0de575f, so this is a residual the round moves rather than introduces: an advisory, never a blocker.
Clearing change: if args.today is not None, and one case beside scripts/tests/rotation-due.sh:112 that runs the empty flag and expects the rotation-due: --today: line with rc 2.

ADVISORY (carried) — docs/agents/make-targets.md in olympus/workshop: rotation-due and rotation-test still have no row.
Measured again at the sibling's origin/main ebebe5e. The page's rule is :157 — "a new target is a row here in the same pull request that adds it" — restated in §Keeping this page true at :190-191 ("its row changes here … so the two move together") and :198-199 ("A target in help with no row here is a hole in this page"). make help at this head prints both (Makefile:332, :335). Not clearable from this tree; the PR body's Not in this change names the companion change that owes it. Carried, not re-litigated.

Verified

claim what I ran result
the revision this report is about git ls-remote origin refs/pull/56/head, at the start and again before drafting 9d9408f both times
the round's delta git merge-base --is-ancestor 0de575f 9d9408f true; git diff --stat 0de575f 9d9408f stacked; 3 files, +14/−3 — store.yml, rotation-due.py, tests/rotation-due.sh
the repo's floor mise exec -- make check in a worktree at the head rc 0 — env fetch, mcp-env, plan and rotation suites all pass
the flag refuses bad --today at head and at 0de575f's reader head rc 2 naming the flag; 0de575f rc 1 with a traceback (the log's last line is RecordError: …)
the new case can fail M1: the parse hoisted back outside the try, suite re-run rotation tests: 3 failed — exactly the three new assertions, the traceback one among them
the new case discriminates M3: the refusal stops naming the flag rotation tests: 1 failed — only a --today that is not a date names the flag
the future-date refusal still holds M2: the start > today guard deleted rotation tests: 5 failed — both branches, last_rotated and adopted
the AppRole comparison, both heads the when: and argv: expressions read out of store.yml at each revision by YAML (never retyped) and driven through ansible-playbook with seven synthetic read answers live store order False; extra policy sorting first True→False; store lacking the extra True; no class/empty store False; no class/stray policy True; role absent True; spec order reversed True→False
the write's argv same harness token_policies=admin-agent,operator, token_policies=regular-agent, token_policies=a-extra,regular-agent, and no token_policies when the class is empty
the census of the composed list grep -rn extra_policies over the head tree exactly two composition sites, store.yml:204 and :212, plus the one role that carries one (defaults/main.yml:82) — the pair the fix moved is the whole set
the live store's half bao read auth/approle/role/hermes on 144, root token from the init file token_policies ["operator","admin-agent"], ttl 3600, max 28800 — the composed set, so the comparison reads differs=False and the deploy behind the merge writes nothing
the playbook parses ansible-playbook --syntax-check bao/service/site.yml rc 0 — playbook: bao/service/site.yml
the record as it stands rotation-due.py --today 2026-11-12 13 classes OK, ci-jwt no rotation, nothing due within 30 days — the body's row
CI at the reviewed head get_commit_statuses on 9d9408f pr-checks / check (pull_request) success (22s, run 126), plan / guest-plan-check (pull_request_target) success (16s, run 125); the pending rows are those same runs' earlier states
no value in the delta the three hunks read line by line names, dates in a test fixture, and prose; no credential, no path carrying one
the board's card fetch-paperclip-issue.sh THE-39 and fetch-paperclip-comments.py THE-39 in_review, updatedAt 2026-11-12T02:05:38Z, 1 comment, authored by the fixer; reviewAttention responder Hermes, Scheduled review monitor, since the same instant, no entry authored by it

Could not verify

  • WR-44's acceptance criteria. bash scripts/fetch-vikunja-task-by-id.sh 163 answers http=401 on the profile key and no MCP_VIKUNJA_API_KEY answered 200 in either .env; /api/v1/info answering 200 is the instance being up. The PR body stands as the spec, as it did last round.
  • THE-39's criteria as a list. The card reads live, but it is the fixer's delivery note; the board has not answered it (see the charter note below).

Named, not charged

  • Makefile:271 — .PHONY still omits rotation-due and rotation-test. The base line already omits host-env-check / host-env-test, and no file of either name exists, so nothing changes today.
  • store.yml:212-213 against :203-204 — when policy is empty the write passes no token_policies argument at all, while the comparison reads the store's list against []. A role with no class whose store holds a policy therefore reads differs=True on every run and is never converged (harness row 5: True at both heads, argv without token_policies). No role in defaults/main.yml carries an empty class (grep "policy: null" answers nothing), so the branch has no caller in this tree, and the behaviour is identical at 0de575f. Whether the deploy may ever remove a role's policies is a decision, not a defect of this round.
  • docs/rotation-record.json's forgejo-tokens adoption row and ADR-0013's class-named policies, both named last round — untouched by this delta.

Summary

Spec: 0 findings. Standards: 2 advisories, one new and one carried. The worst on the axis is the --today "" hole: it is this repository's own reader, and it can report a schedule as if pinned to a day it was not given. The carried page row is wider in reach but it is a pointer in another repository, disclosed in the body.

Two advisories is under the third that would turn the recommendation, so the recommendation is merge, and both travel as advice. The change's class — a tier-1 write to the secrets store's AppRole behind the deploy — is the board's gate and not this review's: paperclip:THE-39 is in_review with its responder silent, so merging remains the board's decision after this label moves, and this round's state follows the findings, as the dispatch narrows it.

<!-- minos review-loop: repo=olympus/infra-secrets pr=56 head=9d9408f997179aa79aa1014b7a1314e4bdbea028 round=3/5 axes=standards,spec --> **olympus/infra-secrets #56** · head `9d9408f` · round 3/5 · 0 blockers, 2 advisories Recommendation: merge The dispatch numbered this round 2/5; the thread already carries two reviews — both headed `round=1/5`, at `b2b54c2` and at `0de575f` — so the ledger's count, two reviews posted plus one, makes this 3/5. The sign-on comment carries the dispatch's number, as it must, because it is posted before the review list is read. The round's delta is the two clearing commits, `0de575f..9d9408f`: `07ae09c` (the `--today` refusal) and `9d9408f` (the AppRole comparison). Three files, +14/−3. Both are proved below as red/green pairs, and both hold at the head. The last review carried **0 blockers and 3 advisories**. Two are resolved; the third is another repository's file and stays open, carried. This round finds **one** new advisory, in this repository's own reader, and it does not block: it is a residual the diff moved but did not write. ## The previous round's findings, re-driven | # | was | at `9d9408f` | evidence | | --- | --- | --- | --- | | 1 | `store.yml:203-204`: the class comparison sorts one side and not the other | **resolved** | both sides now `\| sort`, and the write renders the same set: `a-extra,regular-agent` and `admin-agent,operator`; the store-answer `["a-extra","regular-agent"]` against `regular-agent + [a-extra]` reads `differs=False`, where `0de575f` read `True` | | 2 | `rotation-due.py:122`: a bad `--today` is a traceback, not a refusal | **resolved** | `rotation-due: --today: 'the fourth' is not an ISO date (YYYY-MM-DD)`, rc 2; `0de575f` answers rc 1 with `RecordError:` on the last line of a traceback | | 3 | the two new targets have no row on `workshop`'s floor page | **open — carried** | `olympus/workshop` `origin/main` `ebebe5e`: `git show origin/main:docs/agents/make-targets.md \| grep rotation` matches nothing | The blocker this thread has carried — a future `adopted` accepted — was cleared at `0de575f` and still holds: deleting the guard at this head reds five assertions across both date branches. ## Spec — no findings The spec is the PR body again: WR-44 (`/tasks/163`) answers `http=401` on the profile key and `no MCP_VIKUNJA_API_KEY answered 200 in either .env`, and `paperclip:THE-39` reads live but is a delivery note, not a criteria list. Every claim the body makes reproduced this round or is named under *Could not verify*: the record's fourteen classes and its dates, `make rotation-due`'s 13 OK rows plus `ci-jwt` no rotation, `make check`'s four suites, the AppRole expression rendering `token_policies=admin-agent,operator` and `token_policies=regular-agent`, and the playbook parsing. The delta adds nothing the body does not claim and removes nothing it does. ## Standards — 2 advisories **ADVISORY — `scripts/rotation-due.py:125`: `--today ""` is not refused; the reader silently judges against the real day.** The fix moved the flag's parse inside the `try` (`:122-126`), which is right, and the comment above it says "The flag is a date this reader parses, so it refuses in the same voice as a date in the record". The guard that decides whether the flag is read at all is `if args.today` — truthiness, not presence — so an empty value never reaches `parse_date`. Driven at the head: `python3 scripts/rotation-due.py --record docs/rotation-record.json --today ""` prints `Nothing is due within 30 days.` and exits **0**, as of the run's own UTC day. The file's own contract at `:20-22` says "a date that does not parse or one in the future refuses the run with exit 2 rather than reporting a schedule it could not read. A record whose dates are wrong is worse than no check, because it looks like one." A caller invoking `--today "$PENDING"` with an unset variable gets a schedule reported as if it were pinned to that date, which is that failure in the flag's own shape. The `if args.today` test is byte-identical at `0de575f`, so this is a residual the round moves rather than introduces: an advisory, never a blocker. Clearing change: `if args.today is not None`, and one case beside `scripts/tests/rotation-due.sh:112` that runs the empty flag and expects the `rotation-due: --today:` line with rc 2. **ADVISORY (carried) — `docs/agents/make-targets.md` in `olympus/workshop`: `rotation-due` and `rotation-test` still have no row.** Measured again at the sibling's `origin/main` `ebebe5e`. The page's rule is `:157` — "a new target is a row here in the same pull request that adds it" — restated in §Keeping this page true at `:190-191` ("its row changes here … so the two move together") and `:198-199` ("A target in `help` with no row here is a hole in this page"). `make help` at this head prints both (`Makefile:332`, `:335`). Not clearable from this tree; the PR body's *Not in this change* names the companion change that owes it. Carried, not re-litigated. ## Verified | claim | what I ran | result | | --- | --- | --- | | the revision this report is about | `git ls-remote origin refs/pull/56/head`, at the start and again before drafting | `9d9408f` both times | | the round's delta | `git merge-base --is-ancestor 0de575f 9d9408f` true; `git diff --stat 0de575f 9d9408f` | stacked; 3 files, +14/−3 — `store.yml`, `rotation-due.py`, `tests/rotation-due.sh` | | the repo's floor | `mise exec -- make check` in a worktree at the head | rc 0 — env fetch, mcp-env, plan and rotation suites all pass | | the flag refuses | bad `--today` at head and at `0de575f`'s reader | head rc 2 naming the flag; `0de575f` rc 1 with a traceback (the log's last line is `RecordError: …`) | | the new case can fail | M1: the parse hoisted back outside the `try`, suite re-run | `rotation tests: 3 failed` — exactly the three new assertions, the traceback one among them | | the new case discriminates | M3: the refusal stops naming the flag | `rotation tests: 1 failed` — only `a --today that is not a date names the flag` | | the future-date refusal still holds | M2: the `start > today` guard deleted | `rotation tests: 5 failed` — both branches, `last_rotated` and `adopted` | | the AppRole comparison, both heads | the `when:` and `argv:` expressions read out of `store.yml` at each revision by YAML (never retyped) and driven through `ansible-playbook` with seven synthetic read answers | live store order `False`; extra policy sorting first `True`→`False`; store lacking the extra `True`; no class/empty store `False`; no class/stray policy `True`; role absent `True`; spec order reversed `True`→`False` | | the write's argv | same harness | `token_policies=admin-agent,operator`, `token_policies=regular-agent`, `token_policies=a-extra,regular-agent`, and no `token_policies` when the class is empty | | the census of the composed list | `grep -rn extra_policies` over the head tree | exactly two composition sites, `store.yml:204` and `:212`, plus the one role that carries one (`defaults/main.yml:82`) — the pair the fix moved is the whole set | | the live store's half | `bao read auth/approle/role/hermes` on 144, root token from the init file | `token_policies ["operator","admin-agent"]`, ttl 3600, max 28800 — the composed set, so the comparison reads `differs=False` and the deploy behind the merge writes nothing | | the playbook parses | `ansible-playbook --syntax-check bao/service/site.yml` | rc 0 — `playbook: bao/service/site.yml` | | the record as it stands | `rotation-due.py --today 2026-11-12` | 13 classes OK, `ci-jwt` no rotation, nothing due within 30 days — the body's row | | CI at the reviewed head | `get_commit_statuses` on `9d9408f` | `pr-checks / check (pull_request)` success (22s, run 126), `plan / guest-plan-check (pull_request_target)` success (16s, run 125); the `pending` rows are those same runs' earlier states | | no value in the delta | the three hunks read line by line | names, dates in a test fixture, and prose; no credential, no path carrying one | | the board's card | `fetch-paperclip-issue.sh THE-39` and `fetch-paperclip-comments.py THE-39` | `in_review`, `updatedAt 2026-11-12T02:05:38Z`, 1 comment, authored by the fixer; `reviewAttention` responder Hermes, `Scheduled review monitor`, `since` the same instant, no entry authored by it | ## Could not verify - **WR-44's acceptance criteria.** `bash scripts/fetch-vikunja-task-by-id.sh 163` answers `http=401` on the profile key and `no MCP_VIKUNJA_API_KEY answered 200 in either .env`; `/api/v1/info` answering 200 is the instance being up. The PR body stands as the spec, as it did last round. - **THE-39's criteria as a list.** The card reads live, but it is the fixer's delivery note; the board has not answered it (see the charter note below). ## Named, not charged - `Makefile:271` — `.PHONY` still omits `rotation-due` and `rotation-test`. The base line already omits `host-env-check` / `host-env-test`, and no file of either name exists, so nothing changes today. - `store.yml:212-213` against `:203-204` — when `policy` is empty the write passes no `token_policies` argument at all, while the comparison reads the store's list against `[]`. A role with no class whose store holds a policy therefore reads `differs=True` on every run and is never converged (harness row 5: `True` at both heads, argv without `token_policies`). No role in `defaults/main.yml` carries an empty class (`grep "policy: null"` answers nothing), so the branch has no caller in this tree, and the behaviour is identical at `0de575f`. Whether the deploy may ever remove a role's policies is a decision, not a defect of this round. - `docs/rotation-record.json`'s `forgejo-tokens` adoption row and ADR-0013's class-named policies, both named last round — untouched by this delta. ## Summary Spec: **0 findings**. Standards: **2 advisories**, one new and one carried. The worst on the axis is the `--today ""` hole: it is this repository's own reader, and it can report a schedule as if pinned to a day it was not given. The carried page row is wider in reach but it is a pointer in another repository, disclosed in the body. Two advisories is under the third that would turn the recommendation, so the recommendation is **merge**, and both travel as advice. The change's class — a tier-1 write to the secrets store's AppRole behind the deploy — is the board's gate and not this review's: `paperclip:THE-39` is `in_review` with its responder silent, so merging remains the board's decision after this label moves, and this round's state follows the findings, as the dispatch narrows it.
pit merged commit 700aa06e93 into main 2026-11-12 07:11:48 +00:00
pit deleted branch hermes/THE-39-rotation-policy 2026-11-12 07:11:48 +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-secrets!56
No description provided.