Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(flows): cover graph collection and record allowlists

Steven Enamakel4509c75e8136
diff --git a/crates/openhuman-core/src/flows/catalog_storage_tests.rs b/crates/openhuman-core/src/flows/catalog_storage_tests.rs
index aa833d13ca..ddd641d980 100644
--- a/crates/openhuman-core/src/flows/catalog_storage_tests.rs
+++ b/crates/openhuman-core/src/flows/catalog_storage_tests.rs
@@ -65,6 +65,26 @@ fn document_records_cannot_address_other_shared_or_graph_keys() {
"{collection}"
);
}
+ for collection in [
+ "graph_checkpoints",
+ "graph_threads",
+ "graph_writes",
+ "delegation_graph_checkpoints",
+ "delegation_graph_threads",
+ "delegation_graph_writes",
+ "flows_graph_checkpoints",
+ "flows_graph_threads",
+ "flows_graph_writes",
+ ] {
+ assert!(allowed_collection(collection).is_ok(), "{collection}");
+ }
+ for (collection, id) in [
+ ("tsd.migrations", "graph/graph.checkpoints/checkpoints_flows_v2"),
+ ("graph.checkpoints", "graph/thread/checkpoint"),
+ ("graph.checkpoints", "delegation/thread/checkpoint"),
+ ] {
+ assert!(allowed_record(collection, id).is_ok(), "{collection}: {id}");
+ }
for (collection, id) in [
("tsd.migrations", "other/definitions_v2"),
("tsd.migrations", "flows/unknown/migration"),
diff --git a/vendor/tinyflows b/vendor/tinyflows
index 38b6ea5b39..5c6a801860 160000
--- a/vendor/tinyflows
+++ b/vendor/tinyflows
@@ -1 +1 @@
-Subproject commit 38b6ea5b39e90a437045138f7130c9b50d879320
+Subproject commit 5c6a80186053cbc8b92bbc8bf13638de2d8f5894