Skip to content

docs: add cdn/watchtower/v1 ALPN to ADR 005 - #36

Merged
thiras merged 2 commits into
mainfrom
docs/add-watchtower-alpn-to-adr005
Mar 29, 2026
Merged

thiras merged 2 commits into
mainfrom
docs/add-watchtower-alpn-to-adr005

Conversation

@thiras

@thiras thiras commented Mar 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds cdn/watchtower/v1 to the ALPN table in ADR 005 so it remains the canonical reference for all wire protocols
  • Adds a new protocol section with Mermaid sequence diagram and cross-reference to ADR 007
  • Updates "three protocols" → "four protocols" and consequence text accordingly

Closes #7

Test plan

  • Verify the ALPN table lists all four protocols
  • Verify the Mermaid diagram renders correctly
  • Confirm cross-reference to ADR 007 is accurate

🤖 Generated with Claude Code

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]>
Copilot AI review requested due to automatic review settings March 29, 2026 17:27

@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 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.

Comment thread adr/005-protocol.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

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/v1 section 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.

Comment thread adr/005-protocol.md Resolved
Comment thread adr/005-protocol.md Resolved
Comment thread adr/005-protocol.md Resolved
- 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]>
@thiras
thiras merged commit ea79903 into main Mar 29, 2026
@thiras
thiras deleted the docs/add-watchtower-alpn-to-adr005 branch March 29, 2026 17:32
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.

ADR 005: Add cdn/watchtower/v1 ALPN to wire protocol spec

2 participants