Skip to content

[Bug]: graphify_node silently resolves qualified Python symbols to unrelated semantic matches #4366

Closed

Description

@chapaevv123

Pre-flight checks

  • I have checked the Troubleshooting section in the README

What happened?

When querying Python callables through Graphify MCP, short callable labels resolve correctly, but qualified Python symbols can silently fall back to unrelated semantic matches.

The tool still returns a successful response with resolved: semantic, even though the returned node is unrelated to the requested symbol.

This can mislead agent workflows that use the result for architecture analysis, callers, tests, dependencies, or change-impact analysis.

Expected behavior:
Qualified Python symbols should either resolve to the intended callable, return explicit candidates, or return an unresolved/ambiguous result.

Actual behavior:
Qualified names can resolve to an unrelated semantic node while still appearing successful.

Image

Steps to reproduce

Repository:
chapaevv123/miden-preflight

Indexed commit:
d93970586a74aaef96a4e41b8bf00c15da6a4fd8

1. Query:

graphify_node(symbol="main()", strict_calls=true)

This correctly resolves to:

src/miden_preflight/cli.py
main()

2. Query:

graphify_node(symbol="miden_preflight.cli.main", strict_calls=true)

This returns an unrelated test symbol while reporting `resolved: semantic`.

3. Query:

graphify_node(symbol="scan()", strict_calls=true)

This correctly resolves to:

src/miden_preflight/engine.py
scan()

4. Query:

graphify_node(symbol="miden_preflight.engine.scan", strict_calls=true)

This returns an unrelated GitHub Actions workflow node while reporting `resolved: semantic`.

The repository package entry point is declared in:

pyproject.toml
miden_preflight.cli:main

Error output or graph output

Correct short-name resolutions:

main()
→ src/miden_preflight/cli.py
→ main()

scan()
→ src/miden_preflight/engine.py
→ scan()

Incorrect qualified-name resolutions:

miden_preflight.cli.main
→ unrelated test symbol
→ resolved: semantic

miden_preflight.engine.scan
→ unrelated .github/workflows/preflight.yml node
→ resolved: semantic

The important part is that both incorrect lookups return success rather than an unresolved or ambiguous result.

Graphify version

No response

Operating System

Windows

Python Version

3.11

Installation Method

uv tool install (recommended)

Additional Environment Details

Graphify MCP connected through Codex.

Repository tested:
chapaevv123/miden-preflight

Indexed commit:
d93970586a74aaef96a4e41b8bf00c15da6a4fd8

Environment:
Windows 10
Python 3.11
Codex MCP client

No provider API keys or special environment variables are required to reproduce this issue.

The issue was reproduced repeatedly against the same indexed repository state.

Additional context

I reproduced this against a real indexed repository and cross-checked the returned nodes against the source at the exact indexed commit.

The key concern is not that semantic search is fuzzy, but that qualified symbol lookups can return an unrelated node while still appearing successful.

A short GIF reproduction is attached above.

Activity

  1. added
    bug
    on Oct 12, 2026
  2. github-actions commented on Oct 12, 2026

    @github-actions

    Thanks for opening this issue, @chapaevv123. 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.

  3. safishamsi commented on Oct 12, 2026

    @safishamsi
    Member

    Fixed in v0.9.88 (graphifyy 0.9.88 on PyPI) via #4367.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions