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
+4 -1
View File
@@ -1,4 +1,5 @@
import { z } from "zod";
import { evidenceBundleSummarySchema } from "../domain/evidenceRecordSummary.js";
import { BINARY_ARCHITECTURES } from "../domain/binaryTargetTypes.js";
import { nativeFunctionAnnotationsSchema } from "../domain/native/nativeFunctionAnnotations.js";
import { nativeLoadImageSchema } from "../domain/native/nativeLoadImage.js";
@@ -470,7 +471,9 @@ export const sessionOutputSchemas = {
unknowns: z.number().int().min(0),
}),
),
get_evidence_bundle: lifecycleResultOf(evidenceBundleSchema),
get_evidence_bundle: lifecycleResultOf(
z.union([evidenceBundleSchema, evidenceBundleSummarySchema]),
),
get_navigation_context: lifecycleResultOf(
z.object({
document: z.string(),