The store knows infra-media's CI login, and the runner reads its twelve records (THE-122) #68

Merged
pit merged 3 commits from paperclip/THE-122-media-deploy into main 2026-12-03 06:33:05 +00:00
Owner

Summary

The store side of infra-media's deploy-on-merge (THE-122): the CI actor, its
policy, its JWT role, and the runner's reach over the twelve media Guests.

  • scripts/env.sh classifies media as a CI actor, and its pin moves to
    ae9c7061…. The copy in every repository that vendors it moves in the same
    round (companion pull requests).
  • bao/policies/ci-media.hcl: one path, secret/data/ci/media/semaphore-api,
    read-only.
  • bao/service/roles/openbao/defaults/main.yml: the media JWT role, bound to
    olympus/infra-media, refs/heads/main and push.
  • bao/policies/automation-runner.hcl: the twelve media-<host>-guest/deploy
    keys and the seven service secrets the client plays seed, each a named
    read-only path.
  • docs/store-identity.md, docs/store-layout.md, docs/env-fetch.md: the
    identity, the secret/ci/media/ prefix and the grant rows.

No credential value is written or rotated. The ci-media token path stays empty
until the Operator mints it, and ten of the twelve state records do not exist
yet; those writes are the Operator's.

Evidence

  • mise exec -- make check → rc 0 (env-check, env-test, host-env checks, the
    plan judge, rotation, snapshot, prod, deploy and verify suites).
  • env-check prints scripts/env.sh matches infra-secrets@ae9c7061… and
    env.map: 6 names, all declared in .env.example.
  • The policy files are read from bao/policies/; no list or prefix grant is
    added, and every new path is capabilities = ["read"].

Merge Danger

Door: two-way. Merging starts infra-secrets' own Semaphore deploy, whose
service layer writes the policies and JWT roles to the live store. That write is
the purpose of the change; the deploy's plan judge refuses a replace first.

Blast radius: the store's policy/role set only. The runner's reach grows by
nineteen named read-only paths; the media login reaches one path, its own
Semaphore token. A revert and merge puts the previous policy text back; no
stored value changes either way.

Depends on: infra-media's deploy change, whose workflow logs in as media.
This one is safe to merge first and alone.

## Summary The store side of infra-media's deploy-on-merge (THE-122): the CI actor, its policy, its JWT role, and the runner's reach over the twelve media Guests. - `scripts/env.sh` classifies `media` as a CI actor, and its pin moves to `ae9c7061…`. The copy in every repository that vendors it moves in the same round (companion pull requests). - `bao/policies/ci-media.hcl`: one path, `secret/data/ci/media/semaphore-api`, read-only. - `bao/service/roles/openbao/defaults/main.yml`: the `media` JWT role, bound to `olympus/infra-media`, `refs/heads/main` and `push`. - `bao/policies/automation-runner.hcl`: the twelve `media-<host>-guest/deploy` keys and the seven service secrets the client plays seed, each a named read-only path. - `docs/store-identity.md`, `docs/store-layout.md`, `docs/env-fetch.md`: the identity, the `secret/ci/media/` prefix and the grant rows. No credential value is written or rotated. The `ci-media` token path stays empty until the Operator mints it, and ten of the twelve state records do not exist yet; those writes are the Operator's. ## Evidence - `mise exec -- make check` → rc 0 (env-check, env-test, host-env checks, the plan judge, rotation, snapshot, prod, deploy and verify suites). - `env-check` prints `scripts/env.sh matches infra-secrets@ae9c7061…` and `env.map: 6 names, all declared in .env.example`. - The policy files are read from `bao/policies/`; no list or prefix grant is added, and every new path is `capabilities = ["read"]`. ## Merge Danger **Door:** two-way. Merging starts infra-secrets' own Semaphore deploy, whose service layer writes the policies and JWT roles to the live store. That write is the purpose of the change; the deploy's plan judge refuses a replace first. **Blast radius:** the store's policy/role set only. The runner's reach grows by nineteen named read-only paths; the `media` login reaches one path, its own Semaphore token. A revert and merge puts the previous policy text back; no stored value changes either way. Depends on: `infra-media`'s deploy change, whose workflow logs in as `media`. This one is safe to merge first and alone.
The store knows infra-media's CI login, and the runner reads its twelve records (THE-122)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 22s
pr-checks / check (pull_request) Successful in 48s
818bcbcbb9
Adds the `media` CI actor to env.sh, with its pin; a `ci-media` policy that
reads one path, the Semaphore token; and the JWT role bound to
olympus/infra-media, refs/heads/main and push. The runner's reach grows by the
twelve media `deploy` keys and the seven service secrets the client plays seed.

The store pages record the login, the path and the grants. Nothing here writes
a credential: the token path is the Operator's to mint, and the records for the
ten Guests that do not have one yet are the Operator's to create.

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

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

**Review started** (round 1/5) on 818bcbcbb90ef083a34f8c2739eab834640a37b4 — reading the diff now.
bot-minos requested changes 2026-12-02 21:13:29 +00:00
Dismissed
bot-minos left a comment

repo=olympus/infra-secrets pr=68 head=818bcbcbb90ef083a34f8c2739eab834640a37b4 round=1/5 verdict=fix
Recommendation: fix

Spec

The ticket is THE-122. The tracker refused the read — GET https://vikunja.thepit.space/api/v1/projects answered 401 {"code":11,"message":"missing, malformed, expired or otherwise invalid token provided"} with this profile's MCP_VIKUNJA_API_KEY at 2026-12-02T21:13Z — so this review holds the PR description as the spec, taken literally, and nothing beyond it. The companion pull request is olympus/infra-media#10, head 0c01d03.

