feat(8246): the code index links each test to what it guards, and can say redundant or unused
CI & Build / Plugin hooks (push) Successful in 20s
CI & Build / Python lint (push) Successful in 3s
CI & Build / TypeScript typecheck (push) Successful in 41s
CI & Build / Python tests (push) Failing after 2m8s
CI & Build / integration (push) Successful in 2m24s
CI & Build / Build & push image (push) Skipped
CI & Build / Plugin hooks (push) Successful in 20s
CI & Build / Python lint (push) Successful in 3s
CI & Build / TypeScript typecheck (push) Successful in 41s
CI & Build / Python tests (push) Failing after 2m8s
CI & Build / integration (push) Successful in 2m24s
CI & Build / Build & push image (push) Skipped
Every coverage refresh now reads, for each test in a bound repo, which product shapes its body exercises: through module aliases and imports, following test helpers, with mocked names left out and shapes most test files reach dropped as hubs. Tests in different files that guard exactly the same set form a group. The project page lists the groups and a person can mark one test redundant, naming the test that covers it, or keep them all with a reason. Agents get test_guard_groups and review_test_group, and classify_shapes takes the two new removal verdicts, redundant (with covered_by) and unused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "grimoire",
|
||||
"description": "Grimoire for Claude Code: connects the grimoire MCP server, adds the hooks that deliver live project state and relevant records at the right moment, ships the shared client-neutral Grimoire skills (using-grimoire, writing-plans, reporting-back, systematic-debugging, verification, brainstorming, reusing-code, shape-accounting, family-canon), and syncs your saved Grimoire Processes as skills (/grimoire:sync).",
|
||||
"version": "2026.11.28.2315",
|
||||
"version": "2026.12.01.0217",
|
||||
"author": {
|
||||
"name": "Bryan Van Deusen"
|
||||
},
|
||||
|
||||
@@ -24,6 +24,10 @@ row carries a status:
|
||||
unreachable from any other file). Accounted for without a
|
||||
judgment; still proposed against, grouped and flagged; any judgment you
|
||||
make overrides it. Not the todo.
|
||||
- `redundant` — should be removed: `covered_by` names the shape that already
|
||||
does its job. **Reason required.** Delete the code; the next sync retires
|
||||
the row.
|
||||
- `unused` — should be removed: nothing needs it. **Reason required.**
|
||||
- `unclassified` — nobody has judged it yet. **This is the todo list.**
|
||||
|
||||
## The loop
|
||||
@@ -181,6 +185,16 @@ Three questions the ledger answers mechanically:
|
||||
one and record the verdict with `classify_shapes` — `instance` if it is,
|
||||
otherwise what it actually is.
|
||||
|
||||
## Tests that guard the same thing
|
||||
|
||||
Every refresh links each test to the shapes its body exercises (mocks
|
||||
excluded), and the coverage line's "N test groups guarding the same thing —
|
||||
test_guard_groups" counts tests in different files that guard exactly the
|
||||
same set. A group is a candidate: read the tests, then mark one `redundant`
|
||||
with the test that covers it, or `review_test_group` with what each checks
|
||||
that the others don't. Each test's `signals` (signature, mock-only,
|
||||
source-text) are evidence for that reading, never a verdict.
|
||||
|
||||
## What this buys
|
||||
|
||||
Divergence becomes mechanical: when button B appears where button A is canon,
|
||||
|
||||
Reference in New Issue
Block a user