Migration details
v5 scopes forgetting to one namespace and returns the same result envelope for exact and semantic requests.Choose exact or semantic forgetting
Forget exact IDs
matches and missing or ineligible IDs in errors, so HTTP success does not imply every requested ID changed.
Preview a semantic request
dryRun: true performs selection without changing memory state. dryRun: false forgets the memories selected when that request executes.
Avoid selection drift
dryRun: false can select a different set if memories changed after preview.
Read the normalized response
count always equals matches.length. Both dry-run and applied semantic requests use this shape; the payload alone does not replace your record of which mode was sent.
With the SDK
dryRun is required on forgetMatching. Both calls return { count, matches, errors }.
Removed memory-write routes
Direct v4 memory creation and version updates (client.memories.add, client.memories.updateMemory) have no v5 replacement. Ingest source material through document routes and update the canonical document when facts change.
Verification
- Exercise all-success, partial-success, duplicate, unknown, and cross-namespace ID sets.
- Confirm dry runs leave matched memories recallable.
- Apply reviewed IDs exactly and confirm normal recall excludes them.
- Persist the request mode alongside audit logs for semantic operations.