Skip to content

ADR 005: Define error handling and retry semantics #29

Closed

Description

@thiras

Category: Missing Decision

No ADR specifies behavior for common error scenarios:

  1. StreamResponse returns ok: false — Does the client retry the same node? Try another? How many retries before giving up?
  2. Node returns redirect — Is there a redirect depth limit? Can redirects form a cycle? (A → B → A)
  3. Malformed gossip message — Drop silently or penalize sender's reputation?
  4. Payment channel runs out of funds mid-stream — Graceful shutdown with partial delivery, or abrupt disconnect?
  5. Node goes offline mid-stream — Does the client auto-resume from byte_offset on another node? How quickly?
  6. Probe timeout (>200ms) — Is the node excluded from selection? For how long?

Recommendation

Add an "Error Handling" section to ADR 005 covering at minimum:

  • Retry policy (max retries, backoff)
  • Redirect depth limit (e.g., max 3 hops)
  • Mid-stream failure recovery (auto-resume via byte_offset)
  • Channel exhaustion behavior

ADRs affected

  • ADR 005 (Wire Protocol)
  • ADR 003 (Payment Model — channel exhaustion)

Activity

  1. added
    design:missing-decision
    on Mar 29, 2026
  2. added a commit that references this issue on Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

design:missing-decision

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions