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

50 lines
1.5 KiB
Markdown

---
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-02T00:38:40.739932+00:00"
relations:
- target: ee85bf89-93f0-48e4-b911-7ddc18a735b5
type: RELATED_TO
direction: outgoing
strength: 0.7
edge_id: d48a8a66-5b89-435c-9e8b-1f41a10b8b13
- target: 9ea72015-0b85-4a42-9ae1-144866f8d86f
type: RELATED_TO
direction: outgoing
strength: 0.6
edge_id: 776d09a5-d1b3-4fe3-ac8a-5b41e40460d1
- target: 1177d1f5-6df7-42ae-beef-bbd6b22d2fae
type: RELATED_TO
direction: incoming
strength: 0.5
edge_id: 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.