Audit a local memory and session inventory against its retention and access policy, produce a deletion plan, and verify the deletion evidence supplied for records the inventory says are already gone.
This walkthrough uses the tool's public README and checked-in example files. Run the command from a repository checkout with Node.js 22+.
Run the checked-in example
npm run example # exit 0
node bin/memory-retention-auditor.mjs --root examples/held --today 2026-09-14 # exit 0
node bin/memory-retention-auditor.mjs --root examples/unevidenced --today 2026-09-14 # exit 1
node bin/memory-retention-auditor.mjs --root examples/incomplete --today 2026-09-14 # exit 2Read the result
Every record gets a plan row, and the rows with disposition delete — and only those — become the deletion plan.
Scope
Every limit is enforced and named when it is reached, and exceeding one makes the run incomplete rather than truncating silently — the plan that came out of a partial walk would be a list of things to destroy chosen by where the walk stopped. The defaults and their caps are in docs/retention-rules.md.