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(subagent_host): classify deferred terminal stops with failure cause
Steven Enamakelc203797d3321
diff --git a/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs b/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rsindex fc6fa90482..fa863685e8 100644--- a/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs@@ -27,6 +27,11 @@ fn classified_halt_returns_partial_work_without_provider_usage() {wrap_up_injected: false,truncated: false,breaker_halt: Some("Stopping after 1 attempt(s): failure class `permission` still blocks operation `search` on `catalog`. Resolve this blocker before retrying.".into()),+ failure_cause: Some(tinyagents_harness::no_progress::ClassifiedStopCause {+ class: "permission".into(),+ operation: "search".into(),+ summary: "Stopping after 1 attempt(s): failure class `permission` still blocks operation `search` on `catalog`. Resolve this blocker before retrying.".into(),+ }),tool_outcomes: vec![ToolCallOutcome { call_id: "a".into(), name: "list".into(), arguments: serde_json::json!({}), success: true, content: "three items".into(), duration_ms: 1 },ToolCallOutcome { call_id: "b".into(), name: "search".into(), arguments: serde_json::json!({}), success: false, content: "403 Forbidden".into(), duration_ms: 1 },@@ -220,6 +225,7 @@ fn blank_outcome(truncated: bool) -> TinyagentsTurnOutcome {hit_cap: false,wrap_up_injected: false,breaker_halt: None,+ failure_cause: None,truncated,compaction: None,tool_outcomes: Vec::new(),diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rsindex 54d6b5aa6f..91e723aac4 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs@@ -520,8 +520,9 @@ pub(in super::super) async fn run_subagent_via_graph(// host boundary, then acknowledge it on the parent stream so the linked// sub-agent span cannot close ahead of its child record.if let Some(terminal) = outcome.deferred_terminal.take() {- let stop = crate::agent::session_host::stop_summary::classify_stop(+ let stop = crate::agent::session_host::stop_summary::classify_stop_with_cause(outcome.breaker_halt.as_deref(),+ outcome.failure_cause.clone(),false,outcome.hit_cap,);