Repository navigation
Closed
Labels
design:adrNeeds a new or updated ADR in adr/kind:docsREADME, docs/, runbook, rustdoc or ADR prose only
Description
Severity: LOW + INFO (aggregated)
25 low-severity and 4 informational issues found during ADR architecture review.
Cross-Reference & Consistency (10 issues)
- Architecture.md simplified selection formula omits reputation — Line 77 quotes
rate_per_mb x rtt_mswithout the reputation weighting factor from the canonical formula in ADR 001. (architecture.md) — Fixed in docs: fix 10 cross-ADR consistency issues #97 - "Four ALPN protocols" should be "Three" — architecture.md header says four, but the table lists three ALPNs plus iroh-gossip. (architecture.md) — Fixed in docs: fix 10 cross-ADR consistency issues #97
- Origin backend list varies — NFS appears in ADR 001 but not in architecture.md's supported origins table or
OriginStoretrait. (000, 001, architecture.md) — Fixed in docs: fix 10 cross-ADR consistency issues #97 - Missing cross-references from ADR 002 to slashing ADRs — Line 29 mentions slash evidence but doesn't reference ADR 004 (challenge bonds) or ADR 005 (slashing mechanisms). (002) — Fixed in docs: fix 10 cross-ADR consistency issues #97
- Stale clarification note in ADR 001 — Line 118 explains a formula discrepancy with ADR 005 that no longer exists. (001, 005) — Fixed in docs: fix 10 cross-ADR consistency issues #97
-
BuybackBurnerinterface naming mismatch —setMinBuybackAmountvs "Minimum accumulation before buyback" in ADR 004's parameter table. (003, 004) — Fixed in docs: fix 10 cross-ADR consistency issues #97 - ADR 008 references ADR 001 "Section 9" — Uses fragile numbered section references instead of anchor-based cross-references. (001, 008) — Fixed in docs: fix 10 cross-ADR consistency issues #97
- ADR 011 emergency blacklist sunset not mentioned — ADR 009 defines a 12-month sunset for emergency blacklisting, but ADR 011 doesn't reference it. (009, 011) — Fixed in docs: fix 10 cross-ADR consistency issues #97
- ADR 010
PaymentChannelname collision — RenamesStablePaymentChannelback toPaymentChannel, colliding with the pre-ADR-003 concept. (003, 010) — Fixed in docs: fix 10 cross-ADR consistency issues #97 - System diagram labels "paid per-MB USDC" — Becomes inaccurate with ADR 010 multi-token support. (architecture.md) — Fixed in docs: fix 10 cross-ADR consistency issues #97
Completeness Gaps (10 issues)
- Gossip deduplication strategy undocumented — iroh-gossip is epidemic broadcast; ADR 001 handles same-sender ordering but not multi-path dedup. (001)
- Probe cache TTL coupled to slashing window — 15s TTL = slashing_window/2, but this dependency isn't cross-referenced. (001, 005) — Fixed in docs: cross-reference probe cache TTL ↔ slashing window dependency (ADR 003, 005) #115
- iroh 0.35 evaluation details not recorded — ADR 000 pins the version but doesn't list which APIs were evaluated. (000) [INFO]
- ADR 002 doesn't address encrypted blob content addressing — BLAKE3 hash covers ciphertext, not plaintext when encryption is active. Should clarify. (002, 006)
- Offline lease
encrypt(device_key, lease)underspecified — Algorithm depends on platform keystore; brief note on expected primitive would help. (006) — Fixed in docs: fix offline lease sealing flow and specify encryption primitive in ADR 006 #110 -
server_secretrotation signaling unspecified — How do clients detect epoch key invalidation? No error code or signal defined. (006) - Watchtower
fee_offerfield conflicts with fixed-rate model — Registration message suggests negotiation but fee formula is fixed. (007) - Region code source and validation unspecified — Self-declared ISO 3166-1 alpha-2? Manipulable but self-correcting via latency scores. (005)
- No rate bounds refresh interval — Nodes querying on-chain rate bounds have no guidance on refresh frequency. (003, 005)
- ADR 011 origin blacklisting stake mechanics vague — "Same effect as stake ejection" but exact mechanism (slash amount? unbonding?) unspecified. (011)
Minor Architecture/Security (5 issues)
-
SafeERC20should be noted for production — ADR 003 uses baretransfer; acceptable for USDC but needs SafeERC20 with ADR 010 multi-token. (003) — Fixed in docs: use SafeERC20 in ADR 003 staking examples #102 - Cold-start reputation bonus can push score above 1.0 — Additive 0.05 bonus has no post-application clamp documented. (008) — Fixed in 94b0495
- Slash escalation gameable with 91-day spacing — 90-day reset means intentional misbehavior once per 91 days always gets first-offense penalty. (004) — Fixed in docs: prevent slash escalation gaming via increasing reset periods #103
-
data_correctbinary metric at 40% weight may underweight corruption — A BLAKE3 mismatch (malicious or corrupt) only drops interaction score by 0.4, same weight as delivery speed. (008) - Regional governance bodies lack appeal mechanism — No process for disputed regional blacklist entries or override by global governance. (011)
Informational (4 issues)
- BLAKE3 hash must cover nonce+ciphertext — ADR 006 should specify canonical blob format for consistent hashing. (006)
- Token distribution table validated — architecture.md 20% buyback matches ADR 004. No issue. (004, architecture.md)
- Reputation rate limits are approximate — Gossip delivery order and clock differences cause local enforcement inconsistencies. Acceptable for soft anti-spam. (008)
- Wire protocols table validated — architecture.md correctly lists all three ALPNs from ADR 005. (architecture.md)
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 10 cross-ADR consistency issues (#95)
docs: fix 10 cross-ADR consistency issues (#97)
docs: use SafeERC20 in ADR 003 staking examples (fixes #95)