feat(explore): label name-only calls in the Relationships list

Merged
BO
2mo ago
+38-3

The survey's step 2 asked to persist a resolution origin and confidence on every edge and show them in explore. Most of that exists: the resolver stores resolvedBy and confidence in each edge's metadata (78,176 of 123,086 edges in this repository's index), graph/edge-trust.ts flags name-only hops, and codegraph_node's trail and explore's Flow print [name match, unverified].

The one place that still printed a bare arrow was explore's Relationships list (repositories of 500 files or more). This labels it the same way, using the same isNameGuess rule.

Checks. A new test in edge-trust.test.ts (520-file project): - run → helper [name match, unverified] and - run → proven; it fails without the change (expected [ '- run → helper', '- run → proven' ] to include …). Full suite: 688 files, 8773 tests passed, 39 skipped. TypeScript only; no kernel change.

Not done. No new strategy names or a confidence column on edges; the existing metadata already carries both.


Summary by cubic

Labels name-only call edges in explore's Relationships list with [name match, unverified], matching what codegraph_node's trail and explore's Flow already show. The Relationships list (rendered for repositories of 500 files or more) previously printed a bare arrow for edges the resolver could only bind by callee name; it now flags them the same way, so every place explore draws a call edge carries the same warning.

Summary by CodeRabbit

  • Bug Fixes
    • In repositories with 500 or more files, Explore’s Relationships list now labels calls matched by name alone as [name match, unverified]. Verified relationships retain their existing display.