Skip to content

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

fix(flows): allow migration records in shared collections

Steven Enamakel990cf919dcb0
diff --git a/crates/openhuman-core/src/flows/catalog_storage.rs b/crates/openhuman-core/src/flows/catalog_storage.rs
index 1828c00ea7..73116c31d9 100644
--- a/crates/openhuman-core/src/flows/catalog_storage.rs
+++ b/crates/openhuman-core/src/flows/catalog_storage.rs
@@ -355,7 +355,9 @@ fn allowed_record(collection: &str, id: &str) -> Result<(), StorageError> {
"record is outside the workflow catalog owner's keys",
));
}
- if SHARED_COLLECTIONS.contains(&collection) && !id.starts_with(FLOW_KEY_PREFIX)
+ if SHARED_COLLECTIONS.contains(&collection)
+ && collection != "tsd.migrations"
+ && !id.starts_with(FLOW_KEY_PREFIX)
{
return Err(StorageError::invalid_input(
"record is outside the workflow catalog owner's keys",