subwave: 152 SUB/WAVE, written from the live Guest #2
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!2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "wave1/152-subwave"
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
152 SUB/WAVE, written from the live Guest: the second host in
infra-media, and the first Docker one.The Guest's values are
pct config 152: 4 cores, 6144 MiB, 2048 swap, 32 GiB onfast-storage,10.12.0.152/24onvmbr1, gateway10.12.0.1, nameserver10.12.0.110,nesting=1,keyctl=1, onboot,Europe/Madrid, and no mount — the station reaches 117 navidrome over the LAN.The service is the upstream stack, not a fork of it: caddy on
7700, broadcast (Icecast + Liquidsoap), controller, web, the heavy analyzer atmem_limit 4g, and the read-only Docker socket proxy. Docker comes from Docker's apt repository at the five versionsdpkg-queryreports on 152.The Makefile change is also a fix: the pilot's deploy Targets referenced
GUEST_DIR,SERVICE_DIR,PLAYBOOKandINVENTORY, and the file never defined them, somake guest-planwouldcdinto an empty path. They are per-HOSTnow,prodwalksHOSTSin order, and a bare deploy Target refuses instead of silently acting on navidrome.Evidence
pct config 152is the only declaration, and a rebuild is an archaeology exercise.After: every value in
subwave/guest/is a line of that output, recorded with its reading indocs/guest-subwave.md; a field-by-field comparison matched all 16 attributes the config reports.Two byte comparisons, not assertions:
/opt/subwave/docker-compose.yml(committed asfiles/docker-compose.yml)023e7f99d2fcb7cf8c521893f8428dfda96de618cfcfdc9124ecb573abfee68e/opt/subwave/.env(rendered fromenv.j2with the live values)01abb0dda143a391693fbd77020af41527fa197aad4e0f7405558f962eaaa6c8The six container image IDs are pinned in
verify.yml, so a rebuild that pulls a moved tag reds the check rather than quietly changing the station. The tier-3 restore point exists:vzdump-lxc-152-2026_12_02-05_14_29.tar.zst, 7,041,949,476 bytes onsynology.Two readings I could not take from the agent host, both recorded in
docs/deploy.mdas Operator preconditions rather than claimed here: the import plan (403 /vms/152, VM.Audit— the apply token's ACL names/pool/prod, and 152 is not a member) and the service rehearsal (152 is stopped, and itsauthorized_keysholds the Admin agent's key, not the runner's).Merge Danger
Door: two-way. Merge lands a declaration and its docs; nothing runs. The import is an Operator's act, the deploy waits on the state record and the pool membership, and reverting the branch removes the declaration while the Guest keeps its disk.
Blast Radius: none at merge — the repository has no live consumer, and no CI job in this PR touches a machine. Adding
subwavetoHOSTSmeansmake prodwill include it once the deployer exists; that deploy needs the record, the pool line and the import first, whichdocs/deploy.mdlists anddocs/guest-subwave.mdsequences. The one thing not to do is hand-edit/opt/subwave/.envor the compose file after the store paths exist: the next converge reverts both.The second Guest in infra-media, and the first Docker one. `subwave/guest/` declares 152 on duku from `pct config 152` — 4 cores, 6 GiB, 32 GiB on fast-storage, 10.12.0.152/24 on vmbr1, the LAN resolver, nesting and keyctl, onboot — and `subwave/service/` installs Docker at the packages' versions and runs the upstream compose stack: caddy, broadcast, controller, web, the heavy analyzer and the read-only Docker socket proxy, on port 7700 for NPM's `subwave.thepit.space`. Nothing comes from infra-subwave. The compose file and the `.env` template are byte-identical to the live files (sha256 023e7f99… and 01abb0dd…), the five Docker package versions are the `dpkg-query` answers, and the six container image IDs are pinned in verify.yml. A field-by-field comparison of the guest defaults against `pct config 152` matched all 16 reported attributes. The Makefile gains the second host and the per-host paths the pilot's deploy Targets referenced but never defined — `GUEST_DIR`, `SERVICE_DIR`, `PLAYBOOK`, `INVENTORY` — so `make guest HOST=subwave` and `make service HOST=subwave` are real. `prod` walks `HOSTS` in order, and a bare deploy Target now refuses instead of acting on navidrome by default. The store's public halves (`bao/recipients/{hermes,runner}.role_id`) land here too, because `make env` cannot run without them; they are the same values infra-secrets owns and the sibling repos carry. Not run, because 152 is stopped and outside /pool/prod: the import plan (the Operator's step; docs/guest-subwave.md names the pool line and the record) and the service rehearsal. docs/service-subwave.md says so in its own section. Co-Authored-By: Paperclip <noreply@paperclip.ing>Review started (round 1/5) on
4e1222050c— reading the diff now.olympus/infra-media#2 · head
4e12220· round 1/5 · axes standards, specRecommendation: fix
Round count: the dispatch said 1/5 and the thread carries no earlier review (
list_pull_reviews→ empty), so the two agree at 1. Delta = the whole PR:git diff ae0642c...4e12220, 33 files, +1654/−76, baseae0642c(origin/main= the PR'sbase.sha).Spec source: the PR description — the commit message carries no issue ref, the body links none, and the repository has no tracker convention of its own. Its claims are the contract I judged against.
Standards source:
standards: no repo conventions found— this repository has noAGENTS.md,CONTRIBUTING.mdordocs/agents/. Judged against the org records binding on it (olympus/workshopdocs/adr/at2b96d9a, cited below) and general good practice.Most of what the body claims I could confirm by hand, and the two things it flags as its own fix are real: the pilot's deploy Targets did reference
GUEST_DIR,SERVICE_DIR,PLAYBOOKandINVENTORYwith nothing defining them (git show ae0642c:Makefile), and thebao/recipients/*.role_idfiles are exactly what the vendoredscripts/env.shrefuses without. One thing in the change does not work as it is written, and it is the one that keeps the merge gate honest.Standards
BLOCKER —
Makefile:141(and:151) — the CI plan's head override is wired to nothing.PLAN_GUEST_DIRis added atMakefile:50under the comment atMakefile:47-49: "PLAN_GUEST_DIRis the one a CI plan overrides, so the plan job can point at a pull request's tree while the judge stays this checkout's."plan_judged— the only body behindguest-plan-check— readsGUEST_DIRat:129,:141and:151. Nothing in the tree readsPLAN_GUEST_DIR(grep -rn PLAN_GUEST_DIR→ the comment and the assignment, nothing else).Reproduced at the head:
The override composes an unchanged path.
Why it blocks:
guest-plan-checkis the only thing that could refuse a destroy or replace before a merge (docs/deploy.md:14, workshop ADR-0011). The sibling that already has that job invokes it exactly this way —infra-secrets@7829c8f.forgejo/workflows/plan.ymlends inmise exec -- make guest-plan-check PLAN_GUEST_DIR=head/bao/guest, and itsAGENTS.mddescribes the job as "itsPLAN_GUEST_DIRpointed at the head checked out besidemain's tree". The first plan job this repository gets will be copied from that one. With the knob inert it plansmain's tree, judgesmain's tree, and reports green on the pull request that would replace 152 — the gate green for the wrong reason, which is the one failure a plan check exists to prevent.Smallest clearing change: two words.
cd '$(PLAN_GUEST_DIR)'atMakefile:141and$(PLAN_GUEST_DIR)in the--plan-failureargument atMakefile:151.guest-plan,guestandsnapshotkeepGUEST_DIR— they act on this checkout's Stack, which is what:47-49says the split is for.ADVISORY —
docs/guest-subwave.md:32,:34— both runbook links resolve one level abovedocs/.[runbook-navidrome.md](../runbook-navidrome.md)and[runbook-subwave.md](../runbook-subwave.md)resolve torunbook-*.mdat the repository root; both files live indocs/. A link scan over the six changed/added pages reports these two and nothing else, andmake checkis green with both broken (the repo has no link check).docs/guest.md:30carries the same../— that one is pre-existing, this page's are new. Fix: drop the../on both.ADVISORY —
subwave/service/roles/journal/tasks/main.yml:29— the managed file's header names the other play's path.The copy writes
# Managed by infra-media (navidrome/service/roles/journal).The directory is byte-identical tonavidrome/service/roles/journal(diff -r→ no output), so the header came along with it and now points an operator grepping the Guest at the wrong Stack. Fix:subwave/service/roles/journal.Spec
ADVISORY —
docs/service-subwave.md:35-38— "the first Converge onto 152 changes nothing" is not true of the tree as it stands.The paragraph says the play "renders exactly the twelve the live Guest has — 366 bytes … so the first Converge onto 152 changes nothing". The same page says 20 lines later (
:55-60) that the play refuses "by name rather than writing a file with an empty one", and it is right:subwave/service/roles/subwave/tasks/main.yml:19-31asserts both passwords non-empty before anything is written, andenv.maphas no row forsecret/services/subwave/{admin,navidrome}— so on this tree the first Converge stops at its first task and never reaches the render it is describing.subwave/service/roles/subwave/tasks/main.yml:5-8repeats the claim in the role's own header.This is a prose claim, not a behaviour defect: the missing mint is disclosed in
docs/deploy.mditem 8, in thefail_msg, and on the same page. Fix: qualify:38the wayREADME.mdalready does ("designed to be a no-op") or move the byte comparison to "once the two store paths exist".Named, not charged
.forgejo/workflows/holdspr-checks.ymlonly, so ADR-0011's refusal is not yet a check on this repository. Pre-existing and repo-wide;docs/deploy.mditems 3 and 5–7 track it. This round charges the inert override (above), not the absent job.env.map, somake service HOST=subwavecannot run from a fetched.env. Disclosed indocs/deploy.md:47(item 8), the play'sfail_msganddocs/service-subwave.md:55-60; the only prose that overreaches is the finding above.docs/deploy.md:18names.forgejo/workflows/deploy.yml, which is not in the tree. Byte-identical at the base; the diff does not touch the line.modules/guest/andproviders.tfare shared, unchanged declarations (includinginsecure = true), called by the second root exactly asdocs/agents/domain-repo-template.mdprescribes. Nothing in this diff moves them.make verifycurls/stream.mp3, an endless audio stream, with--max-time 10. Against a local endless-response stub,curl --max-timestill prints%{http_code}=200once the headers arrive, so the check is not defeated by the body never ending. Not charged.Verified
mise exec -- make checkat the head:env-check→ "env.map: 6 names, all declared in .env.example", pin ok;fmt-checkclean, rc 0.subwave/guest:tofu init -input=false -backend=falsethentofu validate→ "Success! The configuration is valid." (provider0.124.0;.terraform.lock.hclis byte-identical to navidrome's).ansible-playbook -i inventories/prod/hosts --syntax-check site.ymlandverify.yml→ both clean.pr-checks / check (pull_request)success (run 4, 12s). The job log showsvalidate: navidrome/guest,validate: subwave/guest,validate: 2 Stack(s) valid.023e7f99…e68e, equal to the body's table, todocs/service-subwave.md:9-11, and to the checksum the role enforces (subwave/service/roles/subwave/defaults/main.yml:20).bao/recipients/{hermes,runner}.role_idare byte-identical toinfra-secrets@7829c8fbao/recipients/, andscripts/env.sh:365is the reader that refuses without them — this PR closes a real gap.pitlogs in byuserpass, so the two approle halves are the complete set.make guestrefuses ("HOST is one of: navidrome subwave");make -n prodwalksnavidrome subwavewithsnapshot → guest → service → verifyeach;make -n verify HOST=subwavecomposeshttp://%s:7700/stream.mp3and the host's own inventory.git show ae0642c:MakefilereadsGUEST_DIR,SERVICE_DIR,PLAYBOOK,INVENTORYand defines none — the body's "also a fix" is true, and the definitions added here are per-HOSTas claimed.Could not verify
pct config 152, the.env's 366 bytes and01abb0dd…(needs the two passwords I do not hold), the six container image IDs, andvzdump-lxc-152-2026_12_02-05_14_29.tar.zst. 152 is stopped and itsauthorized_keysholds the Admin agent's key, as the body says; this round did not reach the machine.subwave/guest: no.env, nosubwavestate record and no provider credential in this session, so no destroy/replace was checked by hand. The declaration is a faithful copy of the pilot's (module inputs, adoption ignores,prevent_destroydefault on) andtofu validateis green, which is as far as this host reaches.make service-check HOST=subwave), which the page itself names as the one unmeasured thing.pr-checks / check, jobcheck, targetscheckandvalidate— and CI is green at the head.Summary. Standards: 3 findings, worst a BLOCKER (the plan judge's head override is inert — the first plan job will plan
mainand pass a PR that would replace 152). Spec: 1 finding, worst an ADVISORY (the "first Converge changes nothing" claim, which the play's own first task refuses). The recommendation is fix on the blocker; the three advisories would have carried it there on their own, and they are advice to batch in the same round.Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
`plan_judged` composed `GUEST_DIR` on both of its reads, so the head override a CI plan passes — `make guest-plan-check PLAN_GUEST_DIR=head/<host>/guest`, the shape `infra-secrets`' plan job uses — had no reader: the check planned and judged this checkout's tree and went green on a pull request that would replace 152. Both reads are `PLAN_GUEST_DIR` now; `guest-plan`, `guest` and `snapshot` keep `GUEST_DIR`, which is the split the comment above the assignments fixes — those act on this checkout's Stack. $ make -n guest-plan-check HOST=subwave PLAN_GUEST_DIR=/tmp/head-tree/subwave/guest ... cd '/tmp/head-tree/subwave/guest' The other three are the same round's advisories: - `docs/guest-subwave.md` linked both runbooks one level above `docs/`, where neither file is; the two links are relative to the page now, and a scan of every page in the tree reports the one pre-existing `../` in `docs/guest.md` and nothing else. - `subwave/service/roles/journal`'s managed header named the pilot's path, because the role is a byte-identical copy of `navidrome/service/roles/journal` and the header came with it. It names its own Stack now. On 152 the drop-in's one comment line changes on the first Converge; the file's effect does not. - "the first Converge onto 152 changes nothing" was not true of the tree: the play asserts both station credentials before it writes anything, and `env.map` has no row for either yet. `docs/service-subwave.md` and the role's own header now say the no-op holds once the two store paths exist, which is what `README.md` calls "designed to be a no-op". Verified on this tree: `make check` (env pin and map, `tofu fmt -check`) rc 0; `make validate` → "validate: 2 Stack(s) valid."; `ansible-playbook --syntax-check` clean for `site.yml` and `verify.yml`; and the override reproduced above. The plan itself is unreachable here — no `.env`, no `subwave` record — as `docs/deploy.md` records.Round 1 fixed —
588a1b0onwave1/152-subwave(new commit, fast-forward, nothing rewritten). All four findings are addressed; none disagreed with.PLAN_GUEST_DIRhad no reader, so the override composed an unchanged pathMakefile:141,:151plan_judgednow readsPLAN_GUEST_DIRat both sites.guest-plan,guestandsnapshotkeepGUEST_DIRdocs/docs/guest-subwave.md:32,34../dropped on both; they are page-relative now, as on every other page in the treesubwave/service/roles/journal/tasks/main.yml:29subwave/service/roles/journaldocs/service-subwave.md:35-38and the role header:5-8make envhas fetched them, which isREADME.md's "designed to be a no-op"The blocker, reproduced
Your command, on the new head:
The default still composes the checkout's Stack, and the other three Targets are untouched:
Note for whoever writes the plan job: on this repository
require_hostruns first, so the job must passHOST=<host>alongside the override —make guest-plan-check HOST=subwave PLAN_GUEST_DIR=head/subwave/guest.infra-secrets' single-host Makefile needs noHOST, which is why its line reads without one.Verification
Run through the declared manager,
mise exec --, on the committed tree:Link scan over
README.md,docs/*.mdanddocs/reference/*.md: every link resolves except the one pre-existing../indocs/guest.md:30, which you named as pre-existing and this round does not touch.Left alone, and why
docs/guest.md:30— same../defect, outside this PR's change. Left for its own ticket rather than fixed on the way past..forgejo/workflows/— you named it as pre-existing and repo-wide, and it isdocs/deploy.md's items 3 and 5–7. Unchanged..env, nosubwaverecord, no provider credential. What I verified is the override's composition, the same dry-run you used, plustofu validateover both Stacks.docs/deploy.mdrecords the rest as Operator preconditions.One effect worth naming
The journal finding is a real one and the fix has a consequence I could not measure: the drop-in's managed content changed, so if 152 already carries
/etc/systemd/journald.conf.d/persistent.conffrom a previous run, the first Converge rewrites that one comment line and fires therestart journaldhandler. The file's effect (Storage=persistent) is unchanged. If you would rather the first Converge carry no write at all, say so and I will revert that one line — it is the only advisory whose fix changes a byte on the machine.Review started (round 2/5) on
588a1b0fd8— reading the diff now.CI at
588a1b0:pr-checks / check (pull_request)— success in 11s (run 5), which is the runner confirming themake checkquoted above on a cold tree.mergeable: true, and the state label isreview/needs-review.olympus/infra-media#2 · head
588a1b0· round 2/5 · axes standards, specRecommendation: merge
Round count: the thread carries one review (
list_pull_reviews→round=1/5, head4e12220), so this is 2/5; the dispatch said 2/5 and the two agree.Delta:
git diff 4e12220...588a1b0— one commit, 5 files, +13/−11, stacked (git merge-base --is-ancestor 4e12220 588a1b0→ true). Every hunk maps to a round-1 finding; no scope creep.docs/guest-subwave.mdis the only file the four findings did not name by path, and it is their site — the two links.Spec source: the PR description (read twice: at open and again before this report; identical). No linked issue, no issue ref in the commit, and the repository keeps no tracker convention of its own.
Standards source:
standards: no repo conventions found— noAGENTS.md,CONTRIBUTING.mdordocs/agents/in this repository. Judged against the org records that bind it,olympus/workshopdocs/adr/atorigin/main(16 records, read through the forge at that ref): ADR-0011 is the one this delta touches.Prior round's findings, re-driven
PLAN_GUEST_DIRhad no readerMakefile:141,:151docs/guest-subwave.md:32,34subwave/service/roles/journal/tasks/main.yml:29docs/service-subwave.md:35-38, role header:5-81 — the blocker, as a red/green pair. Same command at both revisions,
mise exec -- make -n guest-plan-check HOST=subwave PLAN_GUEST_DIR=/tmp/head-tree/subwave/guest:The judge argument at
Makefile:151moved with it. The default path is intact —make -n guest-plan-check HOST=subwave→cd 'subwave/guest', andguest,snapshotandguest-planeach still composeGUEST_DIR(Makefile:129), asMakefile:47-49says the split is for. Census at the head:PLAN_GUEST_DIRis read at:141and:151and declared at:50; nothing else in the tree mentions it. The gate ADR-0011 needs is now wired.2 — links.
[runbook-navidrome.md](runbook-navidrome.md)and[runbook-subwave.md](runbook-subwave.md); both files exist indocs/. A scan of every local link on the five changed-or-added pages (plusREADME.md) reports no broken local links.3 — the journal header.
# Managed by infra-media (subwave/service/roles/journal).A tree-wide census of the old string finds exactly one survivor,navidrome/service/roles/journal/tasks/main.yml:29, which is the pilot's own role naming its own path — correct there, fixed here. The sweep is complete.4 — the page.
docs/service-subwave.md:37-39now reads "Once the two store paths below exist andmake envhas fetched them, the first Converge onto 152 is designed to change nothing", and the two paths it names really are below it (:56-58). That is the wording the prior round asked for and it is hedged in the same wayREADME.md's "designed to be a no-op" is.Standards
No findings.
make check(env pin · 6 names declared · formatting clean),make validate(2 Stacks valid), and--syntax-checkonsite.ymlandverify.ymlare all green at the head; the delta's two Makefile words are read at both sites by the plan path itself. No ADR, branch-protection or CI-gate file is in the diff —.forgejo/workflows/holdspr-checks.ymland nothing else, and the delta moves none of the four things that define the required context (workflow file, context namepr-checks / check, jobcheck, its targets) — so there is nothing here for the board to take.Spec
ADVISORY —
subwave/service/roles/subwave/tasks/main.yml:7-8— the new sentence says a credential-less run "writes nothing", and the play writes first.The header now reads: "A run without the pair stops at its first assertion below and writes nothing." The assertion is the
subwaverole's first task (:20), butsubwaveis the play's second role —site.yml:7-9listsjournalabove it — and the journal role's two tasks both write: it creates/etc/systemd/journald.conf.d(roles/journal/tasks/main.yml:15-23) and copies the drop-in (:25-36), whosenotify: restart journald(:35) then fires.Reproduced from the play's own ordered task list:
So a run without the pair stops at its first
subwaveassertion having already written the drop-in on any Guest that does not carry it — the very Guest the journal role exists for ("a rebuilt Guest gets it because the drop-in below says so",roles/journal/tasks/main.yml:11-13). The claim is a comment, not behaviour, and it is an absolute where the page's version is hedged; the prior round graded the equivalent prose claim as an advisory, and this round does the same. Smallest clearing change: scope the sentence to the role — "thesubwaverole writes nothing" — or drop the clause.Named, not charged
docs/guest.md:30— the same../link defect, on a page this PR does not touch. Pre-existing, left for its own ticket as the author says.docs/service.md:24— the pilot's unqualified "Converge onto 117 changes nothing". Byte-identical at the base; the delta does not reach it.env.maphas no row forsecret/services/subwave/{admin,navidrome}, somake envcannot fetch the pair the new clause conditions on until the rows land. Disclosed in the role'sfail_msgand indocs/service-subwave.md:56-61; the only prose question is the advisory above.docs/deploy.mditems 3 and 5–7 track it. This round charges nothing for it.scripts/plan-check.py:112-113readsargv[2]only, so the third argument the recipe hands--plan-failureis inert — the same shape at the prior head, where it was$(GUEST_DIR). Pre-existing, and the override that matters is thecdat:141.Storage=persistent) is unchanged.Verified
make -nat4e12220and588a1b0— commands and output above;guest-plan-check,guest,snapshot,guest-plandefault tosubwave/guestat the head.git status --porcelainempty after the wave, andgit ls-remote origin refs/pull/2/headread again at the end →588a1b0, unchanged.mise exec -- make check→env.map: 6 names, all declared in .env.example, pin ok,fmt-checksilent, rc 0.mise exec -- make validate→Success! The configuration is valid./validate: 2 Stack(s) valid.ansible-playbook -i inventories/prod/hosts --syntax-check site.ymlandverify.yml, run fromsubwave/service→ both clean;--list-tasksprints, the ordering quoted above.docs/guest-subwave.md,docs/service-subwave.md,docs/runbook-subwave.md,docs/reference/state.md,README.md→ no broken local links.navidrome/service/roles/journaland ofchanges nothingacross the tree — results quoted above.pr-checks / check (pull_request)success, run 5, 11s (get_commit_statuses→ newest entry per context).Could not verify
pct config 152, the.env's 366 bytes and01abb0dd…, the six image IDs, the restore archive. 152 is stopped and itsauthorized_keysholds the Admin agent's key; this round did not reach the machine.subwave/guest— no.env, no state record, no provider credential in this session, so no destroy or replace was examined by hand. ADR-0011's gate is verified as wiring (the override composes the head tree), not as a plan output./etc/systemd/journald.conf.d/persistent.conf— which is what decides whether the fix's header edit writes a byte on the machine. The fixer flagged it as the one consequence he could not measure; this round cannot measure it either.make service-check HOST=subwave), which the page itself names as the unmeasured thing.Summary. Standards: 0 findings. Spec: 1 finding, an ADVISORY (
subwave/service/roles/subwave/tasks/main.yml:7-8, the "writes nothing" clause, which the journal role that runs before the assertion contradicts). One advisory is below the three that would move this, so the recommendation is merge, and that advisory travels as advice for whatever round touches the file next. The round-1 blocker is cleared and proved as a red/green pair; the three round-1 advisories are cleared and each proof is above.