Skip to content

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

test(storage): assert module grants exclude tsd collections

Steven Enamakel4f8ffc6a9b8d
diff --git a/crates/openhuman-core/src/modules/storage_grant_schemas_tests.rs b/crates/openhuman-core/src/modules/storage_grant_schemas_tests.rs
index bfe772e27d..2e02a993aa 100644
--- a/crates/openhuman-core/src/modules/storage_grant_schemas_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_grant_schemas_tests.rs
@@ -29,6 +29,20 @@ fn every_row_has_a_valid_generated_grant() {
assert!(declared("not-a-module").is_none());
}
+#[test]
+fn module_grants_exclude_storage_driver_owned_collections() {
+ for row in ROWS {
+ let collections = module_collections(row.owner);
+ assert!(
+ collections
+ .iter()
+ .all(|collection| !collection.name.starts_with("tsd.")),
+ "{} must not grant TSD internal collections",
+ row.module
+ );
+ }
+}
+
#[test]
fn the_registry_ids_exist() {
for row in ROWS {