Skip to content

cluster: the pair's leader takes local requests beside Darkbloom (L5a) - #1875

Merged
jonathan308 merged 9 commits into
devfrom
local-first/l5a-pair-leader-local
Nov 7, 2026
Merged

jonathan308 merged 9 commits into
devfrom
local-first/l5a-pair-leader-local

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

PR L5a of the local-first work for provider 0.10.11: a pair's leader takes the owner's local requests beside Darkbloom, in provider core only. The leader member's existing unified local endpoint now serves the published pair slot through the slot's own bridge and lanes (spike S5). It closes the spike's four gaps: the member guard, a 503 instead of a 500, a bounded lane queue, and no slip-in during the warm-up canary. Nothing keys on two Macs. No CLI or screen change: that is L5b.

Draft. Do not merge: no dev merges until the owner says so, because a dev merge publishes a DevNet build.

Linked issue

None. Part of the local-first goal (GOAL.md criteria 1, 5 and 8; SPIKE-S5.md §5.1).

What changes

Gap (spike S5) Before After
Endpoint Every member refused a local API (prepareClusterMemberControl) Only the member that hosts the slot (clusterPairServing, the serving-host role a rank-0 installation gives) may run one, and only with a key. Every other member still refuses it
Pair not serving ensureModelLoaded threw the member guard's untyped error: HTTP 500 503 (requestRejected(DistributedRequestQueue.unavailableMessage)), as cluster local answers. Another model is 404
Lanes busy The request got the bridge at once, and the engine refused it at submit: 429 FIFO wait for a lane, bounded as cluster local: DARKBLOOM_CLUSTER_QUEUE_WAITING (default 64), 429 when full, 503 past Limits.waitCeiling. A cancelled request or a reset connection leaves the queue at once. A connection closed normally (curl, URLSession) keeps its place until its turn, then reaches the pair and is seen at its first write, as on cluster local
Warm-up canary A local request could take a lane while the canary ran Local admission opens only after the canary passed (clusterPairAdmissionOpenSlotID). A request made during it waits, and gets 503 if the slot retires
Two ranks DistributedResidentIdentity.validate required exactly two peers Two or more distinct peers. Pairs of two are unchanged

Overhead (owner, criterion 8: "make sure this all does not add much overhead")

How it stays cheap:

  • No new process, engine or session. Local requests use the slot's existing EngineV2Bridge, through the same makeLocalInferenceApplication stack as single-Mac unified mode.
  • No extra copy or buffering of streams. AcquiredModel hands the local app the pair's bridge itself; tokens stream from it as on one Mac.
  • The queue costs nothing when lanes are free. A request that finds a free lane and nobody waiting takes it at once: two counters plus one read of the engine's published capacity, which never waits for the engine queue. No task, timer or continuation is created.
  • No polling. A waiter is a parked continuation (ClusterPairLocalLanes.park). Something that can free a lane wakes the first waiter: a released local lane, the capacity refresh that already follows each Darkbloom request's end, or admission opening. Something that refuses waiters wakes them all: a drain beginning (each hears 429) or the slot retiring (503). The queue has no timer of its own except each waiter's ceiling (one sleep). The existing periodic capacity refresh (heartbeat ÷ 2) also wakes the first waiter. That covers a request that ended here while the pair's engine still retires it.
  • Darkbloom requests' path through the pair is unchanged.
    • Same lanes: owner.concurrentRequests, and the engine's admission is untouched.
    • handleInferenceRequest is untouched, and no per-token work is added.
    • The only additions on that side are two O(1) checks, wakeClusterPairLocalWaiters(): one at the end of the member's existing refreshClusterPairCapacity(), and one in beginServingDrain (a single Mac included). Each does nothing while nobody waits.
    • A Darkbloom request never waits for the local queue.

Measured on Mac A, CPU-only, with scripted owners and a loopback MockCoordinator, while other builds ran in parallel:

What Result
Local acquire with a lane free and nobody waiting (2,000 runs) p50 7.1 µs, p99 30.9 µs
A queued request: lane released → next waiter holds it (300 runs) p50 9.4 µs, p99 38.1 µs (event-driven; cluster local polls every 10 ms)
A wake while nobody waits (2,000 runs) p50 0.1 µs
Darkbloom request, push → lane, p50 over 31 requests, 3 alternating rounds idle local API: 1.66 / 3.74 / 2.25 ms; no local API: 2.19 / 3.33 / 2.86 ms. Within noise

