Skip to content

client: the self-heal re-drive of a bundle head leaves about 2 MiB delivered but unpaid #2722

Closed

Description

@thiras

crates/e2e/tests/cli_bundle_pull_range_dedup.rs: cli_bundle_pull_self_heals_a_lying_recipient_hint fails with:

Error: self-heal must pay exactly a's whole file plus b's complement plus b's re-driven head = 8823222, got 6734774

It needed a retry in 3 of the last 12 green ci.yml runs (for example run 40746384696).

Analysis

  • The shortfall, 2,088,448 B, sits entirely in b's re-driven head [0, 4 MiB).
  • 6,734,774 − wire(a) − wire(complement) = 2,122,240 = wire of head groups 127..256 exactly.
  • So head groups 0..127 were delivered but never paid, and a second leg resumed at group 127.
  • 2,097,152 (two 1 MiB reveals) − 2,088,448 = 8,704, which is exactly the proof overlap of a resume at group 127.

This is a real client under-pay, not a test-model error. It has the same shape as #2718: about two 1 MiB intervals delivered and not billed after a resume. The CLI runs at RUST_LOG=warn and the test prints no stderr on this assertion, so the trigger is not captured.

Ask

Capture the client log on failure, find the resume path that drops the delivered-but-unpaid span, and fix it in the client.

Activity

  1. added
    kind:bug
    prio:high
    kind:test
    area:payments
    area:client
    on Oct 28, 2026
  2. moved this from Backlog to In progress in deCDNon Oct 28, 2026
  3. moved this from In progress to Done in deCDNon Oct 28, 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

    area:clientarea:paymentskind:bugkind:testprio:high

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions