Repository navigation
Backlog
Labels
P2-correctnessReal defect, not yet user-visible. After P1, before any P3/P4bugSomething isn't workingtestingTests, CI, and test infrastructure
Milestone
Description
What's the problem
After the 2.0.4 forward merge (#4603), develop-v2.1.0 runs develop's four-step Tor heal ladder (#4095): two NEWNYMs, then a tor-recover state reset, then a Tor restart. The No-login Tor heal KVM leg, tests/os/tor-heal-guest.sh, kept 2.1.0's DisableNetwork version, which expects the older ladder.
- Its enabled-heal stage asserts that no
tor-recoverwas applied and that thestate.backup.*count did not change (tests/os/tor-heal-guest.sh:233-234). - The merged healer submits
tor-recoveron its third attempt every time (dashboard/mining_dashboard/service/health/tor_heal.py:308-312), and that reset writes a state backup. - The merged file also no longer carries develop's poisoned-state leg (os: fix #4122, #4123 — tor-heal proof survives Tor 0.4.9 state rewrites; heal phases skip reserved-node legs #4124), which proved the heal on a Tor state file with saturated circuit-build history.
What it impacts
- The tier-4 run on the 2.1.0 line. This leg will most likely fail at its verify-recovery stage, which turns the 2.1.0 release gate red.
- Coverage. develop's proof that the healer recovers a Tor whose state carries saturated circuit-build history (os: fix #4122, #4123 — tor-heal proof survives Tor 0.4.9 state rewrites; heal phases skip reserved-node legs #4124) is missing on the 2.1.0 line.
- Not operator-facing. The healer is develop's released 2.0.4 code; only its proof is out of step.
How I found it
Code reading during the forward merge in #4603, which disclosed it as a tier-4 caveat. The automated merge review on #4603 confirmed it. It has not been run on tier 4 since the merge, so it is unknown whether the leg fails on the first heal cycle or a later one.
How important is it
High for the 2.1.0 release. The release gate needs a green tier-4 run, and this leg is expected to fail there. It has no effect on running stacks.
Acceptance criteria
- On
develop-v2.1.0, the enabled-heal stage oftests/os/tor-heal-guest.shasserts the merged ladder: two confirmed NEWNYMs, one appliedtor-recoverwith one new state backup, then the Tor restart and the recovery notice. - The auto-heal-off stage still asserts no heal requests and an unchanged backup count.
- develop's poisoned-state leg (os: fix #4122, #4123 — tor-heal proof survives Tor 0.4.9 state rewrites; heal phases skip reserved-node legs #4124) runs on the 2.1.0 line, or this issue records why the DisableNetwork leg covers it.
tests/os/selftest-tor-heal.shchecks the updated assertions.- A tier-4 run of the leg at the 2.1.0 head passes, and the run is recorded on this issue.
Possible solutions
- Change the enabled-heal stage to expect
tor-recoverat the third step and one new backup, and keep the rest of 2.1.0's DisableNetwork leg. - Port develop's poisoned-state leg from os: fix #4122, #4123 — tor-heal proof survives Tor 0.4.9 state rewrites; heal phases skip reserved-node legs #4124 next to the DisableNetwork leg, so both ways of breaking Tor are proven.
- Tor auto-heal: after a guard rotation, saturated circuit history is never reset, and the KVM heal leg waits for that reset #4572 (after a guard rotation, saturated circuit history is never reset, and the 2.0.x KVM leg waits for that reset) touches the same ladder. Fixing both together may be simpler.
Models: claude-opus-5-5 (developer)
Metadata
Metadata
Assignees
Labels
P2-correctnessReal defect, not yet user-visible. After P1, before any P3/P4bugSomething isn't workingtestingTests, CI, and test infrastructure
Activity