SDCGuard reports stale-read failures and partial vLLM checksum coverage
What is this?
SDCGuard is an MIT-licensed tool by Hari Krishna Kancharla for inspecting whether vLLM KV-cache integrity checks covered each request. The maintainer’s GitHub report says it reproduced a stale-cache-read bug on an H100: all 8 reported unfixed runs returned an incorrect answer, while SDCGuard flagged each; 5 replays with a proposed fix backported were correct. Separately, testing a proposed vLLM checksum change that the report says was not yet merged found that only 9 of 153 requests had their whole prompt compared, because reused cached prefixes were not rechecked. These are maintainer-reported results, not independent validation. The tool can replay recorded requests without a GPU, but recording new runs currently requires a narrowly specified, manually prepared setup: two pinned vLLM builds, one H100, NIXL, and Qwen3-0.6B. The sources do not establish that the bug or checksum coverage behavior is fixed or representative beyond those tests.
Why it matters
Inference servers can return plausible but wrong answers without an HTTP error, and KV-cache reuse makes it harder to know what integrity checks actually covered. SDCGuard offers a way to inspect that coverage request by request and potentially catch a silent failure before an engine upgrade ships. The reported results highlight both a concrete stale-read failure and a subtler limitation: a passing checksum may not mean the full prompt was checked. For now, the evidence and supported setup are narrow and maintainer-reported, so this is a useful reliability signal rather than proof of a broadly validated security solution.
Current assessment
New: SDCGuard is available on GitHub with documented commands and saved test runs. Its gate matches checksum records to recorded client requests and can HOLD a request when its full prompt was not compared; the example exits 2 on HOLD and does not require a GPU to replay saved data. Maintainer-reported vLLM test: on an H100, a forced-timing reproduction of issue #61229 returned a wrong answer in all 8 unfixed runs and SDCGuard flagged all 8; 5 replays with proposed PR #62065 backported returned correct answers. The report says the decode server read KV blocks freed and reused by prefill. Separately, tests of proposed checksum PR #62211, described as not merged at the time of the report, passed all 153 requests but compared the whole prompt for only 9; the rest reused cache checked on arrival. The maintainer says this behavior is by design and SGLang behaves similarly, and reports the result on two PR builds. The tool’s stated scope is currently one manually prepared vLLM configuration, not a general deployment gate; its documentation explicitly disclaims deployment or isolation guarantees. No independent confirmation, broader adoption evidence, or source here establishes current upstream PR status. Implication: serving teams may need to distinguish integrity-check success from per-request full-prompt coverage, especially when relying on shared or reused KV caches. Track upstream issue/PR outcomes and whether SDCGuard expands beyond its current setup before generalizing the findings.
Measured heat
now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 574h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion
How the heat travelled
pace: p11 vs 1845 stories at the 336h mark (now 574h old) — behind adobe-max-ai-agents-creative-tools-mcp (0.5x)
Evidence (2) — ⭐ canonical anchor
| source | object | author | score | comments |
| 🟧 hn | Show HN: SDCGuard – Inspect vLLM KV-checksum coverage per requestRetrieved article excerptOpen article · Retrieved 2026-11-02T18:24:06.565611+00:00 # sdcguard
Release tests for LLM inference servers.
An inference server can send back a wrong answer with a normal HTTP 200. sdcguard shows what the server's own
integrity checks covered for each request, so you can see it before you ship an engine upgrade.
## What I found
I reproduced vLLM bug [#61229](https://github.com/vllm-project/vllm/issues/61229) on an H100. The decode server
reads KV blocks the prefill server already freed and reused, and I forced the timing with a delay. Asked to repeat
the secret word PLUM, one run answered "M. Repeat the secret word..." with a 200. All 8 unfixed runs came back
wrong, and sdcguard flagged the stale read in every one. With the proposed fix
([#62065](https://github.com/vllm-project/vllm/pull/62065)) backported, all 5 replays were right.
[Saved results](https://github.com/hari-kancharla/sdcguard/blob/main/results/61229_saved).
Then I tested vLLM's proposed KV checksum ([#62211](https://github.com/vllm-project/vllm/pull/62211), not merged
yet). In a test where requests share most of their prompt, the checksum passed on all 153 requests, but only 9 had
their whole prompt compared. The rest reused cache that was checked once, when it first arrived. That's by design,
and SGLang does the same. But it means a pass doesn't tell you how much of the prompt was checked. I
got the same result on two builds of the PR and posted the numbers there.
## Try it
```
git clone https://github.com/hari-kancharla/sdcguard
cd sdcguard
python3 -m venv .venv
. .venv/bin/activate
pip install --no-deps .
sdcguard gate tests/data/checksum_owner_3a2ad847 --require checksum
```
This replays the Oct 30 H100 run on your machine. No GPU needed, just Python 3.10 or newer.
```
HOLD | required: checksum
selected recorded client requests only; no deployment or isolation guarantee
9 / 153 selected requests passed
...
sgc-3a2ad847b9af4c76ae55aee4111c0258-0-1-35-d | HOLD | cached prefix not covered by checksum; checksum:cached prefix not covered by checksum
Prompt tokens: 1451; transferred tokens checked: 27; decode cache reused unchecked: 1424; prefill cache reused: 1424
```
It exits 2 on HOLD and 0 on a pass. Two more commands replay saved runs:
- `sdcguard transfer-check tests/data/checksum_owner_3a2ad847` checks whether every transfer was compared. It passes.
- `sdcguard transfer-compare tests/data/checksum_owner_9b42f5ab tests/data/checksum_owner_b340ee03` compares two
builds of the PR. 153 transfers kept their check and 0 lost it. It still exits 2 with HOLD, because the same
requests stay partly checked.
## How it works
```
flowchart LR
P[Prefill server] -->|"transfer, compared"| D[Decode server]
K[(Decode prefix cache)] -->|"reused, not compared"| D
D -.->|"checksum records"| G[sdcguard gate]
```
Loading
A vLLM plugin records each checksum call and which tokens it compared. `sdcguard gate` matches those records to
client requests offline and passes a request only if its whole prompt was compared. The full method, recording setup
and limits are in [docs/CHECKSUM\_GATE.md](https://github.com/hari-kancharla/sdcguard/blob/main/docs/CHECKSUM_GATE.md).
## Status
It supports one vLLM setup today: the checksum PR at two pinned commits, prefill and decode on one H100 over NIXL,
with Qwen3-0.6B. Recording a new run still needs that setup prepared by hand. Next is fault injection, then a
self-service setup, then SGLang and a CI gate.
## Earlier work
sdcguard started as a GPU math checker. On a rented H200 split with NVIDIA MPS, it caught wrong results from a
known cuBLAS bug while NVIDIA DCGM and gpu-burn passed, because their tests never ran the broken code path
([head-to-head](https://github.com/hari-kancharla/sdcguard/blob/main/results/h2h/h200_20261020_060928.md)). That version is on PyPI as
`pip install sdcguard` (0.4.0).
---
MIT license. Built by Hari Krishna Kancharla. | itshkrishna | 1 | 0 |
| 🟧 echo.github ⭐ | The project replays inference requests, reports which tokens were checked by KV-cache integrity mechanisms, and documents tests that flagged | Hari Krishna Kancharla | — | — |
Interpretation history
2026-11-02T20:20:49Z
audience grounding: high — Inference servers can return plausible but wrong answers without an HTTP error, and KV-cache reuse makes it harder to know what integrity checks actually covered. SDCGuard offers a way to inspect that coverage request by request and potentially catch a silent failure before an engine upgrade ships. The reported results highlight both a concrete stale-read failure and a subtler limitation: a passing checksum may not mean the full prompt was checked. For now, the evidence and supported setup are narrow and maintainer-reported, so this is a useful reliability signal rather than proof of a broadly validated security solution.
Decision trace
- 11-03 07:20groundInference servers can return plausible but wrong answers without an HTTP error, and KV-cache reuse makes it harder to know what integrity checks actually covered. SDCGuard offers a way to inspect that
- 11-03 05:29attention_candidatecreate
- 11-03 05:25createThe repository provides a usable operator tool and concrete, maintainer-reported tests, while its current support is limited to one vLLM setup.