The committed test aDarkbloomRequestSeesNoExtraWaitWhenNoLocalRequestIsQueued checks this: the median push → lane with an idle local API stays within 2× + 25 ms of the leader without one. Every third request follows a local request that has just released the lane.

The hook for the owner pause (L5b, after L1/L2)

  • Use: ProviderLoop.noteClusterPairLocalUse(_:) in ProviderLoop+ClusterPairLocal.swift. It is called with .began when a local request starts waiting for a lane, or takes one at once, before it can wait behind Darkbloom work. It is called with .ended exactly once: when the request leaves without a lane (429, 503, cancelled) or when its lane is released. Today it keeps clusterPairLocalLanes.inUse, and the tests prove the count returns to 0 on every path. L5b adds L1's noteLocalUse(.start/.end) there.
  • Tick: L1's 5-second tick goes in clusterMemberHeartbeat() (ClusterMemberSupervisionSetup.swift), which the member service calls every 5 s on the actor. Members run no idle or capacity monitor.
  • Members that don't host the slot stay control-only and untouched.

Before and after

flowchart LR
  subgraph B["Before"]
    direction TB
    BD["Darkbloom request"] --> BH["handleInferenceRequest"] --> BS["Pair slot bridge"]
    BO["Owner's tool"] --> BX["No local API: every member refuses one"]
    BA["Local acquire on a member"] --> B5["Untyped error → 500"]
    BL["Lanes busy"] --> B4["429 at submit"]
    BW["Warm-up canary running"] --> BI["Local request slips in"]
  end
  subgraph A["After"]
    direction TB
    AD["Darkbloom request"] --> AH["handleInferenceRequest (unchanged)"] --> AS["Pair slot bridge (same lanes)"]
    AO["Owner's tool → leader's local API (key)"] --> AQ{"Slot live?"}
    AQ -- "no" --> A5["503"]
    AQ -- "yes" --> AF{"Admission open, lane free, nobody waiting?"}
    AF -- "yes" --> AS
    AF -- "no" --> AW["FIFO wait (parked)"]
    AW -- "woken on release" --> AF
    AW -- "full / ceiling / retired" --> AE["429 / 503"]
  end
  classDef old fill:#fde2e1,stroke:#c0392b,color:#1b1b1b
  classDef new fill:#dff3e4,stroke:#1e8449,color:#1b1b1b
  classDef same fill:#e8eef7,stroke:#2e5c8a,color:#1b1b1b
  class BX,B5,B4,BI old
  class AO,AQ,AF,AW,A5,AE new
  class BD,BH,BS,AD,AH,AS,BO,BA,BL,BW same
Loading

Code path (blue: unchanged; green: new or changed):

flowchart TB
  R["run()"] --> P["prepareClusterMemberControl: endpoint only if admitsClusterPairLocalAPI"]
  P --> E["startLocalEndpoint (discovery names the bound port)"]
  E --> AM["acquireModelForLocal"]
  AM -- "member" --> CP["acquireClusterPairForLocal"]
  AM -- "single Mac" --> EL["ensureModelLoaded (unchanged)"]
  CP --> U["noteClusterPairLocalUse(.began)"]
  U --> G["grantClusterPairLaneIfFree"]
  G -- "lane" --> AQ["AcquiredModel: pair bridge, no container"]
  G -- "busy" --> Q["ClusterPairLocalLanes: enqueue, park"]
  W["releaseClusterPairLane / refreshClusterPairCapacity / admission opens / beginServingDrain / retire"] --> WK["wakeClusterPairLocalWaiters"]
  WK --> Q
  Q --> G
  AQ --> RL["release: lane, reservation, noteClusterPairLocalUse(.ended)"]
  classDef same fill:#e8eef7,stroke:#2e5c8a,color:#1b1b1b
  classDef new fill:#dff3e4,stroke:#1e8449,color:#1b1b1b
  class R,E,AM,EL same
  class P,CP,U,G,AQ,Q,W,WK,RL new
Loading

Test plan

