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): cover deferred and terminal outcomes across outage failures
Steven Enamakel555eab6cf134
diff --git a/crates/openhuman-core/src/triage/evaluator_deferral_tests.rs b/crates/openhuman-core/src/triage/evaluator_deferral_tests.rsindex d38d68ccb6..ede56cbd08 100644--- a/crates/openhuman-core/src/triage/evaluator_deferral_tests.rs+++ b/crates/openhuman-core/src/triage/evaluator_deferral_tests.rs@@ -25,6 +25,27 @@ fn outage_backoff_is_exponential_and_has_terminal_limit() {assert!(begin_outage_attempt(Some(&state), "stub-cloud").is_none());}+#[test]+fn outage_failure_maps_to_deferred_then_terminal_host_outcomes() {+ let state = PersistentFailoverBreaker::new(PersistentFailoverBreakerConfig {+ base_backoff_ms: 0,+ max_backoff_ms: 0,+ failure_limit: 8,+ });++ for failure in 1..=8 {+ let mut attempt = state+ .try_acquire("stub-cloud".to_string(), monotonic_ms())+ .expect("attempt");+ let outcome = record_outage(Some(&mut attempt)).expect("host outcome");+ if failure < 8 {+ assert!(matches!(outcome, TriageOutcome::Deferred { .. }));+ } else {+ assert!(matches!(outcome, TriageOutcome::Terminal { .. }));+ }+ }+}+#[test]fn outage_state_isolated_by_model() {let state = new_retry_state();