Files
leleka/scripts
Pavlo RatushnyiandClaude Sonnet 5.5 7b7e56d389 fix(e2e): replay driver fails a cut-off or failed stream, records token evidence, flags exceeded bound (STRA-308 rework)
D308-1: a turn whose stream ends without a terminal event, with response.failed, with a
non-bound response.incomplete, or without usage.input_tokens is recorded as a failed turn
(integrity_failure reason), later turns are not sent, run status "failed", exit 1.
record-h0 refuses such a stream (no H0 written).
E2(3)/E7 (BA decision 9dcb717a): per turn the server-reported prompt_tokens, the H0
prompt_tokens, their equality, cached/output tokens and output_tokens_source are recorded;
the run lists prompt_tokens_differ_from_h0_turns.
E7(b): output_tokens > N_k marks the arm invalid (bound_exceeded_turns, arm_valid false,
invalid_reasons OUTPUT_BOUND_EXCEEDED, status arm_invalid, exit 4); shorter stays
LENGTH-UNMATCHED. Tests: 28 (8 new, 1 replaced).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 22:01:55 +01:00
..
2026-10-25 14:07:18 +01:00