village-builder

Writing a task

Every task is written the same way, wherever it is written (VB-1677): by a session with Kim, a /task session, a plan task, the project manager, the reviewer, the nightly orchestrator from a sub-agent’s note, or a vb-task sub-agent through that note. The rules for statuses, order, archs and phases are in BACKLOG.md, “How this backlog works”; this page is how to write one task so that an agent can take it alone, and a tool can tell what it may run beside.

How

The file

# VB-NNN: <name>
Status: ready | blocked | needs-review | done
Waits for: VB-NNN, Kim          (blocked only)
Cause: VB-NNN                   (a repair: the task whose change brought the defect; optional)
Priority: 1 | 2 | 3
Size: S | M | L
Arch: <key>                     (inside an arch only, with Phase)
Phase: plan | implement | wrap-up
Design ref: <design.md sections, docs/plans/..., or "none (code structure)">
Touches: <what it will edit: below>
Goal: <one sentence: what is true when it is done>
Acceptance criteria:
- [ ] <one checkable thing a line>
Notes:
- <date>: <decisions, reasons, what is left: at most ten lines>

tools/backlog.js keeps the lines above Design ref: in this order and the tables in step; tests/backlog.js checks them.

Touches: what the task will edit

The line says which functions the task will edit, so that tasks that edit different functions run side by side and tasks that edit the same one run one after another (VB-1678). Merges conflict where two branches edit the same lines; replayed over the merges since 15 November, function level flags 41% fewer pairs than file level and misses no conflict (docs/plans/VB-1677-conflicts.md).

Touches: sim/jobs (allot, lookForWork); page/words (showPawn); tests/jobs.js; new sim/wells; new tests/wells.js

To write it, find where the change goes: the module map (grep -rn "^// @sys" src), the function (grep -n "const name = \|function name("), and the tests that check it. A line that is roughly right is worth more than none: the agent that takes the task corrects it before its first edit (.claude/agents/vb-task.md, step 3), and each merge reports the declared against the actual. It replaces the free-text “runs beside” and “one at a time with” notes of older tasks, which stay as they are.