Where Things Live
Everything lives in the project’s repo, under /docs.
docs/
epics/
0000-epics.md # index of all epics
0001-user-authentication.md # an epic
0001-user-authentication/ # its stories
0010-login-form.md
0020-password-validation.md
evals/
auth.md # one file per product area
cart.mdNone of these files wrap lines. Each paragraph, list item and eval is one line, however long, and editors and viewers wrap it to fit the screen. Newlines separate paragraphs, list items, headings, table rows and code, never the words of one sentence.
Epics and Stories
Epics and stories are Markdown files in docs/epics/.
- Epics are named with a 4-digit number and a short slug:
0001-user-authentication.md. Each new epic is linked from the index,0000-epics.md. - Stories live in a folder named after their epic:
0001-user-authentication/. They are numbered in steps of 10 —0010,0020,0030— so stories split out or discovered later can slot in between. The numbering reflects the prioritization from the Product Planning stage.
An epic
# User Authentication
## Vision
What's the goal? What problem are we solving, and for whom?
## Context
Why now? What background does the team need?
## Scope
### In Scope
### Out of Scope
## Success Criteria
How will we know the epic is done, from the user's point of view?
## Dependencies
Anything this needs that doesn't exist yet — other teams, services, data.
## Open Questions
Anything unresolved. Issues raised during epic breakdown go here.
## Resulting Stories
- [Login form](0001-user-authentication/0010-login-form.md)The epic is written in Product Planning. Epic breakdown adds its stories to Resulting Stories, and each is checked off or struck through when it’s accepted — or, for a “Characterize story,” when its evals are committed.
A story
# Login Form
## Narrative
As a [role], I want [goal], so that [benefit].
## Acceptance Criteria
```gherkin
Feature: Login form
Scenario: Successful login
Given a registered user
When they submit valid credentials
Then they see their dashboard
```
## EARS Specifications
- `AUTH-E2E-001`
- `AUTH-INV-002`
## Implementation Plan
- [ ] Extract session handling into its own subsystem
- [ ] Add the login form
## IssuesA story’s sections show where it is. There’s no separate status to keep in sync.
- Empty EARS Specifications means not started
- An Implementation Plan with unchecked tasks means in Development
- A story tag means in Acceptance
- A checked-off story in its epic means done.
- A “Characterize …” story never gets a plan or a tag: it’s checked off as soon as its evals are committed.
- A rejected story’s tag is deleted and its EARS Specifications and Implementation Plan are emptied, so it reads as not started again.
Each section is filled in by a different stage:
- Narrative and Acceptance Criteria — Product Planning, during epic breakdown.
- EARS Specifications — Update Evals. It lists the IDs of the evals the story adds, changes or removes; the evals themselves live in
docs/evals/. - Implementation Plan — Redesign System. A plain checklist of tasks, checked off during Development.
- Issues — any stage, when someone gets stuck. See Issues.
Evals
Evals live in docs/evals/, one file per product area, grouped by kind. Each eval is one list item: its AREA-KIND-NNN ID, then its EARS text. Each one is checked by a test in the project’s own language. The tests always live in the project’s test directory. They have the eval’s ID in a @spec comment. A monitor that only runs in production points to its configuration instead. See Evals.
# Cart
## Invariants
- `CART-INV-003`: The system shall never allow a cart total below zero.
## End-to-end
### Removing items
- `CART-E2E-001`: When a shopper removes the last item, the system shall show an empty cart.
- `CART-E2E-004`: When a shopper removes an item, the system shall update the total.
### Checkout errors
- `CART-E2E-002`: If the shopper's card is declined, then the system shall show:
`Your card was declined. Try another card or contact your bank.`
## Monitors
- `CART-MON-001`: The system shall add an item to a cart within 200 ms at p95.
- Monitor: `config/monitors/cart.yml`A kind with many evals is split into groups under ### headings, one per command, flow or situation, so a reader can find the evals for a situation by skimming. Groups don’t change IDs: the next number is always the highest so far plus one, wherever the new eval goes. A long exact message goes on its own line, indented under its eval.
When an eval is retired, its line and its tests are deleted. IDs are never reused.
In the code
- Subsystems are marked with a
@subsystemcomment at their entry point. See Subsystems. - Tool commands for each Development step live in the project’s
CLAUDE.mdorAGENTS.md. See Tools.
In git
- Story tags mark the commit where a story’s evals all pass. Then it’s ready for acceptance:
story/0001-user-authentication/0010-login-form. See Commits and tags.