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/bundled/flow_authoring_tests.rs,crates/openhum
Steven Enamakel7c81278bacf5
diff --git a/crates/openhuman-core/src/skills/bundled/flow_authoring_tests.rs b/crates/openhuman-core/src/skills/bundled/flow_authoring_tests.rsindex 4cc36417a8..a6f5e925b8 100644--- a/crates/openhuman-core/src/skills/bundled/flow_authoring_tests.rs+++ b/crates/openhuman-core/src/skills/bundled/flow_authoring_tests.rs@@ -32,30 +32,42 @@ async fn optional_warmup_returns_while_the_loader_is_blocked_and_deduplicates()crate::modules::tinyflows::copilot_proxy(&config).await.expect("linked TinyFlows fixture is admitted and serving");- let ctx = DispatchCtx::host_default();+ let context = crate::core::runtime::CoreContext::for_test(DomainSet::full(), None).derive_with(+ crate::core::runtime::ContextOverlay::new(+ config.clone(),+ DomainSet::full(),+ crate::tools::toolpacks::ToolGroups::none(),+ )+ .profile("blocked-prewarm")+ .without_user_skill_roots(),+ );let (started_tx, started_rx) = tokio::sync::oneshot::channel();let (release_tx, release_rx) = tokio::sync::oneshot::channel::<()>();let (finished_tx, finished_rx) = tokio::sync::oneshot::channel();- assert!(schedule_prewarm_operation(- &ctx,- &config,- Some(DomainSet::full()),- async move {- let _ = started_tx.send(());- let _ = release_rx.await;- let _ = finished_tx.send(());- },- ));- // The scheduled operation is now blocked on `release_rx`. Reaching this- // point proves the caller that scheduled it did not wait for the loader.- started_rx.await.expect("background task started");- assert!(- !schedule_prewarm_operation(&ctx, &config, Some(DomainSet::full()), async {}),- "a second warmup for the same explicit scope is coalesced"- );- release_tx.send(()).expect("release background task");- finished_rx.await.expect("background task finished");+ crate::core::runtime::CoreContext::scope(context, async {+ let ctx = DispatchCtx::ambient();+ assert!(schedule_prewarm_operation(+ &ctx,+ &config,+ Some(DomainSet::full()),+ async move {+ let _ = started_tx.send(());+ let _ = release_rx.await;+ let _ = finished_tx.send(());+ },+ ));+ // The scheduled operation is now blocked on `release_rx`. Reaching+ // this point proves the caller did not wait for the loader.+ started_rx.await.expect("background task started");+ assert!(+ !schedule_prewarm_operation(&ctx, &config, Some(DomainSet::full()), async {}),+ "a second warmup for the same explicit scope is coalesced"+ );+ release_tx.send(()).expect("release background task");+ finished_rx.await.expect("background task finished");+ })+ .await;}#[test]diff --git a/crates/openhuman-core/src/skills/ops_discovery_tests.rs b/crates/openhuman-core/src/skills/ops_discovery_tests.rsindex e91cd266c0..730873414e 100644--- a/crates/openhuman-core/src/skills/ops_discovery_tests.rs+++ b/crates/openhuman-core/src/skills/ops_discovery_tests.rs@@ -352,8 +352,22 @@ async fn flow_authoring_is_hidden_when_tinyflows_component_is_disabled() {crate::modules::tinyflows::copilot_proxy(&enabled_config).await.expect("linked TinyFlows fixture is admitted and serving");+ let state = crate::modules::ops::state_of(crate::modules::tinyflows::MODULE_ID);+ assert_eq!(state, crate::modules::types::ModuleState::Ready);+ assert!(crate::modules::runtime::is_module_serving(+ crate::modules::tinyflows::MODULE_ID+ ));let visible = CoreContext::scope(enabled_ctx, async {let dispatch = crate::core::runtime::DispatchCtx::ambient();+ let gate = crate::skills::ops_discover::DiscoveryGate::from_config(+ &dispatch,+ &enabled_config,+ Some(enabled_domains),+ );+ assert!(+ gate.flow_authoring_enabled(),+ "unexpected flow gate: {gate:?}"+ );crate::skills::bundled::flow_authoring::prewarm(&dispatch,&enabled_config,