All runs were CPU-only (no GPU), on Xcode 27.2 with DARKBLOOM_RELEASE_ENVIRONMENT=prod (as CI), under nice -n 19 and sandbox-exec with a profile that denies ~/.darkbloom*. Each run had temporary DARKBLOOM_STATE_FILE, DARKBLOOM_LOADED_MODELS_FILE, DARKBLOOM_VERIFIED_WEIGHTS_FILE, DARKBLOOM_LOCAL_DIR and CFFIXED_USER_HOME. Every local API in the tests binds 127.0.0.1:0, and every coordinator is a loopback MockCoordinator on port 0.

  • Red, at ed9681646c (tests plus the counts they read stubbed at 0): swift test --skip-build --no-parallel --filter ClusterPairLocalTests ran 11 tests and 11 failed, each for the gap it covers. The member refused the endpoint, so the 4 run() tests timed out on registration. The not-serving case threw ClusterMemberControlError (500). Local acquires returned at once while lanes were busy or the canary ran. The 3-rank slot was refused by the 2-peer identity check.
  • Green, at 160c100ea2: the same filter passes, 11/11 in 4.7 s.
  • Red, then green, for the drain wake: aDrainRefusesWaitingLocalRequestsAtOnce fails at 96c040fcb9 (with the periodic refresh off, the waiter is never told) and passes at dd04f86a43. At the head, f408ad86b8, ClusterPairLocalTests passes 12/12 in 4.8 s.
  • Related suites, cluster local included: --filter 'ClusterPair|ClusterMember|DistributedLocalServer|DistributedHTTP|DistributedRequestQueue|ClusterAPIParity|ClusterAPIDecoration|LocalEndpointFile|DistributedCBv2|NativePairMember' passes (297 tests in 41 suites, plus 109 in 15).
  • Drain and lifecycle suites: --filter 'AddonIPCTests|AddonHoldDrainOwnershipTests|AddonHoldStoreTests|AddonHoldLoopTests|AddonHoldServeLoopTests|AutopilotBusyReasonTests|LocalDrainHTTPTests|ProviderLifecycleTests|ServeLoopConnectionTests|ServingReadinessTests|UpdateDrainAwarenessTests|AppAttestUpdateLifecycleTests|ClusterPair|ClusterMember' passes (237 tests in 35 suites, plus 109 in 15).
  • python3 scripts/changelog.py check, scripts/docs-check.sh and scripts/docs-impact-check.py --base 9640170620 all pass.
  • Full CI at f408ad86b8 (CI (dev) run 42311207017): every required job passed, including Provider Unit Tests shards 1 and 2, where all 12 new tests ran and passed, and the Cluster Runtime, Focused and Release checks. The non-blocking cluster GPU shard 1 was still running when this was written.
  • A dev-identity local build (CI and this run used the prod identity).
  • On real Macs: the leader's local API needs a coordinator-committed start, so its proof is the DevNet build after the owner's go (spike S5 §6). V1 covers cluster local on pair-2.

The tests (provider-swift/Tests/ProviderCoreTests/ProviderLoop/ClusterPairLocalTests.swift):

Test Proves
theLeaderServesItsPairOnItsLocalAPI Over HTTP: 503 before the slot; after the canary, the stream comes through the pair's own owner, with the local partition (no salt); local.json names the bound port and the key
onlyTheSlotsHostRunsALocalAPIAndAlwaysWithAKey Real rank-0 installation serves. Refused: rank 1, an uninstalled member, a host without a key
aLocalRequestWhileThePairIsNotServingIs503 503 before the slot and after retirement; 404 for another model; no use counted
aLocalRequestWaitsForALaneAndTakesItWhenItIsReleased Waits, wakes on release, FIFO, queueExitedAt, the use count
aFullQueueIs429AWaiterPastItsCeilingIs503AndACancelledWaiterLeaves The bounds; a cancelled waiter behind another leaves at once (only its cancellation handler wakes it)
aLocalRequestDuringTheWarmupCanaryWaitsForAdmission No slip-in, with two lanes so the canary leaves one free; 503 when the slot retires during the canary
aDrainRefusesWaitingLocalRequestsAtOnce A stop or update drain refuses parked waiters at once (429); the lane holder finishes
retirementWhileQueuedIs503AndTheRequestInFlightEnds A lost rank: the queued request gets 503, the running one ends with one terminal
nothingKeysOnTwoRanks A 3-peer roster with 3 lanes serves 3 and queues the 4th; the two non-host members refuse an endpoint
aLocalRequestWaitsBehindADarkbloomRequestAndRunsWhenItEnds Woken by a Darkbloom request's end
aDarkbloomRequestSeesNoExtraWaitWhenNoLocalRequestIsQueued Overhead, above
stoppingTheLeaderWithALocalStreamDrainsItAndFreesThePort The stop waits for the local stream, then frees the port and removes local.json

