Repository navigation
Add Swift provider runtime - #110
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@codex Review this |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b56b240188
ℹ️ 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".
…Labs forks
This is the v0.5.0 cutover commit on the Swift provider PR. It lands
true continuous batching as the production inference path, threads
per-row sampling through the request, hard-fails on CPU-only hosts,
renames the user-visible CLI surface from "eigeninference" to
"darkbloom" with backward compatibility, and re-homes the mlx-swift /
mlx-swift-lm submodules to Layr-Labs forks.
Continuous batching (default, no parallel implementations)
----------------------------------------------------------
Replaces the per-request BatchScheduler with one shared BatchGenerator
ported from upstream `mlx_lm.generate`. All concurrent requests are
merged into one batched forward pass per step. Bit-identical against
single-stream greedy on:
- Qwen3 0.6B-8bit (dense), B=2 / B=4-ragged
- Qwen3.5 0.8B-MLX-4bit (hybrid SSM + attention), B=2
- Gemma 4 26B-A4B-it-8bit (MoE, 26 GB), B=2
The mlx-swift-lm side of this work is at
Layr-Labs/mlx-swift-lm@darkbloom-continuous-batching:
- BatchKVCache + BatchedCache protocol
- SequenceStateMachine, PromptProcessingBatch, GenerationBatch,
BatchGenerator
- RowSamplers (temperature / top-P / top-K / seed)
- Gemma 4 MoE support + K=V branch fix in Gemma4Attention
Production scheduler in provider-swift/Sources/ProviderCore/Inference/
BatchScheduler.swift wraps the engine in an actor; detached worker
calls into the actor only for short critical sections so cancel/submit
never queue behind a long-running step. submit() builds a per-row
sampler from request.{temperature, top_p, top_k, seed}.
Validation also covers eviction-and-admission: row 0 finishes mid-batch,
row C is admitted into its slot, row C's tokens match a solo run, row B
(running through the eviction) also matches its solo run. This locks in
BatchKVCache.filterBatched + extendBatched correctness end-to-end.
Sampler unit tests cover greedy passthrough, top-K=1 determinism,
top-K masking, top-P collapse-to-dominant, top-P=1 identity, seeded
reproducibility, and different-seed divergence.
GPU-only enforcement
--------------------
ProviderCore/Inference/GPUEnforcement.swift:
- probeMetal(): non-throwing Metal device probe
- requireMetal(): throws on missing GPU; pins Device.setDefault(.gpu);
idempotent
Wired into BatchScheduler.loadModel, StartCommand, BenchmarkCommand,
and `darkbloom doctor`. Doctor surfaces a `[PASS] metal gpu: <name>,
<N> GB working set` line; `[FAIL]` on Intel/Linux. CPU fallback for
inference is rejected up-front with a descriptive error.
Rename: eigeninference → darkbloom (Swift CLI surface)
------------------------------------------------------
Canonical names:
- eigeninference-enclave → darkbloom-enclave (binary + struct)
- Sources/eigeninference-enclave-cli/ → Sources/darkbloom-enclave-cli/
- SwiftPM target EigenInferenceEnclaveCLI → DarkbloomEnclaveCLI
- eigeninference-bundle-macos-arm64.tar.gz →
darkbloom-bundle-macos-arm64.tar.gz
- ~/.config/eigeninference/ → ~/.config/darkbloom/ (preferred path)
- Mobileconfig prefix: EigenInference-Enroll-* → Darkbloom-Enroll-*
Backward compatibility:
- install.sh creates a `eigeninference-enclave` symlink to
`darkbloom-enclave` so existing install scripts keep resolving.
- Config loader still reads ~/.config/eigeninference/ and the App
Support legacy paths as fallbacks; new writes always go to
~/.config/darkbloom/.
- LocalDataCleanup.purge() removes both directories.
- release-swift.yml publishes the latest tarball under both
canonical and legacy filenames.
- NodeKeyPair.legacyDirNames and SecurityHardening MDM-profile-name
matchers still accept the old name.
- Coordinator/Rust/UI surfaces (R2 buckets, Stripe descriptors,
Solana memos, telemetry source attribution) intentionally
untouched.
CLI subcommands shipped in v0.5.0
---------------------------------
darkbloom serve / start / stop, status, doctor, models {list, catalog,
download, remove}, enroll, unenroll, login, logout, logs, autoupdate,
benchmark, update, verify. start --foreground is the launchd
entrypoint; start --local --port N runs a standalone OpenAI-compatible
HTTP server. PID-file single-instance enforcement, caffeinate-based
sleep prevention, panic-hook telemetry, and metallib hash in
attestation are all wired in.
Submodule re-homing
-------------------
.gitmodules now points to Layr-Labs/mlx-swift and Layr-Labs/mlx-swift-lm.
The mlx-swift pointer is unchanged (clean `main`). The mlx-swift-lm
pointer advances from 3ec4b8a (codex/local-mlx-swift-dependency) to
91612d5 (darkbloom-continuous-batching) which carries the batching
engine + Gemma 4 MoE fork on Layr-Labs/mlx-swift-lm.
Tests
-----
135 / 135 tests pass in 16.5 s with DARKBLOOM_LIVE_MLX_TESTS=1 and
DARKBLOOM_LIVE_MLX_GEMMA=1 (live MLX inference against real models
plus the gated 27 GB Gemma generation test).
Layr-Labs/mlx-swift-lm@main now carries the continuous-batching engine, per-row samplers, and Gemma 4 MoE port at 8d76944. Same tree as the prior 91612d5 commit on the darkbloom-continuous-batching branch, but without the local-path mlx-swift dep hack, so the fork is consumable by URL outside this repo.
|
@codex can you review this |
The .claude/ directory holds local agent state (cursor task files, working notes, the in-progress migration plan). Those don't belong in the repo. Untrack the two committed markdown files and broaden the .gitignore from `.claude/worktrees/` to `.claude/` so future agent runs don't add them back. Strip the dead links to .claude/swift-migration-plan.md from CLAUDE.md, provider-swift/README.md, docs/ARCHITECTURE.md, and scripts/fetch-metallib.sh -- the surrounding prose stands on its own. The local files remain on disk for active reference; only the tracking is removed.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1a3ee7834f
ℹ️ 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".
Two related additions to the provider's model lifecycle:
1) Idle-timeout unload
----------------------
ProviderLoop now runs a background monitor that polls every minute.
If `idleTimeoutMins` minutes (default 60) have elapsed since the last
inference activity AND no requests are in flight, the loaded
ModelContainer is dropped. The next inference request lazy-reloads.
`idleTimeoutMins == 0` disables the monitor; the model stays
resident forever.
The decision is extracted into `IdleTimeoutPolicy.shouldUnload(...)`
so the rule is unit-testable without spinning up the full ProviderLoop
actor (which depends on Secure Enclave, coordinator client, and
security posture). Five unit tests pin the policy: (a) unloads when
all conditions met, (b) never unloads with inflight requests,
(c) never unloads with no model loaded, (d) waits for the timeout to
elapse, (e) zero-timeout edge case is still defensive.
Activity tracking: `lastInferenceAt` updates on every request
admission and on every request finish (`removeInflightTask`). The
worker is a detached `Task` so cancel/submit on the actor never
queue behind the timer.
2) Coordinator-driven model preload
-----------------------------------
New WebSocket message `coordinator → provider: load_model`. The
provider has no inbound listener (security: a discovered IP can't
reach the GPU), so the coordinator pushes preload requests over the
existing outbound WebSocket connection that the provider opened.
Use case: the coordinator predicts demand for model X on machine Y
in the next hour and warms it ahead of time.
Provider behavior:
- If model is already loaded: short-circuit, reply succeeded.
- Otherwise: emit `load_model_status` "started" immediately,
kick off `ensureModelLoaded` in a detached Task, then emit
"succeeded" or "failed" (with an error string) when the load
settles.
Wire surface added in three places (per AGENTS.md sync rule):
- coordinator/internal/protocol/messages.go: `TypeLoadModel`,
`TypeLoadModelStatus`, `LoadModelMessage`, `LoadModelStatusMessage`,
plus the `LoadModelStatusStarted/Succeeded/Failed` constants.
- provider-swift/.../Protocol/Messages.swift: new
`CoordinatorMessage.loadModel(...)` case + `ProviderMessage
.loadModelStatus(...)` case + Codable on both sides.
- provider-swift/.../Coordinator/CoordinatorClient.swift: dispatch
inbound `load_model` to a new `CoordinatorEvent.loadModel(modelId)`
and add `OutboundMessage.loadModelStatus(...)` for the reply.
ProviderLoop wires `handleLoadModelRequest(modelId:send:)` for the
new event. Round-trip tests cover decoding a Go-style `load_model`
JSON and encoding all three lifecycle status replies (started /
succeeded / failed-with-error) with snake_case wire keys.
Rust legacy provider intentionally untouched. The coordinator
should gate `load_model` dispatch on `backend == "mlx-swift"` so
the Rust path never receives an unknown message; that gate lives
on the coordinator side and isn't part of this commit.
Tests
-----
141 / 141 tests pass with DARKBLOOM_LIVE_MLX_TESTS=1 and
DARKBLOOM_LIVE_MLX_GEMMA=1 (live MLX inference + Gemma 4 26B-A4B-it-8bit
MoE batching included). New: 5 IdleTimeoutPolicy tests + 1
loadModel round-trip protocol test.
The errorResponse function only populated type and message, missing code and param required by the OpenAI API spec. Without code, SDKs cannot programmatically distinguish error types (e.g. Python SDK e.code returns None, retry logic breaks, Sentry groups all errors as one). Changes: - errorResponse now accepts optional errorDetailOpt variadic args - code defaults to errType for backward compatibility - withParam() and withCode() helpers for call-site overrides - model-not-found errors include param="model" - model-is-required errors include param="model" - insufficient_funds uses OpenAI-canonical code "insufficient_quota" - rate_limit_exceeded gets explicit withCode for clarity All 202 existing call sites are backward-compatible: the variadic signature means they compile unchanged, and the default code=errType matches the implicit behavior SDKs already assumed. Closes #142
* Fix Darkbloom analytics tracking * Harden release workflow protections (#103) * Harden release registration and binary hash policy (#99) * Harden release registration and binary hash policy * derive release download URL from allowlist * Stabilize provider coordinator test --------- Co-authored-by: Gajesh Naik <26431906+Gajesh2007@users.noreply.github.com> * Remove stale Python integration test (#109) * e2e: add local simulation environment skeleton Introduces scripts/e2e-runner.py, a Python orchestrator that spins up the real coordinator binary with test-friendly configuration (in-memory store, mock billing, no trust requirements) alongside a simulated or real provider, and runs HTTP/WebSocket-level assertions against the live stack. Key components: - Coordinator class: builds and spawns coordinator with EIGENINFERENCE_MIN_TRUST=none, EIGENINFERENCE_BILLING_MOCK=true, and in-memory store - SimulatedProvider: pure-Python WebSocket client speaking the full provider protocol (register, attestation challenge/response, heartbeat, inference request/response) - Test framework: decorator-based test registration, pass/fail summary, signal-safe cleanup via atexit + signal handlers - Test stubs: test_basic (registration + discovery), test_inference (consumer request routing), test_multi_provider (two providers, same model) TODO: - RealProvider wrapper around darkbloom serve --coordinator - Coordination between provider challenge cycle and consumer request timing - API key handling for consumer vs admin routes - Python dependency management (websockets, cryptography) * Revert "e2e: add local simulation environment skeleton" This reverts commit d02074e. The Python E2E runner adds noise on top of the existing Go integration tests (internal/api/integration_test.go + fullstack_integration_test.go) which already cover the full coordinator protocol surface. The cross-language orchestration doesn't buy anything over what httptest.Server + simulated providers already provide. * Remove stale Python integration test @ethenotethan tests/integration_test.py is superseded by the Go-based coordinator integration tests at coordinator/internal/api/: - Test coverage for coordinator protocol (register, challenge, heartbeat, inference) is covered by integration_test.go using httptest.Server + Go simulated providers — same coverage, no binary build needed - Full-stack GPU inference is covered by fullstack_integration_test.go with real vllm-mlx backends (gated behind LIVE_FULLSTACK_TEST=1) - The Python test uses stale binary names ('eigeninference-provider'), old flags ('--backend mlx-lm'), and predates attestation challenges, E2E encryption, and the vllm-mlx backend migration - No external dependency coverage (Postgres, Stripe, etc.) is lost — the coordinator main.go wiring for those is trivially tested elsewhere - The Python SDK tests (4.5.x) belong in the SDK repo, not the infra repo --------- Co-authored-by: Hank Bob <hankbob@researchoors.com> * chore: remove unused dependencies (#112) * chore: remove unused dependencies * test: fix console ui test isolation * chore: prune repo-wide dead code findings * ci: run CI on any PR, not just master/main (#119) * ci: remove racing deploy-dev-coordinator workflow (#137) Cloud Build (deploy/gcp/cloudbuild.yaml) already deploys the coordinator on the same trigger (push to master touching coordinator/** or deploy/gcp/**). Having both paths active creates a race condition where two CI systems simultaneously deploy to the same dev VM — see #115. * feat: add Datadog observability stack for dev coordinator Install Datadog Agent on the dev GCE VM (DogStatsD, APM, journald logs) and wire the coordinator to emit structured metrics, split attestation counters, model_type tags, reactive provider-count gauges, and a completion-tokens counter. Rebuild the dev dashboard with 7 sections covering metrics, logs, traces, and system health. * fix: prevent double-decrement when untrusted provider disconnects Disconnect now checks StatusUntrusted before decrementing the online counter and model-provider gauges, since MarkUntrusted already decremented them. * feat: add fleet version and binary hash observability New metrics: - providers.per_version gauge (per provider binary version) - providers.per_binary_hash gauge (per attested binary hash) - coordinator.min_provider_version_set gauge (1 when configured) - provider_version_below_minimum counter (tagged by gate and version) Gates instrumented: - registration (provider.go) - challenge revalidation (provider.go) - manifest sync (server.go) Registry additions: - ProviderCountByVersion() - ProviderCountByBinaryHash() Dashboard: Fleet Version & Binary Hash group with providers by version, providers by binary hash, min provider version, below-minimum events, and top binary hashes toplist. * fix: update Dockerfile + cloudbuild for go.mod at repo root go.mod moved from coordinator/ to repo root during the swift-provider merge. Build context is now repo root, Dockerfile copies coordinator/ subdir explicitly. * fix: chmod +x coordinator binary in Dockerfile * fix: ensure coordinator binary is executable in builder stage * fix: rename coordinator source dir in builder to avoid colliding with binary path * fix: copy full repo in Dockerfile builder so go.mod resolves all packages * fix: remove unused modelTypeTag and format Go files for CI * fix: skip python/dangerous-modules check for swift runtime in private text gate * billing telemetry + MarkUntrusted race fix + Swift routing tests - Add Datadog histogram metrics for reservation amounts, settlement refunds, provider credits, and platform fees - Add store.debit/credit.latency_ms histograms for DB operation timing - Add billing.cost_clamped and billing.reservation_refunds counters - Fix race in MarkUntrusted: hold r.mu write lock through counter decrement to prevent double-decrement with Disconnect - Add unit tests for Swift provider privacy caps (with/without Python) - Add E2E test for Swift provider routing via challenge-verified path - Update dev-network-dashboard.json with Billing & Store group * fix Heartbeat reviving untrusted providers causing onlineCount double-decrement * revert orthogonal landing/console-ui/provider changes * remove unbounded binary_hash cardinality, add input token metrics + store latency, fix dashboard group-by * fix review feedback: ModelType() untrusted filter, routing.cost_ms by provider, billing in cents, dead comment --------- Co-authored-by: Gajesh Naik <26431906+Gajesh2007@users.noreply.github.com> Co-authored-by: anupsv <6407789+anupsv@users.noreply.github.com> Co-authored-by: hankbob <hankbobtheresearchoor@gmail.com> Co-authored-by: Hank Bob <hankbob@researchoors.com>
Master had 8 commits ahead; 7 were already incorporated via PR #143 (Datadog observability), which folded them as sub-commits into the new coordinator/api/ directory structure. The only novel master commit was 85cedc7 (workflow version-comment fix), which auto-merged into ci.yml, claude.yml, and codex.yml. Conflict resolutions: - Deleted: legacy Rust release.yml (replaced by release-rust-bridge.yml + release-swift.yml on swift-provider) - Deleted: legacy SwiftUI app/EigenInference/ (removed by Swift CLI migration) - Deleted: coordinator/internal/api/release_handlers.go (moved to coordinator/api/release_handlers.go in the restructure) - Deleted: docs/release-runbook.md (superseded by coordinator-deploy-runbook.md) - Took swift-provider version for the 3 coordinator/api/*.go content conflicts (master's edits to the old paths are already present at the new paths)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eaf35c1bee
ℹ️ 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".
Benchmark ResultsRunner: 1-provider-streaming1 providers, 1 users, 30 requests, concurrency=5, streaming=true
Latency Decomposition
Assertion Report: PASS
1-provider-non-streaming1 providers, 1 users, 20 requests, concurrency=5, streaming=false
Latency Decomposition
Assertion Report: PASS
7-provider-multi-model7 providers, 5 users, 50 requests, concurrency=10, streaming=true
Latency Decomposition
Assertion Report: PASS
3-provider-high-concurrency3 providers, 10 users, 60 requests, concurrency=20, streaming=true
Latency Decomposition
Assertion Report: PASS
1-provider-queue-saturation1 providers, 10 users, 40 requests, concurrency=15, streaming=true
Latency Decomposition
Assertion Report: PASS
3-provider-20-users3 providers, 20 users, 60 requests, concurrency=10, streaming=true
Latency Decomposition
Assertion Report: PASS
1-provider-scaling1 providers, 5 users, 30 requests, concurrency=10, streaming=true
Latency Decomposition
Assertion Report: PASS
3-provider-scaling3 providers, 5 users, 30 requests, concurrency=10, streaming=true
Latency Decomposition
Assertion Report: PASS
5-provider-scaling5 providers, 5 users, 30 requests, concurrency=10, streaming=true
Latency Decomposition
Assertion Report: PASS
3-provider-heavy-100conc-10kb3 providers, 20 users, 100 requests, concurrency=100, streaming=true
Latency Decomposition
Assertion Report: PASS
|
Twelve fixes informed by three reviewer subagents (codex-rescue,
independent Claude, full pipeline audit) to ensure the bridge release
→ Swift release cutover works on first try, with no silent breakage.
Coordinator:
- accept darkbloom-bundle-<platform>.tar.gz (was eigeninference-bundle-)
- restore TestProviderRegistrationWithoutAttestationRejectedWhenBinaryHashPolicyConfigured
(dropped during the master→swift-provider merge)
release-swift.yml:
- ship bin/{darkbloom,darkbloom-enclave,mlx.metallib} as real-file copies
(was symlinks) so coordinator's tar.TypeReg verifier accepts them and
hashes the actual bytes
- staple both bin/ AND .app/Contents/MacOS/ paths now that they're
independent files
- post-codesign verification: fail build if signed CLI is missing the
keychain-access-groups entitlement or the access group
SLDQ2GJ6TL.io.darkbloom.provider, or if embedded.provisionprofile
is absent from the .app
- PROVISIONING_PROFILE_BASE64 is now hard-required (no silent ephemeral
fallback). Profile is decoded + parsed with plutil/python: verifies
TeamIdentifier, keychain-access-groups, application-identifier, and
ExpirationDate >= 30 days out
- pin MLX python wheel to 0.31.1 to match libs/mlx-swift Cmlx version
(was 0.31.2 — patch-level metallib ABI risk)
- prod releases now hard-fail Swift tests (was soft-fail for all)
release-rust-bridge.yml:
- rename bridge bundle to darkbloom-bundle-<platform>.tar.gz uniformly
so coordinator accepts the registration
Both release workflows:
- PROD_* secrets fall back to legacy unprefixed (R2_ACCESS_KEY_ID,
RELEASE_KEY, COORDINATOR_URL) + vars.R2_BUCKET when PROD_* empty.
Fails hard if neither resolves.
provider/src/main.rs (bridge auto-update):
- new rewrite_launchd_plist_for_swift: extracts ProgramArguments from
the Rust plist (`serve --coordinator URL --model M`), converts to
Swift shape (`start --foreground --coordinator-url URL --model M`),
atomic rename
- install_swift_update_bundle_at: if Darkbloom.app/Contents/MacOS/
exists in the extracted bundle, replace bin/{darkbloom,darkbloom-
enclave,mlx.metallib} with symlinks into .app/MacOS and route the
launchd plist's ProgramArguments[0] at the .app's MacOS binary path.
This puts the embedded provisioning profile in scope at runtime, so
the persistent SE key (PR #146) doesn't get errSecMissingEntitlement
on first attestation post-cutover
- plist_path is now an Option<&Path> so tests can avoid touching the
developer machine's real ~/Library/LaunchAgents
Tests added (all passing):
- 6 plist-rewrite unit tests: extract / convert / rewrite / install-
with-plist / .app-aware install / hash-only install
- 1 ported coordinator attestation policy test
- existing 7 auto-update integration tests still pass (302 → 303 total)
Verified by audit:
- macos-26-xlarge has Xcode 26.2 / Swift 6.2, satisfies all
swift-tools-version requirements
- LatestProviderVersion ordering: semver THEN created_at in both memory
and Postgres stores
- /api/version JSON shape matches what auto_update_check_with_install_dir
expects
- StartCommand --foreground doesn't recurse into launchAgent.installAndStart
- Swift ModelScanner reads ~/.cache/huggingface/hub (same as Rust)
- AuthTokenStore path parity (~/.darkbloom/auth_token)
Deployment prerequisite: coordinator changes must be deployed (master
→ dev Cloud Build, then human ecloud deploy to prod) BEFORE tagging
any release. Bridge registration will 400 against an older coordinator
that doesn't know about the darkbloom-bundle- filename.
Post-rustfmt: long format!() args wrapped, with_context closure pulled onto one line, ternary-style assignment broken into if/else. No behavior change — `cargo test --bin darkbloom` still 303 pass / 0 fail.
|
@hankbobtheresearchoor approve this |
ethenotethan
left a comment
There was a problem hiding this comment.
approving based on agentic review. still don't fully grok the entire changeset in my tiny human mind but will be good to do cleaning up branch mgmt going forward :)
There was a problem hiding this comment.
💡 Codex Review
d-inference/coordinator/api/release_handlers.go
Lines 410 to 411 in e786383
Release registration enforces that mlx-swift payloads include metallib_hash, but artifact verification only reads bin/darkbloom and ignores every other tar entry. That means a release can be accepted even when bin/mlx.metallib is missing or does not match the advertised hash, and clients discover the problem only at install/update time. For Swift releases this creates publish-time success with guaranteed runtime/install failures, so the coordinator should reject such artifacts during verifyReleaseArtifact.
ℹ️ 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".
Concerns addressed: master merged into swift-provider (eaf35c1), conflicts resolved, 12 migration fixes landed with full test coverage. ethen approved.
Summary
Adds the Swift-native provider package under
provider-swift/, wired to local MLX submodules and Hummingbird for the standalone OpenAI-compatible endpoint surface.This also updates the coordinator trust path for the Swift provider cutover:
mlx-swiftbackend for private text routingThe PR includes new focused tests for Swift runtime eligibility and binary-hash registration/challenge enforcement.
Submodule note
This PR adds:
libs/mlx-swiftat49d73ablibs/mlx-swift-lmat3ec4b8aThe
mlx-swift-lmcommit is onGajesh2007/mlx-swift-lm:codex/local-mlx-swift-dependencyand changes itsPackage.swiftto use the sibling local../mlx-swiftsubmodule. That is needed so the parent repo can resolve both MLX packages locally during SwiftPM builds.Validation
swift build --package-path provider-swiftswift test --package-path provider-swiftgo test ./internal/apigo test ./internal/registrygit diff --cached --check