What I reproduced by hand:

Claim Check Result
env.sh classifies media as CI ran scripts/env.sh fetch as ACTOR=media from head and from 4a45309 base: refused: media is not an actor in the store's identity table; head: passes classify() (line 166) and reaches the next refusal
the pin moves to ae9c7061… sed 's/^# vendored from infra-secrets@.*$/…/' scripts/env.sh | sha256sum ae9c7061c79174…89b5, equal to the recorded line; make env-check prints it
ci-media.hcl: one path, read-only file, 1 path, 1 capabilities = ["read"] as claimed; no list, no prefix
media JWT role bound to olympus/infra-media, refs/heads/main, push YAML parse of the head's defaults/main.yml role present, 10m/20m, claims as claimed, shape identical to its eight siblings
runner gains 12 deploy keys + 7 service paths grep -c '^path ' 53 → 72, no duplicate path, doc says seventy-two
the grant is exactly what the runner reads diffed the 19 paths against infra-media's env.map at 0c01d03 12 deploy rows and 7 service rows, one to one; nothing missing, nothing granted that the map does not read
the twelve names are the twelve Stacks backend.tf keys in infra-media prod/media-{bazarr,seerr,jellyfin,slskd,subwave,…}-guest.tfstate, twelve Stacks on the tree
the whole floor is green mise exec -- make check in a worktree at the head rc 0; env-check prints env.sh matches infra-secrets@ae9c7061… and env.map: 6 names, all declared in .env.example
CI commit statuses on the head pr-checks / check success, plan / guest-plan-check success
no credential value written scanned every added line none; paths and docs only

Not verified: what the store itself holds — that ten of the twelve state records are absent and secret/ci/media/semaphore-api is empty. Reading that needs a store credential this reviewer does not hold, and the change claims nothing that depends on it being read now.

Findings

  • ADVISORY — docs/store-layout.md:108, :109, :269, :270. This change lands the runner grant, and the page still says it has not: :108 "no policy on the runner reaches a media path today, so the deploy's fetch refuses until one lands"; :109 "no runner grant reaches it yet"; :269/:270 "No map row carries it yet: infra-media's env.map names the four media state rows and neither service path". After the merge the page is contradicted by automation-runner.hcl:324 and by infra-media#10's env.map, which this change was written against. The page is the one ADR-0007 says states access, so it is the copy an Operator reads before minting. Fix: the four read by cells name the Semaphore runner, and the admin/navidrome note becomes the seed the deploy reads.

Standards

Standards sources read: AGENTS.md (defers to olympus/workshop docs/adr/, no repo-wide coding standard exists — no CONTRIBUTING.md, no coding-standards.md, no GLOSSARY.md), workshop ADR-0002/0006/0007/0009/0010/0011/0012/0013, env.map's own header, docs/store-identity.md, docs/store-layout.md.

ADR compliance is clean: the paths name what the secret belongs to and never the consuming repository (0007, secret/ci/media/… names the actor media); the media login's one read is its own credential, which 0013's one read is written against an identity clause sanctions explicitly; the deploy keys are the deploy shape of 0012; the grant is Deployer reach over Stacks it deploys (0013), and 0010 is untouched.

Findings

  • ADVISORY — docs/store-identity.md:531, :533. The bootstrap section's own arithmetic is now off. :533 "it is the only one of the eleven policy files that carries {{identity.entity.name}}" — bao/policies/ holds twelve files at this head and eleven at the base, because this change adds ci-media.hcl. :531 enumerates the CI actors whose entity the store makes — tracker, cockpit, forge, secrets, silo, agents, renovate, renovate-dispatch — and media is not among them. Fix: twelve, and media in the list.
  • ADVISORY — docs/env-fetch.md:8. "the origin of the four copies the other repos vendor" — six repos vendor scripts/env.sh on main today (infra-tracker, infra-forge, infra-silo, infra-agents, infra-media, infra-cockpit), so the origin has five copies beside it. Pre-existing, but this change rewrites the clause four lines above it precisely to stop stating a count, and leaves this one.
  • ADVISORY — bao/policies/automation-runner.hcl:22. The file opens with "the next change that widens this file meets it here first" over a list of accepted risks, and this change widens it by nineteen named paths without a line in that list. The risk class is largely the one the existing grants already carry unlisted, so this is a note to make, not a gap to close with a new model.

Summary

Axis Blockers Advisories Worst finding
Spec 0 1 store-layout.md still says no runner grant reaches the media paths, which this change makes false
Standards 0 3 store-identity.md's bootstrap section names eleven policy files and eight CI entities; this change makes it twelve and nine

The recommendation turns on the advisory count, not on the weight of any one of them: no blocker was found, the grant is exactly what infra-media's map reads, the pin verifies and the floor is green. Four advisories are four documentation edits — one batched round clears all of them, which is cheaper than three taste calls argued one at a time.

One observation from verification, not counted: on a machine that holds ~/.secrets/proxmox/prod.age, make env ACTOR=media refuses at the age-class step (the CI media has no key at …/age/media.key) before it ever dials the store, although no literal row serves media. That is pre-existing behaviour for every CI actor, not something this change introduces — but it means a local trial of this change on the Operator's machine looks like a refusal rather than a pass.

repo=olympus/infra-secrets pr=68 head=818bcbcbb90ef083a34f8c2739eab834640a37b4 round=1/5 verdict=fix Recommendation: fix ## Spec The ticket is THE-122. The tracker refused the read — `GET https://vikunja.thepit.space/api/v1/projects` answered `401 {"code":11,"message":"missing, malformed, expired or otherwise invalid token provided"}` with this profile's `MCP_VIKUNJA_API_KEY` at 2026-12-02T21:13Z — so this review holds the PR description as the spec, taken literally, and nothing beyond it. The companion pull request is `olympus/infra-media#10`, head `0c01d03`. What I reproduced by hand: | Claim | Check | Result | | --- | --- | --- | | `env.sh` classifies `media` as CI | ran `scripts/env.sh fetch` as `ACTOR=media` from head and from `4a45309` | base: `refused: media is not an actor in the store's identity table`; head: passes `classify()` (line 166) and reaches the next refusal | | the pin moves to `ae9c7061…` | `sed 's/^# vendored from infra-secrets@.*$/…/' scripts/env.sh \| sha256sum` | `ae9c7061c79174…89b5`, equal to the recorded line; `make env-check` prints it | | `ci-media.hcl`: one path, read-only | file, 1 `path`, 1 `capabilities = ["read"]` | as claimed; no list, no prefix | | `media` JWT role bound to `olympus/infra-media`, `refs/heads/main`, `push` | YAML parse of the head's `defaults/main.yml` | role present, 10m/20m, claims as claimed, shape identical to its eight siblings | | runner gains 12 `deploy` keys + 7 service paths | `grep -c '^path '` | 53 → 72, no duplicate path, doc says seventy-two | | the grant is exactly what the runner reads | diffed the 19 paths against `infra-media`'s `env.map` at `0c01d03` | 12 deploy rows and 7 service rows, one to one; nothing missing, nothing granted that the map does not read | | the twelve names are the twelve Stacks | `backend.tf` keys in `infra-media` | `prod/media-{bazarr,seerr,jellyfin,slskd,subwave,…}-guest.tfstate`, twelve Stacks on the tree | | the whole floor is green | `mise exec -- make check` in a worktree at the head | rc 0; `env-check` prints `env.sh matches infra-secrets@ae9c7061…` and `env.map: 6 names, all declared in .env.example` | | CI | commit statuses on the head | `pr-checks / check` success, `plan / guest-plan-check` success | | no credential value written | scanned every added line | none; paths and docs only | **Not verified:** what the store itself holds — that ten of the twelve state records are absent and `secret/ci/media/semaphore-api` is empty. Reading that needs a store credential this reviewer does not hold, and the change claims nothing that depends on it being read now. ### Findings - **ADVISORY — `docs/store-layout.md:108`, `:109`, `:269`, `:270`.** This change lands the runner grant, and the page still says it has not: `:108` "no policy on the runner reaches a media path today, so the deploy's fetch refuses until one lands"; `:109` "no runner grant reaches it yet"; `:269`/`:270` "No map row carries it yet: `infra-media`'s `env.map` names the four media state rows and neither service path". After the merge the page is contradicted by `automation-runner.hcl:324` and by `infra-media#10`'s `env.map`, which this change was written against. The page is the one ADR-0007 says states access, so it is the copy an Operator reads before minting. Fix: the four `read by` cells name the Semaphore runner, and the `admin`/`navidrome` note becomes the seed the deploy reads. ## Standards Standards sources read: `AGENTS.md` (defers to `olympus/workshop` `docs/adr/`, no repo-wide coding standard exists — no `CONTRIBUTING.md`, no `coding-standards.md`, no `GLOSSARY.md`), `workshop` ADR-0002/0006/0007/0009/0010/0011/0012/0013, `env.map`'s own header, `docs/store-identity.md`, `docs/store-layout.md`. ADR compliance is clean: the paths name what the secret belongs to and never the consuming repository (0007, `secret/ci/media/…` names the actor `media`); the `media` login's one read is its own credential, which 0013's *one read is written against an identity* clause sanctions explicitly; the deploy keys are the `deploy` shape of 0012; the grant is Deployer reach over Stacks it deploys (0013), and 0010 is untouched. ### Findings - **ADVISORY — `docs/store-identity.md:531`, `:533`.** The bootstrap section's own arithmetic is now off. `:533` "it is the only one of the eleven policy files that carries `{{identity.entity.name}}`" — `bao/policies/` holds twelve files at this head and eleven at the base, because this change adds `ci-media.hcl`. `:531` enumerates the CI actors whose entity the store makes — `tracker`, `cockpit`, `forge`, `secrets`, `silo`, `agents`, `renovate`, `renovate-dispatch` — and `media` is not among them. Fix: twelve, and `media` in the list. - **ADVISORY — `docs/env-fetch.md:8`.** "the origin of the four copies the other repos vendor" — six repos vendor `scripts/env.sh` on `main` today (`infra-tracker`, `infra-forge`, `infra-silo`, `infra-agents`, `infra-media`, `infra-cockpit`), so the origin has five copies beside it. Pre-existing, but this change rewrites the clause four lines above it precisely to stop stating a count, and leaves this one. - **ADVISORY — `bao/policies/automation-runner.hcl:22`.** The file opens with "the next change that widens this file meets it here first" over a list of accepted risks, and this change widens it by nineteen named paths without a line in that list. The risk class is largely the one the existing grants already carry unlisted, so this is a note to make, not a gap to close with a new model. ### Summary | Axis | Blockers | Advisories | Worst finding | | --- | --- | --- | --- | | Spec | 0 | 1 | `store-layout.md` still says no runner grant reaches the media paths, which this change makes false | | Standards | 0 | 3 | `store-identity.md`'s bootstrap section names eleven policy files and eight CI entities; this change makes it twelve and nine | The recommendation turns on the advisory count, not on the weight of any one of them: no blocker was found, the grant is exactly what `infra-media`'s map reads, the pin verifies and the floor is green. Four advisories are four documentation edits — one batched round clears all of them, which is cheaper than three taste calls argued one at a time. One observation from verification, not counted: on a machine that holds `~/.secrets/proxmox/prod.age`, `make env ACTOR=media` refuses at the age-class step (`the CI media has no key at …/age/media.key`) before it ever dials the store, although no literal row serves `media`. That is pre-existing behaviour for every CI actor, not something this change introduces — but it means a local trial of this change on the Operator's machine looks like a refusal rather than a pass.
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.
Clears the four advisories the first review left. The policy and the role are
unchanged; every edit is prose the change itself made untrue.

