desktop/src-tauri/crates/core/tests/dsh_contract.rs
Comment 1, line 1
desktop/src-tauri/crates/core/tests/dsh_contract.rs:1
//! Legacy DSH (DeepSeek Harness) requirement tests use synthetic data from A08Comment 2, line 2
desktop/src-tauri/crates/core/tests/dsh_contract.rs:2
//! fixed token-meter source; the 2026-09-25 local inventory found no installation.Comment 3, line 3
desktop/src-tauri/crates/core/tests/dsh_contract.rs:3
//! Fixed README replacement rules: finals replace streaming values in the same attempt;Comment 4, line 4
desktop/src-tauri/crates/core/tests/dsh_contract.rs:4
//! retry-started closes replacement and starts another billing attempt. Attempt/step boundariesComment 5, line 5
desktop/src-tauri/crates/core/tests/dsh_contract.rs:5
//! finalize the last sample. occurred_at uses observation time; this legacy README has no event timestamps.Comment 6, line 52
desktop/src-tauri/crates/core/tests/dsh_contract.rs:52
// msg1 streaming 60 is replaced by msg2 final 75; retry-started finalizesComment 7, line 53
desktop/src-tauri/crates/core/tests/dsh_contract.rs:53
// attempt0=(75,12,20,5), then msg3=(30,6,5,5); final step/start closes attempt1.Comment 8, line 54
desktop/src-tauri/crates/core/tests/dsh_contract.rs:54
// Two billing attempts: uncached=105, output=18, cache read=25, cache write=10;Comment 9, line 55
desktop/src-tauri/crates/core/tests/dsh_contract.rs:55
// input_total=140, total=158.Comment 10, line 73
desktop/src-tauri/crates/core/tests/dsh_contract.rs:73
// Step one: final 70 replaces streaming 120, yielding attempt(70,8,25,5).Comment 11, line 74
desktop/src-tauri/crates/core/tests/dsh_contract.rs:74
// Step two: streaming 40/50/60 closes at retry-started as attempt0=60; retry 5 closes attempt1.Comment 12, line 75
desktop/src-tauri/crates/core/tests/dsh_contract.rs:75
// Three billing attempts: uncached=70+60+5=135, output=8+4+1=13, cache read=25+30+0=55, cache write=5.Comment 13, line 76
desktop/src-tauri/crates/core/tests/dsh_contract.rs:76
// input_total=135+55+5=195, total=208.Comment 14, line 94
desktop/src-tauri/crates/core/tests/dsh_contract.rs:94
// context/header/offload/user messages do not create calls; pressure/projected estimatesComment 15, line 95
desktop/src-tauri/crates/core/tests/dsh_contract.rs:95
// do not count as usage. The only usage message (10,2,0,0) produces one call/total 12.