Skip to content

cache/ADR 037: origin_range_pull_enabled is specified but was never implemented; range pull-through is ungated #1555

Closed

Description

@thiras

ADR 037 specifies an operator toggle origin_range_pull_enabled (default true) for the ranged origin pull (§Parameters, adr/037-regional-proxy-warming.md:118; normative use at :74 — "A node MAY disable the attempt entirely"). The knob does not exist in code: the only workspace hit is a doc comment on RangePullOutcome::Unsupported (crates/cache/src/engine.rs:781, "…or origin_range_pull_enabled was off at the call site") describing a call site that cannot exist.

The actual gate on the serve path is request-shape + authorization only: crates/node/src/handlers/client/dispatch.rs:446-451; try_range_pull_through (handlers/client/fill.rs:339-357) then runs origin_size → pull_through_range unconditionally.

Decide one:

  • implement the knob (full config surfacing + gate at dispatch.rs:446) — its main payoff is skipping an origin HEAD per ranged miss for operators whose origin cannot range; or
  • strike the row from ADR 037 §Parameters, fix :74, and fix the engine.rs:781 doc clause, accepting that the fallback already makes the attempt always-correct

Activity

  1. added
    design:adr
    rust
    prio:low
    on Aug 1, 2026
  2. self-assigned this
    on Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

design:adrprio:lowrust

Type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions