docket-ship
Contents

The doc model

Specs, decisions and tickets, what each holds, and the rules that keep them current.

docket-ship has three kinds of doc, each holding one sort of information. A spec says how the system works now. A decision says why one choice was made. A ticket says what is left to do. Because each fact has one home, a change touches a known set of files, and the checker can tell when they disagree.

Kind Folder Holds Changes how
Spec docs/spec/<slug>.md The design of one area, as it works now Edited in place, always current
Decision docs/decisions/D-NNNN-<slug>.md One choice: its context, what was chosen, and what follows Frozen once accepted; replaced by a new decision
Ticket docs/work/T-NNNN-<slug>.md Work that is not done: build, fix, test, investigate Status changes until done or dropped

Specs

One spec covers one area of the system: orders, sign-in, the export format. It describes the design as it is today and nothing else. There is no "previously" in a spec, no "not built yet" and no "we decided". History lives in decisions and unfinished work in tickets, so a spec can be trusted as the current state.

A spec cites the decision behind each choice, inline:

Orders take no payment. [D-0014]

That citation is what makes a later change traceable to its cause. When a spec gets long, split it: one spec per area, roughly 300 lines at most.

A spec's status is draft while it is being designed, active once it describes the system, and retired when the area is gone.

Decisions

A decision records one choice in three short sections: Context (what forces the choice), Decision (what you do) and Consequences (what follows, good and bad). It lists the specs it shapes in affects.

A decision starts as proposed and becomes accepted once the call is made, or rejected. After that it is frozen. To change course you don't edit it; you write a new decision with supersedes: [D-0014] and run:

docket-ship supersede D-0014 D-0020

That marks the old one superseded and lists every spec paragraph that cites it, so you can rewrite them in the same commit. The checker warns when an accepted decision has been edited since the last commit, and errors when a spec still cites a superseded one.

A decision's date is when it was made, only as precisely as you know it: 2026-11-12, 2026-11 or 2026, or empty when nobody knows. When you write down a decision made earlier, set recorded to the day you wrote it.

Tickets

A ticket is any work that isn't done: a feature to build, a bug, a missing test, an open question. Its body says what "done" means, under ## Done when, as items someone could check. It lists the specs it builds in specs, the decisions behind it in decisions, and other tickets it waits for in blocked_by.

A ticket goes from open to doing to done, or to dropped with a reason. When it closes, add one line under ## Outcome saying what shipped.

Specs never list their tickets. The index works that out from the tickets themselves, so the list of open work on a spec is never stale.

Decisions are numbered D-0001, D-0002 and so on, and tickets T-0001. A spec's id is its slug, the filename without .md. docket-ship new hands out the next id, so you never pick one yourself.

Docs link to each other by id: in header fields such as affects, specs and blocked_by, and inline in the text. The checker verifies every one of them. An id in backticks, like `D-0042`, is an example and isn't checked.

The index

docs/INDEX.md lists every doc in one line: its id, status, title and links, with each spec's open tickets beside it. It is generated by docket-ship index and by every docket-ship new, and never edited by hand.

Agents read the index first and open only the docs a task needs, instead of reading every doc in the folder.

The rules that keep docs current

  1. A spec states only the current design.
  2. A spec cites the decision behind each choice, inline.
  3. A decision is never rewritten after it is accepted. It is replaced.
  4. Work that isn't done is a ticket, never a note in a spec.
  5. Specs don't reference tickets. Tickets point at specs.
  6. Coding rules that apply to the whole project stay in CLAUDE.md or AGENTS.md, not in specs.
  7. Ids come from docket-ship new, and docket-ship check runs after every change.

These rules ship with the tool as docs/CONVENTIONS.md, the file agents read. docket-ship init --update keeps a project's copy current.

Edit this page on GitHub