refactor(tools): remove redundant limits and acknowledgements

This commit is contained in:
morluto
2026-09-29 10:53:45 +08:00
parent 7ba3580c86
commit bd0e341572
158 changed files with 599 additions and 1527 deletions
@@ -432,7 +432,6 @@ const assertRuntimeParameters = (
.object({
...common,
allowed_file_roots: electronFileRootsSchema,
source_capture_approved: z.boolean(),
})
.passthrough()
.parse(evidence.parameters);
@@ -440,13 +439,9 @@ const assertRuntimeParameters = (
throw new TypeError(
"Runtime Evidence target disagrees with its captured result",
);
if (
expected.sourceIncluded &&
(!parameters.include_script_sources ||
parameters.source_capture_approved !== true)
)
if (expected.sourceIncluded && !parameters.include_script_sources)
throw new TypeError(
"Runtime Evidence contains source without source-capture approval",
"Runtime Evidence contains source without source-capture selection",
);
};