Cards and phases
A card is one small piece of work with a checklist for done. A phase is a group of cards that leaves something working.
The flow (optional)
Project memory works without this. Turn the flow on with npx groundwork-ai flow on.
A card is one small piece of work with a checklist for "done". A phase is a group of cards that together leave something working. The build loop takes one card at a time.
A card
A markdown file in .groundwork/cards/:
---
id: 1.2
title: Voting
phase: 1
status: awaiting-approval
depends_on: [1.1]
---
## Goal
A visitor can vote once for next month's book.
## Acceptance criteria
- [ ] A visitor with the link can cast one vote
- [ ] A second vote isn't possible
- [ ] Results stay hidden until the vote is closed
## How to check
- Run `npm run dev` and open http://localhost:3000/vote
## Evidence
- Tests: `npm test voting` → 12 passed ([output](../evidence/1.2/test-output.txt))
- Reviewer: all criteria met; checked against L-003, L-006
## History
- 2026-09-24 rejected: "results leak before the vote closes" → back to implementer| Section | Filled by | Purpose |
|---|---|---|
| Goal | planner | What is true when the card is done |
| Acceptance criteria | planner (and gw-ui-spec for UI) | Checkable statements; each becomes a test |
| How to check | reviewer | Plain steps for you to see it working |
| Evidence | tester, implementer, reviewer | Links to proof in .groundwork/evidence/<card-id>/ |
| History | everyone | One line per event, including rejections and judgment calls |
Keep cards short: every role rereads them. npx groundwork-ai doctor flags a card past about 1,500
tokens.
Statuses
You always see the plain label.
| Status | You see | Meaning |
|---|---|---|
todo | to do | Not started |
testing | being tested | The tester is writing failing tests |
implementing | being built | The implementer is making them pass |
review | in review | The reviewer is checking the evidence |
awaiting-approval | waiting for you | Your turn |
done | done | Approved and committed |
rejected | sent back | You sent it back; it re-enters the loop |
The allowed moves are in the build loop.
Order
The runner picks the lowest-numbered card that is todo or rejected and whose depends_on cards
are all done. 1.2 comes before 1.10. A blocked card is never started; /gw says what blocks it.
What a good plan looks like
- The smallest useful version comes first. The rest is a later phase.
- Each phase leaves something working.
- Each card fits one session.
- Every criterion is checkable. "Works well" isn't one.
- A stack choice gets a decision record and your answer before cards depend on it.
On an existing project, the planner plans one change at a time, never the whole app.
Commits
Each approved card is committed as [1.2] Voting, or in the commitFormat you set. git log becomes
the project's progress trail.