desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs
Comment 1, line 1
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:1
//! V12: oh-my-pi (omp) repeated reads, appended lines, partial lines across rounds,Comment 2, line 2
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:2
//! truncation/equal-length replacement/rename detection, bounded resume and conflicting duplicates.Comment 3, line 3
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:3
//! Scenarios correspond to pi_incremental_v12.rs; the base is the real sanitizedComment 4, line 4
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:4
//! session-glm-reasoning sample: 7 lines, one event at L6 assistant and L7 custom.Comment 5, line 13
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:13
/// Relative reconstructed real-sample path: sessions/<encoded-cwd>/<file>.Comment 6, line 64
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:64
// Write the first five lines, title/session/model_change/thinking_level_change/user, without events;Comment 7, line 65
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:65
// then append L6 assistant with its event and L7 custom.Comment 8, line 89
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:89
// Appended reads retain session identity through parser context persisted with the cursor.Comment 9, line 104
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:104
// Write five complete lines plus the first half of the L6 assistant event.Comment 10, line 116
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:116
// Complete that partial line and add L7 custom.Comment 11, line 141
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:141
// Truncating to five lines triggers detection, generation+1 and a scan from the start.Comment 12, line 154
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:154
// Truncation does not remove already imported history.Comment 13, line 170
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:170
// Equal-length replacement swaps L3 model_change and L4 thinking_level_change.Comment 14, line 171
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:171
// Byte length and valid JSON lines stay intact; L1 title and L2 session remain unchanged.Comment 15, line 172
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:172
// A changed content fingerprint must trigger a rescan.Comment 16, line 188
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:188
// Rescanning the same key/content is idempotent and adds no duplicate event.Comment 17, line 227
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:227
// Manual synthetic-auxiliary-carriers totals: 9 lines, 6 events, ordered title/session/Comment 18, line 228
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:228
// model_change/assistant(with usage)/assistant(without usage)/usage/compaction/Comment 19, line 229
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:229
// branch_summary/toolResult. Line limits 4+4+100 produce events 1+4+1.Comment 20, line 230
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:230
// Totals: call_count=6, derived input_total=1625, cache_read=10, cache_write=1005,Comment 21, line 231
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:231
// output=305, total=1930, input_unknown_count=0; syn-a2 counts a call without unknown-field denominators.Comment 22, line 235
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:235
// Copy the synthetic sample into a temporary directory, leaving repository samples intact.Comment 23, line 278
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:278
// syn-cf-1 first read: input=1000/cacheRead=400 gives input_total=1400 and total=1450.Comment 24, line 279
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:279
// Same tuple with input=1500 has no proven revision order; mark conflict and retain existing values.Comment 25, line 294
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:294
// Append a record with the same type/id/parentId/timestamp but different usage.Comment 26, line 304
desktop/src-tauri/crates/core/tests/omp_incremental_v12.rs:304
// Retain input 1400 instead of selecting the greater value; flag and diagnose conflict.