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
fix(test): correct test assertions for observability error classification
Steven Enamakel528884f2db31
diff --git a/crates/openhuman-core/src/core/observability_error_classification_session_tests.rs b/crates/openhuman-core/src/core/observability_error_classification_session_tests.rsindex 4004092e34..03786d30c0 100644--- a/crates/openhuman-core/src/core/observability_error_classification_session_tests.rs+++ b/crates/openhuman-core/src/core/observability_error_classification_session_tests.rs@@ -518,6 +518,32 @@ fn transient_filter_keeps_aggregate_all_exhausted() {);}+#[cfg(feature = "crash-reporting")]+#[test]+fn all_exhausted_aggregate_is_dropped_only_when_every_attempt_is_transient() {+ let tags = [+ ("domain", "llm_provider"),+ ("failure", "all_exhausted"),+ ("attempts", "2"),+ ];+ let transient = event_with_tags_and_message(+ &tags,+ "All providers/models failed. Attempts: openai API error (503 Service Unavailable); custom_openai API error (502 Bad Gateway)",+ );+ assert!(+ is_all_transient_provider_exhaustion_event(&transient),+ "all-transient aggregate should not recreate per-attempt Sentry noise"+ );+ let mixed = event_with_tags_and_message(+ &tags,+ "All providers/models failed. Attempts: openai API error (401 Unauthorized); custom_openai API error (503 Service Unavailable)",+ );+ assert!(+ !is_all_transient_provider_exhaustion_event(&mixed),+ "mixed/permanent aggregate should remain actionable"+ );+}+#[cfg(feature = "crash-reporting")]#[test]fn transient_filter_keeps_events_with_no_status_tag() {