village-builder

VB-1619: Independent review: a fresh reviewer checks a task’s diff against its task and design before the PR, against a held-out control

Status: done (2026-11-24) Priority: 2 Size: L Design ref: none (agent workflow). AGENTS.md, Taking a task and Surfacing; .claude/agents/vb-task.md; docs/review-agent-workflow.md, sections 6 and 8; docs/agents/README.md, docs/agents/worker.md (section 1); tools/inbox.js, tools/brief.js, tools/same.js, tools/agent-usage.js, tools/usage-page.js; backlog/VB-254.md, VB-255.md, VB-485.md (the reviews of 16 November) Goal: An implementing agent’s code and tests can agree with each other and still rest on one misreading of the task or the design. The hard checks cannot catch that, because the tests were written from the same reading. Before a task’s work is merged (before a single-task session opens its PR, or before an orchestrated run merges a sub-agent’s branch), an eligible task gets one review by a vb-review sub-agent with a fresh context. The reviewer never sees the implementer’s conversation or reasoning. It reads the task as it stood before the work, the design sections that are its authority, the architecture’s rules, the diff and the evidence that tools have already computed. It reports where the change is wrong, in three grades: it finds semantic defects; it does not repeat checks and does not rewrite. The cycle is bounded at one review and one revision. Whether review pays is measured against a held-out control: a third of eligible tasks, chosen by a hash of the ID, get no review. The run files record each task’s arm, the review’s cost and what it found, and escaped defects are traced through a new optional Cause: header. Acceptance criteria:

Evaluation method (fixed now; the evaluation task copies it):

Notes: