A store on the server
A project's store can live on the server instead of the repo; the repo then holds only .aitodo.yaml (store: server, server, project).
On this page
$ tkt store init --server https://tkt.ideathon.me --register --name Payments
- Every non-
localcommand goes unchanged toPOST /v1/projects/{p}/cli: the same output and exit codes; your token (read; write for writes) goes with every call. - Stage 2 stays local: your
tktresolves thelocation: reporefs from your worktree; the server never sees it. - A local command on
/cli: 403ERR_COMMAND_NOT_ALLOWED; in astore: serverrepo it needs--workspace-dir(elseERR_STORE_LOCATION). A store copy beside the pointer stops all forwarding (ERR_STORE_LOCATION, "stale local copy"): remove it.
Details10 items
- Creating:
tkt store init --server <url> --project <id>(admin): an empty git-backed store in$AITODO_SERVER_DATA/stores/<id>/(sharedCounter: false) plus./.aitodo.yaml.--register --name N --as NAMEregisters first (invite:AITODO_INVITEor a hidden prompt) and saves the admin token (--json:registered: {name, tokenName, credentials}; a failed store prints the id and the retry command);--operator: no invite.--projectand--registerexclude each other (exit 2). A local store (pinned or one level below: a move, Moving a store) or an existing server store:ERR_STORE_LOCATION. - The pointer takes no
workspaceDir(elseERR_FILE_PARSE);--workspace-dir/AITODO_WORKSPACE_DIRoverride it.tkt wherenames server and project. - Forwarding:
{argv, stdin?, files?: {name: base64}, columns?}in,{exit_code, stdout, stderr, files, store_version, stage1?}out;next --claim,reorg --interactiveare writes. An HTTP error printsError [ERR_…], exit 1.columns: terminal width (default 100).tkt ticket get,tkt next --claim --json,tkt report contextreturn Stage-1 JSON (AITODO_STAGE1_OUT), resolved via--worktree-dir,AITODO_WORKTREE_DIRor the cwd;--raw,--brief,--summaryrender on the server;tkt reorg,reorg applyrun there without Stage 2. - Files:
--file,--new-file,tkt ticket import FILE,tkt reorg apply PLANupload (-: stdin; outside the cwd: renamed_in/…);--out,tkt reorg --plan FILEcome back. 1 MB per file, 4 MB per call, checked before decoding; the request body at most 15424 KB (followsAITODO_CLI_CALL_MAX_BYTES), read only after the token check (else 401/403), measured as it arrives (413ERR_PAYLOAD_TOO_LARGE). - Refused in a forwarded argv (400
ERR_BAD_REQUEST):--workspace-dir,--workspace,--worktree-dir,--llm,--llm-cmd,--llm-provider(--no-llmis fine); a path outside the call's dir (absolute,..,~) in any spelling of its option (-oPATH,--out=PATH, short clusters), also inreport context --compare; an argv the server would read otherwise thantkt. - Isolation: an id (doc, gotcha, group, ticket, milestone, decision) is one name in the project's own store: one with
/,\or..isERR_ID_INVALID. A store file that leads out (a symlink) is left out of lists; reading or writing it isERR_PATH_OUTSIDE_STORE, locally too. - On the server
tktruns in a temp dir, allowlisted env (no secret or token),AITODO_SERVER_RUN=1,AITODO_SERVER_ACTOR=<token name>. A successful changing write is one commit (author<token name> via <project>, messagetkt <argv>without--body,--fileand other free text); anything else is rolled back;store_versionis HEAD. With a stale copytkt doctorprints onlySTALE_LOCAL_STORE(exit 2). - Confinement (Linux, Landlock): a run (also a
store:import'stkt doctor) writes only its store and temp dir and reads only those, Python and system files; never another store orserver.db; from ABI 4 TCP only connects to the server's port, no bind; up to ABI 3 the network stays open. On Linux without Landlock no run starts (503ERR_CONFINEMENT_UNAVAILABLE);AITODO_CLI_CONFINE=offswitches it off; macOS: none. The startup log names it. - Limits (
AITODO_CLI_*,AITODO_STORE_MAX_BYTES, checked at startup): 30 s per call (504ERR_TIMEOUT); one call per project, 10 s wait (409ERR_STORE_BUSY: retry); 4 runs at once; 120 calls per minute per token (429ERR_RATE_LIMITED); 100 MB of disk per project, git history and archives included (413ERR_PAYLOAD_TOO_LARGE, rolled back;tkt doctorshows the parts,STORE_QUOTA_NEARfrom 80 %); a server low on disk: 507ERR_SERVER_DISK_FULL, writes paused, the operator is notified; 1 MB output per stream (the rest dropped, the cut noted); 64 MB Stage-1 result per call (AITODO_CLI_STAGE1_MAX_BYTES; over it 413ERR_PAYLOAD_TOO_LARGE: narrow with--budgetor--group); 2048 MB memory per run (AITODO_CLI_MEMORY_MAX_BYTES, Linux only, set by the run itself; over it 507ERR_RUN_MEMORY_LIMIT, rolled back). - REST:
POST /v1/projects/{p}/store(admin, 201; again 409ERR_STORE_LOCATION),GET /v1/projects/{p}/store{location: repo|server|moving, storeVersion, movedAt}; store elsewhere: 409ERR_STORE_LOCATION, moving: 409ERR_STORE_MOVING.