← Teams and process guides

How to keep specs and tickets aligned

How-To Teams and process Intermediate 1171005HOWTO-1171005

HOWTO-1171005Teams and processIntermediate

This guide shows you how to keep tickets aligned with SpecDD specs in a spec-driven development workflow without duplicating every detail.

Alignment matters because tickets are temporary delivery containers while specs are durable repository contracts. If they disagree, contributors and agents have to guess which one is true.

Short answer

Keep tickets and specs aligned by linking tickets to the relevant spec, moving stable behavior and acceptance criteria into .sdd files, tracking local implementation work in Tasks, updating specs in the same changeset as code when behavior changes, and checking alignment before closing the ticket.

When to use this guide

Use this guide when:

Steps

In the ticket, name the relevant spec in human terms:

Relevant spec: Itinerary

If your tracker supports links, link the spec file or pull request. Keep the ticket summary short; the detailed local contract belongs in the spec.

2. Move stable behavior into the spec

If acceptance criteria should guide future implementation, put them in .sdd form.

Ticket:

Reject an itinerary item when the place name is missing.

Spec:

Must:
  Reject itinerary items without a place name.

Scenario: missing place name
  Given the place name is empty
  When the person adds the itinerary item
  Then validation fails

Do not leave durable behavior only in a closed ticket.

3. Track local work in spec tasks

Use Tasks for local implementation work:

Tasks:
  [ ] Add missing-place validation.
  [ ] Cover missing-place validation in a test.

The ticket can track broader delivery. The local spec tracks the implementation packets that should stay near the behavior.

4. Update specs with code

When code changes behavior, update the spec in the same changeset.

Check for:

Do not leave spec updates as a follow-up after the ticket closes.

5. Review alignment before closing

Before closing a ticket, ask:

This review prevents the ticket from saying “done” while the spec says something else.

6. Handle changed scope explicitly

If the work changes during implementation, update one or both systems:

Do not silently use implementation as the source of truth.

Common mistakes

How to verify the result

Specs and tickets are aligned when:

← Teams and process guides