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(triage): derive hosted context with agent catalogue in escalation test
Steven Enamakel69fa8d4a1c82
diff --git a/crates/openhuman-core/src/triage/escalation_model_tests.rs b/crates/openhuman-core/src/triage/escalation_model_tests.rsindex cd3e8acc08..2ffd1cc55b 100644--- a/crates/openhuman-core/src/triage/escalation_model_tests.rs+++ b/crates/openhuman-core/src/triage/escalation_model_tests.rs@@ -285,7 +285,17 @@ async fn direct_turn_model_source_metadata_probe_does_not_duplicate_egress_discl.build().await.expect("isolated core runtime");- let ctx = crate::core::runtime::DispatchCtx::new(Arc::clone(runtime.context()));+ // The turn runs hosted, so the context must carry the agent catalogue the+ // hosted invocation base is built from.+ let context = runtime.context().derive_with(+ crate::core::runtime::ContextOverlay::new(+ config.clone(),+ crate::core::runtime::DomainSet::none(),+ crate::tools::toolpacks::ToolGroups::none(),+ )+ .definitions(Arc::new(AgentDefinitionRegistry::builtins_only())),+ );+ let ctx = crate::core::runtime::DispatchCtx::new(Arc::clone(&context));let definition = AgentDefinitionRegistry::builtins_only().get("trigger_reactor").expect("built-in trigger reactor exists")@@ -298,7 +308,7 @@ async fn direct_turn_model_source_metadata_probe_does_not_duplicate_egress_disclruntime.run_in(- Arc::clone(runtime.context()),+ context,crate::security::turn_origin::with_origin(crate::triage::local_trigger_origin(),crate::agent_runs::agent_chat::agent_chat_for_with_turn_model_source(