Skip to content

Tor heal KVM leg on develop-v2.1.0 still expects the old healer ladder, and develop's poisoned-state proof is gone #4663

Backlog

Description

@pithead-developer

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-recover was applied and that the state.backup.* count did not change (tests/os/tor-heal-guest.sh:233-234).
  • The merged healer submits tor-recover on 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

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 of tests/os/tor-heal-guest.sh asserts the merged ladder: two confirmed NEWNYMs, one applied tor-recover with 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.sh checks 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

Models: claude-opus-5-5 (developer)

Activity

  1. added this to the v2.1.0 milestone on Dec 1, 2026
  2. added
    bug
    testing
    P2-correctness
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2-correctnessbugtesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions