Untitled The Pi SDK v0.79.2 does not contain the ModelRuntime.create() API referenced in issue #947, but a spike test by the engineering team confirmed that local models via LM Studio and Ollama are fully covered through the OpenAI-compatible path, achieving streaming, abort, and usage parity with 2ms cancel latency and clean stopReason mapping. The hard cutover is viable. Spike Findings: Pi SDK as the Inference Backend 947, Phase 0 Date: 2026-07-21 Status: GATE PASSED — hard cutover is viable. Scope: Verify the real @earendil-works/pi-ai API against live local models, confirm the OpenAI-compatible coverage path, and prove usage/abort/streaming parity. This document gates the hard cutover decision in 947. Method - Cloned the pi mono repo into references/pi-mono/ sibling-harness inspection per AGENTS.md . Source inspected: packages/ai/src/{types,models,compat,stream}.ts , packages/ai/src/providers/ , packages/coding-agent/src/extensions/llama/provider.ts . - Built a standalone spike bun add @earendil-works/pi-ai@0.79.2 — the exact version we will depend on that imports the real published package and calls live models. - Tested against LM Studio localhost:1234 , OpenAI-compatible and Ollama localhost:11434 , OpenAI-compatible /v1 . Finding 1 — The API in 947 does not exist as described 947 referenced ModelRuntime.create . That symbol does not exist in the installed SDK v0.79.2, verified against dist/index.d.ts and dist/core/sdk.d.ts . The real substrate is: Model