Skip to content

two-leg spine residuals from the #2064 review #2069

Closed

Description

@yigitdot

Four residuals surfaced by the #2064 review, collected here (none block that PR).

1. Flow A encode-task panic is laundered into a local-origin fault

UnfinishedGuard::drop (crates/cache/src/origin_range.rs:427-443) parks CacheError::OriginError { "...ended without completing (panic or cancel)" } when the spawned encode task dies, and Drop for OriginRangeWire (:575-577) only abort()s — the JoinHandle is never joined, so a panic's payload and backtrace are lost to everything but the global hook. Downstream it logs as "own-origin pull leg failed; local-origin fault" (pull_leg.rs:1136): an operator audits S3 while the cause is a code bug. Fix: catch_unwind around the encode body (or join on last-consumer drop) and park a CacheError::Store carrying the panic text, distinguishable from the cancel case.

2. Permit saturation and long pacer waits are debug-only

  • range_pull_permit (engine.rs) logs pool-full at debug! with no counter; all draws of all fills share MAX_CONCURRENT_RANGE_PULLS = 4 permits, and a hung origin holds one for a whole draw. A permit-starved fill surfaces only as an unattributed client stall.
  • A pull sitting in the pacer's Wait (window-full or min-draw) for an extended period emits nothing; a future encoder-order regression would present as a mystery client timeout. Add a saturation counter and a wait-duration signal (warn-after-threshold or pull_wait_seconds).

3. No-Range origin: degrade before signing

An origin that publishes a valid {H}.obao4 but declines ranged GETs passes the dispatch serviceability probe, so the node signs ok: true and the first draw then fails the stream (BackendSource::open bails on origin_range_wire → None). Pre-#2064 this degraded to the buffered whole-blob pull. Degrading before the signature needs a pre-signature first-window probe (or an Origin capability flag). The current fail-cleanly behavior is pinned by a test added in #2064.

4. Duplicate egress when an attach is refused (#2062 residual)

FillRegistry::claim refuses to attach a request that starts ahead of a live fill's paid frontier — the fix for observer starvation — so overlapping same-hash fills can both fetch the overlap (duplicate S3 egress; duplicate upstream USDC on the peer tier). served_paid lags pulled_frontier by up to a credit window even under a healthy payer, so this is reachable outside the stalled-owner case. Every bounded alternative examined reintroduces starvation (attach-then-wait) or breaks the exposure bound (jumping the frontier over unpaid bytes). #2064 adds a counter at the skip site so the cost is observable; this section tracks whether a smarter rule (e.g. attach when the overlap is already fully pulled and present) is worth it.

🤖 Generated with Claude Code

Activity

  1. added
    kind:feature
    area:node
    on Sep 19, 2026
  2. moved this from Backlog to Ready in deCDNon Sep 21, 2026
  3. self-assigned this
    on Sep 25, 2026
  4. moved this from Ready to In progress in deCDNon Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:nodekind:feature

Type

No type

Fields

Priority

Medium

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions