Repository navigation
fix(native): page every retained function dossier collection - #1507
Merged
Merged
Conversation
inspect_analysis_view is the recovery path when an analyze_function dossier exceeds the MCP response budget, but its native facets covered only procedure, pseudocode, assembly, callers/callees, references, and value flow. Basic blocks, comments, unresolved calls, referenced strings and names, and the native API record could not be read from retained Evidence at all; basic blocks grow with the function just like assembly. These are now facets: collections page by rows, and native_api is a singleton. A dossier without an unresolved_calls record reports "not recorded" rather than the value-flow failure reason. Refs #1247 and #1065. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
…#1507) inspect_analysis_view is the recovery path when an analyze_function dossier exceeds the MCP response budget, but its native facets covered only procedure, pseudocode, assembly, callers/callees, references, and value flow. Basic blocks, comments, unresolved calls, referenced strings and names, and the native API record could not be read from retained Evidence at all; basic blocks grow with the function just like assembly. These are now facets: collections page by rows, and native_api is a singleton. A dossier without an unresolved_calls record reports "not recorded" rather than the value-flow failure reason. Refs morluto#1247 and morluto#1065.
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
Since a9ee236,
inspect_analysis_viewis the documented way to read ananalyze_functiondossier that exceeds the MCP response budget (#1247). Its native facets coveredprocedure,pseudocode,assembly,callers,callees,incoming_references,outgoing_referencesand the value-flow facets. The rest offunctionDossierSchemacould not be read from retained Evidence at all:basic_blocks, which grows with function size just likeassembly;comments;unresolved_calls;referenced_stringsandreferenced_names;native_api, the full API-boundary record. Views only folded its limitations and unknowns into the parent fields.When one of these is what an agent needs from an oversized dossier, the only remaining route is to export the complete Evidence.
Change
basic_blocks,comments,unresolved_calls,referenced_strings,referenced_names. They page by rows, with the sameoffset,limitand coverage rules asassembly.native_api(offset must be 0). It returns the recorded boundary, or{available: false, reason: "not recorded"}when the dossier has none.unresolved_callsis optional in the dossier schema. When it is absent the facet reports"not recorded". Only value-flow facets inherit the value-flow failure reason; otherwise the shared fallback would report a misleading reason here.docs/mcp-contracts.mdand the skill's native reference list the new facets.This is additive: existing facets and their results are unchanged.
Verification
src/domain/analysisView/analysisView.test.tspages each new collection, checks the absent-unresolved_callsreason while value flow is unavailable, and checks thenative_apisingleton.npx vitest run src/domain/analysisView src/application/analysisViewpasses (25 tests).npm run test:focused -- tests/boundary/mcp/analysisViewMcp.test.ts tests/boundary/cli/analysisViewCli.test.ts tests/boundary/mcp/toolSchemaValidity.test.ts tests/boundary/mcp/contractPresentation.test.tspasses (20 tests).npm run check:fastandnpm run docs:checkpass.🤖 Generated with Claude Code