fix(perf): bind summary views to outer artifact identity

Verify both the summary target and outer view artifact against the selected
capture at the shared SDK observation boundary and full factual grader.
Make the passing fixture preserve the real outer artifact and reject missing
or incorrect outer identities without changing original model measurements.

Validation: 29 related grading/context tests, before/after actual SDK fault
probes with complete/summary controls, and all four stored factual regrades.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
This commit is contained in:
N0zoM1z0
2026-10-14 02:40:31 +08:00
committed by morluto
co-authored by factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> Kaoru0822
parent 14c93a753f
commit a4634ba21b
4 changed files with 30 additions and 4 deletions
+4 -1
View File
@@ -551,7 +551,10 @@ const pcapObservation = (evidence, requestedView) => {
evidence.subject?.digest?.sha256 !== inputSha ||
evidence.subject?.local_path !== values.path ||
target?.sha256 !== inputSha ||
target?.path !== values.path
target?.path !== values.path ||
(value.kind === "summary" &&
(value.artifact?.sha256 !== inputSha ||
value.artifact?.path !== values.path))
)
throw new Error("PCAP Evidence does not identify the selected capture");
// Summary delivery delegates to a retained view, whose Evidence operation is