Commit Graph

7 Commits

Author SHA1 Message Date
0f15bbc3f1 Make the offered-load axis session-coherent
Phase 1 of the two-stop work. Subsampling the trace by per-request uniform score
broke multi-turn sessions (a kept turn-2 could lose its turn-1), which lowered the
realized KV-cache hit rate as offered load dropped — so the feasibility boundary
was measured on a workload with a different C than production, contradicting the
paper's scale-stationary L-C-A premise.

prepare_trace_windows now resolves each row's session root via the parent_chat_id
chain in a single streaming pass and assigns sampling_u per session, so thresholding
keeps or drops whole sessions and preserves intra-session prefix reuse. Rows whose
parent fell outside the span fall back to grouping under the parent id.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 14:16:06 +08:00
4625fba487 trace: make window materialization atomic 2026-04-12 23:09:30 +08:00
631a076498 trace: include weekend legacy windows 2026-04-12 22:43:02 +08:00
7b7eaafd78 Use time-based trace window ids 2026-04-04 22:09:43 +08:00
4e1401f50c Stream trace window materialization 2026-04-04 21:49:03 +08:00
69f666593e Speed up raw trace window extraction 2026-04-04 21:42:02 +08:00
65b122fd4b Add raw trace window preparation script 2026-04-04 21:37:51 +08:00