Repository navigation
Description
What's the problem
While a chosen clearnet sync has no host attestation of the return to Tor, ./pithead status prints CLEARNET INITIAL SYNC OR TOR TRANSITION PENDING and ./pithead doctor warns. After the attestation the banner is gone and doctor reports all node P2P is Tor-only (manual checklist steps 1.10 and 1.13). No test asserts this operator text: print_clearnet_banner (lib/pithead/04-status.sh) and the doctor block (lib/pithead/06-doctor.sh) are only stubbed in tests. The predicate clearnet_tor_attested is tested in test-clearnet-firewall.sh, and tier 4 asserts the transition itself.
A second problem arrives with #3574. Under the Performance profile the nodes stay on clearnet and never return to Tor, yet the banner and the doctor result depend only on the sync flag plus the attestation. Performance would show "transition pending" for ever, or a change made without a test could claim "Tor-only" while a node is on clearnet. The text must be right for every profile, and then be pinned by a test.
What it impacts
- Operators who run
statusordoctorunder Performance: a permanent "pending" warning that contradicts a deliberate choice, or a false all-clear about how P2P is routed. - Operators with a temporary clearnet sync under Balance or Privacy: this text is the host-side signal that the IP is still exposed, and nothing guards it against regression.
- Maintainers: checklist steps 1.10 and 1.13 stay manual until a test exists.
How I found it
- Building the manual QA walkthrough (docs(release): full manual QA walkthrough in the release checklist #3065, part of Automation gaps found by the manual release checklist #3068): steps 1.10 and 1.13 had no test and no issue.
- Re-read 2026-10-27 on
developanddevelop-v2.1.0: the banner, the doctor WARN and the all-clear key only onMONERO_CLEARNET_SYNCorTARI_CLEARNET_SYNCbeing true andclearnet_tor_attestedfailing.doctoralready has an info-line pattern for an opted-out check (the Tor-egress firewall row). - The draft PR for Add a Performance / Balance / Privacy profile that sets the privacy keys together #3574 (Add coordinated privacy profiles and Tor-only inbound peering #3632, read from its diff, nothing run) makes Performance skip the Tor transition and adds an informational node-side startup line. It changes
statusonly to print the profile and leavesprint_clearnet_bannerand the doctor block untouched, so no one owns the Performance wording of these two commands. Unknown: whether Add coordinated privacy profiles and Tor-only inbound peering #3632 changes before it merges; check it first.
How important is it
Medium, and the P3-hardening label stays. The text has no routing effect, but it ships with the Performance profile in v2.1.0, and a permanent false warning on a deliberate choice is a visible defect. It starts after #3574 lands (the profile and PITHEAD_PROFILE in .env must exist). The old block on #2774 is obsolete: #2774 is closed.
Acceptance criteria
All checks run in tier 1 (no docker, no bench), reuse the attestation fixture of test-clearnet-firewall.sh, and set the profile through PITHEAD_PROFILE in .env as #3574 renders it.
- Balance and Privacy,
MONERO_CLEARNET_SYNC=trueand, separately,TARI_CLEARNET_SYNC=true, no attestation:statusprints the PENDING banner naming Monero, Tari, orMonero + Tarias set, anddoctoremits the clearnet WARN. - Same flags after a valid attestation: no banner, and
doctoremitsall node P2P is Tor-only. - A missing attestation, one that names a different transition (stale), and one the host does not own each keep the banner and the WARN.
- Performance (flags true, never attested):
statusprints no PENDING banner anddoctoremits no clearnet WARN.doctoremits one info line saying P2P uses clearnet by the Performance choice, like the firewall opt-out row. - Invariant over every case above plus a Performance config with one sync flag explicitly false:
doctornever printsall node P2P is Tor-onlywhile a local node's P2P is on clearnet (an unattested override, or Performance), and the PENDING banner never appears under Performance. docs/privacy.mdstates whatstatusanddoctorprint for a temporary override and for Performance.- No dashboard or old-UI change; no explanatory code comments.
Possible solutions
- Smallest: a helper next to
clearnet_sync_activethat readsPITHEAD_PROFILE;print_clearnet_bannerreturns early under Performance and the doctor block prints the info line instead of the WARN or the all-clear. Add the tier-1 fragment besidetest-clearnet-firewall.sh. - If Add coordinated privacy profiles and Tor-only inbound peering #3632 is still open when this is picked up, ask for the Performance wording there and keep this issue to the test. Dashboard wording (status badge, profile preview, the
clearnet_exposedalarm) stays with Add a Performance / Balance / Privacy profile that sets the privacy keys together #3574 and the v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 spec. - Other doctor rows under Performance (egress firewall, Tor clearnet egress) are not audited here; report any permanent warning against Add a Performance / Balance / Privacy profile that sets the privacy keys together #3574 rather than widening this issue.
Earlier scope, kept as evidence only (superseded 2026-10-27; do not implement from it)
What's the problem
Manual step: checklist 1.10 and 1.13.
- While a chosen clearnet initial sync (or its Tor transition) is pending,
statusprintsCLEARNET INITIAL SYNC OR TOR TRANSITION PENDINGanddoctorwarns. - After the host attests the return to Tor, the banner is gone and doctor reports
all node P2P is Tor-only.
Current coverage:
print_clearnet_banner(lib/pithead/04-status.sh) and the doctor block (lib/pithead/06-doctor.sh) are only stubbed out in tests.- The predicate
clearnet_tor_attestedis tested (test-clearnet-firewall.sh), and tier 4 asserts the transition itself, but no test asserts this operator text.
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):
- With
MONERO_CLEARNET_SYNC=trueand no attestation, assert the banner and the doctor WARN. - After writing a valid attestation (the existing
test-clearnet-firewall.shfixture), assert the banner is gone and the OK line is shown.
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 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.
test: pin uid explicitly, unset profile and single doctor line (#3083)
test: source the clearnet text fragment from the firewall domain, res…
status: drop the stale banner header comment and reuse tor_egress_cho…
status/doctor: right clearnet text for Performance, pinned by a tier-…
pithead-developer commentedon Nov 24, 2026
Merged in #4430.