fix(evidence): enforce managed identity and cancel bundle reads

Validate managed reconstruction through the shared artifact and MVID scope boundary, including known/unknown identity contradictions. Forward MCP comparison cancellation into both bundle reads and consolidate pre-cancel coverage.

Verified managed graph/reconstruction and filesystem/MCP cancellation workflows. A controlled missing-signal mutation reads 130 chunks instead of the expected one; cancellation leaves the session unchanged and retry succeeds.
This commit is contained in:
morluto
2026-10-12 13:06:30 +08:00
parent 83a4445f44
commit 3bcc68c037
8 changed files with 329 additions and 38 deletions
+2 -2
View File
@@ -31,8 +31,8 @@ export const registerBundleComparisonTool = (
context.mcpReq.signal,
async () => {
const [left, right] = await Promise.all([
readEvidenceBundle(input.left_bundle_path),
readEvidenceBundle(input.right_bundle_path),
readEvidenceBundle(input.left_bundle_path, context.mcpReq.signal),
readEvidenceBundle(input.right_bundle_path, context.mcpReq.signal),
]);
if (!left.ok) return server.delivery.toCallToolResult(left, contract);
if (!right.ok)