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(inbound): tighten blocked reason assertion to check guard prefix
Steven Enamakel8dfb0748e561
diff --git a/crates/openhuman-core/src/inbound/deliver_tests.rs b/crates/openhuman-core/src/inbound/deliver_tests.rsindex d985d4c91b..c4edf2acdd 100644--- a/crates/openhuman-core/src/inbound/deliver_tests.rs+++ b/crates/openhuman-core/src/inbound/deliver_tests.rs@@ -563,8 +563,10 @@ async fn an_injected_event_is_left_out_of_the_prompt_and_listed_as_blocked() {assert_eq!(blocked, ["t2"]);let reason = &stored.result.blocked[0].reason;assert!(!reason.is_empty());+ // The guard's verdict and rule codes, never the event's text.+ assert!(reason.starts_with("blocked: "), "{reason}");assert!(- !reason.to_lowercase().contains("ignore"),+ !reason.to_lowercase().contains("ignore all previous"),"user text in reason: {reason}");}