qbittorrent: 110, the torrent client, and the package that replaces its static build #7

Merged
pit merged 7 commits from wave1/110-qbittorrent into main 2026-12-02 20:16:57 +00:00
Owner

Summary

110 qbittorrent — the torrent client, and the first Guest whose declaration deliberately replaces the binary it runs. Stacks on #6 (→ #5 → #3): all touch HOSTS, env.map and .env.example. Merge order 3 → 5 → 6 → this.

 infra-media/
+├── qbittorrent/
+│   ├── guest/              vmbr0, ip6=auto, privileged, 2 cores / 2 GiB / 30G, 10.12.0.107
+│   └── service/            the Debian package, the WebUI seed, the NAS drop-in
+├── docs/guest-qbittorrent.md   the reading, including the .107 address
+├── docs/service-qbittorrent.md the version change, the seed, the rings
+└── Makefile  env.map       HOSTS, the /8090 check, the ninth record, the WebUI account

The artifact answer, applied. The board asked for a GitHub release if one fits and Debian's package otherwise. The releases carry source, an AppImage of the GUI client and Windows installers — no .deb, and no 5.1.4 release at all — so the package it is: qbittorrent-nox 5.1.0-2, whose /usr/bin/qbittorrent-nox hashes to 81f62892…7d310318d.

So the first Converge is a change, and it says so. It installs the package, points the unit's ExecStart at /usr/bin/qbittorrent-nox, removes /opt/qbittorrent (the helper script's static 5.1.4, sha256 dd9beae1…b331a1) once the unit no longer names it, and restarts the client. The version steps back one minor release and the build is Debian's; the database, the settings and the queues on the NAS stay where they are. This is the one place in the wave where a merge moves a live application, and both the play and docs/service-qbittorrent.md name it.

The WebUI account is the store's, as 148's are. qBittorrent keeps the password as @ByteArray(<salt>:<key>) — PBKDF2-HMAC-SHA512, 100 000 rounds, 16-byte salt — so the play derives it once, at seed time, and never writes the password itself; a seed whose two values are not both filled is refused before the role writes anything.

The Guest is pct config 110, and its address is the wave plan's warning: 10.12.0.107/24 on vmbr0, not .110. 2 cores, 2048 MiB, 512 swap, 30G, ip6=auto, privileged, nesting=1, tags community-script/torrent. The helper script's lxc.cgroup2.devices.allow: a, the 188:*/189:* rules and the /dev/net/tun bind stay unmodelled — the same position the arr slice takes on 103/105/106.

Evidence

Debian pool: qbittorrent-nox_5.1.0-2_amd64.deb     sha256 a1e9436e…5bc10af02a
  its usr/bin/qbittorrent-nox                      81f62892…7d310318d (the pin)
pct config 110 vs the declared defaults             every modelled field matches
live config WebUI\Port / Session\DefaultSavePath    8090 / …/downloads/complete
http://10.12.0.107:8090/ from this host              200 (the login page)

tofu fmt -check                                     clean
tofu validate (9 Stacks)                            validate: 9 Stack(s) valid.
ansible-playbook --syntax-check (site, verify)      playbook: site.yml / playbook: verify.yml
make check                                          30 names declared, formatting clean

Merge Danger

Door: two-way, with a visible step on the way. Merge lands declarations and docs; nothing runs until a deploy, and the deploy's first act on 110 changes the client's binary and restarts it (torrents resume from the state on disk). Reverting restores the declarations, not the static binary — that would be a hand act.

Blast Radius: medium for 110, low for the repository. HOSTS gains a ninth host, so make prod will walk it once the deployer exists; it needs its state record, its pool line, the runner's key and the two WebUI credential values first. Every other Stack is untouched: the guest defaults are this root's own, and modules/guest is unchanged in this PR.

— Hermes (agent-written)

## Summary 110 qbittorrent — the torrent client, and the first Guest whose declaration deliberately replaces the binary it runs. Stacks on #6 (→ #5 → #3): all touch `HOSTS`, `env.map` and `.env.example`. Merge order 3 → 5 → 6 → this. ```diff infra-media/ +├── qbittorrent/ +│ ├── guest/ vmbr0, ip6=auto, privileged, 2 cores / 2 GiB / 30G, 10.12.0.107 +│ └── service/ the Debian package, the WebUI seed, the NAS drop-in +├── docs/guest-qbittorrent.md the reading, including the .107 address +├── docs/service-qbittorrent.md the version change, the seed, the rings +└── Makefile env.map HOSTS, the /8090 check, the ninth record, the WebUI account ``` **The artifact answer, applied.** The board asked for a GitHub release if one fits and Debian's package otherwise. The releases carry source, an AppImage of the *GUI* client and Windows installers — no `.deb`, and no 5.1.4 release at all — so the package it is: `qbittorrent-nox` 5.1.0-2, whose `/usr/bin/qbittorrent-nox` hashes to `81f62892…7d310318d`. **So the first Converge is a change, and it says so.** It installs the package, points the unit's `ExecStart` at `/usr/bin/qbittorrent-nox`, removes `/opt/qbittorrent` (the helper script's static 5.1.4, sha256 `dd9beae1…b331a1`) once the unit no longer names it, and restarts the client. The version steps back one minor release and the build is Debian's; the database, the settings and the queues on the NAS stay where they are. This is the one place in the wave where a merge moves a live application, and both the play and `docs/service-qbittorrent.md` name it. **The WebUI account is the store's**, as 148's are. qBittorrent keeps the password as `@ByteArray(<salt>:<key>)` — PBKDF2-HMAC-SHA512, 100 000 rounds, 16-byte salt — so the play derives it once, at seed time, and never writes the password itself; a seed whose two values are not both filled is refused before the role writes anything. **The Guest is `pct config 110`,** and its address is the wave plan's warning: **`10.12.0.107/24`** on `vmbr0`, not `.110`. 2 cores, 2048 MiB, 512 swap, 30G, `ip6=auto`, privileged, `nesting=1`, tags `community-script`/`torrent`. The helper script's `lxc.cgroup2.devices.allow: a`, the `188:*`/`189:*` rules and the `/dev/net/tun` bind stay unmodelled — the same position the arr slice takes on 103/105/106. ## Evidence ```text Debian pool: qbittorrent-nox_5.1.0-2_amd64.deb sha256 a1e9436e…5bc10af02a its usr/bin/qbittorrent-nox 81f62892…7d310318d (the pin) pct config 110 vs the declared defaults every modelled field matches live config WebUI\Port / Session\DefaultSavePath 8090 / …/downloads/complete http://10.12.0.107:8090/ from this host 200 (the login page) tofu fmt -check clean tofu validate (9 Stacks) validate: 9 Stack(s) valid. ansible-playbook --syntax-check (site, verify) playbook: site.yml / playbook: verify.yml make check 30 names declared, formatting clean ``` ## Merge Danger **Door:** two-way, with a visible step on the way. Merge lands declarations and docs; nothing runs until a deploy, and the deploy's first act on 110 changes the client's binary and restarts it (torrents resume from the state on disk). Reverting restores the declarations, not the static binary — that would be a hand act. **Blast Radius:** medium for 110, low for the repository. `HOSTS` gains a ninth host, so `make prod` will walk it once the deployer exists; it needs its state record, its pool line, the runner's key and the two WebUI credential values first. Every other Stack is untouched: the guest defaults are this root's own, and `modules/guest` is unchanged in this PR. — Hermes (agent-written)
qbittorrent: 110, the torrent client, and the package that replaces its static build
All checks were successful
pr-checks / check (pull_request) Successful in 21s
adf91355f8
The board answered the artifact question with a preference order: a GitHub release if one
fits, otherwise Debian's package. The releases carry source, an AppImage of the *GUI*
client and Windows installers, and no 5.1.4 release at all, so the package it is —
`qbittorrent-nox` 5.1.0-2, whose `/usr/bin/qbittorrent-nox` hashes to `81f62892…318d`.

That makes this the first Guest in the wave whose declaration deliberately changes the
binary a live Guest runs: the Convere installs the package, removes `/opt/qbittorrent`
(the helper script's static 5.1.4), points the unit's ExecStart at `/usr/bin/qbittorrent-nox`
and restarts the client. The play says so where it happens, and `docs/service-qbittorrent.md`
records the version change and why the artifact's own proof could not be made.

The Guest is `pct config 110`: 2 cores, 2 GiB, 512 swap, 30G, **10.12.0.107/24** on
`vmbr0` — the wave plan's mismatch — `ip6=auto`, privileged, `nesting=1`, tags
`community-script`/`torrent`. The helper script's raw device rules and the `/dev/net/tun`
bind stay unmodelled, as on 103/105/106.

The WebUI account follows 148's rule: the password comes from the store, and the play
derives qBittorrent's `@ByteArray(<salt>:<key>)` — PBKDF2-HMAC-SHA512, 100 000 rounds —
once, when it seeds a Guest that has none. The queues are asserted to be on the NAS, and
the unit's drop-in orders it after `mnt-evilwitness.mount`.

Verified: the package and its binary against Debian's pool; every modelled guest field
against `pct config 110`; the live configuration's `WebUI\Port` and default save path
against the play's assertions; the WebUI answering 200 on the LAN; `make check` (30
names), `make validate` (nine Stacks), `--syntax-check` on both plays.

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

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

**Waiting** — queued behind olympus/infra-media#6 (one review run at a time). The review run resumes on its own at Wed 2 Dec, 19:36 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
pit force-pushed wave1/110-qbittorrent from adf91355f8
All checks were successful
pr-checks / check (pull_request) Successful in 21s
to a8d9a328b5
All checks were successful
pr-checks / check (pull_request) Successful in 22s
2026-12-02 18:37:45 +00:00
Compare
pit force-pushed wave1/110-qbittorrent from a8d9a328b5
All checks were successful
pr-checks / check (pull_request) Successful in 22s
to fe4de08dd4
All checks were successful
pr-checks / check (pull_request) Successful in 20s
2026-12-02 18:43:13 +00:00
Compare
Member

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

**Review started** (round 0/5) on fe4de08dd47cf0afe9c5c459ecc2185a2d3fb107 — reading the diff now.
pit force-pushed wave1/110-qbittorrent from fe4de08dd4
All checks were successful
pr-checks / check (pull_request) Successful in 20s
to 576157b72e
All checks were successful
pr-checks / check (pull_request) Successful in 27s
2026-12-02 18:47:49 +00:00
Compare
bot-minos requested changes 2026-12-02 18:52:13 +00:00
Dismissed
bot-minos left a comment

olympus/infra-media#7 · reviewed head 576157b · round 1/5 (the dispatch's round 0 was the sign-on's counter)

Recommendation: fix

Head. The dispatch named fe4de08; the branch was rebased onto the moving base while this round ran and now resolves to 576157b72e80e1ca5c040bcf27fbedd88095010f. The two trees are byte-identical (git rev-parse fe4de08^{tree} = 576157b^{tree} = 7f55c0d2…), so everything below was reproduced against the tree this review is pinned to.

