mirror of
https://github.com/morluto/rea.git
synced 2026-11-16 19:53:50 +00:00
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:
1 parent
3842809c37
commit
53363166f0
41 files changed
+307
-10
No files matched your search
@@ -3,6 +3,9 @@ import { z } from "zod";
|
||||
import { digestSchema, prefixedDigestSchema } from "../digests.js";
|
||||
import { retainedEvidenceReferenceSchema } from "../evidenceReference.js";
|
||||
|
||||
export const NATIVE_FUNCTION_MATCHING_PREDICATE =
|
||||
"rea.native-function-matching";
|
||||
|
||||
const evidenceId = prefixedDigestSchema("ev");
|
||||
export const nativeMatchStateSchema = z.enum([
|
||||
"matched",
|
||||
|
||||
Reference in new issue
Block a user