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(storage): update schema tests for owner collections
Steven Enamakele50f7b5ac1e8
diff --git a/crates/openhuman-core/src/storage/schema_tests.rs b/crates/openhuman-core/src/storage/schema_tests.rsindex 0389689caa..b9c89461f2 100644--- a/crates/openhuman-core/src/storage/schema_tests.rs+++ b/crates/openhuman-core/src/storage/schema_tests.rs@@ -1,37 +1,34 @@use super::*;#[test]-fn every_owner_composes_without_collision() {- let registry = registry().expect("the owners compose");- let owners: Vec<&str> = registry.owners().collect();+fn every_linked_owner_collection_is_valid_and_unique() {+ let collections = owner_collections().expect("owner collection declarations compose");+ let mut names = std::collections::HashSet::new();+ for spec in &collections {+ spec.validate().expect("owner collection is valid");+ assert!(names.insert(spec.name.as_str()), "duplicate {}", spec.name);+ }for expected in [- "harness",- "session",- "graph",- "tasks",- "approvals",- "devices",- "notifications",- "task_sources",- "artifacts",- "cost",- "config",- "profiles",- "threads",- "subagents",- "agents",+ "harness.journal",+ "conversations.threads",+ "approvals.requests",+ "devices.paired",+ "notifications.integration",+ "task_sources.sources",+ "artifacts.records",+ "cost.records",+ "config.documents",+ "profiles.registry",+ "threads.transcript_keys",+ "subagents.sessions",] {- assert!(owners.contains(&expected), "{expected} missing: {owners:?}");+ assert!(names.contains(expected), "{expected} missing: {names:?}");}}#[test]-fn module_items_are_the_owners_module_scoped_declarations() {- let mcp = module_items("mcp");- assert!(mcp- .collections- .iter()- .any(|spec| spec.name == "mcp.servers"));- assert!(mcp.streams.iter().any(|name| name == "mcp.audit"));- assert!(module_items("no-such-owner").collections.is_empty());+fn module_collections_are_limited_to_the_named_owner() {+ let mcp = module_collections("mcp");+ assert!(mcp.iter().any(|spec| spec.name == "mcp.servers"));+ assert!(module_collections("no-such-owner").is_empty());}