Skip to content

fix(provider): judge coordinator traffic and re-registration only on current evidence - #1633

Merged
Gajesh2007 merged 2 commits into
masterfrom
fix/stale-authorization-status
Oct 27, 2026
Merged

Gajesh2007 merged 2 commits into
masterfrom
fix/stale-authorization-status

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Summary

Release blocker for 0.10.4, follow-up to #1607 (merged, unreleased). #1607's Traffic: verdict (status/doctor) and its re-registration of unauthorized connections treated the latest trust_status as current forever. Against the current production coordinator that is wrong for every legacy (MDM-cohort) Mac:

  • The registration status carries authorization.path: "none" (app_attest_qualification_required), and no status follows when legacy verification authorizes the connection seconds later.
  • So on 0.10.4 every legacy-authorized Mac (~166) would read Traffic: NOT receiving coordinator work (macOS 26 Macs: "upgrade to macOS 27"), and an idle one would re-register after 15–30 min, then 30 min, 1 h, 2 h and every 4 h forever (the backoff only resets on an authorized status, which never comes).

This PR makes both act only on current evidence, from one shared decision tree, so NOT receiving and "counts toward re-registration" can no longer disagree.

Coordinator facts (platform master 5ba280d)

Fact Source
Registration status is sent before the connection's first verified challenge is recorded, so it is computed without legacy authorization (path: none) coordinator/api/provider/trust/attestation.go: sendTrustStatus(..., "SE attestation verified, awaiting MDM verification") precedes provider.SetLastChallengeVerified(time.Now())
Legacy authorization requires a fresh verified challenge coordinator/registry/app_attest_authorization.go (providerLegacyServingAuthorizedLocked: !p.LastChallengeVerified.IsZero() && now.Sub(...) <= challengeFreshnessMaxAge)
The first challenge is sent at once; a passing challenge sends a status only on transient-deroute recovery coordinator/internal/provider/challenge/challenge.go ("Send initial challenge immediately"); challenge_verify.go (if recovered { s.sendTrustStatus(...) })
App Attest statuses are renewed every 5 s, only for connections holding a proof coordinator/internal/appattest/authorization/controller.go (StatusInterval = 5 * time.Second, refreshStatus)
In flight, not deployed: platform #491 re-sends trust_status every 5 s to connections with neither authorization; a separate platform change would send one when a connection becomes legacy-authorized platform PR #491

Design

ServingReadiness.verdict(connection:trust:…) is now the single decision tree. ProviderLoop.superviseServingAuthorization acts on its result (.blocked → the unauthorized clock; .authorized → reset; anything else → stop the clock), and UnauthorizedConnectionRecovery keeps only the timing policy (its duplicate connectionLacksAuthorization is removed).

Evidence Verdict (status / doctor) Counts toward re-registration
Current App Attest lease, legacy path, hardware trust without an authorization object eligible no (resets backoff)
New: a coordinator request routed after the latest status (coordinator_connection.last_request_at) eligible (received a coordinator request 3m ago) no (resets backoff)
untrusted / offline status, any age NOT receiving yes
Expired App Attest lease (explicit expiresAt in the past), any age NOT receiving yes
No status at all 90 s after connecting NOT receiving yes
Refusal (none, no lease, not legacy) in the first 90 s after connecting New: not yet eligible (not authorized so far: <reason>) no
Refusal received in the last 60 s NOT receiving, with cause and fix yes
Refusal older than 60 s New: unconfirmed (no current coordinator verdict; the last one, 19m ago, did not authorize this connection: <reason>), no fix no

Window: refusalMaxAge = 60 s, with the existing statusGraceSeconds = 90 s.

  • 60 s is 12 renewal periods of the coordinator's 5 s status cadence (App Attest today; perf(network): streaming hot-path optimizations + dead-code cleanup #491 for refused connections), so a coordinator that keeps refusing never lets its verdict go stale through dropped control-lane frames (perf(network): streaming hot-path optimizations + dead-code cleanup #491 drops on a full lane) or a late capacity tick.
  • 60 s < 90 s means the registration-time refusal can never block by itself: by the end of the grace it is already older than 60 s. Only a refusal the coordinator re-sends at least 30 s after the connection came up can block, which the current coordinator never does for a legacy connection.
  • Both are far below the 15-minute re-registration threshold, so a refusal that stops being repeated never accumulates unauthorized time.

"No status at all long after registering" is kept. It is not the staleness flaw: it is not an old verdict but the absence of the status every coordinator sends at registration, re-evaluated every tick, and it gets stronger with time. A legacy Mac always receives the registration status, so this case never applies to it.

Positive evidence. The connection reader stamps coordinator_connection.last_request_at on every inference_request (per connection; cleared on reconnect). A request newer than the latest status outweighs a refusal or a missing status, but not an explicit untrusted status or an expired lease.

Logging. "Coordinator authorizes this connection for work" is logged only on positive evidence. A refusal that ages out logs the new "Coordinator refusal of this connection is no longer current; routing is unconfirmed" instead of claiming routing resumed.

Before

flowchart TB
  subgraph BB["Behavior: legacy Mac on the current coordinator"]
    direction LR
    b1["Registers"]:::input --> b2["trust_status path none<br/>(computed before the first challenge)"]:::coord
    b2 --> b3["First challenge passes:<br/>legacy authorized, no status sent"]:::coord
    b3 --> b4["Traffic: NOT receiving coordinator work<br/>macOS 26: upgrade to macOS 27"]:::gap
    b4 --> b5["Idle 15-30 min: re-register,<br/>then 30 m, 1 h, 2 h, every 4 h"]:::gap
    b5 -.-> b1
  end
  subgraph BC["Code"]
    direction LR
    c1["superviseServingAuthorization"]:::code --> c2["UnauthorizedConnectionRecovery<br/>.connectionLacksAuthorization<br/>status age ignored"]:::gap
    c3["status / doctor"]:::code --> c4["ServingReadiness.verdict<br/>separate tree, status age ignored"]:::gap
  end
  BB ~~~ BC
  style BB fill:#f8fafc,stroke:#64748b,color:#0f172a
  style BC fill:#f8fafc,stroke:#64748b,color:#0f172a
  classDef input fill:#dbeafe,stroke:#1d4ed8,color:#1e3a8a
  classDef coord fill:#fef3c7,stroke:#b45309,color:#78350f
  classDef code fill:#e0e7ff,stroke:#4338ca,color:#1e1b4b
  classDef gap fill:#fee2e2,stroke:#b91c1c,color:#7f1d1d
Loading

After

flowchart TB
  subgraph AB["Behavior"]
    direction LR
    a1["Registers"]:::input --> a2["trust_status path none"]:::coord
    a2 --> a3["First 90 s:<br/>Traffic: not yet eligible"]:::new
    a3 --> a4{"Refusal re-sent<br/>in the last 60 s?"}:::code
    a4 -- "no: current coordinator,<br/>legacy Mac" --> a5["Traffic: unconfirmed<br/>last verdict age and reason, no fix<br/>never re-registers"]:::new
    a4 -- "yes: refreshing coordinator<br/>(platform #491)" --> a6["Traffic: NOT receiving + fix<br/>idle 15-30 min: re-register"]:::kept
    a5 -- "coordinator routes a request" --> a7["Traffic: eligible<br/>received a coordinator request 3m ago"]:::new
  end
  subgraph AC["Code"]
    direction LR
    r1["Connection reader<br/>inference_request"]:::code --> r2["noteCoordinatorRequest<br/>last_request_at"]:::new
    s1["superviseServingAuthorization"]:::code --> v1["ServingReadiness.verdict(connection:trust:)<br/>grace 90 s, refusalMaxAge 60 s,<br/>routed request"]:::new
    d1["status / doctor"]:::code --> v1
    r2 --> v1
    v1 -- "blocked only" --> p1["UnauthorizedConnectionRecovery<br/>.shouldReconnect (timing only)"]:::kept
  end
  AB ~~~ AC
  style AB fill:#f8fafc,stroke:#64748b,color:#0f172a
  style AC fill:#f8fafc,stroke:#64748b,color:#0f172a
  classDef input fill:#dbeafe,stroke:#1d4ed8,color:#1e3a8a
  classDef coord fill:#fef3c7,stroke:#b45309,color:#78350f
  classDef code fill:#e0e7ff,stroke:#4338ca,color:#1e1b4b
  classDef kept fill:#f1f5f9,stroke:#475569,color:#0f172a
  classDef new fill:#dcfce7,stroke:#15803d,color:#14532d
Loading

Legend: blue is the provider event, amber is coordinator behavior, indigo is code, red is the defect on master, green is new behavior, grey is #1607 behavior this PR keeps.

Validation

Local, on aa2887f1d + this commit (Apple Silicon, Xcode Swift 6.4, swift build --build-tests, staged source-matched metallib 6ccc6296…), daemon state isolated as in scripts/run-provider-tests.sh.

Check Result
swift test --skip-build --no-parallel --filter 'ServingReadinessTests|UnauthorizedConnectionRecoveryTests|UnauthorizedConnectionSupervisionTests|ProviderAuthorizationConnectionTests|ProviderAuthorizationReadinessTests|publicProviderLog|everyReasonHasItsOwnPublicLine|ServeLoopAppAttestTests|ServeLoopConnectionTests|AddonHoldServeLoopTests|DaemonStateServedCountTests|AutopilotSnapshotCodingTests|StatusCommandRunTests|StatusCommandTests|DoctorOperatorDiagnosisTests|DiagnosticsTests|AppAttestLocalDiagnosisTests' 109 tests in 14 suites + 32 tests in 5 suites passed, 0 issues, 0 skips (includes the real connection reader in "Serve loop App Attest", "Serve loop connection", "Add-on hold serve loop")
Mutation: master's rule restored inside the new code (refusalMaxAge = .infinity, no refusal grace), rebuilt Legacy-scenario tests fail: the loop starts the unauthorized clock, re-registers and logs "not routing"/"re-registering" (291 issues in aRegistrationRefusalAloneNeverReregisters); status prints NOT receiving instead of unconfirmed; doctor reports fail with a fix
make changelog-check, make changelog-preview 14 valid fragments; amended fragment renders
make docs-impact-check BASE=origin/master 16 changed files, coverage OK
make docs-check 93 problems, byte-identical to origin/master: all cite removed console-ui/ paths (known leftovers); none in files this PR touches

Required scenarios:

Scenario Test
(a) Legacy: registration refusal, no later status: never re-registers over a simulated day (ticks at 5 s … 24 h), no "not routing" log; verdict pending at 20 s, unconfirmed (no macOS 27 text) at 10 min UnauthorizedConnectionSupervisionTests.aRegistrationRefusalAloneNeverReregisters; ServingReadinessTests.aRefusalTheCoordinatorStoppedRepeatingIsUnconfirmed, aRefusalRightAfterConnectingIsPending; CLI: StatusCommandRunTests.trafficVerdict (new section), DoctorOperatorDiagnosisTests.coordinatorTraffic (new case)
(b) Genuinely refused with fresh 5 s statuses: re-registers exactly at the threshold when idle unauthorizedConnectionIsReportedAndReregisteredAfterTheThreshold (now delivers a refusal every 5 s for 15 min)
(c) Expired lease still judged from a 2-min-old status anExpiredLeaseIsJudgedWithoutAFreshStatus; ServingReadinessTests.expiredLeaseIsNotReceiving (2 h-old status)
(d) Positive traffic override, and a later refusal counts again; disconnected requests ignored aRoutedRequestOutweighsAnEarlierRefusal; ServingReadinessTests.aRequestAfterTheLatestStatusIsEligible
Logging: aged-out refusal logs "no longer current", not "authorizes" aRefusalTheCoordinatorStopsRepeatingIsLoggedAsUnconfirmed
(e) #1607 tests All kept. The three loop tests now deliver statuses with an injected receivedAt, as a refreshing coordinator does. judgesOnlyCoordinatorVerdictsItCanRead tested the removed duplicate classifier; it keeps all eight original cases (same expectations) through the shared verdict and adds six. connectionStateRoundTripsThroughTheStateFile also pins last_request_at

