Skip to content

Provider add-on hold: fence late model loads, close the release race, keep native preload plans, harden the IPC socket - #1623

Merged
Gajesh2007 merged 8 commits into
masterfrom
provider/addon-hold-fixes
Oct 27, 2026
Merged

Gajesh2007 merged 8 commits into
masterfrom
provider/addon-hold-fixes

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes the review findings left on the merged #1620 (reversible add-on hold). Every code fix comes with a regression test that fails on the unfixed code and passes with the fix. Merging publishes dev and staging builds only; this is not a release.

# Finding Verdict Fix
1 P1: a late model load publishes after the hold reports held Real Model-load fence; the hold waits for the load gate before its last sweep
2 P2: a release during cancelAllInflight() lets the stale pass cancel new work Real The drain bound cancels only the requests it captured, and stops on release
3 P2: native MiMo / Nemotron Super retirements rewrite loaded-models.json during a hold Real One hold-aware guard inside persistLoadedModelSet()
4 Threat MEDIUM: unauthenticated connections exhaust the add-on IPC slots Real Verify the signer on accept, before a slot; bound unfinished request lines
5 Threat LOW: hold-record read blocks on a FIFO Real (the lifecycle mailbox reads had the same flaw) O_NONBLOCK + O_NOFOLLOW, then owner-only regular file within the size bound
6a Threat LOW: the add-on IPC/mailbox channel is not in the threat model Partly: TB-012, A-018 and T-059 already existed at the reviewed head; the listed content gaps were real TB-012 and T-059 extended, new T-060, new security page
6b Threat LOW: the IPC reference cites an undefined TB-012 Not real: TB-012 is defined at the reviewed head e164315 (the review read the base model) Reference now also links the security page and T-060

Before

flowchart TB
  subgraph F1["1 · Late model load"]
    direction LR
    a1["Local cold load<br/>past the load gate"] --> a2["Settle bound ends;<br/>sweep finds no slot"] --> a3["Hold reports held"] --> a4["Load publishes its slot<br/>beside the VMs"]
  end
  subgraph F2["2 · Release during the drain bound"]
    direction LR
    b1["cancelAllInflight()<br/>suspended"] --> b2["Release reopens admission;<br/>new request accepted"] --> b3["Stale pass cancels it<br/>and clears its tracking"]
  end
  subgraph F3["3 · Native retirement while held"]
    direction LR
    c1["MiMo or Super slot<br/>retires in the hold"] --> c2["persistLoadedModelSet()"] --> c3["loaded-models.json<br/>loses the model"]
  end
  subgraph F4["4 · Add-on socket and hold record"]
    direction LR
    d1["Silent unsigned peers"] --> d2["Fill all 8 slots;<br/>checked only per request"] --> d3["Signed add-on gets<br/>unavailable"]
    d4["FIFO at addon-hold.json"] --> d5["open() blocks<br/>hold restore"]
  end
  F1 ~~~ F2 ~~~ F3 ~~~ F4
  classDef trigger fill:#dbeafe,stroke:#1d4ed8,color:#172554
  classDef step fill:#f1f5f9,stroke:#475569,color:#0f172a
  classDef bad fill:#fee2e2,stroke:#b91c1c,color:#7f1d1d
  class a1,b1,c1,d1,d4 trigger
  class a2,a3,b2,c2,d2 step
  class a4,b3,c3,d3,d5 bad
Loading

After

