test(perf): validate PCAP receipt IDs and exact view types

Reject malformed response identities at observation production and preserve
JSON scalar types when checking requested and cited PCAP views. Keep normal
complete and delegated summary workflows unchanged.

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 6f0237af0c
commit f07446681c
4 changed files with 28 additions and 5 deletions
@@ -524,6 +524,11 @@ const inspectEvmTarget = async () => {
};
const pcapObservation = (evidence) => {
if (
typeof evidence.evidence_id !== "string" ||
!/^ev_[a-f0-9]{64}$/.test(evidence.evidence_id)
)
throw new Error("PCAP Evidence lacks a valid receipt identity");
const value = normalized(evidence);
const target =
value.kind === "summary"