← Spec-writing technique guides

How to review a draft spec before using it

How-To Spec-writing technique Intermediate 1071011HOWTO-1071011

HOWTO-1071011Spec-writing techniqueIntermediate

This guide shows you how to review a draft SpecDD spec before using it to guide implementation in a spec-driven development workflow.

Draft specs can come from a human, an agent, a migrated document, or existing code. They are useful, but they should not be treated as project authority until someone checks whether they describe the intended behavior correctly.

Short answer

Review a draft spec for the right level, local ownership, correct intended behavior, explicit boundaries, inherited constraints, unresolved ambiguity, and testability. Accept the draft only when it is clear enough for humans and agents to implement and review without guessing.

When to use this guide

Use this guide when:

Steps

1. Check the subject and level

Ask:

If the draft is too broad, split it before implementation starts.

2. Check intended behavior

Read each Must, Must not, Handles, Raises, Returns, Scenario, and Example.

Ask:

Rewrite vague rules before they guide work.

3. Check authority and ownership

Look for:

Owns:
  ./itinerary-validation.js

Can modify:
  ./itinerary-validation.js
  ./itinerary-validation.test.js

Ask:

Authority mistakes are easiest to fix before code changes.

4. Check boundaries

Good drafts say what not to do:

Must not:
  Change destination search behavior.

Forbids:
  ../booking/*

Ask:

5. Check inherited constraints

Compare the draft against its parent context.

The draft must not:

If a conflict exists, resolve the spec conflict before implementation.

6. Check ambiguity

Mark unresolved questions explicitly:

Tasks:
  [?] Confirm whether blank place names are rejected or auto-filled from recent destinations.

Do not let a draft hide product, compatibility, security, performance, or ownership uncertainty inside confident language.

7. Check testability

Ask:

If there is no reasonable way to check the behavior, revise the spec.

8. Decide whether it is ready

Use one of three outcomes:

Do not implement against a draft that still contains blocking ambiguity.

Review checklist

Common mistakes

How to verify the result

The draft is ready when a reviewer can explain:

← Spec-writing technique guides