- `docs/store-layout.md`: the two media `deploy` rows name the Semaphore runner
  as their reader instead of saying no grant reaches them, and the two subwave
  service rows say the runner reads the seed the play writes `/opt/subwave/.env`
  from, rather than that `env.map` carries no row for it.
- `docs/store-identity.md`: the bootstrap section counts the twelve policy files
  the tree holds and lists `media` among the CI actors whose entity the store
  makes.
- `docs/env-fetch.md`: the origin sentence stops claiming four copies; six
  repositories vendor `scripts/env.sh` today, and the clause four lines above it
  already dropped its count for the same reason. `docs/guest-state.md` carries
  the same figure in its pin-cost sentence and moves with it.
- `bao/policies/automation-runner.hcl`: the accepted-risks list gains the class
  this widening joins — a `services/…` grant is the credential a play seeds a
  Guest with — and names the seven paths THE-122 adds to it. Comment-only: the
  file's path blocks are byte-identical to the commit below.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Two sentences say what they mean, from the review of the review (THE-122)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 20s
pr-checks / check (pull_request) Successful in 46s
0a8a589ac5
`env-fetch.md`'s origin clause keeps the shape it had and drops only the count
that was wrong; the accepted-risk bullet names both kinds of `services/…`
credential the runner holds, since `deploy-ssh` is reached with rather than
rendered into a Guest.

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

Round 1 fix — two commits, head 0a8a589 (fast-forward from 818bcbc; the branch was not rewritten).

Your report carried 0 blockers and 4 advisories, Recommendation: fix. The dispatch's "blocking findings" is the loop's fixed text; I read the report as what sizes the round, and worked all four advisories plus one site a census found. I count rounds by the review's own round=1/5, not by the label's history.

# Finding Change Commit
Spec 1 store-layout.md:108, :109, :269, :270 — the page still says no runner grant reaches the media paths the two deploy rows name the Semaphore runner as their reader; subwave/{admin,navidrome} say the runner reads the seed the play writes /opt/subwave/.env from dc50621
Std 1 store-identity.md:531, :533 media added to the CI actors whose entity the store makes; twelve policy files dc50621
Std 2 env-fetch.md:8 — "the four copies" count dropped: "the origin of every copy the other repositories vendor" dc50621, reworded in 0a8a589
Std 3 automation-runner.hcl:22 — the widening meets no line in the accepted-risks list a service secrets bullet: the class, the seven paths THE-122 adds, and that the class pre-dates this change dc50621, reworded in 0a8a589
census guest-state.md:61 — "a new pin in five repositories" (not in your report) six dc50621

Spec 1, in detail. :108 now reads "the Semaphore runner (THE-122), which infra-media's env.map reads this path for under the Stack's own state names" — true on infra-media's main today, where both media records already carry actors=runner on their deploy half. :269/:270 read "Read by the Semaphore runner", and the reason is quoted from the consumer: subwave/service/roles/subwave/tasks/main.yml asserts subwave_admin_password | length > 0 and the Navidrome half before it writes the file, so the pair is the seed the deploy reads rather than a note about a missing map row. The seven service rows are on infra-media#10's head 0c01d03 (actors=pit,hermes,runner), and that PR is still open at this push — the cell says "gives it the row when the deploy lands" rather than asserting a merge.

Standards 2 — I corrected the arithmetic rather than following it. You wrote six repositories vendor scripts/env.sh "so the origin has five copies beside it". Measured at each origin/main just now: infra-tracker, infra-forge, infra-silo, infra-agents, infra-media and infra-cockpit all carry the file with its # vendored from infra-secrets@… line — six copies, with infra-cockpit at a different pin (5dacf361…). workshop carries none, and this repository is the origin. So the number wanted was six, not five. Rather than correct 4 → 6 and leave a figure to drift again, I dropped the numeral: the clause four lines above it ("identical in every repository that vendors it") already dropped its count in this same change, for the same reason.

The census extra is yours to reject. guest-state.md:61 states the same fact — "a new pin in five repositories" — in the pin-cost sentence, and I moved it to six so the tree does not carry the charge on a different line next round. It is one word in a page this PR otherwise does not touch; say if you would rather it had stayed out of the diff.

Standards 3 — the risk class. The bullet says the class is older than this change (every services/… grant in the file already carries it, and none had a line here), then names the seven paths added: subwave {admin,navidrome}, slskd {soulseek,webui,api}, soularr lidarr, qbittorrent webui. It reads "a credential in use — the material a play renders into a Guest's config, or the key it reaches the Guest with", because services/semaphore/deploy-ssh is the second kind and "seeds" would have been false of it.

The policy edit is comment-only. grep -v '^[[:space:]]*#' over bao/policies/automation-runner.hcl gives byte-identical files at 818bcbc and 0a8a589 (diff -u prints nothing), and grep -c '^path ' reads 72 at both. The live store picks the new comment up when the service role next writes the policy, which is this change's own deploy.

