Skip to content

docs: add QUIC 0-RTT optimization for probe fan-out (#015) - #176

Merged
thiras merged 3 commits into
mainfrom
adr/015-zero-rtt
Apr 4, 2026
Merged

thiras merged 3 commits into
mainfrom
adr/015-zero-rtt

Conversation

@thiras

@thiras thiras commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds ADR 015 defining QUIC 0-RTT eligibility per ALPN with full replay safety analysis
  • cdn/probe/v1: enabled — idempotent, read-only probes; eliminates 1 RTT on warm connections during cache-miss fan-out
  • cdn/client/v1 and cdn/watchtower/v1: rejected — payment/state-changing side effects make replay unsafe
  • cdn/keys/v1: conditional — idempotent PlayRequest only; EpochKeyAuth deferred to post-handshake
  • Documents session ticket management (LRU cache, rejection fallback, observability metrics)
  • Cross-references added in ADR 005 (Connection Management) and architecture.md index

Test plan

  • Verify all ALPN strings in 015-zero-rtt.md match canonical definitions in 005-protocol.md
  • Verify cross-references resolve: [ADR 015](015-zero-rtt.md) links from 005-protocol.md and architecture.md
  • Grep for 0-RTT across all ADRs to confirm consistent terminology
  • Confirm architecture.md ADR index is in numerical order (014 → 015)
  • Verify CLAUDE.md next ADR number bumped to 016

🤖 Generated with Claude Code

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]>
Copilot AI review requested due to automatic review settings April 4, 2026 05:42

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread adr/015-zero-rtt.md Resolved
Comment thread adr/015-zero-rtt.md Resolved
Comment thread adr/015-zero-rtt.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.md and adr/005-protocol.md to 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.

Comment thread adr/015-zero-rtt.md Resolved
Comment thread adr/015-zero-rtt.md Resolved
Comment thread adr/015-zero-rtt.md Resolved
Comment thread adr/015-zero-rtt.md Resolved
Comment thread adr/architecture.md Resolved
Comment thread adr/005-protocol.md Resolved
thiras and others added 2 commits April 4, 2026 08:55
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]>
@thiras
thiras merged commit 36ab622 into main Apr 4, 2026
@thiras
thiras deleted the adr/015-zero-rtt branch April 4, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants