Repository navigation
fix(mcp): report native value flow support in session status - #8786
Merged
Merged
Conversation
3 tasks done
Contributor
[Medium impact] The reviewed changes appear safe to merge; no blocking issue was found. SummaryAdds provider-owned native value-flow declarations and carries them through session capabilities and
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Provider declaration] --> B[Routed analyze_function capability]
B --> C[Grouped session capabilities]
C --> D[Expanded capability inventory]
R[Resolver readiness] --> D
D --> E[trace_native_values status and repair advice]
Reviews (6) · Last reviewed commit: "chore: integrate current main" · Reviewed by Greptile |
This was referenced Nov 3, 2026
morluto
marked this pull request as ready for review
November 4, 2026 16:53
Codex Review Summary: ✅ CompletedThis 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. |
morluto
enabled auto-merge (squash)
November 7, 2026 18:17
3 tasks done
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
binary_sessiontold Kuna users to configure a call-target resolver without explaining that REA's Kuna provider also does not supply native value-flow observations. It also did not distinguish an absent resolver from the possibility of a useful local trace. This exposes the routed analysis provider's value-flow declaration and retains partial-result guidance. Related: #8471. Prerequisite #8785 has merged.Problem and expected behavior
The tool status now reports
value_flow_supportas supported, unavailable with its provider's reason, or unknown, with the routed provider's identity. Supported means some functions may supply a model, not that a particular function does. Availability still reflects declared prerequisites and readiness; an unknown declaration is not a promise of output. A direct call may return local observations and call-resolution unknowns even if resolver discovery is unavailable.Change and scope
The routed
analyze_functioncapability owns the declaration; session status preserves it through grouping, and the trace inventory combines it with resolver readiness without dropping runtime or unsupported-host repairs. Kuna's capability and dossier share one provider-owned reason. No target authority or upstream provider behavior changes. Contribution scope decision: not applicable to this existing read-only workflow.Contract and boundary impact
Expected effects of the existing workflow:
Evidence and regression coverage
unavailablewith the Kuna reason andsupportedfrom Ghidra. Both compact and full advertised output schemas and returned session responses validated with Ajv 2020. Separately, a Ghidra external function had no HighFunction, confirming that provider support is not a per-function guarantee.Automated review follow-up: repeated MCP cases now share file-owned SDK and assertion validators while sessions remain isolated. Assertions use structured support and provider identity, the resolver operation name, and direct trace behavior rather than prose fragments. A harmless guidance reword passed all six cases; changing the reported provider identity made four cases fail. The selected provider reason remains checked as caller-supplied data.
Validation performed
npm run test:focused -- src/application/binary/BinarySessionStatus.test.ts tests/boundary/mcp/nativeValueFlowAvailability.test.ts— 27 passed.npm run check:ci:fast— typecheck, lint, formatting and module boundaries passed.npm run docs:check— passed.Main reconciliation follow-up
Follow-up: hosted static checks encountered the unformatted CLI help test introduced on main by fix(cli): stop restating schema defaults in help descriptions #9278. Merged main
ac30fbdafter style(test): format CLI help default annotations #9280 formatted that test; Node 24npm run format:checkpasses. No unrelated local formatting change was added.Merged main
0ecf3a4and reconciled the trace with its newer source-retention owner: adapters without a retention session returncapability_unavailable; a supported direct session still retains its existing partial-result guidance. Consolidated the Kuna unavailability reason at the capability owner.On Node 24.22.1: 69 focused session, trace, and MCP tests passed; 39 Kuna-provider fixture tests passed;
npm run check:fastandnpm run docs:checkpassed.git diff --checkpassed.The real provider checks recorded above were on the earlier PR revision; no real Ghidra or Kuna provider run was repeated after the merge. Hosted checks must run on the updated head.
Compatibility, safety, and release
Latest main reconciliation
Merged main at
c928bb8. The independent-decompilation and native-value-flow facts are both retained through capability grouping and schema expansion. The focused session, MCP, and Kuna fixture suites passed (66 tests); a subsequent session suite with the new grouping regression passed (22 tests). These use simulated providers.Current main refresh
Merged main at
a67525cdf1; session status and value-flow MCP boundary tests passed (28 tests, simulated providers).Author readiness
Human owner:
Before merge