Enhancement
There are currently no automated tests in the repo. The JSONL edit-log replay engine (set_path, append_path, replay_jsonl) and parse_chat_model are intricate and easy to regress when handling new VS Code chat formats.
Suggested improvement
Add a unit test suite (stdlib unittest or pytest) with small fixture files covering:
This locks in behavior and protects against format drift.
Affected
- New
tests/ directory; engram.py parsing functions
Enhancement
There are currently no automated tests in the repo. The JSONL edit-log replay engine (
set_path,append_path,replay_jsonl) andparse_chat_modelare intricate and easy to regress when handling new VS Code chat formats.Suggested improvement
Add a unit test suite (stdlib
unittestorpytest) with small fixture files covering:kind0/1/2 JSONL replay edge cases (nested set, list splice, out-of-range index).parse_chat_modelextraction of turns, files, and refs.file_uri_to_pathdecoding.This locks in behavior and protects against format drift.
Affected
tests/directory;engram.pyparsing functions