Files
codebase-memory-mcp/tests
Martin Vogel 8c35d5e2f4 test(repro): data-loss + watcher reproductions for #557, #520
- #557 (DATA LOSS): resolve_store() in mcp.c unlink()s the user's DB (+wal/+shm)
  with no backup when cbm_store_check_integrity() returns false — e.g. a project
  row whose root_path fails the path-shape SQL check. The test plants root_path
  "826" (from the issue evidence) under a CBM_CACHE_DIR temp dir, calls a tool
  that routes through resolve_store, and asserts the DB still exists OR a backup
  was made (RED: it is silently deleted).
- #520: detect_changes runs 'git diff', which never lists UNTRACKED new files, so
  a newly-created file is invisible until a manual re-index. Indexes a git repo,
  creates an untracked file, calls detect_changes, asserts the new file appears.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-06-26 01:19:33 +02:00
..
2026-06-03 02:13:30 +02:00