# Build a feature

## When to use

New or changed behavior needs building, and the decision to build it is made.

## Before you start

- A work record with an outcome, acceptance criteria, and a declared exit. See [Start a task](https://handbook.askre.page/playbooks/start-a-task.md).
- An isolated workspace where you can run the product. See [Make the product runnable](https://handbook.askre.page/working-with-agents.md#make-the-product-runnable).

## Steps

1. Find what the change touches: invariants, callers and consumers, data changes, external effects, and places where old and new versions run together.
2. Split risky steps into separate changes. A database migration follows [expand, transition, contract](https://handbook.askre.page/shipping.md#database-migrations).
3. Map each acceptance criterion to a check and an environment.
4. If you delegate parts, give each worker a disjoint output, its own environment, and a [delegation brief](https://handbook.askre.page/working-with-agents.md#delegate-bounded-units). You integrate the parts.
5. Implement with focused checks on the real user journey.
6. Never change the success criteria to fit the implementation. If a criterion is wrong, ask the product decision owner.
7. Exercise the acceptance criteria and the relevant failure, security, and compatibility cases on the exact candidate.
8. Write the [evidence record](https://handbook.askre.page/reference/templates.md#evidence-record), including what was not checked.
9. Continue with [Ship a change](https://handbook.askre.page/playbooks/ship-a-change.md).

## Done when

The change is verified on the exact candidate, and its evidence record is complete.

## Stop and ask when

- The change alters the outcome, the audience, the risk, external effects, or a commitment. Ask the product decision owner.
- A criterion cannot be verified. Propose a check or a smaller scope.
- The change needs a migration, a new dependency, or a change to a shared contract that the brief does not cover.
