~/groundwork

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
SectionFilled byPurpose
GoalplannerWhat is true when the card is done
Acceptance criteriaplanner (and gw-ui-spec for UI)Checkable statements; each becomes a test
How to checkreviewerPlain steps for you to see it working
Evidencetester, implementer, reviewerLinks to proof in .groundwork/evidence/<card-id>/
HistoryeveryoneOne 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.

StatusYou seeMeaning
todoto doNot started
testingbeing testedThe tester is writing failing tests
implementingbeing builtThe implementer is making them pass
reviewin reviewThe reviewer is checking the evidence
awaiting-approvalwaiting for youYour turn
donedoneApproved and committed
rejectedsent backYou 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.

On this page