diff --git a/graph/procedures/cognitive-memory-has-no-test-suite-use-inline-smoke-tests-21be13.md b/graph/procedures/cognitive-memory-has-no-test-suite-use-inline-smoke-tests-21be13.md new file mode 100644 index 00000000000..1daa15d30ef --- /dev/null +++ b/graph/procedures/cognitive-memory-has-no-test-suite-use-inline-smoke-tests-21be13.md @@ -0,0 +1,33 @@ +--- +id: 21be13ae-c01b-4bf1-917a-9e1ef18312a8 +type: procedure +title: "Cognitive-memory has no test suite — use inline smoke tests" +tags: [cognitive-memory, testing, workflow, smoke-tests, development] +importance: 0.5 +confidence: 0.8 +created: "2026-03-01T04:12:49.340723+00:00" +updated: "2026-03-01T04:12:49.340723+00:00" +--- + +# 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.