feat(mcp)!: require Evidence for managed reconstruction

This commit is contained in:
morluto
2026-07-16 20:15:24 +08:00
parent fd08025dcd
commit d36af5d0f7
5 changed files with 52 additions and 15 deletions
+15 -8
View File
@@ -39,6 +39,12 @@ export const managedRuntimeCorrelationReferenceInputSchema =
.omit({ static_members: true })
.extend({ static_members_evidence_id: managedEvidenceIdSchema });
/** MCP reference for importing reconstruction against session Evidence. */
export const managedReconstructionReferenceInputSchema =
managedReconstructionImportInputSchema
.omit({ static_members: true })
.extend({ static_members_evidence_id: managedEvidenceIdSchema });
const comparisonOutputSchema =
managedWorkflowOutputSchemas.compare_managed_members;
if (comparisonOutputSchema === undefined)
@@ -82,21 +88,22 @@ export const MANAGED_WORKFLOW_TOOL_CONTRACTS = [
},
{
name: "import_managed_reconstruction",
...toolContractMetadata("import_managed_reconstruction"),
description:
"Import decompiler-produced managed reconstruction against authenticated inspect_managed_members Evidence. The workflow locks each method to artifact SHA-256, MVID, metadata token, signature hash, and normalized IL hash, records the decompiler identity and options, and marks C# or pseudocode as analyst inference rather than canonical byte observation.",
kind: "application",
inputSchema: managedReconstructionImportInputSchema,
inputSchema: managedReconstructionReferenceInputSchema,
outputSchema: reconstructionOutputSchema,
annotations: {
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true,
openWorldHint: false,
},
examples: [
{
title: "Import a decompiler reconstruction for one managed method",
input: MANAGED_RECONSTRUCTION_IMPORT_EXAMPLE,
input: {
static_members_evidence_id:
MANAGED_RECONSTRUCTION_IMPORT_EXAMPLE.static_members.evidence_id,
decompiler: MANAGED_RECONSTRUCTION_IMPORT_EXAMPLE.decompiler,
methods: MANAGED_RECONSTRUCTION_IMPORT_EXAMPLE.methods,
notes: MANAGED_RECONSTRUCTION_IMPORT_EXAMPLE.notes,
},
},
],
},