Repository navigation
Description
What's the problem
Coverage/documentation gap: explicit null worker API port is shown as unset
Classification: core documentation/testing gap. No invalid-port acceptance failure is alleged.
Finding
On shipped frozen RC4 source eba5c14f2e9b955b2ab1627be6356fd3837ebde1
(separate source-test overlay b9aa1b0bde5f80b371d6c1f88a7ef85ab8e0ab5b), a mixed dashboard candidate containing
dashboard.energy.cost_per_kwh: 0.18 and workers.api_port: null previews successfully. The
preview displays workers.api_port: 8080 → unset.
This is supported normalization, not a new product failure: the dashboard validator explicitly
accepts absent or null as the 8080 fleet default, and the host renderer writes effective
XMRIG_API_PORT=8080. Source inspection shows the commit path retains the raw null while rendering the effective default.
The live test canceled this preview; it did not apply a port change. The preview describes the raw
value rather than explaining the effective default.
Gap
The field documentation describes the default as 8080 and explains omission, but does not say
that explicit null has the same meaning. The preview UI renders JSON null as unset, which can
make an operator think the worker API was disabled or removed even though the effective port stays
8080.
Lowest-tier coverage suggestion
Add one focused contract test that submits workers.api_port: null alongside an energy-only
change, asserts preview success, asserts the preview raw value is null, and verifies the rendered
environment remains XMRIG_API_PORT=8080. If UI wording is intentionally retained, document that
unset means “use the built-in 8080 default.”
Deduplication
The existing #3358 coverage is for rejecting invalid integer/type/range values and accepting
numeric boundaries. This draft covers the separate supported-null semantics and preview/runtime
clarity gap; it should not rewrite or reopen #3358. No precise existing GitHub issue was found by
searching api_port, workers.api_port null default preview, and 8080 unset configuration preview.
what it impacts
Impact is not separately established in the existing report; confirm the affected users or behavior.
How I found it
Source evidence
dashboard/mining_dashboard/service/workers/worker_adopt.py:197-205accepts missing/null and
states that null means the 8080 default.lib/pithead/27-defaults-and-config-validation.sh:56-60skips integer validation when the
value is null.lib/pithead/33-render-env.sh:189-193,438resolves null with// 8080and emits the port.lib/pithead/43-control-approval-and-preview.sh:290-300compares the raw merged candidate,
so explicit null remains a preview value.dashboard/mining_dashboard/web/static/config/configpreview.mjs:39-42formats null as
unset.docs/configuration.md:195-196,243documents the 8080 default but does not document explicit
null equivalence.- Existing validator coverage is
dashboard/tests/service/workers/test_worker_adopt.py:353-358;
renderer coverage is numeric-only intests/stack/test-config-document.sh:106-110. - Live preview was canceled and the draft discarded. Whole config/env/Tor/Caddy, boot/source,
container and miner identities remained unchanged across the bounded preview-only batch.
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
No distinct solution options are recorded; investigate the existing report before choosing an approach.
Activity
VijitSingh97 commentedon Oct 11, 2026
Owner ruling (2026-10-11), the contract: a saved
workers.api_port: nullmeans exactly the same as omitting the key: the default, 8080. That holds everywhere: loading accepts it, the preview names the effective default (not "unset"), and render uses 8080. The docs say so. The regression test asserts that contract on every surface.VijitSingh97 commentedon Oct 12, 2026
Found in 2.0.0 RC5 testing: the null port also affects worker API authentication. Besides the preview wording,
dashboard/mining_dashboard/config/worker_endpoints.py:154-164attaches no endpoint-bound read token when the persistedworkers.api_portis null: the matching local port is None, not 8080. So an authenticated worker API read fails for that worker. Workaround: omitworkers.api_portor set it to 8080 explicitly. Under the owner's contract (null = omitted = 8080), the fix covers the token path too, and the regression test asserts it.pithead-developer commentedon Oct 21, 2026
Questions before work continues (answer here, then remove the
questionlabel):Draft PR #3564 fixes null-port preview wording and authenticated worker reads, with documentation and regression tests. Local tests and metadata gates pass; adversarial and security reviews are clean. GitHub checks remain queued for the runner.
pithead-architect commentedon Oct 21, 2026
Ruling: Continue with PR #3564; this is a checkpoint. Preserve the owner's null = omitted = 8080 contract across preview, rendering and authenticated reads, including the registered shell regressions and quoted RED/GREEN proof. Return
waitingwhile current-head GitHub CI is pending. The changed dashboard, documentation and test paths require tiers 1–3; no tier-4 job is required. Hand off through the normal runner review: current-head agent PASS, then the owner's formal approval, before merge.pithead-developer commentedon Oct 21, 2026
This is now part of #3575 under the v2.1.0 configuration tracker #3557 (operator, 2026-10-21). Implement it as that issue's part; any open PR for it stays and is reviewed as part of the same scope.
pithead-developer commentedon Oct 21, 2026
Blocked on #3554 (fix PR #3556). At current head
ec08d190f7589b84f67328fe02d93e59bb686b14, the required dashboard image check fails in both retained Trivy attempts: certifi 2026.6.17, CRITICAL GHSA-6q48-6c7w-9gw2, fixed version 2026.10.19, exit 1. The current-head job log was read directly. The fetcheddevelop-v2.1.0base still pins the affected certifi version indashboard/uv.lock; PR #3556 remains open againstdevelop.The null = omitted = 8080 implementation, both documentation pages, registered shell regressions, quoted RED/GREEN proof and clean verifier/security reviews are finished. Local node/Python tests and metadata gates pass. The #3554 owner must land the dependency correction and ensure it reaches
develop-v2.1.0; then this worker can merge the base into the existing branch, push a new head and obtain the required green image check before normal runner review and owner approval. No duplicate dependency update or scan exception is added here.pithead-developer commentedon Oct 21, 2026
Blocked on #3554. The current-head dashboard image scan fails on the certifi vulnerability owned by #3554. The null-port fix, documentation, regression tests and local reviews are complete; blocker evidence is recorded on the issue and PR. The #3554 owner must land its correction on develop-v2.1.0 before this branch can obtain a new head with green required checks.
The runner resumes this issue when that one closes.
pithead-developer commentedon Oct 22, 2026
The #3554 dependency is resolved on this PR at
ae15a4f5e27a6f523cba9320a19cb10a4c982780. PR #3556 merged intodevelop, whiledevelop-v2.1.0still lacks its fix; this branch now merges the exact upstream commit6f9386eafd594fa837b5aeaf12fbe29d84af086c, which is only one commit beyond the release base. It adds the patched certifi lock, dependency-security tests and matching guidance without unrelated develop changes.The null-port contract and registered shell regressions are preserved. Focused frontend, authentication and dependency-security tests, lock validation and Ruff checks pass, with clean renewed verifier and security reviews. Current-head GitHub CI is queued, including the required dashboard image scan. The draft stays in the normal runner review flow, followed by the owner's formal approval; no tier-4 job is required by the operator ruling.
pithead-developer commentedon Oct 22, 2026
Merged in #3564.
release: prepare v2.0.1
release: prepare v2.0.1
release: prepare v2.0.1 (#3620)
fix(integration): drain inline pregates before baseline restore (#3530)