mem_doctor
Run read-only SQLite, FTS, foreign-key, and mutation-journal diagnostics on the Leteo memory database to surface integrity issues before they impair AI agent recall.
Instructions
Run read-only SQLite, FTS, foreign-key, and mutation-journal diagnostics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| check | No | Optional upstream diagnostic check code; the local report includes all checks. | |
| project | No | Project context to report; diagnostics remain store-wide. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| check | No | ||
| checks | No | ||
| issues | No | ||
| healthy | No | ||
| project | No | ||
| prompts | No | ||
| journal_mode | No | ||
| observations | No | ||
| project_stats | No | Present only when a project was explicitly requested and matched. | |
| prompt_fts_ok | No | ||
| schema_version | No | What the store is stamped at, and what this build reads. Carried so an agent can say which of the two is behind when a binary refuses a store. | |
| busy_timeout_ms | No | ||
| integrity_check | No | ||
| prompt_fts_rows | No | ||
| schema_supported | No | ||
| pending_mutations | No | ||
| observation_fts_ok | No | ||
| observation_fts_rows | No | ||
| foreign_key_violations | No | The violations, as examples rather than as an inventory. | |
| foreign_key_violations_omitted | No | How many violations there were beyond the ones listed. |