Air-Gapped Rig-Edge WITSML Telemetry with Local Small Language Models (SLMs) A drilling engineer built an air-gapped edge intelligence stack that runs deterministic physics filters and quantized small language models (7B or 3B, via Ollama or llama.cpp) directly on rig-site hardware to triage WITSML/WITS telemetry, avoiding the 600–1200 ms satellite round-trip latency of cloud inference. The two-tier design uses a Rust/Python physics worker for flow-differential and standpipe-pressure checks, then passes a structured JSON context window to a local SLM for sub-second anomaly triage and root-cause classification, with asynchronous delta sync to headquarters only when connectivity allows. Originally published with interactive math formulas and diagrams at eng.kcklayton.com https://eng.kcklayton.com/blog/rig-edge-witsml-local-slm-telemetry/ Drilling rigs—whether stationed offshore in deepwater or operating across remote onshore basins—share a common operational reality: high-latency, bandwidth-constrained, and intermittent satellite connectivity VSAT . Round-trip satellite pings routinely exceed $600\text{ to }1200\text{ ms}$, with atmospheric attenuation or antenna line-of-sight blockage causing frequent dropouts. When a high-pressure gas influx kick enters the wellbore, or when a bottom-hole assembly BHA experiences catastrophic stick-slip oscillation, seconds count. Routing real-time sensor telemetry to a remote cloud datacenter for LLM inference or anomaly classification introduces unacceptable operational latency and single-point-of-failure exposure. To solve this, our drilling architecture decouples real-time rig surveillance into an Air-Gapped Edge Intelligence Stack running local deterministic filters and quantized Small Language Models SLMs directly on rig-site hardware. Modern drilling rigs generate high-frequency telemetry across dozens of channels via the WITSML Wellsite Information Transfer Standard Markup Language and WITS Wellsite Information Transfer Specification standards: flowchart TD subgraph RigFloor "Rig Floor & PWD Instrumentation" Sensors "Rig Sensors Flow, SPP, Pit, Hookload " PWD "Downhole MWD / PWD Telemetry" end subgraph RigEdge "Edge Server Rig Doghouse / Rig Server Room " WITSMLAgent "WITSML Edge Agent