# Reporting a gap

Had to work around `tkt`, or it failed through no fault of the user?

Once the task is unblocked, report it: first `tkt feedback similar "<few words>"`, if it is there `tkt feedback plus1 <ID> --note "<one line>"`, else `tkt feedback bug` or `tkt feedback idea` (`--from-last-error` after a failure). Show the user the printed draft and send only after they approve (`--yes` is for exactly that); the id goes in `## Notes`. Before reusing a workaround: `tkt feedback status [<ID>]`. A file: `tkt feedback bug --template` (skeleton), `--file F --check` (no send).

## Details

- Also report: a script for a missing command, several commands for one intent, no command for what was asked, docs (this guide, the skill, `--help`) that disagree with the behaviour. Not: the user's errors, project content, secrets.
- An unexpected failure (5xx-class such as `ERR_INTERNAL`, a crash; not a usage error, 401, 404) ends with `Report it: tkt feedback bug --from-last-error`, an unknown command with `tkt feedback idea --from-last-error`. The scrubbed last error (never a token) is in `last-error.json` beside the credentials (`$XDG_CONFIG_HOME/aitodo/` unless `AITODO_CONFIG_DIR` / `configDir` moves it) and fills Tried and Happened. `The server … takes no reports`: no intake; tell the user, do not retry ([Feedback intake and triage](/en/docs/guides/team/feedback-intake.md#team-feedback-intake)).

- `similar` searches every project's reports by title words: id, title, type, status, case count, never body, labels or reporter. `plus1` asks first; the server writes `+1 <date>: <note>` into `## Cases` (any status) with no project name; the git commit author (`<token> via <project>`) records it for the operator. Case count = the `+1` lines.
- Sections come from `GET /v1/feedback/template` (version: `feedback_template_version` on `/v1/meta`): bug Goal, Tried, Happened, Expected, Workaround, Impact (`blocks` / `slows` / `cosmetic`); idea Goal, Missing, Tried, Workaround, Impact; all required, the title at most 120 characters. `tkt feedback bug --file F` (`# Title`, then one `## Section` each; `--file -` needs `--yes`), `--title`, or one prompt each. One error says it all: every section of the kind in order, every missing or empty one, and the sections the template does not know (their text would be lost, so `tkt` sends nothing; `## Environment` is not one). `tkt` adds `## Environment` and replaces secrets (`atk_…`, `sk-ant-…`, `Bearer …`, PEM, `password=` / `token=`) with `[redacted]`; `--json` works too. It prints `Reported FB-001 …`.
- `--template` prints the file's empty skeleton (`# ` and the sections in order; their help goes to stderr, `--json` gives the template's kind). `--check` only checks: it prints the draft, never sends and never asks; exit 2 on a missing or empty section, with the message above. `--check` with `--yes`, or without `--file`, is a usage error.
- `status <ID>`: body, `## Resolution`, `## Reply`, refs, `## Cases`; another project's report is `ERR_NOT_FOUND`, like an unknown id.

- `tkt feedback similar --json`: `{items: [{id, title, type, status, cases}]}`; `tkt feedback status <ID> --json` adds `cases`.

## Commands on this page

- [`tkt feedback bug`](/en/docs/reference/commands/workflow.md#tkt-feedback-bug): Report a bug: tkt or the server failed (not your mistake), or behaves unlike its docs
- [`tkt feedback idea`](/en/docs/reference/commands/workflow.md#tkt-feedback-idea): Report a missing feature: something you needed that no command does
- [`tkt feedback similar`](/en/docs/reference/commands/workflow.md#tkt-feedback-similar): Reports from every project whose title shares a word with TEXT: id, title, type, status and case count only
- [`tkt feedback plus1`](/en/docs/reference/commands/workflow.md#tkt-feedback-plus1): Add a case to an existing report: the server writes `+1 <date>: <note>` into its ## Cases, without your project's name
- [`tkt feedback status`](/en/docs/reference/commands/workflow.md#tkt-feedback-status): Your project's reports and their status; with an ID, one report in full

## Related

- Guide: [Feedback intake and triage](/en/docs/guides/team/feedback-intake.md): tkt feedback reports land in an ordinary project with a server store, named by AITODO\_FEEDBACK\_PROJECT; triage is plain tkt on that project.
