Repository navigation
Closed
Description
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_pricediffers 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
coverageto theStreamResponseunsigned extension, matchingProbeResponseExt. Keep the signed body{hash, ok, rate_per_mb, timestamp_us}. The size travels as the size proof inStreamResponseExt.outcome(Served(SizeProof)). DeleteProbeRequest,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
RateManipulationoffense fromSlashJudgeandISlashJudge, and the evidence path inincentive(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_WINDOWand the derived constants. - CLI:
decdn probeanddoctorlive 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_idand a binding like any stream. - The unsigned
coveragehint stays non-load-bearing: a requester checks it against the signed body, asProbeResponseExt::consistent_withdoes today.
Not in this issue
- A voucher inside
StreamRequestfor a trusted peer (saves one round trip, exposes one chunk per refuser). - Price-priority serving.
- A client default
max_rate_per_mbof about $0.017/GB (client config only).
Pre-mainnet, so the change is wire-breaking with no compatibility path.
Activity
alpergundogdu commentedon Nov 13, 2026
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.
alpergundogdu commentedon Nov 13, 2026
#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
feat!: discovery is a voucher-less stream open; retire cdn/probe/v1 a…