﻿# SGLang action transport tests can pass before a real model has been qualified

The November 18 SGLang test proposal exercises JSON, MessagePack and WebSocket contracts. Learn to read those results separately from real model execution.

Author: Retrivium editorial team
Updated: 2026-11-19
Canonical URL: https://retrivium.ai/journal/daily-20261119-sglang-action-transport-tests-versus-model-execution/
Language: en

On November 18, 2026, an SGLang contributor proposed tests for action requests through HTTP and WebSocket. The proposed tests exercise JSON, MessagePack and realtime handshake behavior with a substituted scheduler forward call. Request preparation, routing, serialization and decoding still execute. The contributor reported 13 passing tests for both the development revision and v0.5.23 in the same dependency environment. This is a useful protocol result. The source describes a proposed test change and separate model evidence, not a stability declaration for SGLang 1.0.

## Keep the substitution boundary visible

A substituted output lets the test know which response belongs to each request. It also removes real scheduling and model execution from the comparison. Record the exact component replaced by the fixture. If request preparation remains real, the test can reveal an adapter dropping fields. If the scheduler supplies a deterministic synthetic result, the test cannot reveal that certain weights fail to load or that a real backend produces an invalid result under load. Both findings belong in distinct columns of an acceptance record.

## Compare representations rather than just statuses

The contributor compares a MessagePack output layout using independent parsing tools and checks that the realtime handshake agrees with HTTP metadata. A consumer should document the fields, shape, and numeric representation it needs. Test unsupported output formats separately so client software can tell the difference between a valid response and a protocol error. Keep a positive response fixture with known values, since a successful HTTP status or a socket handshake alone cannot establish that the application decoded the response correctly.

## Verify request identity within a persistent session

Two clearly different synthetic observations can share a connection. Check that the first response belongs to the first observation and the second response corresponds to the second one. Distinct inputs and recognizable outputs make stale messages apparent. A test that opens a new connection for every request can pass even if a long-lived client mishandles later messages. Keep connection lifecycle and response identity in the record without assuming that the real model executed behind the simulated result.

## Make startup a separate checkpoint

The release tracker also reports a real Pi0.5 JSON observation, while fresh full-checkpoint WebSocket evidence was unavailable in the stated setup because tokenizer access was missing. A checkpoint path, runtime access and transport initialization are separate prerequisites. A useful deployment test identifies the actual model assets present and exercises the same client path used by the application with its approved workload. A JSON success does not fill a WebSocket coverage gap.

## Define exactly what you can promote

For each client, record protocol version, runtime revision, request format, and whether the scheduler was substituted. Record actual model initialization and bounded end-to-end execution separately. The two results together can support the intended deployment after its own acceptance requirements are met. Neither a test proposal nor the reported development experiments qualify untested model families, concurrency levels, physical actions, or future runtime packages.

## Sources

- [SGLang action contract test proposal](https://github.com/sgl-project/sglang/pull/51360)
- [SGLang tracker with model and transport results](https://github.com/sgl-project/sglang/issues/50045)

## Related reading

- [Inference benchmark method](/journal/inference-benchmark-method/)
- [Readiness and liveness checks](/journal/provider-startup-readiness-liveness-separation/)
