Requirements
A requirement is a list item that starts with req~name:. Requirements nest
like any list, or point at the ones they need with Needs:. Tasks say which
requirements they implement with covers::, and Facet shows which
requirements are uncovered, covered or done.
## Requirements
- req~offline-unlock: A bike unlocks even when the station is offline. - req~unlock-log: Offline unlocks are uploaded when the link is back.- req~monthly-pass: Riders can buy a monthly pass in the app. Needs: req~rider-account- req~rider-account: Riders sign up with an email address.
## Work
- [x] Local unlock codes [covers:: req~offline-unlock]- [ ] Upload queue [covers:: req~unlock-log]- [ ] Sign-up screen [covers:: req~rider-account, req~monthly-pass]Writing requirements
Section titled “Writing requirements”- A requirement is a list item starting
req~name:, followed by its text. The name is lowercase letters, digits and hyphens:[a-z0-9-]+. - A requirement is referenced by its own name,
req~offline-unlock, without!. It does not need anid::. - Its children are the requirement items nested below it, and the
requirements listed in
Needs: req~a, req~b. Needs:is a property: the requirement-only spelling ofneeds::. It belongs to the property block, right below the title line, like any other property.- A name in
covers::orNeeds:that is not defined anywhere in the workspace is anunknown-requirementerror. - There are no revision numbers: git keeps the history.
Coverage
Section titled “Coverage”A task covers a requirement when its covers:: names it:
covers:: req~unlock-log. A covering task that is cancelled does not count.
Each requirement is in one of three states:
| State | When |
|---|---|
| uncovered | no task covers it, directly or through its children |
| covered | it is covered, but not done yet |
| done | its covering tasks are all done (see below) |
- Coverage is explicit per requirement. A task that covers a parent requirement does not cover its children.
- A parent counts as covered when a task covers it directly, or when all its
children (nested items and
Needs:) are covered. - A requirement covered directly is done when all its covering tasks are done; its children do not change that. A requirement covered only through its children is done when they all are.
- Coverage is counted over the whole workspace, wherever the tasks are.
- A requirement that is uncovered gives an
uncovered-requirementwarning.
In the example above, req~offline-unlock is covered directly by a done task
and is done; req~unlock-log is covered; req~monthly-pass and
req~rider-account are covered by the open sign-up task.
The Requirements view shows coverage as a table
and a trace graph, and edits covers:: when a task is dragged onto a
requirement.