311. Tool contracts get rule ids R<tool>.<n> (2026-11-22)
- Call. A rule in
spec/tools/<tool>.mdis cited as(R<tool>.<n>), e.g.(Rcli.1)forcpl's exit codes, and a case cites it as// rule: cli.1.scripts/conformance-coverage.pyreadsspec/tools/besidespec/core/and gates those rules the same way. - Why. Tool behaviour (exit codes,
--jsonshapes) had no citable rules, so a tool regression broke no rule and coverage could not see it; numbered chapters belong to the core, and a tool name reads better than a fake chapter number. - Reverse. Drop the
(R<tool>.<n>)marks fromspec/tools/, thetoolsglob and the[a-z]+alternative fromRULE_DEF, and the// rule: <tool>.<n>lines fromspec/conformance/tools-cli/.