Skip to content

ADR: reject malformed inbound protocol values unless real clients need the tolerance #2842

Closed

Description

@josecelano-bot

Goal

Record a repository-level ADR that says when the tracker tolerates a non-conforming client request and when it rejects it, so UDP and HTTP stop disagreeing by accident.

Background

Found while writing the primitives tests for EPIC #1347. The UDP announce accepted a negative left while HTTP rejects it (bug #2838, fixed in PR #2839), and Peer::is_seeder treated it as a seeder. No ADR covers values clients send; the existing tightest-protocol ADR covers values the tracker sends.

Maintainer position: tolerant implementations accept the widest range of clients, but strictness encourages good implementations, unless a meaningful share of real clients relies on the tolerant behavior.

Scope

In scope: one ADR in docs/adrs/ (rule, an empty register of tolerances, an inventory of existing inbound leniencies) and its index row. Docs only.

Out of scope: any production-code change (the left fix, rejection metrics, aligning the other inventory items); each becomes its own issue after the ADR merges.

Acceptance Criteria

Spec: docs/issues/open/<n>-inbound-tolerance-adr/ISSUE.md (in the PR).

Activity

  1. added 15 commits that reference this issue on Nov 12, 2026
  2. 9 remaining items

  3. added 11 commits that reference this issue on Nov 14, 2026
  4. added a commit that references this issue on Nov 14, 2026
  5. added 2 commits that reference this issue on Nov 16, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions