Skip to content

Provider on dev: Xcode 27.2 / SDK 27.2 with the back-deployed Date fix (port of #1791 + #1807) - #1815

Merged
davidtai merged 3 commits into
devfrom
port/sdk-27-2-dev
Nov 5, 2026
Merged

davidtai merged 3 commits into
devfrom
port/sdk-27-2-dev

Conversation

@davidtai

@davidtai davidtai commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Draft. Do not merge before #1807 merges into master. David's order (2026-11-05): fix first, then port the 27.2 SDK to dev once it works reliably.

Why

#1801 moved dev to Xcode 27.2 (SDK 27.2, Swift 6.4.2). #1804 reverted it: DevNet build 0.10.6-dev.branch.87 crashed in a loop on a macOS 27.2 seed (26B5091g). The cause is Foundation's back-deployed Date.>= and Date.<=. #1807 fixes the cause on master. This PR brings both to dev: the toolchain of #1791 and the fix of #1807 (head 8c6b57b9d).

Changes and their master source

Dev change Master source
Commit 1: revert of #1804 (73ecb2bc7). It applies #1801 again, which is the dev port of #1791. No conflicts with current dev. Files: mise.toml, scripts/prepare-provider-release-toolchain.sh, scripts/test-provider-release-toolchain.py, scripts/provider_release_resume/identity.py, release-provider.yml, provider-release-cache.yml, provider-signing-validation.yml, docs, changelog.d/ci-xcode-27-2-toolchain.md #1791 (90b9dc28c), via #1801 (219523dfd)
26 Date >= / <= comparisons in 10 files become a.timeIntervalSince(b) >= 0 / <= 0. The hunks apply to dev unchanged #1807
scripts/check-date-comparisons.py, scripts/check-provider-weak-imports.py and their tests #1807. One dev fix in the source check (commit 5d1bf38b5), see below; carry it to #1807
Binary check step in the release lane of .github/actions/provider-release-build/action.yml, unchanged. Dev callers: release-provider.yml (from release-dev-branch.yml and release-swift.yml) and provider-release-cache.yml #1807
release-swift.yml, release-dev-branch.yml, provider-release-cache.yml: path filters for scripts/check-provider-weak-imports.py #1807
Source check step in ci-master.yml Release Integrity #1807 ci.yml Release Integrity. Dev has no ci.yml; ci-master.yml replaces it
Dev only: the same step in the Provider Tests gate of provider-tests.yml, if: !cancelled(). CI (dev) has no Release Integrity, so the gate is where dev pull requests run it. scripts/test-provider-ci-workflow.py pins the step Dev adaptation of #1807 ci.yml
Docs: docs/developer/build.md, docs/developer/test.md, docs/operations/provider-release.md, docs/architecture/security/provider-trust.md, docs/architecture/inference.md, docs/provider/cli-reference.md, docs/threat-model.yaml #1807. On dev the text names provider-tests.yml, ci-dev.yml and ci-master.yml where master names ci.yml (two cells in build.md, one sentence in test.md, one in inference.md)
Changelog: the #1807 bullet in changelog.d/ci-xcode-27-2-toolchain.md, plus one sentence on where the source check runs #1807

Extra Date comparisons on dev

None. The binary check proves it: SDK 27 release preparation run 42025284212 built dev's source with SDK 27.2 (Blacksmith, Xcode_27.2_beta_3.app, build 27B5038j) and the check passed all five binaries (CLI, enclave, fan helper, cluster worker, cluster plan). By reading: #1807 took its 26 call sites from the binaries of branch.87, which was built from dev at 814268cfd. I read every >= and <= line that dev added since 814268cfd, and every one that dev has and master lacks, in provider-swift/Sources, libs/darkbloom-cluster/Sources and libs/darkbloom-cluster-worker/Sources. Each compares Double, an integer, Duration or a count.

Source check fix (dev only so far)

On dev the source check reported two false hits: ClusterOnboardingFlow.swift:1973 and :1979, waited >= bound and waited >= settingsHintSeconds (CI (dev) run 42025284502). let waited = Date().timeIntervalSince(started) binds a TimeInterval. The check took every let or var whose value starts with Date( as a Date. Now a Date initializer, Date.now, Date.distantPast or Date.distantFuture counts only when no member follows it. Date().addingTimeInterval(...) still counts through its own pattern. The change only removes Date evidence, so it cannot add a finding. Master's source has no waited-style comparison, which is why #1807 passes. The test adds let waited = Date().timeIntervalSince(started) and let age = Date.now.timeIntervalSince1970 to the allowed source. #1807 needs the same change before dev merges into master.

Hooked up

  • scripts/check-date-comparisons.py: provider-tests.yml job provider-test-gate (check Provider Tests), step "Refuse back-deployed Date comparisons in provider source"; ci-master.yml job release-integrity, same step.
  • scripts/check-provider-weak-imports.py: .github/actions/provider-release-build/action.yml, step "Refuse Foundation imports that a served macOS lacks" (release lane). Callers: release-provider.yml build-provider (from release-dev-branch.yml on dev pushes) and provider-release-cache.yml warm.

How it was tested

  • No local builds or tests (laptop rule). CI is the test.
  • CI to read: CI (dev) → Tests → Provider Tests runs the source check on dev's source. SDK 27 release preparation → SDK 27 release builds the release lane and runs the binary check. Its log prints Built with SDK ….
  • Blacksmith blacksmith-12vcpu-macos-27 has SDK 27.2 only as Xcode 27.2 beta 3 (/Applications/Xcode_27.2_beta_3.app, 27B5038j); the image default is not 27.2, so the toolchain step exports DEVELOPER_DIR. Branch.87 was built with the same Xcode. Release mode accepts it (SDK 27.2, Swift 6.4.2). It is not the Xcode 27.2 release (27B52) of the Darkbloom Sandbox base.
  • Not proven: a dev build with SDK 27.2 running on a macOS 27.2 seed Mac. That is the first DevNet build after this merges.

🤖 Generated with Claude Code

davidtai and others added 2 commits November 5, 2026 06:08
…e-apply #1801, port of #1791)

Reverts #1804 (73ecb2b), which reverted #1801. The SDK 27.2 crash
that #1804 found (back-deployed Date >= / <= on macOS 27.2 seeds) is
fixed by the port of #1807 in the next commits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… and release binaries (port of #1807)

Ports #1807 (head 8c6b57b) to dev:

- The 26 Date >= / <= comparisons in 10 provider files become
  a.timeIntervalSince(b) >= 0 / <= 0, as on master. The hunks apply to dev
  unchanged. Dev adds no other Date >= / <= since DevNet build
  0.10.6-dev.branch.87 (814268c), whose binaries #1807 read.
- scripts/check-date-comparisons.py and scripts/check-provider-weak-imports.py
  with their tests, unchanged.
- Dev has no ci.yml. The source check runs in the Provider Tests gate of
  provider-tests.yml (every CI (dev) and CI (master) run) and in
  ci-master.yml Release Integrity, where master's ci.yml runs it.
  test-provider-ci-workflow.py pins the gate step.
- The binary check runs in the release lane of provider-release-build, as on
  master: release-provider.yml (release-dev-branch.yml, release-swift.yml)
  and SDK 27 release preparation.
- Docs and the changelog fragment as in #1807, with dev's CI file names.

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

vercel Bot commented Nov 5, 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 5, 2026 12:42pm UTC
d-inference-console-ui-dev Error Error Nov 5, 2026 12:42pm UTC
d-inference-landing Ready Ready Preview Nov 5, 2026 12:42pm UTC
darkbloom-status Ready Ready Preview Nov 5, 2026 12:42pm UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 5, 2026 12:42pm UTC

Request Review

CI (dev) run 42025284502 failed the source check on dev's
ClusterOnboardingFlow.swift:1973 and 1979: `let waited =
Date().timeIntervalSince(started)` binds a TimeInterval, but the
file-wide evidence (_DATE_VALUE) took every value that starts with
`Date(` as a Date. A Date initializer or Date.now/distantPast/
distantFuture now counts only when no member follows it.
`Date().addingTimeInterval(...)` still counts, by its own pattern.

Shipped source has 29 such `timeIntervalSince` bindings and 26
`addingTimeInterval` ones; only the first kind changes, and each is a
TimeInterval. Master's source has no comparison that this changes.
The test adds both forms to the allowed source.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@davidtai
davidtai marked this pull request as ready for review November 5, 2026 13:08
@davidtai
davidtai merged commit 835e5fb into dev Nov 5, 2026
19 of 21 checks passed
@davidtai
davidtai deleted the port/sdk-27-2-dev branch November 5, 2026 13:09
jonathan308 added a commit that referenced this pull request Nov 5, 2026
#1807 (master) and #1815 (dev) carry the same Date fix; dev's copy is newer, so these files take
dev b7c52e4's version:
- .github/workflows/provider-tests.yml
- changelog.d/ci-xcode-27-2-toolchain.md
- docs/architecture/inference.md
- docs/developer/build.md
- docs/developer/test.md
- scripts/check-date-comparisons.py
- scripts/test-check-date-comparisons.py

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

This branch had an error being deployed

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