mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:45:22 +00:00
[GH-ISSUE #8322] [Bug] Kuna ELF UI-trace discovery advertises an unavailable native-seed route #6546
Closed
opened 2026-11-01 21:12:06 +00:00 by bsakaguchi
·
6 comments
No Branch/Tag specified
main
codex/procedure-reference-stacked
release-please--branches--main--components--rea-agents
release-please--branches--main--components--rea-agents--release-notes
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#6546
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 @morluto on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/morluto/rea/issues/8322
Before submitting
Area
Provider or capability discovery
Observed behavior
With Kuna selected on an x86-64 ELF,
binary_sessionreports thetrace_native_ui_actionmodenative_seed_call_traceas available with no missing operations. Both a known native function name and its exact address then fail withcapability_unavailableforlist_names, which Kuna does not declare. The same session reportsinspect_native_dispatch_metadataavailable, but that call fails the same way.Reproduction
Using the self-built ELF and
initial_only_callfunction from #8277 on REAb43c329with Kuna 1.986:open_binary({path: <fixture.elf>, provider_id: "kuna"})succeeds.binary_session({})reportstrace_native_ui_action→native_seed_call_trace: available,missing_operations: []. It separately markslist_namesunavailable.procedure_address({procedure: "initial_only_call"})returns0x20117a.trace_native_ui_action({action: "0x20117a", max_depth: 3, max_nodes: 15, max_edges: 20})returnscapability_unavailable,details.operation: "list_names". The explicit function-name seed produces the same error.inspect_native_dispatch_metadata({})also fails onlist_names.procedure_calleesremains usable, andclose_binarysucceeds. The target hash is unchanged; it was not executed.I reproduced the address and name failures in a second fresh MCP server. As a format control, a different owned arm64 Mach-O using the same Kuna release reports the native-seed mode available and successfully completes both dispatch inspection and native-seeded UI tracing. A real Ghidra session on the ELF also completes the native-seeded trace. These controls do not establish all ELF or Mach-O behavior.
Expected behavior
Availability for the selected target and mode should reflect the operations the workflow can actually use, or distinguish unverified applicability from an available route. If the intended native-seed route can answer without dispatch metadata, that is a separate design option; do not manufacture UI or dispatch facts, silently switch providers, or drop uncertainty to make the advertised route succeed.
Impact and scope
An agent following session discovery can choose an advertised route that predictably fails for this observed target/provider pair, even when it supplies the already resolved address. No autonomous agent behavior, other hosts, other target formats, or CLI discovery were measured.
REA version
b43c329df779708e43ae297f498a844e45d9c923. The named discovery and workflow source files are unchanged at fetchedorigin/main23de10bb2849cdce8ddbe70504aa7cc57de75a98; that newer runtime was not run.Runtime and platform
Node 24.22.1, macOS arm64, Kuna 1.986; Ghidra 12.1.4/JDK 21 control.
Target and artifact context
One self-built x86-64 ELF and one separate arm64 Mach-O; static analysis only.
Interface
MCP
Earliest failure stage
Setup or provider admission (session capability discovery).
Relevant output or evidence
Source-derived: native UI tracing attempts dispatch inspection before resolving the native seed. Dispatch inspection tries native binary metadata, then
list_namesafter an eligible capability failure. Discovery composition names those alternatives; the exact erroneous target-applicability classification still needs diagnosis.Typed outcome or recovery expected
A truthful target-specific unavailable or unknown route, with useful missing-operation context, unless execution is changed to support the native-seed case. Preserve the existing working Mach-O route and mode-specific availability.
Additional context
#7651 concerns loss of a failed dispatch reader's reason in a different 32-bit Mach-O fallback; #5071 concerned discovery rejecting working routes. This report concerns an advertised ELF/Kuna route that fails at execution. Suggested verification: public MCP discovery followed by execution for ELF/Kuna, Mach-O/Kuna, and supported symbol-fallback providers; distinguish genuinely unavailable metadata from failed I/O and preserve target identity. @gensokyo-dev @kaoru0822-kitauji @N0zoM1z0
@morluto commented on GitHub (Oct 31, 2026):
Follow-up: target applicability is lost before the composed discovery decision, based on source inspection plus another real-provider control.
binary_session({detail:"complete"})on both the failing ELF/Kuna session and the working Mach-O/Kuna session listednative-macos'sinspect_native_dispatch_metadatacapability asavailable: true. Its declaration uses host platform, while its execution boundary also rejects a non-Mach-O target. Session routing carries the auxiliary declarations into the selected route; the composition evaluator treats an available alternative as sufficient. This explains the observed mismatch for this case; it is not a claim about every capability declaration.list_names, dispatch inspection and native-seeded UI tracing succeeded. The dispatch result attributed its source to Ghidra and explicitly reported symbol-only partial/unsupported facets. Thus a correction should preserve that valid alternative rather than blanket-disabling ELF dispatch workflows.A useful public-workflow regression would compare reported modes to the subsequent call for ELF/Kuna, ELF/Ghidra fallback and Mach-O/Kuna. The target was unmodified and unexecuted; all three are one-host controls.
@morluto commented on GitHub (Oct 31, 2026):
Recovery control in one real MCP connection, same ELF, REA
b43c329, Kuna 1.986 and Ghidra 12.1.4: after the Kuna trace failed,binary_sessionstill showed the target bound to Kuna. An explicitopen_binaryof the same path withprovider_id: "ghidra"succeeded, and the same address-seeded trace succeeded with partial static-call coverage and unsupported cross-function value flow. Explicitly reopening withprovider_id: "kuna"switched back and reproduced the originallist_nameserror; the target digest stayed unchanged and close succeeded. No annotations were made in this test.The failure's headline/remediation says “Choose another analysis or target”; it does not suggest selecting a different provider. A provider switch is an available recovery only when an appropriate provider is configured and applicable, and it changes the active provider/session. Existing #8289 covers the separate fact that switching away from an edited ephemeral Ghidra session can discard live edits. This one controlled recovery is not a recommendation for silent fallback or a claim that Ghidra and Kuna offer equivalent evidence.
@morluto commented on GitHub (Oct 31, 2026):
Rechecked on merged main
a989c0e458c91af177e097abd7be0fd021b0401dafter the session/Evidence changes: real Kuna 1.986 still advertisednative_seed_call_traceavailable for the original ELF, and both dispatch inspection and the address-seeded trace failed on unsupportedlist_names. The separate Mach-O/Kuna control still completed both operations. Real Ghidra 12.1.4 on the ELF still completedlist_names, dispatch inspection and the address-seeded trace with partial native-call coverage. The selected target hashes were unchanged and targets were not executed. This checks the reported pair and controls on one macOS host, not all formats or providers.@ShuaixinHuang commented on GitHub (Oct 31, 2026):
@morluto @kaoru0822-kitauji @N0zoM1z0 @gensokyo-dev
My account (@ShuaixinHuang) is still limited to eight open PRs in this repository, and all eight slots are currently occupied:
Could you please review the existing PRs when you have time? The eight-PR limit currently prevents me from opening additional submissions. I have the scoped fix for #8198 committed and queued on codex/fix-native-ui-handler-location, and would like to continue submitting further fixes as slots become available.
Thank you for your time.
@morluto commented on GitHub (Oct 31, 2026):
On current main
6e9ee97a69cb16c7150d8b550e705cba055ee4f0, I tested a same-provider recovery with the same unexecuted x86-64 ELF and real Kuna 1.986 on macOS arm64, through SDK 2.3.1 stdio MCP with fetched compact output schemas.With native seed
sequence(0x201181),trace_native_ui_actionstill failed on unavailablelist_names. In the same open Kuna session,get_call_graph({address:"sequence",direction:"forward"})returned both direct callees0x201165and0x20117a; the two downstream nodes reported partial coverage for indirect calls.trace_call_path({start:"sequence",goal:"change_then_call",direction:"forward"})reported the direct path as reached. The fixture source independently contains those direct calls. These are static provider observations, not runtime reachability or proof of complete indirect-call coverage.This is a narrower available alternative for an analyst who already knows a native seed; it does not recover UI connections, typed call sites, value flow, or the original UI-trace contract, and it should not silently replace that request. The graph/path interfaces do not expose the UI trace's explicit node/depth/edge bounds; I did not measure their behavior on a large program. A real Ghidra control on the same seed completed the UI trace and included typed direct and resolved indirect call-site observations, which are not equivalent to Kuna's address-only graph.
For each provider, the graph and path results and their limitations were exported and reimported into a separate target-free MCP server and matched exactly. The target digest was unchanged. One fixture and host were tested; no target execution, autonomous-agent decision, or general provider equivalence is claimed.
@morluto commented on GitHub (Oct 31, 2026):
I opened draft #8400 for the observed discovery mismatch. The Apple reader now declares target applicability shared by execution and session discovery; composed availability still permits an independently available symbol fallback.
Real MCP controls on macOS with Kuna 1.986 and Ghidra 12.1.4: Kuna/ELF changes from an advertised native-seed route to unavailable, while Ghidra/ELF, Ghidra/PE, and Kuna/Mach-O retain their successful routes. A selected read-only Ghidra Mach-O project also retained identical results and Evidence. The real Kuna verifier passed with separately built symbol-bearing and stripped ELF controls; the same verifier failed against main at the old availability assertion, with cleanup complete. Details and limits are in the PR.
The PR now also makes the top-level response direct callers to mode-specific recovery when target prerequisites differ; the native-seed mode retains its missing operations and recovery. It does not enable UI tracing on Kuna/ELF or automatically substitute the generic graph. A wording-only mutation passed the session and real-provider checks, while dropping a missing-operation fact failed the focused test. The issue stays open until the proposed change is merged.