---
type: Overview
title: Overview
description: What what-if is, why decision models act as bounded sensors rather than prose generators, and where it fits in agent and developer workflows.
status: stable
tags: [overview, decision-models, mcp]
---

# Overview

`what-if` exposes specialized **System One** and **OpenAI Decisions** models to AI agents over the Model Context Protocol (MCP) and to developers over a single static Go CLI.

Instead of prompting a generative LLM to emit prose or fragile JSON for routing, gating, or perception checks, callers send raw evidence (text, JSON, images, audio, video, or PDFs) paired with closed typed questions (`noul`, `choice`, `score`). The model runs a single forward pass with zero output token generation and returns calibrated probability distributions that deterministic code can branch on.

## Core design posture

| Principle | How `what-if` applies it |
|---|---|
| **Decision model as a sensor** | Every `choice` answer includes `top2_margin = p1 - p2`; every `noul` answer includes `confidence = \|2p - 1\|`; low-confidence answers are flagged `uncertain: true` without discarding raw probabilities. |
| **Zero vendor lock-in** | Uses standard `Authorization: Bearer <key>` over `POST /v1/systemone`, `POST /v1/decisions`, and `POST /v1/rerank` with zero custom request headers. Works seamlessly with Roundhouse, `llama.cpp`, `vLLM`, FastFlowLM, TypeSafe, OpenAI, OpenRouter, and Liquid AI. |
| **Out-of-band omni media** | Agents pass workspace file paths, never base64 strings. `what-if` checks symlink bounds, sniffs magic bytes, transcodes non-WAV audio via `ffmpeg` when configured, and encodes right before HTTP egress. |
| **Unified semantic tiers** | Callers may omit `model` (auto-routing text/image to `fast` and audio/video to `omni`), pick a tier (`fast`, `accurate`, `omni`), or pass an explicit upstream model ID unless locked by operator policy. |
| **Bundled Skill over MCP** | `skills/what-if/SKILL.md` ships embedded in the binary and is advertised via `io.modelcontextprotocol/skills` (`skills/list`, `skills/get`, `resources/read`, `resources/directory/read`) with SHA-256 digests. |

## Architecture at a glance

```mermaid
flowchart LR
  Agent["Agent or CLI caller"] -->|"paths + atomic questions"| WhatIf["what-if<br/>tier resolver + media loader + enricher"]
  WhatIf -->|"POST /v1/systemone<br/>(omni media, noul/choice/score)"| Gateway["Roundhouse / Engine / Cloud"]
  WhatIf -->|"POST /v1/decisions<br/>(OpenAI GA wire)"| Gateway
  WhatIf -->|"POST /v1/rerank"| Gateway
  Gateway -->|"probabilities + headers"| WhatIf
  WhatIf -->|"margins + uncertain flag"| Agent
```

## Non-goals

- `what-if` does not run PyTorch, weights, or local model inference inside its own process; inference runs behind an HTTP endpoint.
- `what-if` does not accept inline base64 media payloads from MCP tool callers.
- `what-if` does not replace deterministic rules, regexes, arithmetic, or OS sandboxes.
