Repository navigation
Description
Summary
After a payer process dies mid-stream, the next pull on that lane gets voucher rejected: UnderFold. That rejection is meant to heal: the node attaches a WatermarkBundle, and the payer reseeds and retries (VoucherRejectReason::UnderFold docs, crates/protocol/src/client.rs ~L1305). In this run the in-process heal failed three times in 0.8 s. The rejection then surfaced as Fatal(Command) and aborted a 41 GB bundle pull after 28 MB. A fresh process started 6 s later paid the same lane without any rejection.
Evidence (testnet, 2026-09-30, CLI ef4bb891)
The trigger: a killed payer. At ~18:52:47 UTC I killed a running decdn bundle pull --hash ea8ae18f…3a97 (openai/gpt-oss-20b) with SIGTERM. hel1 was serving it 4e302437… on pool 0xdb5db181… (trace a2c2356403e181271ac044f8a5947d24: byte_len=1610612736, outcome=failed, 52.7 s). The killed payer had sent reveals it never persisted. This is the case the advance_presigned comment describes: "A payer process that sent reveals and exited before it persisted them resumes here, so it gets the rejection that carries the fold it owes" (crates/incentive/src/lane.rs ~L769).
The failed heal, next pull of the same bundle, 19:03 UTC. hel1 serve_stream for 4e302437…, all from peer 713ffa4c…, all outcome=stopped reason=voucher_rejected:
| start (UTC) | duration | range | trace |
|---|---|---|---|
| 19:03:26.37 | 9.4 s | 3489660928 + 64 MiB | abe53cb3b30f45e03050234696ae2b9e |
| 19:03:36.81 | 205 ms | 3489660928 + 64 MiB | 24662daf68a22e29c48985edb782fe6b |
| 19:03:37.11 | 209 ms | 3548151808 + 8.2 MiB | 2701b46e9a2d7fcae6db732af0b81c8b |
| 19:03:37.42 | 208 ms | 3548151808 + 8.2 MiB | 68daad5e4c1cb4ca8da9d8d27f6291ce |
Client, -v:
19:03:37.628 a lane faulted; its remainder goes to the other lanes provider=0xEE08… hash=4e302437… offset=3489660928 len=67108864 landed=61587456 fault=Fatal(Command) error=voucher rejected: UnderFold
failed: openai-gpt-oss-20b/model-00001-of-00002.safetensors: voucher rejected: UnderFold
pulled into … (12 fetched, 0 linked, 0 skipped, 0 reused, 0 excluded, 1 failed)
downloaded 28.0 MB
Error: voucher rejected: UnderFold
- This is not the documented terminal case. That case (amount covered, bytes not) logs a
warn!inalready_covered(crates/client/src/lib.rs~L2451), and noWARNappears in the client log. Soheal_watermark_desyncreturnedReseededorStaleeach time, and each retry was rejected again. - The ledger was healable. The next process, started at 19:03:40, paid hel1 on the same pool without a rejection (814 MB landed on one leg by 19:07:58). What failed was the in-process retry, not the persisted ledger state.
Why it hurts
fault::classifymakes anyUpstreamVoucherRejectedthat survives the healFatal(FatalScope::Command)(crates/client/src/fault.rs~L66). One provider's lane stops every item of the bundle, even though other providers held the same blob. A lane-scoped fault (drop the provider for this run) would have finished the pull.- The heal branch taken (
ReseededvsStale) is logged only atdebug, so a normal-vrun can't show why the retry kept failing.
Repro (partial), 21:14–21:22 UTC, -vv
I pulled Qwen2.5-7B (--hash 6e9b67de…c6cd), sent SIGTERM at 60 s (6.8 GB landed), and re-ran the same bundle with -vv. It completed (440 s, 0 failed) and did not reproduce the abort. It did show the heal branches:
- 4×
voucher rejection carried a watermark ahead of ours; reseededat stream start. This is the killed run's unpersisted payments, healed as designed. - 5×
trailing-proof rejection carried a watermark our ledger is already past; retrying from the ledger(Healed::Stale). In every one, the client's committed ledger was ahead of the node's bundle:
21:16:16.630 bundle_amount=412159 bundle_bytes=43177899373 committed_amount=412309 committed_bytes=43193628013
21:16:28.892 bundle_amount=412739 bundle_bytes=43238716781 committed_amount=412889 committed_bytes=43254445421
21:16:31.028 bundle_amount=412739 bundle_bytes=43238716781 committed_amount=412979 committed_bytes=43263882605
The last two lines show the loop. The retry "from the ledger" was rejected again with the same bundle. Meanwhile the client's committed amount advanced by 90 more, and the node's watermark didn't move. already_covered says a ledger past the bundle "has advanced since, or holds vouchers the node never accepted; the retry then either proceeds or draws the reason that says which". Here it drew the same trailing-proof reason again, so Stale can repeat while the gap grows. In this run the lane got through. In run 2 the same shape fits the three rejections in 0.8 s that ended in Fatal(Command).
Proposed
-
Stalewithcommitted > bundle: when the retry draws the same trailing-proof rejection with an unchanged bundle, treat it as "holds vouchers the node never accepted". Rebase to the bundle, or re-anchor the chain root, instead of retrying from a ledger the node has rejected twice. A fresh process heals, which fits a stale in-process chain root or in-flight voucher. - Scope a voucher rejection that survives the heal to the lane or source, not
Command. - Log the heal branch at
infowhen a voucher rejection is retried.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsDone
Activity
fix(client): keep size-ceiling and newer pull-through bars, mark only…
fix(client,node): drop the claim-bounded end gate, order pull-through…