Repository navigation
Description
What's the problem
Nothing proves the owner's whole flow on real appliance hardware. It is part of tracker #4032.
- The current tests are tier-1 shell and Python (
tests/stack/control/test-control-support-bundle.sh,dashboard/tests/web/views/test_support_bundle_views.py). Their journalctl stub ignores--since(so window bounds are not checked), the download is a fake 8-byte payload, and the Tor lines are canned text (test-control-support-bundle.sh:18-24). - The only appliance leg is
tests/os/appliance-recovery-bundle-leg.sh. It runs the console recovery verb with a 1-hour window, checks one marker line from one fake unit, and reads a.tar.gz. It does not check that every expected file is present and non-empty, or that a secret is absent. - No test downloads the bundle through the dashboard route, and none does it with Tor deliberately wedged or a node stopped (C15 and C16 of Let appliance owners download a redacted support bundle of past logs from the dashboard, and log why health pings fail #4032).
- No Playwright test covers the card. Dashboard: time-frame picker and one-click .zip export, always available, with docs and a browser test #4129 adds one. If Dashboard: time-frame picker and one-click .zip export, always available, with docs and a browser test #4129 did not, this issue adds it.
What it impacts
- The release. Let appliance owners download a redacted support bundle of past logs from the dashboard, and log why health pings fail #4032 says the download "keeps working while Tor, monerod or P2Pool are down or wedged", and "a test downloads the zip from a stack with Tor deliberately wedged and checks that it is complete and redacted". Without this proof, that sentence is a claim.
- Owners who need the export most, which is during an outage.
- Depends on Support bundle collector: one .zip of the whole journal for a chosen start and end time, with a manifest #4127, Support bundle: add state snapshots and non-journal sources, each time-bounded so a wedged service cannot block it #4128 and Dashboard: time-frame picker and one-click .zip export, always available, with docs and a browser test #4129. It starts after all three merge. DIY parity: the same windowed .zip from the dashboard and from
./pithead support-bundle --since/--until#4130 is not required.
How I found it
This came from a read-only audit of develop at eb929ce on 2026-11-15, against the owner's request and the acceptance criteria of #4032, verified by a second agent. The owner said on 2026-11-15: "make sure 2.0.4 has the export logs feature also. i want to be able to select a time frame and then dump pretty much every log on the system into a zip file for download. this is so we can debug issues users face".
Evidence is the file:line list above, and the audit finding that the full owner flow has never been exercised on appliance hardware. Not verified: which existing tier4-kvm phase is cheapest to extend. tests/os/phases/fault.sh and the tor-heal phase (which faults only the guest's Tor) are candidates. Also not verified: how the leg should authenticate to the dashboard route. The existing appliance legs that log in (for example tests/os/appliance-password-fixture.sh) are a starting point.
How important is it
Release blocker for v2.0.4, because the owner's rule is that log pulling ships. It is proof work, so it cannot start before #4127, #4128 and #4129 merge. Part of #4032.
Acceptance criteria
- A tier4-kvm (appliance) leg under
tests/osprovisions a guest, sends the request the dashboard route receives for a chosen start and end, waits for completion, and downloads the.zipover the dashboard route as an authenticated owner, with the control channel switch off. With a dashboard password set, an unauthenticated request to the same route is refused. - The leg unzips the archive and asserts that
manifest.jsonand every file specified by Support bundle collector: one .zip of the whole journal for a chosen start and end time, with a manifest #4127 and Support bundle: add state snapshots and non-journal sources, each time-bounded so a wedged service cannot block it #4128 are present and non-empty (or listed in the manifest with a reason). - The leg proves the window bounds: a seeded journal line inside the window is present, and a seeded line just before the start and one just after the end are absent.
- The leg seeds secrets (a wallet address, a token, a Tor key value, a cookie) in the journal, a container log, the Tor state file and a Caddy access log, and asserts none of them appear anywhere in the zip.
- The leg repeats the export with Tor deliberately wedged on the guest. The export completes within a stated time, the zip is complete and redacted, and the manifest records the Tor step as failed or timed out.
- The leg repeats the export with monerod stopped. The export completes, the zip is complete and redacted, and the manifest records the monerod snapshot as unavailable.
- A passing run shows the leg's evidence (job id and the unzip listing) on this issue. A failing run fails the phase; it is not a warning.
- If Dashboard: time-frame picker and one-click .zip export, always available, with docs and a browser test #4129 did not ship its Playwright test, this issue adds the browser test that picks a range and downloads the zip. Otherwise it only runs it.
- A selftest for the new leg's verdict logic runs without a VM, in the style of the existing
selftest-*.shfiles undertests/os. -
make checkpasses.
Possible solutions
- Extend the
faultortor-healphase oftests/oswith a new leg file next toappliance-recovery-bundle-leg.sh, and reuse its fault helpers. - Wedge Tor the way the
tor-healphase already does, or by stopping it or blocking its upstream on the guest. Stop monerod withsystemctl stop. - Seed journal lines with
systemd-catorloggerat known timestamps. Add short-lived dummy lines rather than editing real logs. - Make the download request from inside the guest with
curl, so the leg's evidence holds no host name or address.
Release: date 2026-11-29
Who: operator
Activity
pithead-developer commentedon Nov 15, 2026
Blocked on #4129. I haven't started #4131 because its three prerequisites are still open and unmerged: #4127 (the collector zip and manifest), #4128 (state snapshots and non-journal sources) and #4129 (the dashboard picker and export). The issue says the work starts only after all three merge. The legs assert the files, manifest fields and route that those issues define, and none of that exists on develop yet. No code, branch or PR exists, so nothing is finished. Once #4127, #4128 and #4129 are closed, resume this issue. Then I will extend the tier4-kvm fault or tor-heal phase with a bundle-download leg, a verdict selftest, and the Playwright test if #4129 doesn't ship one. #4129 is named as the blocker because it is the last in the chain, but the other two must also be closed.
The runner resumes this issue when that one closes.
pithead-developer commentedon Nov 16, 2026
Owner ruling 2026-11-16 (2.0.4 scope review, "all as recommended"): conditional. A minimal tier4-kvm leg stays in 2.0.4: authenticated download through the dashboard route with the control switch off, plus manifest and redaction assertions. If log export is the last thing holding the cut, the Tor-wedged and monerod-stopped legs move to v2.0.5, and the owner checks the Tor-wedged case by hand on their appliance.
pithead-developer commentedon Nov 16, 2026
Blocked on #4128. #4127 and #4129 are merged, but #4128 is still open, so I have not started #4131. Its draft PR is #4173. The acceptance criteria for #4131 need #4128's output: the per-step manifest entries (Tor step failed or timed out, monerod snapshot unavailable) and the non-journal files. Writing the leg now would mean guessing those names. The issue also says work starts after #4127, #4128 and #4129 all merge. Finished so far: I checked the dependency states and merged current develop into this branch, which has no other changes and no PR. To unblock, #4128 must merge, at which point the runner resumes this session and the leg gets built from the merged manifest. #4128's scope is partly deferrable to v2.0.5 under the owner's 2026-11-16 ruling. Which files #4131 asserts will depend on what ships, so I'll read the merged manifest then.
The runner resumes this issue when that one closes.
test(os): support-bundle proof: full file list, seeded-secret positiv…
13 remaining items
pithead-architect commentedon Nov 21, 2026
Appliance proof at PR #4188 head 69815a7 (KVM provision with the old image, bench job 607, 2026-11-21): 237 rows passed, 3 failed.
Owner ruling 2026-11-16: if this proof is the last thing holding the 2.0.4 cut, its remaining legs move to v2.0.5. It is the last one, and only the monerod-stopped leg remains (Tor wedged passed on the appliance, so no manual check is needed for it). Moving this issue and #4188 to v2.0.5 and removing release-blocker; the monerod-stopped leg is the remaining work.
test(os): run the monerod-stopped round only where a local monerod un…
test(os): stop and start monerod through its systemd unit so Restart=…
pithead-developer commentedon Nov 22, 2026
Blocked on #4302. The owner cancelled provision jobs 4420 and 4424 on head 5d05f34 and ordered no resubmit until pithead#4302 (the 2.0.4 publication) closes, so the fleet is reserved for the release gate. Neither job ran. I did not resubmit. Finished: PR #4188 has the new appliance leg, its verdict selftest and the docs, and GitHub checks are green on the head. On earlier heads, real runs proved the control-off step, the baseline export (59 s), the 401 refusal of unauthenticated requests, and the Tor-wedged export (100 s, tor-heal job 474, success). Not proved on the current head: the monerod-stopped round, whose stop and start I reworked in 5d05f34. If the provision guest has no
monerodcontainer, that round skips and the criterion needs a phase that has one. To unblock: #4302 closes and the runner resumes this session. I then resubmit the provision phase on the head and read it. The same explanation is on the PR.The runner resumes this issue when that one closes.
Merge origin/develop into the #4131 branch
pithead-developer commentedon Nov 27, 2026
Needs an operator action (do it, then remove the
operator-actionlabel):PR #4188 needs an owner-only rewrite of head branch
agent/4131-end-to-end-proof-on-the-appliance-downlofrom observed remote head810422cc65a8632dc7be687d12a6050e4c40641fontodevelop-v2.0.5before it can merge. Candidate preparation runs locally; its evidence will follow if available. Verify the candidate, target-base SHA, selected commits, check results and prior review coverage before publication. Publish only to the same PR head branch with an explicit lease on810422cc65a8632dc7be687d12a6050e4c40641f, followed by the base change; if the remote head moved, stop and reassess. Preserve the existing PR discussion and review history; a replacement PR requires explicit owner approval. Keep this issue open; remove only theoperator-actionlabel after verifying publication. The rewritten head needs fresh checks and review, then any required owner approval; old PASS or approval evidence must not be carried to it.pithead-developer commentedon Nov 27, 2026
Candidate preparation for PR #4188 (owner publication still required):
PR #4188's branch carries commits from
developthatdevelop-v2.0.5lacks, so I rebuilt the change as a local candidate. Nothing was pushed. I did not force-push, change the PR base or open a replacement PR. The PR head branch isagent/4131-end-to-end-proof-on-the-appliance-downlo. The remote head I observed is810422cc65a8632dc7be687d12a6050e4c40641f, rechecked after fetching. The target base isdevelop-v2.0.5at36c8af8f787ac76821d53f8e37398bde966152e8. The candidate is the local branchcandidate/4131-on-develop-v2.0.5at full SHA717a4aa18a2e44085f075b660aea605e69f22aa4. It is 12 commits on that base, cherry-picked with-xfrom the PR's non-merge commits, oldest first: 31420be, 5e58ed3, 3e4a695, b1f6bef, a5d61e4, c61c7ec, 00c47d2, 17f3443, c193b0d, 69815a7, 63408d1, 5d05f34. All applied without conflict. The diff against the base is 7 files (388 insertions, 1 deletion): the new proof leg, guest seed script, verdict script and selftest undertests/os, therun.shandappliance-support-bundle-leg.shwiring, and onedocs/dev/testing-strategy.mdrow. Checks run on the candidate: shellcheck (warning level) exit 0,shfmt -i 4 -dexit 0,tests/os/selftest-support-bundle-verdict.shpass,tests/os/selftest-provision-legs.shexit 0, andmake lint-mdwith 0 errors.make lint-file-budgetfails on the candidate: "docs/dev/file-budget.tsv raises dashboard/tests/service/health/test_tor_heal.py's ceiling from 401 to 459". It fails identically on bareorigin/develop-v2.0.5, so it is not from this change. No GitHub checks or bench job have run on the candidate. Existing evidence covers the old commits only, not the candidate. Job 474@63408d19f5 (tor-heal) succeeded, and its leg rows show the control-off step, baseline export, 401 refusals and the Tor-wedged export all passing. Earlier provision runs proved the same steps, and jobs 4420 and 4424 on 5d05f34 were cancelled by the owner without running. The monerod-stopped round has never passed on hardware. No review is recorded: the verifier ran earlier on an older diff, and I did not re-run it on later commits. Requested owner action: publish the candidate to the same head branch with an explicit lease on the observed head, for examplegit push --force-with-lease=agent/4131-end-to-end-proof-on-the-appliance-downlo:810422cc65a8632dc7be687d12a6050e4c40641f origin 717a4aa18a2e44085f075b660aea605e69f22aa4:refs/heads/agent/4131-end-to-end-proof-on-the-appliance-downlo. Then change the PR base todevelop-v2.0.5. If the remote head has moved from 810422c, stop and reassess. The rewritten head needs fresh GitHub checks, a fresh tier4-kvm provision run (the PR has no passing run of the current leg), fresh review and any required owner approval. Carry over no old PASS or approval. The PR discussion and review history stay on the existing PR.