aitododocs Coming soonAutonomous delivery

Reviews and impact

Markdown

What changed since in what an item builds on, and the dismissable hints on a ticket's own content.

Conceptabout 7 min1 commands
On this page

Reviews: what changed since#

Every item (ticket, doc, gotcha, group) remembers which version of what it builds on it last saw: that is the review store (reviews/<scheme>/<id>.yaml, commit it with the store). When the source has changed since, the review is open. tkt review SG-3 lists the open reviews and the new warnings; tkt review doc://plan-06 also lists what the doc opened on the items that build on it.

  • Acknowledge: tkt review SG-3 --ack doc://plan-06 --apply; one hint: tkt review SG-3 --ack decision://D3 --code UNLINKED_ITEM --apply. Without --apply it only shows what it would write.
  • An acknowledgement holds until its source changes; then it is new again. The item's own writes (status, move, AC tick, a section) never resolve a review.
  • Acknowledged hints fold into one line per code (UNLINKED_ITEM ×69 acknowledged); --all and --json list them all, with an acknowledged flag. Line 1 never shows an acknowledged one; within a severity, wrong context comes before missing context, and the newest source wins within each.
  • In bulk (--all, --all-from) a human decides: the dry run prints the command, a server store needs the admin token; --undo <batch> --apply puts it back.
  • Older dismissals (tkt suggest dismiss, tkt reorg dismiss) move here on the first write.
Details7 items

Initial stamps: on the store's first write every existing edge gets a stamp from the store's git history: the source's version at the dependent's last commit. Without history (no repo, no commit) the current version, marked baseline: unverified. A new edge gets the source's current version when it is created, so it never starts as an open review. Version: a hash of the type's versioned fields and body; formatting (whitespace, key order) does not count, nor a ticket's ## Notes section or status.

Impact on write: when a write changes the version of an item others build on, it collects everything along the chain, and line 1 of the answer is one summary (WRITE_IMPACT): WARN D19: superseded by D343; 5 items build on it directly (along the chain: …) → review them: tkt review D19. A direct dependent gets an open review (a closed one only a mark), the ones further away are grouped under it with no review of their own; items reached only over a match binding (a gotcha's appliesTo) are counted apart, and a text mention does not count. Only closed items reached: an info line; nothing reached: nothing; never a block, exit 0. Nothing is written to a dependent.

Marks: an open ticket's line 1 says when what it builds on (or its group) is under review (SOURCE_UNDER_REVIEW); the mark goes when that review is resolved. A closed ticket gets an info mark (BUILT_ON_CHANGED).

  • tkt review REF --json: open and opened lists; per item subject, signal (edge or hint), code, source, seenVersion, currentVersion, baseline, sourceChangedAt, new. A resolve's --json: applied, batch, count, items, applyCommand.
  • Filters: --code, --before <date>; --outcome acknowledged|updated|obsolete|superseded (--superseded-by). A bulk selection takes SUPERSEDED_DECISION and block signals only when --code names them.
  • A ticket's hints carry acknowledged and signal {source, sourceVersion, sourceChangedAt} in --json; REST: GET /v1/reviews/{ref}.
  • The chain: change, activeEnd and reached (per item ref, binding, outcome, hops, via, closed, path, e.g. D19 → (affects) doc://plan-06 → (contextRefs) SG-003). A write's --json gets an impact key: source, activeEnd, change, direct, chain, matchOnly, next.

Content hints: duplicates, copied paragraphs, lone members#

Three info hints on an open ticket's own content, in its bundle (tkt ticket get, tkt lint, the REST create answer) and after tkt ticket new. Nothing is changed: the fix is the author's.

  • POSSIBLE_DUPLICATE: an older or closed ticket has almost the same title. If it is the same work: tkt ticket update SG-9 --status canceled --superseded-by SG-2; if related: --add-relates-to. A linked pair is never flagged.
  • REPEATED_PARAGRAPH: one of its paragraphs is in at least two other tickets too: moved into a gotcha (tkt gotcha new) and linked from each, it lives once.
  • LONE_GROUP_MEMBER: the only ticket of its primary group while its parent is in another: tkt ticket move SG-9 --group api (the id changes). A ticket moved before is never flagged.
  • Each can be dismissed and stays silent until its cause changes: tkt review SG-9 --ack ticket://SG-2 --code POSSIBLE_DUPLICATE --apply (the hint names the exact command).

Completeness: the checklist#

Every get read (tkt ticket get and the rest, CLI, REST, the tkt ui page header) gives a weighted checklist: Complete: 73 % (4 of 6 items met), completeness in --json; line 1 names the first unmet item and its command.

  • Items: openReviews 25, dangling 15, hints 20, essentialCut 10, obligations 15, lifecycle 5, unbound 10; partial credit, rounded down, 100 only when all are met.
  • A closed item is not scored; a replaced one points to its successor.
  • Epic, milestone, release: tkt moves the status with the members (Automatically: …), in suggest mode a LIFECYCLE mark; tkt ticket list --lifecycle any.
Known limit: Probable links do not count toward completeness yet #407
Details1 items

A gotcha builds on a decision (twice for a critical one): tkt decision edit D12 --add-affects gotcha://x. A mention marked historical: tkt review doc://x --ack decision://D1 --code UNLINKED_ITEM --apply. Weights: tkt config set completenessWeights '{openReviews: 30, hints: 15}'. Only a ticket's own ref binds; an inherited (epic, group, milestone) or only mentioned ref reaches the agent but does not bind. The tkt ui Context references card shows it per row: own, mentioned (not bound while the unbound item lists it, with the tkt ticket ref add command), ↳ epic|group|milestone <id> or amends D1, linked to the source. A milestone's and a release's page show the same card: their own refs and unbound mentions (bind: --add-ref).

Commands on this page#

Generated from the registry: src/aitodo/api/selfdoc_entries/context.py · context.review, context.content-hints, context.completenessv0.1.298