aitododocs Coming soonAutonomous delivery

Error codes

Markdown

Every error comes in one envelope; branch on the stable status slug, never on the message.

Referenceabout 14 min
On this page

On the CLI an ERR_* error exits 1 (tkt ticket lint: 4) and prints Error [ERR_…] on stderr.

JSON
{"error": {"code": 2001, "status": "ERR_NOT_FOUND", "http_status": 404,
           "message": "…", "target": "tickets.PAY-999", "details": [],
           "request_id": "req_…"}}

Error codes#

slugcodeHTTPmeaninghome
ERR_AUTH_REQUIRED1001401No token, or one the server does not knowProjects and tokens
ERR_AUTH_FORBIDDEN1002403The token is expired, revoked, of another project, or its role is too lowProjects and tokens
ERR_NOT_FOUND2001404No such object (ticket, group, doc, project, route …)
ERR_METHOD_NOT_ALLOWED2002405The route does not take this HTTP method
ERR_COORDINATOR_UNREACHABLE2003503The server in .aitodo/server.yaml cannot be reached, or redirected off its own origin (client side); tkt --offline works locallyIds and claims from the server
ERR_PAYLOAD_TOO_LARGE2004413A request body over the endpoint's limit (e.g. llm:complete)
ERR_BAD_REQUEST2005400A forwarded call with an option the server sets itself, or a file path outside the call's temp dirA store on the server
ERR_TIMEOUT2006504A forwarded call ran longer than the server allowsA store on the server
ERR_SCHEMA_MISSING_FIELD3101422A required field is missing
ERR_SCHEMA_INVALID_ENUM3102422A value is not in its vocabulary (status, type, priority, …)
ERR_ID_INVALID3103422An id does not have the expected form
ERR_ID_DUPLICATE3104409Two objects share one id or ULIDAfter a merge
ERR_TIMESTAMP_INVALID3105422A timestamp is not ISO 8601
ERR_BODY_SECTION_MISSING3106422A named body section does not exist
ERR_CONTEXTREF_LOCATION_MISMATCH3107422A ref's location does not fit its URI
ERR_CONTEXTREF_LINERANGE_INVALID3108422A ref's lineRange is malformed
ERR_REL_PARENT_INVALID3109422A parent that breaks the two-level hierarchy (an epic under an epic, a story as parent)
ERR_GROUP_UNKNOWN3110422The named group does not exist
ERR_GROUP_PREFIX_DUPLICATE3111409Another group already has this prefix
ERR_GROUP_PREFIX_LOCKED3112409The prefix cannot change once tickets carry it
ERR_FIELD_READ_ONLY3113422The field or config key is read-onlyWorkspace config
ERR_AC_SELECTOR_INVALID3114422An acceptance-criteria selector (number, range, text) matches nothing or is malformedWriting back while working
ERR_BODY_SECTION_AMBIGUOUS3115422A section name matches more than one headingWriting back while working
ERR_TEXT_NO_MATCH3116422The --old text is not in the targetDocs and gotchas
ERR_TEXT_AMBIGUOUS3117422The --old text occurs more than onceDocs and gotchas
ERR_GROUP_PRIMARY_LOCKED3118409The primary group changes only through tkt ticket moveChanging a ticket
ERR_DEFER_REASON_INVALID3119422A status reason on an update that does not defer or cancelChanging a ticket
ERR_SCHEMA_DUPLICATE3120422A list repeats an entry that must be unique (e.g. milestone members)
ERR_TABLE_INVALID3121422doc append: no such table, or a row's cell count differsDocs and gotchas
ERR_CONFIG_KEY_UNKNOWN3122422Not a known config.yaml keyWorkspace config
ERR_SCHEMA_INVALID_VALUE3123422A value out of range (a negative estimate, a multi-line valueRationale, …)
ERR_FILE_CONFLICT3124422A store file holds git conflict markersAfter a merge
ERR_ID_MISMATCH3125422A file's frontmatter id is not its file nameAfter a merge
ERR_CONFIRM_REQUIRED3126422A deletion without a matching --confirm and no terminal to ask on; nothing deletedDeleting a project
ERR_RATE_LIMITED3127429More calls than the server allows in its window: forwarded calls, reports, registrationsA store on the server
ERR_STORE_BUSY3128409The project's store stayed locked past the waitA store on the server
ERR_STORE_MOVING3129409The store is being moved between repo and server; frozen until it landsMoving a store
ERR_STORE_LOCATION3130409The store is not where the call needs it (repo or server)Moving a store
ERR_COMMAND_NOT_ALLOWED3131403A local command sent to a server store's /cliA store on the server
ERR_DECOMPOSITION_METHOD_INVALID3132422A decomposition method folder tkt refuses to readDecomposition methods
ERR_DECOMPOSITION_SUBMIT_INVALID3133422A decomposition step's submission fails validation; a fix step followsAI decomposition
ERR_REF_NOT_INHERITED3134422The ticket does not inherit the ref it excludes (details lists what it does)Excluding an inherited ref
ERR_REF_OWN3135422The ticket names the ref it excludes itself: tkt ticket ref remove it, or edit the bodyExcluding an inherited ref
ERR_EXCLUDE_NOTE_REQUIRED3136422Excluding a floor item (required reading, critical gotcha, changer) needs --noteExcluding an inherited ref
ERR_PATH_OUTSIDE_STORE3137422A store path leads outside the store (.., an absolute path, a symlink out); nothing read or writtenA store on the server
ERR_RUN_MEMORY_LIMIT3139507A forwarded call needed more memory than the server allows a run; nothing changedA store on the server
ERR_SERVER_DISK_FULL3140507The server is low on disk space: writes are paused for every project, reads go on; not caused by the caller, the operator is notifiedA store on the server
ERR_CONFINEMENT_UNAVAILABLE3142503The server cannot confine a forwarded run on this host and runs none unconfined; nothing ranA store on the server
ERR_SUPERSEDED_BY_INVALID3143422A successor on a ticket that stays open, or the ticket itself as its own successorChanging a ticket
ERR_AFFECTS_INVALID3144422An affects target that is malformed, of an unknown kind, or names nothingDecisions
ERR_STATUS_TRANSITION3201409The status change is not allowed from the current statusChanging a ticket
ERR_REL_CYCLE3202409The relationship would create a cycle
ERR_GROUP_NOT_EMPTY3203409The group still has members
ERR_TICKET_MOVE_REFUSED3204409A closed ticket, or the group it is already inChanging a ticket
ERR_REPO_ANCHOR_MISSING3205409→ in_progress without an effective repoAnchor.repoHints and lint
ERR_REORG_CONTEXT_LOSS3206409A reorg plan would lose a ticket's named or critical contextStore migration
ERR_ALREADY_CLAIMED3207409Claimed by someone else (another worktree or token)
ERR_SPLIT_REFUSED3209409resolve-conflict: no markers, two edits of one ticket, or a decision without --splitAfter a merge
ERR_NOT_STARTABLE3210409The ticket cannot be claimed: not todo, an open blocker, a block hint, or assignedClaiming and giving back
ERR_LAST_ADMIN3211409The project would lose its last valid admin tokenProjects and tokens
ERR_WORKTREE_REFUSED3212409tkt worktree done --remove: changes in it, or the main worktreeParallel worktrees
ERR_PLAN_GATE_FAILED3213409The strict plan gate refuses a plan whose tickets fail its rulesThe plan gate
ERR_DECOMPOSITION_STALE3214409A source doc or the method changed since plan begin; only discard worksAI decomposition
ERR_DECOMPOSITION_STEP_MISMATCH3216409Not the current step, or a command the decomposition's state does not takeAI decomposition
ERR_DECOMPOSITION_APPROVAL3217409apply without the preview's digest or the accepted assumptions; begin without --replanAI decomposition
ERR_CONTEXT_GUARD_REFUSED3218409A ticket write would cut its own content (new or bigger); nothing written. --over-budget writes anywayThe context guard on writes
ERR_RELEASE_CONFLICT3219409A milestone, ticket or version another release already holds; the message names it and the fixPlanning releases
ERR_RELEASE_OPEN3220409tkt release ship: open tickets in the release, each with its path; nothing written. --move-open-to or --drop-open ships the restShipping a release
ERR_RELEASE_PLANNED3221409A hand-set ticket release on a ticket an unshipped release holds; tkt release ship writes itShipping a release
ERR_RELEASE_NOTES_EXIST3227409tkt release notes: the release already has notes (maybe hand edits); --yes replaces themValue and release reports, release notes
ERR_REL_DANGLING3301422A relationship names a ticket that does not exist
ERR_REL_INCONSISTENT3302422The two sides of a relationship disagree
ERR_AC_INCOMPLETE3303422Unchecked acceptance criteria where the check needs them done
ERR_CONTEXTREF_UNRESOLVABLE3304422A context ref cannot be resolved
ERR_APPLIES_TO_INVALID3305422A doc or gotcha appliesTo path is not a usable repo glob (doctor only)Docs and gotchas
ERR_ESTIMATE_ROLLUP_MISMATCH3306422A parent's own estimate differs from its children's sum (doctor only)
ERR_TICKET_CONTENT_MISSING3310422A new ticket without a filled body ## Description, or a feature or bug without a filled acceptance criterion; nothing writtenChanging a ticket
ERR_TICKET_CONTENT_REMOVED3311409An update would empty the ticket's ## Description or remove a feature's or bug's last acceptance criterion; nothing writtenChanging a ticket
ERR_AI_CONFIG_INVALID3312422An AI layer's setting (provider, model) is not one it takes, in a flag, env var or config fileAI layers: where the model runs
ERR_AI_SECRET_IN_CONFIG3313422A key, token or password in an AI setting or config file; secrets live in env vars or the OS keychainAI layers: where the model runs
ERR_AI_ENDPOINT_INSECURE3314422An AI endpoint URL is plain http to another host; https is required outside this machineAI layers: where the model runs
ERR_PLAN_IN_USE3315409An AI plan that a project or the default still uses cannot be deletedAI plans and prices
ERR_STORAGE_READ4001500A store file cannot be read
ERR_STORAGE_WRITE4002500A store file cannot be written
ERR_STORAGE_DELETE4003500A store file cannot be deleted
ERR_INDEX_REBUILD4004500The index cannot be rebuiltThe index
ERR_FILE_PARSE4005422A store file cannot be parsed; fix the file`tkt doctor`
ERR_INDEX_DRIFT4006422An index row disagrees with its file (doctor only)The index
ERR_INDEX_CORRUPT4007422index.db cannot be opened or queried (doctor only)The index
ERR_EXPORT_TARGET4008422tkt export: the target is inside the store, or a non-empty dir that is no earlier exportExport to OKF
ERR_GIT_FAILED4009500A git operation failed; carries git's stderrParallel worktrees
ERR_PORT_IN_USE4010422tkt ui cannot listen on that address and port (in use, another process answers on it, or not this machine's); --port 0 picks a free oneRunning tkt ui
ERR_UI_START4011422tkt ui --detach: the background UI ended or did not start in time; the message ends with its logRunning tkt ui
ERR_DB_BUSY4012503Server busy: another request holds the server's database past the wait; nothing was written, retry (the CLI retries reads, ids and claims by itself)Ids and claims from the server
ERR_INTERNAL5001500An unexpected failure: report it with tkt feedback bug
ERR_LLM_PROVIDER5002422The LLM provider (a local command or the server) failedTeam AI: the server LLM
ERR_LLM_QUOTA5003429The project's server AI budget (its plan's daily or monthly credits) is used up or not grantedTeam AI: the server LLM
ERR_LLM_UPSTREAM5004502The server LLM's upstream API failedTeam AI: the server LLM
ERR_LLM_NOT_CONFIGURED5005503The server has no LLM key or no price for the model, or the project has not enabled itTeam AI: the server LLM
ERR_FEATURE_POSTPONED5006501A feature that is built but switched off for now (the project admin's AI caps)AI plans and prices
ERR_EMBED_PROVIDER5010422The embedding provider (the local model or the tkt server) failed; the search went on without itAI layers: where the model runs
Generated from the registry: src/aitodo/api/selfdoc_entries/ref.py · ref.errorsv0.1.298