Results / truncation.text-stream

Streamed text cut off by the output token limit

The model stops at the output token limit in the middle of a streamed plain-text answer.

Bug class: Truncation not reported as truncation

The provider stopped at the output token limit, but the library reports a normal finish, a generic parse error, or a partial result as success.

Agents accept partial output or retry without raising the limit, and structured pipelines ingest incomplete records.

Requirements

LevelIdCheckRequirementProviders
MUSTcause-is-truncationtruncation_is_signalledThe caller can tell that the stream stopped at the token limit.All
SHOULDtext-reportedtext_matches_truthThe streamed text is reported exactly as the provider sent it.All
SHOULDusage-reportedusage_matches_truthOutput token usage is reported, and matches the provider's count.All

Fixtures