Skip to content

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

fix(storage_grants): add debug logging for schema mismatch

Steven Enamakele28f2867f705
diff --git a/crates/openhuman-core/src/modules/storage_grants.rs b/crates/openhuman-core/src/modules/storage_grants.rs
index f68fd4bbb9..70bf71d135 100644
--- a/crates/openhuman-core/src/modules/storage_grants.rs
+++ b/crates/openhuman-core/src/modules/storage_grants.rs
@@ -371,7 +371,7 @@ fn documents(grant: &StorageGrant, selector: &str, request: &Value) -> Result<Pl
.ok_or(Denied::Malformed)?;
match grant.spec(&wanted.name) {
Some(declared) if *declared == wanted => Ok(Plan::Answer(Value::Null)),
- _ => Err(Denied::Schema),
+ other => { eprintln!("DBGSCHEMA wanted={wanted:?} declared={other:?}"); Err(Denied::Schema) },
}
}
"DropCollection" => Err(Denied::Schema),