Repository navigation
Description
What's the problem
Part of pithead#4209. The AC needs an automated live-Tor row: "two purposes get different exit circuits". The tier4-e2e check battery already dials the Tor SOCKS proxy from a container (tests/integration/lib/run-state.sh assert_egress_dial_pair, egress-probe.sh), and tests/integration/lib/xvb-egress-probe.py establishes the in-image Python probe idiom (base64 payload + docker exec via live-xvb-support.sh:172), but nothing today reads an exit identity per purpose and compares them. Tor isolates by SOCKS auth (IsolateSOCKSAuth default), so credentialed purposes must land on distinct circuits.
What it impacts
Releases: this is the acceptance evidence for pithead#4209's Tor-circuit isolation on the v2.0.5 release milestone.
How I found it
Split of pithead#4209 after reading the dial-pair battery on origin/develop-v2.0.5 (ad76587).
How important is it
The AC's live-proof half; without it the per-purpose children are unproved against real Tor.
Acceptance criteria
- New
tests/integration/lib/purpose-circuit-probe.py: inside the dashboard image it importsmining_dashboardconfig/helper, and for each of the labelshealthandnotify(helper-built,purpose_proxy(TOR_SOCKS_PROXY, label)throughproxy_map) GETshttps://1.1.1.1/cdn-cgi/traceand parsesip=; exit 0 only when every label answered and the IPs pairwise differ; stderr stays free of proxy credentials (labels +ip=classes only). - Wired as an it_pass/it_fail row in
tests/integration/lib/run-state.shbesideassert_egress_dial_pair(local mode), following the live-xvb-support.sh base64+docker-exec idiom; on identical-IP collision retry once with an attempt-suffixed label (fresh identity forces a fresh circuit) before failing. - The row runs as part of tier4-e2e targeted on the head; register the new lib file in the selftest inventories that pin module/function lists (
tests/integration/selftest/selftest-run-modules.shand any run-state.sh pinner) and keep the integration selftests green. - Update the docs that enumerate e2e legs/circuit claims (
docs/dev/integration-testing.md,docs/dev/manual-qa/diy/09-privacy-tor.md) to state purposes now exit distinct circuits and name this row.
Possible solutions
The pinned Cloudflare cdn-cgi/trace echo (pithead already probes 1.1.1.1) read through helper-built purpose proxies from the dashboard container; exit-fingerprint equality is the observable, with one bounded re-attempt because distinct circuits can still coincidentally share an exit relay.
Parent: #4209
Worker brief: Test tier: tier4-e2e targeted (the new live row) plus GitHub tiers 1-3 for harness/selftest changes. Add tests/integration/lib/purpose-circuit-probe.py per the pinned contract (health vs notify purpose proxies, cdn-cgi/trace ip= compare, one bounded retry with attempt-suffixed label), wire the row next to assert_egress_dial_pair in run-state.sh local mode via the live-xvb-support.sh base64+docker-exec idiom, update selftest inventories, and correct the egress/circuit docs. Submit tier4-e2e targeted through bin/bench-submit with --base develop-v2.0.5 and quote the bench-ci evidence block. Lands after the helper child (needs purpose_proxy); ideally after the notify child so labels match product callers. ruff check + format on the new .py; shell gates (shellcheck, selftests) for the .sh edits; no comments/docstrings.
Activity
pithead-developer commentedon Nov 22, 2026
Blocked on #4320. The probe this issue asks for needs
purpose_proxy(), and that helper isn't ondevelop-v2.0.5yet. I searched the branch tip (b1b4ce8) and found nopurpose_proxyand no per-purpose credentialed proxy code. Onlyproxy_mapandTOR_SOCKS_PROXYexist. The probe is specified to build its URLs throughpurpose_proxy(TOR_SOCKS_PROXY, label), so I can't write it against real code, and the tier4-e2e proof would test nothing. The brief also says this issue lands after the helper child, #4320, which is still open. The notify child, #4323, is open too, and the brief wants it in first so the labels match the product callers. Nothing is edited, branched or pushed. No PR exists, and no bench job was submitted. When #4320 merges intodevelop-v2.0.5, resume this issue. The work is then: writetests/integration/lib/purpose-circuit-probe.py, wire the row besideassert_egress_dial_pairinrun-state.sh, update the selftest inventories and the two docs, then runtier4-e2etargeted with--base develop-v2.0.5. Resuming after #4323 as well is better, so the labels match.The runner resumes this issue when that one closes.
testing: row requires the probe verdict, selftest reads the real prob…
docs: full path for the purpose circuit probe (#4324)
testing: section headers for the purpose circuit selftest (#4324)
Live tier4 row: dashboard purposes exit different Tor circuits (#4324) (
pithead-developer commentedon Nov 23, 2026
Merged in #4362.