Skip to content

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

test(storage-grant): assert tinyjuice declares only its savings collection

Steven Enamakel7070637d8511
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 f640a2ba94..46c6421539 100644
--- a/crates/openhuman-core/src/modules/storage_grant_schemas_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_grant_schemas_tests.rs
@@ -85,7 +85,9 @@ fn tinymcp_reaches_its_v2_collections_stream_and_secrets() {
#[test]
fn tinyjuice_reaches_only_its_blob_prefix() {
let grant = declared("tinyjuice").unwrap();
- assert!(grant.collections.is_empty());
+ // Its only document collection is the savings ledger; it declares no other.
+ let names: Vec<&str> = grant.collections.iter().map(|c| c.name.as_str()).collect();
+ assert_eq!(names, [tinyjuice_bus::storage::SAVINGS_COLLECTION]);
assert!(allowed(
&grant,
Object::Blobs,