flowchart TB
  subgraph G1["1 · Load fence"]
    direction LR
    a1["Local cold load<br/>past the load gate"] --> a2{"Hold active<br/>at next check?"}
    a2 -->|yes| a3["Load ends with 503;<br/>no slot installed"] --> a4["Hold waits for the gate,<br/>sweeps, then held"]
    a5["New load while held"] --> a6["Refused at the gate (503)"]
  end
  subgraph G2["2 · Scoped drain cancellation"]
    direction LR
    b1["Pass captures the<br/>requests it will cancel"] --> b2["Release reopens admission;<br/>new request accepted"] --> b3["Pass stops; new work keeps<br/>its task and tracking"]
  end
  subgraph G3["3 · One persistence guard"]
    direction LR
    c1["Any retirement path<br/>in the hold"] --> c2{"persistLoadedModelSet():<br/>hold active?"}
    c2 -->|yes| c3["Preload plan kept"]
  end
  subgraph G4["4 · Add-on socket and hold record"]
    direction LR
    d1["Peer connects"] --> d2{"Signer verified<br/>on accept?"}
    d2 -->|no| d3["unauthorized, closed;<br/>never takes a slot"]
    d2 -->|yes| d6["Slot; each line within 10 s;<br/>verified per request"]
    d4["FIFO at addon-hold.json"] --> d5["O_NONBLOCK + fstat:<br/>refused at once"]
  end
  G1 ~~~ G2 ~~~ G3 ~~~ G4
  classDef trigger fill:#dbeafe,stroke:#1d4ed8,color:#172554
  classDef check fill:#fef3c7,stroke:#b45309,color:#78350f
  classDef good fill:#dcfce7,stroke:#15803d,color:#14532d
  classDef step fill:#f1f5f9,stroke:#475569,color:#0f172a
  classDef refuse fill:#ede9fe,stroke:#6d28d9,color:#2e1065
  class a1,a5,b1,c1,d1,d4 trigger
  class a2,c2,d2 check
  class b2 step
  class a3,a4,b3,c3,d6,d5 good
  class a6,d3 refuse
Loading

Legend: blue trigger · grey step · amber check · red faulty outcome (Before) · green fixed outcome · violet intended refusal. Panels match the finding numbers.

Changes

  1. Load fence (ProviderLoop+AddonHold.swift addonHoldLoadRefusal; checks in ProviderLoop+ModelLoading.swift ensureModelLoaded, ProviderLoop+NemotronSuper.swift, ProviderLoop+NativeMiMo.swift requireNativeMiMoPublication). While any hold is active no load takes the load gate; a running load stops after hashing, after the weight load or before install (Super and native MiMo before their weights and at publication) with a transient modelLoadFailed (503). After the settle bound, unloadAllModelsForAddonHold waits for isLoadingAny to clear, then sweeps again, so held means no load owns memory. The settle bound became an instance value (addonHoldSettleTimeoutDefault is the 60 s default) so tests can shorten it.
  2. Scoped drain cancellation (cancelRequestsOutlivingAddonHoldDrain). The bound captures the coordinator requests still running, cancels them one at a time through handleCancellation, and stops once the hold is released or replaced. cancelAllInflight() remains the lost-connection path. A nil-in-production hook suspends the pass for the test.
  3. Preload plan (persistLoadedModelSet()): returns early while addonHoldActive, which covers the generic, native MiMo and Nemotron Super retirement paths; the generic unload's own owner check is folded into it.
  4. Socket admission (AddonIPCServer): the accept loop verifies the kernel audit token against the policy before reserving one of the 8 slots; an unverified peer gets unauthorized and is closed without a read. Requests are still verified again. A request line must finish within requestTimeout = .seconds(10) of the server first holding it, however slowly its bytes trickle in.
  5. Non-blocking control files: AddonHoldStore.read() and LifecycleMailbox reads open with O_NONBLOCK | O_NOFOLLOW; the existing fstat checks then refuse a FIFO or other non-regular file at once.
  6. Docs: docs/threat-model.yaml (TB-012 now records the operator mailbox, accept-time and per-request checks, request and idle bounds, DEBUG-only DARKBLOOM_ADDON_DEV_IDENTITY, DARKBLOOM_ADDON_SOCKET honored by every build but not passed by the LaunchAgent, self-reported busy fields, the unbounded hold under a held lock and the fail-open record; T-059 adds the load fence; new T-060 covers socket starvation and FIFO stalls), new docs/architecture/security/local-control.md, plus addon-hold.md, addon-hold-ipc.md, configuration.md, inference.md (docs-impact mapping for MiMo/), test.md, and changelog.d/provider-addon-hold-hardening.md.

Interface effects: no protocol, telemetry or manifest change. Add-on clients now get unauthorized at connect instead of at their first request, and invalid_request for a line left unfinished for 10 s. Loads refused by a hold report the existing transient 503 / capacity outcome.

Validation

All on an Apple M4 Max with the source-matched staged metallib (scripts/stage-test-metallib.sh), Debug swift build --build-tests, isolated test state as in scripts/run-provider-tests.sh.

Fail before / pass after. The 8 new tests were first run on a tree with only the behavior-neutral test seams (settle-timeout instance value, cancellation hook, requestTimeout parameter) and none of the fixes: 8 of 8 failed with 15 issues. With the fixes: 8 of 8 pass.

