audit
Surface stale or duplicated memories, isolated orphans, or archived items for review. Users confirm before any action.
Instructions
Inspect the health of knowledge in a domain across three modes.
mode=stale: Return memories that may be stale, contradicted, or duplicated. Present each result to the user and ask for individual confirmation before archiving anything. Never archive autonomously.
mode=orphans: Return live, non-transient memories with zero connections. Present findings and suggest either linking them with connect, or archiving with forget if no longer relevant.
mode=archived: List all archived memories. This is the right tool when search returns nothing but you expect content to exist. This tool only returns live nodes (for stale and orphans modes) or explicitly archived nodes (for archived mode).
Supply tags to scope to a workstream. Supply memory_id (mode=stale only) to scope to a memory's neighbourhood.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | Optional domain to scope the audit | |
| limit | No | Max candidates to return (default 10, applies to stale mode) | |
| memory_id | No | Anchor memory ID. Scopes stale candidates to the depth-2 BFS neighbourhood of this memory. Applies to mode=stale only; ignored for orphans and archived. | |
| mode | Yes | Required: stale (drift candidates), orphans (isolated memories), or archived (list archived memories) | |
| tags | No | Comma-separated tags. Only surfaces candidates carrying at least one of the supplied tags. OR semantics. Applies to all three modes. |