← Agent workflows guides

How to review an agent plan against a spec

How-To Agent workflows Intermediate 1041002HOWTO-1041002

HOWTO-1041002Agent workflowsIntermediate

This guide shows you how to review an agent’s plan before implementation in a spec-driven development workflow.

The goal is not to make the plan longer. The goal is to catch wrong authority, missing requirements, broad edits, and ambiguous decisions while the work is still cheap to change.

Short answer

Compare the plan to the governing SpecDD contract. Approve only when the plan names the relevant spec, proposes edits inside Can modify or Owns, preserves inherited Must not and Forbids, satisfies Must, uses Done when or scenarios for checks, and calls out unresolved decisions.

When to use this guide

Use this guide when:

Steps

1. Identify the plan’s target

The plan should have a clear subject:

Plan the Itinerary validation change.

When reviewing, ask: which spec, feature, task, or behavior is this plan actually about?

If the plan cannot answer that, it is not ready. A plan for “the trip area” may include too much. A plan for “the missing-place validation task” can be checked against a local contract.

2. Check the writable scope

Look for Can modify first. If Can modify is absent, use Owns as the modification boundary.

Spec: Itinerary

Owns:
  ./itinerary.js
  ./itinerary.test.js

Can read:
  ../storage/trip-storage.sdd

A correct plan can propose edits to itinerary.js and itinerary.test.js. It can read the storage spec for context. It should not edit storage files unless another applicable local spec grants authority.

Reject or revise the plan if it proposes:

3. Check parent and local constraints together

SpecDD uses vertical inheritance. Parent specs provide context and constraints. Child specs add or narrow them.

This means a plan must preserve:

If a parent says the trip area must not manage bookings, an itinerary-level plan cannot add booking behavior even if the local itinerary spec does not repeat that rule.

4. Map plan steps to required behavior

Every meaningful implementation step should connect to a spec rule, task, scenario, or completion criterion.

Useful plan step:

Add validation so a missing place name fails before the itinerary item is stored.

Weak plan step:

Improve itinerary validation.

The first is reviewable against Must. The second leaves room for extra behavior.

5. Look for overreach

Plans often go wrong by adding work that sounds adjacent:

SpecDD plans should be small enough that a reviewer can compare them to the spec. If the plan adds scope, ask for a narrower revision:

Narrow the Itinerary validation plan.

6. Check verification

The plan should name the checks that prove completion.

When a spec has:

Done when:
  Missing-place behavior is covered by a check.
  Existing itinerary ordering still passes.

the plan should include a missing-place check and an ordering regression check, or explain why one cannot be run.

Do not accept “run tests” as enough if the spec names a particular behavior and the plan never says how that behavior is covered.

7. Decide approve, revise, or stop

Use three outcomes:

For approval:

Implement the approved Itinerary validation plan.

For revision:

Revise the Itinerary validation plan.

For ambiguity:

Pause the Itinerary change and list the unresolved decisions.

Review checklist

Before implementation, ask:

Common mistakes

How to verify the result

You reviewed the plan effectively when:

← Agent workflows guides