From 7fd76fc06ce4ce68daa7c85919194f6bf9ec8f14 Mon Sep 17 00:00:00 2001 From: bdeshi Date: Fri, 31 Jul 2026 02:48:52 +0600 Subject: [PATCH] approve x/image and re-cost the core ceiling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ADR-0040 puts the dependency approval on the record, as hard rule 2 requires: the standard library decodes JPEG, PNG and GIF but cannot resize, and image/draw scales only by nearest neighbour, which is visibly wrong on the photographic downscales this site is made of. Four modules against a cap of six, no transitive dependencies, and WebP decoding comes along. AVIF still has no decoder anywhere, so it will pass through untouched. ADR-0041 raises CORE_LOC_MAX 2000 → 2800. The old figure was costed before any code existed, for the spine and the render path, and never budgeted what cmd/ will hold: `check` ~250, `new` ~100, `-dev` ~100, change detection ~100, page cache ~200. On a core already at 1870 that is ~2620 before anything optional, so the gate was going to fail work nobody would call excess. A costing error corrected, not discipline loosened. The ADR and HARNESS.md both say what a *second* raise would mean: that something belongs in internal/ext/. Two ceilings exist so "core stops growing, ext rises" is observable, and that stops being true the moment leaves are let into core. --- HARNESS.md | 6 ++++++ docs/decisions.md | 31 +++++++++++++++++++++++++++++++ scripts/allowed-deps.txt | 1 + scripts/budgets.env | 8 ++++++-- 4 files changed, 44 insertions(+), 2 deletions(-) diff --git a/HARNESS.md b/HARNESS.md index 1eb63f5..a36a69d 100644 --- a/HARNESS.md +++ b/HARNESS.md @@ -52,6 +52,12 @@ must do — not the theme. `verify.sh` fails if the embedded reference theme cha changing, because in practice those two drift together — and it fails on a `