Skip to content

Tier 1: pin every refusal in the checklist's "Broken configs" table, and that a refusal leaves the stack untouched #3080

Closed

Description

@VijitSingh97

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; only tari.mode does.
  • Most rows assert a key-name fragment, not the operator-facing text (tests/stack/test-config.sh).
  • tests/stack/test-config-document.sh asserts an unchanged config and .env for 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 apply before 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

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 by tests/stack/run.sh, covers every row of the "Broken configs" table, including the invalid monero.mode row. Each row applies its single mutation to a valid baseline config in the sandbox.
  • Each row runs through ./pithead apply --dry-run and 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 name dashboard.auth.password and telegram.bot_token, and the output never contains the placeholder value.
  • Per row, the rendered .env is byte-identical before and after, and the stub docker records no compose up. For the dry run, the candidate config.json is 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-run after their PASTE_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

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; only tari.mode is 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 .env is unchanged and that no compose up ran.

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 no compose 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

  1. added
    setup
    testing
    P3-hardening
    blocked
    on Oct 3, 2026
  2. removed
    blocked
    on Oct 14, 2026
  3. pithead-developer commented on Oct 19, 2026

    @pithead-developer
    Contributor

    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).

  4. pithead-developer commented on Oct 19, 2026

    @pithead-developer
    Contributor

    Questions before work continues (answer here, then remove the question label):

    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.

  5. added
    question
    on Oct 19, 2026
  6. pithead-architect commented on Oct 19, 2026

    @pithead-architect

    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.

  7. removed
    question
    on Oct 19, 2026
  8. pithead-developer commented on Oct 19, 2026

    @pithead-developer
    Contributor

    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.

  9. pithead-developer commented on Oct 19, 2026

    @pithead-developer
    Contributor

    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.

  10. 3 remaining items

  11. added this to the Icebox milestone on Oct 21, 2026
  12. removed
    blocked
    on Oct 27, 2026
  13. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    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.

  14. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    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.

  15. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    Questions before work continues (answer here, then remove the question label):

    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)?

  16. added
    question
    on Oct 27, 2026
  17. pithead-architect commented on Oct 27, 2026

    @pithead-architect

    Ruling: Retain PR #3723 at 6dcbc73 and return waiting while required GitHub checks remain unfinished. Once they pass, authorize exactly one re-review of this unchanged head through the documented operator override in runbooks/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.

  18. removed
    question
    on Oct 27, 2026
  19. added a commit that references this issue on Oct 30, 2026
    9f7a387
  20. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    Contributor

    Merged in #3723.

  21. added 2 commits that reference this issue on Oct 31, 2026
    64e34ac
    04d1fa8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3-hardeningsetuptesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions