Skip to content

fix(ida): preserve non-x86 call edges and workflow uncertainty - #1906

Merged
morluto merged 14 commits into
morluto:mainfrom
nikolay-dementiev:fix/1794-ida-arm64-callees
Oct 11, 2026
Merged

morluto merged 14 commits into
morluto:mainfrom
nikolay-dementiev:fix/1794-ida-arm64-callees

Conversation

@nikolay-dementiev

@nikolay-dementiev nikolay-dementiev commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Modern headless IDA reported missing or false callee edges on non-x86 targets because upstream callees checks x86 instruction IDs. This branch uses processor-neutral callgraph as the sole function-edge source for targets not proven x86-only. It also carries relationship limitations through graph and path workflows, so an empty unsupported observation no longer appears complete.

Fixes #1794

The contributor's original commits remain in the branch; the review follow-up completes the provider and workflow boundaries together.

  • Request only the root at depth zero, filter its outgoing call edges, and batch lookup_funcs once to enrich observed targets. Missing or typed failed name lookup retains the graph-observed address with a limitation.
  • Keep x86 and legacy relationship reads unchanged. Never merge non-x86 callees false positives into graph observations.
  • Keep missing graph capability, recognized-function-only coverage and producer caps explicit. Tool/protocol/transport graph failures, wrong roots, malformed replies and transport-truncated previews remain errors; cancellation propagates.
  • Add optional per-node limitations to get_call_graph, carry limited expansions into trace_call_path residual unknowns, and prevent limited function Evidence from establishing exhaustive call-path absence. Observed paths remain visible.
  • Remove 225 lines of duplicate session tests while preserving distinct x86/legacy/universal/cancellation/false-positive coverage and the stronger helper and workflow boundaries.

Validation on macOS, Node 24.18.0:

  • Six focused files: 59 passed in 2.74 seconds, including provider protocol boundaries, MCP graph/path behavior, domain Evidence search and advertised JSON Schema validation after catalog generation.
  • Runtime build, fast typecheck/lint, and documentation checks passed.

Upstream semantics were checked against pinned source c133c3853faa111a9b00ee615c013b720d0c4acd: callgraph appends root edges before recursing, so depth zero skips child scans while retaining root edges. DeepWiki incorrectly claimed the depth-zero test asserts empty edges; the actual test only asserts the root node. Primary source: https://github.com/mrexodia/ida-pro-mcp/blob/c133c3853faa111a9b00ee615c013b720d0c4acd/src/ida_pro_mcp/ida_mcp/api_analysis.py#L2469-L2595

Real-provider scope: the original contributor reported IDA 9.1 macOS ARM64/x86 runs before this follow-up. This follow-up was verified with the production adapter over controlled protocol boundaries, not a licensed IDA engine. Depth-zero behavior and name enrichment still need a real IDA run; Windows/Linux and other IDA versions were not executed. No GUI database is saved or closed, and no process ownership authority changes.

Review follow-up e5764d0: a valid depth-zero callgraph with per_func_capped: true now reports definite root truncation even below the edge cap. Focused selector/provider workflow checks pass (28 tests), preserving the signal through direct callees, call graph and call trace; fast and docs checks pass. No additional real IDA verification.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T19:42:29.327847Z e5764d0 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1945d28606

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ida/IdaCallGraph.ts Resolved
@nikolay-dementiev

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: b907e499ac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@morluto morluto changed the title fix(ida): read callee edges from the call graph on non-x86 targets fix(ida): preserve non-x86 call edges and workflow uncertainty Oct 11, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bc29ba9831

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ida/IdaCallGraph.ts Resolved
@morluto
morluto merged commit 0ae38e1 into morluto:main Oct 11, 2026
30 checks passed
@morluto

morluto commented Oct 11, 2026

Copy link
Copy Markdown
Owner

Looks great! Thank you for this @nikolay-dementiev

@github-actions github-actions Bot mentioned this pull request Oct 11, 2026
3 tasks done
@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
@morluto morluto added area: build Build, CI, packaging, and publishing provider: ida Analysis provider / engine: ida labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build, CI, packaging, and publishing area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working provider: ida Analysis provider / engine: ida

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Headless IDA reports no callees on ARM64 targets

2 participants