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.
node tools/backlog.js new name=... status=blocked|needs-review|ready
priority=... size=... summary=... [arch= phase= waits= cause= ref= goal= touches= criteria=]. With its goal, ref, touches and criteria
(a line each) it starts ready; otherwise fill in what the file says “(to write)”, then node tools/backlog.js set VB-NNN status=ready
when nothing undecided is left. It starts needs-review only for a question only Kim can answer, with its block in QUESTIONS.md
(tests/backlog.js checks it).vb-task sub-agent): node tools/inbox.js note VB-NNN task id=<a reserved ID> name=... priority=... size=...
summary=... status=ready|blocked|needs-review [goal= ref= touches= waits= ...] --body -, the criteria as the body; ready with its goal, ref,
touches and criteria, blocked with waits=, needs-review only with a question note about it; the orchestrator writes the file (inbox.js apply).backlog.js new takes the next free one above the task files of this checkout and of the branches pushed lately; a run’s
sub-agents use the IDs inbox.js start reserved. One that met main’s is moved before main is merged: node tools/renumber.js --onto origin/main.# 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.
AGENTS.md, Deciding without Kim) knows what to keep.BACKLOG.md).needs-review, with the question and a proposed answer in QUESTIONS.md.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
sim/jobs is src/sim/jobs.js), any other file by its path; items separated by “; “.allot, KINDS, a new wellJob): the ones whose lines
change, not the ones it reads. A module alone means “somewhere in it”.new before a module or file the task creates.@sys header, and the tables marked // @merge union: they
merge by themselves (tools/merge.js).src/manifest.json, src/layers.json, src/owners.json,
src/page.json, src/vb.js, src/sim.js, tests/suites.js, tests/counters.json, and the bookkeeping (BACKLOG*.md,
QUESTIONS.md, docs/tuning.md, docs/agents/changes.md).Touches: unknown (<reason>) for a plan task, or an investigation whose cause is not yet found.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.