aitododocs Coming soonAutonomous delivery

Writing back while working

Markdown

Writing one section at a time, and the rule by which every reader and writer finds the fixed sections.

Guideabout 4 min9 commands
On this page

Writing back while working#

Change one body section at a time, never with --body (it replaces the whole body); none of these changes the status. tkt ticket note PAY-001 "<text>" appends - YYYY-MM-DD: text to ## Notes. tkt ticket section set|append PAY-001 <Heading> --text "<md>" (or --file, - = stdin) creates a missing section at its canonical place. tkt ticket ac list|check|uncheck|add|edit|remove PAY-001 <selector> takes a 1-based index or a text matching exactly one item, else ERR_AC_SELECTOR_INVALID; all or nothing.

Details3 items
  • --date overrides the date; a bad one: ERR_TIMESTAMP_INVALID. Headings match by the fixed sections rule; two with one name: ERR_BODY_SECTION_AMBIGUOUS, nothing written. A title that is only a deeper heading (### Notes): ERR_BODY_SECTION_MISSING, no second ## Notes; likewise tkt group section set|append and tkt milestone section set|append.

  • ac: the index is the one ac list prints; only the [ ] marker changes; --all ticks every item; an item already in that state: no write, exit 0; ticking the last item does not set done. ac add appends or inserts before --at N and creates a missing section (clearing MISSING_ACCEPTANCE_CRITERIA); ac edit rewrites a superseded item, marker kept; after ac remove the rest renumber (list again), and a parent goes only with its children. No section or checkbox: ERR_BODY_SECTION_MISSING. A line in a code fence is no item.

  • tkt ticket section set|append --json: {ticket_id, section, created, content, normalized}; tkt ticket ac list --json: {ticket_id, total, done, items}.

Fixed body sections#

A ticket's fixed ## sections, in order: ## Description, ## Acceptance Criteria, ## In Scope, ## Out of Scope, ## Implementation Notes, ## Verification, ## Context, ## Notes, and ## Value; a group's ## Overview, ## Conventions, ## Gotchas, ## Verification; a milestone's ## Goal, ## Exit Criteria, ## Decisions, ## Notes. Not configurable.

  • One rule finds them for every reader and writer: any case and spacing; the title may go on after a non-letter (## Acceptance Criteria (MVP)). Not in a code fence, not as ###.
  • Ticket writes (CLI and REST) rewrite an H2 ## AC, ## Acceptance Criterion, ## Elfogadási feltételek, ## Elfogadási kritériumok to ## Acceptance Criteria and a * [ ] / + [ ] item under it to - [ ], and say so (stderr; normalized in --json and REST).
  • A near-miss (### Acceptance Criteria, ## Acceptance Criterias, a 1. [ ] item) gets MISNAMED_SECTION with data.canonical, for every ticket type.
Details1 items
  • Only when there is no ## Acceptance Criteria yet and the variant is there once; ## AC (MVP) and deeper headings never move. A title naming several suffixed sections: ERR_BODY_SECTION_AMBIGUOUS on a write; a reader takes the first.

Commands on this page#

Generated from the registry: src/aitodo/api/selfdoc_entries/loop.py · loop.record, loop.sectionsv0.1.298