The store
The first match wins: --workspace-dir > AITODO_WORKSPACE_DIR > the nearest .aitodo.yaml (cwd, then parents) > ~/.aitodo/<name>.
Unexpected store? Run tkt where: an exported AITODO_WORKSPACE_DIR beats .aitodo.yaml.
--workspace-dirandAITODO_WORKSPACE_DIRare the store root itself: no name is appended.store: serverin.aitodo.yaml: the store lives on the team server, and the repo holds only that file (A store on the server).- Commit
.aitodo.yamland the store..aitodo/.gitignorekeeps the local state out;tkt doctorwarnsSTATE_FILE_NOT_IGNOREDorSTATE_FILE_TRACKEDwhen git sees it anyway.
Details4 items
- A stale
.envrcoften exportsAITODO_WORKSPACE_DIR. The name counts only under the~/.aitododefault:--workspace/-w>AITODO_WORKSPACE>.aitodo.yamlworkspace>default. The REST API resolves the same way from the server's cwd. .aitodo.yamlkeys:workspaceDir(relative to the file's directory;~expanded),workspace(alone it selects~/.aitodo/<workspace>),configDir(where the credentials file lives, Server pin and credentials), orstore: serverwithserverandproject. No other key. The nearest file wins; files are never merged. A broken file (bad YAML, unknown key) isERR_FILE_PARSEnaming the file, never silently skipped.- Local state:
.aitodo/.gitignorekeeps outindex.db,leases.json,*.lock(the locks besidecounters.jsonandleases.json,claim.lock),decompositions/andcache/. A store made by an oldertktgets the missing lines on its next write; its own lines stay.STATE_FILE_NOT_IGNORED: git does not ignore such a file;STATE_FILE_TRACKED: git already tracks one (hint:git -C <repo> rm --cached <path>, a directory:git rm -r --cached, plus the missing line). Never commit a.lockfile. Outside git, and for astore: serverstore, this is not checked. - Layout:
.aitodo/(config.yaml,counters.json,.gitignore, the derivedindex.db, thetemplates/overlay),tickets/,groups/<id>/_group.md,docs/,gotchas/,decisions/,milestones/.