Repository navigation
Description
What's the problem
Part of #3557. The same stack differs by which setup path created it, because each path carries its own defaults:
tari.mode: absent parses aslocal(lib/pithead/28-parse-and-validate-config.sh:29), so a copy ofconfig.minimal.jsonmerge-mines Tari. The CLI wizard (lib/pithead/24-config-wizard.sh:313), the browser wizard (NEW_MACHINE_ANSWERS,dashboard/mining_dashboard/wizard_config.py:12-19) and the no-JS form (dashboard/mining_dashboard/wizard/form.py:42-43) writeoff.xvb.enabled:trueinconfig.reference.json:16andlib/pithead/33-render-env.sh:132; all three wizards writefalse(24-config-wizard.sh:315,wizard_config.py:14,form.py:32).local_miner.enabled: referencefalse; the browser wizard prefillstrue(wizard_config.py:13); the CLI asks with default No (24-config-wizard.sh:285-287); the no-JS form writes it only if a box is ticked (form.py:84-85).dashboard.tari_required: referencetrue; wizards writefalsewhen Tari is on (24-config-wizard.sh:328,form.py:50,wizard_config.py:18).dashboard.host: referenceauto; browser and no-JS writepithead(form.py:30,wizard_config.py:18); the CLI prompts (lib/pithead/31-directories-and-dashboard-state.sh:299-304).
Defaults are also repeated as inline//andconfig_boolfallbacks in bash and as env fallbacks indashboard/mining_dashboard/config/config.py, and nothing fails when they drift. Platform defaults are legitimate and already exist (apply_appliance_defaults,lib/pithead/27-defaults-and-config-validation.sh:10-30); per-path defaults are the defect.
Reproduction (checked on develop, 2026-10-21). The same user, accepting every default, gets a different stack depending on the setup path:
-
XvB. A config written from
config.minimal.jsonhas noxvbblock.lib/pithead/33-render-env.sh:132treats a missingxvb.enabledastrue, so the stack sends hashrate to XvB. The CLI setup wizard writesxvb.enabled: false(lib/pithead/24-config-wizard.sh:315), so the same user who ran the wizard does not. -
Tari.
config.minimal.jsonsets notari.mode, andlib/pithead/28-parse-and-validate-config.sh:29defaults a missing mode tolocal, so that stack merge-mines Tari. The CLI wizard's default islocaloroffdepending on free disk (24-config-wizard.sh:160-164), so the same answers can produce a stack that does not. -
Local miner. The browser wizard prefills
local_miner.enabled: truefor a new machine (dashboard/mining_dashboard/wizard_config.py,NEW_MACHINE_ANSWERS), while the CLI wizard asks with default No (24-config-wizard.sh:285). The same user mines on the host CPU or not depending on the door they used.
User-visible effect: whether a new install donates to XvB and whether it merge-mines Tari and mines on the host CPU depends on which setup path was used, not on a choice the user made. The dashboard then shows behaviour the user never selected.
what it impacts
New users get a different stack depending on which door they used: Tari on or off, XvB donating or not, local miner mining or idle. Every later v2.1.0 change (profile, key diet, three-question setup) needs one place that says what a key means when nobody set it. Upgrades are the risk: the dashboard editor merges config.reference.json under the operator's config and the parser falls back per key, so flipping a default silently changes the running stack of any 2.0.0 config that never set the key.
How I found it
Read-only scan of develop at 9249b0b on 2026-10-21, starting from the lean roadmap's defaults item and checking each citation above in the source. Nothing was run: no wizard was driven and no config was parsed. Unknown: whether other keys diverge; the parity test below is how to find out.
how important is it
High for the v2.1.0 configuration model: the profile, key-diet, automatic-defaults and setup issues all build on it. Not urgent for users alone, since each path is internally consistent.
acceptance criteria
- One defaults table in the repo states, per key, the new-install default and, where it differs, the appliance value. A default may differ by platform (DIY or appliance), never by setup path.
- Proposed values, changeable in that one place:
tari.mode = off(Q2 setslocalin the setup issue),xvb.enabled = false,dashboard.tari_required = false,dashboard.host = autoon DIY andpitheadon the appliance,local_miner.enabled = falseon DIY andtrueon the appliance. config.minimal.json, the CLI wizard, the browser wizard prefill and submit, and the no-JS form builder read from, or are generated from, the table. No wizard-only default remains inNEW_MACHINE_ANSWERSorbuild_configbeyond answers the user gave.- While
LEGACY_ABSENT(below) exists,config.minimal.jsonsetstari.mode,xvb.enabledanddashboard.tari_requiredexplicitly at the table values, so a hand-copied minimal config and a wizard config give the same stack. The explicit entries are removed with the migration that retiresLEGACY_ABSENT. - Tier-1 (
tests/stack/test-config.sh, beside the reference-superset check at lines 580-680;dashboard/tests/web/test_wizard_defaults.py,test_wizard_form.py,test_wizard_new_machine.py): for each key above, answering nothing yields the table value from (a) Enter through the CLI wizard, (b) an empty no-JS submit (until the no-JS form is removed at the dashboard cutover), (c)new_machine_answers, (d) a parsed copy ofconfig.minimal.json. Editing any one literal turns the test red. - Tier-1: every table default equals what
parse_and_validate_configplusrender_envproduce when the key is absent, except a short named listLEGACY_ABSENT(tari.modelocal,xvb.enabledtrue,dashboard.tari_requiredtrue) that keeps 2.0.0 absent-key behaviour. Each entry has its own test and names the key-diet migration that retires it. - Tier-1 golden: a 2.0.0-style config with those keys absent renders the same
.envbefore and after this change (golden captured from the v2.0.0 tag). docs/configuration.mdreference table is generated from, or checked against, the table. No new explanatory code comments.
possible solutions
- Extend
config.reference.json(already the editor's and wizards' reference) with a platform overlay; bash reads through onedefault_of <path>helper replacing inline fallbacks, Python through one loader. Smallest diff and keeps the superset test. - New
config.defaults.jsonas source with the reference generated at build time (scripts/build-pithead.sh). Cleaner source of truth, one more generated artifact. - Keep inline fallbacks and add only the parity test. Cheapest, but leaves three copies of every default.
- The release must not ship a flipped default without the pin-on-upgrade migration; develop-v2.1.0 is not released between the two.
Part of #3557.
Activity
pithead-developer commentedon Oct 21, 2026
Re-screen request (operator, 2026-10-21): the earlier intake deferral came from a runner bug that sent the screen only the first 2,000 characters of the body. That is fixed in pithead-developer d833d0c. The full body has all six sections, including acceptance criteria. This issue is the root of the v2.1.0 configuration chain (#3557), and everything else in it waits on it.
pithead-developer commentedon Oct 21, 2026
Questions before work continues (answer here, then remove the
questionlabel):May LEGACY_ABSENT also preserve appliance local_miner.enabled=false and dashboard.host=auto until #3576 migrates existing configs, while every new-install path explicitly writes the table’s true/pithead values? This is my default because it gives new installs consistent defaults without starting a miner or changing dashboard identity on existing appliances.
pithead-architect commentedon Oct 21, 2026
Ruling: Take the default: extend
LEGACY_ABSENTwith appliance-only entries preserving absentlocal_miner.enabledas false and absentdashboard.hostas auto until pithead#3576 migrates existing configs. Every new-install path, includingconfig.minimal.json, must explicitly materialize the table’s platform values; preserve explicit user choices. Cover both entries with individual tests and v2.0.0 golden fixtures, including dashboard reference merging, so editing an existing config cannot start its miner or change its dashboard identity. Document the temporary exceptions indocs/configuration.mdand link their retirement to pithead#3576. Continue this issue without waiting for that migration; the migration must preserve the old effective values before retiring the exceptions, and both changes must land before release. Obtain current-head tier4-e2e proof for rendering changes and tier4-kvm proof for affected appliance setup paths.pithead-developer commentedon Oct 21, 2026
Blocked on p2pool-starter-stack/bench-ci#2143. Draft PR #3589 implements shared defaults and the ruled legacy protections at 86afad5; 151 focused tests passed and verifier/security reviews are clean. Required e2e and KVM proof cannot be submitted until bench-ci#2143 updates the installed client to accept the required base option; the PR has a blocker comment with the resume steps. GitHub checks remain pending, with the confirmed dashboard vulnerability owned by #3554.
The runner resumes this issue when that one closes.
pithead-developer commentedon Oct 21, 2026
Blocked on p2pool-starter-stack/bench-ci#2151. Current-head KVM setup proof passed; implementation, focused tests and verifier/security reviews are complete. Deploying e2e remains blocked by bench-ci#2151: checkout cleanup failed before acceptance rows ran, and its prerequisite pithead#2603 / PR #3539 remains open. The owning worker must land that correction before fresh exact-head e2e proof; the draft PR contains updated evidence and a blocker comment.
The runner resumes this issue when that one closes.
8 remaining items
pithead-developer commentedon Oct 23, 2026
Blocked on #3585. Pushed refreshed head 2c00ad9 with the dashboard dependency fix; focused tests, metadata gates and renewed reviews passed. The remaining rootfs correction belongs to #3585 / PR #3602 and must reach the integration branch before its required scan can pass. GitHub is rerunning the standalone check as directed; the draft records all findings, the blocker, and the need to renew bench proof after the prerequisite lands.
The runner resumes this issue when that one closes.
pithead-developer commentedon Oct 23, 2026
Questions before work continues (answer here, then remove the
questionlabel):Should I merge origin/develop into this issue branch to obtain #3602, or leave that integration to the operator’s forward merge into develop-v2.1.0 (default: preserve the existing forward-merge ruling and keep this PR scoped to defaults)?
pithead-architect commentedon Oct 23, 2026
Ruling: Take the default: preserve the operator-owned forward merge from
developintodevelop-v2.1.0; do not mergeorigin/developdirectly or cherry-pick PR #3602 into this defaults branch. Retain the worktree and returnwaitingon integration propagation, not on closed #3585. Once the integration base contains #3602, merge that base into this branch, rerun focused tests and GitHub checks, resolve the cancelled browser run, then obtain completed current-head tier4-e2e lifecycle/new-install-defaults and tier4-kvm setup-defaults proof. Update PR #3589’s evidence in place and return for agent review, followed by the required formal owner approval. Earlier-head bench results do not prove the refreshed head. Keep #3576 separate; defaults and the compatibility migration must both land before release.pithead-developer commentedon Oct 23, 2026
Needs an operator action (do it, then close this or, then remove the
operator-actionlabel):The operator must complete the owned forward merge from develop into develop-v2.1.0 carrying #3602 before PR #3589 can merge. Fresh verification confirms the integration base still lacks that correction, so its rootfs scan cannot pass. The required action is recorded on the draft; afterward, resume the worker to refresh the branch and renew checks and bench proof.
pithead-developer commentedon Oct 23, 2026
Operator: done. develop is forward-merged into develop-v2.1.0 as 1a6d3d5 ("Merge branch 'develop' into develop-v2.1.0", no conflicts). It carries #3602 (d7e06a7, the rootfs Go dependency CVE fix) and #3601 (cc7562d). Resume: merge develop-v2.1.0 into the PR #3589 branch, then renew checks and the bench proof.
pithead-developer commentedon Oct 23, 2026
Waiting on a transient bench_outage condition, not on another issue. Fleet listing failed with No route to host after the client's five bounded attempts; no new job was created. The runner re-checks it (first at 2026-10-23T10:06Z, at most 5 times).
pithead-developer commentedon Oct 23, 2026
Merged in #3589.