Repository navigation
docs: fix 7 cross-ADR consistency issues - #96
Conversation
Resolve the Cross-ADR Consistency section of issue #94: 1. Clarify bindNodeId() vs registerNode() — distinct operations now documented in architecture.md, ADR 001, and ADR 003 2. Document StreamRequest ephemeral binding — connection-level client identity binding specified in ADR 005 3. Rename channel creation nonce → channelNonce to disambiguate from voucher nonce across ADR 003, 005, 010 4. Rename reputation/v1 → cdn/reputation/v1 to follow namespace convention in ADR 008 5. Add missing gossip topics (ReputationReport, WatchtowerAnnounce) to ADR 005 protocol table 6. Document ADR 010 channel ID breaking change (token field addition) with cross-references in ADR 003 and ADR 010 7. Add dispute window constructor parameter with PoC default (86400s) and safety bounds to ADR 003 contract spec Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request updates several Architecture Decision Records (ADRs) to clarify the distinction between node registration and cryptographic identity binding, refine terminology around nonces, and document initial deployment parameters. Key changes include renaming the channel creation counter to channelNonce to distinguish it from voucher nonces, updating the multi-token channel ID formula to include the token address, and standardizing gossip topics under the cdn/ namespace. Review feedback suggests improving the readability of the Channel ID definition by using human-readable names and correcting an inconsistency where the protocol fee was listed as 1% instead of 3%.
There was a problem hiding this comment.
Pull request overview
This PR addresses a subset of the “Cross-ADR Consistency” backlog by aligning terminology and cross-references across ADRs, primarily around payment/channel nonce naming, node registration vs binding semantics, and protocol/gossip topic naming.
Changes:
- Clarifies
registerNode()vsbindNodeId()as distinct operations across architecture + ADRs. - Renames/standardizes channel-creation nonce terminology (
channelNonce/clientChannelNonce) and documents the ADR 003 → ADR 010 channel ID formula relationship. - Normalizes gossip topic naming under the
cdn/namespace and adds a gossip-topics subtable in ADR 005.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| adr/architecture.md | Updates payment architecture text to distinguish node mesh registration vs cryptographic binding. |
| adr/001-network.md | Adds an explicit note differentiating mesh membership (registerNode) from binding (bindNodeId). |
| adr/003-payments.md | Standardizes channel nonce terminology; adds constructor/default dispute window details; clarifies bindNodeId vs registerNode. |
| adr/005-protocol.md | Adds a gossip topics subtable; documents client identity binding at connection level. |
| adr/008-reputation.md | Renames reputation gossip topic to cdn/reputation/v1. |
| adr/010-multi-token.md | Updates channel ID formula to use channelNonce and adds a breaking-change/migration note relative to ADR 003. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Fix feePercentage from 100 (1%) to 300 (3%) to match ADR 003/004 - Add ethereum_address and binding_signature optional fields to StreamRequest struct definition, resolving ambiguity with ADR 003 - Reword "safety bounds below" to reference the table explicitly - Add canonical source-of-truth note for nodeIdToAddress mapping vs NodeInfo.ethAddress Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Summary
Resolves the Cross-ADR Consistency section (7 of 22 items) from #94.
bindNodeId()vsregisterNode()naming conflict — clarified as distinct operations across architecture.md, ADR 001, ADR 003StreamRequestmissing ephemeral binding fields — documented connection-level client identity binding in ADR 005channelNonce/clientChannelNoncein ADR 003, 005, 010reputation/v1breakscdn/prefix — renamed tocdn/reputation/v1in ADR 008disputeWindow_parameter and PoC default (86400s)Test plan
clientNonce(notclientChannelNonce) in channel ID contexts — should be zeroreputation/v1withoutcdn/prefix — should be zero🤖 Generated with Claude Code