# Reports

The three `tkt report` commands on one page: value, release and context.

## Value and release reports, release notes

Read-only reports. `tkt report value [--milestone M] [--since 2026-10-01] [--json]`: points and value delivered and open, value per point, unestimated and unvalued tickets named. `tkt report release 0.2.7 0.2.6` (or `--since 0.2.5`, `--group G`, `--json`): a changelog, newest release first, by type, from the tickets' `release` field.

`tkt release notes nov` writes that changelog into the release file's `## Release Notes` and, with an LLM, a summary of the shipped tickets' value above it (`--llm`, `--no-llm`, `--llm-cmd`, as for `tkt plan from-docs`). For a release not shipped yet it is a preview; `--write` writes it. `tkt release get nov` names it in one line; the whole text is the `--json` field `releaseNotes`.

### Details

- Types feature, bug, task, chore, spike, epic; lines `id  status  title`; unreleased tickets left out.
- `tkt doctor`: `STALE_HIGH_VALUE` (value ≥ 5, `in_progress`, unchanged for `staleHighValueDays`, 14), `LOW_VALUE_CLOSE_CANDIDATE` (value 1, open over `lowValueCloseDays`, 90, unwaited); `tkt config set staleHighValueDays 21`.
- Existing notes (maybe hand edits) are replaced only with `--yes`; asked at a terminal, else `ERR_RELEASE_NOTES_EXIST`. No LLM: the changelog alone, with a notice.

- `tkt report release --json`: `releases[] {release, tickets, types[] {type, tickets[]}}`.
- `tkt release notes nov` (`--write`, `--yes`, `--llm`, `--no-llm`, `--llm-cmd`, `--llm-provider`). `--json`: `{release, version, written, preview, replaced, summary, summarySource, notice, changelog, notes, path}`; the REST call writes the changelog only.

## What the bundles deliver

`tkt report context` is read-only: it builds every ticket's real bundle and shows where a critical gotcha or an own ref is only a pointer, what it cuts, and which mentions dangle. `--compare ../before` exits 2 when a ticket's context got worse; with `--fail-on loss` only on real context loss (the `reorg apply` gate's rule; JSON: `contextLoss[]`).

### Details

Scope: open tickets (epics and `deferred` too), `--include-closed`, `--group`, `--budget`, `--worktree-dir`. Mode: `resolution.mode`; an unresolved repo ref is `pending` (`repoRefsPending`), a found repo file `repo`, a missing target `missing`, a URL `external`: none is a budget pointer. Comparing matches by ULID, each store with its own `bundleTokenBudget`; loss: a critical gotcha newly a pointer, or a mentioned or own ref newly gone or a pointer (a deliberate narrowing is only worse); what got better is `improved[]`, never in the exit code. `--fail-on any` is the default; 4: could not run.

**Measure a copy**, never another project's live store: `git clone --local <repo> <dir>`, `git -C <dir> remote remove origin`, then with `AITODO_WORKSPACE_DIR=<dir>/<store>` and cwd `<dir>` (Stage 2) `tkt report context --json --include-closed`.

**Cut:** a delivered part shorter than its source: a ref (`ref`), a group `## Overview` (`group_overview`) or section (`group_section`), the epic part (`epic`), the inherited `## Value` (`value`). A mention without a section is a pointer by design. **Signalled** when `cutBy` is set, or the mode is not `excerpt` and a `reason` says why, or a `cuts[]` entry names it; else **silent**. **Own:** the body, the own `contextRefs` and the body mentions. **Essential:** own, required reading, critical gotchas, a budget cut of a group `## Gotchas` (never a section-cap cut). **Content:** the body, every `content_excerpt`, the group parts' and the epic's `markdown`, the inherited `## Value`; overhead share = (view chars - content) / content. **Floor overrun:** `estimated_tokens - max_tokens` when positive. Median and p90 by nearest rank.

**`tkt report context --json`:** `totals`: referenced, anchored and code refs, `OVERSIZED_BUNDLE`, `INHERITED_CONTEXT_TRIMMED`, degraded and pointer refs, dangling mentions, `refsNotFullyDelivered`, `citedRows` / `citedRowsDelivered`, `decisionRefs`, `decisionChangers`; `tickets[]` (`id`, `ulid`, `delivery[]`); `"reportVersion": 2`.

**Keys** (only ever added to): `totals` `cuts.<place>.<signalled|silent>.<count|delivered|source>`, `repoInline.count` / `.chars`, `ownLoss.tickets`, `essentialLoss.tickets`, `changerPointers`, `bodyInDefaultView`, `bodyTickets`, `epicMissingOrPointer`, `largeUnanchoredInherited` (inherited unanchored docs over three per-ref caps, no cut), `cutEntries` (the bundle's `cuts[]` entries), `cutEntriesNoFetch`, `cutEntriesNoCutBy` (those without a `fetch` or a `cutBy`), `cutEntriesExcluded` (the ticket's exclusions); `distributions` `epicShare`, `floorOverrunTokens`, `floorOverrunTokens.<required|critical|changer|epic>` (the bundle's `floor_tokens_by`), `viewChars.<default|brief|json>`, `overheadShare.<default|brief|json>`, each `{median, p90, max, n}`; per row `cuts[]` `{place, target, anchor, delivered, source, signalled}`.

## Commands on this page

- [`tkt report value`](/en/docs/reference/commands/milestone.md#tkt-report-value): Where effort went versus value: points and value delivered (done), open, and value per point
- [`tkt report release`](/en/docs/reference/commands/milestone.md#tkt-report-release): A changelog: the tickets of the given releases (or of every release from --since on), newest release first, grouped by type, each with id, status and title
- [`tkt release notes`](/en/docs/reference/commands/milestone.md#tkt-release-notes): Write the release's ## Release Notes: the changelog by type and, with an LLM, a value summary of the shipped tickets
- [`tkt report context`](/en/docs/reference/commands/milestone.md#tkt-report-context): Measure what the Context Bundles deliver: refs as pointers, critical gotchas, mentions

## Related

- Doctor · warning: [`STALE_HIGH_VALUE`](/en/docs/reference/doctor.md#doctor-STALE_HIGH_VALUE): An in\_progress ticket of value 5 or more with no change for staleHighValueDays
- Doctor · info: [`LOW_VALUE_CLOSE_CANDIDATE`](/en/docs/reference/doctor.md#doctor-LOW_VALUE_CLOSE_CANDIDATE): An open low-value ticket older than lowValueCloseDays that nothing waits on: close it?
- Config key: [`staleHighValueDays`](/en/docs/reference/config.md#staleHighValueDays): Days after which an open high-value ticket counts as stale in tkt report release
- Config key: [`lowValueCloseDays`](/en/docs/reference/config.md#lowValueCloseDays): Days after which an open low-value ticket is a close candidate in tkt report release
- Error code · 409: [`ERR_RELEASE_NOTES_EXIST`](/en/docs/reference/errors.md#ERR_RELEASE_NOTES_EXIST): tkt release notes: the release already has notes (maybe hand edits); --yes replaces them
