Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

fix(ci): restore the two guards that went red on main (#1653)

Raghav Chamadiya664ce88284e9
diff --git a/packages/server/src/repowise/server/services/c4_builder/labels.py b/packages/server/src/repowise/server/services/c4_builder/labels.py
index 584d3816b..a63c70162 100644
--- a/packages/server/src/repowise/server/services/c4_builder/labels.py
+++ b/packages/server/src/repowise/server/services/c4_builder/labels.py
@@ -59,6 +59,11 @@ _EDGE_VERB: dict[str, str] = {
# surface the single highest-priority verb rather than concatenating tokens.
_VERB_PRIORITY: tuple[str, ...] = (
"calls",
+ # Below "calls": a pair with both holds a direct invocation, which is the
+ # more precise claim. Above the heritage verbs, because where a pair has
+ # both, the dispatch says what actually runs and "implements" only says
+ # the types line up.
+ "dispatches to",
"inherits from",
"implements",
"imports",
diff --git a/tests/unit/test_no_bare_type_name_copies.py b/tests/unit/test_no_bare_type_name_copies.py
index 836ee5f00..464378a89 100644
--- a/tests/unit/test_no_bare_type_name_copies.py
+++ b/tests/unit/test_no_bare_type_name_copies.py
@@ -71,10 +71,10 @@ _KNOWN: dict[str, int] = {
# Splits our own `path::Class::method` symbol IDs, which we mint. The
# separator is ours rather than the language's, so the shared helper would
# be answering about a type where these ask about an ID. `models.py` holds
- # the one both resolvers used to duplicate. Three of `call_resolver.py`'s
- # four are symbol IDs; the fourth takes the tail of an import's module
+ # the one both resolvers used to duplicate. Six of `call_resolver.py`'s
+ # seven are symbol IDs; the seventh takes the tail of an import's module
# path, which is a module name, not a type.
- _PREFIX + "call_resolver.py": 4,
+ _PREFIX + "call_resolver.py": 7,
_PREFIX + "models.py": 1,
# Reads the head to decide whether taking a bare name is safe at all: a
# qualifier that is a type rather than a package must not be discarded.