214. Architecture counts are shrink-only ratchets in the gate (2026-11-22)
- Decision.
scripts/debt-ratchet.pygates, besides the old file-size, TODO,#[ignore]and pending counts: dead edition references, names string-matched incrates/cpl-ir/src/lower/call.rs, std type names in IR/interpreter/codegen, copied fn bodies across files, forbidden shipped crate edges, the tree-walking interpreter, v0.2port.cpfiles, and directpython3calls in the gate andjustfile. Missing paths cited byARCHITECTURE.mdfiles are gated too, skipping paths.gitignorecovers (build output such asweb/out) and paths under a## Known debtheading (missing on purpose); the cold review files the rest with each lane. A new shipped crate edge, or a new.rsfile over 2,000 lines, now fails instead of warning. A deliberate increase is--updatein the same commit plus a line here.--showand--list NAMEprint the counts and offenders. - Why. Twelve lanes land in parallel; counts that can only go down keep each lane from adding the debt the architecture lane is removing. Warnings were ignored: 24 files over the cap had accumulated.
- Reverse. Drop counters from
COUNTERSinscripts/debt-ratchet.py(or their keys fromscripts/debt-ratchet.json, which skips them), and turn the new-file error back into a warning inevaluate. - Increase, 2026-11-22 (lint-fmt).
crates/cpl-lint/src/rules/mod.rs2,144 -> 2,146 lines formod literals;and its dispatch, which move L0506 out ofcrates/cpl-lint/src/rules/taste.rs(4,493 -> 4,410).