# Doctor findings

The `tkt doctor` findings by severity, each with its code and meaning ([Checking the store](/en/docs/guides/maintenance/doctor.md#maint-doctor)).

## Doctor findings

| code | severity | meaning | home |
|---|---|---|---|
| `STATE_FILE_NOT_IGNORED` | warning | A local state file in `.aitodo/` (index, leases, locks, decompositions, cache) that git does not ignore | [Where the store lives](/en/docs/concepts/store.md#start-store) |
| `STATE_FILE_TRACKED` | warning | A local state file git already tracks: `git rm --cached` it | [Where the store lives](/en/docs/concepts/store.md#start-store) |
| `STALE_CLAIM` | warning | A claim whose worktree is gone: `tkt ticket release --stale` | [Parallel worktrees](/en/docs/guides/team/worktrees.md#team-worktrees) |
| `STALE_LOCAL_STORE` | warning | A local store beside `store: server`, or the server says the store moved: a stale copy | [Moving a store](/en/docs/guides/maintenance/store-move.md#maint-store-move) |
| `CONFIG_DIR_NOT_IGNORED` | warning | A credentials directory inside a repo that git does not ignore | [Server pin and credentials](/en/docs/guides/team/credentials.md#team-pin) |
| `STORE_QUOTA_NEAR` | warning | A server store uses 80 % or more of its disk quota; the hint says what counts | [A store on the server](/en/docs/guides/team/server-store.md#team-server-store) |
| `TOKEN_IN_STORE` | error | A token (`atk_…`) written into a store file | [Projects and tokens](/en/docs/guides/team/projects.md#team-projects) |
| `PLAN_METHOD_INVALID` | warning | A stored decomposition method that no longer passes the method checks | [Decomposition methods](/en/docs/guides/plan/methods.md#plan-methods) |
| `PLAN_METHOD_DEFAULT_MISSING` | warning | `planMethod` names a stored method that does not exist | [Decomposition methods](/en/docs/guides/plan/methods.md#plan-methods) |
| `STALE_HIGH_VALUE` | warning | An `in_progress` ticket of value 5 or more with no change for `staleHighValueDays` | [Value and release reports, release notes](/en/docs/guides/plan/reports.md#plan-reports) |
| `LOW_VALUE_CLOSE_CANDIDATE` | info | An open low-value ticket older than `lowValueCloseDays` that nothing waits on: close it? | [Value and release reports, release notes](/en/docs/guides/plan/reports.md#plan-reports) |
| `MISSING_DESCRIPTION` | info | A ticket, decision, milestone, group, doc or gotcha with no `description`: its references show only the title; a new one needs it |  |
| `EMPTY_DESCRIPTION` | info | A ticket whose body `## Description` is empty: a new one needs it; the hint is the `tkt ticket section set` that fills it |  |
| `MISSING_ACCEPTANCE_CRITERIA` | info | A feature or bug without a filled acceptance criterion: a new one needs one; the hint is the `tkt ticket ac add` | [Hints and lint](/en/docs/concepts/guard.md#context-guard) |
| `DANGLING_MENTION` | warning | A `doc://` / `gotcha://` mention names nothing (info on a closed ticket) | [Mentions in the body](/en/docs/concepts/refs.md#context-mentions) |
| `DANGLING_DECISION` | warning | A decision mention names no decision (info on a closed ticket) | [Decisions](/en/docs/concepts/decisions.md#context-decisions) |
| `GROUP_SECTION_TOO_LONG` | warning | A group's `## Overview`, `## Conventions`, `## Gotchas` or `## Verification` is longer than the section cap, so every bundle cuts it: shorten or split it |  |
| `UNTRACKED_RELEASE` | info | Ticket `release` values no release carries, off the timeline; never raises the exit code | [Release timeline, done vs shipped](/en/docs/guides/plan/releases.md#plan-release-timeline) |
| `STALE_BY_DECISION` | error | An open item builds on a decision that changed since the item's stamp of it (`tkt review`) | [Hints and lint](/en/docs/concepts/guard.md#context-guard) |
| `DECISION_RELATION_MISMATCH` | error | Two decisions disagree on their relation (`supersededBy` without `supersedes` back) | [Hints and lint](/en/docs/concepts/guard.md#context-guard) |
| `ACTIVE_BUT_PROPOSED` | error | An `active` decision whose text says it is proposed or pending | [Hints and lint](/en/docs/concepts/guard.md#context-guard) |
| `UNRECORDED_REPLACEMENT` | error | A decision's text names another decision as replaced, with no relationship between them | [Hints and lint](/en/docs/concepts/guard.md#context-guard) |
| `LAGGING_PARENT` | info | An unchecked milestone exit criterion whose tickets are all done | [Hints and lint](/en/docs/concepts/guard.md#context-guard) |
| `LIFECYCLE` | warning | A container whose status lags its members | [Completeness: the checklist](/en/docs/concepts/reviews.md#context-completeness) |
| `AFFECTS_DROPPED` | info | A superseding or amending decision leaves out `affects` targets of the old one, neither kept nor recorded as dropped | [Decisions](/en/docs/concepts/decisions.md#context-decisions) |
| `DANGLING_RELATIONSHIP` | warning | A relationship, milestone or release member, origin or `until` names a missing ticket |  |
| `DANGLING_REFERENCE` | warning | A ticket's or group's context ref or required reading names a missing doc, gotcha or decision |  |
| `MISSING_GROUP` | warning | A ticket or an `appliesTo` names a group that does not exist |  |
| `RELATIONSHIP_CYCLE` | error | A cycle of `blockedBy`, `parent` or `supersededBy` (a hand edit, a merge, an import) | [Hints and lint](/en/docs/concepts/guard.md#context-guard) |
| `STALE_DOC` | warning | An open item builds on a doc or gotcha that changed since the item's stamp of it (`tkt review`) | [Refs and anchors](/en/docs/concepts/refs.md#context-refs) |
| `EDGE_COVERAGE` | info | One line per edge declared for coverage that some open items state nowhere (`coverage: decisions without affects 31 of 353 (9 %)`) | [\`tkt doctor\`](/en/docs/guides/maintenance/doctor.md#maint-doctor) |
| `UNANCHORED` | info | Docs and gotchas that build on no decision (critical gotchas counted separately): `tkt review --unanchored` | [\`tkt doctor\`](/en/docs/guides/maintenance/doctor.md#maint-doctor) |
| `ORPHANED` | info | Docs, gotchas and groups nothing refers to: `tkt review --unanchored` | [\`tkt doctor\`](/en/docs/guides/maintenance/doctor.md#maint-doctor) |
| `COMPLETENESS_WEIGHTS_INVALID` | warning | `completenessWeights` does not sum to 100 | [Completeness: the checklist](/en/docs/concepts/reviews.md#context-completeness) |
| `UNTOUCHED_UNANCHORED` | info | Unanchored items untouched for `untouchedDays` or more: `tkt review --unanchored --older <N>d` | [\`tkt doctor\`](/en/docs/guides/maintenance/doctor.md#maint-doctor) |
| `STORE_OUTDATED` | warning | The store's data is older than this `tkt` writes (`schemaVersion`): `tkt reorg` proposes the migration and raises it | [Store migration](/en/docs/guides/maintenance/reorg.md#maint-reorg) |
| `ID_RANGE_TOO_WIDE` | warning | An id range (`D18-D21`) holds more ids than `idRangeMax`, so only its two ends are read: split it or raise the setting | [Decisions](/en/docs/concepts/decisions.md#context-decisions) |
| `CONTEXTREF_LINERANGE_LEGACY` | warning | A ticket's repo ref stores `lineRange` as `N-M`, not `L<a>-L<b>`: the hint is the `tkt ticket ref add` that fixes it | [Refs and anchors](/en/docs/concepts/refs.md#context-refs) |
| `ERR_FILE_PARSE` | error | A store file cannot be parsed (info: a broken frontmatter block read as body) | [\`tkt doctor\`](/en/docs/guides/maintenance/doctor.md#maint-doctor) |
| `ERR_FILE_CONFLICT` | error | A store file holds git conflict markers | [After a merge](/en/docs/guides/team/git.md#maint-merge-damage) |
| `ERR_ID_DUPLICATE` | error | Two files share one id or ULID | [After a merge](/en/docs/guides/team/git.md#maint-merge-damage) |
| `ERR_ID_MISMATCH` | error | A file's `id` is not its file name | [After a merge](/en/docs/guides/team/git.md#maint-merge-damage) |
| `ERR_GROUP_PREFIX_DUPLICATE` | error | Two groups share one prefix |  |
| `ERR_REL_PARENT_INVALID` | error | A parent that breaks the two-level hierarchy |  |
| `ERR_SCHEMA_INVALID_ENUM` | warning | A value outside its vocabulary |  |
| `ERR_SCHEMA_INVALID_VALUE` | error | A stored value the write path would reject (value, rationale, estimate) |  |
| `ERR_AFFECTS_INVALID` | warning | A decision's `affects` target is malformed, of an unknown kind, or names nothing; reported, never rewritten | [Decisions](/en/docs/concepts/decisions.md#context-decisions) |
| `ERR_APPLIES_TO_INVALID` | warning | A doc or gotcha `appliesTo` path is not a usable repo glob | [Docs and gotchas](/en/docs/concepts/docs-gotchas.md#context-docs) |
| `ERR_ESTIMATE_ROLLUP_MISMATCH` | warning | A parent's own estimate differs from its children's points |  |
| `DECISION_VIEW` | warning | A doc `tkt decision import` generated from the decisions, which tkt no longer renders: `tkt reorg` deletes it | [Decisions](/en/docs/concepts/decisions.md#context-decisions) |
| `ERR_TIMESTAMP_INVALID` | warning | A timestamp that is not valid |  |
| `ERR_INDEX_DRIFT` | info | An index row disagrees with its file: `tkt doctor --fix-index` | [The index](/en/docs/guides/maintenance/doctor.md#maint-index) |
| `ERR_INDEX_CORRUPT` | warning | `index.db` cannot be opened or queried | [The index](/en/docs/guides/maintenance/doctor.md#maint-index) |
| `ERR_INDEX_REBUILD` | error | The index rebuild failed | [The index](/en/docs/guides/maintenance/doctor.md#maint-index) |
| `ERR_INTERNAL` | error | The doctor hit an unexpected failure on a file; report it |  |
