Skip to content

e2e G-CLIENT-04: client dispute defense (incl. decdn channel dispute CLI) #1037

Closed as not planned

Description

@alpergundogdu

Build first: decdn channel dispute (+ close / status) for manual defense. Depends on: e2e harness (time control).

  • Steps: node submits closeChannel with a stale (low-nonce) voucher → assert the client/daemon detects it within the dispute window and submits a higher-nonce voucher via disputeChannel → advance past window → settleChannel → assert the honest balance wins.
  • Negative: dispute with an equal/lower nonce rejected; with sequencer censorship simulated, ≥24 h effective response remains; unspent deposit refunds to client; the permissionless third-party dispute path (appendix-fraud-detection) also works.

Spec anchor: internal/Product/gaps-and-e2e-test-specs.md#g-client-04.

Activity

  1. added
    prio:high
    kind:test
    area:cli
    on Jun 30, 2026
  2. yigitdot commented on Jul 18, 2026

    @yigitdot
    Contributor

    Triage note: automated dispatch skipped this — crates/common/src/cli/channel.rs:28 has List/CoopClose/Close/Settle/Clean only; no dispute/status, so the CLI half must be built first (as the issue says). Splitting the CLI subcommand into its own issue would make the e2e half dispatchable afterward.

  3. alpergundogdu commented on Aug 20, 2026

    @alpergundogdu
    ContributorAuthor

    Resolved by design — there is nothing to build.

    This issue was written against the retired pairwise-channel FSM (closeChannel → disputeChannel with a higher-nonce voucher → settleChannel). Under the shared PaymentPool that model no longer exists, and the "client dispute defense" scenario cannot occur:

    • Redemption is cumulative and provider-only (min(desired, capRoom, remaining), provider == msg.sender). Presenting a stale/low voucher only pays the node less, so there is no incentive to lie and nothing for a counterparty to dispute.
    • closePool is owner-only and moves no funds — it just starts the grace window. It cannot understate a node's earnings, so there is no falsified value for anyone to challenge. reclaim returns only the unspent remainder.
    • A node's entire defense is to redeem/redeemMany before disputeDeadline. The grace window is the dispute window; appendix-fraud-detection.md states there is no third-party dispute role.

    The contract half is already covered by Foundry (test_redeem_allowedDuringClosingBeforeDeadline, the closePool/reclaim suite). The node half — auto-redeem before reclaim — is being simplified in #1763 / #1761 (drop the dedicated close monitor in favour of the periodic redeem sweep). No decdn channel dispute CLI verb and no dispute endpoint are needed.

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:clikind:testprio:high

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions