Repository navigation
docs: add cdn/watchtower/v1 ALPN to ADR 005 - #36
Conversation
ADR 007 introduced the watchtower protocol but ADR 005 — the canonical wire protocol reference — did not list it. Add the fourth ALPN to the summary table and a new protocol section with message flow diagram and cross-reference to ADR 007. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request updates the protocol documentation to include a fourth protocol, cdn/watchtower/v1, which handles channel-dispute monitoring. The changes include adding the protocol to the ALPN table, providing a sequence diagram for registration and voucher updates, and detailing the watchtower's non-custodial role. Feedback was provided to ensure the sequence diagram is consistent with ADR 007, specifically regarding message fields and the inclusion of acknowledgment messages.
There was a problem hiding this comment.
Pull request overview
Updates ADR 005 (Wire Protocol) to include the cdn/watchtower/v1 ALPN and document the watchtower wire protocol at a high level, keeping ADR 005 as the canonical reference for system ALPNs.
Changes:
- Update ADR 005 decision text/table to list four ALPN protocols, adding
cdn/watchtower/v1. - Add a new
cdn/watchtower/v1section including a Mermaid sequence diagram and references to ADR 007. - Update consequences text from “three” to “four” connection types.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Use ADR 007's exact WatchtowerAccept fields {accepted, fee_rate, terms}
- Add VoucherUpdate payload fields {channel_id, amount, nonce, signature}
- Add missing VoucherAck response in the voucher update loop
- Use W/T participant aliases matching ADR 007 (W=Watched Party, T=Watchtower)
- Widen "watched node" to "watched party (typically node)" per ADR 007's
symmetric framing
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Summary
cdn/watchtower/v1to the ALPN table in ADR 005 so it remains the canonical reference for all wire protocolsCloses #7
Test plan
🤖 Generated with Claude Code