--- name: decide description: Draft and commit a decision record for a design or architecture choice made in this session, once it has survived implementation. Use at ship time, right before opening the pull request, when the branch made a decision worth recording. --- # Decide ## Does this decision earn a record? Both of these must be true: - An alternative was seriously considered -- not just the obviously correct way of doing something. - The consequence outlives this branch. If either half is false, there's nothing to record -- the choice just happened, it wasn't decided. ## When At ship time, once the decision has survived contact with the implementation -- never when it was first proposed. A decision that got reversed during implementation or review never becomes a record; it was a draft opinion, not something to archive. If the branch's plan, or its parent feature plan, already carries a `## Decisions` entry for this, promote that one rather than treating it as new. ## What to write Pick the next number: list `docs/decisions/` for the highest `NNNN-*.md` prefix and add one, zero-padded to four digits (`0001` if the directory doesn't exist yet). Slug the title in kebab-case. Write `docs/decisions/NNNN-slug.md` in the familiar Nygard shape: ```markdown # NNNN.