Skip to content

Commit d23db12

Browse files
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 #89
1 parent 099b571 commit d23db12

2 files changed

Lines changed: 754 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Replay consistency test framework for Session / Memory / Summary.
2+
#
3+
# This package drives multiple backend implementations with the same
4+
# deterministic replay cases, normalizes non-business differences,
5+
# compares snapshots, and writes a structured diff report.
6+
#
7+
# Mirrors the Go implementation in trpc-agent-go/session/replaytest/.

0 commit comments

Comments
 (0)