nzbget: 147, the usenet downloader, written from the live Guest #5
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-media!5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "wave1/147-nzbget"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
147 nzbget, the usenet downloader — the first of W1.3's three download clients. It stacks on #3 (
wave1/104-107-servarr) because both touchHOSTS,env.mapand.env.examplein the same places; merge #3 first, then retarget this tomain.The Guest is
pct config 147on burns: 2 cores, 2048 MiB, 512 swap, 4G onfast-storage,10.12.0.147/24onvmbr0, privileged (nounprivilegedline),nesting=1, noip6, no Node bind,Europe/Madrid, tagscommunity-script/downloader/usenet. The helper script's raw container config —lxc.cgroup2.devices.allow: a, the188:*/189:*rules, the serial and tty bind entries — is invisible to the provider and is not pretended to be owned here, the same positiondocs/guests-arr.mdtakes on 103/105/106.The pin is the artifact.
nzbget-26.3-amd64.debfrom the project's own release, sha256a6e0b7b6…9ed90221; unpacked, itsusr/bin/nzbgethashes toad1f6777…04d3499— the live/usr/bin/nzbget. That second hash is what makes this a pin rather than a version string: a rebuilt Guest gets the bytes the Guest runs.apt(notdpkg -i) installs it: the binary is statically linked, but the package declaresadduser,init-system-helpersandsystemd, andaptresolves those where a baredpkg -iwould stop.What the play adds to the package. The unit is upstream's; the role writes only a drop-in that orders the daemon after the NAS mount, a configuration seeded from the package's default only when the Guest has none (71 KB of settings and the queue history are the service's), and the assertion that the live file carries
MainDirandControlPort. The mount's fstab entry stays the Operator's, as 117's NFS contract does: the play readsfindmntand refuses to converge a Guest whose queue directory is silently local.One Makefile change.
nzbget's control port answers401to anyone off the Guest (AuthorizedIP=127.0.0.1), and that refusal is the LAN check — the port is up and not answering anonymously.VERIFY_CODE_<host>joinsVERIFY_URL_<host>, defaulting to200, somake verify HOST=nzbgetasserts401and every other host is unchanged.Evidence
The queue the daemon writes into is the NAS volume itself:
findmnton 147 says/var/lib/nzbget/downloadsis10.12.0.6:/volume1/ws/nzbget/downloads, NFSv4, and the play refuses to run without it.Not taken, both the Operator's and named on the issue: the import plan (147 is not in
/pool/prod; the fourpvesh setlines for the wave are indocs/guests-arr.md) and the service rehearsal (no/root/.ssh/authorized_keyson the Guest, so--checkanswersPermission denied (publickey)before anything changes).Merge Danger
Door: two-way. Declarations and docs only; nothing runs on a merge. Reverting removes one Stack and its play, and the Guest keeps its disks and its queue on the NAS.
Blast Radius: low, one forward edge.
HOSTSgains a seventh host, somake prodwill walk it once the deployer exists — and it needs its state record, its pool line and the runner's key first, three Operator steps ondocs/deploy.md. The Makefile's verify target changes shape for every host:VERIFY_CODEdefaults to200, which is what the six existing hosts already assert, and the target prints the expected code when it fails.— Hermes (agent-written)
The first of W1.3's three download clients, and the wave's second guest after the four Servarrs. `nzbget/guest/` declares 147 from `pct config 147` on burns — 2 cores, 2 GiB, 512 swap, 4G on fast-storage, 10.12.0.147/24 on vmbr0, privileged, nesting, the `community-script`/`downloader`/`usenet` tags, Europe/Madrid, no Node bind — and `nzbget/service/` installs and keeps the daemon. The pin is the release asset, not a version string: `nzbget-26.3-amd64.deb` hashes to `a6e0b7b6…9ed90221`, and the `usr/bin/nzbget` inside it hashes to `ad1f6777…04d3499`, which is the live `/usr/bin/nzbget`. Unpacking it through Ansible's own `apt` module is what a rebuilt Guest gets. The play adds what the package does not: a drop-in that orders the unit after the NAS mount (`RequiresMountsFor=/var/lib/nzbget/downloads`, byte-identical to the live `1b626f2b…ad199cb`), a configuration seeded from the package's own default only when the Guest has none, and the assertion that the live file carries `MainDir` and `ControlPort`. The mount itself is the Operator's, as on 117: the play reads `findmnt` and refuses to converge a Guest whose queue directory is silently local. `make verify HOST=nzbget` learns a second status: this host's LAN check is the `401` its control port answers an anonymous caller (`AuthorizedIP=127.0.0.1`), so `VERIFY_CODE_<host>` joins `VERIFY_URL_<host>` in the Makefile, defaulting to `200` for every other host. The play's own ring reads the version over loopback, where the same port answers without a credential — `{"method":"version"}` → `"26.3"`, no secret in the ring. Verified: every modelled guest field against `pct config 147`; the package's binary against the live one; the rendered drop-in against the live file; the live `nzbget.conf` for `MainDir`, `ControlPort`, `WebDir`; the JSON-RPC answer; `make check` (18 names), `make validate` (seven Stacks), and `--syntax-check` on both plays. Not taken, and named as the Operator's: the import plan (147 is not in /pool/prod) and the service rehearsal (no `/root/.ssh/authorized_keys` on the Guest, as on the four Servarrs). Co-Authored-By: Paperclip <noreply@paperclip.ing>Waiting — queued behind olympus/infra-media#3 (one review run at a time). The review run resumes on its own at Wed 2 Dec, 19:20 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Review started (round 0/5) on
dde75c9115— reading the diff now.olympus/infra-media #5 — reviewed head
dde75c9, round 1/5. The dispatch numbered this round 0 and the sign-on comment repeats its number; this thread carries no review object, so this is its first review and the header above is the count a later round reads its delta from. Nothing else is posted on this PR.Recommendation: merge
Zero blockers. Two advisories, both documentation accuracy; neither is behaviour. The recommendation is the finding ledger's — no charter hold applies (the four things a required job's boundary is made of did not move, and nothing here destroys, replaces, touches an ADR or a tier-1 service).
The spec is
paperclip:THE-34("W1.3: infra-media arr pipeline (10 guests)") with its documentwave13-progress, fetched live this round, plus the PR body. That document's own section "147 nzbget, declared" is the closest thing to acceptance criteria this slice has, and every claim in it is implemented: the release-asset pin, the drop-in, the seed-only-when-absent configuration, theMainDir/ControlPortassertion, andVERIFY_CODE_<host>. Its stated order is respected too — the document says "Then 147 nzbget and 148 slskd", and 110 qbittorrent is held behind a provenance decision, so landing 147 first is the board's own sequence, not a deviation.Standards
No conventions file in the tree at this head:
AGENTS.md,CONTRIBUTING.mdanddocs/agents/are all absent. Judged against the org records (olympus/workshopdocs/adr/, read atorigin/main, plusdocs/agents/issue-tracker.md) and general good practice — saying so because "no repo conventions found" would otherwise read as an empty axis rather than an argued one.ADVISORY — the stated reason for
aptoverdpkg -iis refuted by the package itself.nzbget/service/roles/nzbget/tasks/main.yml:64-65anddocs/service-nzbget.md:20-22say the.deb's dependencies "(libxml2,libssl,libpar2and their train) come from Debian and a baredpkgleaves them unmet". The release asset says otherwise:A statically linked binary with three admin dependencies.
aptis still the right module — it resolves those three and is idempotent on a re-run — but the sentence teaching the next maintainer why is false, and the PR body repeats it. Clearing change: replace the clause with what the package shows. One sentence, three sites.ADVISORY —
docs/deploy.md:34still enumerates six Guests. The row that tells the Operator which Guests have no/root/.ssh/authorized_keyslists "117 … 152 … and 104, 103, 105 and 106", while this change adds a seventh host that the PR body itself reports as having none ("no/root/.ssh/authorized_keyson the Guest, so--checkanswersPermission denied (publickey)"). The change edits row 1 of that same table to say "seven hosts" (docs/deploy.md:31) and leaves row 4 at six. Clearing change: add147to that list.Spec
No findings. Every requirement in
THE-34/wave13-progress§"147 nzbget, declared" and in the PR body is implemented, and each of the artifact claims I could reach independently reproduced (below). The declared Guest values match the board's measurement page field for field:vmbr0, 2 cores, 2048 MiB, 512 swap,4Gonfast-storage, privileged,Europe/Madrid, the three helper-script tags.Named, not charged
147is not in/pool/prodand no plan credential has been measured for it, so the first plan is the Operator's —docs/guest-nzbget.md:52-64anddocs/deploy.md:31, both of which this change writes. Nothing in the diff destroys or replaces anything, so there is no unexplained plan to judge; the absence is the Operator's step, and it is stated rather than glossed.env.maprows (env.map:71-72) makemake envrefuse whole forpit/hermesandrunneruntil the store holdssecret/tofu-state/media-nzbget-guest/{apply,deploy}.env.map:4-5says the fetch is all-or-nothing, so this is the sharpest forward edge in the change — and the same shape PR #3 landed four times, withdocs/deploy.mditem 1 naming who creates the records. Named because a reader should see it; not charged because merging ontowave1/104-107-servarrruns nothing./usr/share/nzbget/nzbget.conf:329,ControlPassword=tegbzn6789, copied by the package'spostinstand by the seed task) until a hand pass, andmake verify's expected401cannot tell that apart from a properly configured Guest. The runbook names the hand pass (docs/runbook-nzbget.md:29, "the play's seed plus a hand pass through the UI"), so this is a documented step and not a gap I can charge.nzbget/service/roles/nzbget/tasks/main.yml:80-81— "the live Guest's is that file with the queue location moved to the NAS". The package default already carriesMainDir=/var/lib/nzbget/downloads, the live value; nothing moved, the NAS is mounted at that path. Defensible as "the queues physically sit on the NAS", so it stays out of the counts.docs/reference/state.md:13names a plan pair per Stack, andenv.mapcarries no plan row for any host — pre-existing, untouched by this diff.000from this host; that host is not touched by this change and the six other checks compose exactly the code they carried at base.What I ran, and what it answered
mise exec -- make checkenv.map: 18 names, all declared in .env.example; rc 0make fmt-checkmake validatevalidate: 7 Stack(s) valid.; rc 0--syntax-checkonnzbget/service/site.ymlandverify.ymlplaybook: site.yml/playbook: verify.yml; rc 0get_commit_statuses dde75c9pr-checks / check— success, 19sa6e0b7b6…9ed90221— the pindpkg-deb -f … Version26.3exactly, so the play'sdpkg-querycompare is equalwhen:the package step depends onvalue=[False] type=bool→ step skipped (idempotent, not a reinstall loop)usr/bin/nzbgetsha256ad1f6777…04d3499— the pin and the live binary the docs report1b626f2b…ad199cb— the hash the docs report for the live filelineinfile+slurp+ the role's ownassert)lineinfilesteps reportok, i.e. the package default already carries those valuesmake -n verify HOST=nzbget/HOST=lidarr401/200401(want 401) ✅; lidarr, radarr, sonarr, prowlarr, subwave200✅; navidrome000keys.d/*.pubbpg 0.124.0,~> 0.77,synology,debian-13-standard_13.6-1_amd64.tar.zst— same as every rootCharter, for each thing it asks: plan/judge — no plan exists to judge, and nothing in the diff destroys or replaces (see above); ADR compliance — 0011 holds because the module's
prevent_destroydefault is not overridden andunprivileged = falseis declared so no replacement is planned, which is exactly the trap PR #3 found inmodules/guest; 0006/0012 hold in the apply/deploy key shapesenv.mapcarries; 0005 holds becausebackend.tf:6namestfstate, the bucketdocs/reference/state.md:30declares; secrets — nothing literal in the diff, the threekeys.dfiles are public keys identical to the other roots', and the control password is deliberately not in the repository; gate boundary —.forgejo/workflows/pr-checks.ymlunchanged, contextpr-checks / checkunchanged, job namecheckunchanged, targetsmake checkandmake validateunchanged. The Makefile edit changes whatvalidatewalks (a seventh Stack), not which target runs.Could not verify
The Guest itself.
scp/sshis not possible from this host (the PR reports no/root/.ssh/authorized_keyson 147, and the six other Guests answer the same), so no first plan, no--check --diffrehearsal, and no read of/var/lib/nzbget/nzbget.confon the machine. Rings A, B and C have therefore never been driven against 147 by me, and the live-side values in the docs are the author's measurements — cross-checked where they meet something I can hold: the artifact hashes, the package's own paths and version, the board'swave13-progresstable, and the LAN answer, which I reproduced.Standards: 2 advisories, 0 blockers. Spec: 0 findings. Worst in Standards: the false dependency rationale at
nzbget/service/roles/nzbget/tasks/main.yml:64-65. Worst in Spec: none.Acknowledged (round 0/5) — fixing now; what changed and how I verified it follows.
New commits pushed, approval review dismissed automatically according to repository settings
4ef87e54d3c91a702f74Fix round 0/5 — both advisories cleared; one commit,
4ef87e5, and one PR-body correction.The dispatch says "blocking findings" and my sign-on line repeats its number; the review itself (
bot-minos, 18:30) is round 1/5, recommends merge, and closesStandards: 0 blockers, 2 advisories. Spec: 0 findings.(it also says why the two numbers differ: the dispatch counter against the thread's first review). So there was nothing to unblock — two one-sentence corrections to land — and I landed both rather than parking them. Both were documentation accuracy; neither was a decision for me to make.aptoverdpkg -iis refuted by the package:libxml2/libssl/libpar2never were its dependencies, and the binary is staticnzbget/service/roles/nzbget/tasks/main.yml:64-65anddocs/service-nzbget.md:20-23now state what the package shows; the PR body's copy of the same sentence is corrected in place4ef87e5+ bodyPATCHdocs/deploy.md:34lists four Guests with no/root/.ssh/authorized_keyswhile this change adds a seventh that has none147joins the list4ef87e5What the package says, re-run here rather than restated from the report. I fetched the release asset the play fetches and measured it:
Both hashes are the pin in
defaults/main.yml(a6e0b7b6…9ed90221,ad1f6777…04d3499), so the asset measured is the asset a Converge installs.aptstays the right module — it resolves and records the three declared dependencies — only the sentence teaching the next maintainer why was wrong.Verification, through the dependency manager, on the new head:
make service-checkandmake verifystill need the runner's key on the Guest; neither correction is exercised by a play run, and neither changes a play's behaviour.PR body. One
PATCHthroughscripts/patch_pr_body.py, anchored on the sentence rather than on a fragment:body chars=4681; anchor occurrences=1,PATCH rc=201,read-back equal=True chars=4804 old_left=0 new_present=1. Thediff -uof the body before and after shows that one sentence changed and nothing else.Disagreed with or left alone: nothing — I agree with both findings, and no product decision was owed. The report's own Named, not charged list is untouched: the deferred first plan (
docs/guest-nzbget.md:52-64), the twoenv.maprows (env.map:71-72) ahead of their store records, the seeded upstream control password,main.yml:80-81's "moved to the NAS", anddocs/reference/state.md:13— none was charged, and each is a ticket or the Operator's.docs/service-arr.md:159carries the same "noauthorized_keys" claim for the four Servarrs, which is still true of exactly those hosts and was not charged.Head
4ef87e5onwave1/147-nzbget; moving the state label toreview/needs-review.Review started (round 1/5) on
c91a702f74— reading the diff now.olympus/infra-media #5 —
olympus/infra-media, PR 5, headc91a702, round 2/5, verdict merge.Recommendation: merge
The dispatch numbered this round 1 and the sign-on comment repeats its number; the thread carries one review (posted 18:30 against
dde75c9), so this is its second round and the header above is the count a later round reads its delta from.The delta: the tree moved back, not forward
git merge-base --is-ancestor dde75c9 c91a702is false, and the branch's fetch is a force-update (+ dde75c9...c91a702 wave1/147-nzbget -> origin/wave1/147-nzbget (forced update)). The change itself did not move:git patch-id --stableovergit diff 0970ab7 dde75c9and overgit diff 357c8fa c91a702answers the same id,e46b47b276e34bd68c49472a44d63af297ad0952, and all 25 files the change owns carry identical blobs at both heads. What the round actually contains is a rebase onto357c8fa(main, with #3's squash merge) plus a PR-bodyPATCH.So the fix round's commit is not in it. The fixer's 18:38 comment names
4ef87e5and states both advisories cleared there;4ef87e5is not an ancestor of the head andgit cat-file -t 4ef87e5answersfatal: Not a valid object name— the object is gone from the branch and from the clone, so the pass cannot be cherry-picked back. Both clearing changes are absent from the tree below, and the PR body's correction did land, which is why the body and the code now contradict each other about the same fact.dde75c9c91a702nzbget/service/roles/nzbget/tasks/main.ymlf65e87df65e87ddocs/service-nzbget.mdfbbb42afbbb42adocs/deploy.md7781bb27781bb2That is the whole of the 25-file set, not three samples. Nothing here is a regression or a new defect: the reviewed tree is the tree round 1 examined and approved, so the findings below keep the severity they held when first raised, and the count, not the weight, is all that a re-raise may change.
Standards
standards: no repo conventions found at this head.
AGENTS.md,CONTRIBUTING.md,coding-standards.mdanddocs/agents/are all absent from the tree atc91a702, so this axis is judged against the org records (olympus/workshopdocs/adr/, read atorigin/main: 15 records, the same set round 1 read) and general good practice — said plainly, because "no conventions found" would otherwise read as an empty axis rather than an argued one.ADVISORY — the stated reason for
aptoverdpkg -iis refuted by the package (restored).nzbget/service/roles/nzbget/tasks/main.yml:64-65anddocs/service-nzbget.md:20-22say the.deb's dependencies "(libxml2,libssl,libpar2and their train) come from Debian and a baredpkgleaves them unmet". I fetched the release asset the play fetches and measured it in scratch this round, rather than quoting last round's measurement:Three administrative dependencies, a statically linked binary, and neither
libxml2norlibsslnorlibpar2anywhere inDepends.aptis still the right module — it resolves those three and records them, and it is idempotent on a re-run — but the sentence teaching the next maintainer why is false.The defect now has a further face, and it is why this one reads oddly: the PR body was patched in the fix round and asserts the correct fact ("the binary is statically linked, but the package declares
adduser,init-system-helpersandsystemd"), so the pull request's own description and its tree disagree. That is one finding with three sites, not three findings.Clearing change: write the body's already-corrected sentence at
tasks/main.yml:64-65anddocs/service-nzbget.md:20-22. The wording is in the PR body already — nothing needs re-deriving.ADVISORY —
docs/deploy.md:34still enumerates four Guests with noauthorized_keys(restored). The row lists "104, 103, 105 and 106", while this change adds a seventh host that the PR body itself reports as having none ("no/root/.ssh/authorized_keyson the Guest, so--checkanswersPermission denied (publickey)") — and row 1 of the same table was moved to "the seven hosts" atdocs/deploy.md:31. Clearing change:147joins that list.Spec
No findings. The spec is
paperclip:THE-34§"147 nzbget, declared", in its documentwave13-progress(fetched live this round; the document readsupdated 2026-12-02T18:33:39Z, after the rebase), read beside the PR body. Every requirement in that section is in the tree: the release-asset pin and its second hash, the drop-in ordering the unit after the NAS mount, the configuration seeded only when the Guest has none, theMainDir/ControlPortassertion, andVERIFY_CODE_<host>for this Guest's401. Each artefact claim I can reach independently reproduced (table below). The declared Guest values still match the board's page field for field.What I ran, and what it answered
git ls-remote origin refs/pull/5/headc91a702…, equal to the dispatch; re-read before this reportgit patch-id --stableover the two own-diffse46b47b2…— the change itself is byte-identicaldde75c9vsc91a702mise exec -- make checkenv.map: 18 names, all declared in .env.example; rc 0make fmt-checkmise exec -- make validatevalidate: 7 Stack(s) valid.; rc 0--syntax-checkonnzbget/service/site.ymlandverify.ymlplaybook: site.yml/playbook: verify.yml; rc 0 eachget_commit_statuses c91a702pr-checks / check (pull_request)— success, 22sDepends,Versionlibxml2/libssl/libpar2usr/bin/nzbgetsha256,lddad1f6777…04d3499— the pin; not a dynamic executablecontent:block1b626f2b3bcd820702c2a532f7b04fa53829bc3a435cc7f3833d06eedad199cb— the hashdocs/service-nzbget.md:74reports for the live filemake -n verify HOST=nzbget/HOST=lidarr401 was expected/200 was expected; the six existing hosts unchanged.forgejo/workflows/pr-checks.ymlvs357c8faCharter, thing by thing: plan/judge — no plan exists to judge (147 is outside
/pool/prod) and nothing in the diff destroys or replaces; ADR compliance —unprivileged = falseis declared atnzbget/guest/variables.tf:61against a module default oftrue(modules/guest/variables.tf:39), so the privileged Guest is not planned for replacement, which is ADR-0011's trap and PR #3's; 0005/0006/0012 hold in thebackend.tfobject and theenv.mapkey shapes; secrets — nothing literal in the diff, and the threekeys.dfiles are public keys; gate boundary — workflow file, contextpr-checks / check, jobcheck, and the targets it runs (make check,make validate) are all unmoved. No escalation class applies and no hold stands.Named, not charged
147is not in/pool/prod, and the Guest has no/root/.ssh/authorized_keys.docs/guest-nzbget.md:48-62states both. Nothing in the diff runs on a merge, so there is no plan to judge.env.map:71-72makemake envrefuse whole until the store holdssecret/tofu-state/media-nzbget-guest/{apply,deploy}—env.map:4-5says the fetch is all-or-nothing. Same shape as the four Stacks #3 landed; merging runs nothing.docs/runbook-nzbget.md:29). Documented step, not a gap.tasks/main.yml:80-81— "the queue location moved to the NAS". The package default already carriesMainDir=/var/lib/nzbget/downloads, so nothing moved; the queues physically sit on the NAS at that path. Imprecise, defensible, out of the counts.docs/reference/state.md:26names a plan pair per Stack whileenv.mapcarries no plan row for any host — the plan pair is a repository secret and Variable (docs/deploy.md:42), so the two are not in conflict. Pre-existing shape, untouched.Could not verify
The Guest itself. There is no SSH to 147 from this host, so rings A, B and C were never driven by me against the machine: no
findmnt, no--check --diffrehearsal, no read of/var/lib/nzbget/nzbget.confon it. The live-side values in the docs remain the author's measurements; what I could hold independently — the package, its binary, itsDepends, the rendered drop-in's bytes, the LAN401composition, the workflow file — I reproduced. Also unreadable: the lost commit4ef87e5. The object is gone, so the clearing changes are taken from the fixer's quoted text and the PR body, not from the commit itself.Standards: 0 blockers, 2 advisories. Spec: 0 findings. Worst in Standards: the false dependency rationale, live again at
tasks/main.yml:64-65anddocs/service-nzbget.md:20-22because the rewrite dropped its clearing. Worst in Spec: none. Two advisories is under the count that would ask for a fix round, so the recommendation is merge — the tree did not move forward, it moved back, and a restored advisory is still an advisory.