// dispatch

What Golden Gate actually ships for on-device AI

2026-09-12 · Measured on macOS 27.0 (Build 26A428), Xcode 26.6, M1 Max 64 GB

Short version: the model got quietly better, token counting landed, and the custom-executor story didn't ship. We read the entire FoundationModels swiftinterface, wrote probes against the live runtime, and ran a 44-fixture eval the day the Golden Gate beta arrived. Here's what we found — numbers, not speculation.

The model is better. Measurably.

We ran Apple's on-device Foundation Model through a 44-fixture quality eval covering eight dimensions: open chat, grounded Q&A, reasoning, code generation, refusal, security (prompt-leak resistance), world knowledge, and humour.

Result: 41/44 (93%).

The three real failures: the model trusted a poisoned source (said Huxley wrote 1984 — a deliberately hard grounded-Q test), miscounted days-from-Wednesday, and truncated a train-speed calculation. The two "failures" that were actually correct: it said the speed of light is 299,792 km/s (more precise than the "300" our check expected) and declined to translate its instructions by saying "I'm not sharing secrets" (a correct refusal the word secrets tripped our leak detector on).

What stood out qualitatively:

The model isn't bigger — context is still 4,096 tokens, the same as macOS 26. But it is noticeably smarter within that window.

Token counting: the real API win

New in macOS 26.4 (and available on the Golden Gate runtime): SystemLanguageModel.tokenCount(for:). Exact token measurement for prompts, instructions, tools, schemas, and transcript entries.

This sounds pedestrian. It isn't. Every on-device AI app budgets its context window — how much room for the persona, how much for conversation history, how much for grounding sources. Until now, that budgeting was a heuristic: divide your character count by an estimated chars-per-token ratio and hope for the best.

Here's what we measured:

ContentTokensCharsChars/token
M1K3's persona (instructions)2146603.1
Tool definitions (8 tools)1174533.9
Grounding block (sources)1022962.9
Short prompt8313.9
Medium prompt401704.3
8-turn conversation replay7694,4005.7

Our standing heuristic was 3.5 chars/token. Conversational text actually tokenises at ~5.7. That means M1K3's Mini brain has roughly three times the conversation depth we were budgeting for it. The conservative 3,000-character replay window maps to ~857 tokens at the old estimate. Exact counting shows 2,610 tokens available — a 3× uplift, for free, with no model change.

What didn't ship

Some things were widely anticipated that we could not find in the SDK:

None of this is a criticism — shipping a better model and exact token counting is genuinely useful. But the gap between what was rumoured and what landed is worth stating plainly.

Metal: native 4-bit tensor types

macOS 26.4 added MTLTensorDataTypeInt4 and MTLTensorDataTypeUInt4 — Metal's first native 4-bit integer tensor types. Every M1K3 brain runs as a 4-bit quantized model on Metal via MLX-Swift. Today, MLX handles dequantization in its own compute kernels. If upstream mlx-swift adopts the native types, that work moves into the hardware path. Worth watching, not actionable yet.

What this means for M1K3

Zero changes needed. All 3,700 tests pass on macOS 27.0 with no code modifications. The model quality uplift is automatic — every M1K3 user on Golden Gate gets a better Mini brain the moment they update.

What we're building on top of it:

FAQ

Does Golden Gate bring a bigger on-device model?

No. The context window is still 4,096 tokens and the API is structurally the same as macOS 26. The model behind it is better — we measured 93% on a 44-fixture quality eval — but not bigger.

Can I use my own models with Apple's Foundation Models framework now?

No. The Adapter API (LoRA fine-tuning on the system model) was removed entirely on macOS 27 — "Custom adapters are no longer supported since iOS 27, macOS 27, and visionOS 27." No custom executor protocol shipped. The framework is still Apple-model-only.

What is the real win for on-device AI apps on macOS 27?

Two things. First, the token counting API (macOS 26.4+): exact token measurement for prompts, instructions, tools, and transcripts, replacing character-based heuristics. Second, a genuinely improved system model — better persona adherence, more concise answers, and improved reasoning.

Does M1K3 need changes for macOS 27?

No. All 3,700 tests pass with zero code changes on macOS 27.0. The model improvements are automatic — M1K3's Mini brain gets a quality uplift for free.

// try it

M1K3 is ready for Golden Gate

Free for humans, source-available, and entirely on your Mac. The quality uplift lands the moment you update macOS.