Repository navigation
feat(native): return a retained summary view of binary layouts on request - #1570
Merged
Merged
Conversation
…uest inspect_binary_layout accepts the same optional detail input as analyze_javascript_application. The default complete delivery is unchanged; detail "summary" retains the complete layout Evidence in the session and returns its inspect_analysis_view summary, whose parent_evidence_id selects sections, symbols, mitigations or linkage later. Both tools share one detail schema and output projection. 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. |
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
Follow-up to #1568.
inspect_binary_layoutnow accepts the same optionaldetailinput asanalyze_javascript_application:complete(default): unchanged.summary: the server records the complete layout Evidence in the session and returns itsinspect_analysis_viewsummary.normalized_result.parent_evidence_id/evidence_linksname the retained layout, so later calls can select sections, symbols, mitigations or linkage without re-running the decoder or sending the complete layout through the response.summarywithcapability_unavailable, the same behavior as feat(javascript): return a retained summary view on request #1568.Both tools now share one definition:
analysisDetailSchemaandanalysisDetailOutputSchemaOfinsrc/contracts/analysisDetail.ts. The application logic reusessummarizeRetainedAnalysis. The output schema'snormalized_resultbecomesunion(binary layout, analysis view). The root staystype: object, and default responses are unchanged.analyze_functionis not included:inspect_analysis_viewhas no native summary view, only per-facet views, so giving it a summary option means designing a new summary format first.The CLI is unchanged. Docs updated:
docs/binary-diagnostics.md,docs/mcp-contracts.mdand the packaged skill.Relates to #723, #1065.
Verification
npm run check:cipasses (8/8 tasks), as donpm run docs:checkandnpm run check:changed(26 files, 270 tests).npm run test:focusedover alltests/boundary/mcp,tests/boundary/cliandtests/conformancefiles plus the generated-skill and setup-skill tests: 137 passed, 2 skipped (585 tests).tests/boundary/mcp/analysisSummaryDetailMcp.test.ts: a layoutsummaryreturns a view linked to the retained layout, and aninspect_analysis_viewsection page on that parent succeeds.No real pwntools layout lane was run. The fake layout provider covers the MCP delivery path; the decoder itself is unchanged.
🤖 Generated with Claude Code