Independent review fixes (b17cd364b0, c7b49d5e01)

The review found two tests that passed with their code removed, and one overstated doc sentence. Tests, docs and comments only; no behaviour change.

Finding Fix With the code removed (the review's mutant)
The warm-up test ran with one lane, which the canary holds, so the engine's count kept a local request out even without the admission gate Two lanes (the canary leaves one free); checks that no local request holds a lane during the canary Gate removed from clusterPairLaneFreeHere: red, the request takes the free lane during the canary
The cancel test cancelled the first waiter, which the periodic capacity refresh wakes anyway Cancels the second of two waiters, with a bounded wait onCancel emptied in parkClusterPairWaiter: red in 1.6 s, no hang (the waiter keeps its place until the one ahead leaves)
"A client that goes away leaves the queue" Direct mode, the architecture invariant, the code comments and this body say exactly when: a cancel or reset leaves at once; a normal close is seen at the first write, after its turn, as on cluster local. That first write bounds the waste —

ClusterPairLocalTests passes 12/12: three runs at b17cd364b0 and one at c7b49d5e01 (CPU only, prod identity, the same isolation as above).

Components touched

  • provider-swift (Swift CLI)
  • native runtime / MLX
  • landing (Next.js)
  • enclave (Swift)
  • CI / provider release
  • docs

Protocol / interface changes

  • No protocol/interface changes. Nothing changes on the wire, in config or in the CLI. Internal changes:
    • a member that hosts the slot may be given a localEndpoint;
    • DistributedResidentIdentity.validate takes two or more distinct peers;
    • the unified endpoint's discovery record names the port actually bound (the same port unless the endpoint is configured with port 0).

Documentation impact

  • Canonical documentation updated:
    • docs/provider/direct-mode.md, "A pair's leader beside Darkbloom";
    • docs/architecture/inference.md, "The pair's leader takes local requests beside Darkbloom".
  • docs/provider/two-mac-cluster.md still says a pair served through Darkbloom has no local API. That is still true for users, because no command starts it yet; L5b changes it.

Changelog

  • changelog.d/cluster-leader-local-api-beside-darkbloom.md. L5b updates it in place when the CLI starts the API.

Notes for reviewers

  • Lane rule. A local request takes a lane only when two counts are both below lanes:

    • the lanes held on this Mac: local grants on this slot plus the Darkbloom requests accepted for its model (requestToModel);
    • the engine's own count (capacitySnapshot: active + admitting).

    The drain check (throwIfRefusingNewLocalWork) and localReservations.reserve have no suspension between them, as on one Mac. So a stop or update drain waits for every granted local request.

  • Shared mode is best effort. With no pause (before L5b), a Darkbloom dispatch can still take a freed lane ahead of a waiting local request. The local request then keeps waiting until its ceiling. Once L5b wires the pause, the pause begins at queue entry.

  • Cache partition. Local requests keep the local app's own partition (local-native-…): no tenant salt, never a coordinator scope (test 1).

  • Refactor. The waiter is not shared with DistributedLocalServer.waitForTurn. That one polls every 10 ms and binds to session generations; extracting a common waiter would change cluster local, which this PR keeps unchanged. Its only edit is a named constant for the identical "Distributed session is unavailable" text.

  • Two-Mac assumptions this PR leaves in place (spike S5 appendix, not L5a's):

    • NativePairMemberInstallation (peers.count == 2, ranks 0…1);
    • ClusterWorkerPair([start.endpoint, peer]);
    • the follower is rank 1;
    • ClusterLocalServing.sharedPort takes one peer.

Limitations and gates

  • No command starts the leader's local API yet: Start.validate still refuses --cluster-member --local-endpoint. That is L5b, with the pair key, the port helper and the "Both, me first" screen.
  • The pause tests (spike tests 8, and 9's pause half) need L1/L2.
  • The refactor pass and the independent review are still open; the orchestrator owns those gates. This session could not spawn the separate refactor subagent.
  • Only the prod identity was built and tested locally. No GPU test was run.

jonathan308 and others added 3 commits November 6, 2026 14:53
…L5a)

Eleven CPU-only tests, each failing today:

- the leader member's local API serves its pair slot (today a member refuses
  any local API at `prepareClusterMemberControl`);
- only the slot's host runs one, and only with a key;
- "the pair is not serving now" is a 503 (today the member guard's untyped
  error, a 500); another model is a 404;
- a local request waits in a bounded FIFO queue for one of the pair's lanes
  (today it is handed the bridge at once and refused at submit): 429 when
  full, 503 past its ceiling, cancelled waiters leave;
- nothing slips in during the warmup canary;
- retirement while queued is a 503 and the stream in flight ends;
- a three-rank roster (today the pair engine requires exactly two peers);
- a local request behind a Darkbloom request wakes when it ends;
- Darkbloom requests see no extra wait with the local API idle;
- stopping drains a local stream and frees the port.

The counts the tests read (waiting requests, the owner's use) are stubbed at
zero; the next commit implements them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The leader member's unified local endpoint now serves its published pair slot,
through the slot's one bridge and its lanes. No process, copy or buffer is
added, and a Darkbloom request's path is unchanged.

- Only the member that hosts the slot (the serving host role a rank-0
  installation gives) may run a local API, and only with a key; every other
  member keeps refusing one at `prepareClusterMemberControl`.
- "The pair is not serving now" (before its slot, while it re-forms, after it
  retired) answers 503, as `cluster local` does, not the member guard's
  untyped error (a 500). Another model is a 404.
- A local request that finds every lane busy waits in a FIFO queue, bounded
  as `cluster local`'s (`DARKBLOOM_CLUSTER_QUEUE_WAITING`, 429 when full, 503
  past the ceiling). A waiter is parked, never polled: a released local lane,
  the capacity refresh after each Darkbloom request, admission opening and
  the slot retiring wake it. A free lane with nobody waiting is taken at once.
- Local admission opens only after the warmup canary passed: a request made
  during it waits, and hears 503 if the slot retires.
- `noteClusterPairLocalUse` is the owner-pause hook: the owner's use of the
  pair begins when a request starts waiting (or takes a lane) and ends once.
- The pair engine's identity check accepted exactly two peers; it now takes
  two or more distinct peers (pairs of two unchanged).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Direct mode gains the leader member's local API (who runs it, its answers, its
queue, what it costs); the inference architecture gains its invariants. One
changelog fragment. The cluster guide keeps "no local API" for a pair served
through Darkbloom: no command starts the leader's API yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Error Error Nov 7, 2026 3:01am UTC
d-inference-console-ui-dev Error Error Nov 7, 2026 3:01am UTC
d-inference-landing Ready Ready Preview Nov 7, 2026 3:01am UTC
darkbloom-status Ready Ready Preview Nov 7, 2026 3:01am UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 7, 2026 3:01am UTC

Request Review

jonathan308 and others added 2 commits November 6, 2026 15:19
With the periodic capacity refresh off, a local request parked for a lane
hears a drain (a stop or an update) only when some other event wakes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`beginServingDrain` wakes them, so each hears the drain's refusal (429) at
once instead of at the next capacity refresh. With nobody waiting, and on
every single Mac, the call is one count check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The required refactor pass on #1875. Behaviour-preserving: the same checks,
in the same order, with the same suspensions; no public name changes, and
the L5b hooks (`noteClusterPairLocalUse`, `clusterMemberHeartbeat()`) are
untouched.

- One "next in line" rule. `ClusterPairLocalLanes.isNext` (the first waiter,
  or a newcomer while nobody waits) is checked inside
  `grantClusterPairLaneIfFree`, before and after the engine's count. Before,
  each caller checked it and the grant checked it again in another form.
  `isFirst` is private now.
- The waiting loop reads check, take, park. Parking is its own
  `parkClusterPairWaiter`, and "the slot this request is bound to still
  serves" is `clusterPairSlotStillServes` (it was written out twice).
- Comments state the invariants: only the slot's host runs a local API, and
  only with a key; the queue is bounded and first in, first out; Darkbloom
  requests never enter it, and their side pays one count check; why the
  identity check's relaxation to two or more peers still refuses a repeated
  or an impostor peer; why the pair's release stays apart from a single
  Mac's.
