Your coding agent gets HTTP 200 from vLLM Semantic Router, but the answer appears to come from the wrong model. Sometimes the assistant returns no usable text at all. Send the same short request through two surfaces. A route preview shows the decision and model the policy selects. A live probe shows the Router’s actual selection and checks assistant delivery. Find the first disagreement before changing the policy or swapping a backend. Semantic Router FAQ
This exercise is for developers who maintain the Router in front of a coding agent. It assumes an isolated Docker host, the 0.5.0 CLI and matching Router image, and two reachable test backends that accept OpenAI-compatible Chat Completions. You will build a keyword route, prove that a control request takes a different route, and deliberately make a model assertion fail while leaving the request unchanged. Every result shown here is an illustrative expectation. The fixture exercises one user message per request. The coding harness owns its tools, conversation and task state, so a full agent run can exercise additional behavior. Semantic Router FAQ
Bind two test models to one recipe
- Choose a disposable host or VM where you can start and stop the stack independently. Keep it on a private test network. The fixture opens the listener without client authentication and allows any caller who requests debug details to receive them. The listener’s
0.0.0.0address is a bind address, and the CLI’s laterlocalhosttarget is just the address that this client uses. Use network isolation to control who can actually reach the listener. Canonical configuration · Router headers - Start two independent test backends before probing. The example uses
notes-chatathost.docker.internal:8000andgeneral-chatathost.docker.internal:8001. Use the exact served model IDs and addresses that work from the Router container. The commands below assume both backends accept chat requests without provider credentials. The Docker stack starts the Router and its supporting services. The chat engines run separately. Semantic Router quickstart · v0.5.0 CLI reference - Save the following file as
config.yamlin a fresh directory. Run the fixture commands from that directory. Keeplocal/notesandlocal/generalas the logical aliases if you change the endpoint addresses or served IDs. The v0.5 schema used here is the one described in the December 2, 2026 Ariadne announcement, which also identifies the matching release image. Canonical configuration · Ariadne release announcement
version: v0.5
listeners:
- name: http-8899
address: 0.0.0.0
port: 8899
timeout: 300s
providers:
defaults:
model: local/general
models:
- name: local/notes
provider_model_id: notes-chat
backend_refs:
- name: primary
endpoint: host.docker.internal:8000
protocol: http
provider: vllm
capabilities: [chat]
- name: local/general
provider_model_id: general-chat
backend_refs:
- name: primary
endpoint: host.docker.internal:8001
protocol: http
provider: vllm
capabilities: [chat]
recipes:
- name: default
strategy: priority
signals:
keywords:
- name: release-notes-phrase
operator: OR
keywords: ["release notes"]
decisions:
- name: release-notes
description: Send the release notes fixture to the notes model.
priority: 100
rules:
operator: AND
conditions:
- type: keyword
name: release-notes-phrase
modelRefs:
- model: local/notes
- name: default-route
description: Send the control fixture to the general model.
priority: 0
rules:
operator: AND
conditions: []
modelRefs:
- model: local/general
global:
router:
headers:
debug: any
Follow the names from the caller to the backend. The caller sends vllm-sr/auto, the automatic entrypoint for a single recipe when there is no entrypoints block. That entrypoint leads to the recipe named default. Each decision names a configured model through modelRefs. The model entry then binds that logical alias to a provider endpoint and a served model ID. For example, release-notes selects local/notes, whose binding points to port 8000 and identifies notes-chat. If you send a concrete model such as local/notes as the requested model, the Router bypasses recipe evaluation. Keep the virtual entrypoint for this exercise so the request reaches the keyword rule. Canonical configuration
The release-notes-phrase signal looks for the phrase release notes. The rule refers to that signal by name within the same recipe. With one keyword in the signal’s OR list and one condition under the decision’s AND, you can predict the outcome directly from the request text. The control prompt uses the same instruction to reply with READY, so you can inspect the result from either backend without asking it to generate a changelog or read repository history. Canonical configuration · Decision rules and ranking
The childless root AND is the explicit match-all form. Both decisions qualify when the phrase matches, and the catch-all ranks after the specific match in this fixture. Each decision contains just one model candidate, so the example isolates the decision and its binding without introducing a competition among candidate models. The catch-all also gives the control a named receipt, default-route. The provider default covers the separate case where no decision matches. If you remove the explicit catch-all, a no-match control can still use local/general through providers.defaults.model, and the Router omits the selected-decision header. Keeping the catch-all lets you assert a decision and an alias for both prompts. Decision rules and ranking · Canonical configuration · Router headers
Validate the YAML and preview both decisions
- Run the version and validation commands first. The illustrative version is
0.5.0. Read the validation result before serving. A locally available matching image lets validation use the Router’s checks. Validation will not pull the image, and if no Router can run, only the CLI’s structural checks run. For a rule reference error, comparesignals.keywords[].namewith the name underrules.conditions. For a model reference error, comparemodelRefs[].modelwithproviders.models[].name. v0.5.0 CLI reference · Canonical configuration - Start in standalone mode and check the Router service. The illustrative result is a running Router after startup. If startup times out, the CLI leaves the containers available for inspection. Use
vllm-sr logs routerand look for the startup error before sending probes. Service status establishes that the Router is running. The later requests exercise the two chat engines. v0.5.0 CLI reference
vllm-sr --version
vllm-sr config validate --config config.yaml --gateway standalone
vllm-sr serve --config config.yaml --gateway standalone --container-runtime docker
vllm-sr status router
- Preview the two prompts below. Keep the variables in the same shell for the live probes. Preview goes to the management API and evaluates the policy without generating a chat answer.
--traceincludes per-decision rule trees, and--jsonprints the full preview payload. The CLI defaults to the local management port. If you’re diagnosing a connection or authorization error, check the management origin before touching the rule. Preview’s--endpointaccepts that origin or its/api/v1root. If management requires a bearer token,--token-envnames its environment variable and defaults toVSR_MGMT_TOKEN. v0.5.0 CLI reference · Semantic Router FAQ
notes_prompt='For release notes, reply with READY.'
control_prompt='For a status check, reply with READY.'
vllm-sr route preview --model vllm-sr/auto --prompt "$notes_prompt" --trace --json
vllm-sr route preview --model vllm-sr/auto --prompt "$control_prompt" --trace --json
Read the selected decision and model for each invocation. The first should report release-notes and local/notes. Its keyword leaf should match. The second should report default-route and local/general, with a miss on the specific keyword condition. The catch-all is eligible for both requests, so its appearance in the first evaluation is expected. Check which decision won before interpreting the presence of another decision in the trace. Decision rules and ranking
If both requests select default-route, check that the first prompt contains release notes with a space. release-notes is the decision name. The rule uses the phrase in the signal’s keyword list. If the prompt is correct, run vllm-sr config get and look at the active canonical configuration. Check that the live recipe contains both decisions and that the leaf references the signal beside it. That command reads what the Router serves through the management API, which is especially useful if there is saved Dashboard-edited state. v0.5.0 CLI reference
A successful preview gives you a predicted route to compare with live evidence. For inference, the public response headers identify the applicable recipe, decision, selected model and response path. The debug trace is a separate header that requires an opt-in request and permission. The publisher’s reference below shows who can see each header surface. Router headers

Probe the live listener and force one failed assertion
- Use the same prompt strings and entrypoint on the inference listener. The commands assume the stack exposes port
8899onlocalhost.--base-urlmakes that target explicit. LeaveVSR_FIXTURE_LISTENER_KEYunset on this unauthenticated fixture. Selecting that variable with--api-key-envavoids using the default variable,OPENAI_API_KEY.--debugrequests the live trace.--expect-status,--expect-recipe,--expect-decisionand--expect-selected-modelstate the expected HTTP status and routing receipts. v0.5.0 CLI reference
vllm-sr route probe --base-url http://localhost:8899 \
--api-key-env VSR_FIXTURE_LISTENER_KEY --model vllm-sr/auto \
--prompt "$notes_prompt" --debug --expect-status 200 \
--expect-recipe default --expect-decision release-notes \
--expect-selected-model local/notes
vllm-sr route probe --base-url http://localhost:8899 \
--api-key-env VSR_FIXTURE_LISTENER_KEY --model vllm-sr/auto \
--prompt "$control_prompt" --debug --expect-status 200 \
--expect-recipe default --expect-decision default-route \
--expect-selected-model local/general
- Compare
x-vsr-selected-decisionandx-vsr-selected-modelagainst the preview for the same prompt. Both fixture requests should havex-vsr-response-path: upstream. Then inspectresponse.body.deliveryand the final assistant output. Probe asserts complete delivery for an expected 2xx response. An empty or reasoning-only answer fails delivery, as doesfinish_reason: length. Read the text yourself to check that the assistant repliedREADY. A complete paragraph can pass the delivery check and still fail the prompt’s one-word instruction. Router headers · Semantic Router FAQ - Once the release notes probe passes with
local/notes, run the command below on its own. The sole change is the value of--expect-selected-model. The listener, prompt, entrypoint and expected decision stay the same. In the illustrative failure, the Router still reportslocal/notes, and the CLI fails the assertion againstlocal/general. Read the receipt beside the expectation to see exactly which comparison failed. CLI commands
vllm-sr route probe --base-url http://localhost:8899 \
--api-key-env VSR_FIXTURE_LISTENER_KEY --model vllm-sr/auto \
--prompt "$notes_prompt" --debug --expect-status 200 \
--expect-recipe default --expect-decision release-notes \
--expect-selected-model local/general
| Input | Action | Expected result |
|---|---|---|
task:release-notes-01 with For release notes, reply with READY. on vllm-sr/auto |
Run the first preview and first live probe above with --expect-decision release-notes --expect-selected-model local/notes. |
Illustrative. Preview selects release-notes and local/notes. Live receipts agree, the response path is upstream, and delivery passes with final text READY. |
task:release-control-01 with For a status check, reply with READY. on vllm-sr/auto |
Run the second preview and second live probe above with --expect-decision default-route --expect-selected-model local/general. |
Illustrative. Preview selects the explicit catch-all. Live receipts identify default-route and local/general, and delivery passes with final text READY. |
task:release-notes-01 again with For release notes, reply with READY. on vllm-sr/auto |
Run the third live probe above with --expect-decision release-notes --expect-selected-model local/general. |
Illustrative. The model assertion fails because the live receipt still names local/notes. HTTP 200 and complete assistant delivery can coexist with this failure. |
The Router’s selected-model header carries the alias. The top-level model in the OpenAI response body is a separate field that you can assert with --expect-response-model. If your provider reports its served ID, a release notes response could have local/notes in the receipt and notes-chat in the body. Check what your test backend actually reports before adding a body-model assertion. If you need to identify the process or replica that handled the request, correlate backend evidence with the probe. The alias identifies the Router’s logical selection. CLI commands · Semantic Router FAQ
Locate the first disagreement
| What you see | Where to look next |
|---|---|
The release notes preview chooses default-route. |
Check the phrase in notes_prompt, the signal name in the rule leaf and the active recipe returned by vllm-sr config get. |
Preview selects release-notes, but the live receipt differs or is absent. |
Check the inference target and requested entrypoint. Compare active configuration and the live x-vsr-config-version before interpreting requests taken around a reload. |
Live selects release-notes, but the model receipt differs from local/notes. |
Read the active decision’s modelRefs and x-vsr-response-path. Compare the actual alias with the unchanged positive assertion. |
The live decision and model receipts agree, but x-vsr-trace is absent. |
Confirm the probe requested debug and check whether the active debug policy allows this caller. Continue using applicable public receipts. |
| Live receipts agree, but assistant output is incomplete or incorrect. | Read the response path, delivery and final output. For an upstream response, correlate the endpoint binding and served model ID with the provider’s records. |
Rule mismatch. Use the control to see whether the problem is limited to the keyword condition. When both prompts choose the catch-all, look for a missing keyword match or the wrong active recipe. When both choose release-notes, recheck the text you passed to the second preview before editing the keyword list. Shell history can show a command that refers to the right variable while the variable itself holds an old value. Reassign both variables from the example before rerunning. Once the preview diverges at the expected keyword leaf and reports the two intended winners, move on to inference. There is no need to restart either chat engine to diagnose those preview results. Decision rules and ranking · Semantic Router FAQ
Preview and live choose different decisions. Confirm that the management command and the probe address the same stack and that the probe still requests vllm-sr/auto. If a concrete model slipped into the command, the missing recipe receipt is a clue that you exercised a different path. If configuration changed between the calls, reread the active document and collect a fresh pair. x-vsr-config-hash on the preview identifies the active runtime document. x-vsr-config-version on the live response identifies the snapshot that served that request. A request keeps the version it started on through a hot reload, and version numbers count activations per Router. For a deployment with replicas, the header reference identifies the active runtime hash as the way to compare documents across instances. Canonical configuration · Router headers
The decision is correct and the model differs. Compare the unexpected receipt against the intended YAML before editing either one. In the deliberate failure, the configuration and live alias still agree on local/notes and the CLI expectation is wrong. If the positive probe expects local/notes and the receipt instead names local/general, look at the active modelRefs for release-notes and the response path. A live fallback path in another recipe calls for reading fallback evidence before changing candidate selection. If the alias is already correct and the provider model is surprising, inspect provider_model_id and backend_refs on that alias. Changing the keyword rule would leave an incorrect provider binding in place. Canonical configuration · Router headers
Debug permission is missing. Repeat the first positive probe with --no-debug in place of --debug, keeping all expectations unchanged. The illustrative result is that the public recipe, decision and model receipts remain available while the trace is absent. If the original --debug command also lacked a trace, check global.router.headers.debug on the Router that actually answered. The default is none. The private fixture uses any. On a deployment set to authenticated, check whether the caller is listed in debug_principals and whether the deployment passes trusted identity from its authenticator. A present trace can omit individual members that do not apply, such as model-derived confidence for a keyword-only decision. Distinguish a missing header from a present header without a particular member. CLI commands · Router headers
The upstream response is incomplete. Establish the response path before attributing a reply to the selected backend. An upstream receipt points to the upstream response path. A cache, fallback or Router-generated response has its own path value where applicable. If the release notes request fails delivery while the control completes, check the local/notes binding first. Use vllm-sr logs router and correlate with the notes backend using x-request-id where available. Check that the container can reach port 8000 and that the responding service knows notes-chat. A working host-side connection checks a different network path. Once the backend issue is corrected, repeat the same positive probe with the original aliases and input. v0.5.0 CLI reference · Router headers
If you received HTTP 200 with finish_reason: length, inspect the completion budget and rerun the same positive case after correcting it. The probe exposes --max-completion-tokens for a request-specific diagnostic, and that budget includes reasoning. Omit the option to use the backend default. Record any explicit budget alongside the result so a successful retry can be interpreted in light of the change. If the body is complete but says something other than READY, record an answer-quality failure and leave the verified route intact. CLI commands · Semantic Router FAQ
If both plain-text cases work and the coding agent still fails, compare the harness’s actual entrypoint, protocol and request shape. A tool call exercises a different response shape, and a stream has its own delivery path to verify. Two passing single-message calls are a baseline you can use before reproducing either symptom. Verify vLLM Tool Calling Before Connecting a Coding Agent · LLM Streaming Parity Tests
Stop the fixture and keep the two prompts
- After any fix, rerun both previews and both positive probes with the original prompts. For the release notes case, restore
--expect-selected-model local/notesif the last invocation was the deliberate failure. Verify that one case selectsrelease-notesand the other selectsdefault-route. Record each case’s actual recipe, decision, alias, response path, delivery outcome and final text. Keeping the request and its observation together lets the next maintainer distinguish an assertion mistake from a routing change. When a deployment can fall back to another backend, preserve the requested entrypoint and the observed selection as distinct values. Who Actually Answered? - Stop the disposable Router and check its service status from the same test environment. The illustrative end state is that the Router is no longer running. The quickstart documents that stopping the local stack removes its containers and networks. Configuration, data and pulled images can remain on disk. The two chat engines were started independently, so manage them through their own lifecycle. Semantic Router quickstart
vllm-sr stop
vllm-sr status router
- Keep the fixture YAML, the two positive commands and the illustrative outcome table together if you plan to repeat the exercise after changing a route. Label the wrong-alias command as an intentional assertion failure. If the issue spans the Router and the coding agent, include the matching request evidence in the incident record so the next person can see which boundary passed. For broader operating context and a comparison with hosted routing, see AgentOps and Routers You Can’t See Inside.

