You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: path resolves an ambiguous endpoint to one node without refusing; <file>::<symbol> and node id do not select the node asked for #3913
graphify path does not refuse an ambiguous endpoint the way explain does, and the two other ways to disambiguate (<file>::<symbol> and the full node id) do not select the node asked for.
Bare ambiguous label:path resolves it to one candidate and prints a confident route, exit 0. The tied-score warning goes to stderr and names no candidates; explain on the same label lists both ids.
<file>::<symbol>:explain tells the user to "Retry with path::symbol", but path resolves src/b.ts::.nonce() to the file node b.ts, not the method.
Full node id: the route ends at the containing class (BetaClient), not at the method node given.
Expected: an ambiguous endpoint is refused with the candidate ids (as explain does), and the path::symbol form and node id resolve to the node named, so the route ends there.
Related: #1969 (explain silently resolving ambiguity, where it notes path warns). This is the other half: the warning path emits is not a refusal.
# 1 (exit 0; the warning is on stderr)
warning: target match was ambiguous (top score 12994.1, runner-up 12994.1)
Shortest path (2 hops):
run() --calls [EXTRACTED]--> AlphaClient --method [EXTRACTED]--> .nonce()
# explain, same label
Ambiguous: '.nonce()' matches 2 nodes in different files.
src/a.ts id: src_a_alphaclient_nonce
src/b.ts id: src_b_betaclient_nonce
Retry with path::symbol using one of the paths above (e.g. <path>::.nonce()) or the full node id.
# 2 (without --undirected: "No directed path found")
Shortest path (2 hops):
run() --calls [EXTRACTED]--> BetaClient <--contains [EXTRACTED]-- b.ts
# 3
Shortest path (1 hops):
run() --calls [EXTRACTED]--> BetaClient
Found on real repos where this matters (a method name defined on two classes in different files; one repo has six .cleanup() nodes): the confident route through the wrong candidate is what a script or agent reads.
Graphify version
0.9.64
Additional Environment Details
macOS 26.6, Python 3.14.2 (not in the dropdown, so I picked 3.13), run via uvx --from graphifyy==0.9.64. Clean checkout of the repro above; the environment was stripped with env -i (no provider variables set).
Activity
github-actions commentedon Sep 28, 2026
Thanks for opening this issue, @treebird7. A maintainer will take a look soon.
If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.
To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.
fix(path): resolve path::symbol and node-id endpoints before scoring (#…
safishamsi commentedon Oct 4, 2026
Fixed in v0.9.76 (live on PyPI as
graphifyy==0.9.76) via #3935, thanks @bercedev. 🙏