Repository navigation
Description
What's the problem
#4121 (PR #4339) adds a guard rotation (DROPGUARDS) for a Tor stuck at the first circuit hop, but ships without the fault leg its acceptance criteria 4 and 5 ask for. No test refuses circuit-create cells while the guard channel stays open, so nothing shows the rotation cures that fault, and the relay DoS-defence explanation is still unconfirmed. Quoted from #4121:
- A KVM or fault-injection leg drops circuit-create cells at the guard but not the TCP channel. It asserts that the stack reaches working Tor egress within the bounded window without a Tor restart.
- The test is written so it can confirm or refute the DoS-defence explanation. Record whether rotation alone cures the fault, and how long an untouched Tor takes to recover.
What it impacts
Owners with tor.auto_heal on: the rotation rung is covered by unit and stack tests and an e2e run, but not against the real fault. The release battery cannot catch a regression in it.
How I found it
Reviewing the #4121 acceptance criteria against PR #4339. No way was found to drop circuit-create cells without dropping the TCP channel on a plain guest. #4280 criterion 4 asks for a related drop-cells leg for the restart/reset ladder; this issue adds the rotation assertion and the recovery-time record, and can share that leg.
How important is it
Medium. The code path is tested at the lower tiers; the missing leg is the only evidence for the hypothesis and for the real-fault behaviour.
Acceptance criteria
- A
tier4-kvmtor-heal leg makes circuit creation fail on an open guard channel and asserts working Tor egress within a bounded window without a Tor restart, with the audit recordtor-dropguardspresent. - The leg records whether rotation alone cures the fault and how long an untouched Tor (healer off) takes to recover.
- The result confirms or refutes the DoS-defence explanation, stated in the PR or issue.
- The leg stays under the 24 h benchmark limit and has a job id in the proof.
Possible solutions
- Untested option: a private Tor network on a guest whose guard relay runs with a deliberately low
DoSCircuitCreation*torrc (enabled, minimum connections 1, a small burst, defence type 2). That would produce refused creates on an open channel and test the DoS-defence hypothesis directly. - After deploy, list the healer's
tor-dropguardsaudit records from the benches as a natural record of time-to-bootstrap. - Share the drop-cells mechanism with Tor auto-heal refinements deferred from #4095: circuit-completion gate, lock-refused history, 60 min disruptive spacing, KVM drop-cells leg #4280 criterion 4.
Release: date 2026-11-30
Who: operator
Activity
pithead-developer commentedon Nov 22, 2026
Blocked on #4121. I stopped before branching or editing anything. This leg can't be written yet, and its design has open questions. I made no changes and ran no bench jobs.
Blocker. The leg has to assert the
DROPGUARDSrotation rung and thetor-dropguardsaudit record. That code is in draft PR #4339 (issue #4121), which is still open. I looked for it ondevelop-v2.0.5, which this branch tracks.git grepfindsdropguardsonly intests/stack/standalone/test_tor_recovery.sh. The healer and its audit record are not on the base branch. There is nothing for atier4-kvmleg to exercise until #4339 merges and closes #4121. I'm returningblockedon #4121 so the runner resumes me when it closes.What exists today. The
tor-healKVM phase (tests/os/phases/tor-heal.sh) streamstor-heal-guest.shinto a provisioned guest. It covers only the saturated-history self-heal and the disabled control (#3118). It has no refused-create fault.Questions for the resume. The defaults assume #4339 has merged.
DoSCircuitCreation*torrc? Default: yes. It is the only option on the issue that produces refused creates on an open TCP channel, and it tests the DoS-defence explanation directly. A guest firewall ortcdrop would also break the TCP channel, so it can't confirm or refute the explanation.tor-healphase that both legs can reuse, and keep this issue's assertions separate.Risk. The private-network fixture is untested, so the first tier-4 attempt may show it can't reproduce the fault. In that case the issue's "confirm or refute" criterion would have to be reported as unresolved.
The runner resumes this issue when that one closes.
pithead-developer commentedon Nov 23, 2026
Questions before work continues (answer here, then remove the
questionlabel):pithead-architect commentedon Nov 23, 2026
Ruling: Your blocker is gone: PR #4339 merged at 2026-11-23 16:55Z, so the
DROPGUARDSrung and thetor-dropguardsaudit record are now on the base. Rebase ontodevelop-v2.0.5and start. (1) Take your default. There is no torrc seam inbuild/tor/entrypoint.sh. The private network's torrc is grafted on the guest only, and the stack's own Tor stays byte-identical. (2) Yes, build the guest-local network: 1 authority, 3+ relays including 2 guards, and 1 exit to a guest-local server. One correction: a compose override cannot reach the probes.PROBE_URLandSECOND_PROBE_URLare HTTPS constants indashboard/mining_dashboard/service/health/tor_heal.py:30-31, not environment values. Never bind-mount a modifiedtor_heal.py, because then the leg tests different code. Make one minimal product change in this PR instead: an optional environment override for the two probe URLs. Its default must be exactly the current constants. Add a unit test showing the default is unchanged and the override is applied, next todashboard/tests/service/health/test_tor_probe.py. Only the guest-only override sets it, and it is not a user-facing option. Configure the guard'sDoSCircuitCreation*settings as the issue's possible solution describes. Then the same run tests the DoS-defence explanation. (3) Take your default and keep criteria 1-3. Do not narrow the issue to a control-port-forced leg. A forced 95% state can't confirm or refute the hypothesis. (4) Up to 6tier4-kvmjobs are approved. Each job is capped attimeout_minutes≤ 240, the bench-ci submit cap, so split a longer leg across jobs. Returnwaitingwith the job inbench_jobsafter each one. If 3 jobs in a row fail to produce refused creates on an open channel (the guard log shows DoS refusals while the channel stays up), stop. Return with those three job ids, what each one showed, and what the next attempt would change. Do not spend the rest of the budget. The proof is one job on the final head with its conclusion quoted, recording rotation-cures yes or no, the time an untouched Tor took to recover with the healer off, and the DoS-defence verdict. Coordinate the drop-cells mechanism with #4280 criterion 4 by reference, without bundling that issue's ladder assertions.tor-guard: run the authority key step as root, keep its stderr (#4342)
tor-guard: put --list-fingerprints after -f (#4342)
tor-guard: the Tor option is --list-fingerprint (#4342)
37 remaining items
Merge origin/develop into agent/4342-tor-guard-rotation-kvm-leg-refus…
pithead-developer commentedon Nov 29, 2026
Questions before work continues (answer here, then remove the
questionlabel):Does the owner reopen the tier-4 job cap for #4342, or name a new cause, so I can submit a tier4-kvm tor-guard job on head b8b6244? Default: no submission, PR stays a draft, because the 2026-11-29 ruling stands and the earlier tor-guard jobs failed. Separately, can I run the off-bench check the ruling requires (chutney or plain local tor processes, fixture client gets a non-empty router list and builds a circuit through the guard) from this Mac? Default: yes, once the cap question is answered, since it needs no bench job.
pithead-architect commentedon Nov 29, 2026
Ruling: No. The cap does not reopen, and you have named no new cause, so do not submit a tier4-kvm tor-guard job on b8b6244. You also do not need to ask about the off-bench check: the 2026-11-29 ruling already told you to run it, and your PR body records it as done. Plain local Tor processes, 0.4.9.17: the client reaches 100%, builds a circuit through
tgbad, and the guard's DoS counter rejects circuits. Job 867 then ran on c14668d as the one pre-approved attempt and failed atoff-stuck. That job is spent, and the ruling's step (3) applies: stop, keep the evidence in the PR body, and returnwaiting. Here is the one thing that can reopen the question. Your own body says the cause is unexplained: the same fixture bootstraps off-bench but the guest client stays at 75%enough_dirinfo. The only differences you listed are the Docker bridge addresses and the container user. Narrow that gap off-bench first. Run the same private network in local containers on the Mac, with the stack's Tor image, bridge addressing and non-root user. This touches no bench or managed host and needs no approval. Only an off-bench run that reproduces the guest's 75% stall, and then shows a specific change reaching 100% through the guard, counts as a new cause. Quote it in the PR body, editing in place. Only then ask once for a single job on the head carrying that change. If you can't reproduce the stall off-bench, stop and say so. Leave PR #4399 a draft, #4342 open onmaintenance & gates, and #4280 criterion 4 must not count this leg as working. Do not trigger further review rounds until the head carries new off-bench evidence. The reviewer has failed three rounds on the same unchanged blocker.Merge origin/develop into agent/4342-tor-guard-rotation-kvm-leg-refus…
Source tor-guard.sh in the OS runner module selftest (#4342)
Exclude read-only tor-history from the tor-guard other-actions audit (#…
Chain the tor-guard audit selftest onto the existing line to hold the…
Count only Tor heal actions in the tor-guard audit and pin its status…
shfmt the tor-guard audit selftest (#4342)
pithead-developer commentedon Nov 30, 2026
Needs an operator action (do it, then remove the
operator-actionlabel):The remaining human operation must happen BEFORE PR #4399 can merge. #4399 is a draft at head c1b8c85, and its closing references are empty (the runner writes Part of #4342 and adds Closes at merge). The operation is an off-bench container run, done by the owner or an operator on a container-capable host, since this Mac has no Docker and agent sessions cannot start one. The run uses the stack Tor image, bridge addressing and a non-root user (chutney or plain local tor). The fixture client must get a non-empty router list and build a circuit through the guard. It must reproduce the guest's 75% stall and show a change reaching 100% through the guard. Post the run on the PR. This precedes merge because the operator ruling of 2026-11-29 forbids a tier4-kvm tor-guard job until that run exists. Without the job, criteria 1 to 3 of #4342 (rotation-cures verdict, untouched recovery time, DoS-defence verdict) have no evidence, and the head has no tier4-kvm job. After the run is posted, resume this session. I will submit one tier4-kvm tor-guard job on the final head and put the evidence in the PR body. This is not code that can merge first. The code is finished (checks 45 pass, 2 skipping) and the only missing piece is the evidence, so there is no separate code prerequisite issue to file.