fix(capture): retain safe caller path selections (#9626)

* fix(cli)!: retain repeated WASM input paths

BREAKING CHANGE: caller_input_paths values may now be ordered arrays of strings as well as strings. Clients must accept both forms.

* fix(capture): retain safe caller path selections

* fix(evidence): retain auxiliary selections in direct summaries

* test(wasm): separate SDK schema and acquired-input coverage
This commit is contained in:
morluto authored and GitHub committed 2026-11-09 20:12:45 +08:00
1 parent dda2d40295
commit bf271ba3fb
10 files changed
+326 -130

No files matched your search

@@ -210,18 +210,23 @@ it("projects completed raw capture facts on failure through the caller's selecti
});
const result = await new WebNetworkCaptureService({
inspect: () => Promise.resolve({ ok: false, error }),
}).inspect({
capture_path: report.artifact.path,
format: "har",
record_ordinals: [0],
sensitive_values: ["private-marker"],
});
}).inspect(
{
capture_path: report.artifact.path,
format: "har",
record_ordinals: [0],
sensitive_values: ["private-marker"],
},
undefined,
{ capture: "./capture.har" },
);
if (result.ok) throw new Error("Cancellation must remain the primary result");
expect(result.error._tag).toBe("AnalysisCancelledError");
expect(result.error.cause).toBe(reason);
const partial = parseEvidence(result.error.partialObservation);
expect(partial).toMatchObject({
operation: "inspect_web_network_capture",
caller_input_path: "./capture.har",
parameters: { record_ordinals: [0] },
subject: { local_path: "" },
normalized_result: {