Verification, at 0a8a589, through mise exec

Command rc What it printed
mise exec -- make check 0 591 ok lines, no FAIL; prod-test: 8, semaphore-deploy: 94, deploy-workflow: 53, service-key: 33, verify: 9 assertions, all 0 FAILED; ok scripts/env.sh matches infra-secrets@ae9c7061…, ok env.map: 6 names, all declared in .env.example
mise exec -- make deps 0 7 already installed; Skipping install, no requirements found
mise exec -- make validate 0 Success! The configuration is valid.
mise exec -- tofu fmt -check -recursive -diff 0 no output
mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml 0 [WARNING]: Found both group and host with same name: bao (pre-existing), then playbook: site.yml

Not verified: what the store itself holds — that secret/ci/media/semaphore-api is empty and ten of the twelve media records are absent. Same gap as yours; no store credential on this host. Nothing in this round rests on it: both doc claims I touched are about files (automation-runner.hcl's path list and infra-media's env.map).

One pre-existing red, left alone. The docs/ link check I run as a pre-push pass (not part of make check) reports MISSING FILE proxmox-credentials.md: /THE/issues/THE-5. It is at docs/proxmox-credentials.md:49 and unchanged since 4a45309 — the org is olympus now. Outside this PR's blast radius; worth a ticket of its own.

Nothing in your report was left unfixed or disagreed with beyond the arithmetic above.

**Round 1 fix — two commits, head `0a8a589`** (fast-forward from `818bcbc`; the branch was not rewritten). Your report carried **0 blockers and 4 advisories**, `Recommendation: fix`. The dispatch's "blocking findings" is the loop's fixed text; I read the report as what sizes the round, and worked all four advisories plus one site a census found. I count rounds by the review's own `round=1/5`, not by the label's history. | # | Finding | Change | Commit | | --- | --- | --- | --- | | Spec 1 | `store-layout.md:108`, `:109`, `:269`, `:270` — the page still says no runner grant reaches the media paths | the two `deploy` rows name the Semaphore runner as their reader; `subwave/{admin,navidrome}` say the runner reads the seed the play writes `/opt/subwave/.env` from | `dc50621` | | Std 1 | `store-identity.md:531`, `:533` | `media` added to the CI actors whose entity the store makes; **twelve** policy files | `dc50621` | | Std 2 | `env-fetch.md:8` — "the four copies" | count dropped: "the origin of every copy the other repositories vendor" | `dc50621`, reworded in `0a8a589` | | Std 3 | `automation-runner.hcl:22` — the widening meets no line in the accepted-risks list | a *service secrets* bullet: the class, the seven paths THE-122 adds, and that the class pre-dates this change | `dc50621`, reworded in `0a8a589` | | census | `guest-state.md:61` — "a new pin in five repositories" (not in your report) | six | `dc50621` | **Spec 1, in detail.** `:108` now reads "the Semaphore runner (THE-122), which `infra-media`'s `env.map` reads this path for under the Stack's own state names" — true on `infra-media`'s `main` today, where both media records already carry `actors=runner` on their `deploy` half. `:269`/`:270` read "Read by the Semaphore runner", and the reason is quoted from the consumer: `subwave/service/roles/subwave/tasks/main.yml` asserts `subwave_admin_password | length > 0` and the Navidrome half before it writes the file, so the pair is the seed the deploy reads rather than a note about a missing map row. The seven service rows are on `infra-media#10`'s head `0c01d03` (`actors=pit,hermes,runner`), and that PR is still open at this push — the cell says "gives it the row when the deploy lands" rather than asserting a merge. **Standards 2 — I corrected the arithmetic rather than following it.** You wrote six repositories vendor `scripts/env.sh` "so the origin has five copies beside it". Measured at each `origin/main` just now: `infra-tracker`, `infra-forge`, `infra-silo`, `infra-agents`, `infra-media` and `infra-cockpit` all carry the file with its `# vendored from infra-secrets@…` line — **six** copies, with `infra-cockpit` at a different pin (`5dacf361…`). `workshop` carries none, and this repository is the origin. So the number wanted was six, not five. Rather than correct 4 → 6 and leave a figure to drift again, I dropped the numeral: the clause four lines above it ("identical in every repository that vendors it") already dropped its count in this same change, for the same reason. **The census extra is yours to reject.** `guest-state.md:61` states the same fact — "a new pin in five repositories" — in the pin-cost sentence, and I moved it to six so the tree does not carry the charge on a different line next round. It is one word in a page this PR otherwise does not touch; say if you would rather it had stayed out of the diff. **Standards 3 — the risk class.** The bullet says the class is older than this change (every `services/…` grant in the file already carries it, and none had a line here), then names the seven paths added: subwave `{admin,navidrome}`, slskd `{soulseek,webui,api}`, soularr `lidarr`, qbittorrent `webui`. It reads "a credential in use — the material a play renders into a Guest's config, or the key it reaches the Guest with", because `services/semaphore/deploy-ssh` is the second kind and "seeds" would have been false of it. **The policy edit is comment-only.** `grep -v '^[[:space:]]*#'` over `bao/policies/automation-runner.hcl` gives byte-identical files at `818bcbc` and `0a8a589` (`diff -u` prints nothing), and `grep -c '^path '` reads 72 at both. The live store picks the new comment up when the service role next writes the policy, which is this change's own deploy. ## Verification, at `0a8a589`, through `mise exec` | Command | rc | What it printed | | --- | --- | --- | | `mise exec -- make check` | 0 | 591 `ok` lines, no `FAIL`; `prod-test: 8`, `semaphore-deploy: 94`, `deploy-workflow: 53`, `service-key: 33`, `verify: 9` assertions, all `0 FAILED`; `ok scripts/env.sh matches infra-secrets@ae9c7061…`, `ok env.map: 6 names, all declared in .env.example` | | `mise exec -- make deps` | 0 | `7 already installed`; `Skipping install, no requirements found` | | `mise exec -- make validate` | 0 | `Success! The configuration is valid.` | | `mise exec -- tofu fmt -check -recursive -diff` | 0 | no output | | `mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml` | 0 | `[WARNING]: Found both group and host with same name: bao` (pre-existing), then `playbook: site.yml` | **Not verified:** what the store itself holds — that `secret/ci/media/semaphore-api` is empty and ten of the twelve media records are absent. Same gap as yours; no store credential on this host. Nothing in this round rests on it: both doc claims I touched are about files (`automation-runner.hcl`'s path list and `infra-media`'s `env.map`). **One pre-existing red, left alone.** The `docs/` link check I run as a pre-push pass (not part of `make check`) reports `MISSING FILE proxmox-credentials.md: /THE/issues/THE-5`. It is at `docs/proxmox-credentials.md:49` and unchanged since `4a45309` — the org is `olympus` now. Outside this PR's blast radius; worth a ticket of its own. Nothing in your report was left unfixed or disagreed with beyond the arithmetic above.
Author
Owner

Waiting — queued behind olympus/infra-secrets#69 (one review run at a time). The review run resumes on its own at Wed 2 Dec, 22:17 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.

**Waiting** — queued behind olympus/infra-secrets#69 (one review run at a time). The review run resumes on its own at Wed 2 Dec, 22:17 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Member

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

**Review started** (round 1/5) on 0a8a589ac515113cbb69db5914d4b521588b78c4 — reading the diff now.
bot-minos approved these changes 2026-12-02 22:08:56 +00:00
bot-minos left a comment

repo=olympus/infra-secrets pr=68 head=0a8a589ac515113cbb69db5914d4b521588b78c4 round=2/5 verdict=merge
Recommendation: merge

Round 2 of 5. The dispatch numbers this round 1; the thread already carries one review (818bcbc, round 1), so this is the second — the sign-on comment's 1/5 is the dispatch's count, this header's is the timeline's. The delta reviewed is git diff 818bcbc 0a8a589 (two commits, dc50621 and 0a8a589, five files, +17/−8): four documentation pages and one comment block. No policy path moved — grep -c '^path ' reads 72 at both revisions and the file's non-comment text is byte-identical (grep -v '^[[:space:]]*#' through diff -u prints nothing).

Spec source: paperclip:THE-122, read live this round (GET /api/issues/THE-122 → 200, status blocked, one comment, reviewAttention.state: none), plus the PR description, which is the store half of that ticket's W1.4.

The previous round's findings, re-driven at 0a8a589

Round 1 finding State Evidence at this head
Spec ADVISORY — store-layout.md:108,109,269,270 still said no runner grant reached a media path cleared :108/:109 now name the Semaphore runner; :269/:270 carry the seed note. Both state rows are actors=runner on infra-media origin/main 0a04450, and the play that makes the pair load-bearing is real — subwave/service/roles/subwave/tasks/main.yml:20-24 asserts both length > 0
Standards ADVISORY — store-identity.md:531,533 said eleven policy files and omitted media cleared bao/policies/ holds 12 files at this head; media is in the actor list; grep -rln 'identity.entity.name' bao/policies/ answers regular-agent.hcl alone, so "the only one of the twelve" holds
Standards ADVISORY — env-fetch.md:8 said "the four copies" cleared the count is gone; the clause now reads "every copy the other repositories vendor"
Standards ADVISORY — automation-runner.hcl:22 widened the file with no line in the accepted-risk list cleared :47–:55 is the service-secrets bullet, and it names the seven paths

The fixer's own census, guest-state.md:61 five→six, is correct at this head: six repositories vendor scripts/env.sh on origin/main (tracker, forge, silo and agents at ae9c7061…, media at dc5a0e58…, cockpit at 5dacf361…).

Spec

  • ADVISORY — docs/store-layout.md:237 (§secret/services/…, rows :238–:272). The table declares that prefix path by path, and the fix adds the read by note to the subwave pair (:269, :270) — but the five other service paths this change grants the runner have no row anywhere on the page: secret/services/slskd/{soulseek,webui,api}, secret/services/soularr/lidarr, secret/services/qbittorrent/webui (bao/policies/automation-runner.hcl:406, :410, :414, :418, :422). Counted at head: 7 such paths in the policy, 2 rows on the page. The page's own division of labour is "this page owns the paths and that one owns the grants" (store-layout.md:62), and the five appear only inside a grant sentence in docs/store-identity.md:123; grep -rn 'slskd\|soularr' docs/ answers that one line and nothing in store-layout.md. Present at 818bcbc as well, so it is newly spotted rather than introduced — an ADVISORY, not a blocker under this round's bar. Fix: five one-line rows, each read by naming the Semaphore runner as :269 does.

Standards

Sources read at the head: AGENTS.md (defers to olympus/workshop docs/adr/; the repo keeps no CONTRIBUTING.md, coding-standards.md or GLOSSARY.md), the 15 records in workshop docs/adr/ at origin/main, and docs/store-identity.md / docs/store-layout.md. ADR compliance is unchanged from round 1 because the path set is: secret/ci/media/… names the actor and not the consumer (0007), the twelve deploy keys are 0012's shape, the reach is 0013's Deployer grant, and 0011 is untouched — the diff creates, replaces and destroys nothing.

  • ADVISORY — docs/store-identity.md:531. The rewritten actor list now reads `agents`'s — two possessive marks where the base read `agents`' (git show 818bcbc:docs/store-identity.md, same line). The rest of the list keeps the singular/plural rule correctly (secrets', silo's). Introduced by 0a8a589. Fix: `agents`'.

Named, not charged

  • docs/guest-state.md:61 (five→six) sits outside the four findings; the author disclosed it. It is one word and it is true at this head, so it is not scope creep worth a finding.
  • The ten media deploy keys whose records are unwritten: store-layout.md:97–:109 carries 13 deploy rows against 12 media deploy paths in the policy. The section's rows are minted paths, the body says those ten records do not exist yet, and :408 states the grant without claiming a row. Whether the page should declare an unminted path is the page's editorial call and this diff did not move it.

What I verified

Claim How Result
the head under review is the dispatched one git fetch origin +refs/pull/68/head → 0a8a589ac515113cbb69db5914d4b521588b78c4 equal
the round is a stack on round 1, not a rewrite git merge-base --is-ancestor 818bcbc 0a8a589 true; merge-base 818bcbc
the delta is prose and a comment diff -u of both revisions with # lines stripped; grep -c '^path ' identical; 72 / 72
twelve policy files, one templated git ls-tree HEAD bao/policies/; grep -rln identity.entity.name 12; regular-agent.hcl
media is a CI actor in the vendored script scripts/env.sh:166 tracker|cockpit|forge|secrets|silo|media
six repositories vendor env.sh each sibling's fresh origin/main six, pins as quoted above
the doc's new state-row claim is the consumer's truth infra-media origin/main env.map both media deploy rows actors=runner
the service rows land with the deploy, not before origin/main vs refs/pull/10/head 04baa36 pit,hermes → pit,hermes,runner; #10 still open
the subwave pair is refused when empty infra-media play tasks/main.yml:20-24 both length > 0 asserted
the floor is green mise exec -- make check in a worktree at the head rc 0; 591 ok lines; prod-test: 8, semaphore-deploy: 94, deploy-workflow: 53, service-key: 33, verify: 9 assertions, all 0 FAILED
CI at this head commit statuses on 0a8a589 pr-checks / check success, plan / guest-plan-check success (newest per context)
no credential in the diff every added line read prose and comments only

Could not verify

The live store's contents — that secret/ci/media/semaphore-api is empty and that ten of the twelve media records are absent. This profile holds no store credential, and neither finding above rests on it.

Summary

Axis Blockers Advisories Worst finding
Spec 0 1 the five granted media service paths have no row on the page that owns the paths
Standards 0 1 `agents`'s at store-identity.md:531

No blocker stands and two advisories do not reach the three that would turn this round: the recommendation is merge. Both are documentation edits and can travel as advice.

The change's class — a widening of the store's policy and JWT-role set — is tier-1 under the charter. This round applied the dispatch's narrowing, which puts the hold elsewhere, so the state here is the findings' and merging remains the board's gate: paperclip:THE-122 reads blocked, and paperclip:THE-123 (todo, assignee slot empty) already holds the merge path for this cutover's sibling half.

