From d4de1057244be44dba28de9e81e9c190eb4f28ef Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sat, 28 Feb 2026 22:12:49 -0600 Subject: [PATCH] =?UTF-8?q?store:=20Cognitive-memory=20has=20no=20test=20s?= =?UTF-8?q?uite=20=E2=80=94=20use=20inline=20smoke=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...est-suite-use-inline-smoke-tests-21be13.md | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 graph/procedures/cognitive-memory-has-no-test-suite-use-inline-smoke-tests-21be13.md 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.