# Agent Memory conformance tests

These tests turn the v1 memory-store rules in `NLSPEC.md` into runnable acceptance checks.

Run:

```sh
npm test
```

The suite currently covers:

- topic filename normalization
- Canonical Content Hash input and digest stability
- Topic File parsing for valid, legacy, stale-hash, and malformed Memory Blocks
- `/memory reindex` Retrieval Map golden output
- `/memory forget` id validation, expected-hash protection, and exact block removal

Fixtures use `tests/fixtures/*/memory` instead of a literal `.pi/memory` path so the extension's safety hooks do not block test fixture writes.
