Preserves each event's stored sequence position while folding assistant_delta
chunks and final assistant_message or turn_finished updates into their initial
turn record. Resulting sequence values remain strictly increasing with gaps
wherever intermediate delta records were combined.
Low-level history loader with automatic cache management and crash recovery.