Limitations and risks

  • Genuinely refused connections on the current coordinator. A connection whose only refusal is the registration status (e.g. locked keychain, app_attest_identity_required, macOS 26 outside the cohort) now reads unconfirmed and is not re-registered. The provider cannot tell it from a legacy-authorized Mac without fresh evidence. Blocked display and re-registration resume automatically once the coordinator re-sends refusals (platform perf(network): streaming hot-path optimizations + dead-code cleanup #491); explicit untrusted/offline, expired leases and never-confirmed connections are still acted on today.
  • Self-route traffic counts as routed. Owner self-route dispatch uses its own policy (coordinator/registry/owner_authorization.go, ProviderOwnerServingAuthorized, no authorization required) and is indistinguishable at the provider. A self-routed Mac that the public fleet refuses reads eligible until the next refusal (≤ 5 s with perf(network): streaming hot-path optimizations + dead-code cleanup #491; on the current coordinator it would otherwise read unconfirmed).
  • Expired lease kept as explicit evidence, as before: if a coordinator silently granted legacy after a lease lapsed, the provider would still judge it.
  • A legacy Mac that receives no requests reads unconfirmed indefinitely on the current coordinator (informational in doctor, no fix). A platform change sending a status on legacy authorization would make it eligible (legacy (MDM) verification active) with no provider change.
  • Evidence is unit and loop level with injected clocks plus the CLI in a subprocess; no live coordinator was used.

Overlap with #1427

git merge-tree merges #1427 (1a637b77) cleanly into this branch, as into master. This PR does not touch StatusCommand.swift or ProviderAuthorizationReadiness; in DoctorRunner.swift it only adds a case to trafficDiagnostic, away from #1427's hunks. The semantics agree: an unexpired App Attest lease authorizes regardless of status age here, as #1427 makes the Authorization: line do.

Changelog

changelog.d/coordinator-traffic-verdict.md is #1607's unreleased 0.10.4 fragment; this PR corrects that change's behavior before release, so the fragment is amended in place (CONTRIBUTING.md: keep follow-up edits in the change's fragment). CHANGELOG.md is untouched.

Refactor pass

AGENTS.md requires a dedicated refactor subagent before opening a PR. No subagent-spawning tool was available in this session, so that gate is not satisfied by a subagent; per the task owner's fallback I did a careful self-review of the full diff. Outcome: the consolidation into one decision tree (removing the duplicate classifier rather than adding a third predicate) was kept as the core simplification; review fixes were a type annotation for a test log sink, limiting the refuse test helper to refusals, and widening two CLI tests' timing margin (refusal age 1,150 s so "19m" holds even if the subprocess starts 50 s late). A maintainer may want an independent refactor review before merge.

CI note

Docs Lint and Console UI currently fail on master itself because of console-ui/ leftovers (being fixed separately); expect those two to fail here for that reason only. All provider jobs should be green.

Scope: Provider (Swift), Documentation. No wire-protocol change; the local daemon state file gains the optional coordinator_connection.last_request_at (additive, unreleased struct).


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

Independent refactor pass (completed)

A dedicated refactor reviewer (separate agent) reviewed the full diff and found no duplicate classifier logic or dead code left; ServingReadiness is the single classifier and UnauthorizedConnectionRecovery only handles timing. It made three comment/doc edits, no behavior change (3ea72eb36): the request-ordering invariant behind noteCoordinatorRequest() placement, the ServingReadiness type comment now naming the re-registration trigger, and troubleshooting.md no longer calling unconfirmed "not an exclusion". 98/98 targeted tests pass after the edits (PR suites, the three serve-loop suites, add-on-hold serve loop, status/doctor/trust/daemon-state, log vocabulary).

Additional limitation

Until platform #491 is deployed (merged 2026-10-27; ships with the next coordinator deploy), App Attest refusals the coordinator does not repeat show as blocked for only 60 s after each refusal and as unconfirmed otherwise, so #1607's re-registration acts only on untrusted/offline, an expired lease, or no status at all. Once #491's 5 s refusal refresh is live, blocked verdicts and re-registration apply as designed.

…current evidence

#1607 (unreleased) treated the latest trust_status as current forever. The
production coordinator computes the registration status before it records
the connection's first verified challenge, so it carries authorization path
"none" (app_attest_qualification_required), and it sends no status when
legacy verification authorizes the connection right after: challenge
success sends one only on transient-deroute recovery, and App Attest
statuses follow lease changes. Every legacy (MDM-cohort) Mac would have
read "Traffic: NOT receiving coordinator work" (macOS 26 Macs: "upgrade to
macOS 27"), and an idle one would have re-registered after 15-30 min, then
30 min, 1 h, 2 h and every 4 h, with a backoff that never reset.

ServingReadiness is now the one decision tree for both the Traffic verdict
and re-registration (UnauthorizedConnectionRecovery's duplicate
connectionLacksAuthorization is removed; the policy keeps the timing):

- A refusal (no App Attest lease, current or expired, and no legacy path)
  blocks only while current: past statusGraceSeconds (90 s) after
  connecting and at most refusalMaxAge (60 s) old. The coordinator renews a
  status it maintains every 5 s (App Attest leases; platform #491 adds
  refused connections), so 60 s tolerates a dozen lost renewals, and since
  60 < 90 the registration status alone never blocks. An older refusal is
  the new `unconfirmed` verdict: its age and reason, no fix, no macOS 27.
- Explicit evidence still blocks at any age: untrusted/offline (the
  coordinator sends a recovery status), an expired App Attest lease (it
  names its own expiry), and no status 90 s after connecting (the
  coordinator always sends one at registration; it is not a stale verdict).
- A request the coordinator routed after its latest status
  (coordinator_connection.last_request_at, noted by the connection reader)
  reads as eligible and resets the backoff; it does not outweigh untrusted
  or an expired lease.
- Leaving the refused state logs "Coordinator authorizes this connection
  for work" only on positive evidence; a refusal that ages out logs
  "Coordinator refusal of this connection is no longer current; routing is
  unconfirmed".

handleTrustStatus takes an injectable receivedAt for tests. status and
doctor render `unconfirmed` (doctor: info, no fix).

Tests: a registration refusal with no later status never re-registers over
a simulated day and reads pending, then unconfirmed without macOS 27
advice; a refusal repeated every 5 s still re-registers at the threshold
when idle; an expired lease from a 2-minute-old status is still judged; a
routed request outweighs an earlier refusal and a later refusal counts
again; an aged-out refusal logs the unconfirmed line, not the routing one.
The #1607 tests are kept and now deliver statuses as a refreshing
coordinator does; judgesOnlyCoordinatorVerdictsItCanRead keeps its cases,
checked through the shared verdict. With master's rule restored in the
new code (refusals never age, no refusal grace) the legacy-scenario tests
fail.

Docs: cli-reference Traffic line, troubleshooting rows; the unreleased
coordinator-traffic-verdict fragment is amended in place.
@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 Error Error Oct 27, 2026 9:18pm UTC
d-inference-console-ui-dev Error Error Oct 27, 2026 9:18pm UTC
d-inference-landing Ready Ready Preview Oct 27, 2026 9:18pm UTC
darkbloom-status Ready Ready Preview Oct 27, 2026 9:18pm UTC
eigen-homepages-darkbloom Ready Ready Preview Oct 27, 2026 9:18pm UTC

Request Review

@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-27T21:20:10.063928Z 3ea72eb New commits
ℹ️ 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 3ea72eb36298 against base aa2887f1df73.

Reviewers: anthropic/claude-sonnet-5.5: first pass completed; anthropic/claude-opus-5.5: selected depth completed (5 batches); openai/gpt-6.1-sol: selected depth completed (1 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: 80/80 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), 12 reused batch(es), 0 provider cache-hit tokens.

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

Bedrock: 9 request(s), 400438 uncached + 0 cache-read + 15857 cache-write input / 8306 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: 22 native request(s), including one shared response repair; 500 emergency ceiling. Selected depth and integration rounds are admitted as their scope becomes known.

…g unconfirmed "not an exclusion"

Refactor pass on the current-evidence traffic verdict. No behavior change.

- ProviderLoop+Serve: say why noteCoordinatorRequest runs in the
  connection-control reader. ServingReadiness compares lastRequestAt with
  trust.receivedAt; noted from the work reader instead, a request parked
  behind a model load could be stamped after a refusal that arrived later.
- ServingReadiness: the type doc said "Diagnostics only", but the blocked
  verdict now also triggers re-registration
  (ProviderLoop.superviseServingAuthorization).
- troubleshooting: `unconfirmed` also covers an App Attest refusal the
  current coordinator does not repeat (for example a locked keychain), so
  "this is not an exclusion" and "needs no action" overclaimed. The row now
  says it does not show an exclusion and that its reason may no longer apply.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3ea72eb362

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/provider/cli-reference.md Resolved
@Gajesh2007
Gajesh2007 merged commit 52f79ef into master Oct 27, 2026
31 of 34 checks passed
Gajesh2007 added a commit that referenced this pull request Oct 27, 2026
…nd platform #491/#541

The re-registration note now states which evidence counts (#1633); the
delta-checkpoint off switch is forwarded to the launchd job (#1630); the
coordinator to deploy before the tag must include #516, #491 and #541;
#1631 joins the non-provider entries.
davidtai added a commit that referenced this pull request Oct 27, 2026
…on dev

Master removed the console-ui leftovers in #1631. This branch had a
cherry-pick of the open PR #1629 for the same cleanup; that cherry-pick is
reverted in the parent commit, so the next master merge into dev does not
conflict on the same files. One conflict: the "Last updated" stamp of
docs/reference/ssd-kv-cache.md, resolved to master's 2026-10-27. The
cluster beta's gitlink pins (libs/mlx ea318ee0, libs/mlx-swift 31ffa0d5,
libs/mlx-swift-lm b6650465) stay; master did not change them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gajesh2007 Gajesh2007 mentioned this pull request Oct 27, 2026
7 of 9 tasks
Gajesh2007 added a commit that referenced this pull request Oct 27, 2026
* chore(release): prepare provider 0.10.4

Set ProviderCore.version to 0.10.4 and mark v0.10.3 as published on
2026-10-26 (tag target 3ddd11c).

Open the v0.10.4 candidate entry with its upgrade and rollout notes: deploy
darkbloom-platform#516 close to the rollout (Qwen JSON prompts render without
thinking; mixed versions fail cache receipts with prompt_anchor_mismatch but
still serve), the client-visible Qwen JSON changes (no default reasoning, a
grammar-constrained answer cut short is a 422 after streaming, no MTP beside a
constrained row), forced tool_choice on four more models without a version
floor, delta checkpoints across upgrade and rollback, the unauthorized
re-registration cadence, the status served-line format, the add-on hold
(darkbloom-platform#514 already in production), unchanged MLX pins, and the
entries that build no provider artifact.

Update the release runbook: the 0.10.4 scope, the pin and metallib checks
before tagging, the rollout order and post-tag platform snapshot, the 0.10.2
enablement steps that still apply, platform evidence inspected on 2026-10-27,
and the published history.

The pending changelog fragments are rendered in the next commit.

* chore(release): render the pending changelog fragments into provider 0.10.4

Insert the output of

  python3 scripts/changelog.py render --version 0.10.4 --date 2026-10-27 \
    base-reward-zero-reason.md ci-darkbloom-runner-routing.md \
    coordinator-reconnect-stall.md coordinator-traffic-verdict.md \
    delta-complete-checkpoints.md desktop-release-sign-dmg.md \
    desktop-update-feed.md forced-tool-choice-admission.md \
    json-response-format-enforcement.md landing-agent-documents.md \
    provider-addon-hold-hardening.md provider-addon-hold.md \
    status-served-session-counts.md switch-model-cache-directory.md

verbatim, without its heading line, below the v0.10.4 upgrade and rollout
notes, and remove exactly those 14 fragments. The render ran against an
export of origin/master aa2887f, whose changelog.d matches this branch,
because the renderer refuses a version that CHANGELOG.md already names.

This commit is mechanical so the final roll-up can revert it, merge master
and render again once the in-flight 0.10.4 changes have landed.

* Revert "chore(release): render the pending changelog fragments into provider 0.10.4"

This reverts commit f673fff.

* chore(release): update 0.10.4 rollout notes for #1630, #1631, #1633 and platform #491/#541

The re-registration note now states which evidence counts (#1633); the
delta-checkpoint off switch is forwarded to the launchd job (#1630); the
coordinator to deploy before the tag must include #516, #491 and #541;
#1631 joins the non-provider entries.

* chore(release): correct the 0.10.4 rollout notes from the review pass

- A prompt_anchor_mismatch receipt quarantines the provider's cache
  capability for the whole model (coordinator CacheQuarantineCommit.Apply;
  ProofFenceBase 60 s, doubling to ProofFenceMax 10 min), not only the
  mismatched requests' affinity. Say so in the changelog note and runbook
  step 1, and cite the platform code in the evidence table.
- #1599 shipped in v0.10.2 (99e1059 is an ancestor of f9d1af3), not
  first in the v0.10.3 hotfix.
- Drop the runbook's "platform change that pushes trust_status when legacy
  authorization starts is in progress": that change is
  darkbloom-platform#541, merged as 6beb8514, which step 1 already requires.
- Step 1: deploy shortly before the tag, matching the changelog's "close to
  this rollout" for #516, and limit #491's 5 s refresh to App Attest
  serving (startUnauthorizedStatusRefresh returns unless ServingEnabled).
- Step 3: name LatestProviderVersion instead of the dangling "That fallback
  constant", and scope "only ProviderCore.swift should change" to the
  snapshotted inputs.
- Evidence: production 2acffb5c also lacks #491 and #541; add rows for the
  #491/#541 status behavior and the quarantine.

* changelog: delta complete checkpoints apply to Qwen native recurrent layouts, not only Qwen 3.8

Eligibility follows the checkpoint layout (native-paged/contiguous-full-recurrent-v1),
which Qwen 3.5/3.6 MTP builds also produce; the fragment is rendered verbatim into 0.10.4.

* chore(release): render the pending changelog fragments into provider 0.10.4

Verbatim scripts/changelog.py render output for the 15 fragments pending on
master (rendered from a master export, since CHANGELOG.md already names
0.10.4), inserted below the rollout notes; exactly those fragments deleted.
#1427 is not in 0.10.4 and its fragments stay with it.
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 had an error being deployed

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