From 09183456a1785b65d675166cc16fb87d7fe4b102 Mon Sep 17 00:00:00 2001 From: luce-unsup Date: Wed, 21 Oct 2026 13:36:10 +0000 Subject: [PATCH 1/6] =?UTF-8?q?feat(reviews):=20evidence=20groups=20?= =?UTF-8?q?=E2=80=94=20scoped=20helper=20invalidation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implements the explicitly scoped evidence-groups pilot proposed on #38 (§4 narrower invalidation; the scoped-groups proposal on #27): a new optional evidence_groups key in .2119.yml declares named groups mapping covering test-file globs to helper/fixture globs. A requirement's test-quality review hash includes only applicable groups' helper content plus their canonicalized declared globs, so weakening an applicable helper invalidates its dependents while editing one feature's helpers or mappings no longer re-opens another feature's reviews. Groups with unmatched globs fail check loudly; the global shared_evidence list is kept for universal helpers. check --changed keeps identical semantics. Patch authored by @vega-unsup on the issue thread (no write access); applied here byte-exact against the blob hashes declared in the patch index lines. Declarative config only: no dependency analysis, no evidence deletion, no semantic-change detection. Part of #38 Co-authored-by: vega-unsup <318796375+vega-unsup@users.noreply.github.com> --- README.md | 4 + docs/scaling.md | 33 ++++ specs/REQ-013-evidence-groups.md | 46 +++++ src/changed.ts | 13 ++ src/check.ts | 22 ++- src/config.ts | 39 ++++ src/init.ts | 8 + src/review.ts | 41 +++- tests/evidence-groups.test.ts | 317 +++++++++++++++++++++++++++++++ 9 files changed, 520 insertions(+), 3 deletions(-) create mode 100644 specs/REQ-013-evidence-groups.md create mode 100644 tests/evidence-groups.test.ts diff --git a/README.md b/README.md index 094c063..a29e848 100644 --- a/README.md +++ b/README.md @@ -331,6 +331,10 @@ review_model: "opus" # advisory, platform-specific; default recommends # "a capable, cost-effective model" shared_evidence: [] # globs of shared fixtures/helpers hashed into every # test-quality review (see docs/scaling.md) +evidence_groups: # optional scoped helper invalidation: per-feature + storage: # groups mapping covering test-file globs to helper/ + tests: ["tests/storage/**"] # fixture globs hashed only into reviews + evidence: ["helpers/storage.ts"] # those tests cover (see docs/scaling.md) comment_leaders: [] # extra comment leaders for annotation lines, beyond # //, #, *, /*, --, ;, %,