mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 07:47:29 +00:00
[GH-ISSUE #1964] [Bug] trace_call_path reports truncated: true on every IDA trace, and get_call_graph nodes carry provider-wide limitations #652
Closed
opened 2026-10-15 18:26:59 +00:00 by bsakaguchi
·
3 comments
No Branch/Tag specified
main
release-please--branches--main--components--rea-agents
release-please--branches--main--components--rea-agents--release-notes
codex/procedure-reference-stacked
codex/kuna-independent-retry
codex/byte-search-overlay-coverage
codex/open-failure-target-receipt
codex/kuna-xref-evidence
codex/ghidra-ambiguous-procedure-recovery
codex/function-source-bundle
codex/trace-function-integration-prototype
codex/snapshot-source-closure
codex/recorded-evidence-array-pages
codex/evidence-recovery-redesign
codex/trace-feature-address-scope
codex/call-discovery-scope
codex/ghidra-literal-candidate-evidence
codex/decompile-directory-independent-retry
codex/retry-provenance-base
codex/value-flow-capability-experiment
codex/ghidra-containing-instruction
cursor/readme-discord-button-ef9f
dependabot/github_actions/actions/setup-node-7.1.0
dependabot/github_actions/actions/upload-artifact-7.0.2
dependabot/npm_and_yarn/npm-minor-and-patch-d8d97ce6df
codex/kuna-1989
fix/8559-native-ui-fixture-ownership
fix/8555-go-verifier-mcp-ownership
codex/provider-capability-recovery
fix/8642-rizin-target-stdin
codex/ghidra-memory-effect-scope
codex/ghidra-annotation-entry-selector
codex/ghidra-readonly-recovery
codex/ghidra-regex-verifier-recovery
codex/evidence-discovery-view-guidance
fix/8545-bulk-append-overflow
fix/8428-navigation-refusal-alternatives
codex/address-context-recovery
codex/matching-member-limitations
codex/unknown-scope-contract
codex/evidence-view-guidance
feat/8373-native-trace-views
codex/ghidra-snapshot-verifier-binding
codex/elf-export-visibility
codex/evidence-view-recovery
codex/native-reference-cli-help
codex/provider-candidate-observation-scope
codex/kuna-session-verification
codex/ghidra-switch-lifetime-guidance
codex/pseudocode-paging-discovery
codex/clarify-evidence-view-support
codex/kuna-xrefs-selector-recovery
codex/context-capacity-recovery
codex/evidence-closure-large-links
codex/same-function-evidence-identity
codex/ghidra-verifier-inspected-jdk
codex/audit-guided-workflows
codex/crash-prompt-retained-dossiers
codex/analysis-view-error-recovery
codex/kuna-verifier-target-selection
codex/ghidra-selected-project-call-coverage
codex/docs-native-analysis-scope
codex/ghidra-java-socket-boundary
codex/ghidra-retained-snapshot-verifier
codex/ghidra-search-inventory-facts
fix/8284-zero-argument-parameter-bindings
fix/8198-ui-action-handler-offset
fix/8257-elf-entry-label-identity
fix/8304-deferred-output-schema-projection
fix/8277-call-path-computed-target-uncertainty
fix/pr-8089-conflicts
fix/ci-static-duplicate-export
dependabot/npm_and_yarn/lint-staged-17.6.0
dependabot/github_actions/actions/download-artifact-8.0.2
dependabot/npm_and_yarn/write-file-atomic-8.0.0
dependabot/npm_and_yarn/canonicalize-5.1.0
dependabot/github_actions/actions/cache/restore-6.1.0
dependabot/npm_and_yarn/toon-format/toon-4.4.0
dependabot/github_actions/actions/deploy-pages-5.0.1
codex/review-fixes-pr-2403
codex/review-fixes-pr-2400
codex/process-terminal-width
codex/test-brittleness-cleanup
verify/7167-browser-connect-macos
fix/7167-browser-connect
feat/native-matching-allowance-setting
feat/browser-scenario-dry-run
test/managed-caller-parameters-20261024
codex/parser-fortythird-boundaries
fix/6926-pinvoke-platform-decorations-20261023
fix/6889-har-body-encoding-20261023
fix/6888-sqlite-schema-budget-20261023
fix/dependency-security-gates-6708
cursor/evidence-overwrite-rebase-b4ac
feat/4057-verify-native-exports
fix/windows-acl-observer-overhead-20261022
cursor/erlang-beam-restack-4476
cursor/pe-certificate-review-bf32
fix/6116-javascript-application-fs-errors
fix/6061-unmapped-runtime-script-unknown
feat/browser-scenario-summary
fix/pe-certificates
codex/verify-3407
cursor/rebase-5699
cursor/rebase-5352
cursor/rebase-5600
cursor/fix-cli-schema-omission-10a8
codex/audit-hopper-shutdown-reasons-20261021
fix/demangle-swift-omitted-record
fix/nib-boolean-value-types
cursor/cancellation-partial-observation-a5ac
fix/ib-object-limit-reasons
fix/electron-fuse-limit-advice
fix/kuna-doctor-dangling-cache
fix/fixed-budget-refusal-advice
fix/js-ipc-listener-dedup
fix/js-return-member-provenance
fix/dmg-integrity-retry-advice
fix/ida-doctor-readiness
fix/kuna-version-probe-output-drain
fix/legacy-swift-runtime-name-matching
fix/dylib-lazy-load-commands
fix/browser-scenario-startup-cancel
fix/swift-nested-punycode-classification
fix/compare-unselected-scopes
fix/objc-method-budget-coverage
fix/dmg-mounted-root-observations
audit/ci-tests-20261019-round2
release/6.7.0
fix/wabt-cleanup-retry-resolution
fix/electron-fuse-elf-pe-architecture
fix/native-plist-descriptor-ownership
fix/kuna-caller-cleanup-ownership
experiment/atomic-codemode-20261016
review/first-contributor-3776
fix/call-resolution-full-read-cycles
fix/member-mutation-selection-repeat
experiment/atomic-re-tools-20261015
perf/member-mutation-lazy-origins
perf/static-network-mutation-index
fix/hopper-startup-lifecycle
audit/3050-windows-proof-20261015
feat/windows-window-capture-2183
audit/3049-windows-proof-20261015
audit/3735-macos-fixtures-20261015
fix/batch-decompile-null-pseudocode
fix/kuna-inventory-honors-jobs
experiment/browser-codemode-tool-design-20261015
fix/hopper-clean-runtime-argv
codex/review-2049-27f1b367
review-fixes/pr-2787-routing
fix/3360-scoped-this-emitters
fix/3367-replaced-global-effects
fix/3838-compact-any-value-items
test/hopper-download-probe-20261015
codex/windows-runtime-creation-red-green-20261015
codex/windows-readonly-root-red-green-20261015
codex/windows-root-share-red-green-20261015
codex/exp-1685-win-mcp-startup
codex/bug-sweep-20261015
investigate/2190-windows-package-phases
investigate/3543-macos-cli-deadline
perf/3281-reverse-tools-feedback-quality
fix/3406-hopper-doctor-fixture
fix/3341-wrapper-require-test-context
fix/3301-owned-uninstall-fixtures
fix/3164-compiler-input-ownership
fix/pcap-cleanup-stdout-newline-20261014
perf/interface-builder-summary
codex/review-fixes-pr-1977
fix/ghidra-effective-jvm-platform
fix/docs-turkish-rust-link-20261013
fix/main-maintenance-ci-20261010
fix/recover-binary-session-process-effects
codex/review-fixes-pr-2457
codex/ci-required-cancellation-gate
fix/main-format-baseline-20261013
fix/setup-preserve-entry-fields
cursor/restore-main-checks-1ffc
fix/ghidra-bridge-hashmap-import
codex/shared-ci-jadx-json-default-20261013
codex/shared-ci-ghidra-test-groups-20261013
codex/shared-ci-java-fixture-format-20261013
codex/fix-intrinsic-invocation-boundaries
test/release-preflight-reusable-jobs
test/js-parameter-provenance-expectation
fix/linux-hopper-verification-current
test/2419-ghidra-elf-probe-size
followup/pr-1544-native-ida
codex/fold-pr-2230-contribution
docs/readme-responsible-use
fix/issue-2064
fix/issue-2050
fix/issue-2053
fix/issue-1968
fix/issue-1945
experiment/codemode-bridge-20261011
fix/tool-effects-negative-wording-1904-20261012
fix/1842-electron-interop-provenance
feat/recover-javascript-multi-input
refactor/website-i18n-prep
fix/nativeaot-pe-virtual-extent
fix/browser-verifier-ci-hang
fix/pe-resources-input-selection
docs/beginner-friendly-guides
docs/beginner-setup-guide
fix/javascript-analysis-worker-1563
fix/1649-ghidra-duplicate-names
fix/javascript-export-keys-integration-1369
test/maintenance-boundary-contracts-20261011
review/javascript-export-keys-1369
review/process-live-progress-1483
test/javascript-1495-growth-ratio
fix/ci-escape-timing
docs/normalized-terminal-geometry-1450
release/6.3.0
archive/release-6.3.0-pr1381
release/6.2.0
fix/electron-preload-dynamic-override
fix/javascript-self-referential-bundler-edges
release/6.1.0
cursor/grok-client-cherry-pick-0b56
feat/signature-posture
feat/dyld-shared-cache
feat/artifact-integrity-policy
feat/pkg-inventory
release/6.0.0
chore/sync-release-5.0.0
release/5.0.0
cursor/cloud-agent-node-787e
fix/javascript-xhr-open-endpoints
review/pr-711-realpath-fallback-wording
cleanup/replay-confinement
codex/test-suite-performance
codex/issue-foundations
codex/address-open-issues-2026-07-20
agent/javascript-vite-rollup-esbuild-adapters
agent/process-cleanup
agent/triage-integration
agent/unknown-commands-registry
feat/mcp-identity-metadata
morlvps/issue_cleanup
codex/installer-redesign
morl/roadmap-investigation-core
morl/roadmap-investigation-docs
release-please--branches--main--components--rea
rea-agents-6.8.0
rea-agents-6.7.0
rea-agents-6.6.0
experiment/atomic-codemode-wait-runtime-20261016
rea-agents-6.5.0
rea-agents-6.4.0
rea-agents-6.3.0
rea-agents-6.2.0
rea-agents-6.1.0
rea-agents-6.0.0
rea-agents-5.0.0
rea-agents-4.1.0
rea-agents-4.0.1
rea-agents-4.0.0
rea-agents-3.2.1
rea-agents-3.2.0
rea-agents-3.1.0
rea-agents-3.0.0
rea-agents-2.7.0
rea-agents-2.6.0
rea-agents-2.5.1
rea-agents-2.5.0
rea-agents-2.4.0
rea-agents-2.3.0
rea-agents-2.2.0
rea-agents-2.1.0
rea-agents-2.0.0
rea-agents-1.7.0
rea-agents-1.6.0
rea-agents-1.5.0
rea-agents-1.4.0
rea-agents-1.3.0
rea-agents-1.2.0
rea-agents-1.1.0
rea-agents-1.0.0
rea-agents-0.5.0
rea-agents-0.4.0
rea-agents-0.3.0
rea-0.2.1
rea-0.2.0
Labels
Clear labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
Mirrored from GitHub Pull Request
question
roadmap
triage
No labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
question
roadmap
triage
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
morluto/rea#652
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nikolay-dementiev on GitHub (Oct 11, 2026).
Original GitHub issue: https://github.com/morluto/rea/issues/1964
Before submitting
Area
MCP or agent integration
Observed behavior
Since #1906,
get_call_graphandtrace_call_pathcopy every limitation of each relationship read into the graph. With a real IDA server every expanded node is therefore reported as limited, because every IDA execution carries the six sharedIDA_LIMITATIONS(provider version identity, mutable database, live results, cancellation, worker cleanup, unsupported dossier facets):get_call_graphnode gets those six strings inlimitations;trace_call_pathsetstruncated: trueand fillsresidual_unknownswith entries such asCall relationships for 0x100000470 are limited: Caller cancellation drains the in-flight MCP request before cleanup; it does not prove that IDA engine work was interrupted.This also happens on x86 targets, where the callee read itself did not change, and on traces that reach their goal over a fully expanded graph.
truncatedno longer distinguishes a complete trace from an incomplete one.Reproduction
MCP calls against the headless IDA profile:
open_binary {"path": "<hello_x86>", "provider_id": "ida"},get_call_graph {"address": "_main", "direction": "forward"},trace_call_path {"start": "_main", "goal": "_square", "direction": "forward"}.hello_x86mainbefore #1906 (c2cf7dcb8)mainafter (39418ea17)get_call_graphnodes withlimitationstrace_call_pathgoal_statusreachedreachedtrace_call_pathtruncatedfalsetruetrace_call_pathresidual_unknownsOn a small ARM64 program (
maincallsuse_wrapper,putsandprintf;use_wrappercallssum_point) the trace from_mainto_sum_pointis reached withtruncated: true, 14 residual unknowns and seven limitations on each of the five graph nodes (the six shared ones plus the call graph coverage limitation).Expected behavior
truncatedand nodelimitationsreflect limitations of the relationship read itself (call graph coverage, upstream truncation, an unadvertisedcallgraph), not the limitations every execution of the provider carries. A complete x86 trace that reaches its goal staystruncated: false, as before #1906.Impact and scope
Every
get_call_graphandtrace_call_pathresult through IDA, on every architecture. By reading the code, Hopper (every execution carries its capability limitations, for exampleResults depend on Hopper's completed static analysis.) and Ghidra (limitationsForadds a common base to every operation) would be affected the same way; I ran only IDA.mainonly: rea-agents 6.4.0 does not contain #1906.REA version
mainat39418ea17.Runtime and platform
macOS 26.5.2 (arm64), Node 26.3.0; IDA Professional 9.1 (9.1.250226) with idalib; ida-pro-mcp 2.0.0 at c133c3853.
Target and artifact context
The 3-line
hello.cabove, built withclang -O0 -arch x86_64, and a small ARM64 C program. No private target data.Interface
MCP
Earliest failure stage
Transport or result projection
Analysis or suspected cause
src/ida/IdaSessionClient.ts:213returns[...IDA_LIMITATIONS, ...runner.limitations]for every execution.EnhancedToolsnow reads relationships through#observeand attaches allexecution.limitationsto theget_call_graphnode.CallPathTracing.expandAddressadds every execution limitation toresidual_unknowns, andprojectTracesetstruncated: state.residual.size > 0(src/application/CallPathTracing.ts:231).truncated: true, and check node limitations withexpect.arrayContaining. No test covers a trace whose relationship reads carry only provider-wide limitations (an x86 target, for example), so the shared limitations pass unnoticed.Additional context
The non-x86 callee edges from #1906 are correct on real IDA 9.1:
_main->_square,_printfon an ARM64 build ofhello.c;_main->_use_wrapper,_puts,_printfand_use_wrapper->_sum_pointon the ARM64 program above, throughcallgraph {"max_depth": 0}pluslookup_funcs, both with ida-pro-mcp c133c38 and with the fix proposed in mrexodia/ida-pro-mcp#550. The x86 callee read is unchanged, andnpm run verify:idapasses.@nikolay-dementiev commented on GitHub (Oct 11, 2026):
The same commit also changed
build_call_path(src/domain/callPath.ts):search_scope.exhaustiveis now false whenever any expandedanalyze_functionEvidence carries limitations, and IDA Evidence always carries the sharedIDA_LIMITATIONS. On real IDA 9.1 with the x86hello_x86from the description,analyze_functionEvidence for_main,_squareand_printf:build_call_pathmainbefore #1906 (c2cf7dcb8)mainafter (beb80a07b)_square->_main(unreachable)not_found,exhaustive: true, 0 limitationsunknown,exhaustive: false, 8 limitations_main->_squarefound, 1 hop,exhaustive: truefound, 1 hop,exhaustive: falseSo
not_foundcan no longer be established from IDA Evidence. The fix I'm preparing coversget_call_graphandtrace_call_path, which read executions directly.build_call_pathreads serialized Evidence, where the shared and the read-specific limitations are not distinguishable today, so it is not part of that change.@khanukov commented on GitHub (Oct 11, 2026):
Working on the isolated
build_call_pathfollow-up described above, keepingget_call_graphandtrace_call_pathout of scope. Current main already carries digest-boundrelationship_coveragein portable Evidence, so I am checking that boundary rather than inferring completeness from generic limitation strings. The planned regressions use inline Evidence through the public MCP tool; no live IDA verification will be claimed. AI-assisted contribution using Hermes Agent.@nikolay-dementiev commented on GitHub (Oct 12, 2026):
Verified on real IDA 9.1 with
mainatc22111eca(includes9c8511409,5dfb9d050and #2001), ida-pro-mcp c133c38, the same binaries as above:hello_x86get_call_graphfrom_maincomplete, no node limitations; provider caveats once at the topcomplete, only the call graph coverage note on each nodetrace_call_pathto_square/_sum_pointreached,truncated: false, no residual unknownsreached,truncated: false, no residual unknownsbuild_call_path, unreachable goalnot_found,exhaustive: truenot_found,exhaustive: truebuild_call_path, reachable goalfound, 1 hop,exhaustive: trueThe results are the same with ida-pro-mcp including mrexodia/ida-pro-mcp#550. CLI
functioncallees are unchanged, andnpm run verify:idapasses.