feat(evidence): discover retained records without full payloads (#1682)

* feat(evidence): discover retained records without full payloads

* fix(evidence): guide oversized results to retained discovery

* style(tests): format retained discovery recovery assertion
This commit is contained in:
Ysopwnable
2026-10-11 11:18:26 +08:00
committed by GitHub
parent c8820e03db
commit 17f704050f
15 changed files with 514 additions and 7 deletions
+3 -2
View File
@@ -8,6 +8,7 @@ import {
import { toolContract } from "../contracts/toolContracts.js";
import type { EvidenceBundle } from "../domain/evidenceBundle.js";
import { ok } from "../domain/result.js";
import { inspectEvidenceBundle } from "../application/investigation/InspectEvidenceBundle.js";
import { toolRegistrationOptions } from "./toolRegistrationOptions.js";
interface EvidenceToolRegistration {
@@ -72,9 +73,9 @@ const registerSnapshotEvidenceTool = ({
server.registerTool(
snapshotContract.name,
toolRegistrationOptions(snapshotContract),
() =>
(input) =>
server.delivery.toCallToolResult(
ok(bundleForSerialization(session)),
inspectEvidenceBundle(bundleForSerialization(session), input),
snapshotContract,
),
);