---
name: undominated-stream-truncation-detector
description: Detects silent SSE connection drops in long-running streaming completions where no [DONE] sentinel or incomplete JSON chunk is emitted.
license: MIT
metadata:
  author: Undominated.ai
  version: "1.0.0"
  tags: ["streaming", "sse", "reliability", "sentinel", "truncation"]
---

# Stream Truncation & Sentinel Detector

Detects silent SSE connection drops in long-running streaming completions where no [DONE] sentinel or incomplete JSON chunk is emitted.

## When to Use
Deploy across streaming client connections to monitor for silent TCP connection resets.

## Limitations
Client implementations must buffer partial JSON frames across chunk boundaries.

## Verification Script
Run the deterministic stdlib checker:
```bash
python3 scripts/check.py examples/synthetic.json
```
Exits `0` on verified pass, `1` on failed assertion, `2` on malformed input.
