Repository navigation
Description
What's the problem
Nothing pins the exact rows the host preview shows for each editable setting. The existing preview checks (for example previewed_with in tests/stack/control/control-sensitive-preview.sh) pass when any one row contains the expected words, so an extra false row, a missing row or a wrong effective value still passes. Combined edits, nulls, DIY-versus-appliance differences and dependent settings are not enumerated.
Defects found in 2.0.0 RC testing that slipped through this gap, all since fixed with narrow regression tests:
- Preview mislabels P2Pool routing-only changes as a sidechain/PPLNS reset #3382 (RC4): a P2Pool clearnet or Docker-subnet-only change previewed a sidechain and PPLNS reset (fixed by PR fix(control): distinguish P2Pool routing from sidechain changes #3493).
- Tari-off preview warns about inactive clearnet sync and endpoint work #3383 (RC4): a Tari-off edit previewed inactive clearnet-sync and endpoint work (PR fix: describe inactive Tari preview settings accurately #3559).
- Document and test null worker API port as the effective 8080 default #3377 (RC4): a null worker API port previewed as "unset" instead of its effective default (PR Use the effective default for null worker API ports #3564).
- Validate fleet workers.api_port before rendering XMRIG_API_PORT #3358 (RC3): an out-of-range worker API port (65536) was accepted (PR fix(config): validate fleet workers.api_port before rendering XMRIG_API_PORT (#3358) #3365).
- [core] Mixed valid edit silently persists null webhook omitted from preview #3388 (RC4): a changed path (a null webhook member) was missing from the preview (PR fix(control): reject malformed webhook members before preview #3547).
- Dashboard exposes appliance-only local miner toggle on DIY without guidance #3357 (RC3): the appliance-only local miner switch was editable on DIY with no guidance. Closed and folded into Sovereign: make the machines view usable for 2, 50 and 100 workers #2517; the lean Machines page shows that switch on the appliance only.
The v2.1.0 configuration model (#3557) changes the key set, adds the profile key and moves previews to plain sentences, so the exact-row test is built on the retained key list, not on today's 111 reference leaves.
What it impacts
Everyone who confirms a change in the Settings preview (#2530) or in ./pithead apply --dry-run, on appliance and DIY. A wrong or missing row means a user approves a change after being told something false: a scary warning for a safe edit, or silence for a disruptive one. It is also the net for the #3557 work, which rewrites many preview rows and must show nothing else moved.
This adds no dashboard control and changes no host validation, typed confirmation or secret handling. No test is added against the current dashboard's modules; that UI is deleted at the cutover (#2547).
How I found it
- Owner ruling 2026-10-11: every defect an RC cut finds must be caught by automated tests going forward. The defects above came from 2.0.0 RC3 and RC4 testing.
- Read on
develop-v2.1.0on 2026-10-27:previewed_withchecks containment;tests/stack/control/test-control-editable-allowlist.shround-trips each allowlisted key through preview and commit but asserts no preview rows;config.reference.jsonhas 111 leaves (excluding_docs). Nothing was run. - Live state: Preview mislabels P2Pool routing-only changes as a sidechain/PPLNS reset #3382, Tari-off preview warns about inactive clearnet sync and endpoint work #3383, Document and test null worker API port as the effective 8080 default #3377, Validate fleet workers.api_port before rendering XMRIG_API_PORT #3358, [core] Mixed valid edit silently persists null webhook omitted from preview #3388 and Dashboard exposes appliance-only local miner toggle on DIY without guidance #3357 are closed; Implement the approved v2.1.0 configuration model and migration contract #3557 and Sovereign: organize mining and advanced settings without losing fields #2530 are open.
- Not known yet: the final retained key list and the plain-sentence wording of the profile preview. Both are settled in Cut the visible config keys to the Essentials and migrate 2.0.0 configs safely #3576 and Add a Performance / Balance / Privacy profile that sets the privacy keys together #3574, so expected rows cannot be written before they land.
How important is it
Medium. It is test debt, not a user-facing defect, and it cannot finish until the key model exists, so it must not gate v2.1.0. It is still required by the 2026-10-11 rule, and the release that rewrites the previews is the cheapest moment to pin them. Cost M: seconds of runtime.
Acceptance criteria
- A case table plus driver under
tests/stack/control/has at least one case per retained editable key, across the editable, confirm and approval classes (lib/pithead/42-control-policy-and-host-checks.sh). The key list is read from the Cut the visible config keys to the Essentials and migrate 2.0.0 configs safely #3576 classification of the reference file, not a hard-coded count. A key with no case and no listed exemption fails the driver, and so does deleting all of a key's cases. Exemptions are only for derived or removed keys, with a reason column. - Each case states the baseline (DIY, or appliance through the
is_applianceoverride inlib/pithead/10-installer-preseed.sh), the candidate edit, the expected exit and the exact set of FLAG/KEY/MSG rows fromapply --dry-run --porcelain(template:tests/stack/control/test-control-core.sh), compared for equality. A missing row, an extra row or changed wording fails. Where the dashboard control channel accepts the key, its preview returns the same rows. - Cases cover invalid and boundary values, null for optional keys (previews as the key's effective default, never "unset", per Use the effective default for null worker API ports #3564), and dependent pairs: Tari mode off with Tari settings, P2Pool clearnet with a network subnet change, a remote-Tari baseline, and the profile choice from Add a Performance / Balance / Privacy profile that sets the privacy keys together #3574 naming each governed key it changes once that lands.
- Regression cases exist for Preview mislabels P2Pool routing-only changes as a sidechain/PPLNS reset #3382, Tari-off preview warns about inactive clearnet sync and endpoint work #3383, Document and test null worker API port as the effective 8080 default #3377, Validate fleet workers.api_port before rendering XMRIG_API_PORT #3358 (65536 refused) and [core] Mixed valid edit silently persists null webhook omitted from preview #3388 (null webhook member refused, not silently kept), for every key that is still retained. Each case is red with its fix reverted (for Validate fleet workers.api_port before rendering XMRIG_API_PORT #3358, red at 723b1d7) and green on
develop-v2.1.0. local_miner.enabledhas an appliance case and a DIY case that pin whatever host behavior Sovereign: make the machines view usable for 2, 50 and 100 workers #2517 settles. This issue does not choose it.- Confirm and approval keys assert that the preview still requires the typed APPLY, the approval envelope and the payout-suffix confirmation, and that a token-less commit is refused.
- One
node --testcase feeds the row sets from the null, dependent-pair and profile cases into the Settings preview dialog from Sovereign: organize mining and advanced settings without losing fields #2530. It asserts one plain sentence per row, the effective default for null, no raw config key outside Advanced (v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 A4), and unchanged typed APPLY and payout-suffix inputs. - The driver is its own
tests/stack/run.shentry with adomain_ranline, not sourced by another test.stack_blocks_audit(tests/stack/lib/suite-blocks.sh) passes. The red and green CI run ids are quoted in the PR. - No explanatory source comments.
Possible solutions
- Two steps once Implement the approved v2.1.0 configuration model and migration contract #3557 lands: (1) the host driver and case table over the retained keys; (2) the dialog test once Sovereign: organize mining and advanced settings without losing fields #2530's preview exists. If the dialog slips, ship (1) alone and move the dialog case into Sovereign: organize mining and advanced settings without losing fields #2530's PR.
- Reuse the
--dry-run --porcelainpattern intest-control-core.shand the round-trip helpers intest-control-editable-allowlist.sh. A new driver is cleaner for therun.shentry; extending the allowlist test saves setup but mixes commit and preview checks. - Generate the case-table skeleton from the reference file and the Cut the visible config keys to the Essentials and migrate 2.0.0 configs safely #3576 tier table so a new key cannot ship without a case. A hand-written key list is a smaller diff but drifts.
Earlier scope, kept as evidence only (superseded 2026-10-27; do not implement from it)
What's the problem
Test debt from 2.0.0 RC testing, for 2.0.1 (owner, 2026-10-11: every defect an RC cut finds must be caught by automated tests going forward).
What slipped
Preview and validation are tested per key with containment checks: previewed_with (tests/stack/control/control-sensitive-preview.sh:10-14) passes if any row holds the needles, so a false extra row passes. Combined candidates, nulls and DIY-versus-appliance differences are not enumerated.
- Preview mislabels P2Pool routing-only changes as a sidechain/PPLNS reset #3382 (RC4): a p2pool.clearnet or Docker-subnet-only change shows a sidechain and PPLNS reset row (lib/pithead/39-describe-change.sh:151-153).
- Tari-off preview warns about inactive clearnet sync and endpoint work #3383 (RC4): tari.mode off with clearnet initial sync warns about inactive sync and endpoint work; describe_change sees one key, never the staged mode.
- Dashboard exposes appliance-only local miner toggle on DIY without guidance #3357 (RC3): local_miner.enabled is editable on DIY with no guidance.
- Document and test null worker API port as the effective 8080 default #3377 (RC4): a null workers.api_port previews as "unset"; the effective value is 8080 (lib/pithead/33-render-env.sh:190).
- Validate fleet workers.api_port before rendering XMRIG_API_PORT #3358 (RC3, since closed): workers.api_port 65536 was accepted.
what it impacts
Where it runs
Tier-1 CI: the driver in a tests/stack/run.sh block (required "Shell tests (pithead suite)"); node cases in required "Frontend logic tests (node --test)".
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
Cost
M. Seconds of runtime; at least 111 rows.
acceptance criteria
Done when
- Red on develop for Preview mislabels P2Pool routing-only changes as a sidechain/PPLNS reset #3382, Tari-off preview warns about inactive clearnet sync and endpoint work #3383, Document and test null worker API port as the effective 8080 default #3377 and Dashboard exposes appliance-only local miner toggle on DIY without guidance #3357 (all open); red at 723b1d7 for the 65536 row (Validate fleet workers.api_port before rendering XMRIG_API_PORT #3358); green with the fixes.
- Deleting any leaf's rows fails the driver.
- Registered as its own run.sh entry with a domain_ran line, not sourced by another test; stack_blocks_audit (tests/stack/lib/suite-blocks.sh:7) passes; CI run ids quoted.
possible solutions
Test to build
- tests/stack/control/editable-keys.tsv plus driver tests/stack/control/test-editable-keys.sh: at least one row per leaf of config.reference.json (111 today, _docs excluded), spanning the editable, confirm and approval classes (lib/pithead/42-control-policy-and-host-checks.sh:51, :75, :113). A leaf with no row or exemption fails the driver.
- Columns: baseline (DIY, or appliance via the is_appliance override at lib/pithead/10-installer-preseed.sh:165-168), candidate edit, expected exit, and the EXACT set of FLAG/KEY/MSG rows from apply --dry-run --porcelain (template tests/stack/control/test-control-core.sh:98-105), compared for equality, not containment. The control preview must give the same rows where that channel accepts the key.
- Rows cover invalid and boundary values, null for optional keys, and dependent pairs: tari.mode off with tari.*, p2pool.clearnet with a network.subnet change, a remote-Tari baseline (tests/stack/test-sync-gate-rearm.sh:28).
- Node cases: PreviewModal wording for null (dashboard/mining_dashboard/web/static/config/configpreview.mjs:41-42); local_miner.enabled with appliance false and true, per the Dashboard exposes appliance-only local miner toggle on DIY without guidance #3357 decision. docs/configuration.md:243 must say what null means.
Activity
pithead-developer commentedon Oct 21, 2026
Parked in Icebox under the lean roadmap (owner, 2026-10-21): this tests a surface that v2.1.0 reshapes, so writing it now means rewriting it; the feature PRs carry their own tests.
pithead-developer commentedon Nov 16, 2026
Blocked on #2530.
Blocked on #3557.
Parked until the lean UI lands (see the park comment above). The native blocked-by links already hold it, and the tick removes
blockedwhen every listed issue closes.