docket-ship
Contents

Doc headers

The header keys of specs, decisions and tickets, from the conventions that ship with docket-ship.

Every doc starts with a header in a small subset of YAML. These are the keys each kind of doc takes. This page is the "Frontmatter" section of the conventions that ship with docket-ship, as they stand in the current release.

Every doc begins with a header in a strict subset of YAML: one key: value per line, and lists only in the inline form [a, b]. Use no nesting, no multi-line values and no quotes unless the value contains : .

Spec

---
id: orders                # equals the filename without .md
type: spec
title: Orders
status: draft             # draft (being designed) | active | retired
summary: One line, written to be read in the index.
---

Decision

---
id: D-0014
type: decision
title: Order flow v1 takes no payments
status: accepted          # proposed | accepted | rejected | superseded
date: 2026-11-12          # when it was made: YYYY-MM-DD, YYYY-MM, YYYY, or empty if unknown
summary: One line.
affects: [orders]         # spec ids this decision shapes
supersedes: []            # decisions this replaces
superseded_by:            # set only by `docket-ship supersede`
tickets: []               # optional: the work it creates
recorded: 2026-12-03      # optional: the day it was written down, if later than date
---

date is when the decision was made, only as precise as you know it. When you write down a decision made earlier, such as while migrating old docs, give its real date at the precision you know (2026-09, or empty) and set recorded to today. Never put the day you wrote it in date.

The body has three sections, ## Context, ## Decision and ## Consequences, and should usually stay under 40 lines.

Ticket

---
id: T-0031
type: ticket
title: Build order flow v1
status: open              # open | doing | done | dropped
summary: One line.
specs: [orders]           # specs this implements or fixes
decisions: [D-0014]       # optional
blocked_by: []            # optional: ticket ids
assignee: anna            # optional: one name from people in docket-ship.cfg
priority: high            # optional: urgent | high | normal (default) | low
labels: [export, ui]      # optional: lowercase letters, digits and hyphens
---

The body says what "done" means. When closing a ticket, add one line under ## Outcome.

assignee, priority and labels are for teams; leave them out when working alone. An assignee must be listed in people: [anna, ben] in docket-ship.cfg: add a new person there before assigning them. Before adding a label, look at ## Labels in docs/INDEX.md and reuse one that fits; check warns when a label is a variant of one in use.

Edit this page on GitHub