# Atomic batches (/docs/agents/batches) `ticketd batch` applies a JSON array of operations as one unit. If any operation fails, the whole request is rolled back. ```sh ticketd batch plan.json ticketd batch - # read the array from stdin ``` ## Naming tickets for later operations A `create` can name its ticket. Later operations refer to it as `$name`: ```json title="plan.json" [ { "operation": "create", "name": "parent", "title": "Ship the feature" }, { "operation": "create", "name": "child", "title": "Implement it" }, { "operation": "change", "ticket": "$child", "change": { "parent": "$parent", "add_blockers": ["$parent"], "add_tags": ["feature"], "activities": ["Plan agreed"] } } ] ``` ## What a change can set | Field | Effect | | --------------------------------- | ------------------------------------- | | `title`, `body`, `status` | Replace the value. | | `parent`, `project_id`, `plan_id` | Set the link. Use `null` to clear it. | | `add_blockers`, `remove_blockers` | Change blocking dependencies. | | `add_tags`, `remove_tags` | Change tags. | | `activities` | Post updates. | | `editing_agent` | Attribute the change. | Omit a field to leave it unchanged. ## Results and failures The result is a JSON array of ticket snapshots, in operation order. A failure names the zero-based index of the operation that failed. ## Limits - 1 MiB per request - 100 operations - 1,000 individual edits - A 10-second limit, checked between operations # Bounded context (/docs/agents/bounded-context) ```sh ticketd context T-LG12 ``` With no flags, the result holds the ticket itself: its reference, title, description, status, availability and tags. Everything else is opt-in. ## Scopes | Flag | Adds | | ----------------- | --------------------------------------------------------------------------------------- | | `--project` | The linked project. | | `--plan` | The Plan the ticket belongs to. | | `--relationships` | Parent, subtickets, blockers, dependents, related tickets and duplicates. | | `--activities` | The authored updates. | | `--latest-update` | Only the most recent update. | | `--evidence` | Branches, commits, pull requests and verification results. | | `--backlinks` | Incoming references from other tickets and Documents. | | `--documents` | Documents attached explicitly, mentioned in the description, or mentioned in an update. | | `--conversation` | For a ticket from an external source, its comments and events. Read-only. | ```sh ticketd context T-LG12 --latest-update --evidence --documents ``` The result includes only the scopes you request. For a ticket without a Plan, `--plan` returns `"plan": null`. An empty list keeps its pagination fields. For example, `--activities` returns `"activities": {"items": [], "next_offset": null}` when the ticket has no updates. ## Limits - **Lists hold at most 20 items.** Each list has a `next_offset`. When it is not null, repeat the command with `--offset` set to that value. The offset applies to every list in the response. - **Text is capped.** Text values are objects with `text` and `truncated`. Descriptions and full Activity briefs in this view are limited to 4096 characters. The compact latest update shows up to 1024 characters. Short fields such as a title use a limit of 256. - **Each call reads one snapshot.** Later pages can reflect changes made in between. ```json { "ticket": { "reference": "T-LG12", "title": { "text": "Rate-limit failed login attempts", "truncated": false }, "status": "In review", "availability": null, "tags": { "items": [{ "text": "security", "truncated": false }], "next_offset": null } } } ``` > **Do not edit from the bounded description** > > The description in `context` may be truncated. To edit a ticket, read the full > content with `ticketd show T-LG12` first. ## Fetching the full thing The bounded result tells you what exists. Fetch full content only when you need it: | You need | Run | | --------------------------- | ------------------------------------------ | | The whole ticket | `ticketd show T-LG12` | | A page of the activity feed | `ticketd activity list T-LG12` | | One complete update | `ticketd activity show T-LG12 ACTIVITY_ID` | | A page of a Document | `ticketd document read DOCUMENT_ID` | | A page of evidence | `ticketd evidence list T-LG12` | Each Document in the `documents` scope carries a `fetch` field with the exact command to read it. `activity list` and `evidence list` return up to 50 entries by default. To read every entry, keep the same `--limit` and advance `--offset` by the number of entries returned. Stop when the page is empty. ## Errors A missing ticket, or a missing linked project or Plan, produces an error on stderr and a nonzero exit code. Nothing is printed on stdout. ## Finding tickets ```sh ticketd search "rate limit" ticketd list --status "In review" --latest-update ticketd backlinks T-LG12 ``` `search` matches a literal substring. One or two characters search ticket titles. Three or more characters also search descriptions and update briefs. ASCII letters match without regard to case. Results exclude the trash. # Connect an agent (/docs/agents/connect) ticketd does not replace your agent tools. Keep your editor, terminal or agent app; the agent takes part by running `ticketd`. ## 1. Make the CLI available The agent needs `ticketd` on its `PATH`, in the same environment and as the same operating-system user as the desktop app. Check from inside the agent's shell: ```sh ticketd --version ticketd workspace ``` `ticketd workspace` prints the workspace path, so you can confirm the agent and the app are looking at the same one. If the harness cannot find the executable, give it the absolute path. See [Install](/docs/install). ## 2. Set the project context A project is a repository with a stable identity. Register each checkout, and tickets created from inside it are linked to that project automatically, including from nested directories. ```sh ticketd project create web-app /path/to/web-app ticketd project register PROJECT_ID /path/to/another/checkout ``` - `--project PROJECT_ID` overrides the inferred project. - If a directory matches more than one project, the command fails. - From an unregistered directory, the new ticket is unlinked. The app shows this as "No project". ## 3. Give the agent the CLI guide From **Settings → Agent skills**, install the discovery skill for your harness. You can also install it from a terminal: ```sh ticketd skills install --harness claude-code,codex ``` Restart or reload the harness if needed. For a project-local installation, pass its skill directory, such as `.claude/skills/ticketd`. Other harnesses can read the bundled guide directly: ```sh ticketd skills get ``` Tell your agent which ticket to pick up and when you want a review. Give it the full reference from the workspace, such as `T-LG12`. The guide teaches the commands. You choose how they fit your project. ## Work with an agent inside ticketd In **Settings → Chat**, turn on **Show Chat**. This experimental feature uses the Claude Code or Codex installation and sign-in on your computer. Open **Chats → New Chat**, choose the harness and a folder to work in, and link the ticket or Document the agent needs. The agent can write its update and evidence back to the ticket through the same CLI. To get a notification when a ticket is ready for review, open **Automations → New Automation**. Choose **Status changed**, set the destination status to **In review**, and add a **Notify me** step that opens the ticket. Save and switch on the Automation on the computer that should run it. You can inspect its runs there. ## What the agent can rely on - **Most workspace commands return JSON.** Read the output of `ticketd document link TARGET` as a Markdown link. Help and `ticketd skills get` also print text. - **Check the exit status.** A nonzero status signals failure. Read stderr for the reason and keep any JSON report on stdout. For example, `inspect-backup` prints its inspection report when it finds damage that prevents a restore. - **Context is bounded.** `ticketd context` caps lists and long text, so a busy ticket cannot flood the conversation. See [Bounded context](/docs/agents/bounded-context). - **Retries are safe** when a request ID is supplied. See [Reporting progress](/docs/agents/reporting#safe-retries). ## Next - [Bounded context](/docs/agents/bounded-context) What an agent reads before it starts. - [Reporting progress](/docs/agents/reporting) Updates, evidence and safe retries. # Reporting progress (/docs/agents/reporting) ## When to post an update Post an authored Activity when the agent: - begins work, - reaches a meaningful result, - changes direction, - needs input, - pauses, or - hands off for review or completion. Keep the brief readable on its own. Posting an update does not change the ticket's status or readiness; change the status separately. ```sh ticketd activity add T-LG12 --agent coding-agent \ --brief "The limiter passes the boundary tests. Ready for review." ``` Read a longer brief from a file, or from stdin with `-`: ```sh ticketd activity add T-LG12 --file update.md --agent coding-agent printf '%s\n' 'Investigating the failure' | ticketd activity add T-LG12 --file - --agent coding-agent ``` > **The brief is Markdown** > > Write `\*` and `\_`, or wrap text in backticks, to keep a literal `*` or `_`. ## Attaching evidence Evidence points at the work: a branch, a worktree, a commit, a pull request, or a verification result. ```sh ticketd evidence add T-LG12 --kind branch --name branch \ --value feat/login-rate-limit --agent coding-agent ticketd evidence add T-LG12 --kind verification --name checks \ --value './scripts/check passed' --agent coding-agent ``` ## Safe retries An agent may not know whether a command succeeded, for example after a timeout. A request ID makes the retry safe: repeating the same ID with the same input returns the first result instead of writing again. ```sh ticketd activity add T-LG12 --agent coding-agent \ --brief "Investigating the failure" --request-id checkpoint-1 ``` `activity add`, `activity edit`, `document create` and `document change` accept `--request-id` directly. For other writes, send a JSON request through `ticketd write`: ```json title="report.json" { "operation": "ticket_change", "reference": "T-LG12", "change": { "status": "In progress", "activities": ["Investigating the failure"], "editing_agent": "coding-agent" } } ``` ```sh ticketd write report.json --request-id start-limiter ``` This applies the status change and the update together. Use the same ID with the identical request to retry, and a new ID for a new checkpoint. ## Reading the latest report ```sh ticketd context T-LG12 --latest-update ticketd list --latest-update ``` Briefs returned this way are limited to 1024 characters and carry a `truncated` flag. Fetch the complete brief with `ticketd activity show T-LG12 ACTIVITY_ID`. # Activity and evidence (/docs/concepts/activity-and-evidence) ## Activity An **Activity** is attached to exactly one ticket. There are two kinds: - An **authored Activity** is an update someone wrote. It has a short brief that reads on its own, and it can link to one supporting Document for the details. Authored activities can be edited and deleted. The desktop app calls them _updates_. - An **automatic event** records a structured change, such as a status change. Events cannot be edited or deleted individually. ```sh ticketd activity add T-LG12 --agent coding-agent \ --brief "The limiter passes the boundary tests. Ready for review." ticketd activity list T-LG12 ``` Posting an update does not change the ticket's status or its readiness. ### Details Keep the brief short and put the long form in the details. The details are saved as a new Document linked to the update: ```sh ticketd activity add T-LG12 --agent coding-agent \ --brief "Investigated the lockout reports." \ --details-file findings.md ``` ## Editing agent When a write names an agent with `--agent`, ticketd records it as the **editing agent** and shows it beside the change. > **Editing agent** > > The name records attribution supplied by the writer. A person or an agent can > leave it empty. ## Ticket history Ticket history is the automatic record of changes to a ticket's status, relationships, project or Plan, and trash state. ```sh ticketd history T-LG12 ``` ## Evidence **Implementation evidence** is named material that locates the work or records that it was verified. | Kind | Use it for | | -------------- | ---------------------------------- | | `branch` | The branch the work is on. | | `worktree` | The worktree path. | | `commit` | A commit. | | `pull-request` | A pull request URL. | | `verification` | The result of a check or test run. | ```sh ticketd evidence add T-LG12 --kind branch \ --name "Limiter branch" --value auth/login-limiter --agent coding-agent ticketd evidence add T-LG12 --kind verification \ --name "Limiter tests" --value "passed on CI" --agent coding-agent ticketd evidence list T-LG12 ``` ## Following tickets Follow a ticket in the desktop app to receive its status changes and authored updates in your Inbox. **Needs you** brings review requests to the top. Opening an entry reveals its ticket. ```sh ticketd inbox ``` A reminder brings a ticket back to your attention at a time you choose, whatever its status. The time must be RFC 3339 with an offset: ```sh ticketd reminder set T-LG12 2026-12-01T09:00:00+00:00 ``` # Documents and Plans (/docs/concepts/context) ## Documents A **Document** is reusable context: a thought, a draft, a spec, or supporting detail. It has a stable identity, an optional title and Markdown content. One Document can be linked from many tickets, Plans and other Documents without being copied. ```sh ticketd document create --title "Login hardening spec" --body-file spec.md ticketd document show DOCUMENT_ID ticketd document search "rate limit" ``` ### Attaching a Document to a ticket A ticket's Documents are the ones its description mentions, plus the ones attached explicitly: ```sh ticketd document link-ticket DOCUMENT_ID T-LG12 ticketd document unlink-ticket DOCUMENT_ID T-LG12 ``` Detaching removes only the explicit attachment. It never edits the description. To mention a Document inside a description, paste the link text that this prints: ```sh ticketd document link DOCUMENT_ID ``` ### Creating a ticket from a Document ```sh ticketd document create-ticket DOCUMENT_ID "Rate-limit failed login attempts" ``` The new ticket's description links back to the Document. ## Plans A **Plan** is a named group of tickets pursuing a shared objective. A Plan can span several projects. Each ticket belongs to at most one Plan, and belonging to one is optional. ```sh ticketd plan create "Login hardening" ticketd plan add PLAN_ID T-LG12 ticketd plan show PLAN_ID ``` A Plan's progress is the count of its tickets by status. Parents and subtickets count equally, and trashed tickets are left out. ### A Plan's spec and supporting Documents Designate one Document as the Plan's primary spec, and add others as supporting context: ```sh ticketd plan spec PLAN_ID DOCUMENT_ID ticketd plan document PLAN_ID OTHER_DOCUMENT_ID ticketd plan context PLAN_ID --bodies ``` ### Archiving An archived Plan leaves the active Plan views and can be made active again. Its tickets stay searchable and editable, with their statuses and relationships unchanged. ```sh ticketd plan archive PLAN_ID ticketd plan reactivate PLAN_ID ``` ### Reading a Plan **List** shows the members, **Board** groups them by status, and **Flow** places them in dependency order. Open the full graph to follow links outside the Plan. ## The context graph The context graph is a bounded view of the explicit relationships among tickets, Documents and Plans. Open it from a ticket, a Document or a Plan in the desktop app, or open the workspace graph from the sidebar. Tags classify items in the graph. They do not create links between them. ## GitHub Issues Configure repositories and optional assignee or label filters in your GitHub source. Preview the matching issues before saving the rule. Imported issues stay available offline. GitHub owns their titles and descriptions. For open issues you can manage Todo, In progress and In review in ticketd. You can publish a locally owned open ticket as a GitHub issue after previewing what will be sent. Once publication is confirmed, the issue becomes the source of record. Plan membership, activity and dependencies stay in your workspace. See the [source workflow](https://github.com/vantoan19/ticketd/blob/main/docs/product.md#ticket-sources). ## Workspace sync Connect your own Google Drive to share workspace content and managed attachments between your desktops. Each desktop keeps a local database and can work offline. Sync reconciles changes through a Drive folder. An overlapping edit can require review. Agent execution folders, credentials and a device’s Automation runs stay local. Sync is separate from attaching a Drive file to a ticket or Document. A Drive reference points to the authorized file and uses the permissions of the account opening it. See the [workspace sync model](https://github.com/vantoan19/ticketd/blob/main/docs/product.md#workspace-sync). # Readiness (/docs/concepts/readiness) A **blocking dependency** says that one ticket must be Done before another is considered Ready. Dependencies can cross projects. ```sh ticketd add-dependency T-LG12 T-LG13 ``` T-LG13 waits for T-LG12. ## Ready and Blocked - A ticket is **Ready** when it is Todo, not in the trash, and has no unresolved blocking dependencies. - A ticket is **Blocked** when it is Todo, not in the trash, and has at least one unresolved blocking dependency. Tickets that are started, finished or trashed are neither Ready nor Blocked. Their dependency lists still show any unresolved prerequisites. ## What resolves a blocker Only **Done** satisfies a blocking dependency. The table assumes a Todo dependent with one prerequisite. | Blocker's status | Dependent is | | ---------------- | ------------------------------------ | | Todo | Blocked | | In progress | Blocked | | In review | Blocked | | Done | Ready | | Canceled | Blocked while the dependency remains | | Duplicate | Blocked while the dependency remains | Reopening the prerequisite recalculates readiness. Trashing a prerequisite keeps its current effect on the dependent. > **Starting a Blocked ticket** > > Readiness helps people and agents choose what to pick up next. It does not > prevent anyone from starting a Blocked ticket. ## Asking for Ready work ```sh ticketd list --availability ready ticketd list --availability ready --plan PLAN_ID --limit 1 ticketd list --availability blocked ``` ## Seeing the dependencies ```sh ticketd graph T-LG12 ``` In the desktop app, a Plan’s **Flow** view arranges its work into Now, Next and Later. Open the full graph to inspect relationships. ## Removing a dependency ```sh ticketd remove-dependency T-LG12 T-LG13 ``` ## Links that do not block Some relationships carry context without affecting readiness: - **Related tickets** share context. The link is symmetric. - A **discovery relationship** records that a ticket was found while working on another. ```sh ticketd add-relationship T-LG12 T-LG10 related ticketd add-relationship T-LG12 T-LG16 discovered ``` For `discovered`, the first ticket is the work during which the second was found. # Tickets (/docs/concepts/tickets) A **ticket** describes an outcome you intend to reach. It has a title, a Markdown description, a status and optional links to a project, a Plan, other tickets and Documents. ## References Every ticket has a short reference that is unique in the workspace, such as `T-LG12`. The two uppercase letters identify the device that issued the reference. Use the value returned when creating your ticket. The reference stays with the ticket when it moves to another project or Plan. Use it wherever a command asks for a ticket: ```sh ticketd show T-LG12 ``` ## Status | Status | Meaning | | ----------- | ------------------------------------------------- | | Todo | Not started. | | In progress | Being worked on. | | In review | Implementation is finished and review is pending. | | Done | Complete, with no further review required. | | Canceled | The work will not continue. | | Duplicate | Describes the same outcome as another ticket. | ```sh ticketd change T-LG12 --status "In review" --agent coding-agent ``` Changing one ticket's status never changes another ticket's status. ## Parent tickets and subtickets A ticket can be broken into subtickets. A parent ticket still has its own outcome: it can be Done while subtickets remain open, and finishing every subticket does not finish the parent. A subticket can belong to a different project or Plan than its parent. ```sh ticketd set-parent T-LG14 --parent T-LG12 ``` Omit `--parent` to remove the parent. ## Tags Tags come from one vocabulary shared across the workspace. They are trimmed and lowercased, and adding a tag twice has no effect. ```sh ticketd add-tag T-LG12 security ticketd list --tag security ``` ## Projects A **project** is a repository that tickets can be linked to. When you create a ticket from inside a registered checkout, ticketd links it to that project. See [Connect an agent](/docs/agents/connect#project-context). ## Duplicates When two tickets describe the same outcome, the canonical ticket carries the work. The duplicate keeps its own reference and history. ```sh ticketd preview-duplicate T-LG15 T-LG12 ``` If the preview lists no blocking dependencies, run `ticketd mark-duplicate T-LG15 T-LG12`. When it lists dependencies, review each one. You can move the edge to the canonical ticket, remove it, or keep it on the duplicate. Apply those decisions together in the desktop app or through a [reviewed CLI request](https://github.com/vantoan19/ticketd/blob/main/docs/cli.md#duplicates). A retained Duplicate blocker keeps its dependent waiting. ## Trash Trashing removes a ticket from ordinary lists and from work selection. Nothing is deleted permanently: a trashed ticket keeps its relationships and can be restored. ```sh ticketd trash T-LG15 ticketd trash-list ticketd restore T-LG15 ``` A trashed ticket must be restored before it can be edited. # Introduction (/docs) ticketd organizes workable outcomes and the context that supports them. It has two ways in, and both open the same workspace on your computer: - **The desktop app** is where you plan, read and review. You see every ticket, Document, Plan and update in one place. - **The `ticketd` CLI** is how agents take part. Any agent that can run a shell command can read context, create tickets and report progress. Because both use one local workspace, what your agent writes through the CLI is what you read in the app. ## Start here - [Install](/docs/install) Get the desktop app and the CLI on macOS, Ubuntu or Windows. - [Quickstart](/docs/quickstart) Turn a spec into a Plan, link two tickets and review an agent’s first report. - [Tickets](/docs/concepts/tickets) The unit of work, its statuses and how tickets relate. - [Connect an agent](/docs/agents/connect) Make the CLI available to your agent and tell it how to report. ## What ticketd keeps together | You have | ticketd calls it | | -------------------------- | --------------------------------------------------------- | | An outcome to reach | A [ticket](/docs/concepts/tickets) | | A spec, draft or note | A [Document](/docs/concepts/context) | | Tickets with one objective | A [Plan](/docs/concepts/context#plans) | | "This must finish first" | A [blocking dependency](/docs/concepts/readiness) | | A progress update | An [Activity](/docs/concepts/activity-and-evidence) | | A pull request or a check | [Evidence](/docs/concepts/activity-and-evidence#evidence) | ## For agents reading these docs Every page is available as Markdown. Open the [Markdown index](/llms.txt) to find an article, or [read the whole documentation in one file](/llms-full.txt). # Install and update (/docs/install) The [Download page](/download) shows which packages are publicly available for your platform. You can also [build ticketd from source](https://github.com/vantoan19/ticketd/blob/main/docs/development.md). The desktop and CLI share one workspace when both run as the same operating-system user. ## Desktop packages The distribution targets are macOS 26 on Apple Silicon, Ubuntu 24.04 x86-64 and Windows 11 x86-64. Use the signing information and checksums supplied with a published release. ### macOS Open the DMG and drag ticketd into Applications. For an unsigned preview, verify the download against the release’s `SHA256SUMS`. If macOS blocks the app the first time you open it, choose **Open Anyway** in **System Settings → Privacy & Security**. You can also clear the verified app’s quarantine attribute in Terminal. Use the full path to select the macOS utility even if Python has installed another command named `xattr`. ```sh /usr/bin/xattr -dr com.apple.quarantine /Applications/ticketd.app ``` Open **Settings → Command line → Install command-line tool** in ticketd. Approving the administrator prompt links the bundled CLI in `/usr/local/bin`. The per-user option uses `~/.local/bin`. Add that directory to your PATH if needed. Run the same action again if you move the app. ### Ubuntu Install the package with `sudo apt install ./ticketd_*.deb`. The package manager installs the desktop dependencies and puts the CLI in `/usr/bin`. If you set `XDG_DATA_HOME`, use the same value for the app and the agent. ### Windows Run the MSI installer. In **Settings → Command line**, choose **Install command-line tool** to add the app’s folder to your user PATH. Reopen terminals and agent harnesses after changing PATH. Use the native Windows toolchain for source builds. For an unsigned preview, verify the installer against the release’s `SHA256SUMS`. SmartScreen offers **More info → Run anyway**. If Smart App Control blocks unsigned installers, follow the [source build instructions](https://github.com/vantoan19/ticketd/blob/main/docs/development.md). WSL interoperability has not been validated. ## Check which workspace your agent sees Run these in the terminal your agent uses: ```sh ticketd --version ticketd --help ticketd workspace ``` The last command prints the workspace path and format versions without creating or migrating a database. If another CLI takes precedence on PATH, **Settings → Command line** shows its path and version. You can also give the agent the absolute path to the intended executable. ## Standalone CLI For a machine without the desktop, use the matching standalone CLI archive when a release provides one. Extract the executable to a directory on PATH. Update a standalone copy by replacing it with the new executable. ## Updates In a build with an updater key, the desktop checks for stable releases after launch and daily while open. It downloads and verifies an update before offering **Restart to update**. **Settings → About** lets you check on demand, turn off scheduled checks, or return to a ready update. The bundled CLI updates with the desktop. On macOS and Windows, a verified update can install on quit. On Ubuntu, restart from the update prompt and approve the package installation. Updates that raise the workspace format require an explicit restart and a backup before migration. Read the prompt before interrupting active Chats or Automation runs. ## Removing ticketd Uninstall the desktop app through your operating system. Remove any standalone CLI you copied separately. The workspace lives in your user application-data directory and is retained. Save and [inspect a backup](/docs/reference/backup-and-export) before replacing binaries or restoring data. # Quickstart (/docs/quickstart) Open the desktop app beside a terminal with the [CLI on PATH](/docs/install). Both should run as the same OS user. The commands print JSON. Keep the IDs and references returned by your own workspace. ## Write down what success looks like Create a [Document](/docs/concepts/context) with the requirements, then make the Plan. ```sh ticketd document create --title "Login hardening spec" --body "Limit repeated failed sign-ins and show when another attempt is allowed." ticketd plan create "Login hardening" ``` Use the `id` from each result in place of `DOCUMENT_ID` and `PLAN_ID`. ```sh ticketd plan purpose PLAN_ID "Make repeated sign-in attempts safe." ticketd plan spec PLAN_ID DOCUMENT_ID ``` ## Create work a person can review ```sh ticketd create "Rate-limit failed logins" --plan PLAN_ID ticketd create "Alert on repeated failures" --plan PLAN_ID ``` Use the `reference` from each result in the remaining commands. In the site’s demonstration they are `T-LG12` and `T-LG13`. Your device issues its own references. ```sh ticketd add-dependency T-LG12 T-LG13 ticketd list --availability ready --plan PLAN_ID ``` The first ticket blocks the second. In the Plan’s **Flow** view, the limiter can start now and alerting waits for it. ## Hand the first ticket to an AI agent In the desktop app, follow the limiter ticket to see its updates in your Inbox. An agent can read context, take the work into progress and post evidence through the CLI. ```sh ticketd context T-LG12 --plan --relationships ticketd change T-LG12 --status "In progress" --agent coding-agent ticketd evidence add T-LG12 --kind branch --name "Limiter branch" --value auth/login-limiter --agent coding-agent ``` When the work is ready, the agent reports the result and asks for review. ```sh ticketd activity add T-LG12 --brief "The limiter passes the boundary tests. Ready for review." --agent coding-agent ticketd change T-LG12 --status "In review" --agent coding-agent ``` ## Review the work and release the next ticket Open **Inbox → Needs you**. Read the update, open the ticket and check the evidence. When you accept the work, move the ticket to **Done** in the desktop app or use the CLI. ```sh ticketd change T-LG12 --status Done ticketd list --availability ready --plan PLAN_ID ``` The alerting ticket is now Ready. The [agent guide](/docs/agents/connect) explains how to give your harness the same commands. # Backup and export (/docs/reference/backup-and-export) Find the workspace for the current OS user with `ticketd workspace`. It prints the default path and supported format without opening the database. ## Back up and inspect Choose a new path in an existing directory. A backup contains the database and retained local attachment bytes. It also preserves request replay outcomes. Drive references keep their metadata. Credentials and remote file bytes stay outside the backup. ```sh ticketd backup workspace-backup.sqlite3 ticketd inspect-backup workspace-backup.sqlite3 ``` Inspection checks integrity and retained-file checksums without restoring anything. A missing or damaged retained file blocks restoration. ## Restore Close the desktop app and other ticketd operations first. Restore saves a safety copy before replacing the active workspace. Use `--target` to restore into a separate database. ```sh ticketd restore-workspace workspace-backup.sqlite3 ``` The desktop also offers backup inspection and restore in Settings. Older binaries may be unable to open a newer workspace format. Back up before upgrading. ## Share a ticket or Document Choose an existing output directory. ticketd creates a new `ticketd-export-*` folder inside it. The export includes Markdown, portable references, available local files and a manifest that names omissions. ```sh ticketd export-markdown --ticket T-LG12 --output . ``` Read the JSON result and the manifest for partial exports. Access to a Drive viewer link depends on the recipient’s permissions. In the desktop, choose **Export Markdown with files** from a ticket or Document. ## Export workspace records ```sh ticketd export --file workspace.json ``` The JSON snapshot includes records in the trash and describes machine-specific checkout paths. The file option publishes completed output to a new path. Use backups for restoration and JSON for inspection or transfer. See the [export format](https://github.com/vantoan19/ticketd/blob/main/docs/export.md) for details. # CLI reference (/docs/reference/cli) Most workspace commands print JSON on stdout. `ticketd document link TARGET` prints a Markdown link that you can paste into a Document. `ticketd skills get` prints the guide as text. Run `ticketd COMMAND --help` for a command's arguments and flags. On failure, check stderr and the nonzero exit code. ## Tickets | Command | Does | | -------------------------------- | --------------------------------------------------------- | | `create TITLE` | Create a ticket. | | `show REFERENCE` | Show a ticket. | | `change REFERENCE` | Change the title, description, status or project. | | `list` | List tickets with combined filters. | | `search QUERY` | Search titles, plus bodies and briefs from 3 characters. | | `context REFERENCE` | Retrieve [bounded context](/docs/agents/bounded-context). | | `history REFERENCE` | Show ticket history. | | `backlinks REFERENCE` | List incoming references with their passages. | | `trash`, `restore`, `trash-list` | Move to trash, restore, and list trashed tickets. | ## Relationships | Command | Does | | ---------------------------------------- | ---------------------------------------------------------- | | `add-dependency BLOCKER DEPENDENT` | Add a blocking dependency. | | `remove-dependency BLOCKER DEPENDENT` | Remove a blocking dependency. | | `set-parent REFERENCE --parent PARENT` | Assign a parent. Omit `--parent` to remove it. | | `add-relationship SOURCE TARGET KIND` | Add a `related` or `discovered` link. | | `remove-relationship SOURCE TARGET KIND` | Remove that link. | | `mark-duplicate SOURCE CANONICAL` | Mark a ticket with no blocking edges as a duplicate. | | `preview-duplicate SOURCE CANONICAL` | Inspect dependencies before a reviewed duplicate decision. | | `remove-duplicate` | Remove a duplicate designation. | | `add-tag REFERENCE TAG`, `remove-tag` | Add or remove a tag. | | `graph REFERENCE` | View a bounded dependency graph. | ## Progress | Command | Does | | ---------- | ----------------------------------------------------------------- | | `activity` | `add`, `edit`, `delete`, `show` and `list` a ticket's activities. | | `evidence` | `add`, `edit`, `delete` and `list` implementation evidence. | | `inbox` | Read followed-ticket updates and items needing attention. | | `reminder` | `show`, `set`, `snooze` and `dismiss` a ticket reminder. | ## Documents and Plans | Command | Does | | ---------- | ---------------------------------------------------------------------------------- | | `document` | Create, read, search, change, pin, tag, link and trash Documents. | | `plan` | Create, list, show, rename, archive and reactivate Plans; manage tickets and spec. | | `project` | Create, edit, show and list projects; register and unregister checkouts. | ## Writes for agents | Command | Does | | ------------ | --------------------------------------------------------------------- | | `write FILE` | Execute one JSON write request. With `--request-id`, a retry is safe. | | `batch FILE` | Apply a JSON array of operations [atomically](/docs/agents/batches). | ## Bundled guides and files | Command | Does | | --------------------------------------------- | --------------------------------------------------------------------- | | `skills list`, `skills get`, `skills install` | Read the built-in guides or install the agent discovery skill. | | `attachment` | Add and inspect local file snapshots and authorized Drive references. | ## Workspace | Command | Does | | ------------------------ | ----------------------------------------------------------------------------------- | | `workspace` | Print the workspace path and format versions. | | `backup PATH` | Save a consistent backup to a new file. | | `inspect-backup PATH` | Check integrity and retained file bytes before restoring. | | `export-markdown` | Export a ticket or Document with portable Markdown, available files and a manifest. | | `restore-workspace PATH` | Restore a backup. | | `export` | Export a portable JSON snapshot. | | `source` | Connect and configure ticket sources such as GitHub. | ## Filters shared by `list` and `search` | Flag | Keeps | | ----------------------------------- | ---------------------------------------------- | | `--project ID`, `--unlinked` | One project's tickets, or tickets without one. | | `--plan ID` | One Plan's tickets. | | `--status STATUS` | One status. | | `--tag TAG` | Tickets with every tag given. Repeat the flag. | | `--availability ready` or `blocked` | Ready or Blocked tickets. | | `--family REFERENCE` | A parent ticket and its subtickets. | | `--source github` or `local` | Tickets owned by a source, or local ones. | | `--limit N`, `--offset N` | A page of results. The default limit is 50. | | `--latest-update` | Adds each ticket's latest update. | # Glossary (/docs/reference/glossary) ## Language **Workspace**: The local boundary containing tickets, Documents, Activities, projects, Plans, Chats, and their shared tag vocabulary. **Format version**: Which shape of Workspace file a ticketd can read. It rises with each change to what a Workspace stores. A backup restores on a ticketd with the same or newer format version. _Avoid_: schema version **Chat**: A standalone conversation in a workspace, linked to a harness session. It can have optional links to multiple projects, tickets, and Documents without belonging to any one of them. **Harness**: The person's own installed agent program, such as Claude Code or Codex, that a Chat runs in. It owns authentication, billing, its settings and its native session; ticketd starts, supervises and answers it but never signs in for it or changes how it bills. _Avoid_: Provider, model, agent (for the program itself) **Turn**: One run of the harness from a message the person sent until it ends: completed, failed, stopped by the person, or cut off. A steer joins the running turn instead of starting another. A turn that ended is not evidence that its task succeeded. **Steer**: A message sent while a turn runs that the harness takes into that turn, where its capabilities allow, instead of waiting for the turn to end. What steering does to running tools is the harness's own behaviour and is said before the person chooses it. **Queue**: A Chat's messages waiting to go out, in order, each as its own turn once the current one ends. ticketd owns the queue: it can be paused, and a queued message can be sent now. Only a message known not to have been accepted falls back from a steer into it. **Seen and unseen**: A turn that ended after the person last viewed its Chat is unseen until the Chat is in view again (open in the detail pane with the window focused). The position the person has seen through is stored with the Chat. Mark as unread makes the last turn unseen again and Mark as read clears it; neither notifies. **Muted Chat**: A Chat whose outcomes never raise a system notification or count on the app icon. It still shows its status and counts in the sidebar. **Turn report**: What the harness reported about a turn besides its steps and final response: its reasoning, its plan and the files it changed. Each is kept in Chat history as the harness last reported it, and what it did not report is not shown. **Ticket**: A unit of work describing an intended outcome, optionally linked to one project. A ticket with subtickets still has its own outcome rather than serving only as a container. _Avoid_: Issue, task **Open Ticket**: The Ticket shown in the detail pane, whose details the person is viewing. It says nothing about the Ticket's status or about an external issue being open. **Locally owned ticket**: A ticket whose authoritative record is maintained by ticketd. **Externally owned ticket**: A ticket whose authoritative record is maintained by an external tracker and synchronized into ticketd, with local progress, authored activities, and organization maintained separately. **Ticket publication**: A one-time outward transfer of a locally owned ticket to an external tracker, after which that tracker is authoritative and changes flow into ticketd while its ticketd identity is preserved. **Ticket source**: The system that currently owns a ticket's authoritative record: ticketd or an external tracker. **Ticket source extension**: A connector to an external ticket source, run by ticketd through a shared extension interface. **External ticket identity**: The identity of a ticket's corresponding record in an external tracker, retained as provenance even when ticketd takes ownership. Its presence alone does not imply external ownership or active synchronization. **Ticket reference**: A short, workspace-unique label for a ticket: `T-`, the device code of the Workspace installation that created it, then that device's counter, with no dash between them (`T-KQ43`). It is stored with the ticket and never changes, including when project or Plan links change or the device later takes another code. The ticket's internal identifier, not the reference, is its identity. The one case in which two tickets can carry the same reference is a Workspace file copied by hand, until sync detects the copy ([ADR 0011](https://github.com/vantoan19/ticketd/blob/main/docs/adr/0011-markdown-file-sync-through-google-drive.md#identity)). **Device code**: Two uppercase letters identifying one Workspace installation in the Ticket references it issues, so desktops sharing a Workspace do not issue the same reference (a hand-copied Workspace file is the exception until sync detects it, see [ADR 0011](https://github.com/vantoan19/ticketd/blob/main/docs/adr/0011-markdown-file-sync-through-google-drive.md#identity)). It is random by default. A restored Workspace takes a fresh one, as does a desktop joining a sync folder where its code is held or was given up, and a file copy of a Workspace once sync detects that the original also syncs. **Version**: An earlier state of a ticket or Document (title, body, status, trash), saved locally on the device whenever a local edit or an incoming sync replaces it. Versions are kept 30 days; the record itself is the current version and is always kept. Restoring a version is an ordinary edit. **Workspace sync**: Keeping one person's Workspace the same on several desktops through that person's own Google Drive. Each device keeps its own local Workspace; every ticket, Document, Plan and project is also stored in Drive as one readable, unencrypted Markdown file. It is distinct from the inbound synchronization of an externally owned ticket and never publishes to a tracker. _Avoid_: Cloud sync, backup **Last-synced copy**: A device's own copy of a synced record as it was when that device last synchronized it. When a record changed both locally and in Drive, each side is compared with this copy to tell which fields each side changed. The copies are kept while a device is disconnected, so reconnecting to the same folder merges the same way. **Needs review**: The state of a synced record whose same field was changed on two devices. The local value is kept until the person chooses or edits the value in a comparison of the conflicting fields. Changes to different fields, and to tags and other sets, combine without review. **Parent ticket**: A ticket whose outcome is broken into subtickets. It may be Done while subtickets remain open, and completing all subtickets does not necessarily fulfill its own outcome. **Subticket**: A ticket describing part of its parent ticket's work, possibly linked to a different project or belonging to a different Plan. Its ownership and Plan membership are independent of its parent's. **Blocking dependency**: A directed relationship in which one ticket must be Done before another is considered Ready, including across projects. A canceled or duplicate blocker remains unresolved until the relationship is removed; readiness guides selection without preventing work from starting. **Ready**: A Todo ticket that is not in the trash and has no unresolved blocking dependencies. **Blocked**: A Todo ticket that is not in the trash and has unresolved blocking dependencies. Started, terminal, and trashed tickets have neither Ready nor Blocked indicators; their dependency lists still show unresolved prerequisites. **Project**: A repository associated with tickets, with an explicit identity preserved across repository moves and renames. Multiple local checkouts of the same repository represent the same project. _Avoid_: Work grouping **Project context**: The project selected for a particular UI or CLI interaction, independent of other interactions. Explicit selection takes precedence over inference from a registered checkout; without either, new tickets remain unlinked. The unlinked choice is shown to users as "No project". **Plan**: A named grouping of tickets pursuing a shared objective, potentially spanning multiple projects; each ticket belongs to at most one Plan and membership is optional. A Plan is Active or explicitly Archived, with progress expressed as counts by status of all non-trashed members, including parents and subtickets equally. _Avoid_: Work, initiative **Archived Plan**: A Plan removed from active Plan views that can be restored to Active. Its tickets remain searchable and editable, with their statuses and relationships unchanged. **Trashed ticket**: A ticket removed from ordinary lists and work selection while preserved for restoration along with its relationships; permanent deletion is not supported. Trash leaves completion unchanged: Done prerequisites remain satisfied, unfinished prerequisites remain unresolved, and children of a trashed parent remain visible. **Restoration**: Returning a trashed ticket to ordinary visibility. A trashed ticket must be restored before editing, except that visible tickets may detach relationships to it; hierarchy and dependency validity continue to apply while tickets are in trash. **Ticket status**: The recorded state of a ticket: Todo, In progress, In review, Done, Canceled, or Duplicate. Publication preserves this status; status changes do not automatically change related tickets. **In review**: A ticket status indicating that implementation is finished but review is pending. An In review ticket remains an unresolved blocker for its dependents. **Done**: A ticket status indicating that its work is complete and no further review is required. **Canceled**: A ticket status indicating that its work will not continue. Cancellation does not satisfy its dependents' prerequisites. **Activity**: An automatic event or authored update attached to exactly one ticket. Authored activities have a required human-readable brief and optionally link to one supporting Document; they are editable and deletable. Automatic events record structured changes and cannot be edited or deleted individually. Attribution, when supplied, identifies the editing agent. The interface calls an authored Activity an update and its Activity details its details; it never says note. The command line keeps `activity`, `--brief` and `--details-file`. **Document**: Reusable context: a thought, draft, spec, knowledge, or supporting detail. A Document has stable identity, an optional title, Markdown content, and recoverable trash state. It can be linked from multiple tickets, Plans, and Documents without duplication. A ticket's Documents are those its description mentions plus those attached explicitly (the rail's Add, or `document link-ticket`); detaching removes only an explicit reference and never edits the description. **Activity details**: A Document created as the supporting detail of an authored Activity. Its originating Activity initially excludes it from ordinary browsing. Keep in Documents or designation as a Plan spec makes it visible without changing identity or provenance; an AI tag does not control visibility. Linking an existing standalone Document does not change its visibility. Deleting the originating Activity leaves the Document intact and discoverable in ordinary browsing. **Attachment**: A workspace-scoped file identity with a display name, original filename, available metadata, and storage locator. It is distinct from a Document and Implementation evidence. A local Attachment is an immutable workspace-managed snapshot; uploading a revision creates a new identity. Reusing or detaching an Attachment changes references without replacing or deleting its bytes. Files inside linked Documents stay associated with those Documents. **External attachment reference**: An Attachment resolving current provider content rather than a local snapshot. Google Drive references use the connected person's per-file application authorization and existing sharing permissions. Google Docs, Sheets, and Slides open in Drive without conversion. Last-known metadata survives access failures; removing a reference never deletes the remote file. **Quarantined Attachment**: A local Attachment whose unused bytes were explicitly moved out of active storage for reversible cleanup. Its identity and metadata remain discoverable, complete backups retain its bytes, and restoration makes the same identity reusable. Saved references, recoverable drafts, Undo and Trash protect files from quarantine. Quarantine still occupies disk space until explicit purge. **Uploaded copy**: An Attachment uploaded by ticketd to an explicitly selected remote folder. Its operation, remote identity, input digest and observed checksum/version are retained for recovery. The provider can change the content independently; an uploaded copy does not promise preserved original bytes. A revision uses a new upload operation and attachment identity. Cancellation and removal never delete the remote file. **Purged Attachment**: A local Attachment whose quarantined bytes were permanently removed by explicit confirmation. Its identity, names and references remain with unavailable status. Undo cannot recover purged bytes; deliberately restoring an older complete backup can recover the earlier workspace. A pending purge records committed intent but unconfirmed completion and requires explicit retry, never automatic deletion. **Recoverable draft**: Unpublished editor content retained independently of a ticket, Document, or Activity save. Its attachment references protect files while the editor is closed. Independently recoverable Undo states have separate protection; saving or discarding the current draft does not imply permission to delete their files. **Context graph**: A bounded view of explicit relationships among tickets, Documents, and Plans. Activities explain ticket-to-supporting-Document connections but are not separate graph nodes. Tags classify or color items without implying pairwise links or blocking dependencies. **Workspace graph**: The Context graph for the whole workspace, opened from the sidebar rather than from one ticket, Document, or Plan. It is bounded and explains any limit in the same way. **Dependencies (graph)**: A ticket's view of the Context graph limited to "blocks": the bounded set of tickets joined to it by blocking dependencies, each marked Ready or Blocked. The interface calls the item-centred Context graph "Graph"; a ticket's Graph opens on its Dependencies. **Graph relationships**: Each relationship has one name, used on the line, in the legend and (capitalised) as the filter, and is read from either end with the role names below. | Kind | Name | From the source | From the target | | ---------- | --------------- | --------------- | ------------------------- | | blocks | blocks | Blocks | Blocked by | | subticket | parent of | Parent of | Subticket of | | related | related | Related to | Related to | | discovered | discovered | Discovered | Discovered from | | mention | mentions | Mentions | Mentioned by | | attached | attached | Has attached | Attached to | | activity | update mentions | Update mentions | Mentioned in an update on | | support | update cites | Update cites | Cited in an update on | | membership | in Plan | Contains | In Plan | | document | document of | Has document | Document of | | spec | spec of | Has spec | Spec of | **Editing agent**: The agent identified as the source of a write when supplied. This is descriptive attribution, not a verified identity or permission; absent attribution does not establish that a human made the change. **Ticket history**: An automatic record of changes to a ticket's status, relationships, project or Plan membership, and trash or restoration state. It is distinct from authored activities and does not imply a full history of body revisions. **Checklist item**: A checkable item within a ticket's Markdown content, without independent status or dependencies. Unchecked items do not prevent ticket completion. **Tag**: A label from a shared workspace vocabulary used to classify tickets across projects and Plans. A ticket may have multiple tags independently of its other relationships. **Followed ticket**: A ticket a person has explicitly selected to receive changes about in their attention inbox. Following is personal to that person. **Attention inbox**: The person's collection of changes on followed tickets, with read and unread state. **Ticket backlink**: An incoming reference from another ticket's description or authored activity (or a Document), including the passage containing the reference. A ticket's own text is never a backlink to itself. **Related tickets**: Tickets connected by shared context without implying a blocking dependency or parent/subticket relationship. **Discovery relationship**: A directed relationship recording that a ticket was discovered while working on another ticket. It does not affect readiness. **Ticket reminder**: A person's request to bring a ticket back to their attention at a chosen time, independent of its status and readiness. **Duplicate ticket**: A ticket in Duplicate status, recognized as describing the same intended outcome as a canonical ticket, with its own identity and history preserved. **Canonical ticket**: The ticket selected to represent an intended outcome shared by duplicate tickets. It is the direct destination of those duplicate relationships and is not itself a duplicate. **Automation**: A workspace record that runs steps without the person starting them: one trigger, conditions that must all pass, then a flow of steps that can branch. It is switched on or off separately on each device. _Avoid_: Workflow, rule **Automation agent**: A named, reusable definition of who an Automation step runs: harness, model, instructions, allowed tools, and turn and time limits. The interface calls it an Agent. It is distinct from the Editing agent, which is attribution on a write. **Automation run**: One firing of an Automation: the Workspace event that started it, the steps taken, its outcome, and the Chat of each agent step. The interface calls it a run. It is local to the device that ran it. **Workspace event**: A logged fact that something in the Workspace changed (for example a tag added to a ticket), with the previous and current values and who made the change: a person, an Automation, a refresh of an external ticket source, or Workspace sync applying a change from another desktop. Automations are triggered from this log by the changes a person or a ticket source made. A change that arrived through Workspace sync starts no Automation, whoever made it on the other desktop; this rule is provisional until running Automations across devices is designed. It is distinct from an Activity's automatic event, which is ticket history shown to the person. **Implementation evidence**: Named material associated with a ticket that locates its implementation or records verification, such as a pull request, commit, branch, worktree, or verification result. # Privacy (/docs/reference/privacy) # Privacy and local data This document describes the desktop and CLI in this repository. Connected services, your browser, operating system, and any agent you run have their own data handling. ## What stays on your machine ticketd stores tickets, Documents, Plans, Activities, project checkout paths, external-source metadata, and personal state in a local SQLite workspace. Local attachment copies and retained draft data also live on your machine. Desktop preferences and legacy drafts may exist in the WebView's local storage. Run `ticketd workspace` to inspect the database path without creating or migrating it. Desktop Settings also shows workspace information. Desktop and CLI share the workspace when run under the same OS user and environment. The current application does not implement product analytics, session replay, or automatic crash-report uploads to ticketd maintainers. Update checks and the integrations you turn on make the requests below. The desktop keeps a local log of what the app did, to find out why something went wrong afterwards. It is a set of JSON files in your OS's log folder (on macOS, `~/Library/Logs/com.vantoan19.ticketd/`), one per day. ticketd keeps the last 7 days and at most 50 MB, and deletes older files when it starts. A line holds the time, a level, the part of ticketd that wrote it, a short message, and IDs, counts, durations and error kinds. By design, it never holds the text of your tickets, Documents, Plans or Chats. Error messages from your operating system can still contain a file path. The files never leave your machine by themselves; sharing them is your choice. The CLI writes warnings and errors to your terminal and keeps no log file. Settings → Diagnostics can export those logs for a bug report: a `.zip` of under 5 MB with a summary (app, OS and WebView versions, log level, whether sync is on, Harness versions), the Workspace's health (Format version, a SQLite integrity check, file sizes, and the number of rows in each table), the kinds of warning and error with how often they happened, and the last 3 days of logs. Each log line is rebuilt from a short list of fields, so any other field is dropped, and your home folder, OS username, Workspace path and Drive account email are replaced wherever they appear. IDs are kept. Nothing is uploaded: ticketd saves the file where you choose, and anything you attach to a public GitHub issue can be read by anyone. Workspace files and exports are not encrypted by ticketd. Protect them with OS permissions, disk encryption, and appropriate backup storage. Anyone who can read these files may be able to read their content. ## Workspace sync Workspace sync is optional and off until you connect Google Drive for it. While it is on, ticketd stores a copy of your Workspace content in a visible folder it creates in your own Google Drive: one Markdown file for every ticket (with its authored Activities and Implementation evidence), Document, Plan and project, including tags, relationships, follows, reminders and external-source provenance, plus your managed Attachment files. The folder also holds the name of each desktop you sync from. The name is your computer's name unless you change it in the sync settings, and it is written to the folder's device list and into each file that desktop uploads. **These files are not encrypted by ticketd.** They are readable in Drive by you, by anyone you share the folder with, and by anyone or anything with access to your Google account. There is no sync password. Google stores them under its own terms, and Drive keeps its own revisions of changed files. ticketd has no server and receives none of this content. Sync uses the same per-file `drive.file` access as attachments. ticketd can reach only files it created or you selected for it, not the rest of your Drive. The following never leave the device through sync: Attention inbox read state, project checkout paths, credentials, source connection settings, window layout, unfinished drafts, upload queues, and the 30-day local version history. ## When data leaves your machine | Action | Destination and data | | --------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Connect or refresh a GitHub source | GitHub or the configured GitHub Enterprise API receives authenticated requests for the configured source; downloaded issue data is cached locally. Configured sources may refresh in the background. | | Publish a ticket to a source | The selected provider receives the content included in the publication. Review the preview and destination before publishing. | | Sign in to Google Drive or select a file | Google's sign-in and Picker services receive the authorization requests. ticketd requests per-file `drive.file` access and stores selected-file identity and metadata locally. | | Upload or retrieve a Drive attachment | Google receives the selected upload bytes and metadata, or serves the requested download. These operations need network access. | | Use Workspace sync | Google Drive receives your synced Workspace content and managed Attachment files, unencrypted, in a folder in your own Drive. See [Workspace sync](#workspace-sync). | | Check for updates | The desktop makes an anonymous GitHub Releases request on launch, daily while open, and on demand. It downloads and verifies a newer release in the background. GitHub sees the connecting IP address (or your proxy's), as with any web request, and which release and platform file is downloaded; no account, installed version or workspace data is sent. Turn off scheduled requests in Settings → About. | | Open an external link | Your browser or OS handler opens the destination under its own privacy settings. | | Share an export, backup, screenshot, or diagnostic report | The recipient receives whatever you include; ticketd does not redact authored ticket content from a workspace backup or export. | An external agent that invokes the CLI can read the command's output and may send it to its model provider. Configure that agent according to your data requirements. Installing ticketd's discovery skill does not itself create a model-provider account. ## Credentials The GitHub connector reuses environment credentials or the GitHub CLI's existing authentication. It does not persist those tokens in the ticket workspace or export. See the [credential lookup implementation](https://github.com/vantoan19/ticketd/blob/main/crates/ticketd-core/src/source/github/credentials.rs) for host-specific environment-variable precedence. Google authorization uses the OS secure store: Windows Credential Manager, macOS Keychain, or Linux Secret Service. There is no file-based credential fallback. The Google desktop app registration bundled by a publisher is separate from a user's access and refresh tokens. See [Google Drive setup](https://github.com/vantoan19/ticketd/blob/main/docs/install.md#google-drive-setup). ## Google user data When you connect Google Drive, ticketd asks Google for one permission, the per-file `drive.file` scope. With it, ticketd can see and change only the Drive files it created for you and the files you select in Google's Picker. It cannot list or read the rest of your Drive. ticketd uses that access for two features you turn on yourself: Drive attachments and Workspace sync. It reads your Drive account's email address and permission ID to show which account is connected and to keep each grant tied to that account. It reads the names, sizes, checksums and versions of authorized files, and uploads or downloads their bytes when you attach, sync, retrieve or export them. Your Google access and refresh tokens stay in your OS secure store. File details and the account email stay in your local Workspace. A backup you save copies them too, and a JSON export includes the last-known Drive file details. ticketd has no server and sends none of this to its maintainers or to third parties. It does not sell this data, use it for advertising, or use it to train AI models. An agent you run yourself can read what the CLI prints, as described above. Revoke access at any time in your [Google Account's third-party connections](https://myaccount.google.com/connections). Then remove the local data as described below. ticketd's use and transfer to any other app of information received from Google APIs will adhere to the [Google API Services User Data Policy](https://developers.google.com/terms/api-services-user-data-policy), including the Limited Use requirements. ## Retention, backups, and removal Trashing an item is reversible and does not immediately erase all its data. Local attachment cleanup, quarantine, and purge have distinct effects; review their confirmation messages. Removing a remote attachment from ticketd does not delete the corresponding Google Drive file. Workspace sync never deletes a record: an item you trash keeps its file in Drive, marked as in Trash. Turning sync off on a desktop removes nothing from that desktop or from Drive. Deleting a single synced file in Drive does not remove it: the next sync run of a connected desktop uploads it again. Sync stops only when the whole folder is removed or the desktop is disconnected. To remove synced content from Google, disconnect your desktops and delete the folder in Drive yourself; Drive's own trash and revision retention then apply. Uninstalling the desktop leaves workspace data behind. Backups and exports also remain wherever you saved them. A backup retains local workspace data and local attachment bytes, but not Google credentials or remote attachment bytes. Restoring it does not restore remote authorization. See [export and backup behavior](https://github.com/vantoan19/ticketd/blob/main/docs/export.md). For complete removal, close ticketd and other processes using the workspace, identify its location before deleting data, and account for separately saved backups, exports, WebView data, OS credentials, and any remote copies. Keep a backup if you may need recovery. Revoking access at a provider does not erase previously exported files. ## Reporting problems Use minimal synthetic examples in public reports. Remove tokens, authorization URLs, private ticket content, personal paths, and account identifiers from diagnostics. Do not attach your normal workspace database or backup. Follow [SECURITY.md](https://github.com/vantoan19/ticketd/blob/main/SECURITY.md) for suspected vulnerabilities.