Skip to content

ADR review: 25 low-severity and 4 informational findings #95

Closed

Description

@thiras

Severity: LOW + INFO (aggregated)

25 low-severity and 4 informational issues found during ADR architecture review.


Cross-Reference & Consistency (10 issues)

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_secret rotation signaling unspecified — How do clients detect epoch key invalidation? No error code or signal defined. (006)
  • Watchtower fee_offer field 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)

  • SafeERC20 should be noted for production — ADR 003 uses bare transfer; 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_correct binary 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    design:adrkind:docs

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions