What this check measures
Records the input length the endpoint accepts and checks each marker in the same response.
Records the input length the endpoint accepts and checks each marker in the same response.
Cost-cutting relays frequently clamp effective context windows (for example silently truncating 128k down to 16k or 32k) without throwing an error.
Run before deploying RAG pipelines, repository indexing, or long-document summarization workflows.
A gateway can advertise "128k" in `/v1/models` while quietly dropping leading chat turns or truncating middle history on the proxy hop so long contexts fail unpredictably.
Embed verifiable marker tokens at known offsets inside progressively larger context payloads.
Send scaled requests across increasing tiers until retrieval accuracy collapses or hard limit errors occur.
Record accepted length and the recall result at each marker position. Compare with the published limit when available.
The report shows input admission and marker recall separately within one scored check. Repeated marker loss flags a recall issue whose cause requires further evidence.
Each sample records input length, endpoint response, and the positions of any recalled markers.
The audit uses a bounded request and token budget. A fixed-length review is available for follow-up.
Implemented in @lmspeed/audit v0.3.3 (ruleset independent-2026-11-22.2); supplementary capability/injection design cross-checked against Veridrop, LLMprobe-engine, and meow-llm-detector specs.