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
refactor(cron): add raw_detail to job outcomes
Steven Enamakelb3da1233d4f7
diff --git a/crates/openhuman-core/src/cron/bus_host_tests.rs b/crates/openhuman-core/src/cron/bus_host_tests.rsindex e6c95abebb..91355d42a3 100644--- a/crates/openhuman-core/src/cron/bus_host_tests.rs+++ b/crates/openhuman-core/src/cron/bus_host_tests.rs@@ -180,6 +180,7 @@ async fn failed_is_accepted_for_any_job() {success: false,output: "boom".into(),retryable: false,+ raw_detail: None,};proxy.call::<()>(callbacks::FAILED, (&job, "run-e", &attempt))@@ -197,6 +198,7 @@ async fn deliver_answers_with_the_delivery_status_string() {success: true,output: "result".into(),retryable: true,+ raw_detail: None,};let status: String = proxy.call(callbacks::DELIVER, (&job, "run-f", &attempt))@@ -271,6 +273,7 @@ async fn dropping_the_registration_stops_serving_the_object() {success: true,output: String::new(),retryable: true,+ raw_detail: None,};drop(registration);for _ in 0..100 {diff --git a/crates/openhuman-core/src/cron/origin.rs b/crates/openhuman-core/src/cron/origin.rsindex 583d06f823..c0a4ccba34 100644--- a/crates/openhuman-core/src/cron/origin.rs+++ b/crates/openhuman-core/src/cron/origin.rs@@ -34,6 +34,7 @@ pub(crate) fn job_origin_from_turn(origin: &AgentTurnOrigin) -> Option<JobOriginreply_target,history_key: Some(history_key),channel_session: Some(channel_session),+ ..} if !channel.trim().is_empty() && !reply_target.trim().is_empty() => {Some(JobOrigin::Channel {channel: channel.clone(),diff --git a/crates/openhuman-core/src/cron/scheduler/executor.rs b/crates/openhuman-core/src/cron/scheduler/executor.rsindex 77312ab3dc..7bbf7e5c04 100644--- a/crates/openhuman-core/src/cron/scheduler/executor.rs+++ b/crates/openhuman-core/src/cron/scheduler/executor.rs@@ -113,6 +113,7 @@ impl HostExecutor {success: false,output: refusal,retryable: false,+ raw_detail: None,};}// Operator limits (`cron::limits`) also bind rows stored before they@@ -123,6 +124,7 @@ impl HostExecutor {success: false,output: error.to_string(),retryable: false,+ raw_detail: None,};}let Some(handler) = kind_handler(&job.job_type) else {@@ -134,6 +136,7 @@ impl HostExecutor {job.job_type.as_str()),retryable: false,+ raw_detail: None,};};tracing::debug!(@@ -156,6 +159,7 @@ impl HostExecutor {success: true,output,retryable: true,+ raw_detail: None,};}let last_agent_error = self.note_error(run_id, agent_error);@@ -165,6 +169,7 @@ impl HostExecutor {success: false,output,retryable: false,+ raw_detail: None,};}self.classify_failure(job, run_id, output, last_agent_error.as_deref())@@ -184,6 +189,7 @@ impl HostExecutor {success: false,output,retryable: false,+ raw_detail: None,}};if output.starts_with("blocked by security policy:") {@@ -231,6 +237,7 @@ impl HostExecutor {success: false,output,retryable: true,+ raw_detail: None,}}}diff --git a/crates/openhuman-core/src/cron/scheduler/origin_context.rs b/crates/openhuman-core/src/cron/scheduler/origin_context.rsindex c66a18f705..fede67fcc5 100644--- a/crates/openhuman-core/src/cron/scheduler/origin_context.rs+++ b/crates/openhuman-core/src/cron/scheduler/origin_context.rs@@ -105,7 +105,6 @@ async fn origin_messages(let head = locator.head_generation(&session);locator.read_session_transcript(&head)- .ok().and_then(|read| read.read_session().ok().flatten()).map(|history| {historydiff --git a/crates/openhuman-core/src/cron/scheduler/run_delivery.rs b/crates/openhuman-core/src/cron/scheduler/run_delivery.rsindex 1c4aefb86d..9d583b4e6a 100644--- a/crates/openhuman-core/src/cron/scheduler/run_delivery.rs+++ b/crates/openhuman-core/src/cron/scheduler/run_delivery.rs@@ -111,6 +111,7 @@ pub(crate) async fn trigger(binding: &Binding, flow_id: &str, run_id: &str) -> Asuccess: false,output: refusal,retryable: false,+ raw_detail: None,};}let config = binding.config();@@ -134,6 +135,7 @@ pub(crate) async fn trigger(binding: &Binding, flow_id: &str, run_id: &str) -> Asuccess: false,output: "no handler is registered for flow jobs".to_string(),retryable: false,+ raw_detail: None,};};let outcome = handler@@ -143,6 +145,7 @@ pub(crate) async fn trigger(binding: &Binding, flow_id: &str, run_id: &str) -> Asuccess: outcome.success,output: outcome.output,retryable: !outcome.permanent,+ raw_detail: None,}}).await