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(orchestration): add tenant isolation tests for background completions and delivery
Steven Enamakel5306c557a142
diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions_tenant_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_completions_tenant_tests.rsindex f263e8cfc4..62564d3a02 100644--- a/crates/openhuman-core/src/agent/orchestration/background_completions_tenant_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_completions_tenant_tests.rs@@ -22,9 +22,7 @@ fn profile(name: &str, workspace: &std::path::Path) -> Arc<CoreContext> {}async fn record(ctx: &Arc<CoreContext>, ws: &std::path::Path, task: &str) {- CoreContext::scope(- Arc::clone(ctx),- record_completion(+ record_completion(&DispatchCtx::new(Arc::clone(ctx)),ws,"sess-1",@@ -32,9 +30,7 @@ async fn record(ctx: &Arc<CoreContext>, ws: &std::path::Path, task: &str) {"researcher","done",Some("t1".into()),- ),- )- .await;+ ).await;}fn pending(ws: &std::path::Path) -> Vec<String> {diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery_tenant_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery_tenant_tests.rsindex aeb30e745b..b182a1a45c 100644--- a/crates/openhuman-core/src/agent/orchestration/background_delivery_tenant_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery_tenant_tests.rs@@ -69,9 +69,7 @@ async fn an_off_task_completion_drains_only_its_owners_thread() {let (task_a, task_b) = (unique("sub-a"), unique("sub-b"));for (ctx, ws, task) in [(&alice, &ws_a, &task_a), (&bob, &ws_b, &task_b)] {- CoreContext::scope(- Arc::clone(ctx),- record_completion(+ record_completion(&DispatchCtx::new(Arc::clone(ctx)),ws.path(),&session,@@ -79,9 +77,7 @@ async fn an_off_task_completion_drains_only_its_owners_thread() {"r","done",Some(thread.into()),- ),- )- .await;+ ).await;}let resolve = |p: &str| {[&alice, &bob]