Files
leleka/crates
Pavlo RatushnyiandClaude Opus 5.5 791a4fa8cb fix(serve): keep the draft ring's materialized lower bound across prompt chunks
The second batched chunk of every multi-chunk prompt was refused with
IdentityMismatch at publication: OriginalDraftSession::prepare_publication took
the driver's per-chunk bound (CompletedDraftKv::first_materialized = cell0 + r0,
i.e. the chunk's start) as the ring's whole materialized range and checked it
against end - MTP_ORIGINAL_WINDOW, so [0, start) counted as never recorded.
A chunk that records from its own start where the ring already reaches now
continues the earlier range; a chunk that skipped rows still starts a new one.
Found by job 311 (8000-token prompt, LELEKA_BRINGUP_TRACE): chunk 2 at
first=2048 failed in pending.publish(). The refusal now traces its operands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 12:06:10 +02:00
..