claude-memory/graph/procedures/cognitive-memory-has-no-test-suite-use-inline-smoke-tests-21be13.md
2026-03-01 18:38:40 -06:00

1.5 KiB

id type title tags importance confidence created updated relations
21be13ae-c01b-4bf1-917a-9e1ef18312a8 procedure Cognitive-memory has no test suite — use inline smoke tests
cognitive-memory
testing
workflow
smoke-tests
development
0.5 0.8 2026-03-01T04:12:49.340723+00:00 2026-03-02T00:38:40.739932+00:00
target type direction strength edge_id
ee85bf89-93f0-48e4-b911-7ddc18a735b5 RELATED_TO outgoing 0.7 d48a8a66-5b89-435c-9e8b-1f41a10b8b13
target type direction strength edge_id
9ea72015-0b85-4a42-9ae1-144866f8d86f RELATED_TO outgoing 0.6 776d09a5-d1b3-4fe3-ac8a-5b41e40460d1
target type direction strength edge_id
1177d1f5-6df7-42ae-beef-bbd6b22d2fae RELATED_TO incoming 0.5 9af73e88-2f70-4109-99f9-bc2214d2a566

Cognitive-memory Has No Test Suite — Use Inline Smoke Tests

Context

The cognitive-memory project at /mnt/NV2/Development/cognitive-memory/ has no test directory or test files.

Procedure

When verifying changes, write inline Python smoke tests that:

  1. Exercise handle_tool_call() directly
  2. Clean up created test memories afterward

Cleanup Steps

Cleanup requires:

  1. Removing memory files via c.memory_dir / entry['path']
  2. Popping the entry from _index.json
  3. Cleaning edge references from _edge_index.json

Important Note

Memory paths stored in the index are relative to memory_dir, not absolute paths. Don't prepend the base directory when the path is already relative.