Repository navigation
Closed
Labels
design:adrNeeds a new or updated ADR in adr/kind:docsREADME, docs/, runbook, rustdoc or ADR prose only
Description
Severity: MEDIUM (aggregated)
22 medium-severity issues found during ADR architecture review. Grouped by theme below.
Cross-ADR Consistency (7 issues) — ✅ Fixed in #96
-
bindNodeId()vsregisterNode()naming conflict — architecture.md referencesStakingRegistry.bindNodeId(), ADR 001 definesregisterNode(), ADR 003 defines a separatebindNodeId(). Responsibilities overlap. (architecture.md, 001, 003) -
StreamRequestmissing ephemeral binding fields — ADR 005's wire format lacks theethereum_addressandbinding_signaturefields defined in ADR 003 for client identity verification. (003, 005) - Overloaded "nonce" term —
noncemeans both "channel creation counter" and "voucher sequence number" in ADR 003. Rename channel creation counter tochannelNonce. (003, 005) - Gossip topic
reputation/v1breakscdn/prefix convention — All other topics usecdn/prefix. ADR 005 doesn't list the reputation topic at all. Rename tocdn/reputation/v1. (005, 008) - ADR 005 omits reputation and watchtower gossip topics — The authoritative wire protocol spec lists only
NodeAnnouncetopics, notreputation/v1or plannedWatchtowerAnnounce. (005, 007, 008) - ADR 010 channel ID formula change undocumented — Adds
tokenfield tokeccak256(client, provider, token, nonce)without noting the breaking change from ADR 003's formula. (003, 010) - Dispute window default value not in contract spec — ADR 003 says "default 24 hours, governable 12h–72h" but the initial deployment value is not specified in the contract interface. (003, 009)
Security / Architecture Gaps (9 issues)
- Counter-evidence for timestamp manipulation underspecified — Gossip is off-chain; the ADR doesn't explain how a node proves on-chain that it published a rate change between two disputed timestamps. (003, 005)
- Legitimate cache eviction falsely slashable — A blob evicted by LRU between probe (
has_blob: true) and stream request (within 30s) triggers phantom blob slashing. No defense for the eviction case. (003, 005) - 500ms unconditional probe wait with no early exit — Every cache miss adds 500ms latency even if a nearby node responds in 5ms. Consider early exit for sufficiently good scores. (001)
- No maximum blob size — Creates unbounded resource risks (cache exhaustion, 100K vouchers per stream for large blobs). Set a PoC configurable max or document the trade-off. (002, architecture.md) — ✅ Fixed in docs: add per-node max_blob_size with BlobTooLarge error in ADR 005 #114
- XChaCha20-Poly1305 nonce storage unspecified — ADR 006 omits how the 24-byte nonce is stored/transmitted. Client needs it to decrypt. (006) — ✅ Fixed in docs: specify XChaCha20-Poly1305 nonce storage in ADR 006 #112
-
server_secretcompromise exposes all epoch keys — No forward secrecy; compromise retroactively exposes all content wrapped under that secret. Should recommend HSM-backed derivation for production. (006) - Watchtower heartbeat proves chain liveness, not voucher state — A watchtower that lost its voucher database still submits valid heartbeats. Limitation should be explicitly acknowledged. (007) — ✅ Fixed in docs: acknowledge heartbeat proves chain liveness not voucher state in ADR 007 #111
- Watchtower gas bonus payment has no enforcement — Post-facto off-chain payment; watched party can refuse after dispute settles. (007)
- ADR 010 zero
RateBoundsdefault bypasses rate floor — New tokens added without explicit bounds have no floor enforcement, undermining ADR 009's free-riding protection. (009, 010) — ✅ Fixed in docs: enforce mandatory rate bounds on addToken in ADR 010 #113
Completeness Gaps (6 issues)
- Treasury fee splitting mechanism unspecified — Single treasury address receives all fees; how it splits to 4 allocations (dev/bounties/ecosystem/buyback) is unclear. Manual or automated? (003, 004)
- No protocol version negotiation strategy — Postcard has no schema evolution; ALPN bump requires simultaneous upgrade. No migration timeline policy documented. (005)
- No mechanism for closing zero-voucher channels — Provider can't close a channel where no vouchers were signed without waiting for 90-day expiry. (003) — ✅ Fixed in docs: allow provider-initiated zero-voucher channel close in ADR 003 #105
- 60-second clock sync requirement undocumented — Gossip validation silently drops messages from peers with >60s clock drift. NTP requirement not stated. (001) — ✅ Fixed in docs: document NTP clock sync requirement for gossip validation in ADR 001 #106
- ADR 008 missing PoC Scope section — Unlike ADRs 006/007, ADR 008 has no clear PoC scope table. "Static scores" is mentioned but undefined. (008) — ✅ Fixed in docs: add PoC Scope section to ADR 008 (reputation) #107
- Score clamping + EWMA interaction undocumented — The 0.05 clamp and alpha=0.1 EWMA overlap; their interaction should be explained. (008) — ✅ Fixed in docs: document score clamping and EWMA interaction in ADR 008 #108
Found during ADR architecture review (2026-04-01)
Metadata
Metadata
Assignees
Labels
design:adrNeeds a new or updated ADR in adr/kind:docsREADME, docs/, runbook, rustdoc or ADR prose only
Type
Fields
Priority
None yet
Activity
docs: fix 7 cross-ADR consistency issues (#94)
docs: fix 7 cross-ADR consistency issues (#96)