mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:45:22 +00:00
[GH-ISSUE #4210] [Bug] Mixed named and unknown reference targets report an unsupported change #1653
Closed
opened 2026-10-16 21:08:30 +00:00 by bsakaguchi
·
1 comment
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#1653
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 @coygeek on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/morluto/rea/issues/4210
Before submitting
Area
Evidence, artifacts, or reconstruction
Observed behavior
compare_functionsreportsreferences: changedwhen one recorded target has a procedure name and the other has unknown cross-artifact identity, even though no known reference kind or named target differs. The same false endpoint-change conclusion occurs for one artifact when both records identify the exact same target address and only one supplies a procedure record. The first result also becomes a definitefailinverify_reconstruction; the all-unnamed control remainsunknownin both tools.Reproduction
Use the source revision under REA version and the repository's pinned development toolchain. From the checkout root, install the locked dependencies if necessary and build the runtime:
Run this complete fixture from the checkout root. It supplies complete inline
analyze_functionEvidence to the registered tool on a fresh session, with available reference facets and complete relationship coverage. The target names, addresses and artifact digests are inert recorded metadata; no corresponding binary file is needed. The fixture checks both reported cases and controls, prints the relevant statuses and closes its MCP connection.Expected behavior
For
mixed-cross-artifact, the unnamed right endpoint has no established identity across artifacts. A known left name alone cannot establish that the targets differ. With matching source identity and reference kind, the reference dimension should remainunknownwith an unresolved-identity limitation, and the structural reference claim should remainunknowninstead of failing. Reversing the inputs must preserve this uncertainty.For
mixed-same-artifact-same-address, both subjects have the same digest, both targets have address0x2000, and the source and kind are identical. The absent procedure record must not establish a different endpoint. The dimension may retain uncertainty if the available identity facts do not prove equality, but it must not report an established endpoint change merely because name availability differs. Preserve independent known differences, including different named targets, different unnamed addresses within one artifact, and differing known kinds.Impact and scope
REA version
Source checkout at 62bf09809ef7bb224028916424f8f07652a20f4f, built with
npm run build:cached. The source package reports 6.5.0; this is not a reproduction of the publishedrea-agents-6.5.0package. Current main08a897b2cd7b359fcb0674c82baec3f1a74af632was inspected: the cited contract, comparator, and public adapter files are byte-identical to the tested source revision. The baseline reproduction was not rerun on that newer main revision, and packaged-release applicability was not established.Runtime and platform
macOS arm64; pinned Node.js v24.18.0 and npm 11.16.0; repository locked dependencies. MCP client 2.3.1 and Vitest 5.0.3. No external analysis engine ran. The reference-kind provenance in the fixture does not claim an executed Ghidra session. NOT_ENOUGH_INFO: the OS release was not recorded for the reproduction.
Target and artifact context
Synthetic artifact-bound
analyze_functionEvidence constructed from the shipped example and validated byfunctionDossierSchema. Inert Mach-O metadata identifiessample.bin, distinct repeated-digit artifact digests, sourcemainat0x1000, and outgoing reference targets at0x2000or0x3000. Both facets are available except the explicit unavailable-facet control. No binary file, disassembler, active analysis provider, or target execution is needed.Interface
MCP
Earliest failure stage
Native analysis or reconstruction
Relevant output or evidence
The executed public MCP calls accepted every fixture. Both mixed cases and the cross-artifact reversal returned overall
changed; their reference dimension reportedchanged, one edge on each side,conclusion_kind: "derived_relationship", and the limitation"Reference endpoints differ independently of provider reference-kind metadata.". The mixed cross-artifact structural verification returnedfail. The all-unnamed cross-artifact pair returnedunknown,conclusion_kind: "unresolved_branch", and its verification returnedunknown.The controls returned the existing discriminating results: two unnamed different addresses in one artifact were
changed; identical unnamed addresses in one artifact wereunchanged; different known names werechanged; the same known name after relocation wasunchanged; a known kind change between unnamed cross-artifact endpoints waschanged; and an explicitly unavailable reference facet wasunknownwith null counts. The reproduction completed with exit status 0. The unchanged existing function-comparison test file passed all 55 tests.Evidence provenance: observed. Local verification: reproduced. Reproduction completeness: complete. The exact inline reproduction was independently rerun after a fresh source build. All ten public
compare_functionscalls, both publicverify_reconstructioncalls, and the final ping completed. The unchanged existing function-comparison suite passed all 55 tests.Typed outcome or recovery expected
Repeat the same public calls. The mixed cross-artifact pair and its reversal must preserve unknown endpoint identity; its reference reconstruction claim must be
unknown. The mixed same-artifact/same-address case must not establish an endpoint change from the missing name alone. Keep the known-name, known-kind, same-artifact-address, relocation and unavailable-facet controls at their documented discriminating outcomes. Keep the original reference records and comparison Evidence links available. Treating every reference comparison as unknown would suppress established changes and would not restore the contract.Analysis or suspected cause
Source-derived expected contract: the repository identity and uncertainty rule keeps unresolved identity unknown. Endpoint normalization explicitly represents unnamed cross-artifact identity as unknown and retains same-artifact addresses. A known left name does not resolve an unknown right endpoint; identical same-artifact coordinates do not become different because one procedure record is missing.
Source-derived failure explanation: reference comparison returns changed for unequal endpoint projections before the unnamed cross-artifact identity guard. A named string versus null, or versus the same address represented as an object, reaches that earlier branch. This explains the executed results; it does not prescribe a particular implementation.
Public reachability: the MCP contract accepts complete
analyze_functionEvidence directly. The registered handler authenticates the envelope and operation, records both sources and derived comparison Evidence, and delivers the result. Dossier parsing validates artifact-bound inputs, and session admission allows this composed operation without invoking an analysis executor.Additional context
Closed #3388 addressed false equality between two unnamed targets at different addresses within one artifact. Its merged fix preserves those addresses and introduces cross-artifact uncertainty, but the mixed cases above still return an unsupported change. The prior all-unnamed regression tests alone do not specify mixed behavior; the expected result here follows from the owning identity-preservation rule and the recorded coordinates.
Open #1947 concerns additive address-normalized provider-text dimensions, while #3506 explores explicit cross-build callee matches for normalized views. Neither closure signal restores the reference dimension's uncertainty for these existing admitted inputs. No claim is made about the frequency of this fixture shape in real engine output or about behavior on other host platforms.
NOT_ENOUGH_INFO: frequency in real provider output, behavior on other platforms, and a practical result-preserving workaround were not established. Published-package behavior was not tested.
@morluto commented on GitHub (Oct 18, 2026):
Fixed on main in 92dadf933.
The old projections discarded endpoint uncertainty before comparing rows and erased all reference-kind facts if any row lacked a kind. They also substituted containing procedures for raw same-artifact sites and treated generated/nonunique names as sufficient cross-artifact identity.
A shared reference-fact owner now preserves direction, per-edge kind knowledge, exact same-artifact coordinates and cross-artifact identity uncertainty. Exact compatible pairing retains duplicates and alternatives; a known contradiction proves change only when every pairing contradicts it. The matcher uses a sparse grouped flow graph and iterative walks, replacing quadratic adjacency storage and recursive matching proposed in the existing PR. Native coordinate parsing is shared with call paths; superseded projections were removed. The matching insight from PR #4365 is credited to Henglie in the commit; neither PR #4365 nor #4337 was merged.
Validation executed: 199 focused tests across 11 files, including public MCP comparison/reconstruction, call-path consumers and 15 advertised-schema checks; final expanded public regressions 5/5; independent tiny permutation oracles and 10,000-row dense controls; full static/architecture checks, docs checks (5 conformance tests), discovery and pre-push checks. A clean baseline at
559af3d3freproduced the public regressions before the fix. Tests use authenticated controlled Evidence; no native engine or binary executed.Twelve compiled public SDK measurements included discovery and request/reply serialization estimates. Four-row equivalent control repeated-process medians: elapsed 2.154→2.155 s, CPU 2.846→2.867 s, sampled process-family RSS 741→744 MB; request tokens 2,104 unchanged, SDK reply estimate 811,565→811,577 cl100k tokens including the full 207-tool catalog. Catalog hash unchanged. The 1,000-row partial-identity case now correctly returns unknown instead of changed, so its before/after costs are not an equivalent-result speed comparison. No speedup, actual model-context, true cold-cache, adversarial worst-case runtime or real-provider qualification is claimed. Graph storage is linear in distinct row groups; general worst-case flow time remains cubic, applying the general max-flow bound to this linear graph.
The adjacent public consumer scan also reproduced existing #3333 for distinct unresolved reconstruction verifications in one session; that separate registry-identity defect is fixed in 95c8f57aa. Whole-facet unavailable declarations intentionally remain unknown; this change concerns available facets with partial per-row knowledge.