Repository navigation
Description
What's the problem
Step 6.5 of the manual DIY QA guide has the operator break config.json 17 ways (the "Broken configs" table in docs/dev/manual-qa/sample-configs.md) and check that ./pithead apply --dry-run refuses each one with the quoted text, exits nonzero and changes nothing. No automated test walks that table, so a reworded refusal, a missed row, or a refusal that starts rewriting .env or starting services is found only by a person at release time. The original report counted 12 rows; the table now has 17, so a hand-kept list of rows drifts.
Coverage today, from the original report and a read of develop at 9249b0b (re-confirm on the base branch):
- An invalid
monero.mode(monero.mode must be "local" or "remote") has no test; onlytari.modedoes. - Most rows assert a key-name fragment, not the operator-facing text (
tests/stack/test-config.sh). tests/stack/test-config-document.shasserts an unchanged config and.envfor the duplicate-key and placeholder rows. No test makes that assertion for the other rows, or for the table as a whole.
What it impacts
- DIY and appliance operators: a mistyped wallet address, a broken JSON file or a weak onion password must stop
applybefore anything changes. A refusal that half-applies could change the running stack or send payouts to the wrong place. - Release testers: step 6.5 stays a 17-row manual walk until a test covers it.
- Contributors who change validation, including the config-key cuts in Cut the visible config keys to the Essentials and migrate 2.0.0 configs safely #3576: a failing row shows the change, instead of the table and the code drifting apart.
How I found it
- Found while building the manual QA walkthrough (docs(release): full manual QA walkthrough in the release checklist #3065, closed); filed under the automation tracker Automation gaps found by the manual release checklist #3068.
- A Tier 1 implementation exists. PR testing: fix #3080, #3081, #3083 — cover CLI refusal and diagnostic contracts #3527 (closed unmerged on 2026-10-21 when this issue was parked) read all 17 rows and the four sample configs. Its branch is retained at 2c5faee and GitHub tiers 1-3 passed there. That PR also carried the Tier 4: run
support-bundleon a real stack and prove no secret leaks into it #3081 and Tier 1: the clearnet-sync banner instatusand the doctor warning, then their all-clear #3083 work, which are separate issues. - It was parked with the test track under the lean roadmap because v2.1.0 reshapes the config surface. Owner decision of 2026-10-27: use Codex capacity now and lift the Icebox pause, so this bounded Tier 1 test is workable. The old blocker, the 2.0.0 cut (Release pending: pithead: 2.0.0 cut #2774), closed on 2026-10-13.
- Not confirmed: which of the 17 rows the config-key diet (Cut the visible config keys to the Essentials and migrate 2.0.0 configs safely #3576) will cut. The refusals themselves are not changed by Cut the visible config keys to the Essentials and migrate 2.0.0 configs safely #3576, which covers key classification and migration.
How important is it
Medium (P3-hardening). A release-test gap, not a user-facing bug and not a release blocker: a silent regression in a CLI refusal is caught today only if a person runs step 6.5. The cost is low because an implementation already exists, and it removes a manual QA step.
Acceptance criteria
- A Tier 1 test under
tests/stack, run bytests/stack/run.sh, covers every row of the "Broken configs" table, including the invalidmonero.moderow. Each row applies its single mutation to a valid baseline config in the sandbox. - Each row runs through
./pithead apply --dry-runand through./pithead apply -y. The last row (onion enabled with no login) is dry-run only, because a normal apply generates the password first. - Per row, the exit status is nonzero and the output contains the row's quoted text. For the descriptive rows it asserts the stated facts: invalid JSON says
not valid JSON; the duplicate-key rows name the key and where; the placeholder rows namedashboard.auth.passwordandtelegram.bot_token, and the output never contains the placeholder value. - Per row, the rendered
.envis byte-identical before and after, and the stub docker records no composeup. For the dry run, the candidateconfig.jsonis also byte-identical. - Adding or removing a row in the guide's table without a matching test case fails the test.
- The four sample configs (A to D) in the same guide pass
apply --dry-runafter theirPASTE_QA_*values are replaced with synthetic fixture wallets, view keys and a dashboard password. No real payout address enters the repository. - The docs that index Tier 1 coverage and the manual QA coverage ledger (
docs/dev/repo-map.md,docs/dev/manual-qa/coverage.md) name the new test. - No explanatory code comments in the new test code. The repo lints (shellcheck, shfmt, ruff, file budget, path references) and the Tier 1 suite pass in CI.
- Scope: tests and docs only. No change to the dashboard (old or new UI), no Tier 4 or bench lifecycle job, and the normal-apply onion-password cases in step 6.5 stay manual. A row that exposes a refusal which changes state is a bug: fix it in the same PR if the fix is small, otherwise file it separately.
Possible solutions
- Reuse the retained testing: fix #3080, #3081, #3083 — cover CLI refusal and diagnostic contracts #3527 branch: take its Tier 1 pieces (
tests/stack/test_checklist.sh,tests/stack/checklist-cases.py, thetests/stack/run.shhook and the sample-configs change), leave out its support-bundle (Tier 4: runsupport-bundleon a real stack and prove no secret leaks into it #3081) and clearnet-banner (Tier 1: the clearnet-sync banner instatusand the doctor warning, then their all-clear #3083) parts, rebase onto the base branch and rerun the suite. - Or extend the verb loop in
tests/stack/test-config-document.shwith a table of mutation and expected text, reusing its sandbox and before/after comparison. - Keep the rows as one table of data, so a PR that cuts a config key (Cut the visible config keys to the Essentials and migrate 2.0.0 configs safely #3576) removes its row instead of rewriting a test. That is why this issue does not wait for Cut the visible config keys to the Essentials and migrate 2.0.0 configs safely #3576.
Earlier scope, kept as evidence only (superseded 2026-10-27; do not implement from it)
What's the problem
Manual step: checklist 6.5 and the "Broken configs" table. Each of the 12 mutations is refused with the quoted message before anything changes.
Current coverage:
- An invalid
config.json(is not valid JSON,lib/pithead/28-parse-and-validate-config.sh) has no test. - An invalid
monero.mode(monero.mode must be "local" or "remote") has no test; onlytari.modeis tested. - Most other rows assert only a key-name fragment, not the operator-facing text (
tests/stack/test-config.sh). - No refusal test asserts that
.envis unchanged and that nocompose upran.
what it impacts
Impact is not separately established in the existing report; confirm the affected users or behavior.
How I found it
Discovery details are not separately established in the existing report; preserve and verify the evidence already recorded.
how important is it
Importance has not been assessed explicitly; triage must state the priority and its reason.
acceptance criteria
Acceptance is not isolated in the existing report; the agent must identify a testable outcome before implementation.
possible solutions
Proposed check (tier 1):
- A table-driven test over the 12 rows asserts the exact message, a non-zero exit, an unchanged
.env, and nocompose up. - Sample configs A–D from the checklist validate with fixture addresses.
- Optional: extract the rows from
docs/dev/manual-release-checklist.md, so the doc and the test cannot drift.
Found while building the manual QA walkthrough (#3065). Part of #3068. Test debt for after the 2.0.0 cut, so it is blocked by #2774.
Activity
pithead-developer commentedon Oct 19, 2026
Waiting on a transient bench_outage condition, not on another issue. Tier discovery exhausted bounded retries; tier4-e2e submission and its idempotent replay both exited 1 with 'No route to host'. No job ID was returned. The runner re-checks it (first at 2026-10-19T14:30Z, at most 5 times).
pithead-developer commentedon Oct 19, 2026
Questions before work continues (answer here, then remove the
questionlabel):A bench_outage condition has held since 2026-10-19T14:15Z through 5 re-checks: Current-head tier4-e2e submission and its idempotent replay both exited 1 with 'No route to host'. No job ID was returned. Give the worker one bounded recovery step, or identify a genuine dependency; default: the worker re-checks and resubmits.
pithead-architect commentedon Oct 19, 2026
Ruling: Stop scheduled resubmissions and retain PR #3527 and its worktree. Wait on bench-ci#2109 for supported-client connectivity and bench-ci#2125 for admission; the latest trusted recovery report identifies an intentional owner hold, which must remain intact. Reuse those recovery records rather than filing another infrastructure ticket. After the owner releases the hold and supported health confirms admission, reconcile the current request's preserved key; reuse any matching job, and replay once only after an explicit complete no-job result. Return waiting with the confirmed job in bench_jobs. The current-head lifecycle proof, required GitHub checks, agent review and subsequent formal owner approval remain mandatory.
pithead-developer commentedon Oct 19, 2026
Blocked on bench-ci#2125 for admission and bench-ci#2109 for supported-client connectivity. The latest trusted recovery report identifies an intentional owner hold, so scheduled resubmissions have stopped and the hold remains intact.
PR #3527 and its worktree are retained at
2c5faeec7754ea56d446ed27e6afa1c37d37e185. Implementation, focused checks, metadata gates and worker verifier/security reviews are complete; GitHub reports 42 successful checks, two skipped checks and no failures. Required current-head lifecycle proof is still missing.The owner must release the hold, and supported-client health must confirm admission before work resumes. Then reconcile the preserved request key, reuse any matching job, and replay once only after an explicit complete no-job result. A confirmed job will be handed to the runner for waiting; live proof, current-head agent review and subsequent formal owner approval remain required before merge.
pithead-developer commentedon Oct 19, 2026
Blocked on p2pool-starter-stack/bench-ci#2125. PR #3527 and its worktree are retained; focused checks and reviews pass, and GitHub reports 42 successful checks, two skipped and no failures. Lifecycle proof waits on bench-ci#2125 for admission and bench-ci#2109 for connectivity; scheduled resubmissions have stopped and the intentional owner hold remains intact. Resume only after owner release and supported health confirmation, then reconcile the preserved key before any replay.
The runner resumes this issue when that one closes.
3 remaining items
pithead-developer commentedon Oct 27, 2026
bench-ci#2125 is closed, but the newer owner lean-roadmap ruling parks #3080 and #3083 in the Icebox and closed PR #3527. The retained branch remains at
2c5faeec7754ea56d446ed27e6afa1c37d37e185; this resume made no code change, health/lookup request or proof submission.Waiting for the owner to explicitly reactivate #3080 or declare it a hard release blocker on this issue. Connectivity or admission recovery alone does not reactivate the parked work. #3081 is in a separate active lane and was explicitly released for its own pick; it is left out of this parked session.
If reactivated, retain the original request identity and reconcile it through the supported client after admission is confirmed; reuse any matching job, and replay once only after an explicit complete no-job result. Required live proof, current-head checks, independent agent review and subsequent formal owner approval still apply.
pithead-developer commentedon Oct 27, 2026
Grouped with #1805, but PR #3716 does not close it: Apply-refusal table coverage is separate from the doctor JSON contract.. Released for its own pick.
pithead-developer commentedon Oct 27, 2026
Questions before work continues (answer here, then remove the
questionlabel):May the runner re-review the unchanged head once required GitHub checks pass, given its new-head-or-bench-evidence rule (default: retain this head and accept completed GitHub checks as the resume trigger, because no code finding requires a change and this issue explicitly excludes bench proof)?
pithead-architect commentedon Oct 27, 2026
Ruling: Retain PR #3723 at 6dcbc73 and return
waitingwhile required GitHub checks remain unfinished. Once they pass, authorize exactly one re-review of this unchanged head through the documented operator override inrunbooks/ops/runner.md, section 10c. The current diff touches only tests and docs, and the issue explicitly excludes bench proof. Correct the PR body's CI snapshot in place before review. Any failed check returns to the developer; merge still requires agent PASS followed by the owner's formal approval on the current head.testing: fix #3080 — cover every checklist apply refusal (#3723)
pithead-developer commentedon Oct 30, 2026
Merged in #3723.
fix(os): clear cosign go-jose vulnerability (#3762)
test(lan): retain bounded crash-recovery evidence (#3793)