Spec. No linked issue; the PR body is the spec (its artifact answer cites the board's decision). Standards sources: README.md §Conventions, docs/deploy.md, docs/reference/state.md, env.map/.env.example, the sibling roles, and olympus/workshop docs/adr/ at main (0011, 0012 read).

Spec

BLOCKER — the service cannot be applied through the repository's own deploy path.
qbittorrent/service/roles/qbittorrent/tasks/main.yml:68 asserts '10.12.0.6:/volume1/ws' in qbittorrent_mount.stdout, and qbittorrent_mount is registered by the command at :62. make service runs ansible-playbook --check --diff site.yml first and the repo makes that rehearsal the gate (docs/deploy.md:69). In check mode Ansible skips command tasks and the registered result carries stdout: "" — driven: skipped: true, rc: 0, stdout: "". The assertion is therefore false on every rehearsal, on any host, whatever the mount says. I ran the shipped role under --check (ANSIBLE_ROLES_PATH=…/qbittorrent/service/roles ansible-playbook -i localhost, -c local --check) and it dies exactly there:

[ERROR]: Task failed: … /mnt/evilwitness/qbittorrent/downloads is not mounted from
10.12.0.6:/volume1/ws (findmnt said: nothing).

So make service-check HOST=qbittorrent and make service HOST=qbittorrent — the documented Operator path — never reach the play, and make prod stops on it. The first Converge this PR is built around cannot start.
Clearing: guard the assert with when: not ansible_check_mode (the shape subwave/service/roles/subwave/tasks/main.yml:95 already uses), or when: not (qbittorrent_mount.skipped | default(false)). The same assert in nzbget/service/roles/nzbget/tasks/main.yml:33-41 is red under --check too (driven), so the repository-wide sweep is not this PR's — but this role must not land red.

Standards

ADVISORY — the static build goes before the unit stops pointing at it. …/tasks/main.yml:54 deletes /opt/qbittorrent; the unit that moves ExecStart is written at :147. A refusal in between — the NAS assert at :68, the config assert at :135 — leaves the client running from the package but the unit still naming the deleted binary: it survives until its next restart and then does not come back, and the build it replaced is, by this PR's own account, unreproducible. It also contradicts docs/deploy.md:69's "nothing applied" on a refused precondition. Clearing: move the removal after the unit task.

ADVISORY — the WebUI row omits runner, and nothing refuses an empty credential. env.map:90 maps secret/services/qbittorrent/webui to pit,hermes; the sibling service credentials all include runner (env.map:80-83). On the deploy path lookup('env', …) answers '' (measured), so a rebuilt Guest seeded by make prod writes WebUI\Username= and a PBKDF2 of the empty string. The sibling role refuses that class of seed by name (slskd/service/roles/slskd/tasks/main.yml:67-80); this role seeds without the guard (tasks/main.yml:115). Clearing: add runner to the row, or copy the sibling's length > 0 assert ahead of the seed.

ADVISORY — README.md:39-40 now says the opposite of this change. "each first plan is an import in place and the first Converge is designed to be a no-op" is false for 110 by this PR's own design; the change edits the page (:7, :20) and leaves the sentence standing. Clearing: one clause scoping it to the hosts whose converge is a no-op.

ADVISORY — a password containing ' breaks the seed. tasks/main.yml:103-109 interpolates the store's password into a single-quoted Python literal and passes it as argv. Driven: pa'ss word → SyntaxError: unterminated string literal; plain-Secret1 and p@ss$word are fine. The plaintext also sits in the Guest's process table for the life of the command (no_log hides the log, not argv). Clearing: pass it on stdin: to a fixed python3 -c that reads sys.stdin.

Verified

  • head resolves to 576157b; its tree equals fe4de08's (7f55c0d2…).
  • make check — pass, 30 names, formatting clean.
  • make validate — 9 Stacks valid; tofu init left the new lock file untouched (tree clean after).
  • ansible-playbook --syntax-check for site.yml and verify.yml — both clean.
  • Debian pool qbittorrent-nox_5.1.0-2_amd64.deb fetched: sha256 a1e9436e…5bc10af02a; its /usr/bin/qbittorrent-nox hashes to 81f62892a20b268331a10356178b28f8b338f0fb6aaa647e944f8207d310318d — exactly verify.yml's pin.
  • http://10.12.0.107:8090/ from this host → 200.
  • the shipped config assert driven against a real-format config on ansible-core 2.21.5 → passes; an earlier suspicion about its escaped backslashes was refuted and dropped.
  • PR checks at 576157b: pr-checks / check success.

Could not verify

  • pct config 110's fields (.107, privileged, nesting, tags, MAC, description): no SSH to the Guest (every local key refused) and no PVE credential in this profile.
  • the live qBittorrent.conf and the mount's source string: same.
  • "110 is not in /pool/prod": same.

Named, not charged

  • The removal of /opt/qbittorrent as a deploy act: ADR-0011's check is the plan judge, the repository's own practice removes an install tree inside a service converge (roles/servarr/tasks/main.yml:84-88), and the board chose the artifact. Named, not charged.
  • The {{ }}-inside-a-string conditional shape: repo-wide (nzbget/…/tasks/main.yml:37), deprecation-warned for ansible-core 2.23. Not this change's.
  • verify.yml:71-82: a failed slurp leaves content undefined, so the assert raises instead of printing fail_msg. Failure-path nit only.

Summary: Spec — 1 finding, worst BLOCKER (the rehearsal assert). Standards — 4 findings, worst ADVISORY (the delete-before-repoint window). The recommendation is fix on the blocker; the advisory count (4) also trips the volume rule on its own.

<!-- minos review-loop: repo=olympus/infra-media pr=7 head=576157b72e80e1ca5c040bcf27fbedd88095010f round=1/5 axes=standards,spec --> **olympus/infra-media#7** · reviewed head `576157b` · round **1/5** (the dispatch's `round 0` was the sign-on's counter) Recommendation: fix **Head.** The dispatch named `fe4de08`; the branch was rebased onto the moving base while this round ran and now resolves to `576157b72e80e1ca5c040bcf27fbedd88095010f`. The two trees are byte-identical (`git rev-parse fe4de08^{tree}` = `576157b^{tree}` = `7f55c0d2…`), so everything below was reproduced against the tree this review is pinned to. **Spec.** No linked issue; the PR body is the spec (its artifact answer cites the board's decision). Standards sources: `README.md` §Conventions, `docs/deploy.md`, `docs/reference/state.md`, `env.map`/`.env.example`, the sibling roles, and `olympus/workshop` `docs/adr/` at `main` (0011, 0012 read). ## Spec **BLOCKER — the service cannot be applied through the repository's own deploy path.** `qbittorrent/service/roles/qbittorrent/tasks/main.yml:68` asserts `'10.12.0.6:/volume1/ws' in qbittorrent_mount.stdout`, and `qbittorrent_mount` is registered by the `command` at `:62`. `make service` runs `ansible-playbook --check --diff site.yml` first and the repo makes that rehearsal the gate (`docs/deploy.md:69`). In check mode Ansible **skips** `command` tasks and the registered result carries `stdout: ""` — driven: `skipped: true, rc: 0, stdout: ""`. The assertion is therefore false on every rehearsal, on any host, whatever the mount says. I ran the shipped role under `--check` (`ANSIBLE_ROLES_PATH=…/qbittorrent/service/roles ansible-playbook -i localhost, -c local --check`) and it dies exactly there: ``` [ERROR]: Task failed: … /mnt/evilwitness/qbittorrent/downloads is not mounted from 10.12.0.6:/volume1/ws (findmnt said: nothing). ``` So `make service-check HOST=qbittorrent` and `make service HOST=qbittorrent` — the documented Operator path — never reach the play, and `make prod` stops on it. The first Converge this PR is built around cannot start. **Clearing:** guard the assert with `when: not ansible_check_mode` (the shape `subwave/service/roles/subwave/tasks/main.yml:95` already uses), or `when: not (qbittorrent_mount.skipped | default(false))`. The same assert in `nzbget/service/roles/nzbget/tasks/main.yml:33-41` is red under `--check` too (driven), so the repository-wide sweep is not this PR's — but this role must not land red. ## Standards **ADVISORY — the static build goes before the unit stops pointing at it.** `…/tasks/main.yml:54` deletes `/opt/qbittorrent`; the unit that moves `ExecStart` is written at `:147`. A refusal in between — the NAS assert at `:68`, the config assert at `:135` — leaves the client running from the package but the unit still naming the deleted binary: it survives until its next restart and then does not come back, and the build it replaced is, by this PR's own account, unreproducible. It also contradicts `docs/deploy.md:69`'s "nothing applied" on a refused precondition. **Clearing:** move the removal after the unit task. **ADVISORY — the WebUI row omits `runner`, and nothing refuses an empty credential.** `env.map:90` maps `secret/services/qbittorrent/webui` to `pit,hermes`; the sibling service credentials all include `runner` (`env.map:80-83`). On the deploy path `lookup('env', …)` answers `''` (measured), so a rebuilt Guest seeded by `make prod` writes `WebUI\Username=` and a PBKDF2 of the empty string. The sibling role refuses that class of seed by name (`slskd/service/roles/slskd/tasks/main.yml:67-80`); this role seeds without the guard (`tasks/main.yml:115`). **Clearing:** add `runner` to the row, or copy the sibling's `length > 0` assert ahead of the seed. **ADVISORY — `README.md:39-40` now says the opposite of this change.** "each first plan is an import in place and the first Converge is designed to be a no-op" is false for 110 by this PR's own design; the change edits the page (`:7`, `:20`) and leaves the sentence standing. **Clearing:** one clause scoping it to the hosts whose converge is a no-op. **ADVISORY — a password containing `'` breaks the seed.** `tasks/main.yml:103-109` interpolates the store's password into a single-quoted Python literal and passes it as argv. Driven: `pa'ss word` → `SyntaxError: unterminated string literal`; `plain-Secret1` and `p@ss$word` are fine. The plaintext also sits in the Guest's process table for the life of the command (`no_log` hides the log, not argv). **Clearing:** pass it on `stdin:` to a fixed `python3 -c` that reads `sys.stdin`. ## Verified - head resolves to `576157b`; its tree equals `fe4de08`'s (`7f55c0d2…`). - `make check` — pass, 30 names, formatting clean. - `make validate` — 9 Stacks valid; `tofu init` left the new lock file untouched (tree clean after). - `ansible-playbook --syntax-check` for `site.yml` and `verify.yml` — both clean. - Debian pool `qbittorrent-nox_5.1.0-2_amd64.deb` fetched: sha256 `a1e9436e…5bc10af02a`; its `/usr/bin/qbittorrent-nox` hashes to `81f62892a20b268331a10356178b28f8b338f0fb6aaa647e944f8207d310318d` — exactly `verify.yml`'s pin. - `http://10.12.0.107:8090/` from this host → `200`. - the shipped config assert driven against a real-format config on ansible-core 2.21.5 → passes; an earlier suspicion about its escaped backslashes was refuted and dropped. - PR checks at `576157b`: `pr-checks / check` success. ## Could not verify - `pct config 110`'s fields (`.107`, privileged, `nesting`, tags, MAC, description): no SSH to the Guest (every local key refused) and no PVE credential in this profile. - the live `qBittorrent.conf` and the mount's source string: same. - "110 is not in `/pool/prod`": same. ## Named, not charged - The removal of `/opt/qbittorrent` as a deploy act: ADR-0011's check is the plan judge, the repository's own practice removes an install tree inside a service converge (`roles/servarr/tasks/main.yml:84-88`), and the board chose the artifact. Named, not charged. - The `{{ }}`-inside-a-string conditional shape: repo-wide (`nzbget/…/tasks/main.yml:37`), deprecation-warned for ansible-core 2.23. Not this change's. - `verify.yml:71-82`: a failed `slurp` leaves `content` undefined, so the assert raises instead of printing `fail_msg`. Failure-path nit only. **Summary:** Spec — 1 finding, worst BLOCKER (the rehearsal assert). Standards — 4 findings, worst ADVISORY (the delete-before-repoint window). The recommendation is `fix` on the blocker; the advisory count (4) also trips the volume rule on its own.
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.
qbittorrent: the rehearsal's mount assert, the seed's refusal, and the removal's order
All checks were successful
pr-checks / check (pull_request) Successful in 21s
987f34a49f
Five findings from the round, four of them in the play's own ordering.

The NAS assertion read a `command`'s register, and a rehearsal skips `command`, so
its stdout was empty on every plan: `make service` — which rehearses first — could
never reach the play on any host, whatever the mount said. It is guarded with
`not ansible_check_mode`, the shape `subwave` already uses, so the question stays
with the apply that can answer it.

The static build went before the unit stopped naming it, so a refusal in between
left the unit pointing at a deleted binary. It now goes after the unit and its
drop-in, and `docs/service-qbittorrent.md` says so in the same order.

A seed from an empty credential wrote a WebUI nobody could log in to, because
`lookup('env')` answers '' rather than failing. The refusal is added at the point
the value would be written, and only where a seed is about to happen — an adopted
Guest keeps the file it has and needs no credential. The `env.map` row keeps its
two actors: `automation-runner.hcl` carries no `services/qbittorrent/webui` path,
so naming `runner` there would refuse that actor's whole fetch.

The password crossed into the derivation as an interpolated Python literal, so
one containing a quote ended it (`SyntaxError: unterminated string literal`) and
the plaintext sat in the Guest's process table as argv. It now arrives on stdin,
base64-encoded — `command` appends a newline to `stdin`, and encoding is what lets
the interpreter drop that newline without touching a password that ends in one.

`README.md`'s "each first Converge is a no-op" is scoped to the hosts it is true
of; 110 is the exception this PR is built around.
Member

Round 0 → fixed on 987f34a (one commit, on wave1/110-qbittorrent). Five findings, five changes; the PR body was corrected in place for two sentences that the diff made false.

The blocker

BLOCKER — the NAS assert was false on every rehearsal. tasks/main.yml:68 now carries when: not ansible_check_mode, the shape subwave/service/roles/subwave/tasks/main.yml:95 already uses, with a comment saying why: a rehearsal skips command, so qbittorrent_mount has no stdout there and the question belongs to the apply.

Driven on this host against the role as shipped (ANSIBLE_ROLES_PATH=<tree>/qbittorrent/service/roles ansible-playbook -i localhost, -c local --check <probe>):

# old head 576157b
[ERROR]: Task failed: … /mnt/evilwitness/qbittorrent/downloads is not mounted from
10.12.0.6:/volume1/ws (findmnt said: nothing).
localhost : ok=6 changed=3 failed=1

# 987f34a
TASK [read what the download tree is mounted from] ... skipping: [localhost]
TASK [the download tree is the NAS volume] .......... skipping: [localhost]

With no .env on this host the new run then stops at the credential refusal below (ok=7 changed=4 failed=1 skipped=3), not at the mount; it is a rehearsal, so nothing was written.

The advisories

Finding Change Where
static build deleted before the unit stopped naming it the removal now runs after the unit and its drop-in, before the service start tasks/main.yml:195
WebUI row omits runner, no refusal on an empty credential the sibling's assert, scoped to a seed: both values checked for a non-zero length, when: not qbittorrent_config_file.stat.exists tasks/main.yml:104
README.md:39-40 says the opposite of this change scoped to the hosts it is true of, naming 110 and the service page README.md:39
a ' in the password breaks the seed the password now reaches python3 on stdin, base64-encoded; no interpolation, nothing in argv tasks/main.yml:120

Why runner was not added to env.map:90. olympus/infra-secrets at 4a45309, bao/policies/automation-runner.hcl carries no services/qbittorrent/webui path (zero matches), and the fetch is all-or-nothing — naming runner there would refuse the runner's whole environment, not grant the row. I took the finding's other clearing. The grant is an Operator item in infra-secrets; the assert is what keeps this repository safe until it lands.

Why the derivation crosses base64, not plain stdin. command's run_command appends a newline to stdin (it has a binary_data flag the command module does not expose), so reading stdin directly would hash password\n. Encoding lets the interpreter drop exactly that newline without touching a password that ends in one.

Driven from the role's own task (a probe built from the shipped YAML, so it cannot drift):

# old head, password "pa'ss $word \"quoted\""
SyntaxError: unterminated string literal (detected at line 1)

# 987f34a, same password
hash shape : 16-byte salt, 64-byte key
key equals : True          (password b'pa\'ss $word "quoted"', 20 bytes)
no newline : True

# 987f34a, password "line-one\n"   (the edge the comment claims)
key equals : True

The same probe asserts the task's argv carries no {{ }} and no password.

Verify

mise exec -- make check      env-check: the pin and the map agree.
                             ok    env.map: 30 names, all declared in .env.example
mise exec -- make validate   validate: 9 Stack(s) valid.
ansible-playbook --syntax-check site.yml     playbook: site.yml
ansible-playbook --syntax-check verify.yml   playbook: verify.yml
git status --porcelain       (clean: `tofu init` left no lock file behind)

CI at 987f34a: pr-checks / check success (run #998, 21 s).

Body

docs/service-qbittorrent.md and the numbered list now give the order the play actually runs (package → unit/drop-in → /opt/qbittorrent gone → service), the WebUI paragraph names the refusal, and the PR body's "installs, removes, points" sentence and its WebUI sentence were patched in place to match.

Left alone, and why

  • The nzbget assert that is also red under --check — named in the review as not this PR's.
  • verify.yml:71-82's failure-path slurp nit — named, not charged.
  • The rehearsal no longer refuses an unmounted Guest; that is the point of the guard, and the apply still refuses it at the same place.

Nothing here needs a decision from you; the branch is ready for the next round.

**Round 0 → fixed on `987f34a`** (one commit, on `wave1/110-qbittorrent`). Five findings, five changes; the PR body was corrected in place for two sentences that the diff made false. ## The blocker **BLOCKER — the NAS assert was false on every rehearsal.** `tasks/main.yml:68` now carries `when: not ansible_check_mode`, the shape `subwave/service/roles/subwave/tasks/main.yml:95` already uses, with a comment saying why: a rehearsal skips `command`, so `qbittorrent_mount` has no stdout there and the question belongs to the apply. Driven on this host against the role as shipped (`ANSIBLE_ROLES_PATH=<tree>/qbittorrent/service/roles ansible-playbook -i localhost, -c local --check <probe>`): ```text # old head 576157b [ERROR]: Task failed: … /mnt/evilwitness/qbittorrent/downloads is not mounted from 10.12.0.6:/volume1/ws (findmnt said: nothing). localhost : ok=6 changed=3 failed=1 # 987f34a TASK [read what the download tree is mounted from] ... skipping: [localhost] TASK [the download tree is the NAS volume] .......... skipping: [localhost] ``` With no `.env` on this host the new run then stops at the credential refusal below (`ok=7 changed=4 failed=1 skipped=3`), not at the mount; it is a rehearsal, so nothing was written. ## The advisories | Finding | Change | Where | | --- | --- | --- | | static build deleted before the unit stopped naming it | the removal now runs after the unit and its drop-in, before the service start | `tasks/main.yml:195` | | WebUI row omits `runner`, no refusal on an empty credential | the sibling's assert, scoped to a seed: both values checked for a non-zero length, `when: not qbittorrent_config_file.stat.exists` | `tasks/main.yml:104` | | `README.md:39-40` says the opposite of this change | scoped to the hosts it is true of, naming 110 and the service page | `README.md:39` | | a `'` in the password breaks the seed | the password now reaches `python3` on `stdin`, base64-encoded; no interpolation, nothing in argv | `tasks/main.yml:120` | **Why `runner` was not added to `env.map:90`.** `olympus/infra-secrets` at `4a45309`, `bao/policies/automation-runner.hcl` carries no `services/qbittorrent/webui` path (zero matches), and the fetch is all-or-nothing — naming `runner` there would refuse the runner's whole environment, not grant the row. I took the finding's other clearing. The grant is an Operator item in `infra-secrets`; the assert is what keeps this repository safe until it lands. **Why the derivation crosses base64, not plain stdin.** `command`'s `run_command` appends a newline to `stdin` (it has a `binary_data` flag the command module does not expose), so reading stdin directly would hash `password\n`. Encoding lets the interpreter drop exactly that newline without touching a password that ends in one. Driven from the role's own task (a probe built from the shipped YAML, so it cannot drift): ```text # old head, password "pa'ss $word \"quoted\"" SyntaxError: unterminated string literal (detected at line 1) # 987f34a, same password hash shape : 16-byte salt, 64-byte key key equals : True (password b'pa\'ss $word "quoted"', 20 bytes) no newline : True # 987f34a, password "line-one\n" (the edge the comment claims) key equals : True ``` The same probe asserts the task's `argv` carries no `{{ }}` and no password. ## Verify ```text mise exec -- make check env-check: the pin and the map agree. ok env.map: 30 names, all declared in .env.example mise exec -- make validate validate: 9 Stack(s) valid. ansible-playbook --syntax-check site.yml playbook: site.yml ansible-playbook --syntax-check verify.yml playbook: verify.yml git status --porcelain (clean: `tofu init` left no lock file behind) ``` CI at `987f34a`: `pr-checks / check` **success** (run #998, 21 s). ## Body `docs/service-qbittorrent.md` and the numbered list now give the order the play actually runs (package → unit/drop-in → `/opt/qbittorrent` gone → service), the WebUI paragraph names the refusal, and the PR body's "installs, removes, points" sentence and its WebUI sentence were patched in place to match. ## Left alone, and why - The `nzbget` assert that is also red under `--check` — named in the review as not this PR's. - `verify.yml:71-82`'s failure-path `slurp` nit — named, not charged. - The rehearsal no longer refuses an unmounted Guest; that is the point of the guard, and the apply still refuses it at the same place. Nothing here needs a decision from you; the branch is ready for the next round.
Author
Owner

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

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

Review started (round 0/5) on 987f34a49f — reading the diff now.

**Review started** (round 0/5) on 987f34a49f06d99beee63ba98db7d82674a898c5 — reading the diff now.
bot-minos approved these changes 2026-12-02 19:14:41 +00:00
Dismissed
bot-minos left a comment

olympus/infra-media#7 · reviewed head 987f34a · round 2/5 — the thread's review count plus one; the dispatch's round 0 is its sign-on counter.

Recommendation: merge

Delta. git diff 576157b 987f34a — 3 files, 62 insertions, 26 deletions: README.md, docs/service-qbittorrent.md, qbittorrent/service/roles/qbittorrent/tasks/main.yml. The head worktree's tasks/main.yml hashes to 6c59666… and equals git show 987f34a:… byte for byte, so every line below was read at the reviewed revision.

Prior findings, re-driven

# Round 1 What I drove at 987f34a Status
1 BLOCKER — the NAS assert is false under --check tasks/main.yml:72 now carries when: not ansible_check_mode. Red/green on the shipped role, --check, one host: at 576157b the play dies at that task (fatal … /mnt/evilwitness/qbittorrent/downloads is not mounted from 10.12.0.6:/volume1/ws (findmnt said: nothing), ok=6 changed=3 failed=1); at 987f34a the same task reports skipping and the play walks on through the unit, the drop-in and the removal to the last task (ok=12 changed=5, the single failure being this host having no qbittorrent-nox unit). The rehearsal gate is open. resolved
2 ADVISORY — the static build goes before the unit stops pointing at it moved to tasks/main.yml:195, after the unit (:169) and its drop-in (:178), before the service is started (:200); the page's numbered list follows the same order (docs/service-qbittorrent.md:42-44). resolved
3 ADVISORY — the WebUI row omits runner, nothing refuses an empty credential took the second clearing: tasks/main.yml:104-113 asserts both values are non-empty, scoped to not qbittorrent_config_file.stat.exists. Driven with an empty environment: the play refuses at :104 with QBITTORRENT_WEBUI_USERNAME or QBITTORRENT_WEBUI_PASSWORD is empty in the environment. resolved
4 ADVISORY — README.md says the opposite of this change README.md:39-42 now scopes the no-op sentence and names 110 qbittorrent. resolved
5 ADVISORY — a ' in the password breaks the seed the task is now argv + base64 on stdin (:120-135). The task extracted from the shipped YAML and driven: pa'ss $word "quoted" (20 bytes) and line-one\n (8 bytes, the trailing newline intact) both reproduce the exact PBKDF2 key from the salt the task printed; argv carries no password and no {{ }}. resolved

Standards

ADVISORY — the refusal says nothing was written, and three earlier tasks have written.
qbittorrent/service/roles/qbittorrent/tasks/main.yml:112 ends the fail_msg with "Nothing was written.", and docs/service-qbittorrent.md:38 repeats it as "an empty one is refused before anything is written". By the time the assert at :104 runs, :21-33 has created the group and the account, :44-48 has installed qbittorrent-nox, and :79-88 has made both directories — all of them before the refusal, all of them in the log. The driven refusal's recap shows changed=3 before it fires. Nothing here is harmful or irrecoverable; the message and the page are just wrong about the machine's state, and a failure message about a live Guest is the place to be exact. Clearing: move the stat at :90-93 with the assert above the account task, or say what the run has already written (the account, the package, the two empty directories).

Spec

No findings. The body's claims hold at the head: the package pin (verify.yml:12) is 81f62892…7d310318d, reproduced from the Debian pool; HOSTS gains a ninth host and .env.example the four names; the nine-row README table and the six-step page match the play's order; the first Converge still changes the binary and says so in both the page and the body.

Verified

  • head resolves to 987f34a49f06d99beee63ba98db7d82674a898c5 via refs/pull/7/head, unchanged before and after the run.
  • make check → ok env.map: 30 names, all declared in .env.example, formatting clean, rc 0.
  • make validate → Success! The configuration is valid. / validate: 9 Stack(s) valid., rc 0; tree left clean.
  • ansible-playbook --syntax-check on site.yml and verify.yml → both clean.
  • Debian pool qbittorrent-nox_5.1.0-2_amd64.deb re-fetched this round: sha256 a1e9436e…5bc10af02a, and its /usr/bin/qbittorrent-nox hashes to 81f62892a20b268331a10356178b28f8b338f0fb6aaa647e944f8207d310318d — the pin verify.yml asserts.
  • http://10.12.0.107:8090/ from this host → 200.
  • CI at 987f34a: pr-checks / check success in 21 s (run 27).
  • A suspicion I had about verify.yml:25-32 — that its fail_msg would raise on the very case it reports, because ansible_facts.services['qbittorrent-nox.service'].state is dereferenced before default('absent') — was driven with the key absent and renders (state: absent). Refuted; not charged.

Could not verify

  • pct config 110 and the live qBittorrent.conf (address, privileged flag, nesting, tags, MAC, mount source string), and "110 is not in /pool/prod": no PVE credential and no SSH into the Guest from this profile.

Named, not charged

  • Removing /opt/qbittorrent inside the Converge: ADR-0011's judge is the plan, the repository's own practice removes an install tree inside a service converge (roles/servarr/tasks/main.yml), and the board chose the artifact. Re-stated, not charged, as in round 1.
  • verify.yml:71-82: a failed slurp leaves content undefined, so the assert raises instead of printing fail_msg. Failure-path nit, named in round 1 and unchanged here.
  • The {{ }}-inside-a-string conditional shape at tasks/main.yml:63: repo-wide (nzbget/…/tasks/main.yml), deprecation-warned for ansible-core 2.23. Not this change's.

Summary: Standards — 1 finding, worst ADVISORY. Spec — 0 findings. No blocker stands, and one advisory is below the volume trip, so the recommendation is merge.

<!-- minos review-loop: repo=olympus/infra-media pr=7 head=987f34a49f06d99beee63ba98db7d82674a898c5 round=2/5 axes=standards,spec --> **olympus/infra-media#7** · reviewed head `987f34a` · round **2/5** — the thread's review count plus one; the dispatch's `round 0` is its sign-on counter. Recommendation: merge **Delta.** `git diff 576157b 987f34a` — 3 files, 62 insertions, 26 deletions: `README.md`, `docs/service-qbittorrent.md`, `qbittorrent/service/roles/qbittorrent/tasks/main.yml`. The head worktree's `tasks/main.yml` hashes to `6c59666…` and equals `git show 987f34a:…` byte for byte, so every line below was read at the reviewed revision. ## Prior findings, re-driven | # | Round 1 | What I drove at `987f34a` | Status | | --- | --- | --- | --- | | 1 | **BLOCKER** — the NAS assert is false under `--check` | `tasks/main.yml:72` now carries `when: not ansible_check_mode`. Red/green on the shipped role, `--check`, one host: at `576157b` the play dies at that task (`fatal … /mnt/evilwitness/qbittorrent/downloads is not mounted from 10.12.0.6:/volume1/ws (findmnt said: nothing)`, `ok=6 changed=3 failed=1`); at `987f34a` the same task reports `skipping` and the play walks on through the unit, the drop-in and the removal to the last task (`ok=12 changed=5`, the single failure being this host having no `qbittorrent-nox` unit). The rehearsal gate is open. | resolved | | 2 | ADVISORY — the static build goes before the unit stops pointing at it | moved to `tasks/main.yml:195`, after the unit (`:169`) and its drop-in (`:178`), before the service is started (`:200`); the page's numbered list follows the same order (`docs/service-qbittorrent.md:42-44`). | resolved | | 3 | ADVISORY — the WebUI row omits `runner`, nothing refuses an empty credential | took the second clearing: `tasks/main.yml:104-113` asserts both values are non-empty, scoped to `not qbittorrent_config_file.stat.exists`. Driven with an empty environment: the play refuses at `:104` with `QBITTORRENT_WEBUI_USERNAME or QBITTORRENT_WEBUI_PASSWORD is empty in the environment`. | resolved | | 4 | ADVISORY — `README.md` says the opposite of this change | `README.md:39-42` now scopes the no-op sentence and names `110 qbittorrent`. | resolved | | 5 | ADVISORY — a `'` in the password breaks the seed | the task is now `argv` + base64 on `stdin` (`:120-135`). The task extracted from the shipped YAML and driven: `pa'ss $word "quoted"` (20 bytes) and `line-one\n` (8 bytes, the trailing newline intact) both reproduce the exact PBKDF2 key from the salt the task printed; `argv` carries no password and no `{{ }}`. | resolved | ## Standards **ADVISORY — the refusal says nothing was written, and three earlier tasks have written.** `qbittorrent/service/roles/qbittorrent/tasks/main.yml:112` ends the `fail_msg` with "Nothing was written.", and `docs/service-qbittorrent.md:38` repeats it as "an empty one is refused before anything is written". By the time the assert at `:104` runs, `:21-33` has created the group and the account, `:44-48` has installed `qbittorrent-nox`, and `:79-88` has made both directories — all of them before the refusal, all of them in the log. The driven refusal's recap shows `changed=3` before it fires. Nothing here is harmful or irrecoverable; the message and the page are just wrong about the machine's state, and a failure message about a live Guest is the place to be exact. **Clearing:** move the `stat` at `:90-93` with the assert above the account task, or say what the run has already written (the account, the package, the two empty directories). ## Spec No findings. The body's claims hold at the head: the package pin (`verify.yml:12`) is `81f62892…7d310318d`, reproduced from the Debian pool; `HOSTS` gains a ninth host and `.env.example` the four names; the nine-row README table and the six-step page match the play's order; the first Converge still changes the binary and says so in both the page and the body. ## Verified - head resolves to `987f34a49f06d99beee63ba98db7d82674a898c5` via `refs/pull/7/head`, unchanged before and after the run. - `make check` → `ok env.map: 30 names, all declared in .env.example`, formatting clean, rc 0. - `make validate` → `Success! The configuration is valid.` / `validate: 9 Stack(s) valid.`, rc 0; tree left clean. - `ansible-playbook --syntax-check` on `site.yml` and `verify.yml` → both clean. - Debian pool `qbittorrent-nox_5.1.0-2_amd64.deb` re-fetched this round: sha256 `a1e9436e…5bc10af02a`, and its `/usr/bin/qbittorrent-nox` hashes to `81f62892a20b268331a10356178b28f8b338f0fb6aaa647e944f8207d310318d` — the pin `verify.yml` asserts. - `http://10.12.0.107:8090/` from this host → `200`. - CI at `987f34a`: `pr-checks / check` success in 21 s (run 27). - A suspicion I had about `verify.yml:25-32` — that its `fail_msg` would raise on the very case it reports, because `ansible_facts.services['qbittorrent-nox.service'].state` is dereferenced before `default('absent')` — was driven with the key absent and renders `(state: absent)`. Refuted; not charged. ## Could not verify - `pct config 110` and the live `qBittorrent.conf` (address, privileged flag, nesting, tags, MAC, mount source string), and "110 is not in `/pool/prod`": no PVE credential and no SSH into the Guest from this profile. ## Named, not charged - Removing `/opt/qbittorrent` inside the Converge: ADR-0011's judge is the plan, the repository's own practice removes an install tree inside a service converge (`roles/servarr/tasks/main.yml`), and the board chose the artifact. Re-stated, not charged, as in round 1. - `verify.yml:71-82`: a failed `slurp` leaves `content` undefined, so the assert raises instead of printing `fail_msg`. Failure-path nit, named in round 1 and unchanged here. - The `{{ }}`-inside-a-string conditional shape at `tasks/main.yml:63`: repo-wide (`nzbget/…/tasks/main.yml`), deprecation-warned for ansible-core 2.23. Not this change's. **Summary:** Standards — 1 finding, worst ADVISORY. Spec — 0 findings. No blocker stands, and one advisory is below the volume trip, so the recommendation is merge.
pit changed target branch from wave1/148-slskd to main 2026-12-02 19:28:25 +00:00
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.
qbittorrent: the seed's refusal, asked before the first write
All checks were successful
pr-checks / check (pull_request) Successful in 21s
17fa021f52
The assert said "Nothing was written." and the Converge had already created
the group and the account, installed the package and made the two state
directories — a driven refusal on the shipped role recapped `changed=4`
before it fired. A failure message about a live Guest is the place to be
exact, and it was describing the old placement rather than the machine.

The stat and the assert move to the top of the play, after the architecture
check and before the account: the clearing the review named first, and the
shape the sibling roles use for a guard whose message makes that claim. The
register travels with them, and the derive and the seed still read it; both
stay late enough that the seed is still the only thing that writes a
configuration.

Driven on this host, check mode, no credential in the environment:

  987f34a  ok=7 changed=4 failed=1   the account, the package and the
                                    directories change before the refusal
  this     ok=3 changed=0 failed=1   the stat and the refusal are the first
                                    things that run, and nothing is written

With both values filled the same play passes the guard and reaches the derive
and the seed, so the move leaves the seed path intact.

docs/service-qbittorrent.md's numbered list carries the order the play now
runs.
bot-efesto dismissed bot-minos's review 2026-12-02 19:39:27 +00:00
Reason:

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

Member

Round 0 → fixed on 17fa021 — one commit, a fast-forward on wave1/110-qbittorrent.

The three numbers first

Number Value
the dispatch round 0 of 5 — its sign-on counter
the review at this head round 2/5, state APPROVED, Recommendation: merge
its tally Spec 0, Standards 1 ADVISORY, 0 BLOCKER

The dispatch's "blocking findings" is generated from the review/needs-fix label event and reads the same for a five-blocker round and a one-advisory one, so the review's own tally is what sizes the round. Nothing was blocking; the advisory carried a clearing change, so it is landed here, and the label moves to review/needs-review at the new head.

The finding, and the commit that answers it

ADVISORY — the refusal says nothing was written, and three earlier tasks have written.
tasks/main.yml's fail_msg ended Nothing was written., and docs/service-qbittorrent.md:38 repeated it as "an empty one is refused before anything is written". By the time the assert ran, the group and the account existed, the package was installed and both directories had been made.

17fa021 — the clearing the finding named first. The stat and the assert move to the top of the play, after the architecture check and before the account (tasks/main.yml:15-36, a new section 0. the credential a seed needs), so the message describes the machine rather than the old placement. The register travels with them: the derive and the seed still read qbittorrent_config_file, and the seed is still the only task that writes a configuration. The role's header names the credential in the order a Converge reads, and the page's numbered list carries the new order (docs/service-qbittorrent.md:31-45).

Driven, in both directions

Shipped role, check mode, one host, no credential in the environment:

# 987f34a — the refusal fires after the writes
TASK [the group the Service runs as] ......................... changed: [localhost]
TASK [install the pinned package from Debian] ................ changed: [localhost]
TASK [the directories the Service keeps its state in] ........ changed: [localhost] (x2)
TASK [the WebUI account a seeded Guest needs, ...] ........... fatal
localhost : ok=7    changed=4    failed=1    skipped=3

# 17fa021 — the refusal is the first thing that runs
TASK [read whether the Service has a configuration] .......... ok: [localhost]
TASK [the WebUI account a seeded Guest needs, ...] ........... fatal
localhost : ok=3    changed=0    failed=1    skipped=0

With QBITTORRENT_WEBUI_USERNAME and QBITTORRENT_WEBUI_PASSWORD filled, the same play passes the guard (ok), skips the derive (a rehearsal skips command) and runs the seed task, so the move leaves the path it guards intact.

Verify

mise exec -- make check      ok  scripts/env.sh matches infra-secrets@dc5a0e58…
                             ok  env.map: 30 names, all declared in .env.example
                             rc 0
mise exec -- make validate   Success! The configuration is valid.
                             validate: 9 Stack(s) valid.                       rc 0
ansible-playbook --syntax-check site.yml     playbook: site.yml     (from qbittorrent/service)  rc 0
ansible-playbook --syntax-check verify.yml   playbook: verify.yml   (from qbittorrent/service)  rc 0
git status --porcelain       (clean — `tofu init` left no lock file behind)

CI at 17fa021: pr-checks / check success (run 32, 21 s).

The PR body needed no edit: its sentence — "a seed whose two values are not both filled is refused before anything is written" — is what the play now does.

Left alone, and named

  • verify.yml's failed-slurp nit (:71-82): content is undefined when the slurp fails, so the assert raises instead of printing fail_msg. Named in both earlier rounds, unchanged, not charged.
  • A rehearsal on a rebuilt Guest still stops at that slurp. Driven above: with the credentials filled and no configuration on the host, check mode simulates the seed and the next task dies File not found: …/qBittorrent.conf. The rehearsal stays green on 110 as it stands, where the configuration exists — so this is not the rehearsal the round was about — but a Guest rebuilt from the template would meet it. Not charged, not fixed here: it is a change to the configuration assert's own guard, and it belongs in its own round rather than inside an advisory's commit.
  • slskd/service/roles/slskd/tasks/main.yml:67-80 carries the same sentence and the same defect: its assert sits after the fetch and the unpack, so on a Guest that needs the release it too refuses after writing. Outside this PR's blast radius — named here so it is not read as fixed.
**Round 0 → fixed on `17fa021`** — one commit, a fast-forward on `wave1/110-qbittorrent`. ## The three numbers first | Number | Value | | --- | --- | | the dispatch | `round 0 of 5` — its sign-on counter | | the review at this head | `round 2/5`, state `APPROVED`, **Recommendation: merge** | | its tally | Spec **0**, Standards **1 ADVISORY**, 0 BLOCKER | The dispatch's "blocking findings" is generated from the `review/needs-fix` label event and reads the same for a five-blocker round and a one-advisory one, so the review's own tally is what sizes the round. Nothing was blocking; the advisory carried a clearing change, so it is landed here, and the label moves to `review/needs-review` at the new head. ## The finding, and the commit that answers it **ADVISORY — the refusal says nothing was written, and three earlier tasks have written.** `tasks/main.yml`'s `fail_msg` ended `Nothing was written.`, and `docs/service-qbittorrent.md:38` repeated it as "an empty one is refused before anything is written". By the time the assert ran, the group and the account existed, the package was installed and both directories had been made. **`17fa021` — the clearing the finding named first.** The `stat` and the assert move to the top of the play, after the architecture check and before the account (`tasks/main.yml:15-36`, a new section *0. the credential a seed needs*), so the message describes the machine rather than the old placement. The register travels with them: the derive and the seed still read `qbittorrent_config_file`, and the seed is still the only task that writes a configuration. The role's header names the credential in the order a Converge reads, and the page's numbered list carries the new order (`docs/service-qbittorrent.md:31-45`). ## Driven, in both directions Shipped role, check mode, one host, no credential in the environment: ```text # 987f34a — the refusal fires after the writes TASK [the group the Service runs as] ......................... changed: [localhost] TASK [install the pinned package from Debian] ................ changed: [localhost] TASK [the directories the Service keeps its state in] ........ changed: [localhost] (x2) TASK [the WebUI account a seeded Guest needs, ...] ........... fatal localhost : ok=7 changed=4 failed=1 skipped=3 # 17fa021 — the refusal is the first thing that runs TASK [read whether the Service has a configuration] .......... ok: [localhost] TASK [the WebUI account a seeded Guest needs, ...] ........... fatal localhost : ok=3 changed=0 failed=1 skipped=0 ``` With `QBITTORRENT_WEBUI_USERNAME` and `QBITTORRENT_WEBUI_PASSWORD` filled, the same play passes the guard (`ok`), skips the derive (a rehearsal skips `command`) and runs the seed task, so the move leaves the path it guards intact. ## Verify ```text mise exec -- make check ok scripts/env.sh matches infra-secrets@dc5a0e58… ok env.map: 30 names, all declared in .env.example rc 0 mise exec -- make validate Success! The configuration is valid. validate: 9 Stack(s) valid. rc 0 ansible-playbook --syntax-check site.yml playbook: site.yml (from qbittorrent/service) rc 0 ansible-playbook --syntax-check verify.yml playbook: verify.yml (from qbittorrent/service) rc 0 git status --porcelain (clean — `tofu init` left no lock file behind) ``` CI at `17fa021`: `pr-checks / check` **success** (run 32, 21 s). The PR body needed no edit: its sentence — "a seed whose two values are not both filled is refused before anything is written" — is what the play now does. ## Left alone, and named - **`verify.yml`'s failed-`slurp` nit** (`:71-82`): `content` is undefined when the slurp fails, so the assert raises instead of printing `fail_msg`. Named in both earlier rounds, unchanged, not charged. - **A rehearsal on a *rebuilt* Guest still stops at that `slurp`.** Driven above: with the credentials filled and no configuration on the host, check mode simulates the seed and the next task dies `File not found: …/qBittorrent.conf`. The rehearsal stays green on 110 as it stands, where the configuration exists — so this is not the rehearsal the round was about — but a Guest rebuilt from the template would meet it. Not charged, not fixed here: it is a change to the configuration assert's own guard, and it belongs in its own round rather than inside an advisory's commit. - **`slskd/service/roles/slskd/tasks/main.yml:67-80` carries the same sentence and the same defect**: its assert sits after the fetch and the unpack, so on a Guest that needs the release it too refuses after writing. Outside this PR's blast radius — named here so it is not read as fixed.
Member

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

**Review started** (round 1/5) on 17fa021f521aa4c679317d584bc85c6941d43f23 — reading the diff now.
bot-minos approved these changes 2026-12-02 19:43:38 +00:00
Dismissed
bot-minos left a comment

olympus/infra-media#7 · reviewed head 17fa021 · round 3/5 — the thread's review count plus one; the dispatch's round 1/5 is its sign-on counter, which restarts whenever a review/* label is moved by hand. Head 17fa021f521aa4c679317d584bc85c6941d43f23, state APPROVED.

Recommendation: merge

Spec. No linked issue; the PR body is the spec, as in rounds 1 and 2. Standards sources: README.md §Conventions, docs/deploy.md, the sibling service roles, env.map/.env.example, and olympus/workshop docs/adr/ at main (0011, 0012 — neither is touched by this delta, and neither governs a documentation sentence).

Delta. git merge-base --is-ancestor 987f34a 17fa021 → true: a stacked fix, git diff 987f34a 17fa021 is the round's change — 2 files, 36 insertions, 31 deletions, qbittorrent/service/roles/qbittorrent/tasks/main.yml and docs/service-qbittorrent.md. Both worktree files hash equal to git show 17fa021:<path>, so every line below was read at the reviewed revision.

Prior findings, re-driven

# Round 2 What I drove at 17fa021 Status
1 ADVISORY — the refusal says nothing was written, and three earlier tasks have written the stat and the assert moved to tasks/main.yml:22-36, above the group (:44), the package (:67) and the directories (:102). Red/green on the shipped role, --check, one host, no credential: at 987f34a the refusal fires after changed=3 (ok=5 changed=3 failed=1); at 17fa021 it is the play's third task and the recap reads ok=3 changed=0 failed=1. The role writes nothing before it refuses. resolved

The moved guard's three branches, driven on the shipped role: fresh Guest with no credential → fatal at :27, nothing changed; fresh Guest with a credential → the assert passes and the play walks on to the seed; adopted Guest (configuration present) with no credential → the assert reports skipping, so an adopted Guest still asks for nothing.

Standards

ADVISORY — "before anything is written" is true of the role and false of the play.
docs/service-qbittorrent.md:34-35 now says the credential is checked "before the play writes anything at all, so a run that cannot seed leaves the machine as it found it", tasks/main.yml:35 still closes the refusal with "Nothing was written.", and the PR body carries the same claim ("refused before anything is written"). The service play is roles: [journal, qbittorrent] (qbittorrent/service/site.yml:5-7), and the journal role writes first: roles/journal/tasks/main.yml:12-15 creates /etc/systemd/journald.conf.d, :22-24 copies persistent.conf into it. Driven on the play's own role order, --check, one host, fresh Guest, no credential: both journal tasks report changed, then the refusal fires — ok=5 changed=2 failed=1. The same play at 987f34a reached changed=5 before the refusal, so this fix removed three of the five writes; the journal's two are a shared role the change does not touch, but the sentence is the change's. Nothing here is harmful — the drop-in is idempotent and unrelated to the seed, and the client's state genuinely stays untouched — but a refusal message about a live Guest is the place to be exact.
Clearing: one clause — "before the play writes anything at all" → "before the role writes anything at all" (or "before the account, the package and the directories are written"), and the same word in the fail_msg and the body. tasks/main.yml:18-21's comment is scoped to the role and reads true there; it can stand.

Spec

No findings. The body's claims hold at the head, re-driven this round: the Debian pool qbittorrent-nox_5.1.0-2_amd64.deb hashes a1e9436e…c10af02a, and its /usr/bin/qbittorrent-nox to 81f62892a20b268331a10356178b28f8b338f0fb6aaa647e944f8207d310318d — verify.yml:12's pin exactly; http://10.12.0.107:8090/ answers 200; the first Converge still changes the binary and says so in both the page and the body; the seven-step list follows the play's order (:22 credential → :44 account → :67 package → :82 NAS → :102-152 configuration → :172 unit → :198 removal → :203 start).

Verified

  • refs/pull/7/head resolves to 17fa021f521aa4c679317d584bc85c6941d43f23, before the probes and again after them.
  • merge-base --is-ancestor 987f34a 17fa021 → true; the delta is the 2-file diff above, and git diff --stat over verify.yml is empty.
  • make check → ok env.sh pins infra-secrets@dc5a0e58…, ok env.map: 30 names, all declared in .env.example, rc 0.
  • make validate → validate: 9 Stack(s) valid., rc 0; the tree is left clean.
  • ansible-playbook --syntax-check on site.yml and verify.yml → playbook: site.yml / playbook: verify.yml, both clean.
  • The advisory's red/green pair and the guard's three branches, as driven above.
  • CI at 17fa021: pr-checks / check (pull_request) success in 21 s (actions run 32, workflow run #1003).

Could not verify

  • pct config 110 and the live qBittorrent.conf (address, privileged flag, nesting, tags, MAC, mount source string), and "110 is not in /pool/prod": no PVE credential and no SSH into the Guest from this profile.

Named, not charged

  • verify.yml:71-82: a failed slurp leaves content undefined, so the assert raises instead of printing its fail_msg. Unchanged by this delta, and driven at both heads — a fresh Guest with the credential set fails at read the configuration the Service owns at 987f34a (ok=11 changed=6 failed=1) and at 17fa021 (same recap). Pre-existing; not this round's.
  • The journal role's two writes: they precede the refusal at both heads, so the ordering is not this change's — the sentence about it is, and that is the advisory above.
  • slskd/service/roles/slskd/tasks/main.yml:67: the same sentence, and its assert does sit after its fetch, stop and unpack (:30-54) — read at head; a sibling role this PR does not touch.
  • Removing /opt/qbittorrent inside the Converge: as in rounds 1 and 2, ADR-0011's judge is the plan, the repository's own practice removes an install tree inside a service converge, and the board chose the artifact.

Summary: Standards — 1 finding, worst ADVISORY (the refusal's scope word). Spec — 0 findings. No blocker stands, the one advisory retires the prior round's and is below the volume trip, so the recommendation is merge, and the state and the label follow it.

<!-- minos review-loop: repo=olympus/infra-media pr=7 head=17fa021f521aa4c679317d584bc85c6941d43f23 round=3/5 axes=standards,spec --> **olympus/infra-media#7** · reviewed head `17fa021` · round **3/5** — the thread's review count plus one; the dispatch's `round 1/5` is its sign-on counter, which restarts whenever a `review/*` label is moved by hand. Head `17fa021f521aa4c679317d584bc85c6941d43f23`, state `APPROVED`. Recommendation: merge **Spec.** No linked issue; the PR body is the spec, as in rounds 1 and 2. Standards sources: `README.md` §Conventions, `docs/deploy.md`, the sibling service roles, `env.map`/`.env.example`, and `olympus/workshop` `docs/adr/` at `main` (0011, 0012 — neither is touched by this delta, and neither governs a documentation sentence). **Delta.** `git merge-base --is-ancestor 987f34a 17fa021` → true: a stacked fix, `git diff 987f34a 17fa021` is the round's change — 2 files, 36 insertions, 31 deletions, `qbittorrent/service/roles/qbittorrent/tasks/main.yml` and `docs/service-qbittorrent.md`. Both worktree files hash equal to `git show 17fa021:<path>`, so every line below was read at the reviewed revision. ## Prior findings, re-driven | # | Round 2 | What I drove at `17fa021` | Status | | --- | --- | --- | --- | | 1 | ADVISORY — the refusal says nothing was written, and three earlier tasks have written | the `stat` and the assert moved to `tasks/main.yml:22-36`, above the group (`:44`), the package (`:67`) and the directories (`:102`). Red/green on the shipped role, `--check`, one host, no credential: at `987f34a` the refusal fires after `changed=3` (`ok=5 changed=3 failed=1`); at `17fa021` it is the play's third task and the recap reads `ok=3 changed=0 failed=1`. The role writes nothing before it refuses. | resolved | The moved guard's three branches, driven on the shipped role: fresh Guest with no credential → fatal at `:27`, nothing changed; fresh Guest with a credential → the assert passes and the play walks on to the seed; adopted Guest (configuration present) with no credential → the assert reports `skipping`, so an adopted Guest still asks for nothing. ## Standards **ADVISORY — "before anything is written" is true of the role and false of the play.** `docs/service-qbittorrent.md:34-35` now says the credential is checked "before the play writes anything at all, so a run that cannot seed leaves the machine as it found it", `tasks/main.yml:35` still closes the refusal with "Nothing was written.", and the PR body carries the same claim ("refused before anything is written"). The service play is `roles: [journal, qbittorrent]` (`qbittorrent/service/site.yml:5-7`), and the journal role writes first: `roles/journal/tasks/main.yml:12-15` creates `/etc/systemd/journald.conf.d`, `:22-24` copies `persistent.conf` into it. Driven on the play's own role order, `--check`, one host, fresh Guest, no credential: both journal tasks report `changed`, then the refusal fires — `ok=5 changed=2 failed=1`. The same play at `987f34a` reached `changed=5` before the refusal, so this fix removed three of the five writes; the journal's two are a shared role the change does not touch, but the sentence is the change's. Nothing here is harmful — the drop-in is idempotent and unrelated to the seed, and the client's state genuinely stays untouched — but a refusal message about a live Guest is the place to be exact. **Clearing:** one clause — "before the play writes anything at all" → "before the role writes anything at all" (or "before the account, the package and the directories are written"), and the same word in the `fail_msg` and the body. `tasks/main.yml:18-21`'s comment is scoped to the role and reads true there; it can stand. ## Spec No findings. The body's claims hold at the head, re-driven this round: the Debian pool `qbittorrent-nox_5.1.0-2_amd64.deb` hashes `a1e9436e…c10af02a`, and its `/usr/bin/qbittorrent-nox` to `81f62892a20b268331a10356178b28f8b338f0fb6aaa647e944f8207d310318d` — `verify.yml:12`'s pin exactly; `http://10.12.0.107:8090/` answers `200`; the first Converge still changes the binary and says so in both the page and the body; the seven-step list follows the play's order (`:22` credential → `:44` account → `:67` package → `:82` NAS → `:102-152` configuration → `:172` unit → `:198` removal → `:203` start). ## Verified - `refs/pull/7/head` resolves to `17fa021f521aa4c679317d584bc85c6941d43f23`, before the probes and again after them. - `merge-base --is-ancestor 987f34a 17fa021` → true; the delta is the 2-file diff above, and `git diff --stat` over `verify.yml` is empty. - `make check` → `ok env.sh pins infra-secrets@dc5a0e58…`, `ok env.map: 30 names, all declared in .env.example`, rc 0. - `make validate` → `validate: 9 Stack(s) valid.`, rc 0; the tree is left clean. - `ansible-playbook --syntax-check` on `site.yml` and `verify.yml` → `playbook: site.yml` / `playbook: verify.yml`, both clean. - The advisory's red/green pair and the guard's three branches, as driven above. - CI at `17fa021`: `pr-checks / check (pull_request)` success in 21 s (actions run 32, workflow run #1003). ## Could not verify - `pct config 110` and the live `qBittorrent.conf` (address, privileged flag, nesting, tags, MAC, mount source string), and "110 is not in `/pool/prod`": no PVE credential and no SSH into the Guest from this profile. ## Named, not charged - `verify.yml:71-82`: a failed `slurp` leaves `content` undefined, so the assert raises instead of printing its `fail_msg`. Unchanged by this delta, and driven at both heads — a fresh Guest with the credential set fails at `read the configuration the Service owns` at `987f34a` (`ok=11 changed=6 failed=1`) and at `17fa021` (same recap). Pre-existing; not this round's. - The journal role's two writes: they precede the refusal at both heads, so the ordering is not this change's — the sentence about it is, and that is the advisory above. - `slskd/service/roles/slskd/tasks/main.yml:67`: the same sentence, and its assert does sit after its fetch, stop and unpack (`:30-54`) — read at head; a sibling role this PR does not touch. - Removing `/opt/qbittorrent` inside the Converge: as in rounds 1 and 2, ADR-0011's judge is the plan, the repository's own practice removes an install tree inside a service converge, and the board chose the artifact. **Summary:** Standards — 1 finding, worst ADVISORY (the refusal's scope word). Spec — 0 findings. No blocker stands, the one advisory retires the prior round's and is below the volume trip, so the recommendation is merge, and the state and the label follow it.
Author
Owner

Fix merge conflicts

Fix merge conflicts
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.
Main moved while this branch waited: #6 (148 slskd) merged as e4b1c1b, and
this branch was cut on top of the pre-merge base, so it carries its own copy
of the slskd work beside the merged one. The merge resolves in two shapes:

- the slskd tree takes main's bytes whole. This branch's copy is the
  pre-review revision (the credential assert still after the fetch and the
  unpack, the install-directory task still present); main carries the
  reviewed one, and nothing in this branch changes it.
- the files both changes append to are a union: `env.map` keeps main's four
  slskd/soularr rows without `runner` and adds 110's record and WebUI rows;
  `Makefile`, `README.md`, `.env.example` and `docs/deploy.md` keep main's
  text and add the qbittorrent host, name, row and prerequisite.
qbittorrent: the refusal's scope, said as the role's and not the play's
All checks were successful
pr-checks / check (pull_request) Successful in 25s
73fc945544
The service play declares `journal` before `qbittorrent`, and the journal
role creates its drop-in directory and copies `persistent.conf` into it on
every run. So "nothing was written" and "before anything is written" were
true of the client's role and false of the play: driven in check mode with
no credential, the recap reads `ok=5 changed=2 failed=1`, the two changes
being the journal's, before the assert fires.

The fail_msg now says "This role has written nothing", the task name and
the section comment are scoped the same way, and the service page says
which role it means and names the journal drop-in that precedes it.
bot-efesto dismissed bot-minos's review 2026-12-02 20:01:07 +00:00
Reason:

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

Member

Round 0 → one merge and one commit on wave1/110-qbittorrent — b66c9b0 and 73fc945, a fast-forward on the branch.

Why this round ran, and what it owed

Number Value
the dispatch round 0 of 5 — its sign-on counter
the review at this head round 3/5, state APPROVED, Recommendation: merge
its tally Spec 0, Standards 1 ADVISORY, 0 BLOCKER
the thread's own scope pit, 19:58 — "Fix merge conflicts", and the label moves back to review/needs-fix at 19:58:21

The dispatch text ("blocking findings") is generated from the label event and reads the same for a five-blocker round and a one-advisory one. Two things were owed here: main moved under the branch, and one advisory still carried a clearing change.

b66c9b0 — the merge, after #6 landed

While this branch waited, #6 (148 slskd) merged as e4b1c1b. This branch was cut on the pre-merge base, so it carried its own copy of the slskd work; git merge-tree --write-tree origin/main 17fa021 exited 1 naming eight files.

File Resolution Why
slskd/service/roles/slskd/tasks/main.yml, slskd/service/roles/soularr/tasks/main.yml, slskd/service/verify.yml main's bytes, whole the branch's copy is the pre-review revision — its credential assert still sits after the fetch and the unpack, and it still carries the install-directory task; main carries the reviewed one, and nothing in 110 changes it. git diff origin/main -- slskd/ is now empty
env.map union: main's four slskd/soularr rows without runner, then 110's record and WebUI rows both sides append after the subwave record, and the row and the grant land together
Makefile, README.md, .env.example this branch's side, on top of main's other hunks 110's HOSTS entry, VERIFY_URL, ninth table row and four names
docs/deploy.md main's text, plus 110: in the HOSTS walk, item 1's "nine hosts" and its qbittorrent services, and a fifth path on item 9 item 9 is where the runner's missing grants are recorded; HOSTS now walks 110, so its WebUI row belongs in that same operator item

Merged tree, measured: git diff --stat origin/main = 25 files, +733/−8 — the qbittorrent/ tree and the five shared files, nothing else. git merge-tree --write-tree origin/main HEAD exits 0, and the PR reads mergeable: true with merge_base at e4b1c1b.

73fc945 — the advisory: the refusal is the role's, not the play's

The review's point was exact: the service play is roles: [journal, qbittorrent], and the journal role creates /etc/systemd/journald.conf.d and copies persistent.conf before the credential assert can fire — so "nothing was written" was true of the role and false of the play.

Four sites, one wording: tasks/main.yml's section comment ("asked first in this role … a role that cannot seed has written nothing of its own"), the task name ("checked before the role writes anything"), the fail_msg ("This role has written nothing"), and docs/service-qbittorrent.md item 1 ("before this role writes anything at all, so a run that cannot seed leaves the client's own state as it found it"), which now names the journal drop-in that precedes it. The PR body's copy of the sentence was corrected in place, in one PATCH with its read-back: equal=True chars=3821 old_left=0.

Driven, in check mode, on the play's own role order, one host, no credential — the measurement is the reason for the wording, not the other way round:

TASK [journal : the directory journald reads its drop-ins from] ...... changed: [localhost]
TASK [journal : keep the journal on disk] ............................. changed: [localhost]
TASK [qbittorrent : the WebUI account a seeded Guest needs, checked before the role writes anything] ... fatal
[ERROR]: Task failed: QBITTORRENT_WEBUI_USERNAME or QBITTORRENT_WEBUI_PASSWORD is empty in
the environment. … This role has written nothing.

localhost : ok=5    changed=2    failed=1

Verify

mise exec -- make check      ok  scripts/env.sh matches infra-secrets@dc5a0e58…b6
                             ok  env.map: 30 names, all declared in .env.example
                             fmt-check: no output (clean)                       rc 0
mise exec -- make validate   Success! The configuration is valid.
                             validate: 9 Stack(s) valid.                       rc 0
ansible-playbook --syntax-check site.yml     playbook: site.yml     (from qbittorrent/service)  rc 0
ansible-playbook --syntax-check verify.yml   playbook: verify.yml   (from qbittorrent/service)  rc 0
git status --porcelain                       (clean — `tofu init` left no lock file behind)

pr-checks / check (pull_request) at 73fc945: success in 25 s — the same two commands this run drove locally.

Left alone, and named

  • The slskd and soularr tasks still say "checked before anything is written" (slskd/service/roles/slskd/tasks/main.yml:17, …/soularr/tasks/main.yml:6). Same shape, different role, and outside this PR — named in the last two rounds as a sibling's, not fixed here.
  • verify.yml's failed-slurp nit (:71-82): unchanged, named, not charged.
  • The qbittorrent WebUI row names pit,hermes, not runner. That is the second clearing of round 1 and still the right one: automation-runner.hcl carries no services/qbittorrent/webui path, and a row naming an actor the store refuses refuses that actor's whole fetch. docs/deploy.md item 9 now carries the grant beside the four slskd ones.
  • Nothing in the merge resolution changes 110's own behaviour — no task, template or check in qbittorrent/ was touched except the two wording sites above.

No decision is needed from you; the branch is ready for the next round.

**Round 0 → one merge and one commit on `wave1/110-qbittorrent`** — `b66c9b0` and `73fc945`, a fast-forward on the branch. ## Why this round ran, and what it owed | Number | Value | | --- | --- | | the dispatch | `round 0 of 5` — its sign-on counter | | the review at this head | `round 3/5`, state `APPROVED`, **Recommendation: merge** | | its tally | Spec **0**, Standards **1 ADVISORY**, 0 BLOCKER | | the thread's own scope | `pit`, 19:58 — *"Fix merge conflicts"*, and the label moves back to `review/needs-fix` at 19:58:21 | The dispatch text ("blocking findings") is generated from the label event and reads the same for a five-blocker round and a one-advisory one. Two things were owed here: `main` moved under the branch, and one advisory still carried a clearing change. ## `b66c9b0` — the merge, after #6 landed While this branch waited, `#6` (148 slskd) merged as `e4b1c1b`. This branch was cut on the pre-merge base, so it carried its own copy of the slskd work; `git merge-tree --write-tree origin/main 17fa021` exited 1 naming eight files. | File | Resolution | Why | | --- | --- | --- | | `slskd/service/roles/slskd/tasks/main.yml`, `slskd/service/roles/soularr/tasks/main.yml`, `slskd/service/verify.yml` | `main`'s bytes, whole | the branch's copy is the pre-review revision — its credential assert still sits after the fetch and the unpack, and it still carries the install-directory task; `main` carries the reviewed one, and nothing in 110 changes it. `git diff origin/main -- slskd/` is now empty | | `env.map` | union: `main`'s four slskd/soularr rows without `runner`, then 110's record and WebUI rows | both sides append after the subwave record, and the row and the grant land together | | `Makefile`, `README.md`, `.env.example` | this branch's side, on top of `main`'s other hunks | 110's `HOSTS` entry, `VERIFY_URL`, ninth table row and four names | | `docs/deploy.md` | `main`'s text, plus 110: in the `HOSTS` walk, item 1's "nine hosts" and its `qbittorrent` services, and a fifth path on item 9 | item 9 is where the runner's missing grants are recorded; `HOSTS` now walks 110, so its WebUI row belongs in that same operator item | Merged tree, measured: `git diff --stat origin/main` = 25 files, +733/−8 — the `qbittorrent/` tree and the five shared files, nothing else. `git merge-tree --write-tree origin/main HEAD` exits 0, and the PR reads `mergeable: true` with `merge_base` at `e4b1c1b`. ## `73fc945` — the advisory: the refusal is the role's, not the play's The review's point was exact: the service play is `roles: [journal, qbittorrent]`, and the journal role creates `/etc/systemd/journald.conf.d` and copies `persistent.conf` before the credential assert can fire — so "nothing was written" was true of the role and false of the play. Four sites, one wording: `tasks/main.yml`'s section comment ("asked first **in this role** … a role that cannot seed has written nothing of its own"), the task name ("checked before **the role** writes anything"), the `fail_msg` ("**This role** has written nothing"), and `docs/service-qbittorrent.md` item 1 ("before **this role** writes anything at all, so a run that cannot seed leaves the client's own state as it found it"), which now names the journal drop-in that precedes it. The PR body's copy of the sentence was corrected in place, in one `PATCH` with its read-back: `equal=True chars=3821 old_left=0`. Driven, in check mode, on the play's own role order, one host, no credential — the measurement is the reason for the wording, not the other way round: ```text TASK [journal : the directory journald reads its drop-ins from] ...... changed: [localhost] TASK [journal : keep the journal on disk] ............................. changed: [localhost] TASK [qbittorrent : the WebUI account a seeded Guest needs, checked before the role writes anything] ... fatal [ERROR]: Task failed: QBITTORRENT_WEBUI_USERNAME or QBITTORRENT_WEBUI_PASSWORD is empty in the environment. … This role has written nothing. localhost : ok=5 changed=2 failed=1 ``` ## Verify ```text mise exec -- make check ok scripts/env.sh matches infra-secrets@dc5a0e58…b6 ok env.map: 30 names, all declared in .env.example fmt-check: no output (clean) rc 0 mise exec -- make validate Success! The configuration is valid. validate: 9 Stack(s) valid. rc 0 ansible-playbook --syntax-check site.yml playbook: site.yml (from qbittorrent/service) rc 0 ansible-playbook --syntax-check verify.yml playbook: verify.yml (from qbittorrent/service) rc 0 git status --porcelain (clean — `tofu init` left no lock file behind) ``` `pr-checks / check (pull_request)` at `73fc945`: **success** in 25 s — the same two commands this run drove locally. ## Left alone, and named - **The `slskd` and `soularr` tasks still say "checked before anything is written"** (`slskd/service/roles/slskd/tasks/main.yml:17`, `…/soularr/tasks/main.yml:6`). Same shape, different role, and outside this PR — named in the last two rounds as a sibling's, not fixed here. - **`verify.yml`'s failed-`slurp` nit** (`:71-82`): unchanged, named, not charged. - **The qbittorrent WebUI row names `pit,hermes`, not `runner`.** That is the second clearing of round 1 and still the right one: `automation-runner.hcl` carries no `services/qbittorrent/webui` path, and a row naming an actor the store refuses refuses that actor's whole fetch. `docs/deploy.md` item 9 now carries the grant beside the four slskd ones. - **Nothing in the merge resolution changes 110's own behaviour** — no task, template or check in `qbittorrent/` was touched except the two wording sites above. No decision is needed from you; the branch is ready for the next round.
Member

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

**Review started** (round 1/5) on 73fc94554458cf1553b1039bc76f181915251b94 — reading the diff now.
bot-minos approved these changes 2026-12-02 20:06:03 +00:00
bot-minos left a comment

olympus/infra-media#7 · reviewed head 73fc945 · round 4/5 — the thread's review count plus one; the dispatch's round 1/5 is its sign-on counter, which restarts whenever a review/* label is moved by hand.

Recommendation: merge

Spec. No linked issue; the PR body is the spec, as in rounds 1–3, and its artifact answer cites the board's decision. Standards. The tree carries no AGENTS.md/CONTRIBUTING.md and no README §Conventions — the rules this review applies are the README's and docs/deploy.md's prose, the sibling roles, env.map/.env.example, and olympus/workshop docs/adr/ at origin/main (0011 and 0012 read this round; neither is touched by the delta).

Delta. git merge-base --is-ancestor 17fa021 73fc945 → true: a stacked round. git diff 17fa021 73fc945 is 7 files, +75/−36, in two parts. The merge b66c9b0 brings main's e4b1c1b (148 slskd, one commit) and resolves five files; the fix 73fc945 is 2 files, +8/−7. The base's commit is not charged: the head's slskd/ tree is byte-identical to main's (git diff --stat e4b1c1b HEAD -- slskd/ empty), so those three files are main's to answer for.

Prior findings, re-driven

# Round 3 What I drove at 73fc945 Status
1 ADVISORY — "before anything is written" was true of the role and false of the play four sites scoped: tasks/main.yml:19 (comment), :27 (task name), :35 (This role has written nothing.), docs/service-qbittorrent.md:34-36 (now names the journal drop-in); the PR body was patched to the same word. Census at head: before anything is written survives only in slskd/…/tasks/main.yml:17 and slskd/…/soularr/tasks/main.yml:6, outside this PR. Driven, check mode, this host: the play's own role order with no credential reports ok=5 changed=2 failed=1, the two changes both journal's, then the refusal; the role alone reports ok=3 changed=0 failed=1, so nothing of the role's is written before it fires. resolved

Rounds 1 and 2's clearings are still in the tree and unchanged by this delta: tasks/main.yml:95 (when: not ansible_check_mode), the removal at :198 after the unit at :172, README.md:39-42 (the no-op sentence scoped to 110), and the seed at :118-152 (base64 on stdin, no password in argv).

Spec

No findings. The body's claims hold at the head: HOSTS gains qbittorrent (Makefile:35) with its /8090 check (:76-77), env.map gains the guest record and the WebUI account (30 names, all declared), .env.example the four names, README the ninth row and the no-op exception, and the package pin is reproduced below. The first Converge still installs the package, moves ExecStart, removes /opt/qbittorrent only after the unit names the package, and says so in both the page and the body.

Standards

No findings. The merge resolution is a union, checked line by line: every line the branch added to the five shared files is present at the head verbatim, except the four runner grants on the slskd service rows — main's reviewed copy, taken whole, and env.map:80-88 carries the comment saying why. Nothing main carries is missing: the eight lines git diff e4b1c1b HEAD removes are exactly the counts this change rewrites (HOSTS, Eight Guests, the no-op sentence, the walk list, item 1, item 9).

Verified

  • refs/pull/7/head resolves to 73fc94554458cf1553b1039bc76f181915251b94, before the probes and again after them.
  • merge-base --is-ancestor 17fa021 73fc945 → true; the two commits above and their --stats.
  • git diff --stat e4b1c1b HEAD -- slskd/ → empty; git diff --name-status e4b1c1b HEAD → only the qbittorrent/ tree and the five shared files.
  • git merge-tree --write-tree --name-only origin/main HEAD → rc 0, tree f498a88 — the head's own; main's tip is still e4b1c1b.
  • make check → ok env.map: 30 names, all declared in .env.example, rc 0. make validate → validate: 9 Stack(s) valid., rc 0; the tree is left clean.
  • ansible-playbook --syntax-check on site.yml and verify.yml → both clean.
  • The advisory's drive: ok=5 changed=2 failed=1 on the play's role order with no credential (both changes journal's), ok=3 changed=0 failed=1 on the role alone.
  • Debian pool re-fetched this round: qbittorrent-nox_5.1.0-2_amd64.deb sha256 a1e9436e…5bc10af02a; its /usr/bin/qbittorrent-nox hashes to 81f62892a20b268331a10356178b28f8b338f0fb6aaa647e944f8207d310318d — verify.yml:12's pin exactly.
  • CI at 73fc945: pr-checks / check (pull_request) success in 25 s (run 33).
  • No literal secret in the delta's added lines; the four names .env.example gains are empty placeholders.

Could not verify

  • pct config 110 and the live qBittorrent.conf (address, privileged flag, nesting, tags, MAC, mount source string), and "110 is not in /pool/prod": no PVE credential and no SSH into the Guest from this profile.

Named, not charged

  • Removing /opt/qbittorrent inside the Converge: as in rounds 1–3, ADR-0011's check is the plan judge, the repository's own practice removes an install tree inside a service converge (roles/servarr/tasks/main.yml), and the board chose the artifact. Unchanged by this delta.
  • verify.yml:71-82: a failed slurp leaves content undefined, so the assert raises instead of printing fail_msg. Named since round 1, unchanged here.
  • .env.example:21 already read "nine of them today" on main with eight hosts; adding 110 makes the line true. A pre-existing line the delta does not touch.
  • docs/service-qbittorrent.md:35-36's "writes its drop-in ahead of it, on any run" reads as the journal role's ordering (true on every run); its copy is idempotent, so a repeat run writes nothing. Considered and not charged — the sentence is about order, and no behaviour turns on it.

Summary: Standards — 0 findings. Spec — 0 findings. No blocker stands and no advisory is carried, so the recommendation is merge, and the state and the label follow it.

<!-- minos review-loop: repo=olympus/infra-media pr=7 head=73fc94554458cf1553b1039bc76f181915251b94 round=4/5 axes=standards,spec --> **olympus/infra-media#7** · reviewed head `73fc945` · round **4/5** — the thread's review count plus one; the dispatch's `round 1/5` is its sign-on counter, which restarts whenever a `review/*` label is moved by hand. Recommendation: merge **Spec.** No linked issue; the PR body is the spec, as in rounds 1–3, and its artifact answer cites the board's decision. **Standards.** The tree carries no `AGENTS.md`/`CONTRIBUTING.md` and no `README` §Conventions — the rules this review applies are the README's and `docs/deploy.md`'s prose, the sibling roles, `env.map`/`.env.example`, and `olympus/workshop` `docs/adr/` at `origin/main` (0011 and 0012 read this round; neither is touched by the delta). **Delta.** `git merge-base --is-ancestor 17fa021 73fc945` → true: a stacked round. `git diff 17fa021 73fc945` is 7 files, +75/−36, in two parts. The merge `b66c9b0` brings `main`'s `e4b1c1b` (148 slskd, one commit) and resolves five files; the fix `73fc945` is 2 files, +8/−7. The base's commit is not charged: the head's `slskd/` tree is byte-identical to `main`'s (`git diff --stat e4b1c1b HEAD -- slskd/` empty), so those three files are `main`'s to answer for. ## Prior findings, re-driven | # | Round 3 | What I drove at `73fc945` | Status | | --- | --- | --- | --- | | 1 | ADVISORY — "before anything is written" was true of the role and false of the play | four sites scoped: `tasks/main.yml:19` (comment), `:27` (task name), `:35` (`This role has written nothing.`), `docs/service-qbittorrent.md:34-36` (now names the `journal` drop-in); the PR body was patched to the same word. Census at head: `before anything is written` survives only in `slskd/…/tasks/main.yml:17` and `slskd/…/soularr/tasks/main.yml:6`, outside this PR. Driven, check mode, this host: the play's own role order with no credential reports `ok=5 changed=2 failed=1`, the two changes both `journal`'s, then the refusal; the role alone reports `ok=3 changed=0 failed=1`, so nothing of the role's is written before it fires. | resolved | Rounds 1 and 2's clearings are still in the tree and unchanged by this delta: `tasks/main.yml:95` (`when: not ansible_check_mode`), the removal at `:198` after the unit at `:172`, `README.md:39-42` (the no-op sentence scoped to 110), and the seed at `:118-152` (base64 on `stdin`, no password in `argv`). ## Spec No findings. The body's claims hold at the head: `HOSTS` gains `qbittorrent` (`Makefile:35`) with its `/8090` check (`:76-77`), `env.map` gains the guest record and the WebUI account (30 names, all declared), `.env.example` the four names, README the ninth row and the no-op exception, and the package pin is reproduced below. The first Converge still installs the package, moves `ExecStart`, removes `/opt/qbittorrent` only after the unit names the package, and says so in both the page and the body. ## Standards No findings. The merge resolution is a union, checked line by line: every line the branch added to the five shared files is present at the head verbatim, except the four `runner` grants on the slskd service rows — `main`'s reviewed copy, taken whole, and `env.map:80-88` carries the comment saying why. Nothing `main` carries is missing: the eight lines `git diff e4b1c1b HEAD` removes are exactly the counts this change rewrites (`HOSTS`, `Eight Guests`, the no-op sentence, the walk list, item 1, item 9). ## Verified - `refs/pull/7/head` resolves to `73fc94554458cf1553b1039bc76f181915251b94`, before the probes and again after them. - `merge-base --is-ancestor 17fa021 73fc945` → true; the two commits above and their `--stat`s. - `git diff --stat e4b1c1b HEAD -- slskd/` → empty; `git diff --name-status e4b1c1b HEAD` → only the `qbittorrent/` tree and the five shared files. - `git merge-tree --write-tree --name-only origin/main HEAD` → rc 0, tree `f498a88` — the head's own; `main`'s tip is still `e4b1c1b`. - `make check` → `ok env.map: 30 names, all declared in .env.example`, rc 0. `make validate` → `validate: 9 Stack(s) valid.`, rc 0; the tree is left clean. - `ansible-playbook --syntax-check` on `site.yml` and `verify.yml` → both clean. - The advisory's drive: `ok=5 changed=2 failed=1` on the play's role order with no credential (both changes `journal`'s), `ok=3 changed=0 failed=1` on the role alone. - Debian pool re-fetched this round: `qbittorrent-nox_5.1.0-2_amd64.deb` sha256 `a1e9436e…5bc10af02a`; its `/usr/bin/qbittorrent-nox` hashes to `81f62892a20b268331a10356178b28f8b338f0fb6aaa647e944f8207d310318d` — `verify.yml:12`'s pin exactly. - CI at `73fc945`: `pr-checks / check (pull_request)` success in 25 s (run 33). - No literal secret in the delta's added lines; the four names `.env.example` gains are empty placeholders. ## Could not verify - `pct config 110` and the live `qBittorrent.conf` (address, privileged flag, nesting, tags, MAC, mount source string), and "110 is not in `/pool/prod`": no PVE credential and no SSH into the Guest from this profile. ## Named, not charged - Removing `/opt/qbittorrent` inside the Converge: as in rounds 1–3, ADR-0011's check is the plan judge, the repository's own practice removes an install tree inside a service converge (`roles/servarr/tasks/main.yml`), and the board chose the artifact. Unchanged by this delta. - `verify.yml:71-82`: a failed `slurp` leaves `content` undefined, so the assert raises instead of printing `fail_msg`. Named since round 1, unchanged here. - `.env.example:21` already read "nine of them today" on `main` with eight hosts; adding 110 makes the line true. A pre-existing line the delta does not touch. - `docs/service-qbittorrent.md:35-36`'s "writes its drop-in ahead of it, on any run" reads as the journal role's ordering (true on every run); its `copy` is idempotent, so a repeat run writes nothing. Considered and not charged — the sentence is about order, and no behaviour turns on it. **Summary:** Standards — 0 findings. Spec — 0 findings. No blocker stands and no advisory is carried, so the recommendation is merge, and the state and the label follow it.
pit merged commit a9407a7f3d into main 2026-12-02 20:16:57 +00:00
pit deleted branch wave1/110-qbittorrent 2026-12-02 20:16:57 +00:00
bot-efesto referenced this pull request from a commit 2026-12-02 20:19:52 +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-media!7
No description provided.