feat(mcp): select views of retained analysis results (#1180)

Add explicit summary, facet, item and paged views of retained analysis Evidence without repeating analysis. Preserve captured observations, graph validation, artifact identity, coverage and complete default results.

Fixes #1050

Verified with focused source, CLI, pinned-SDK schema and MCP tests, serial static checks, and one complete native Windows Notion ASAR workflow. Real Hopper/Ghidra verification was not performed for this provider-independent projection change.

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
This commit is contained in:
Matt Van Horn
2026-10-09 12:45:48 +08:00
committed by GitHub
co-authored by Matt Van Horn
parent 911152a04d
commit db675f1d52
39 changed files with 2609 additions and 30 deletions
@@ -65,6 +65,26 @@ it("advertises exact valid schemas and records inline layout without a binary ta
expect(parsed.result).toEqual(value);
expect(parsed.result).toEqual(evidence.normalized_result);
expect(session.evidenceById(evidence.evidence_id)).toEqual(evidence);
const viewed = await client.callTool({
name: "inspect_analysis_view",
arguments: {
source: {
kind: "retained-evidence",
evidence_id: evidence.evidence_id,
},
view: { kind: "summary" },
},
});
expect(viewed.isError).not.toBe(true);
expect(
toolContract("inspect_analysis_view").outputSchema.parse(
viewed.structuredContent,
).result,
).toMatchObject({
kind: "summary",
parent_evidence_id: evidence.evidence_id,
summary: { format: "elf", bytes: value.artifact.bytes },
});
expect(
(
await client.callTool({