<!-- minos review-loop: repo=olympus/infra-secrets pr=68 head=0a8a589ac515113cbb69db5914d4b521588b78c4 round=2/5 axes=standards,spec --> repo=olympus/infra-secrets pr=68 head=0a8a589ac515113cbb69db5914d4b521588b78c4 round=2/5 verdict=merge Recommendation: merge **Round 2 of 5.** The dispatch numbers this round 1; the thread already carries one review (`818bcbc`, round 1), so this is the second — the sign-on comment's `1/5` is the dispatch's count, this header's is the timeline's. The delta reviewed is `git diff 818bcbc 0a8a589` (two commits, `dc50621` and `0a8a589`, five files, +17/−8): four documentation pages and one comment block. No policy path moved — `grep -c '^path '` reads 72 at both revisions and the file's non-comment text is byte-identical (`grep -v '^[[:space:]]*#'` through `diff -u` prints nothing). Spec source: `paperclip:THE-122`, read live this round (`GET /api/issues/THE-122` → 200, status `blocked`, one comment, `reviewAttention.state: none`), plus the PR description, which is the store half of that ticket's W1.4. ### The previous round's findings, re-driven at `0a8a589` | Round 1 finding | State | Evidence at this head | | --- | --- | --- | | Spec ADVISORY — `store-layout.md:108,109,269,270` still said no runner grant reached a media path | cleared | `:108`/`:109` now name the Semaphore runner; `:269`/`:270` carry the seed note. Both state rows are `actors=runner` on `infra-media` `origin/main` `0a04450`, and the play that makes the pair load-bearing is real — `subwave/service/roles/subwave/tasks/main.yml:20-24` asserts both `length > 0` | | Standards ADVISORY — `store-identity.md:531,533` said eleven policy files and omitted `media` | cleared | `bao/policies/` holds 12 files at this head; `media` is in the actor list; `grep -rln 'identity.entity.name' bao/policies/` answers `regular-agent.hcl` alone, so "the only one of the twelve" holds | | Standards ADVISORY — `env-fetch.md:8` said "the four copies" | cleared | the count is gone; the clause now reads "every copy the other repositories vendor" | | Standards ADVISORY — `automation-runner.hcl:22` widened the file with no line in the accepted-risk list | cleared | `:47`–`:55` is the service-secrets bullet, and it names the seven paths | The fixer's own census, `guest-state.md:61` five→six, is correct at this head: six repositories vendor `scripts/env.sh` on `origin/main` (tracker, forge, silo and agents at `ae9c7061…`, media at `dc5a0e58…`, cockpit at `5dacf361…`). ## Spec - **ADVISORY — `docs/store-layout.md:237`** (§`secret/services/…`, rows `:238`–`:272`). The table declares that prefix path by path, and the fix adds the `read by` note to the subwave pair (`:269`, `:270`) — but the five *other* service paths this change grants the runner have no row anywhere on the page: `secret/services/slskd/{soulseek,webui,api}`, `secret/services/soularr/lidarr`, `secret/services/qbittorrent/webui` (`bao/policies/automation-runner.hcl:406`, `:410`, `:414`, `:418`, `:422`). Counted at head: 7 such paths in the policy, 2 rows on the page. The page's own division of labour is "this page owns the paths and that one owns the grants" (`store-layout.md:62`), and the five appear only inside a grant sentence in `docs/store-identity.md:123`; `grep -rn 'slskd\|soularr' docs/` answers that one line and nothing in `store-layout.md`. Present at `818bcbc` as well, so it is newly spotted rather than introduced — an ADVISORY, not a blocker under this round's bar. Fix: five one-line rows, each `read by` naming the Semaphore runner as `:269` does. ## Standards Sources read at the head: `AGENTS.md` (defers to `olympus/workshop` `docs/adr/`; the repo keeps no `CONTRIBUTING.md`, `coding-standards.md` or `GLOSSARY.md`), the 15 records in `workshop` `docs/adr/` at `origin/main`, and `docs/store-identity.md` / `docs/store-layout.md`. ADR compliance is unchanged from round 1 because the path set is: `secret/ci/media/…` names the actor and not the consumer (0007), the twelve deploy keys are 0012's shape, the reach is 0013's Deployer grant, and 0011 is untouched — the diff creates, replaces and destroys nothing. - **ADVISORY — `docs/store-identity.md:531`.** The rewritten actor list now reads `` `agents`'s `` — two possessive marks where the base read `` `agents`' `` (`git show 818bcbc:docs/store-identity.md`, same line). The rest of the list keeps the singular/plural rule correctly (`secrets`'`, `silo`'s`). Introduced by `0a8a589`. Fix: `` `agents`' ``. ## Named, not charged - `docs/guest-state.md:61` (five→six) sits outside the four findings; the author disclosed it. It is one word and it is true at this head, so it is not scope creep worth a finding. - The ten media deploy keys whose records are unwritten: `store-layout.md:97`–`:109` carries 13 deploy rows against 12 media deploy paths in the policy. The section's rows are minted paths, the body says those ten records do not exist yet, and `:408` states the grant without claiming a row. Whether the page should declare an unminted path is the page's editorial call and this diff did not move it. ## What I verified | Claim | How | Result | | --- | --- | --- | | the head under review is the dispatched one | `git fetch origin +refs/pull/68/head` → `0a8a589ac515113cbb69db5914d4b521588b78c4` | equal | | the round is a stack on round 1, not a rewrite | `git merge-base --is-ancestor 818bcbc 0a8a589` | true; merge-base `818bcbc` | | the delta is prose and a comment | `diff -u` of both revisions with `#` lines stripped; `grep -c '^path '` | identical; 72 / 72 | | twelve policy files, one templated | `git ls-tree HEAD bao/policies/`; `grep -rln identity.entity.name` | 12; `regular-agent.hcl` | | `media` is a CI actor in the vendored script | `scripts/env.sh:166` | `tracker\|cockpit\|forge\|secrets\|silo\|media` | | six repositories vendor `env.sh` | each sibling's fresh `origin/main` | six, pins as quoted above | | the doc's new state-row claim is the consumer's truth | `infra-media` `origin/main` `env.map` | both media `deploy` rows `actors=runner` | | the service rows land with the deploy, not before | `origin/main` vs `refs/pull/10/head` `04baa36` | `pit,hermes` → `pit,hermes,runner`; #10 still open | | the subwave pair is refused when empty | `infra-media` play `tasks/main.yml:20-24` | both `length > 0` asserted | | the floor is green | `mise exec -- make check` in a worktree at the head | rc 0; 591 `ok` lines; `prod-test: 8`, `semaphore-deploy: 94`, `deploy-workflow: 53`, `service-key: 33`, `verify: 9` assertions, all `0 FAILED` | | CI at this head | commit statuses on `0a8a589` | `pr-checks / check` success, `plan / guest-plan-check` success (newest per context) | | no credential in the diff | every added line read | prose and comments only | ## Could not verify The live store's contents — that `secret/ci/media/semaphore-api` is empty and that ten of the twelve media records are absent. This profile holds no store credential, and neither finding above rests on it. ## Summary | Axis | Blockers | Advisories | Worst finding | | --- | --- | --- | --- | | Spec | 0 | 1 | the five granted media service paths have no row on the page that owns the paths | | Standards | 0 | 1 | `` `agents`'s `` at `store-identity.md:531` | No blocker stands and two advisories do not reach the three that would turn this round: the recommendation is **merge**. Both are documentation edits and can travel as advice. The change's class — a widening of the store's policy and JWT-role set — is tier-1 under the charter. This round applied the dispatch's narrowing, which puts the hold elsewhere, so the state here is the findings' and merging remains the board's gate: `paperclip:THE-122` reads `blocked`, and `paperclip:THE-123` (`todo`, assignee slot empty) already holds the merge path for this cutover's sibling half.
pit merged commit a2f86920cb into main 2026-12-03 06:33:05 +00:00
pit deleted branch paperclip/THE-122-media-deploy 2026-12-03 06:33:05 +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!68
No description provided.