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
feat(tinyagents): carry classified failure cause into turn outcome
Steven Enamakela0eae7c20f59
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_outcome.rs b/crates/openhuman-core/src/agent/tinyagents/turn_outcome.rsindex 7929c03010..ce5248ab25 100644--- a/crates/openhuman-core/src/agent/tinyagents/turn_outcome.rs+++ b/crates/openhuman-core/src/agent/tinyagents/turn_outcome.rs@@ -153,6 +153,8 @@ pub(crate) struct TinyagentsTurnOutcome {/// `text` already carries this same summary; the flag lets the status mapper/// distinguish a breaker halt from a genuine final answer.pub breaker_halt: Option<String>,+ /// Typed classified-failure cause retained by the harness run, if present.+ pub failure_cause: Option<tinyagents_harness::no_progress::ClassifiedStopCause>,/// `true` when the run ended on a reply that ran out of output tokens/// (`finish_reason = length`) with no visible text and no tool call — the/// model spent its whole output budget reasoning, even after the harness'sdiff --git a/crates/openhuman-core/src/agent/tinyagents/turn_run_finalize.rs b/crates/openhuman-core/src/agent/tinyagents/turn_run_finalize.rsindex 9e23f6823d..a71046e7fd 100644--- a/crates/openhuman-core/src/agent/tinyagents/turn_run_finalize.rs+++ b/crates/openhuman-core/src/agent/tinyagents/turn_run_finalize.rs@@ -161,8 +161,9 @@ pub(super) async fn finalize_turn_outcome(// A run the harness stopped (breaker / cap) is traced as stopped, not as a// clean completion. No deadline wind-down on this path: only the session// turn carries one, and it records the stop through its sidecar.- let stop = crate::agent::session_host::stop_summary::classify_stop(+ let stop = crate::agent::session_host::stop_summary::classify_stop_with_cause(breaker_halt.as_deref(),+ run.failure_cause.clone(),false,hit_cap,);@@ -319,6 +320,7 @@ pub(super) async fn finalize_turn_outcome(hit_cap,wrap_up_injected,breaker_halt,+ failure_cause: run.failure_cause,truncated,tool_outcomes,compaction,