- Tests: one helper builds the member loops (three copies before) and one
  the serving context (two). `nothingKeysOnTwoRanks` also proves that a
  repeated peer in a pair of two and an impostor third rank are refused.
- Docs: the architecture section says why the relaxed identity check is
  still safe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 added a commit that referenced this pull request Nov 7, 2026
The required refactor pass on #1881. Behaviour-preserving: no public name or
signature changes, and the shipped code is byte for byte the same (the
prelinked ProviderCore.o is identical before and after; the one source file
touched changes only in comments).

- ProviderLoop+ClusterPairMeFirst states its invariants as a list: the
  leader decides for the pair, whatever its number of Macs (the process that
  owns the pair's local API owns the pause; nothing counts ranks); every
  other member stays control-only; nothing in flight is cancelled; nothing
  polls (O(1) request edges, heartbeats only on transitions, the idle check
  on the pause's one timer and the member beat that already runs every 5 s).
- Tests: ClusterPairMeFirstTests runs its leader on #1875's
  PairLeaderFixture, which it copied in 75 lines (LeaderRunFixture). The
  fixture is internal now and takes the leader's [local] section, shared
  serving by default as before; its discovery check also covers the pid.
  ControlOnlyMember replaces the untouched member's setup and beat-and-
  compare, written out in two tests. Dead code is gone: stableHeartbeat's
  unused `dropping:` and pairMember's `coordinatorURL`. Every test keeps
  its assertions (the same count of #expect and #require in each).
- owner-pause.md: the tests paragraph said the pair suite runs without the
  GPU. Its two tests that complete Darkbloom requests need a Metal device
  (each terminal reads MLX's memory counters), though they submit no GPU
  work.

Checks (prod, CPU-only: empty kernel libraries, a sampler saw no GPU work):
ClusterPairMeFirstTests 7/7, #1877's suites 28/28, #1875's cluster
selection 305/305 and the drain/settings selection 46/46, the same 386
per-test outcomes as the merge before this commit; the pair suites 5 more
times and #1877's 3 more times. Mutants (no forwarding to the pause, no
resume on the member beat, a saved single-Mac mode honoured, no timer
cancel on stop, the fixture ignoring [local]) are each killed. docs-check,
docs-impact-check and changelog check pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 and others added 2 commits November 6, 2026 18:57
…view)

The independent review found two tests that passed with their code removed:

- The warm-up test ran with one lane, which the canary itself holds, so the
  engine's own count kept a local request out without the admission gate. It
  now runs with two lanes (the canary leaves one free) and checks that no
  local request holds a lane while the canary runs. With the gate removed
  from `clusterPairLaneFreeHere`, it fails: the request takes the free lane.
- The cancel test cancelled the first waiter, which the periodic capacity
  refresh wakes anyway. It now cancels the second of two waiters, which only
  its own cancellation handler wakes, and bounds the wait. With the handler
  removed from `parkClusterPairWaiter`, it fails in 1.6 s: the waiter keeps
  its place until the one ahead of it leaves.

Tests only; no behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"A client that goes away leaves the queue" overstated it. A cancelled request
or a reset connection leaves at once. A client that closes its connection
normally (curl, URLSession) keeps its place until its turn, then reaches the
pair, the same as on `cluster local`: the close is seen at the request's first
write, which ends it and frees its lane, and so bounds the waste. Direct mode,
the architecture invariant and the code comments now say so.

Docs and comments only; no behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonathan308
jonathan308 marked this pull request as ready for review November 7, 2026 07:10
@jonathan308
jonathan308 merged commit 55c7c11 into dev Nov 7, 2026
25 of 27 checks passed

This branch had an error being deployed

2 failed and 3 active deployments
Preview – d-inference-landing — c7b49d5e Deployed Nov 7, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — c7b49d5e Deployed Nov 7, 2026 by vercel[bot]
Preview – darkbloom-status — c7b49d5e Deployed Nov 7, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — c7b49d5e Deployed Nov 7, 2026 by vercel[bot]
Preview – d-inference — c7b49d5e Deployed Nov 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant