test(sessions): add Session/Memory/Summary replay consistency harness#158
Open
quan020406 wants to merge 2 commits into
Open
test(sessions): add Session/Memory/Summary replay consistency harness#158quan020406 wants to merge 2 commits into
quan020406 wants to merge 2 commits into
Conversation
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #158 +/- ##
==========================================
Coverage ? 87.55867%
==========================================
Files ? 467
Lines ? 44103
Branches ? 0
==========================================
Hits ? 38616
Misses ? 5487
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Author
|
I have read the CLA Document and I hereby sign the CLA |
Rook1ex
added a commit
to trpc-group/cla-database
that referenced
this pull request
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issues
Resolved #89
Summary
Adds a replay consistency harness for Session, Memory, and Summary behavior across InMemory and SQLite backends.
The harness loads 10 public replay cases, applies identical operation sequences to each backend, normalizes non-business differences, compares SDK-observable state, and writes a structured diff report.
Changes
tests/sessions/test_replay_consistency.pyfor InMemory vs SQLite replay comparison.session_memory_summary_diff_report.jsonwith case id, backend pair, field path, session id, event index or summary id, and compared values.Results
pytest tests\sessions\test_replay_consistency.py -q4 passed, 1 skippedTRPC_AGENT_REPLAY_REDIS_URLand skipped when unset.Notes
The current SDK does not expose a dedicated persisted
summary.versionfield. This harness interprets summary version as observable revision state, validated through generation order, replacement behavior, persisted summary text, session ownership, timestamp validity, and coverage/projection consistency.Backward Compatibility
No production SDK API changes. All changes are limited to tests, fixtures, report output, and design documentation.
RELEASE NOTES: NONE