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): improve assertion formatting in escalation tests
Steven Enamakelc4b606ffdf8f
diff --git a/crates/openhuman-core/src/triage/escalation_model_tests.rs b/crates/openhuman-core/src/triage/escalation_model_tests.rsindex 4b568a1986..61e3c96106 100644--- a/crates/openhuman-core/src/triage/escalation_model_tests.rs+++ b/crates/openhuman-core/src/triage/escalation_model_tests.rs@@ -291,10 +291,17 @@ async fn direct_turn_model_source_metadata_probe_does_not_duplicate_egress_discllet requests = requests.lock().unwrap();assert_eq!(requests.len(), 1, "the model turn ran");- assert_eq!(requests[0].1, model_marker, "the expected model served the turn");- assert!(requests[0].2.messages.iter().any(|message| {- message.text().contains("send this trigger reply")- }));+ assert_eq!(+ requests[0].1, model_marker,+ "the expected model served the turn"+ );+ assert!(+ requests[0]+ .2+ .messages+ .iter()+ .any(|message| { message.text().contains("send this trigger reply") })+ );drop(requests);let sentinel = "triage-direct-source-egress-sentinel";BUS.publish(crate::core::events::DomainEvent::ExternalTransferPending {@@ -557,7 +564,3 @@ async fn react_dispatch_inherits_the_parent_workload_for_inherit_targets() {.contains("route this task with the inherited workload")}));}--/// The triage parent is the shared root context with one override: nested-/// spawns scoped to the dispatched target. Guards the #4369 collapse against-/// drift from `build_root_parent`.diff --git a/crates/openhuman-core/src/triage/escalation_tests.rs b/crates/openhuman-core/src/triage/escalation_tests.rsindex 65c3ca50f6..0d5a97789f 100644--- a/crates/openhuman-core/src/triage/escalation_tests.rs+++ b/crates/openhuman-core/src/triage/escalation_tests.rs@@ -4,6 +4,9 @@ use crate::core::events::DomainEvent;use serde_json::json;use tokio::time::{Duration, sleep, timeout};+/// The triage parent is the shared root context with one override: nested+/// spawns scoped to the dispatched target. Guards the #4369 collapse against+/// drift from `build_root_parent`.#[tokio::test]async fn build_triage_parent_scopes_allowed_subagents_to_target() {let dir = tempfile::tempdir().expect("tempdir");