GitNexus/gitnexus-claude-plugin/skills/gitnexus-impact-analysis
Fadhlaoui Raed 9696401f1e
fix(impact): replace WILL BREAK wording and pin the risk table to the scorer (#4116)
* docs(impact): replace WILL BREAK wording and pin the risk table to the scorer

Depth-one dependents were presented as certain breakage. A graph edge is a
strong review lead, not proof that a caller fails, and listings are a lower
bound on partial or truncated walks and across dynamic dispatch, DI or
cross-language calls. Label d=1 as "DIRECT — REVIEW FIRST" and say so.

Add a test that checks every documented threshold boundary in the impact
skill's risk table against scoreImpactRisk, so the docs and the runtime
cannot drift apart again.

Refs #2975

* test(impact): one exact case per documented risk boundary

Build one it.each case for every threshold in the impact skill's risk
table, at the bound and one below it. The expected level is read from
the table and the actual level comes from scoreImpactRisk, so each case
has a single toBe and a name that says which boundary drifted. Inputs
keep total reach at or above the direct count.

* fix(mcp): drop WILL BREAK from the impact tool and pin incomplete-evidence risk

The impact skill no longer calls depth-one dependents certain breakage,
but the MCP server still did: the impact tool description told clients
"d=1 callers/importers WILL BREAK" and the next-step hint after every
impact result said "Review d=1 items first (WILL BREAK)". Agents read
these more often than the skill. Use the skill's wording in both, and
say that depth is graph distance and the listing a lower bound on
partial, truncated or dynamic-dispatch results.

Cover the second half of the #2975 acceptance test: incomplete evidence
must never read as a complete LOW. For every documented boundary, the
same input with an incomplete walk (upstream) or truncated enrichment
(downstream) must score UNKNOWN where the table says LOW or MEDIUM, and
keep HIGH/CRITICAL. A runtime-text test keeps WILL BREAK out of the tool
description and the hint.

Refs #2975

* fix(mcp): name impact depth-1 items by direction and require every risk criterion

The impact next-step hint called d=1 items "direct dependents" on every
call, but on a downstream walk they are what the symbol depends on. Say
"direct dependencies" when direction is downstream.

The boundary cases were built from whatever bounds the risk table lists,
so deleting a criterion (say "5 processes" from CRITICAL) removed its
cases and the test still passed. Probe scoreImpactRisk one axis at a
time instead: the smallest value that reaches each level must equal the
smallest bound the table documents for that level or a higher one.

Refs #2975

* fix(mcp): describe impact depth-1 items for both directions

The impact tool description called d=1 results callers/importers, which
is only true upstream. The next-step hint now names them by direction,
so the two disagreed on a downstream walk. Say what d=1 holds in each
direction, and pin it in the runtime-text test.

Refs #2975

* docs(impact): say what the depth table lists on a downstream walk

The skill's depth table describes d=1 as direct callers/importers, which
holds upstream only. The skill also documents downstream thresholds, and
the MCP tool description and hint now name d=1 by direction. Add one
sentence so the skill agrees with them, in all four copies.

Refs #2975

* fix(mcp): call impact depth-1 items dependents and dependencies

The impact tool description named d=1 items callers/importers upstream
and callees/imports downstream, but the default walk also follows
EXTENDS and IMPLEMENTS, so d=1 can hold subclasses, implementers, base
types or interfaces. Say dependents and dependencies instead. The same
description told every caller to "review direct callers before
editing", which a downstream walk never returns; scope that sentence to
an upstream walk.

Use the same terms in the skill's depth table and its note on
downstream walks, in all four copies, and pin the description wording.

Refs #2975

* docs(impact): clarify upstream depth two

* test(impact): guard shipped skill copies

* test(impact): pin downstream low guidance

---------

Co-authored-by: Abhigyan Patwari <126312502+abhigyanpatwari@users.noreply.github.com>
Co-authored-by: abhigyanpatwari <abhigyanpatwari@users.noreply.github.com>
2026-12-01 14:27:39 +00:00
..
mcp.json chore: release v1.6.12 (#3272) 2026-09-12 22:16:01 +01:00
SKILL.md fix(impact): replace WILL BREAK wording and pin the risk table to the scorer (#4116) 2026-12-01 14:27:39 +00:00