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
chore: files changed crates/openhuman-core/src/skills/ops_discovery_tests.rs,crates/openhuman-core/s
Steven Enamakelae80bfa30512
diff --git a/crates/openhuman-core/src/skills/ops_discovery_tests.rs b/crates/openhuman-core/src/skills/ops_discovery_tests.rsindex c461271e8f..e91cd266c0 100644--- a/crates/openhuman-core/src/skills/ops_discovery_tests.rs+++ b/crates/openhuman-core/src/skills/ops_discovery_tests.rs@@ -341,7 +341,9 @@ async fn flow_authoring_is_hidden_when_tinyflows_component_is_disabled() {domains.flows = false;}let context = CoreContext::for_test_with_components(components).derive_with(- ContextOverlay::new(config.clone(), domains, ToolGroups::none()).profile(profile_id),+ ContextOverlay::new(config.clone(), domains, ToolGroups::none())+ .profile(profile_id)+ .without_user_skill_roots(),);(context, config, domains)};@@ -395,7 +397,8 @@ async fn module_builtin_gate_only_narrows_context_and_explicit_config() {DomainSet::full(),ToolGroups::none(),)- .profile("shared"),+ .profile("shared")+ .without_user_skill_roots(),);let enabled = CoreContext::scope(enabled_context, async {@@ -415,7 +418,8 @@ async fn module_builtin_gate_only_narrows_context_and_explicit_config() {DomainSet::full(),ToolGroups::none(),)- .profile("shared"),+ .profile("shared")+ .without_user_skill_roots(),);let context_component_hidden = CoreContext::scope(context_component_context, async {let dispatch = crate::core::runtime::DispatchCtx::ambient();@@ -433,7 +437,8 @@ async fn module_builtin_gate_only_narrows_context_and_explicit_config() {narrowed_domains.flows = false;let context_domain_context = CoreContext::for_test_with_components(all).derive_with(ContextOverlay::new(enabled_config.clone(), narrowed_domains, ToolGroups::none())- .profile("shared"),+ .profile("shared")+ .without_user_skill_roots(),);let context_domain_hidden = CoreContext::scope(context_domain_context, async {let dispatch = crate::core::runtime::DispatchCtx::ambient();@@ -460,7 +465,8 @@ async fn module_builtin_gate_only_narrows_context_and_explicit_config() {DomainSet::full(),ToolGroups::none(),)- .profile("shared"),+ .profile("shared")+ .without_user_skill_roots(),),async {let dispatch = crate::core::runtime::DispatchCtx::ambient();@@ -484,7 +490,8 @@ async fn module_builtin_gate_only_narrows_context_and_explicit_config() {DomainSet::full(),ToolGroups::none(),)- .profile("shared"),+ .profile("shared")+ .without_user_skill_roots(),),async {let dispatch = crate::core::runtime::DispatchCtx::ambient();@@ -508,7 +515,8 @@ async fn module_builtin_gate_only_narrows_context_and_explicit_config() {DomainSet::full(),ToolGroups::none(),)- .profile("shared"),+ .profile("shared")+ .without_user_skill_roots(),),async {let dispatch = crate::core::runtime::DispatchCtx::ambient();@@ -529,19 +537,20 @@ async fn module_builtin_gate_only_narrows_context_and_explicit_config() {let config = enabled_config.clone();let ctx = CoreContext::for_test_with_components(all).derive_with(ContextOverlay::new(config.clone(), DomainSet::full(), ToolGroups::none())- .profile(profile_id),+ .profile(profile_id)+ .without_user_skill_roots(),);(ctx, config)};let (tenant_a_ctx, tenant_a_config) = tenant_snapshot("tenant-a");- let tenant_a = CoreContext::scope(tenant_a_ctx, async {+ let tenant_a = CoreContext::scope(tenant_a_ctx.clone(), async {let dispatch = crate::core::runtime::DispatchCtx::ambient();crate::skills::bundled::flow_authoring::prewarm(&dispatch, &tenant_a_config, None).await;crate::skills::load_workflow_metadata_for(&dispatch, &tenant_a_config)}).await;let (tenant_b_ctx, tenant_b_config) = tenant_snapshot("tenant-b");- let tenant_b = CoreContext::scope(tenant_b_ctx, async {+ let tenant_b = CoreContext::scope(tenant_b_ctx.clone(), async {let dispatch = crate::core::runtime::DispatchCtx::ambient();crate::skills::bundled::flow_authoring::prewarm(&dispatch, &tenant_b_config, None).await;crate::skills::load_workflow_metadata_for(&dispatch, &tenant_b_config)@@ -555,6 +564,16 @@ async fn module_builtin_gate_only_narrows_context_and_explicit_config() {.iter().find(|skill| skill.id() == "flow-authoring").expect("tenant B has its own warmed snapshot");+ assert_eq!(flow_a.scope, tinyskills::SkillScope::Builtin);+ assert_eq!(flow_b.scope, tinyskills::SkillScope::Builtin);+ let flow_a_document = flow_a.location.as_deref().expect("tenant A document");+ assert!(+ flow_a_document.starts_with(workspace.path()),+ "tamper target must be inside the isolated temp workspace: {}",+ flow_a_document.display()+ );+ let flow_b_document = flow_b.location.as_deref().expect("tenant B document");+ assert!(flow_b_document.starts_with(workspace.path()));let flow_a_file = flow_a.location.as_deref()diff --git a/crates/openhuman-core/src/skills/search_tests.rs b/crates/openhuman-core/src/skills/search_tests.rsindex 0481c1793d..e897a0a80f 100644--- a/crates/openhuman-core/src/skills/search_tests.rs+++ b/crates/openhuman-core/src/skills/search_tests.rs@@ -108,17 +108,29 @@ async fn module_owned_flow_skill_is_findable_after_scoped_prewarm() {workspace_dir: tmp.path().to_path_buf(),..Default::default()};- let ctx = crate::core::runtime::DispatchCtx::host_default();- crate::modules::tinyflows::copilot_proxy(&config)- .await- .expect("linked TinyFlows fixture is admitted and serving");- crate::skills::bundled::flow_authoring::prewarm(&ctx, &config, None).await;-- let tool = SkillSearchTool::new(Arc::new(config));- let result = tool- .execute(json!({ "query": "flow authoring" }))- .await- .expect("dispatch");+ let context =+ crate::core::runtime::CoreContext::for_test(crate::core::runtime::DomainSet::full(), None)+ .derive_with(+ crate::core::runtime::ContextOverlay::new(+ config.clone(),+ crate::core::runtime::DomainSet::full(),+ crate::tools::toolpacks::ToolGroups::none(),+ )+ .profile("skill-search")+ .without_user_skill_roots(),+ );+ let result = crate::core::runtime::CoreContext::scope(context, async {+ let ctx = crate::core::runtime::DispatchCtx::ambient();+ crate::modules::tinyflows::copilot_proxy(&config)+ .await+ .expect("linked TinyFlows fixture is admitted and serving");+ crate::skills::bundled::flow_authoring::prewarm(&ctx, &config, None).await;+ let tool = SkillSearchTool::new(Arc::new(config));+ tool.execute(json!({ "query": "flow authoring" }))+ .await+ .expect("dispatch")+ })+ .await;let text = format!("{result:?}");assert!(text.contains("flow-authoring"),