Commit d23db12
committed
test(sessions): add replay consistency harness for sessions memory and summaries
Add a multi-backend replay consistency test framework that drives
InMemory and SQLite backends with the same deterministic replay
cases, normalizes non-business differences, compares snapshots,
and writes a structured diff report.
Key features:
- 10 replay cases: single/multi-turn, tool calls, state updates,
memory write/read, summary generation/overwrite/truncation,
track events, concurrent writes, error recovery.
- Normalized snapshot comparison for events, state, memory,
summaries, and tracks.
- Structured diff report (session_memory_summary_diff_report.json).
- Supports InMemory and SQLite backends.
- Mirrors the Go implementation in trpc-agent-go/session/replaytest/
for shared fixtures and cross-language verification.
Resolves #891 parent 099b571 commit d23db12
2 files changed
Lines changed: 754 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments