---
type: Decision
title: "ADR 0001: Standard wires and unified tier selector"
description: Why what-if uses zero custom request headers and unifies semantic tiers with raw model IDs under a single model field.
status: stable
tags: [adr, wires, routing, tiers]
---

# ADR 0001: Standard wires and unified tier selector

## Context

`what-if` prioritizes Roundhouse as its primary gateway while also supporting standalone endpoints (`llama.cpp`, `vLLM`, FastFlowLM, TypeSafe, OpenAI, OpenRouter, Liquid AI) using only `base_url`, `api_key`, and `model`. Exposing separate `tier` and `model` parameters causes LLM callers to populate both ambiguously or hallucinate chat model IDs.

## Decision

1. **Zero custom request headers:** Send only standard `Authorization: Bearer <key>` and standard wire payloads (`POST /v1/systemone`, `POST /v1/decisions`, `POST /v1/rerank`, `GET /v1/models`). Roundhouse keys enforce `data_class` server-side, `prompt_cache_key` maps automatically to replica affinity, and `images`/`files` data URLs are native System One fields.
2. **Single unified `model` parameter:** Callers may omit `model` (defaults to `fast` for text/image or `omni` when audio/video media is attached), pass `"fast"`, `"accurate"`, or `"omni"`, or pass a raw upstream model ID. Setting `lock_tiers = true` restricts the MCP JSON Schema `enum` to configured tiers only.

## Consequences

- Prompts and MCP configurations remain portable across Roundhouse and direct engines.
- Each tier (`fast`, `accurate`, `omni`) can hold its own `base_url`, `api_key`, `wire`, and calibrated `min_confidence` threshold.
- Optional dialect overrides (`openrouter`, `liquid`) remain configurable per tier for direct cloud calls without polluting standard endpoints.
