---
name: undominated-queue-queuing-theory-audit
description: "Audits M/M/c queuing models under variable arrival rates to predict queue buildup before cluster saturation. Recomputed fields must match the other inputs. A pass is not a compliance, safety, or price verdict."
license: MIT
metadata:
  author: Undominated.ai
  version: "1.1.0"
---

# Queue queuing theory audit

## Description
Audits M/M/c queuing models under variable arrival rates to predict queue buildup before cluster saturation.

## Category
`serving`

## Tags
`serving`, `queuing-theory`, `mmc`, `latency`, `capacity`

## When to Use
Audit inference server queue parameters to prevent request queue starvation under traffic spikes.

## Operational Limitations
Calculates predicted queue wait times from arrival and service rates; does not execute HTTP traffic.

## Verification Script
Run the deterministic verification checker:
```bash
python3 scripts/check.py examples/synthetic.json
```
Exit codes:
- `0`: Check passed and thresholds satisfied.
- `1`: Threshold breach or operational violation detected.
- `2`: Schema error or invalid usage.

## What the checker recomputes

- Offered load `arrival_rate_rps` must not exceed `service_rate_per_gpu * gpu_servers`. A finite queue prediction is not accepted for an unstable load.

The original threshold checks still apply:

- `predicted_queue_ms` must not be > `max_tolerable_queue_ms`.

Every other declared field is type-checked. A negative value is rejected except for deltas, drifts, and gains. A type check does not, by itself, prove the measurement.

`population` and `observedAt` are required. The bundled examples are synthetic fixtures, not market measurements.

```bash
python3 scripts/check.py examples/synthetic.json
python3 scripts/check.py examples/contradiction.json
python3 scripts/check.py examples/broken.json
```

Exit 0 is a pass, exit 1 is a review, and exit 2 is invalid input. A pass does not certify a provider, a regulation, a release, or a price.
