Metadata-Version: 2.4
Name: narwhal-inference
Version: 0.50.0
Summary: Adaptive hot-swap disaggregation for LLM inference
Author: Athrael Soju
License-Expression: Apache-2.0
Project-URL: Documentation, https://athrael-soju.github.io/Narwhal/
Project-URL: Repository, https://github.com/athrael-soju/Narwhal
Project-URL: Issues, https://github.com/athrael-soju/Narwhal/issues
Project-URL: Changelog, https://github.com/athrael-soju/Narwhal/blob/main/CHANGELOG.md
Project-URL: Release notes, https://github.com/athrael-soju/Narwhal/releases
Keywords: llm,inference,llm-inference,llm-serving,disaggregation,disaggregated-inference,disaggregated-serving,prefill,decode,scheduling,vllm,kv-cache,nixl,gpu,cuda,nvidia,rocm,amd
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: GPU :: NVIDIA CUDA
Classifier: Framework :: FastAPI
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: System :: Distributed Computing
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: fastapi>=0.136.3
Requires-Dist: httptools>=0.8.0
Requires-Dist: httpx>=0.28.1
Requires-Dist: httpx2>=2.16.2
Requires-Dist: lightkube<2,>=1.0.2
Requires-Dist: msgpack>=1.2.2
Requires-Dist: pydantic>=2.13.5
Requires-Dist: pyyaml>=6.0.3
Requires-Dist: pyzmq>=27.2.0
Requires-Dist: rich>=14.0.0
Requires-Dist: uvicorn>=0.52.4
Requires-Dist: uvloop>=0.22.1; sys_platform != "win32"
Provides-Extra: dev
Requires-Dist: coverage==7.16.1; extra == "dev"
Requires-Dist: ruff==0.16.7; extra == "dev"
Requires-Dist: mypy==2.3.1; extra == "dev"
Requires-Dist: pre-commit>=4; extra == "dev"
Requires-Dist: build>=1.2; extra == "dev"
Requires-Dist: setuptools>=77; extra == "dev"
Requires-Dist: twine>=5; extra == "dev"
Requires-Dist: narwhal-inference[gateway]; extra == "dev"
Provides-Extra: docs
Requires-Dist: mkdocs-material==9.7.7; extra == "docs"
Requires-Dist: mkdocs-glightbox==0.5.2; extra == "docs"
Provides-Extra: gateway
Requires-Dist: grpcio>=1.85.1; extra == "gateway"
Requires-Dist: grpcio-health-checking>=1.85.1; extra == "gateway"
Requires-Dist: protobuf>=7.36.2; extra == "gateway"
Requires-Dist: xds-protos>=1.85.1; extra == "gateway"
Dynamic: license-file

<p align="center">
  <img src="https://raw.githubusercontent.com/athrael-soju/Narwhal/main/docs/assets/social-preview.png" alt="The Narwhal logo, a black narwhal with a teal spiral tusk above the wordmark" width="100%">
</p>

<p align="center">
  <img src="https://img.shields.io/badge/license-Apache--2.0-blue" alt="Apache-2.0 license">
  <img src="https://img.shields.io/badge/python-3.11%20%7C%203.12%20%7C%203.13%20%7C%203.14%20%7C%203.15-blue" alt="Python 3.11 through 3.15">
  <img src="https://img.shields.io/badge/style-ruff-261230" alt="Lint and format by ruff">
  <img src="https://img.shields.io/badge/types-mypy-blue" alt="Types checked with mypy">
  <a href="https://pypi.org/project/narwhal-inference/"><img src="https://img.shields.io/pypi/v/narwhal-inference" alt="Latest PyPI version"></a>
</p>

<p align="center">
  <a href="https://athrael-soju.github.io/Narwhal/"><img src="https://img.shields.io/badge/Documentation-0f766e" alt="Documentation"></a>
  <a href="https://athrael-soju.github.io/Narwhal/Deploy/"><img src="https://img.shields.io/badge/Deployment-0f766e" alt="Deployment"></a>
  <a href="https://athrael-soju.github.io/Narwhal/HTTP-API/"><img src="https://img.shields.io/badge/API%20reference-0f766e" alt="API reference"></a>
  <a href="https://github.com/athrael-soju/Narwhal/issues"><img src="https://img.shields.io/badge/Issues-0f766e" alt="Issues"></a>
  <a href="https://github.com/athrael-soju/Narwhal/blob/main/CONTRIBUTING.md"><img src="https://img.shields.io/badge/Contributing-0f766e" alt="Contributing"></a>
</p>

## What is Narwhal?

Narwhal is a disaggregated inference framework. It hot-swaps prefill and decode roles as demand changes, and it does not reload model weights. It runs on a [single GPU](https://athrael-soju.github.io/Narwhal/Dev-Runtime/) or across [multi-node deployments](https://athrael-soju.github.io/Narwhal/Deploy/).

<p align="center">
  <img src="https://raw.githubusercontent.com/athrael-soju/Narwhal/main/docs/assets/demo/narwhal-dev.gif" alt="A terminal session. narwhal deploy init --target local downloads the engine and a model, and narwhal deploy run --target local starts four engines and a router. narwhal dev ask answers that the capital of France is Paris and names the engines that served prefill and decode. narwhal dev demo sends long replies, then long prompts. Its live view shows one engine moving from prefill to decode under long replies, then two engines moving to prefill under long prompts, which leaves three prefill engines and one decode engine. narwhal deploy down --target local --delete stops the fleet and deletes its run directory" width="100%">
</p>

## Try it out

<p align="center">
  <a href="https://codespaces.new/athrael-soju/Narwhal?quickstart=1"><img src="https://github.com/codespaces/badge.svg" alt="Open in GitHub Codespaces"></a>
</p>

The button opens a codespace with Narwhal installed. Run the commands below in its terminal; the fleet runs on the CPU. On your own machine, [install Narwhal](#installing) first.

A development fleet runs two to eight llama.cpp engines and a router on one Linux or WSL2 machine. It uses an NVIDIA GPU or the CPU alone. One command sets it up, starts it and puts it under load:

```bash
narwhal dev demo
```

`demo` writes the fleet file `runs/dev/fleet.yaml` and downloads the engine and a model under one billion parameters (0.3 GB with the CPU build of the engine, 1.0 GB with the CUDA 12 build). It starts four engines, or the number that `--engine-count` sets, then sends long replies for 30 seconds and long prompts for 30 seconds. The live view shows the engines change roles.

Manage the fleet with the deployed-fleet commands and `--target local`:

```bash
narwhal dev ask "What is the capital of France?"
narwhal deploy status --target local
narwhal deploy down --target local --delete
```

`ask` prints a reply and the engines that served its prefill and decode. `down --delete` stops the fleet and deletes the downloads. To drive the fleet yourself, run `narwhal dev watch` in one terminal and `narwhal dev ask --repeat 200 --concurrency 8` in another.

To run vLLM, SGLang or TensorRT-LLM engines on one NVIDIA GPU instead, name their template with `narwhal deploy init --target local --template small-cuda-v1.json`. Then run `narwhal deploy run --target local`.

<p align="center">
  <a href="https://athrael-soju.github.io/Narwhal/dev/Quick-Start/"><img src="https://img.shields.io/badge/docs-Quick%20start-0f766e" alt="Quick start documentation"></a>
  <a href="https://athrael-soju.github.io/Narwhal/cli/Dev/"><img src="https://img.shields.io/badge/docs-narwhal%20dev%20commands-0f766e" alt="narwhal dev and local fleet command reference"></a>
  <a href="https://athrael-soju.github.io/Narwhal/Dev-Runtime/"><img src="https://img.shields.io/badge/docs-vLLM%2C%20SGLang%20and%20TensorRT--LLM%20engines-0f766e" alt="vLLM, SGLang and TensorRT-LLM engine documentation"></a>
  <a href="https://athrael-soju.github.io/Narwhal/dev/RTX-5090-Reference/"><img src="https://img.shields.io/badge/docs-RTX%205090%20reference-0f766e" alt="RTX 5090 reference documentation"></a>
</p>

## What it does

<table width="100%" align="center">
  <thead>
    <tr>
      <th align="left" width="18%">Capability</th>
      <th align="left" width="52%">Behavior</th>
      <th align="left" width="30%">Guide</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Role hot-swap</td>
      <td>Reassigns prefill and decode roles across a GPU fleet, with NIXL key-value (KV) transfer between them</td>
      <td><a href="https://athrael-soju.github.io/Narwhal/Core-Concepts/"><img src="https://img.shields.io/badge/docs-Core%20concepts-0f766e" alt="Core concepts documentation"></a></td>
    </tr>
    <tr>
      <td>Serving</td>
      <td>Serves completion and chat requests, streamed or buffered, with latency-aware admission</td>
      <td><a href="https://athrael-soju.github.io/Narwhal/HTTP-API/"><img src="https://img.shields.io/badge/docs-HTTP%20API%20reference-0f766e" alt="HTTP API reference documentation"></a></td>
    </tr>
    <tr>
      <td>Fault tolerance</td>
      <td>Fails over to a warm-standby router, readmits engines against their live process generation, and joins or removes engines without a restart</td>
      <td><a href="https://athrael-soju.github.io/Narwhal/Operate/"><img src="https://img.shields.io/badge/docs-Operating%20Narwhal-0f766e" alt="Operating Narwhal documentation"></a></td>
    </tr>
    <tr>
      <td>Measurement</td>
      <td>Profiles engines, runs ordered benchmark points, and keeps the evidence from each point</td>
      <td><a href="https://athrael-soju.github.io/Narwhal/Measure/"><img src="https://img.shields.io/badge/docs-Measuring%20a%20fleet-0f766e" alt="Measuring a fleet documentation"></a></td>
    </tr>
    <tr>
      <td>Observability</td>
      <td>Exports router and engine metrics to Prometheus and a provisioned Grafana dashboard</td>
      <td><a href="https://athrael-soju.github.io/Narwhal/Observability/"><img src="https://img.shields.io/badge/docs-Setting%20up%20observability-0f766e" alt="Setting up observability documentation"></a></td>
    </tr>
    <tr>
      <td>Operator tooling</td>
      <td>Checks fleet files offline and collects private diagnostic bundles</td>
      <td><a href="https://athrael-soju.github.io/Narwhal/CLI-Reference/"><img src="https://img.shields.io/badge/docs-CLI%20reference-0f766e" alt="CLI reference documentation"></a></td>
    </tr>
    <tr>
      <td>Development mode</td>
      <td>Runs two to eight engines on one workstation under Ubuntu or WSL2, on a GPU or the CPU</td>
      <td><a href="https://athrael-soju.github.io/Narwhal/dev/Quick-Start/"><img src="https://img.shields.io/badge/docs-Narwhal%20dev-0f766e" alt="Narwhal dev documentation"></a></td>
    </tr>
  </tbody>
</table>

## How engines change roles

The role controller scores the current role split and each adjacent split, one engine move away. It uses measured engine profiles, offered demand, and resident work. It moves one engine only when the worst projected SLO ratio improves and every role, lifecycle, and resident-work guard passes. New requests follow the revised split. Resident requests finish on their assigned engines.

<p align="center">
  <a href="https://athrael-soju.github.io/Narwhal/concepts/02-Role-Control/"><img src="https://img.shields.io/badge/docs-Role%20control%20and%20capacity%20floors-0f766e" alt="Role control and capacity floors documentation"></a>
</p>

![Role controller changing engine roles with weights resident.](https://raw.githubusercontent.com/athrael-soju/Narwhal/main/docs/assets/architectures/hotswap.svg)

## Evaluation

The [evaluation](https://athrael.net/posts/evaluating-narwhal/) ran Narwhal v0.1.0, Dynamo Planner and Ray Serve LLM on identical six-engine hardware. It used two request schedules whose mix changes quickly. The table shows the share of offered requests that met the SLO, with prefix caching on. A request meets the SLO with a first token within 2.1 s, at most 45 ms per output token, and a natural finish.

| Workload<img width="162" height="1" alt=""> | Narwhal<img width="101" height="1" alt=""> | Dynamo Planner<img width="47" height="1" alt=""> | Ray Serve LLM<img width="59" height="1" alt=""> |
| --- | --- | --- | --- |
| Chat and documents | **76.2%** | 56.8% | 51.7% |
| Mixed | **45.6%** | 21.7% | 37.1% |

Each configuration ran once. On mixed traffic, Narwhal's 95th-percentile time to first token was 11.3 s against 1.2 s for Ray Serve LLM.

## Installing

Install on Linux with Python 3.11 or newer:

```bash
python3 -m venv .venv
source .venv/bin/activate
python -m pip install narwhal-inference
narwhal-serve --version
narwhal --help
```

The wheel installs `narwhal`, `narwhal-engine`, `narwhal-serve`, `narwhal-attest`, `narwhal-profile`, `narwhal-check`, and `narwhal-witness`. See [Installing from PyPI](https://athrael-soju.github.io/Narwhal/Install-from-PyPI/) and the [CLI reference](https://athrael-soju.github.io/Narwhal/CLI-Reference/).

## Bringing up a fleet

On SSH hosts, `narwhal deploy init` writes a NarwhalFleet file from the hosts and the model. `narwhal deploy run` takes the hosts to a serving fleet from a management workstation. On Kubernetes, the narwhal chart's controller runs the same stages from one NarwhalFleet resource. [Getting started](https://athrael-soju.github.io/Narwhal/deploy/Getting-Started/) walks through both, and the [documentation site](https://athrael-soju.github.io/Narwhal/) has the rest.

<p align="center">
  <img src="https://raw.githubusercontent.com/athrael-soju/Narwhal/main/docs/assets/demo/narwhal-deploy.gif" alt="A terminal session in fast forward. python -m pip install narwhal-inference installs Narwhal, and narwhal --version prints 0.50.0. narwhal deploy run takes a fleet of eight engines on one SSH host, node-1, through every stage from Discover to Serve and measure. Its live view is replayed with the stage timings of a real run, which took 8 minutes 31 seconds. The summary says first-fleet is serving and gives the router, Prometheus and Grafana addresses and the derived SLO targets. The last part is a live recording of narwhal fleet watch on a fleet of eight engines from the start of a load run, with four prefill and four decode engines at first, played at about three times its speed. Within the first 40 seconds the controller switches three engines from prefill to decode, which the role column, the role history and the role switches line show. It ends with one prefill and seven decode engines, requests in flight on each decode engine and about 14 requests per second" width="100%">
</p>

## Contributing

<p align="center">
  <a href="https://github.com/athrael-soju/Narwhal/blob/main/CONTRIBUTING.md"><img src="https://img.shields.io/badge/community-Contributing-0f766e" alt="Contributing"></a>
  <a href="https://github.com/athrael-soju/Narwhal/blob/main/CODE_OF_CONDUCT.md"><img src="https://img.shields.io/badge/community-Code%20of%20conduct-0f766e" alt="Code of conduct"></a>
  <a href="https://github.com/athrael-soju/Narwhal/blob/main/SECURITY.md"><img src="https://img.shields.io/badge/community-Security%20policy-0f766e" alt="Security policy"></a>
</p>

## Built on Arrow

Narwhal's scheduling algorithms follow Arrow: Adaptive Scheduling Mechanisms for Disaggregated LLM Inference Architecture by Wu et al. (2025).

<p align="center">
  <a href="https://arxiv.org/abs/2505.11916"><img src="https://img.shields.io/badge/paper-Arrow%20%C2%B7%20arXiv%202505.11916-0f766e" alt="Arrow paper on arXiv"></a>
  <a href="https://github.com/athrael-soju/Narwhal/blob/main/CITATION.cff"><img src="https://img.shields.io/badge/cite-CITATION.cff-0f766e" alt="Citation metadata for Arrow and Narwhal"></a>
  <a href="https://github.com/athrael-soju/Narwhal/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-0f766e" alt="Apache-2.0 license"></a>
</p>

# Changelog

## [0.50.0](https://github.com/athrael-soju/Narwhal/compare/v0.13.0...v0.50.0) (2026-12-01)

Adds `narwhal deploy`, which takes SSH hosts, a Kubernetes cluster or a workstation from a fleet file to a serving fleet, and `narwhal fleet` to operate it. Replaces `tools/deployment/`, the `.env` deployment variables, the fleet control service and the `narwhal dev` lifecycle subcommands. See [Upgrading from 0.13.0](#upgrading-from-0130).

### Deployment

A `NarwhalFleet` file describes the fleet on every target. Secrets go in `narwhal-fleet-secrets.yaml`.

- `narwhal deploy init` discovers the hosts over SSH and writes both files. `--router-pair` adds a standby router, HAProxy and a witness on a third host. `--interface` sets the serving interface.
- `narwhal deploy plan` reports what a later stage would refuse without changing the hosts: port conflicts, UCX port ranges, the checkpoint directory, GPU passthrough, the first-token budget, router–witness clock skew and malformed addresses.
- `narwhal deploy run` runs the stages: discover, install, validate engines, qualify fabric, attest, profile and preflight, serve and measure. An interrupted run resumes at its stage. After a fleet file edit, it reruns only the affected stages.
- `status`, `down` and `tunnel` inspect, stop and forward to a deployed fleet.
- Hosts need Docker and a GPU runtime, not Python.
- `--target local` runs a fleet on one Linux or WSL2 workstation, for `narwhal dev ask`, `watch` and `demo`.

### Kubernetes

The `narwhal` Helm chart (`oci://ghcr.io/athrael-soju/charts/narwhal`) installs the `NarwhalFleet` CRD, a controller, RBAC, an admission policy, ServiceMonitors and optionally Prometheus and Grafana.

- The controller runs the stages as Jobs from `kubectl apply` or `narwhal deploy --target kubernetes`, pins each engine pod to its measured node and reports progress in the fleet's status.
- The admission policy requires images pinned by digest.
- `spec.engines.tolerations` and `spec.engines.gpusPerEngine` support tainted GPU pools and multi-GPU engines.
- Traffic enters through HAProxy, a Gateway API `HTTPRoute` or an `InferencePool`.
- The API, `narwhal-inference.com/v1alpha1`, is experimental. Requires Kubernetes 1.35 or later.

### Operating a fleet

- `narwhal fleet status`, `drain`, `readmit` and `reset` on every target.
- `narwhal fleet watch` shows engine roles, load, TTFT and TPOT at p50 and p95, throughput and role switches live, for fleets on SSH hosts.
- In a router pair, the standby takes over through the witness's lease. A router that loses its lease fences itself (`/health` 503, exit 3) and restarts as standby. The handoff is signed.
- An engine that refuses a connection leaves placement until it attests again.

### Security

- A cosign-signed `narwhal-release-manifest.json` pins every image by digest. Images carry SBOMs and SLSA provenance. On SSH hosts, `narwhal deploy` verifies the manifest before contacting a host.
- The router, sidecar, `narwhal-check` and `narwhal-profile` check the engine's process identity on each new connection and send the engine key only to the attested process.
- The router token and engine key need at least 32 random bytes. Kubernetes refuses a weak engine key before any stage.
- Engine and container output is redacted.
- Anonymous Grafana access is loopback only.

### Monitoring

- Every fleet runs Prometheus and Grafana. Engines that require the key for `/metrics` are scraped through their sidecar.
- The dashboard leads with SLO attainment, router state and per-engine load.
- Metrics contract version 4. New alerts: `NarwhalNoRouterReady`, `NarwhalWatchdog`.

### Upgrading from 0.13.0

1. Install 0.50.0 and [cosign](https://docs.sigstore.dev/cosign/system_config/installation/) v3.
2. Run `narwhal deploy init` against your hosts. `plan` and `run` refuse `.env` and the `NARWHAL_*` deployment variables, and name the fleet file field that replaces each.
3. Run `narwhal deploy plan`, then `narwhal deploy run`.

The handoff format changed: stop both routers of a 0.13.0 pair before starting 0.50.0. [Upgrade and rollback](https://athrael-soju.github.io/Narwhal/operate/04-Upgrade-and-Validate/) covers fleets deployed by hand. #529 and #675 list each breaking change with its upgrade step.

### ⚠ Breaking changes

- Removed: `tools/deployment/`, `tools/measurement/load_trial.py`, the fleet control service and its console, the `.env` file and the `NARWHAL_*` deployment variables.
- `narwhal dev setup`, `init`, `up`, `verify`, `status` and `down` are replaced by `narwhal deploy --target local`. `--instance` is now `--run`, and results report `data.run`.
- `init`, `plan` and `run` on SSH hosts need `cosign` and the manifest's signature bundle, or `--skip-signature-check`.
- Hosts need rootful Docker. Unknown SSH host keys are refused.
- The router requires `NARWHAL_ROUTER_TOKEN`. Handoff format version 2. `/health` returns 503 when fenced. Control bodies over 64 KiB get 413. Drain returns 409 without a complete engine contract.
- `launch.json` adds `served_model_name`: prepare 0.13.0 launch directories again. `ucx_rdma` refuses `transfer.gpu_tls: cuda`.
- Keyed engines are scraped through their sidecar, so their `instance` label is the sidecar's address.
- `narwhal_slo_seconds` adds an `origin` label. Grafana's admin password is random.
- `plan` refuses more inputs. Deploy errors name the subcommand. A refused `down --delete` exits 2. An unreachable host reports `failed_gate`.

### Known limitations

- The Kubernetes operator is experimental. A new release redeploys from the `images` stage, with no rolling upgrade.
- After a host reboot, engines stay down until `narwhal deploy run` runs again.
- `plan` does not check free disk space or GPU memory.
- The router pair, the witness and engine restarts under load are not yet qualified live on this release (#677).

## [0.13.0](https://github.com/athrael-soju/Narwhal/compare/v0.12.0...v0.13.0) (2026-11-26)


### Features

* **dev:** `narwhal dev demo` starts the fleet when it is not up, then sends long replies and long prompts for 30 seconds each while the live view shows the engines change roles, and reports the requests, role switches and final split. ([#480](https://github.com/athrael-soju/Narwhal/issues/480)) ([3afd653](https://github.com/athrael-soju/Narwhal/commit/3afd6536cf587ef07288e8a34af730fe14a6f05b))
* **dev:** `narwhal dev watch` draws each engine's role history across the terminal's width with a mark at each role switch, shows the Narwhal logo when the terminal is tall enough, and names the role controller's last decision and its reason. The `--once` frame gains a `controller` field. ([#476](https://github.com/athrael-soju/Narwhal/issues/476)) ([6c92325](https://github.com/athrael-soju/Narwhal/commit/6c923253dd93c7be3435d88a140eb4a5445b9d4d))


### Fixes

* **dev:** `narwhal dev ask` with one prompt decodes greedily unless the template sets a temperature, so the same prompt gets the same reply. ([#480](https://github.com/athrael-soju/Narwhal/issues/480)) ([3afd653](https://github.com/athrael-soju/Narwhal/commit/3afd6536cf587ef07288e8a34af730fe14a6f05b))
* **dev:** `narwhal dev` sizes llama.cpp engine threads by a container's CPU quota, so engines under `docker run --cpus` or a Kubernetes CPU limit no longer oversubscribe it. ([#479](https://github.com/athrael-soju/Narwhal/issues/479)) ([c5c64a0](https://github.com/athrael-soju/Narwhal/commit/c5c64a031e181bcf37ca455f127b2368c1f2711d))


### Documentation

* The README opens with a recording of `narwhal dev`, an "Open in GitHub Codespaces" button and the evaluation's results. The repository's dev container runs `make setup`, so a codespace runs `narwhal dev` on the CPU without installing anything. ([#477](https://github.com/athrael-soju/Narwhal/issues/477)) ([32b33c3](https://github.com/athrael-soju/Narwhal/commit/32b33c357cf75274ac60125c6dc32bdf531d05a5))
* The README's recording and "Trying it" commands go step by step: `up`, `ask`, then `demo`. ([#480](https://github.com/athrael-soju/Narwhal/issues/480)) ([3afd653](https://github.com/athrael-soju/Narwhal/commit/3afd6536cf587ef07288e8a34af730fe14a6f05b))

## [0.12.0](https://github.com/athrael-soju/Narwhal/compare/v0.11.0...v0.12.0) (2026-11-26)


### ⚠ BREAKING CHANGES

* **serving:** A client that matched type `standby` during a hold on the lease holder now receives `not_ready`.
* **lifecycle:** The router refuses an engine whose model files differ from the rest of the fleet. Engines from earlier releases do not report their model files, so they cannot share a fleet with 0.12.0 engines. Upgrading therefore takes the whole fleet out of service at once (docs/operate/04-Upgrade-and-Validate.md, "Upgrading to model file digests").
* **profiling:** SGLang `narwhal-profile --only` sweeps require `--router-url`, or `--no-router` when no router serves the engines.
* **serving:** A router without the lease answers `GET /narwhal/engines`, `/lifecycle`, `/state`, `/handoff` and `/targets` with HTTP 503 instead of its own snapshot. A request with `X-Narwhal-Diagnostic: true` still gets a standby's state and lifecycle.
* **observability:** Metrics contract 3: each `/metrics` counter covers one router process and restarts at 0 when that process restarts, including on `--resume`. Deployment totals stay in `/narwhal/state`. `make observe` for a router pair requires `NARWHAL_TARGETS_URL`.

### Features

* **calibration:** `narwhal-check --calibrate-first-token --pairs-with MEMBER --router-url URL` calibrates a joining engine one member at a time while the other members serve clients. ([#475](https://github.com/athrael-soju/Narwhal/issues/475)) ([0b29dfc](https://github.com/athrael-soju/Narwhal/commit/0b29dfc4c897fe9ce3e7526f6836ae21425b1a8a))
* **deployment:** The deploy path can deploy a vLLM fleet from a GGUF model file. ([#454](https://github.com/athrael-soju/Narwhal/issues/454)) ([b9712fe](https://github.com/athrael-soju/Narwhal/commit/b9712fe55fb6c70029c0485c05e9ce973338e952))
* **dev:** `narwhal dev init --gpus` runs each engine on its own GPU, so a dev fleet can join and remove engines. ([#454](https://github.com/athrael-soju/Narwhal/issues/454)) ([b9712fe](https://github.com/athrael-soju/Narwhal/commit/b9712fe55fb6c70029c0485c05e9ce973338e952))
* **fleet-control:** Join and Leave actions. Restore baseline returns engines that left and removes engines that joined. ([#454](https://github.com/athrael-soju/Narwhal/issues/454)) ([b9712fe](https://github.com/athrael-soju/Narwhal/commit/b9712fe55fb6c70029c0485c05e9ce973338e952))
* **lifecycle:** A drain with `restart: false` holds a running engine out of placement and readmits the same process. ([#475](https://github.com/athrael-soju/Narwhal/issues/475)) ([0b29dfc](https://github.com/athrael-soju/Narwhal/commit/0b29dfc4c897fe9ce3e7526f6836ae21425b1a8a))
* **lifecycle:** Join, readmission, `finalize-fleet` and preflight refuse an engine whose model files differ from the fleet's. ([#454](https://github.com/athrael-soju/Narwhal/issues/454)) ([b9712fe](https://github.com/athrael-soju/Narwhal/commit/b9712fe55fb6c70029c0485c05e9ce973338e952))
* **observability:** Request outcomes draws not-ready refusals as `rejected (not ready)`, apart from `rejected (capacity)`. ([#475](https://github.com/athrael-soju/Narwhal/issues/475)) ([0b29dfc](https://github.com/athrael-soju/Narwhal/commit/0b29dfc4c897fe9ce3e7526f6836ae21425b1a8a))
* **observability:** The router exports the membership generation and join and leave outcomes. The dashboard marks membership changes and keeps a departed engine's history. `make observe` scrapes both routers of a pair. ([#454](https://github.com/athrael-soju/Narwhal/issues/454)) ([b9712fe](https://github.com/athrael-soju/Narwhal/commit/b9712fe55fb6c70029c0485c05e9ce973338e952))
* **profiling:** `narwhal-profile --copy-from MEMBER --only NEW` gives a new engine the measured profile of a member without a sweep, when the engine's launch, model files and KV capacity match the member's. ([#475](https://github.com/athrael-soju/Narwhal/issues/475)) ([0b29dfc](https://github.com/athrael-soju/Narwhal/commit/0b29dfc4c897fe9ce3e7526f6836ae21425b1a8a))
* **serving:** A lease holder that is not ready answers HTTP 503 with type and code `not_ready` and the cause in `reason`. ([#475](https://github.com/athrael-soju/Narwhal/issues/475)) ([0b29dfc](https://github.com/athrael-soju/Narwhal/commit/0b29dfc4c897fe9ce3e7526f6836ae21425b1a8a))
* **serving:** The router adds and removes engines while it runs, through `GET`, `POST` and `DELETE /narwhal/engines`. A joining engine receives work only after it passes the contract, profile, calibration and readmission checks. A leaving engine drains before the router removes it. ([#454](https://github.com/athrael-soju/Narwhal/issues/454)) ([b9712fe](https://github.com/athrael-soju/Narwhal/commit/b9712fe55fb6c70029c0485c05e9ce973338e952))
* **sglang:** On SGLang 0.5.23 and later, engines launch with the overlap scheduler and FlashInfer decode attention. ([#440](https://github.com/athrael-soju/Narwhal/issues/440)) ([5af93bc](https://github.com/athrael-soju/Narwhal/commit/5af93bcab9d76e7d2b54acb7610ed319e18a816f))


### Fixes

* **calibration:** First-token calibration asks for at least two output tokens per request, so it completes at the longest input length. ([#454](https://github.com/athrael-soju/Narwhal/issues/454)) ([b9712fe](https://github.com/athrael-soju/Narwhal/commit/b9712fe55fb6c70029c0485c05e9ce973338e952))
* **dev:** `narwhal dev init` reads the interface address without the `ip` command, so the TensorRT-LLM container no longer needs `iproute2`. ([#454](https://github.com/athrael-soju/Narwhal/issues/454)) ([b9712fe](https://github.com/athrael-soju/Narwhal/commit/b9712fe55fb6c70029c0485c05e9ce973338e952))
* **ha:** A lease holder stopped with SIGTERM keeps serving for `--shutdown-drain` seconds, 0.5 by default, after its readiness fails, so HAProxy no longer returns 502 during a takeover. ([#475](https://github.com/athrael-soju/Narwhal/issues/475)) ([0b29dfc](https://github.com/athrael-soju/Narwhal/commit/0b29dfc4c897fe9ce3e7526f6836ae21425b1a8a))
* **ha:** The shipped HAProxy configuration holds requests through a router takeover instead of returning 503, also when the stopped router restarts at once as standby. ([#454](https://github.com/athrael-soju/Narwhal/issues/454)) ([b9712fe](https://github.com/athrael-soju/Narwhal/commit/b9712fe55fb6c70029c0485c05e9ce973338e952))
* **profiling:** An SGLang profiling sweep refuses to run until the router confirms that the peer it switches is out of service. ([#454](https://github.com/athrael-soju/Narwhal/issues/454)) ([b9712fe](https://github.com/athrael-soju/Narwhal/commit/b9712fe55fb6c70029c0485c05e9ce973338e952))


### Documentation

* **deploy:** Fabric qualification shows how to send KV between engines of one host over their HCAs. ([#475](https://github.com/athrael-soju/Narwhal/issues/475)) ([0b29dfc](https://github.com/athrael-soju/Narwhal/commit/0b29dfc4c897fe9ce3e7526f6836ae21425b1a8a))
* **membership:** New pages for the engine membership HTTP API and for joining and removing engines. ([#454](https://github.com/athrael-soju/Narwhal/issues/454)) ([b9712fe](https://github.com/athrael-soju/Narwhal/commit/b9712fe55fb6c70029c0485c05e9ce973338e952))
* The `narwhal dev` command reference is linked from the dev pages and `narwhal dev --help`. ([#443](https://github.com/athrael-soju/Narwhal/issues/443)) ([c9ff72f](https://github.com/athrael-soju/Narwhal/commit/c9ff72f55a188d98a641af9f82d76fba45b1a375))

## [0.11.0](https://github.com/athrael-soju/Narwhal/compare/v0.10.0...v0.11.0) (2026-11-22)


### Features

* **observability:** show the NVIDIA logo mark for TensorRT-LLM engines ([#437](https://github.com/athrael-soju/Narwhal/issues/437)) ([40e2c33](https://github.com/athrael-soju/Narwhal/commit/40e2c338165a0104b6b22ae013a2c5a219025a5b))
* TensorRT-LLM engine backend (milestone 25) ([#425](https://github.com/athrael-soju/Narwhal/issues/425)) ([28cba69](https://github.com/athrael-soju/Narwhal/commit/28cba69218e642a275fff8d9baf2973a57c1dd29))


### Fixes

* **serving:** release the router lease when shutdown starts ([#436](https://github.com/athrael-soju/Narwhal/issues/436)) ([8980147](https://github.com/athrael-soju/Narwhal/commit/898014736318f1e415548a2d4e02b082adef87b8))
* SGLang role-switch transfers, profiler role restore and decode spread ([#434](https://github.com/athrael-soju/Narwhal/issues/434)) ([8ae03b0](https://github.com/athrael-soju/Narwhal/commit/8ae03b0bd678ee4ac4e128c313593abbc5d046a6))


### Documentation

* name TensorRT-LLM on the llama.cpp page and the shutting-down router state ([#439](https://github.com/athrael-soju/Narwhal/issues/439)) ([d7566f0](https://github.com/athrael-soju/Narwhal/commit/d7566f0e81125f03db2cc669f4201208285d3845))
* **operate:** name the readmission error a stopped sidecar causes in the whole-wave drill ([#432](https://github.com/athrael-soju/Narwhal/issues/432)) ([bce4af3](https://github.com/athrael-soju/Narwhal/commit/bce4af3800d6468a242b784b210af8d1e1d75153))
* pre-release sweep of the operator and reference pages ([#438](https://github.com/athrael-soju/Narwhal/issues/438)) ([40a15c1](https://github.com/athrael-soju/Narwhal/commit/40a15c106a33207d22858edc0cb9b845e37419ee))

## [0.10.0](https://github.com/athrael-soju/Narwhal/compare/v0.9.0...v0.10.0) (2026-11-21)


### Features

* `controller.reactive.decode_recovery` schedules an early evaluation of a move to decode after a `slot_wait` refusal ([5b8d174](https://github.com/athrael-soju/Narwhal/commit/5b8d1746b9218078506ec92173f88233d0bf56ee))
* `serving.prefill_on_decode` lets placement borrow a decode-role engine for a prefill leg when every prefill-role engine misses the TTFT budget, and the journal records `prefill_role` ([5b8d174](https://github.com/athrael-soju/Narwhal/commit/5b8d1746b9218078506ec92173f88233d0bf56ee))
* `tools/measurement/trace_convert.py` writes public timestamped traces as `mooncake_trace` files ([5b8d174](https://github.com/athrael-soju/Narwhal/commit/5b8d1746b9218078506ec92173f88233d0bf56ee))
* a queued request whose decode-slot wait would pass its TTFT budget is refused with reason `slot_wait`, and the journal's admission price records the wait ([2bbe619](https://github.com/athrael-soju/Narwhal/commit/2bbe619378151473650d90b68c29387321f4e3b6))
* decode profiles reach each engine's sequence limit, and preflight warns when a profile stops short of it ([2bbe619](https://github.com/athrael-soju/Narwhal/commit/2bbe619378151473650d90b68c29387321f4e3b6))


### Fixes

* a concurrent decode leg holds its decode seat from placement until its prefill completes plus its decode time, and refused or queued decode work counts as decode demand ([2bbe619](https://github.com/athrael-soju/Narwhal/commit/2bbe619378151473650d90b68c29387321f4e3b6))
* **observability:** recreate Prometheus when make observe stages a new config ([#428](https://github.com/athrael-soju/Narwhal/issues/428)) ([9b649f8](https://github.com/athrael-soju/Narwhal/commit/9b649f883063f70c5a1b5f2f8ad8650b8d604533))
* role control sees a decode shortfall on the confirmation span as well as the window, and prices arriving prefill work by each prompt's share of a batch ([2bbe619](https://github.com/athrael-soju/Narwhal/commit/2bbe619378151473650d90b68c29387321f4e3b6))

## [0.9.0](https://github.com/athrael-soju/Narwhal/compare/v0.8.0...v0.9.0) (2026-11-14)


### Features

* `narwhal dev ask` sends prompts through the fleet and reports latency, throughput and the engines that served each request ([7de19ff](https://github.com/athrael-soju/Narwhal/commit/7de19ffdf82df0e2e12c602f92ff918426704cbb))
* `narwhal dev up` sets up and starts a llama.cpp fleet on one Linux or WSL2 workstation, on an NVIDIA GPU or the CPU alone, and `narwhal dev down --remove` stops it and deletes its files ([7de19ff](https://github.com/athrael-soju/Narwhal/commit/7de19ffdf82df0e2e12c602f92ff918426704cbb))
* `narwhal dev watch` shows each engine's role and load, latency, throughput and role switches in a live terminal view ([7de19ff](https://github.com/athrael-soju/Narwhal/commit/7de19ffdf82df0e2e12c602f92ff918426704cbb))
* llama.cpp engine backend: prefill and decode run on separate llama-server processes, each request's KV cache moves between them through slot files, and the router switches engine roles under load ([7de19ff](https://github.com/athrael-soju/Narwhal/commit/7de19ffdf82df0e2e12c602f92ff918426704cbb))
* the small vLLM and SGLang dev templates state GPU memory in MiB and run on GPUs with about 8 GiB and 10 GiB free ([7de19ff](https://github.com/athrael-soju/Narwhal/commit/7de19ffdf82df0e2e12c602f92ff918426704cbb))


### Fixes

* a native engine's identity holds when the host clock is corrected, as under WSL2 ([7de19ff](https://github.com/athrael-soju/Narwhal/commit/7de19ffdf82df0e2e12c602f92ff918426704cbb))


### Documentation

* quick start, live view and llama.cpp engine pages ([7de19ff](https://github.com/athrael-soju/Narwhal/commit/7de19ffdf82df0e2e12c602f92ff918426704cbb))

## [0.8.0](https://github.com/athrael-soju/Narwhal/compare/v0.7.0...v0.8.0) (2026-10-20)


### Features

* operator visibility and setup ([#384](https://github.com/athrael-soju/Narwhal/issues/384)) ([3261c0d](https://github.com/athrael-soju/Narwhal/commit/3261c0db09242499ab57ec75108a4ddf8f00737e))
* reuse still-valid calibrations and profiles ([#373](https://github.com/athrael-soju/Narwhal/issues/373)) ([0181298](https://github.com/athrael-soju/Narwhal/commit/0181298dae294b8eb9ffddd500a4e516564bb023))
* take prefill capacity back on load surges and fix decode pressure and seat placement ([#364](https://github.com/athrael-soju/Narwhal/issues/364)) ([d4ee7b0](https://github.com/athrael-soju/Narwhal/commit/d4ee7b0d0443fb7ecca4f2ff4348983056535aaa))


### Fixes

* ship characterization golden records in the sdist ([#371](https://github.com/athrael-soju/Narwhal/issues/371)) ([5a0ae2e](https://github.com/athrael-soju/Narwhal/commit/5a0ae2e95f4dbb0479f22b8b301c2c68741c2a9a))
* ship docs walkthroughs in the sdist and widen stage test budgets ([#369](https://github.com/athrael-soju/Narwhal/issues/369)) ([4c08716](https://github.com/athrael-soju/Narwhal/commit/4c087164d10f8e39add958c9ac79e48d7ed3aad9))

## [0.7.0](https://github.com/athrael-soju/Narwhal/compare/v0.6.0...v0.7.0) (2026-10-12)


### Features

* SGLang engine backend and engine-neutral backend interfaces ([#336](https://github.com/athrael-soju/Narwhal/issues/336)) ([c7ccf28](https://github.com/athrael-soju/Narwhal/commit/c7ccf2852f207e00b94c1acea2a30ff42307e7e9))


### Documentation

* fit fleet walkthrough to viewport ([#330](https://github.com/athrael-soju/Narwhal/issues/330)) ([0457952](https://github.com/athrael-soju/Narwhal/commit/0457952c34c956489b475b89394417d6bdcae130))
* replace dashboard screenshots with a walkthrough ([#333](https://github.com/athrael-soju/Narwhal/issues/333)) ([055f547](https://github.com/athrael-soju/Narwhal/commit/055f547fc565c7c807fac9669985cb5ff27e24b5))
* trim duplicated documentation ([#325](https://github.com/athrael-soju/Narwhal/issues/325)) ([cdeadb8](https://github.com/athrael-soju/Narwhal/commit/cdeadb8ebc9ca38126e5d3e88426680b02b7e438))

## [0.6.0](https://github.com/athrael-soju/Narwhal/compare/v0.5.0...v0.6.0) (2026-10-10)


### Features

* fleet control service ([#301](https://github.com/athrael-soju/Narwhal/issues/301)) ([f1f1164](https://github.com/athrael-soju/Narwhal/commit/f1f116473b9ff4c9e92a6a3bfbd23c699dfaf6a6))
* qualified admission, queueing and retries ([#312](https://github.com/athrael-soju/Narwhal/issues/312)) ([05df12f](https://github.com/athrael-soju/Narwhal/commit/05df12f02ed113a2d661a2d8571fdb56557aa347))
* redesign the fleet control console as a standalone page linked from Grafana ([#313](https://github.com/athrael-soju/Narwhal/issues/313)) ([4d7be2e](https://github.com/athrael-soju/Narwhal/commit/4d7be2e32c6523c4a9b6ab10470fcd017b5053d7))


### Documentation

* align the docs index with the README ([#284](https://github.com/athrael-soju/Narwhal/issues/284)) ([00a288e](https://github.com/athrael-soju/Narwhal/commit/00a288e901062182c7aa1cd6e14dc34111b29233))
* remove the Recognition page ([#311](https://github.com/athrael-soju/Narwhal/issues/311)) ([690ad5e](https://github.com/athrael-soju/Narwhal/commit/690ad5ee9adf0ff3e642726770793b58566b7cd8))

## [0.5.0](https://github.com/athrael-soju/Narwhal/compare/v0.4.1...v0.5.0) (2026-10-05)


### ⚠ BREAKING CHANGES

* engine-role environments drop NARWHAL_ENGINE_LAUNCHER and NARWHAL_ENGINE_LAUNCHER_SHA256; run engine actions with narwhal-engine. The attestation contract tool runs as python -m narwhal.deployment.attestation_contract.cli.
* concurrent first-token calibration with measured and reused reporting ([#242](https://github.com/athrael-soju/Narwhal/issues/242))

* split oversized modules by concern ([#252](https://github.com/athrael-soju/Narwhal/issues/252)) ([e29cadc](https://github.com/athrael-soju/Narwhal/commit/e29cadc484cdc09a81eb4522361771acb8f735e3)), closes [#239](https://github.com/athrael-soju/Narwhal/issues/239)


### Features

* colour dashboard series by meaning ([#270](https://github.com/athrael-soju/Narwhal/issues/270)) ([9212382](https://github.com/athrael-soju/Narwhal/commit/9212382d703c3d6590f8bc5a1ad06cfe9c671ba2))
* concurrent first-token calibration with measured and reused reporting ([#242](https://github.com/athrael-soju/Narwhal/issues/242)) ([683b83b](https://github.com/athrael-soju/Narwhal/commit/683b83baaf29e0cb41207f415b57fc92ae488964))
* enhance reactive policy to manage unsettled evaluations and departure leads ([#251](https://github.com/athrael-soju/Narwhal/issues/251)) ([4712899](https://github.com/athrael-soju/Narwhal/commit/47128997188aada12829831c81e360af2f605eb2))
* faster role changes and slot-aware decode admission ([#234](https://github.com/athrael-soju/Narwhal/issues/234)) ([55f7854](https://github.com/athrael-soju/Narwhal/commit/55f78541ca2766e7969641be5ddd8051ad2eedea))
* make AIPerf 0.13.0 the documented benchmark client ([#280](https://github.com/athrael-soju/Narwhal/issues/280)) ([cadcc87](https://github.com/athrael-soju/Narwhal/commit/cadcc8730cc341069d54b556f1432d7951ddc161)), closes [#271](https://github.com/athrael-soju/Narwhal/issues/271)
* router data-plane throughput ([#267](https://github.com/athrael-soju/Narwhal/issues/267)) ([1be680b](https://github.com/athrael-soju/Narwhal/commit/1be680bc4bf357afcbb5f40a77f3c9b6d2ad521d))


### Fixes

* check idle engine connections with poll() ([#281](https://github.com/athrael-soju/Narwhal/issues/281)) ([714adb7](https://github.com/athrael-soju/Narwhal/commit/714adb74a4c9c689ab2bc1ec4e375cdc09777f6a))
* keep a departure leading through one evaluation below the margin ([#250](https://github.com/athrael-soju/Narwhal/issues/250)) ([551fa2f](https://github.com/athrael-soju/Narwhal/commit/551fa2f0070f80a8ca6087dc491d2b08b1692e33))
* pin Narwhal dev to vLLM 0.30.0 ([#269](https://github.com/athrael-soju/Narwhal/issues/269)) ([25f5383](https://github.com/athrael-soju/Narwhal/commit/25f5383cb6f57059e96b0ea63a1c83ae6db99771))
* use one red across the dashboard ([#279](https://github.com/athrael-soju/Narwhal/issues/279)) ([37b5f5b](https://github.com/athrael-soju/Narwhal/commit/37b5f5b6f9f1cc53669fbbbeaa693d1cae84eba8))


### Documentation

* document resetting engine prefix caches ([#283](https://github.com/athrael-soju/Narwhal/issues/283)) ([01cc58d](https://github.com/athrael-soju/Narwhal/commit/01cc58d9f64817d069e63ccfa52bde2ec933489d))

## [0.4.1](https://github.com/athrael-soju/Narwhal/compare/v0.4.0...v0.4.1) (2026-10-02)


* release 0.4.1 ([#237](https://github.com/athrael-soju/Narwhal/issues/237)) ([977a251](https://github.com/athrael-soju/Narwhal/commit/977a2519c801f39526266855d6d7be9ac24c8ef7))


### Features

* give dashboard series one colour palette ([#235](https://github.com/athrael-soju/Narwhal/issues/235)) ([c160ad5](https://github.com/athrael-soju/Narwhal/commit/c160ad56f4ba9df3fbba6084855b468450e930f5))

## [0.4.0](https://github.com/athrael-soju/Narwhal/compare/v0.3.2...v0.4.0) (2026-10-01)


### Features

* cache-aware placement ([#227](https://github.com/athrael-soju/Narwhal/issues/227)) ([d256647](https://github.com/athrael-soju/Narwhal/commit/d256647a116ade0a1a26f3e0980df184a42a4313))

## [0.3.2](https://github.com/athrael-soju/Narwhal/compare/v0.3.1...v0.3.2) (2026-09-30)


### Documentation

* add Google Search Console verification file ([#225](https://github.com/athrael-soju/Narwhal/issues/225)) ([ded08a8](https://github.com/athrael-soju/Narwhal/commit/ded08a869919c198614f45a0fd8e556ad0ee6455))
* define milestone delivery and deployment privacy rules ([#202](https://github.com/athrael-soju/Narwhal/issues/202)) ([6255337](https://github.com/athrael-soju/Narwhal/commit/6255337074aaab68fe9fa2c34da12810e3696c4f))
* Refresh ([#223](https://github.com/athrael-soju/Narwhal/issues/223)) ([f71a178](https://github.com/athrael-soju/Narwhal/commit/f71a178c2d3f303de198e33bd0ec4de2384881b5))
* refresh README introduction and link benchmark write-up ([#217](https://github.com/athrael-soju/Narwhal/issues/217)) ([c10c3ae](https://github.com/athrael-soju/Narwhal/commit/c10c3ae1cb9e781dcbafd11cbb3af9210d843e9b))
* split Narwhal dev guide into numbered pages ([#222](https://github.com/athrael-soju/Narwhal/issues/222)) ([5f2d3fa](https://github.com/athrael-soju/Narwhal/commit/5f2d3fa4a1d98db1bd541e12e756981032a51e02))
* tighten contributor and issue-form prose ([#210](https://github.com/athrael-soju/Narwhal/issues/210)) ([8d85ed8](https://github.com/athrael-soju/Narwhal/commit/8d85ed83f6c8559d8e5f46e25111bcfafdbd7f73))

## [0.3.1](https://github.com/athrael-soju/Narwhal/compare/v0.3.0...v0.3.1) (2026-09-27)


### Fixes

* calibrate and enforce fleet timeout budgets ([#158](https://github.com/athrael-soju/Narwhal/issues/158)) ([0629f01](https://github.com/athrael-soju/Narwhal/commit/0629f0150e022c4c8d83a6c9c06e057c491f4e71))
* enforce generation-bound engine readmission and document lifecycle drills ([#161](https://github.com/athrael-soju/Narwhal/issues/161)) ([03d3ac1](https://github.com/athrael-soju/Narwhal/commit/03d3ac1c062f7d2cd5269861c77b32dd04e31460))


### Documentation

* **agent:** define operator contract and plugin boundaries ([#140](https://github.com/athrael-soju/Narwhal/issues/140)) ([b142e6a](https://github.com/athrael-soju/Narwhal/commit/b142e6ab663382a6f8106c7cc05b1b125952c200))
* clarify cancellation in deployment attainment ([#139](https://github.com/athrael-soju/Narwhal/issues/139)) ([2215401](https://github.com/athrael-soju/Narwhal/commit/2215401bb045f23f93c4ea3a3b44008f0d5d0e5a))
* remove repeated guidance and clarify benchmark scope ([27b573c](https://github.com/athrael-soju/Narwhal/commit/27b573cb034d35eae31e546c8e59135c1752ac74))

## [0.3.0](https://github.com/athrael-soju/Narwhal/compare/v0.2.1...v0.3.0) (2026-09-25)


### Features

* add four-engine WSL2 development mode ([8c5b980](https://github.com/athrael-soju/Narwhal/commit/8c5b98051ce83cfebd80149b26694842a0cbfea9))
* **cli:** add offline inspection, diagnostics and bounded lifecycle ([9df3904](https://github.com/athrael-soju/Narwhal/commit/9df390467a7494f104f2b423a75d5a95c41c0938)), closes [#122](https://github.com/athrael-soju/Narwhal/issues/122) [#123](https://github.com/athrael-soju/Narwhal/issues/123) [#124](https://github.com/athrael-soju/Narwhal/issues/124) [#125](https://github.com/athrael-soju/Narwhal/issues/125) [#126](https://github.com/athrael-soju/Narwhal/issues/126)
* **docs:** add selectable dark mode ([1c87cae](https://github.com/athrael-soju/Narwhal/commit/1c87cae8d62eb8925ff6ca1d2cd7910c234d6b86))
* link Grafana icon to Narwhal repository ([ea1d6df](https://github.com/athrael-soju/Narwhal/commit/ea1d6dfc4c5f2057310273920015d90e70bfd045))
* reproducible benchmark runs ([#55](https://github.com/athrael-soju/Narwhal/issues/55)) ([671bf35](https://github.com/athrael-soju/Narwhal/commit/671bf35bcdc2f549deff60fa29305fa11da4f179))


### Fixes

* bind profiles to live engine generations ([4ea5be0](https://github.com/athrael-soju/Narwhal/commit/4ea5be0d9ba0162052785118ce4ea9aed0a23ea7))
* **ci:** remove release build pip cache ([#77](https://github.com/athrael-soju/Narwhal/issues/77)) ([28fe2e0](https://github.com/athrael-soju/Narwhal/commit/28fe2e072b5eb1639336572d23deeada7d4ab09f))
* **ci:** validate release SHA before candidate checkout ([1976ef8](https://github.com/athrael-soju/Narwhal/commit/1976ef89089580fc40e1db4fe31ad1670bf0a7b7))
* **cli:** enforce launch checks and consistent command output ([49133c9](https://github.com/athrael-soju/Narwhal/commit/49133c9eed696de2f8d5cfc1a4b7e80ba9aa493d))
* include documentation commits in releases ([d6e84bc](https://github.com/athrael-soju/Narwhal/commit/d6e84bc32745793cd9e42f7a3e0dae48eabcc3e3))
* **serving:** hide upstream exception details from clients ([#75](https://github.com/athrael-soju/Narwhal/issues/75)) ([15482c8](https://github.com/athrael-soju/Narwhal/commit/15482c8c4450dcec28f3cf7977e317e5606783d3))


### Documentation

* clarify runbooks and align validation guidance ([#104](https://github.com/athrael-soju/Narwhal/issues/104)) ([9cfe74b](https://github.com/athrael-soju/Narwhal/commit/9cfe74bf4ca8126e7c93599a47e5ccbc596e2052))
* document issue labels and fix bug template ([d8c37a5](https://github.com/athrael-soju/Narwhal/commit/d8c37a59e8eaad9d75335fe07af3a70170803673))
* hide page edit action ([04ed085](https://github.com/athrael-soju/Narwhal/commit/04ed085dc5cb9b368c35e306b7a51104d512d340))
* refresh README installation and references ([1612192](https://github.com/athrael-soju/Narwhal/commit/1612192043f239b92ca5a28417b014e30ca2bc6c))
* remove obsolete CPU tooling references ([#52](https://github.com/athrael-soju/Narwhal/issues/52)) ([b836a91](https://github.com/athrael-soju/Narwhal/commit/b836a910f6d51d7d0064a74f23987f75e9a313b1))
* simplify fleet deployment runbook ([#92](https://github.com/athrael-soju/Narwhal/issues/92)) ([bd93aaf](https://github.com/athrael-soju/Narwhal/commit/bd93aaf43d4f0bf9f6cc1abc04dfb397701d53c8))

## [0.2.1](https://github.com/athrael-soju/Narwhal/compare/v0.2.0...v0.2.1) (2026-09-23)


### Features

* publish Narwhal distributions to PyPI ([a328d00](https://github.com/athrael-soju/Narwhal/commit/a328d00af8909220ee8c1319a9d4bf873b93da9d))

## [0.2.0](https://github.com/athrael-soju/Narwhal/compare/v0.1.0...v0.2.0) (2026-09-23)


### Features

* make first fleet deployment reproducible ([14f27f0](https://github.com/athrael-soju/Narwhal/commit/14f27f03ef9d7909afad31da18ce1fb2c4da835e))


### Fixes

* **ci:** give deployment bundle tests Git history ([33c2f9f](https://github.com/athrael-soju/Narwhal/commit/33c2f9fe6e8a220d0e04bfe4dbeb7d54c3bc875f))

## 0.1.0 (2026-09-20)

Narwhal's initial public release routes LLM inference across prefill and decode engines and changes their roles while model weights remain loaded.

### Serving and admission

- OpenAI-compatible completion and chat endpoints with streaming, input validation, and vLLM engine support.
- Profile-based request placement with predictive admission and bounded queueing.
- Optional transient retries restart the complete prefill/decode attempt before visible output. One deadline and a shared retry budget bound every original request.
- Deployment-owned engine credentials authenticate serving, profiling, preflight and lifecycle probes.
- Client cancellation releases capacity and bypasses the engine-failure counters. First-token deadlines remain active through metadata-only stream frames.
- Engine health monitoring, quarantine, ejection, and recovery of the configured prefill and decode floors.

### Fleet control

- One reactive controller moves engines between prefill and decode roles. Each decision scores the current split and its adjacent alternatives. Role pinning and minimum pool sizes constrain those changes.
- Decode capacity estimates account for active sequences and resident KV tokens. Profile coverage, demand evidence, resident work, and consolidation safety constrain role changes.
- Warm-standby control-plane handoff preserves router state across takeover.

### Deployment and validation

- Generic vLLM/NIXL `kv_both` fleet support binds one model, hardware shape and KV layout through fleet configuration, engine attestations and measured profiles. Operators own image selection and process launch.
- Kubernetes, Ansible, Terraform or site automation provisions hosts, distributes artifacts, configures routes and launches engines; Narwhal validates the running engine and KV-transfer contracts.
- Preflight checks cover engine health, process-bound compatibility, generation, profiles, SLOs, and the transfer fabric.
- Fleet schema 1 groups controller, serving, engine I/O, recovery and profile policy under
  their runtime owners. Ingress owns client identity and content capture; Narwhal owns one
  global admission budget and retains timings, identifiers, placements and outcomes.
- Profile and configuration validation reject invalid types, non-finite values, incomplete measured domains, and mismatched engine sets.
- Deployments record source identity and file digests.

### Measurement and operations

- Profiling measures per-engine prefill and decode curves; correctness canaries track exact output across live controller events.
- Per-request journals, controller state, Prometheus metrics, a Grafana dashboard, and
  engine-down alerts. One startup command derives router and engine scrape targets from the
  deployed fleet, then verifies target health and populated dashboard queries.

### Deployment qualification

- Collect per-engine profiles, live runtime evidence, exact-output canaries and deployment load results before serving client traffic.
- Validate prefix caching and speculative decoding against the selected model, engine build and KV layout before enabling them. Prefix caching requires exact-replay and continuation checks. Use whole-wave restart policy when the engine build shares peer registrations across the fleet.

See the [configuration reference](docs/Configuration.md) for defaults and the [measurement guide](docs/Measure.md) for deployment requirements.
