Skip to content

ADR 003: Concurrent streams with different voucher intervals underspecified #61

Closed

Description

@thiras

Category: Missing Specification

Severity: HIGH

File: adr/003-payments.md (~lines 87-88)

When multiple streams share a channel with different negotiated voucher intervals, the spec says:

  • "Effective interval is the minimum across all active streams"
  • "Client MUST immediately issue a cumulative voucher if the current unvouchered byte count exceeds the new effective interval"

Unresolved questions:

  1. Signaling: Who notifies the client that the effective interval has changed? Does the node send a RenegotiateInterval message?
  2. Enforcement: If the client doesn't comply and issue the required voucher, what happens? Stream termination? Channel closure?
  3. Stream departure: When a 1 MB interval stream closes, does the effective interval revert to 1024 MB for the remaining stream? Is there a new notification?
  4. Race condition: What if a new stream joins and the client has already buffered 500 MB unvouchered on the existing stream?

Recommendation:
Specify the signaling mechanism (node→client message), compliance enforcement (stream termination after N seconds of non-compliance), and interval reversion on stream departure.

ADRs affected

  • ADR 003 (Payment Model)
  • ADR 005 (Wire Protocol — message format)
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