Tasks template
Source: nodfirst/templates/tasks-template.md
<!--
TASKS TEMPLATE v0.5 — copy to specs/NNN-feature-name/tasks.md
Rules:
- Derive tasks from the approved spec and plan. Do not add behavior that is not in the spec (C1, C3).
- Each task is small: one coherent change that leaves the project building, linted, typed and tested (C9).
- Tests come first or together with the code, never after "later" (C5).
- Every task cites requirement IDs (R) and acceptance criteria (AC). Every R and AC must be covered by at least one task (C4).
- Order tasks by dependency, tests included (a test cannot depend on something built later). Prefer vertical slices that can be demonstrated.
- One deliverable per task: criteria of the same screen or rule that share code and tests go together; two forms with different rules or limits are two tasks.
- If the feature changes behaviour already covered by tests, the task that updates those tests comes first and stays green before and after.
- Default for every task, written once here and not repeated: tests for the covered AC come first or together with the code, at the level the plan gives; the task is done when they pass and the quality command is green. A task writes "Tests" or "Done when" only to add what the default does not say, and it must stay provable inside the task.
- Every task has "Depends on". Add "Requires human action" when the task needs something outside the repository.
- Plain characters, no HTML entities.
- The traceability check (every R and AC → task → test) is done before approval and shown in the report, not written here: `analyze` keeps the matrix.
- A done task gets at most one note line (`Note: …`); details go in the task's commit message.
- Remove all <!-- comments -->.
-->
# Tasks NNN: <Feature name>
- **Spec:** `specs/NNN-feature-name/spec.md`
- **Plan:** `specs/NNN-feature-name/plan.md`
- **Status:** Draft | Approved
## What you are approving
<!-- Write it last. At most five lines, in everyday words, in the language of the conversation (C12, C13): what changes for the people who use the product; what the agent decided on the human's behalf; what is left out; risks. Guided: only what the human can judge; technical choices in one line pointing to their section, said by their effect ("a test that sometimes fails is not retried, so problems are not hidden"), never by tool name or command. The human may approve from this box alone. -->
## Legend
- `[ ]` to do · `[~]` in progress · `[x]` done · `[!]` blocked (add a note)
- `[P]` can run in parallel with the previous task (no shared files or dependencies)
- **Requires human action:** work outside the repository (consoles, accounts, secrets, keys); listed under the task
## Phase 1 — Setup / foundation
<!-- Only what later tasks need (config, scaffolding, migrations, shared helpers). Keep minimal. -->
- [ ] **T1** <Short imperative title>
- **Covers:** R1 · AC1
- **Depends on:** —
- **Requires human action:** <only if needed>
- **Files / areas:**
- **Tests:** <only if the task adds something: an input chosen here, a prepared state>
- **Done when:** <only if more than the default: a human check, an observable result outside the tests>
## Phase 2 — Story slices
<!-- One group per user story, in priority order. Each group delivers something usable end to end. -->
### US1 — <title>
- [ ] **T2**
- **Covers:**
- **Depends on:**
- **Files / areas:**
## Phase 3 — Hardening
<!-- Edge cases from the spec, accessibility pass, security checks from the plan, offline/error states, documentation updates. -->
- [ ] **T-n**
## Notes / blockers
-
## Open questions
<!-- Plan or spec gaps found while writing tasks: report them, do not invent a mechanism. -->
## Interpretations
<!-- Every reading of an ambiguous instruction. -->
## Approval
- Approved by:
- Date: