Conway’s Law governs security tooling just as ruthlessly as compilers: organizations ship architectures that mirror their internal workstation fleets.
Google DeepMind’s CaMeLS paper laid out a compelling formal argument for separating privileged planning from untrusted data extraction. Yet if you inspect the developer tooling shipped by cloud-native labs, local execution on macOS remains a Node.js or Python CLI forwarding context over HTTPS.
HYPERSCALER ASSUMPTION (gLinux + Always-On Datacenter):
[Thin CLI] === HTTPS (800ms) ===> [Cloud Model + Zanzibar ReBAC]
HEIMDALL DARWIN-NATIVE ENCLAVE (100% Offline Capable):
[UID 501 Planner] <== Mach Port ==> [UID 502 Untrusted Reader]
| |
[Cedar Lean 4 <=45us] [MLX Unified RAM Arena]
Three Places Linux-First Tooling Breaks on macOS
- No
seccomp-bpfor User Namespaces on XNU: Tools that rely on Linux container primitives silently degrade on macOS—either running unsandboxed on the host or spinning up a heavyweight Linux VM. - Ignored On-Die Coprocessors: Android’s Tensor NPU receives bespoke on-device runtime investment while the 16-core Apple Neural Engine and Secure Enclave (
SEP P-256) sit idle under generic POSIX ports. - Cloud Authorization Latency: Calling remote policy services adds hundreds of milliseconds per tool step and breaks completely on air-gapped or travel networks.
First-Class Darwin Primitives
Heimdall binds directly to XNU and Apple Silicon hardware:
- Darwin Seatbelt + Dedicated UIDs: Zero Linux VM layer; sub-millisecond process isolation.
- Embedded Cedar Engine (
p99 <= 45us): Evaluates fine-grained principal/action/resource policies completely offline, backed by 94 Lean 4 modules. - Biscuit Attenuation Tokens: Offline cryptographic delegation tokens attenuate permissions across sub-tasks without contacting a central coordinator.
Operational Trade-Offs & Where Not To Deploy This
- Darwin Specialization: Native Mach port and
CoreAuthUIbindings mean Heimdall’s daemon is deliberately macOS-specific; cross-platform teams need a separate Linux Landlock/TPM2 runner in CI.
Verify Offline Policy Evaluation
git clone https://github.com/w8mej/heimdall-enclave.git
cd heimdall-enclave && cargo bench -p heimdall-cedar