Run Diagnostics
run_diagnosticsDetect and fix graph inconsistencies, verify storage and audit integrity, and reclaim SQLite space to keep AI workflow state memory reliable.
Instructions
Run graph sanity checks, health diagnostics, reference validation, audit chain verification, and storage maintenance. Supported actions: validate (check cycles, orphans, dangling edges), doctor (database WAL mode, schema version, storage health), check_refs (validate file paths and AST symbols with auto-heal), audit_chain (verify SHA-256 event hash integrity), compact (reclaim SQLite storage), archive (archive old completed tasks), prune_events (permanently prune events - admin mode required), version (retrieve package version info), dedupe (detect and merge duplicate nodes).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | For dedupe action: whether to apply merging (default: false for dry-run). | |
| action | No | The diagnostic or maintenance action to execute. | |
| checks | No | Optional subset of validation checks. | |
| dry_run | No | Simulate event pruning without deleting. | |
| project | No | Target project name or slug. | |
| auto_heal | No | Automatically fix broken file references on check_refs. | |
| older_than | No | Age duration threshold for prune_events (e.g. 90d). | |
| preserve_types | No | Event types to preserve from pruning. | |
| older_than_days | No | Age threshold in days for archive (default: 30). | |
| prune_orphaned_edges | No | Whether to prune dangling edges during compact. |