Test Before the fix After
TinyModelLoadTests/AddonHoldLoadFence/aLoadRunningWhenTheHoldBeginsNeverPublishesAndTheHoldWaitsForIt (real tiny-model load) held while the load ran; load published; model resident while held; load during hold not refused pass
AddonHoldLoopTests/theDrainBoundCancelsItsStragglersButNeverWorkAcceptedAfterARelease stale pass cancelled work accepted after the release pass
NemotronSuperManagedSlotTests/anAddonHoldRetiresTheSuperSlotButKeepsItsPreloadPlan (real managed Super slot) loaded-models.json lost the Super model pass
AddonHoldLoopTests/noRetirementPathRewritesThePreloadPlanWhileHeld plan rewritten while held pass
AddonIPCServerTests/silentUnsignedPeersCannotTakeTheAddonsConnectionSlots silent peers never checked; add-on got unavailable pass
AddonIPCServerTests/anUnfinishedRequestLineIsBoundedWhileItsBytesTrickleIn trickling line kept the connection open (21 s) pass (1 s)
AddonHoldStoreTests/aFIFOAtTheRecordPathIsRefusedWithoutBlocking read() blocked until a writer appeared pass
LifecycleMailboxTests/aFIFOInPlaceOfARequestIsIgnoredWithoutBlocking mailbox read blocked pass

Per commit. Each WIP fix commit's tree was built on its own and its new test plus neighbouring suites run (AddonHoldLoopTests, ModelLoadRefusalTests, TinyModelLoadTests, ProviderLifecycleTests, NemotronSuperManagedSlotTests, LoadedModelsStoreTests, LoadedModelsPersistenceWiringTests, StartupPreload*Tests, ModelSlotBookkeepingTests, AutopilotStartupPreferencesTests, AddonIPCServerTests, AddonHoldServeLoopTests, AddonIPCTests, AddonPeerPolicyTests, AddonHoldStoreTests, LifecycleMailboxTests): all pass.

Add-on selector suites (the updated docs/developer/test.md filter, final head): 55 tests in 13 suites pass; AddonCommandTests 4 pass.

make provider-test (final head): DarkbloomCLITests 692 pass; every isolated suite and the exclusive native-GPU test pass. Main run: 4,780 Swift Testing tests, all passing except 3 strict-MiMo scanner tests that require MIMO_V26_SERIAL_LOAD_FIXTURES; XCTest has 26 unexpected failures, all in MiMoV26* classes that stop at fixture lookup (fixtureRequired, payloadFixtureRequired, unset MIMO_PROMPT_ARTIFACT_DIRECTORY). None of these touch code changed here; the private MiMo fixtures are not on this machine.

Repository checks (final head): make changelog-check (6 valid fragments), make docs-check (199 files OK), make docs-impact-check BASE=origin/master (24 changed files, coverage OK), git diff --check origin/master...HEAD clean. Both figures here and the new doc diagram were rendered with mmdc.

Limitations

  • The native MiMo retirement path is covered by the shared persistence guard and its direct test; the opt-in native MiMo lane (MIMO_V26_* fixtures) was not run.
  • The load fence is exercised end to end through the generic loader; the Super and native MiMo fence checks have no dedicated hold-during-load test.
  • After the settle bound the hold waits for a running load without a further bound: a load that never ends keeps the hold draining rather than reporting held beside it.
  • A same-user flood of connection attempts can still delay the add-on's connect (one signature check per connection on the accept thread); an unreadable hold record still fails open. Both are recorded in TB-012 / T-060.
  • The 8 commits are signed WIP commits (GitHub shows each Verified); expect a squash merge.

Refactor pass

A dedicated behavior-preserving pass (AGENTS.md) reviewed all 24 changed files. It made one small cleanup, the signed 8th commit eaf9abb5d (Verified): 2 source files, with no change to behavior, contracts, tests or docs.

  • AddonIPCServer.acceptLoop: the unverified-peer and full-server refusals duplicated a write-then-close block. It is now refuseUnadmitted(_:with:), so the loop reads as ordered admission checks (configure, signer, slot). The bytes, error codes and close are unchanged, and the signer check still precedes the slot.
  • modelLoadInterruption (ProviderLoop+ModelLoading.swift): the a || b ? x : y ternary became guard returns. This makes explicit that a stop or cancellation (CancellationError) wins over the hold's 503 refusal. Evaluation order is unchanged.

Reviewed and deliberately left as is:

  • The 5 if let refusal = addonHoldLoadRefusal(…) { throw refusal } sites. A throwing twin would be a second entry point, because the install checks need the optional form to clean up before throwing, and three docs cite the name.
  • AddonHoldStore.read vs LifecycleMailbox.read. They differ on purpose (geteuid/getuid, ENOENT → .absent, size limits, schema and lease checks) and belong to different domains, so merging them would be an unrelated rewrite.
  • The straggler set vs lifecycleRemaining. That property is outside this PR and also counts acceptedLifecycleRequests.
  • The requestTimeout static default with its injected value, the post-settle load wait, and the test helpers, which follow the existing addon* helper convention.

Revalidated at eaf9abb5d:

  • swift build --build-tests with the staged metallib: OK.
  • The docs/developer/test.md add-on filter: 55 tests in 13 suites plus 4 AddonCommandTests, all passing.
  • AddonCommandTests|TinyModelLoadTests/AddonHoldLoadFence|NemotronSuperManagedSlotTests|LifecycleMailboxTests|AddonHoldStoreTests|AddonIPCServerTests: 70 tests in 7 suites plus 4, all passing.
  • make changelog-check, make docs-check, make docs-impact-check BASE=origin/master (24 files, coverage OK) and git diff --check: all clean.

make provider-test was not rerun after this commit.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

A local request's cold load that was already past the load gate when a
hold began could publish its slot after the hold reported held: the last
unload sweep returned while the load still ran, and the publication
checks looked only at shutdown and cancellation.

- No load takes the load gate while a hold is active. A running load
  stops at its next check (after hashing, after the weight load, before
  install; Nemotron Super and native MiMo before their weights and at
  publication) with a transient (503) load failure.
- Past the settle bound the hold waits for the load gate before its last
  sweep, so it reports held only once no load owns memory.
- The settle bound is an instance value so tests can shorten it.

Test: TinyModelLoadTests/AddonHoldLoadFence runs a real tiny-model load
past the gate, holds, and checks the hold stays draining, the load fails
with 503 without publishing, and new loads wait for the release.
When the last hold was released or expired while the drain bound's
cleanup was suspended in cancelAllInflight(), admission reopened at once
and the stale cleanup then cancelled newly registered native tasks and
cleared new requests' task, profile and model tracking.

The bound now cancels exactly the coordinator requests it captured when
it expired, one at a time, and stops as soon as the hold is released or
replaced. cancelAllInflight() stays the lost-connection path.

Test: AddonHoldLoopTests.theDrainBoundCancelsItsStragglersButNever
WorkAcceptedAfterARelease suspends the pass, releases the hold, starts a
new request and checks it stays running and tracked, while the bound
still cancels a straggler when no release intervenes.
…g a hold

A hold that unloaded a native MiMo or Nemotron Super slot returned
through retireNativeMiMoOwner() or retireNemotronSuperSlot(), which still
called persistLoadedModelSet() whenever the provider was not shutting
down. That rewrote loaded-models.json without those models (and could
drop others already unloaded), so the next start lost its preload plan.

persistLoadedModelSet() now keeps the file while any add-on hold is
active, so every retirement path behaves like the generic unload; that
unload's own owner check is folded into it.

Tests: NemotronSuperManagedSlotTests.anAddonHoldRetiresTheSuperSlotBut
KeepsItsPreloadPlan holds a real managed Super slot; AddonHoldLoopTests
.noRetirementPathRewritesThePreloadPlanWhileHeld covers the shared write.
Connections entered the eight-slot connection set before any peer check,
which ran only when a complete request line arrived. An unsigned
same-user program could open every slot and send nothing, keeping the
signed add-on out for the 300 s idle timeout and again on reconnect.

- The server checks the kernel audit token against the add-on policy as
  it accepts a connection, before reserving a slot. An unverified peer is
  answered unauthorized and closed at once; slots hold only verified
  add-ons. Every request is still verified again.
- A request line must finish within requestTimeout (10 s) of the server
  first holding it, however slowly its bytes trickle in; the idle and
  request bounds are injectable for tests.

