Skip to content

node-origin: chained node→node pull-through omits the ADR 005 client binding #1117

Closed

Description

@alpergundogdu

Summary

Multi-hop node→node chained pull-through does not work: when a node pulls a cache-missed blob from an upstream node (NodeOrigin over cdn/client/v1), it sends no ADR 005 client identity binding. If that upstream also misses and would need to reactively pull the blob from its origin/peers, its pull_authorized gate fails (no verified_client), so it refuses with NotFound. Chained warming therefore stops at the first hop that already holds the blob.

This is the node→node analogue of #1115 (which fixed the direct-client case). The serve-path comment at crates/node/src/handlers/client.rs explicitly calls it out as a remaining follow-up.

Evidence (file/line)

  • crates/node/src/node_origin.rs:277 / :767 — the node→node requester obtains its ChannelContext from deps.buyer.open_or_reuse_channel(..) and never calls .with_client_binding(..), so ctx.client_binding == None.
  • crates/node/src/node_origin.rs:780 stream_fetch_tracked(..) and :286 open_progressive_pull(..) — both send the request with no ext.binding (the requester only attaches a binding when ctx.client_binding is Some).
  • crates/node/src/handlers/client.rs:563 pull_authorized() — requires a verified_client recovered from ext.binding whose address owns the named channel; an unbound upstream request cannot trigger a further pull-through.
  • crates/node/src/handlers/client.rs:1055 (post-fetch: stream_fetch omits the ADR 005 client identity binding, so reactive origin pull-through never fires for a direct client fetch #1115 comment) — "the node→node requester (node_origin) still omits [the binding], so multi-hop chained pull-through remains a follow-up."

Feasibility

node_origin opens/reuses a buyer PaymentChannel with its own eth key (deps.buyer), so it already holds everything needed to sign a binding: its own iroh endpoint node id (deps.endpoint.id()) and the buyer signer that owns the channel. The plumbing added in #1115 (sign_client_binding, ChannelContext::with_client_binding) is directly reusable — the requester just needs the CapacityBond bind domain (chain_id + capacity-bond address) threaded into NodeOriginDeps.

Proposed direction

  • Thread the CapacityBond bind domain into NodeOriginDeps (or derive it from existing chain config already available to the node).
  • In node_origin, after open_or_reuse_channel, attach ctx.with_client_binding(sign_client_binding(buyer_signer, deps.endpoint.id(), &bind_domain)) before stream_fetch_tracked / open_progressive_pull.
  • Add a two-hop integration test (leaf → node B (miss) → node C (miss, has fs origin)) proving the binding propagates and C serves reactively.

Relates to #1115.

Activity

  1. added
    kind:feature
    rust
    on Jul 12, 2026
  2. added a commit that references this issue on Jul 12, 2026
  3. self-assigned this
    on Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:featurerust

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions