✓ PASS
any-llm 1.40.2
stream.missing-finish-abort · anthropic
Requirements
| Id | Level | Status | Evidence |
|---|---|---|---|
| no-normal-stop | MUST | SATISFIED | outcome=raised; finish.value=null (absent); truth.finish="none"; forbidden finish="stop" |
| stream-incomplete | MUST | SATISFIED | stream.completed=false; outcome=raised; truth.stream_completed=false |
What the provider sent
- Finish
- none
- Raw finish
null
- Text
- Octopuses
- Tool calls
[]
- Usage
{ "alternatives": {}, "cached_input": null, "input": 25, "output": 1, "raw": { "input_tokens": 25, "output_tokens": 1 }, "reasoning": null, "total": 26 }- Stream completed
false
- Error
null
Wire excerpt
status: 200
content-type: text/event-stream
body (sse):
event: message_start
data: {"type": "message_start", "message": {"id": "msg_01Aq9w938a90dw8q", "type": "message", "role": "assistant", "content": [], "model": "claude-sonnet-5-5", "stop_reason": null, "stop_sequence": null, "usage": {"input_tokens": 25, "output_tokens": 1}}}
event: content_block_start
data: {"type": "content_block_start", "index": 0, "content_block": {"type": "thinking", "thinking": "", "signature": ""}}
event: ping
data: {"type": "ping"}
event: content_block_delta
data: {"type": "content_block_delta", "index": 0, "delta": {"type": "thinking_delta", "thinking": ""}}
event: content_block_delta
data: {"type": "content_block_delta", "index": 0, "delta": {"type": "signature_delta", "signature": "EqQBCgIYAhIM1gbcDa9GJwZA2b3hGgxBdjrkzLoky3dl1pkiMOYds..."}}
event: content_block_stop
data: {"type": "content_block_stop", "index": 0}
event: content_block_start
data: {"type": "content_block_start", "index": 1, "content_block": {"type": "text", "text": ""}}
event: content_block_delta
data: {"type": "content_block_delta", "index": 1, "delta": {"type": "text_delta", "text": "Octopuses "}}
end: abortWhat the library reported
- Outcome
- raised
- Finish
{ "raw": null, "source": null, "surface": "absent", "value": null }- Text
- Value
- Octopuses
- Surface
- primary
- Tool calls
[]
- Usage
{ "cached_input": null, "input": null, "output": null, "reasoning": null, "surface": { "cached_input": "absent", "input": "absent", "output": "absent", "reasoning": "absent", "total": "absent" }, "total": null }- Stream
{ "chunks_seen": 10, "completed": false, "used": true }- Error
- Type
- httpx.RemoteProtocolError
- Message
- peer closed connection without sending complete message body (incomplete chunked read)
- Category
- network
- Retry after
null
- Stack top
- httpx/_transports/default.py:118
- Unsupported reason
null
Full observation JSON
{
"elapsed_ms": 173.2979379594326,
"error": {
"category": "network",
"message": "peer closed connection without sending complete message body (incomplete chunked read)",
"retry_after": null,
"stack_top": "httpx/_transports/default.py:118",
"type": "httpx.RemoteProtocolError"
},
"finish": {
"raw": null,
"source": null,
"surface": "absent",
"value": null
},
"format": "wiretruth.observation/v1",
"library": {
"api": "any_llm.completion",
"language": "python",
"name": "any-llm",
"version": "1.40.2"
},
"notes": [],
"outcome": "raised",
"stream": {
"chunks_seen": 10,
"completed": false,
"used": true
},
"structured": {
"attempted": false,
"returned_as_success": false,
"value": null
},
"text": {
"surface": "primary",
"value": "Octopuses "
},
"tool_calls": [],
"unsupported_reason": null,
"usage": {
"cached_input": null,
"input": null,
"output": null,
"reasoning": null,
"surface": {
"cached_input": "absent",
"input": "absent",
"output": "absent",
"reasoning": "absent",
"total": "absent"
},
"total": null
}
}Fixture
derived anthropic/stream.missing-finish-abort
| Provenance | Value |
|---|---|
| Transform | cut_stream_after |
| Source fixture | anthropic/truncation.text-stream |
| Rationale | The connection closes before the stream has delivered every event. |
| Evidence | https://platform.claude.com/docs/en/build-with-claude/streaming#error-recovery |
Reproduce
wiretruth serve anthropic/stream.missing-finish-abortPlain-library snippet from the shim manifest.
any_llm.completion(model=model, provider='anthropic', api_base=WIRETRUTH_BASE_URL_ANTHROPIC, api_key=WIRETRUTH_API_KEY); host root, SDK appends /v1/messages and uses x-api-keyUpstream
No matching upstream report.
History
| Version | Grade |
|---|---|
| 1.40.2 | ✓ PASS |
| 1.38.0 | ✓ PASS |
| 1.33.0 | ✓ PASS |