Repository navigation
docs: add QUIC 0-RTT optimization for probe fan-out (#015) - #176
Conversation
Define 0-RTT eligibility per ALPN with replay safety analysis. cdn/probe/v1 is the primary beneficiary — eliminates handshake RTT on warm connections during cache-miss fan-out. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request introduces ADR 015, which defines the implementation and safety rationale for QUIC 0-RTT connection establishment across different protocols. It specifies that cdn/probe/v1 and certain cdn/keys/v1 requests are eligible for 0-RTT to reduce latency, while payment and state-changing protocols are excluded to prevent replay attacks. Feedback highlights a potential logic conflict with ADR 006 regarding authentication requirements for PlayRequest, suggests aligning session ticket lifetime logic with RFC 8446, and notes an internal inconsistency regarding the handling of ineligible EpochKeyAuth data on the server side.
There was a problem hiding this comment.
Pull request overview
Adds a new ADR documenting QUIC 0-RTT usage policy and session-ticket handling, and wires it into the ADR index and related connection-management documentation.
Changes:
- Adds ADR 015 describing 0-RTT eligibility per ALPN with replay-safety rationale and operational guidance.
- Updates
adr/architecture.mdandadr/005-protocol.mdto cross-reference ADR 015 and summarize the decision. - Bumps
CLAUDE.md“next ADR number” to 016.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| CLAUDE.md | Updates the “next ADR number” convention to 016. |
| adr/architecture.md | Adds ADR 015 entry/summary to the architecture index. |
| adr/015-zero-rtt.md | Introduces ADR 015 detailing QUIC 0-RTT policy, replay analysis, ticket caching, and observability. |
| adr/005-protocol.md | Adds a connection-management note referencing ADR 015’s 0-RTT rules. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ADR 006 requires EpochKeyAuth before PlayRequest, making 0-RTT impossible on new connections. Also: use KeysMessage enum variants (ADR 013) instead of raw 0x01/0x02 bytes, reframe PlayRequest as side-effect-free (not deterministic due to nonce_wrap), and reword ticket_lifetime as a local security policy per RFC 8446. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Clarify that 30 parallel connections only applies when no existing connection exists (cold start or post-idle-timeout). On warm mesh, probes reuse existing connections via stream multiplexing. Also fix overstated latency claim: 0-RTT reduces from 2xRTT to 1xRTT, not to zero. Add missing --- separator in architecture.md. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Summary
cdn/probe/v1: enabled — idempotent, read-only probes; eliminates 1 RTT on warm connections during cache-miss fan-outcdn/client/v1andcdn/watchtower/v1: rejected — payment/state-changing side effects make replay unsafecdn/keys/v1: conditional — idempotentPlayRequestonly;EpochKeyAuthdeferred to post-handshakeTest plan
[ADR 015](015-zero-rtt.md)links from 005-protocol.md and architecture.md0-RTTacross all ADRs to confirm consistent terminology🤖 Generated with Claude Code