fix(evidence)!: validate native view parent predicates (#8451)

Reject native view sources whose predicate disagrees with the selected operation. Use the original predicate for existing Evidence; do not alter a record without recomputing its identity.
This commit is contained in:
morluto authored and GitHub committed 2026-11-01 20:27:34 +08:00
1 parent 3842809c37
commit 53363166f0
41 files changed
+307 -10

No files matched your search

@@ -69,6 +69,7 @@ const capture = () => {
return {
report,
parent: {
predicateType: evidence.predicate_type,
evidenceId: evidence.evidence_id,
operation: evidence.operation,
normalizedResult: report,
@@ -126,6 +127,7 @@ it("uses qlog event headlines without promoting HTTP-shaped extensions", () => {
);
const preview = projectAnalysisView(
{
predicateType: evidence.predicate_type,
evidenceId: evidence.evidence_id,
operation: evidence.operation,
normalizedResult: qlog,
@@ -349,6 +351,7 @@ const nativePreview = (
});
const preview = projectAnalysisView(
{
predicateType: evidence.predicate_type,
evidenceId: evidence.evidence_id,
operation: evidence.operation,
normalizedResult: report,