mnemostack_invalidate
Mark outdated memories as stale by ID without deleting them, so they stop appearing in default recall but remain retrievable when needed. Ideal for correcting incorrect or expired facts.
Instructions
Mark memories stale by id, non-destructively.
A write tool (parallel to mnemostack_graph_add_triple). Sets invalidated_at (and optionally valid_until) on each point's payload without deleting or re-embedding it; invalidated facts drop out of default recall but stay reachable via include_invalidated / as_of. Points that do not exist are skipped. Pass index_root in multi-root collections to avoid marking another root's chunks stale. Returns ok, requested, and invalidated (the number of points actually updated).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Point id(s) to mark stale (string or integer) | |
| index_root | No | Owner guard: when set, points owned by a different index_root are skipped, so one root cannot invalidate another's chunks in a shared collection. | |
| valid_until | No | World-time the fact stopped being true (ISO-8601); optional, separate from the system-time invalidation stamp. | |
| invalidated_at | No | System-time stamp (ISO-8601); default: now (UTC) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||