The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test: tighten site forgetting, storage grant, and trace export assertions
Steven Enamakelbae885581f0a
diff --git a/crates/openhuman-core/src/modules/schemas_tests.rs b/crates/openhuman-core/src/modules/schemas_tests.rsindex 58fe13c640..1b475be753 100644--- a/crates/openhuman-core/src/modules/schemas_tests.rs+++ b/crates/openhuman-core/src/modules/schemas_tests.rs@@ -79,6 +79,7 @@ async fn forgetting_sites_reports_how_many_went() {for site in ["shop.test", "books.test"] {std::fs::write(sites.join(format!("{site}.json")), b"{}").unwrap();}+ let workspace = config.workspace_dir.clone();let ctx = CoreContext::for_test_with_config(DomainSet::full(), config);let (one, every) = CoreContext::scope(ctx.clone(), async {@@ -97,7 +98,14 @@ async fn forgetting_sites_reports_how_many_went() {assert_eq!(one.unwrap()["forgotten"], 1);assert_eq!(every.unwrap()["forgotten"], 1);- assert!(!sites.join("books.test.json").exists());++ let reopened = crate::modules::site_memory_host::SiteStore::open(&workspace)+ .expect("reopen active site store");+ assert!(reopened.load("shop.test").await.unwrap().hints.is_empty());+ assert!(reopened.load("books.test").await.unwrap().hints.is_empty());+ assert_eq!(reopened.forget(None).await.unwrap(), 0);+ assert!(sites.join("shop.test.json").exists());+ assert!(sites.join("books.test.json").exists());}#[test]diff --git a/crates/openhuman-core/src/modules/storage_grant_schemas_tests.rs b/crates/openhuman-core/src/modules/storage_grant_schemas_tests.rsindex f640a2ba94..98ebe9c002 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,19 @@ 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());+ assert!(grant.collections.contains("juice.savings"));+ assert!(allowed(+ &grant,+ Object::Documents,+ "Get",+ json!({"collection": "juice.savings", "id": "x"})+ ));+ assert!(!allowed(+ &grant,+ Object::Documents,+ "Get",+ json!({"collection": "unrelated.collection", "id": "x"})+ ));assert!(allowed(&grant,Object::Blobs,diff --git a/crates/openhuman-core/src/web_chat/progress_bridge_trace_tests.rs b/crates/openhuman-core/src/web_chat/progress_bridge_trace_tests.rsindex 64cb71c834..a871ba7a1d 100644--- a/crates/openhuman-core/src/web_chat/progress_bridge_trace_tests.rs+++ b/crates/openhuman-core/src/web_chat/progress_bridge_trace_tests.rs@@ -2,7 +2,8 @@ use super::*;#[test]fn disabled_export_does_not_create_a_trace_context() {- let config = crate::config::Config::default();+ let mut config = crate::config::Config::default();+ config.observability.share_usage_data = false;let context = trace_context(&config,&ChatRequestMetadata::default(),