From 7c7a1a7ab996f35e54bceebb86710dbd79b41a7a Mon Sep 17 00:00:00 2001
From: Bryan Van Deusen
Date: Tue, 1 Dec 2026 02:49:06 -0500
Subject: [PATCH] fix(8249): test groups come smallest first, and a big one is
read as a feature area
A group is the set of tests reaching the same code from different files. A
test that drives a feature through its one entry point reaches exactly that
entry point whatever it checks, so the largest groups are a feature tested
from many files, not copies. Listing them first buried the two- and
three-test groups where one-for-one duplicates are. The readout, the tool and
the panel now list smallest first; each group says copies or area and how
many files it spans, and the panel tells an area to fold its scattered cases
into one file. Plugin 2026.12.01.0748.
Co-Authored-By: Claude Opus 5.5
---
frontend/src/components/TestGuardReview.vue | 10 ++++++-
plugin/.claude-plugin/plugin.json | 2 +-
plugin/skills/reviewing-tests/SKILL.md | 6 +++++
src/grimoire/mcp/tools/shapes.py | 14 ++++++++--
src/grimoire/services/test_guards.py | 29 +++++++++++++++++----
tests/test_test_guards.py | 10 +++++++
6 files changed, 62 insertions(+), 9 deletions(-)
diff --git a/frontend/src/components/TestGuardReview.vue b/frontend/src/components/TestGuardReview.vue
index 4fc96e9f..86f879f8 100644
--- a/frontend/src/components/TestGuardReview.vue
+++ b/frontend/src/components/TestGuardReview.vue
@@ -21,6 +21,8 @@ interface GroupTest extends ShapeRef {
}
interface Group {
key: string;
+ kind: "copies" | "area";
+ files: number;
guards: ShapeRef[];
tests: GroupTest[];
}
@@ -145,6 +147,10 @@ watch(() => props.projectId, load);