Skip to content

Replace cdn/probe/v1 with a voucher-less stream-open; retire rate-manipulation slashing #2901

Closed

Description

@alpergundogdu

Summary

Fold the probe into the stream open. A client opens a stream to each candidate with no voucher. The StreamResponse carries the signed quote, the size proof, and an unsigned coverage hint. The client picks the best candidate, pays on that connection, and cancels the rest. The separate cdn/probe/v1 ALPN goes away. Rate-manipulation slashing goes away with it.

Why

  • Rate manipulation is a probe-to-stream offense only: a stream quote above a probe quote within 30 s of requester time (ADR 014 § Rate manipulation, ADR 005 § Rate discovery). With no probe quote there is nothing to contradict.
  • The protection is self-enforced. The client signs the price into each voucher, and the node refuses a voucher whose chunk_price differs from its quote. A node cannot charge more than the client signed.
  • The offense costs honest operators a 90-second wait before a rate increase takes effect, and it is the kind of slash that can hit an honest operator on a clock skew.
  • Today the chosen node needs a second round trip after the probe. The stream-open response reuses the connection for the download.
  • Removing the offense frees contract size in SlashJudge.

Scope

  • Protocol: add coverage to the StreamResponse unsigned extension, matching ProbeResponseExt. Keep the signed body {hash, ok, rate_per_mb, timestamp_us}. The size travels as the size proof in StreamResponseExt.outcome (Served(SizeProof)). Delete ProbeRequest, ProbeResponse, cdn/probe/v1.
  • Node: a stream open with no voucher answers with quote, size and coverage, and holds the blob (eviction pin) for the life of the open stream. This replaces the probe-triggered eviction hold. Limits that guard the probe today (per-peer and global token buckets, applied before any signature) move to the stream open, so an unauthenticated opener cannot make the node do admission work or on-chain reads.
  • Client: discovery fans out stream opens, ranks by RTT, quote and coverage, pays on the chosen connection and cancels the others. The persisted RTT map still skips fan-out for known peers.
  • Contracts: remove the RateManipulation offense from SlashJudge and ISlashJudge, and the evidence path in incentive (probe_sig, slash_watcher, slash_judge).
  • Docs: ADR 001 (probe cache TTL), 003 (probe fishing), 005, 014, 022, 028, 037 and the observability appendix. Remove PROBE_SLASH_WINDOW and the derived constants.
  • CLI: decdn probe and doctor live checks move to the stream-open path.

Open questions for the design

  • Admission work for a voucher-less open. The funding gates read on-chain state (cached briefly). Decide whether a voucher-less open answers before those gates, with quote and coverage only, so discovery costs the node no more than a probe does.
  • Whether an unauthenticated opener is allowed at all, or the open requires pool_id and a binding like any stream.
  • The unsigned coverage hint stays non-load-bearing: a requester checks it against the signed body, as ProbeResponseExt::consistent_with does today.

Not in this issue

  • A voucher inside StreamRequest for a trusted peer (saves one round trip, exposes one chunk per refuser).
  • Price-priority serving.
  • A client default max_rate_per_mb of about $0.017/GB (client config only).

Pre-mainnet, so the change is wire-breaking with no compatibility path.

Activity

  1. alpergundogdu commented on Nov 13, 2026

    @alpergundogdu
    ContributorAuthor

    Admission work for a voucher-less open. The funding gates read on-chain state (cached briefly). Decide whether a voucher-less open answers before those gates, with quote and coverage only, so discovery costs the node no more than a probe does. -> Admission work should happen after the first voucher to keep it simple.

    Whether an unauthenticated opener is allowed at all, or the open requires pool_id and a binding like any stream. -> I recommend a required pool. No unauthenticated probes.

  2. alpergundogdu commented on Nov 13, 2026

    @alpergundogdu
    ContributorAuthor

    #2877

    This issue needs to be built on top of this PR, because it makes streams cost nothing to the node until the first voucher arrives and Streams can be dropped without pulling anything

  3. moved this from Backlog to In progress in deCDNon Nov 18, 2026
  4. moved this from In progress to Done in deCDNon Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions