test: 新增 Session/Memory/Summary 回放一致性测试框架#115
Open
xyxhhhhh wants to merge 1 commit into
Open
Conversation
f7c2d6c to
0e8ef83
Compare
0e8ef83 to
bc6e1d0
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #115 +/- ##
==========================================
Coverage ? 87.53096%
==========================================
Files ? 467
Lines ? 44005
Branches ? 0
==========================================
Hits ? 38518
Misses ? 5487
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Closes #89
本 PR 针对 Issue #89 完成的内容
本 PR 实现了一个 Session / Memory / Summary 多后端回放一致性测试框架,用同一组标准化 replay case 驱动不同后端,验证事件、状态、记忆和摘要的回放一致性。
具体包括:
tests/sessions/test_replay_consistency.py,实现 replay harness、后端构建、快照归一化、差异比较、allowed_diff 和报告生成。tests/sessions/replay_cases/session_memory_summary_replay_cases.jsonl,提供 18 条标准 replay case;在Issue 要求的至少 10 条基础上,额外补充了 8 条覆盖 metadata、多 part event、跨 session 隔离、summary 后 memory 读取、多结果 memory recall 等边界场景。session_memory_summary_diff_report.json,记录每个 case、每个后端的快照、差异、错误、覆盖信息和运行模式。docs/mkdocs/zh/session_replay_consistency.md。