"""Inference foundation: environment detection, vLLM compatibility chain, and the pluggable backend client (vllm | ollama | mock)."""