Repository navigation
fix(native): accept declared facts in dispatch name inventory - #2906
Merged
Merged
Conversation
ShitK
marked this pull request as ready for review
October 13, 2026 16:29
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
|
3 tasks done
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #2564.
Accept declared
symbolfacts in thelist_namesfallback used by native dispatch inspection and UI action tracing. Previously, valid inventory records with these facts failed asunreadable_output.Problem and expected behavior
The fallback's local strict schemas recognized only
addressandvalue(or legacyname), contradicting the existing inventory contract's optional fields. Valid provider results should reach symbol-based dispatch analysis; malformed inventory should still fail validation.Change and scope
Reuse the canonical
addressedValueschema with strict top-level validation, deriving the legacynamevariant from the same schema. This removes the duplicated inventory definition while retaining rejection of undeclared top-level fields and malformed declared facts. Dispatch inference remains based on symbol names, with partial and unsupported coverage reported as before.Contract and boundary impact
list_namesfallback.Evidence and regression coverage
On base
7e3a19863835215491b55fba7127a78bad6a7709, the updated regression suite produced 4 failures and 24 passes, including anunreadable_outputfailure through the MCP SDK boundary.Tests cover plain inventory, declared symbol facts with both
valueand legacyname, target/provider identity, conservative symbol-only coverage, and rejection of malformed fields in both dispatch inspection and UI tracing. The existing MCP fixture now supplies declared symbol facts to exercise both public tools.Validation performed
macOS arm64, Node.js 24.18.0, npm 11.16.0:
src/application/native/EnhancedNativeInvestigation.test.ts,tests/boundary/mcp/enhancedTools.01-lists-the-complete-target-open.test.ts, andsrc/domain/native/objcSwiftMetadata.test.ts— 29 passed (26 + 2 + 1).git diff --check— passed.npm run knip— blocked by unresolved#javascript-analysis-worker, whose package import points to the missing compiled worker artifact. This also reproduces on the pristine base without build outputs.npm run check— blocked by existing formatting failures infunctionComparison.test.tsandIdaOperationRunner.ts.The final full TypeScript check reports the same pre-existing errors as the base:
SupportedClients.ts:542,744,809rejects thedevinformat (TS2322),clientProfileLifecycle.test.ts:297reports TS2345, andghidraInventoryMcp.test.ts:4,17has duplicatejoinimports (TS2300). These failures were independently reproduced on a pristine export of this exact base with the same runtime. Standard checks remain blocked. The normal pre-push hook failed on the unchanged duplicatejoinimport; the branch was pushed with a one-commandHUSKY=0override.Compatibility, safety, and release
No migration is needed. MCP coverage uses the actual SDK with an in-memory transport and simulated analysis port. Real Ghidra was unavailable locally (no JDK/Ghidra); no real-engine, compiled CLI, stdio, or CI verification is claimed. The issue's external live reproduction is not local verification. This fix was prepared with AI assistance.
Before merge