Tests: AddonIPCServerTests.silentUnsignedPeersCannotTakeTheAddonsConnection
Slots and .anUnfinishedRequestLineIsBoundedWhileItsBytesTrickleIn.
AddonHoldStore.read() opened the hold record in blocking mode before it
checked the file type. A same-user process could replace
addon-hold.json with a writerless FIFO and stall restore in open(2);
O_NOFOLLOW does not prevent that. The lifecycle mailbox, which carries
the operator's darkbloom addon commands, read its files the same way.

Both now open with O_NONBLOCK as well as O_NOFOLLOW, then require an
owner-only regular file within their size bound before reading, so a
FIFO or other special file is refused at once.

Tests: AddonHoldStoreTests.aFIFOAtTheRecordPathIsRefusedWithoutBlocking
and LifecycleMailboxTests.aFIFOInPlaceOfARequestIsIgnoredWithoutBlocking.
… fixes

The threat-model review found the add-on IPC and mailbox control channel
under-modelled and the IPC reference citing TB-012 as if undefined.
TB-012 already existed at the reviewed head (the review read the base
model); its content gaps were real.

- threat-model.yaml: TB-012 now records the operator mailbox, accept-time
  and per-request peer checks, the request and idle bounds, DEBUG-only
  DARKBLOOM_ADDON_DEV_IDENTITY, DARKBLOOM_ADDON_SOCKET in every build (not
  passed by the LaunchAgent), self-reported busy fields, the unbounded
  hold under a held machine lock and the fail-open hold record. T-059
  adds the model-load fence; new T-060 covers socket starvation and FIFO
  stalls.
- architecture/security/local-control.md explains who can drive the
  socket and mailbox, what is checked, and what is not.
- addon-hold.md, addon-hold-ipc.md, configuration.md, inference.md and
  test.md describe the load fence, scoped drain cancellation, the
  preload plan kept by every retirement path, accept-time verification,
  the request-line bound and non-blocking control-file reads.
- changelog.d/provider-addon-hold-hardening.md.
The idle timeout needs no injection; only the request-line bound is
shortened by AddonIPCServerTests. Its comment now says when the bound
starts: when the server first holds part of the line.
@vercel

vercel Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
d-inference Ready Ready Preview Oct 27, 2026 3:58am UTC
d-inference-console-ui-dev Ready Ready Preview Oct 27, 2026 3:58am UTC
d-inference-landing Ready Ready Preview Oct 27, 2026 3:58am UTC
darkbloom-status Ready Ready Preview Oct 27, 2026 3:58am UTC
eigen-homepages-darkbloom Ready Ready Preview Oct 27, 2026 3:58am UTC

Request Review

…erruptions

The accept loop answered an unverified peer and a full server with the same
write-then-close block; name it refuseUnadmitted so the loop reads as ordered
admission checks (configure, signer, slot). modelLoadInterruption now states
its priority with guard returns: a stop or cancellation wins over the add-on
hold refusal. No behavior change.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T04:21:34.391402Z eaf9abb Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Threat model review — advisory

Reviewed head eaf9abb5d29d against base bab16fe8aacb.

Reviewers: anthropic/claude-sonnet-5.5: first pass completed; anthropic/claude-opus-5.5: selected depth completed (9 batches); openai/gpt-6.1-sol: selected depth completed (4 batches)

No actionable findings in the reviewed text. This is not a security approval.

Models: budgeted Sonnet / selective Opus / selective Sol 6.1. Findings require human validation; this review never requests changes or blocks merging.

Scan completed; human review required.
Cross-file reviewer requests further review; independent human review required; Final reviewer requests further review; independent human review required

Coverage: 137/137 source units; cross-file integration complete. 0 selected depth batch(es) pending. All threat definitions indexed; relevant full definitions selected. Unchanged callers are not scanned.

Cost this run: $0.0000 reported, $0.0000 reserved with unknown cost; 0 paid request(s), 0 reused batch(es), 0 provider cache-hit tokens.

Saved findings and earlier report · Historical findings are not confirmed resolved.

Bedrock: 46 request(s), 2066195 uncached + 0 cache-read + 135963 cache-write input / 36304 output tokens; 0 request(s) with unknown usage. OpenRouter backup used 0 time(s). Dollar amounts above cover OpenRouter only; AWS billing is reconciled separately.
Workload allowance: 47 native request(s), including one shared response repair; 500 emergency ceiling. Selected depth and integration rounds are admitted as their scope becomes known.

@Gajesh2007
Gajesh2007 merged commit fed96dc into master Oct 27, 2026
31 checks passed
jonathan308 added a commit that referenced this pull request Oct 27, 2026
Brings in #1615, #1617, #1618 (provider 0.10.3 hotfix), #1619, #1620 and
#1623 (add-on hold), #1621 (Qwen JSON response formats without default
thinking) and #1622 (Qwen JSON response_format answers under the JSON
grammar).

Conflicts and resolutions:
- docs/architecture/inference.md: only the "Last updated" stamp
  conflicted (2026-10-26 here, 2026-10-27 on master). Kept the one
  2026-10-27 stamp; both texts are kept (this branch's forced-admission
  table and whitespace rule, and master's constrained Qwen JSON answer
  sections, merged cleanly).

Interplay with #1621 and #1622 (same Qwen 3.5/3.6 families):
- QwenJSONAnswerPolicy installs the JSON grammar only for requests with
  no tools and no tool_choice, so a forced request keeps this branch's
  prompt-forced, withheld and post-validated path with no token
  constraint, also when it carries a JSON response_format.
- templateAdditionalContext turns thinking off for forced legacy Qwen
  before #1621's JSON default is consulted; both give
  enable_thinking=false, and caller controls stay overridden on the
  forced path as before.
- NativeToolStreamRouter drops framing whitespace only when a tool call
  is required. A constrained JSON answer is never forced, so its bytes,
  including whitespace, stream unchanged.
@Gajesh2007 Gajesh2007 mentioned this pull request Oct 27, 2026
7 of 9 tasks
davidtai added a commit that referenced this pull request Oct 28, 2026
The merge adds #1566, #1591, #1602, #1605, #1606, #1607, #1612, #1621,
#1622, #1623, #1625, #1629, #1630, #1631, #1632 (provider 0.10.4),
#1633, #1644, #1652 and #1653 to this branch.

Conflicts and resolutions:
- CoordinatorClient+Connection.swift: #1606 moves the transport setup
  out of connectAndRun into the static function connectionParameters(for:),
  and puts the connectAndRun header below it. This branch adds the
  session parameter to the same header. The merge keeps the layout of
  master. The moved header has the signature of this branch:
  connectAndRun(_ session: CoordinatorSessionRecorder). Git merged the
  other changes without a conflict: the bounded handshake of master
  (CoordinatorConnectionHandshake.start) and the session recorder of
  this branch (markOpened after register, the session parameter of
  sessionLoop and receiveLoop, and the close-code read).
- docs/provider/cli-reference.md: the runtime constants table. The merge
  keeps the three reconnect rows and the ping/pong row of this branch.
  It adds the handshake deadline row of master after the ping/pong row,
  where master has it.
- docs/provider/troubleshooting.md: only the "Last updated" stamp had a
  conflict (2026-10-26 on this branch, 2026-10-27 on master). The merge
  keeps one stamp, 2026-10-27. Git merged the rows: the backoff citation
  of this branch and the new rows of master.

Each decision has one owner after the merge:
- CoordinatorReconnectPolicy chooses the wait before the next connection
  attempt, after each end of a session or of an attempt.
- CoordinatorConnectionHandshake (#1606) cancels a handshake that does
  not complete in 30 s. runLoop catches the timeout error. That attempt
  did not send register, so the policy gives the next backoff range, as
  on master.
- UnauthorizedConnectionRecovery (#1607, #1633) decides when to start a
  re-registration of a connection that the coordinator refuses. Its
  retry backoff counts re-registrations, not connection attempts, and an
  authorized verdict sets that count to zero. The re-registration closes
  the session. Then the policy chooses the wait, as for each other end.

Checks: against master, the merge has only the changes of this branch,
in its 15 files. The troubleshooting stamp is the one exception: it has
the date of master. Against this branch, the merge has only the changes
of master, in 651 files. The one exception is the connectAndRun header,
which has the session parameter. The gitlinks do not change: libs/mlx
31f550af, libs/mlx-swift 4926d3d9, libs/mlx-swift-lm aee6ebb6.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

This branch was successfully deployed

5 active deployments
Preview – d-inference — eaf9abb5 Deployed Oct 27, 2026 by vercel[bot]
Preview – d-inference-landing — eaf9abb5 Deployed Oct 27, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — eaf9abb5 Deployed Oct 27, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — eaf9abb5 Deployed Oct 27, 2026 by vercel[bot]
Preview – darkbloom-status — eaf9abb5 Deployed Oct 27, 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.

2 participants