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:
main on 10 November), each proposed as a hard check of correctness or as a target with a reported residual.docs/bench/), and what a PR and a task file must say about them.QUESTIONS.md; the tasks to build what is agreed, added to the backlog.Notes:
aea615a): the survey and the mechanism are docs/gates.md: 30 checks, 15 proposed to stay hard (correctness),
13 to become targets with reported residuals, 2 process rules reworded. Recommended: one target record and one file of residuals,
docs/bench/targets.jsonl, with a reader that writes targets.md; a target prints in, out or noise and never fails; noise from seeds
(standard error) and, for timings, the share of the whole step in paired, alternated runs (VB-227); only hard checks stop a merge, and
Checks come back on pull requests with them. Seven questions in QUESTIONS.md (“VB-261”); tasks VB-262 to VB-268, blocked on Kim.
AGENTS.md, docs/roadmap.md and BACKLOG.md are not edited here: docs/gates.md, section 3, says what VB-267 changes in each.npm test (86 scripts) passes; npm run verify passes but for tests/history.js (local fixtures of d196f68, stale, used
as saved): seven ratios over, routeExpand 1.462, routeRefresh 1.856, walkTies 1.436, roundPairs 10.24, heirRank 1.473, recordFold 1.558,
roundRank 1.414, the values VB-201 and VB-227 reported; target 1.25, residuals as listed, no baseline raised. node tests/scaling.js,
node tests/bands.js, node tests/counters.js and node tests/golden.js pass. tools/bench.js and tools/bands.js not rerun: their
last records (bcd9bf2) are quoted. No test, baseline or workflow changed; the diff is docs/gates.md, QUESTIONS.md and the backlog.