From 882511dc8c0abded18ba6abdca64938db2652771 Mon Sep 17 00:00:00 2001 From: Marcos Magueta Date: Wed, 23 Sep 2026 03:32:15 -0300 Subject: lift retaining, membership and mode checks out of ephemeral relation --- lib/kernel/SubstantialRelation.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/kernel/SubstantialRelation.ml') diff --git a/lib/kernel/SubstantialRelation.ml b/lib/kernel/SubstantialRelation.ml index 7beb133..b94e2f8 100644 --- a/lib/kernel/SubstantialRelation.ml +++ b/lib/kernel/SubstantialRelation.ml @@ -145,7 +145,7 @@ module Make (S : Abstract.Storage.STORAGE) = struct let modes_of description = Concepts.Mode.of_list [ Concepts.Mode.enumerable Concepts.Cardinality.Finite; - Concepts.Mode.decides_when (BatMap.String.keys description |> BatList.of_enum) ] + {Concepts.Mode.bound= Concepts.Mode.attributes_of_map description; affords= Decides} ] let modes tx relation = schema_of tx relation |> Result.map modes_of @@ -161,7 +161,7 @@ module Make (S : Abstract.Storage.STORAGE) = struct (* The protocol takes a tuple, not bytes: encoding is this object's business, and a caller that had to produce the exact stored bytes would have to know this encoding to do it. *) method contains (tuple : Concepts.Tuple.t) = - SI.with_transaction storage (fun tx -> contains_tuple tx relation tuple) + SI.with_read storage (fun tx -> contains_tuple tx relation tuple) method describe () = Ok (Protocols.Schematics.Relation description) -- cgit v1.2.3