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
chore: reorder imports and fix formatting across multiple files
Steven Enamakelc95731d01f02
diff --git a/crates/openhuman-core/src/agent/harness/artifact_offload/mod.rs b/crates/openhuman-core/src/agent/harness/artifact_offload/mod.rsindex 5a59acc465..671681eae5 100644--- a/crates/openhuman-core/src/agent/harness/artifact_offload/mod.rs+++ b/crates/openhuman-core/src/agent/harness/artifact_offload/mod.rs@@ -55,7 +55,6 @@ use tinyagents_harness::artifacts::ArtifactOffload;use crate::security::SecurityPolicy;-/// Tool a sub-agent must actually hold before the offload contract is worth/// rendering. Passed to the crate's/// [`render_artifact_offload_contract`](tinyagents_harness::artifacts::render_artifact_offload_contract)diff --git a/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rsindex e32caf55da..57b476552b 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs@@ -8,9 +8,9 @@ use super::super::collapsed_delegation::{};use super::super::delegate_graph::DelegateGraphDispatch;use crate::agent::tools::DelegateToolDispatch;-use tinyagents_harness::tools::AskClarificationTool;use tinyagents_harness::context::RunConfig;use tinyagents_harness::tool::ToolDispatch;+use tinyagents_harness::tools::AskClarificationTool;struct DelegationRegistrationTool {name: &'static str,diff --git a/crates/openhuman-core/src/agent/progress_tracing.rs b/crates/openhuman-core/src/agent/progress_tracing.rsindex e2127b0633..3e5b32b13e 100644--- a/crates/openhuman-core/src/agent/progress_tracing.rs+++ b/crates/openhuman-core/src/agent/progress_tracing.rs@@ -66,11 +66,11 @@ mod export;// `TraceSpan`), content truncation, NDJSON serialization, OTLP conversion and// Langfuse batch chunking live upstream in// `tinyagents_harness::observability::trace_export`.-#[cfg(test)]-use tinyagents_harness::observability::trace_export::{SpanKind, SpanStatus};use tinyagents_harness::observability::trace_export::ExportBrand;#[cfg(test)]use tinyagents_harness::observability::trace_export::{RunType, TraceContext, TraceSpan};+#[cfg(test)]+use tinyagents_harness::observability::trace_export::{SpanKind, SpanStatus};pub use collector::SpanCollector;diff --git a/crates/openhuman-core/src/agent/progress_tracing/collector/span_lifecycle.rs b/crates/openhuman-core/src/agent/progress_tracing/collector/span_lifecycle.rsindex ddb9e7dc48..df18f750ec 100644--- a/crates/openhuman-core/src/agent/progress_tracing/collector/span_lifecycle.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/collector/span_lifecycle.rs@@ -3,7 +3,9 @@use std::collections::BTreeMap;-use tinyagents_harness::observability::trace_export::serialize::{truncate_capture_text, MAX_TOOL_CONTENT_CHARS};+use tinyagents_harness::observability::trace_export::serialize::{+ truncate_capture_text, MAX_TOOL_CONTENT_CHARS,+};use tinyagents_harness::observability::trace_export::SpanKind;use super::state::SpanCollector;diff --git a/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rs b/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rsindex 92abd7568a..a87cc708eb 100644--- a/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rs@@ -59,9 +59,9 @@ use tinyagents_harness::events::AgentEvent;use tinyagents_harness::observability::AgentObservation;use super::SpanCollector;-use tinyagents_harness::observability::trace_export::{TraceContext, TraceSpan};use crate::agent::progress::AgentProgress;use crate::tools::status::classify;+use tinyagents_harness::observability::trace_export::{TraceContext, TraceSpan};/// Mutable state threaded across a single run's observations while replaying.#[derive(Default)]diff --git a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_ttft_tests.rs b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_ttft_tests.rsindex 6571ba4b2a..fb3318acbb 100644--- a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_ttft_tests.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_ttft_tests.rs@@ -131,7 +131,11 @@ fn otlp_exports_completion_start_time_for_langfuse_ttft() {(completed(1), 1_700_000_001_000),]);let spans = c.spans().to_vec();- let payloads = otlp_requests(&spans, "production", &crate::agent::progress_tracing::export_brand());+ let payloads = otlp_requests(+ &spans,+ "production",+ &crate::agent::progress_tracing::export_brand(),+ );let exported = payloads[0]["resourceSpans"][0]["scopeSpans"][0]["spans"].as_array().unwrap();diff --git a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rsindex 88c64c38d5..c93cbdc70e 100644--- a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs+++ b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs@@ -361,9 +361,9 @@ pub(super) fn assemble_turn_harness(let can_update_index = allowed.as_ref().is_none_or(|names| names.contains("update_memory_md"));- harness.push_middleware(Arc::new(- middleware::memory_protocol_middleware(can_update_index),- ));+ harness.push_middleware(Arc::new(middleware::memory_protocol_middleware(+ can_update_index,+ )));// Repeated-failure circuit breaker: pause the run when a tool returns the same// error `REPEATED_TOOL_FAILURE_THRESHOLD` times in a row, so a deterministicdiff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_loop_guard_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_loop_guard_tests.rsindex 538ccd3f57..29d937e3a2 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_loop_guard_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_loop_guard_tests.rs@@ -514,4 +514,3 @@ async fn existing_error_is_some_behavior_is_unchanged_by_body_level_check() {"the third identical error+ok:false result halts, same as a plain error");}-diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rsindex 3d003e35a3..56e79f6774 100644--- a/crates/openhuman-core/src/tools/ops.rs+++ b/crates/openhuman-core/src/tools/ops.rs@@ -466,7 +466,10 @@ pub fn all_tools_with_runtime(Box::new(ReadDiffTool::new(action_dir.to_path_buf())),Box::new(RunLinterTool::new(action_dir.to_path_buf())),Box::new(RunTestsTool::new(action_dir.to_path_buf())),- Box::new(PushoverTool::new(security.clone(), action_dir.to_path_buf())),+ Box::new(PushoverTool::new(+ security.clone(),+ action_dir.to_path_buf(),+ )),// Audio-toolkit podcast tools — gated with the `voice` feature (they// live in the `audio_toolkit` domain, which is compiled out when voice// is disabled).