Skip to content

feat(native): return a retained summary view of binary layouts on request - #1570

Merged
kaoru0822-kitauji merged 1 commit into
mainfrom
feat/summary-detail-native-layout
Oct 10, 2026
Merged

kaoru0822-kitauji merged 1 commit into
mainfrom
feat/summary-detail-native-layout

Conversation

@kaoru0822-kitauji

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #1568. inspect_binary_layout now accepts the same optional detail input as analyze_javascript_application:

  • complete (default): unchanged.
  • summary: the server records the complete layout Evidence in the session and returns its inspect_analysis_view summary. normalized_result.parent_evidence_id / evidence_links name 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.
  • A server without session retention refuses summary with capability_unavailable, the same behavior as feat(javascript): return a retained summary view on request #1568.

Both tools now share one definition: analysisDetailSchema and analysisDetailOutputSchemaOf in src/contracts/analysisDetail.ts. The application logic reuses summarizeRetainedAnalysis. The output schema's normalized_result becomes union(binary layout, analysis view). The root stays type: object, and default responses are unchanged.

analyze_function is not included: inspect_analysis_view has 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.md and the packaged skill.

Relates to #723, #1065.

Verification

  • npm run check:ci passes (8/8 tasks), as do npm run docs:check and npm run check:changed (26 files, 270 tests).
  • npm run test:focused over all tests/boundary/mcp, tests/boundary/cli and tests/conformance files plus the generated-skill and setup-skill tests: 137 passed, 2 skipped (585 tests).
  • New case in tests/boundary/mcp/analysisSummaryDetailMcp.test.ts: a layout summary returns a view linked to the retained layout, and an inspect_analysis_view section 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

…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]>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@kaoru0822-kitauji
kaoru0822-kitauji merged commit 5156ba4 into main Oct 10, 2026
27 checks passed
@kaoru0822-kitauji
kaoru0822-kitauji deleted the feat/summary-detail-native-layout branch October 10, 2026 14:57
@morluto morluto added enhancement New feature or request area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants