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(subagent): add failure_cause field to outcome fixtures
Steven Enamakela94e9a069bf0
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rsindex 7cfadc95eb..1489ad0459 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs@@ -326,6 +326,7 @@ fn awaiting_user_outcome_maps_to_resume_envelope_not_bare_success() {agent_id: "crypto_agent".to_string(),output: String::new(),iterations: 1,+ failure_cause: None,elapsed: Duration::from_secs(0),mode: SubagentMode::Typed,status: SubagentRunStatus::AwaitingUser {diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tests.rsindex 50d10575ff..d128c05d23 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tests.rs@@ -10,6 +10,7 @@ fn sample_outcome(output: &str) -> SubagentRunOutcome {output: output.to_string(),elapsed: Duration::from_millis(120),iterations: 3,+ failure_cause: None,mode: SubagentMode::Typed,status: SubagentRunStatus::Completed,final_history: Vec::new(),diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome_tests.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome_tests.rsindex bb093dfd01..469372507e 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome_tests.rs@@ -16,6 +16,7 @@ fn paused_outcomes_preserve_answer_choices_and_worker_resume_options() {agent_id: definition.id.clone(),output: "partial work".into(),iterations: 2,+ failure_cause: None,elapsed: std::time::Duration::from_millis(25),mode: crate::agent::subagent_host::SubagentMode::Typed,status: SubagentRunStatus::AwaitingUser {@@ -66,6 +67,7 @@ fn host_outcome_terminal_record_round_trips_through_json_bytes() {agent_id: definition.id.clone(),output: "durable".into(),iterations: 2,+ failure_cause: None,elapsed: std::time::Duration::from_millis(25),mode: crate::agent::subagent_host::SubagentMode::Typed,status: SubagentRunStatus::Completed,diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rsindex 78cd38a972..d2c2fa04cc 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs@@ -29,6 +29,7 @@ fn cached_outcome(status: SubagentRunStatus) -> SubagentRunOutcome {agent_id: "researcher".into(),output: "partial output".into(),iterations: 1,+ failure_cause: None,elapsed: std::time::Duration::from_millis(1),mode: SubagentMode::Typed,status,@@ -610,6 +611,7 @@ async fn driver_inline_projection_returns_the_durable_winner_not_a_local_loser()output: winner.output.clone(),agent_id: "winner-agent".into(),iterations: 7,+ failure_cause: None,..cached_outcome(SubagentRunStatus::Incomplete {reason: "winner stopped".into(),})diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner_artifacts_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner_artifacts_tests.rsindex 5c6419d5aa..5482577522 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner_artifacts_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner_artifacts_tests.rs@@ -47,6 +47,7 @@ async fn byte_policy_projects_a_parent_readable_artifact_before_the_result_cap()agent_id: definition.id.clone(),output: original.clone(),iterations: 1,+ failure_cause: None,elapsed: std::time::Duration::ZERO,mode: SubagentMode::Typed,status: SubagentRunStatus::Completed,