village-builder

VB-261: Plan: gates become targets with residuals

Status: done (2026-11-10) Priority: 1 Size: S Design ref: docs/roadmap.md, section 5 (the budget and the rules for cost); AGENTS.md, Working rules and Rules for cost. Kim, 10 November 2026. Goal: Kim, 10 November 2026: we need to rethink the gates. We cannot have hard gates in this phase of development; targets, and their residuals, are good. The Checks workflow was turned off for pull requests the same day (it runs by hand). Occasion: PR 96, where tests/history.js failed on main with six cost ratios over baseline, agents added three ceilings above the 1.25 limit to tests/cost-baseline.json (oppAsk, planReview, cookFarm) and left recordFold failing, VB-201 stopped on a 5% relative gate over 8 women in 204, and VB-227 could not show a 3 ms cut on a bench that varies 146 to 211 ms a day. Survey every gate: tests/history.js and tests/scaling.js and cost-baseline.json, the baselines that only fall (lint, ownership), tests/bands.js, tests/counters.json, the demographic gate, the budget’s shares in tools/bench.js, the golden file, and the rule that a task is not done until Checks pass. For each: whether it stays a hard check (correctness: build, lint, golden, determinism, saves, invariants) or becomes a target reported with its residual; where residuals are recorded and shown over time; what a PR must say. Questions for Kim with proposed answers; then the tasks to build it, and AGENTS.md and roadmap section 5 brought in line. Acceptance criteria:

Notes: