Skip to content

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

test(subagent_host): assert tenant and artifact blobs in byte policy test

Steven Enamakel7899421576c2
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner_tests.rs
index 37ffc5f0a7..cd8412618f 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner_tests.rs
@@ -63,6 +63,8 @@ async fn byte_policy_projects_a_parent_readable_artifact_before_the_result_cap()
workspace_dir.clone(),
parent_action_dir.clone(),
);
+ assert!(options.run_context.dispatch_ctx().tenant().is_ok());
+ assert!(crate::storage::sessions::artifact_blobs_for(&workspace_dir).is_some());
apply_subagent_result_policies(&mut outcome, &definition, &options, "task-policy-test")
.await;
})