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: apply rustfmt import ordering and line wrapping
Steven Enamakel295c3fc2ecb0
diff --git a/crates/openhuman-core/src/agent/agent_turn_loop_packed_tool_tests.rs b/crates/openhuman-core/src/agent/agent_turn_loop_packed_tool_tests.rsindex 57fbda0b09..2e7e909aff 100644--- a/crates/openhuman-core/src/agent/agent_turn_loop_packed_tool_tests.rs+++ b/crates/openhuman-core/src/agent/agent_turn_loop_packed_tool_tests.rs@@ -50,9 +50,7 @@ async fn turn_routes_a_bare_packed_tool_call_through_use_skill() {let (mut agent, _tmp) = build_agent_with(provider, tools, Box::new(NativeDialect));assert!(- !agent- .visible_tool_names- .contains("skill_registry_search"),+ !agent.visible_tool_names.contains("skill_registry_search"),"precondition: the tool is withheld behind its pack");diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions.rs b/crates/openhuman-core/src/agent/orchestration/background_completions.rsindex 6e751af58e..4e1f37c05e 100644--- a/crates/openhuman-core/src/agent/orchestration/background_completions.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_completions.rs@@ -35,19 +35,19 @@ use std::time::Duration;use tinyagents_tasks::{CompletionRecord, CompletionResult, CompletionRouter, CompletionState, CompletionStatus,- CompletionStore, DriverCompletionStore, InMemoryCompletionStore, NotifyMode, RecordOutcome,- TombstoneOutcome, DEFAULT_MAX_ATTEMPTS,+ CompletionStore, DEFAULT_MAX_ATTEMPTS, DriverCompletionStore, InMemoryCompletionStore,+ NotifyMode, RecordOutcome, TombstoneOutcome,};use super::completion_notice::BackgroundCompletionFormatter;-pub(crate) use super::completion_notice::{BackgroundAgentOutcome, AWAITING_INPUT_LABEL};+pub(crate) use super::completion_notice::{AWAITING_INPUT_LABEL, BackgroundAgentOutcome};pub(crate) use super::completion_target::CompletionTarget;-use super::completion_target::{awaiting_input_record_id, awaiting_input_record_prefix};-pub(crate) use super::completion_target::{claim_recovery, forget_recovery};#[cfg(test)]-pub(crate) use super::completion_target::{- tests::{forget_workspace_for_test, install_store_for_test, TestWorkspace},+pub(crate) use super::completion_target::tests::{+ TestWorkspace, forget_workspace_for_test, install_store_for_test,};+use super::completion_target::{awaiting_input_record_id, awaiting_input_record_prefix};+pub(crate) use super::completion_target::{claim_recovery, forget_recovery};/// How long a settled record (delivered / gave up / tombstoned) is kept before/// compaction drops it. Dropping a settled record also drops its dedupe and itsdiff --git a/crates/openhuman-core/src/agent/orchestration/background_completions/thread_index.rs b/crates/openhuman-core/src/agent/orchestration/background_completions/thread_index.rsindex 62916f2308..bb62de5505 100644--- a/crates/openhuman-core/src/agent/orchestration/background_completions/thread_index.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_completions/thread_index.rs@@ -7,7 +7,7 @@ use std::sync::Arc;use tinyagents_tasks::CompletionRouter;-use super::{router_for_workspace, state, SESSION_THREADS_CAP};+use super::{SESSION_THREADS_CAP, router_for_workspace, state};use crate::core::runtime::DispatchCtx;/// The key of a thread or session id in `HostState`'s maps: per profile ofdiff --git a/crates/openhuman-core/src/agent/orchestration/background_completions_pause_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_completions_pause_tests.rsindex faa8af3a7a..0e3805b30f 100644--- a/crates/openhuman-core/src/agent/orchestration/background_completions_pause_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_completions_pause_tests.rs@@ -162,10 +162,12 @@ fn delivered_pause_leaves_the_task_key_free_for_a_later_delivery() {.unwrap(),1);- assert!(router- .claim_pending("thread-sequential", usize::MAX)- .unwrap()- .is_empty());+ assert!(+ router+ .claim_pending("thread-sequential", usize::MAX)+ .unwrap()+ .is_empty()+ );}#[test]diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_completions_tests.rsindex a048a20fcd..961e15ef7e 100644--- a/crates/openhuman-core/src/agent/orchestration/background_completions_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_completions_tests.rs@@ -56,10 +56,12 @@ fn record_is_thread_scoped_and_batches_in_completion_order() {let claimed = router.claim_pending("thread-A", usize::MAX).unwrap();assert_eq!(claimed.len(), 2, "everything ready is claimed as one batch");assert_eq!(claimed[0].result.text, "eiffel");- assert!(router- .claim_pending("thread-A", usize::MAX)- .unwrap()- .is_empty());+ assert!(+ router+ .claim_pending("thread-A", usize::MAX)+ .unwrap()+ .is_empty()+ );}#[test]@@ -79,10 +81,12 @@ fn headless_completion_is_dropped() {let _guard = test_guard();let ws = workspace();record(ws.path(), "sess-headless", "sub-1", "x", None);- assert!(router_for_workspace(ws.path())- .claim_pending("", usize::MAX)- .unwrap()- .is_empty());+ assert!(+ router_for_workspace(ws.path())+ .claim_pending("", usize::MAX)+ .unwrap()+ .is_empty()+ );assert!(recover_pending_threads(&cx(), ws.path()).is_empty());}diff --git a/crates/openhuman-core/src/agent/orchestration/completion_target_tests.rs b/crates/openhuman-core/src/agent/orchestration/completion_target_tests.rsindex 64ad90dcec..bb81a8bda4 100644--- a/crates/openhuman-core/src/agent/orchestration/completion_target_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/completion_target_tests.rs@@ -1,7 +1,7 @@use std::path::Path;use std::sync::Arc;-use super::super::background_completions::{new_router, state, Entry};+use super::super::background_completions::{Entry, new_router, state};use tinyagents_tasks::CompletionStore;/// A temporary workspace that forgets its router when dropped, so the@@ -55,4 +55,3 @@ pub(crate) fn forget_workspace_for_test(workspace_dir: &Path) {st.session_threads.clear();st.session_order.clear();}-diff --git a/crates/openhuman-core/src/agent/session_host/artifact_wiring.rs b/crates/openhuman-core/src/agent/session_host/artifact_wiring.rsindex f2c7d86b4b..6338f542de 100644--- a/crates/openhuman-core/src/agent/session_host/artifact_wiring.rs+++ b/crates/openhuman-core/src/agent/session_host/artifact_wiring.rs@@ -14,7 +14,7 @@use std::path::Path;use std::sync::Arc;-use crate::agent::harness::tool_result_artifacts::{new_tool_result_store, HostArtifactStore};+use crate::agent::harness::tool_result_artifacts::{HostArtifactStore, new_tool_result_store};use crate::agent::session_store::artifact_blobs_for;use crate::security::policy::tool_result_artifacts_dir;use tinystoragedrivers::{MemoryStorage, Scope, StorageBackend};diff --git a/crates/openhuman-core/src/agent/session_host/artifact_wiring_tests.rs b/crates/openhuman-core/src/agent/session_host/artifact_wiring_tests.rsindex 8dded6549c..edbce5dd88 100644--- a/crates/openhuman-core/src/agent/session_host/artifact_wiring_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/artifact_wiring_tests.rs@@ -1,7 +1,7 @@use super::*;use crate::security::policy::tool_result_artifacts_dir;use serde_json::json;-use tinyagents_harness::artifacts::tool_results::{apply_per_result_persistence, ArtifactRead};+use tinyagents_harness::artifacts::tool_results::{ArtifactRead, apply_per_result_persistence};const DAY: std::time::Duration = std::time::Duration::from_secs(24 * 60 * 60);diff --git a/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs b/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rsindex 718cf793a8..634bacc3b1 100644--- a/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs@@ -396,7 +396,7 @@ fn the_no_tools_sentinel_can_never_name_a_real_tool() {#[test]fn is_empty_tool_scope_distinguishes_the_three_states() {- use crate::agent::harness::host_definition::{is_empty_tool_scope, NO_TOOLS_SENTINEL};+ use crate::agent::harness::host_definition::{NO_TOOLS_SENTINEL, is_empty_tool_scope};use std::collections::HashSet;// Unset — the historical "everything" sentinel.@@ -468,15 +468,19 @@ fn the_repl_tools_join_a_belt_only_while_handle_mode_is_active() {let mut inactive = belt();super::ensure_repl_tools_visible(&mut inactive, false);- assert!(tinyjuice_bus::tools::REPL_TOOLS- .iter()- .all(|n| !inactive.contains(*n)));+ assert!(+ tinyjuice_bus::tools::REPL_TOOLS+ .iter()+ .all(|n| !inactive.contains(*n))+ );let mut active = belt();super::ensure_repl_tools_visible(&mut active, true);- assert!(tinyjuice_bus::tools::REPL_TOOLS- .iter()- .all(|n| active.contains(*n)));+ assert!(+ tinyjuice_bus::tools::REPL_TOOLS+ .iter()+ .all(|n| active.contains(*n))+ );// "No filter" and "deliberately no tools" both stay as they were.let mut unfiltered = std::collections::HashSet::new();diff --git a/crates/openhuman-core/src/agent/session_host/builder/builder_tests_host_tools_tests.rs b/crates/openhuman-core/src/agent/session_host/builder/builder_tests_host_tools_tests.rsindex 37258d7e11..a4b5609a1c 100644--- a/crates/openhuman-core/src/agent/session_host/builder/builder_tests_host_tools_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/builder_tests_host_tools_tests.rs@@ -6,8 +6,8 @@//! real tool: it is on the belt, and it is advertised.use super::*;-use std::sync::atomic::{AtomicUsize, Ordering};use std::sync::Arc;+use std::sync::atomic::{AtomicUsize, Ordering};/// A tool that does nothing but be present under a name nothing else uses.#[derive(Debug)]@@ -461,9 +461,11 @@ fn permanent_metadata_without_a_source_is_rejected_before_build() {).err().expect("inconsistent permanent metadata must be rejected");- assert!(error- .to_string()- .contains("permanent tool must have exactly one source: missing_source"));+ assert!(+ error+ .to_string()+ .contains("permanent tool must have exactly one source: missing_source")+ );}/// The factory is told the context the session is built under, not thediff --git a/crates/openhuman-core/src/agent/session_host/builder/builder_tests_session_definition_tests.rs b/crates/openhuman-core/src/agent/session_host/builder/builder_tests_session_definition_tests.rsindex af358ca518..7a720e3ee5 100644--- a/crates/openhuman-core/src/agent/session_host/builder/builder_tests_session_definition_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/builder_tests_session_definition_tests.rs@@ -214,9 +214,11 @@ async fn a_padded_name_is_stored_as_the_definitions_own_id() {.expect("a name that differs only by padding is not a contradiction");assert_eq!(agent.agent_definition_name(), SEAT);- assert!(catalogue(&agent)- .resolve(agent.agent_definition_name())- .await- .expect("resolution never errors")- .is_some());+ assert!(+ catalogue(&agent)+ .resolve(agent.agent_definition_name())+ .await+ .expect("resolution never errors")+ .is_some()+ );}diff --git a/crates/openhuman-core/src/agent/session_host/builder/host_only.rs b/crates/openhuman-core/src/agent/session_host/builder/host_only.rsindex eb055938ab..97c04322b4 100644--- a/crates/openhuman-core/src/agent/session_host/builder/host_only.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/host_only.rs@@ -29,8 +29,8 @@ use tinyagents_harness::context::RunContext;use tinyagents_harness::middleware::{PolicyDecision, ToolCallPolicy};use tinyinference_llm::tool::ToolCall;-use crate::agent::tinyagents::host::OpenHumanRunContext;use crate::agent::OpenHumanSessionHost;+use crate::agent::tinyagents::host::OpenHumanRunContext;use crate::config::Config;use anyhow::Result;use tinyagents_definition::{SandboxMode, ToolScope};@@ -45,8 +45,8 @@ pub struct HostOnlyToolPolicy {host: Option<Arc<dyn tinyagents_harness::middleware::ToolCallPolicy<- crate::agent::tinyagents::host::OpenHumanRunContext,- >,+ crate::agent::tinyagents::host::OpenHumanRunContext,+ >,>,>,}@@ -59,8 +59,8 @@ impl HostOnlyToolPolicy {host: Option<Arc<dyn tinyagents_harness::middleware::ToolCallPolicy<- crate::agent::tinyagents::host::OpenHumanRunContext,- >,+ crate::agent::tinyagents::host::OpenHumanRunContext,+ >,>,>,) -> Self {@@ -112,15 +112,15 @@ pub(super) fn session_policy(host: Option<Arc<dyn tinyagents_harness::middleware::ToolCallPolicy<- crate::agent::tinyagents::host::OpenHumanRunContext,- >,+ crate::agent::tinyagents::host::OpenHumanRunContext,+ >,>,>,) -> Option<Arc<dyn tinyagents_harness::middleware::ToolCallPolicy<- crate::agent::tinyagents::host::OpenHumanRunContext,- >,+ crate::agent::tinyagents::host::OpenHumanRunContext,+ >,>,> {if !host_only {diff --git a/crates/openhuman-core/src/agent/session_host/builder/host_tools.rs b/crates/openhuman-core/src/agent/session_host/builder/host_tools.rsindex daa62d2e29..9646b79ed9 100644--- a/crates/openhuman-core/src/agent/session_host/builder/host_tools.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/host_tools.rs@@ -64,8 +64,8 @@ pub struct HostTurnTools {pub policy: Option<Arc<dyn tinyagents_harness::middleware::ToolCallPolicy<- crate::agent::tinyagents::host::OpenHumanRunContext,- >,+ crate::agent::tinyagents::host::OpenHumanRunContext,+ >,>,>,}@@ -180,8 +180,8 @@ impl HostTurnTools {mut self,policy: Arc<dyn tinyagents_harness::middleware::ToolCallPolicy<- crate::agent::tinyagents::host::OpenHumanRunContext,- >,+ crate::agent::tinyagents::host::OpenHumanRunContext,+ >,>,) -> Self {self.policy = Some(policy);@@ -205,8 +205,8 @@ pub(super) struct MergedHostTurnTools {pub policy: Option<Arc<dyn tinyagents_harness::middleware::ToolCallPolicy<- crate::agent::tinyagents::host::OpenHumanRunContext,- >,+ crate::agent::tinyagents::host::OpenHumanRunContext,+ >,>,>,pub withheld: HashSet<String>,diff --git a/crates/openhuman-core/src/agent/session_host/builder/setters.rs b/crates/openhuman-core/src/agent/session_host/builder/setters.rsindex dbf81d0402..3c6d88764a 100644--- a/crates/openhuman-core/src/agent/session_host/builder/setters.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/setters.rs@@ -378,8 +378,8 @@ impl SessionHostBuilder {mut self,policy: Arc<dyn tinyagents_harness::middleware::ToolCallPolicy<- crate::agent::tinyagents::host::OpenHumanRunContext,- >,+ crate::agent::tinyagents::host::OpenHumanRunContext,+ >,>,) -> Self {self.tool_policy = Some(policy);diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rsindex c08f041458..81469fa52c 100644--- a/crates/openhuman-core/src/agent/session_host/driver.rs+++ b/crates/openhuman-core/src/agent/session_host/driver.rs@@ -18,7 +18,7 @@ use tinytools_agent::dialect::ToolDialect;use crate::agent::{session_host::turn::graph::{self, ChatTurnGraph},- tinyagents::{host::OpenHumanHostBase, host::OpenHumanRunContext, TurnModelSource},+ tinyagents::{TurnModelSource, host::OpenHumanHostBase, host::OpenHumanRunContext},};/// Immutable host composition consumed by [`OpenHumanSessionDriver`].diff --git a/crates/openhuman-core/src/agent/session_host/driver/grounded_close.rs b/crates/openhuman-core/src/agent/session_host/driver/grounded_close.rsindex b49b402d7a..e1b848003c 100644--- a/crates/openhuman-core/src/agent/session_host/driver/grounded_close.rs+++ b/crates/openhuman-core/src/agent/session_host/driver/grounded_close.rs@@ -17,14 +17,14 @@ use tinyagents_harness::middleware::wrap_harness_instruction;use crate::agent::{message_convert::dialect_response_from_provider,session_host::turn_checkpoint::{- self, build_deterministic_checkpoint, build_deterministic_final_summary,- close_repair_instruction, close_verification_prompt, final_answer_instruction,- parse_close_verdict, quotes_harness_instruction, render_tool_results,- results_from_tool_outcomes, CloseVerdict, CloseViolation,+ self, CloseVerdict, CloseViolation, build_deterministic_checkpoint,+ build_deterministic_final_summary, close_repair_instruction, close_verification_prompt,+ final_answer_instruction, parse_close_verdict, quotes_harness_instruction,+ render_tool_results, results_from_tool_outcomes,},tinyagents::{TinyagentsTurnOutcome, TurnModelSource},};-use crate::inference::provider::{BilledUsage, ChatResponse, AGENT_TURN_MAX_OUTPUT_TOKENS};+use crate::inference::provider::{AGENT_TURN_MAX_OUTPUT_TOKENS, BilledUsage, ChatResponse};/// Accounting from model calls performed after the harness loop has ended.#[derive(Default)]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 1b4c474420..02c42de7c5 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@@ -311,12 +311,14 @@ async fn timed_out_repair_keeps_the_usage_of_its_answered_call() {};// A full channel whose receiver is alive: the correction's send blocks.let (progress, _receiver) = tokio::sync::mpsc::channel(1);- assert!(progress- .try_send(AgentProgress::TextDelta {- delta: "earlier".into(),- iteration: 1,- })- .is_ok());+ assert!(+ progress+ .try_send(AgentProgress::TextDelta {+ delta: "earlier".into(),+ iteration: 1,+ })+ .is_ok()+ );let mut usage = RepairUsage::for_model("test-model");let repaired = tokio::time::timeout(diff --git a/crates/openhuman-core/src/agent/session_host/driver_tests.rs b/crates/openhuman-core/src/agent/session_host/driver_tests.rsindex f73ebc09ce..03b7151aa9 100644--- a/crates/openhuman-core/src/agent/session_host/driver_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/driver_tests.rs@@ -1,7 +1,7 @@use super::*;-fn sidecar(-) -> std::sync::Arc<std::sync::Mutex<crate::agent::tinyagents::host::run_context::SessionTurnSidecar>>+fn sidecar()+-> std::sync::Arc<std::sync::Mutex<crate::agent::tinyagents::host::run_context::SessionTurnSidecar>>{crate::agent::tinyagents::host::OpenHumanRunContext::new().session_sidecar@@ -32,11 +32,13 @@ fn graph_failure_persists_only_accepted_snapshot_history() {assert_eq!(partial.history.len(), 2);assert_eq!(partial.history[0].text(), "stable prefix");assert_eq!(partial.history[1].text(), "request");- assert!(partial- .partial- .expect("display partial")- .content- .contains("provider rejected follow-up"));+ assert!(+ partial+ .partial+ .expect("display partial")+ .content+ .contains("provider rejected follow-up")+ );}#[test]diff --git a/crates/openhuman-core/src/agent/session_host/hooks.rs b/crates/openhuman-core/src/agent/session_host/hooks.rsindex ffa7d2bf97..ca38c0be01 100644--- a/crates/openhuman-core/src/agent/session_host/hooks.rs+++ b/crates/openhuman-core/src/agent/session_host/hooks.rs@@ -56,32 +56,32 @@ impl OpenHumanSessionHooks {/// it cannot relabel an already durable turn.pub fn new(before_resume: impl for<'a> Fn(- &'a mut SessionTurnRequest,- &'a mut TurnOptions<OpenHumanRunContext>,- SessionStateView<'a>,- ) -> HookFuture<'a, ResumePreparation>- + Send- + Sync- + 'static,+ &'a mut SessionTurnRequest,+ &'a mut TurnOptions<OpenHumanRunContext>,+ SessionStateView<'a>,+ ) -> HookFuture<'a, ResumePreparation>+ + Send+ + Sync+ + 'static,before: impl for<'a> Fn(- &'a mut SessionTurnRequest,- &'a mut TurnOptions<OpenHumanRunContext>,- SessionStateView<'a>,- ) -> HookFuture<'a, TurnPreparation>- + Send- + Sync- + 'static,+ &'a mut SessionTurnRequest,+ &'a mut TurnOptions<OpenHumanRunContext>,+ SessionStateView<'a>,+ ) -> HookFuture<'a, TurnPreparation>+ + Send+ + Sync+ + 'static,before_commit: impl for<'a> Fn(- &'a SessionTurnOutcome,- &'a TranscriptTurnOptions<OpenHumanRunContext>,- ) -> HookFuture<'a, ()>- + Send- + Sync- + 'static,+ &'a SessionTurnOutcome,+ &'a TranscriptTurnOptions<OpenHumanRunContext>,+ ) -> HookFuture<'a, ()>+ + Send+ + Sync+ + 'static,committed: impl Fn(CommitReceipt<OpenHumanRunContext>) -> HookFuture<'static, ()>- + Send- + Sync- + 'static,+ + Send+ + Sync+ + 'static,terminal: impl Fn(SessionTerminal) -> HookFuture<'static, ()> + Send + Sync + 'static,) -> Self {Self {diff --git a/crates/openhuman-core/src/agent/session_host/live_tools.rs b/crates/openhuman-core/src/agent/session_host/live_tools.rsindex 16f51e511d..4fdcb5c298 100644--- a/crates/openhuman-core/src/agent/session_host/live_tools.rs+++ b/crates/openhuman-core/src/agent/session_host/live_tools.rs@@ -8,8 +8,8 @@use std::sync::Arc;use crate::agent::session_host::types::OpenHumanSessionHost;-use crate::agent::tinyagents::live_harness::LiveToolSurface;use crate::agent::tinyagents::ToolPolicyEnforcement;+use crate::agent::tinyagents::live_harness::LiveToolSurface;impl OpenHumanSessionHost {/// The durable tools, the visible names and the tool policy of thisdiff --git a/crates/openhuman-core/src/agent/session_host/orphaned_head_resume_tests.rs b/crates/openhuman-core/src/agent/session_host/orphaned_head_resume_tests.rsindex c9ff7882a2..85fbc92eb1 100644--- a/crates/openhuman-core/src/agent/session_host/orphaned_head_resume_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/orphaned_head_resume_tests.rs@@ -176,7 +176,9 @@ async fn resumed_orphaned_tool_head_is_repaired_before_the_request() {!matches!(first_non_system, Message::Tool(_)),"the request must not open on an orphaned tool result, got {first_non_system:?}");- assert!(!sent- .iter()- .any(|m| matches!(m, Message::Tool(t) if t.tool_call_id.starts_with("call_orphan"))));+ assert!(+ !sent+ .iter()+ .any(|m| matches!(m, Message::Tool(t) if t.tool_call_id.starts_with("call_orphan")))+ );}diff --git a/crates/openhuman-core/src/agent/session_host/response_shape_turn_tests.rs b/crates/openhuman-core/src/agent/session_host/response_shape_turn_tests.rsindex d4f8cc2ebd..d55c86bfd3 100644--- a/crates/openhuman-core/src/agent/session_host/response_shape_turn_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/response_shape_turn_tests.rs@@ -9,9 +9,11 @@ fn a_response_shape_applies_to_exactly_the_next_turn() {state.pending_response_shape = Some(Arc::clone(&scope));let first = state.take_turn_inputs();- assert!(first- .response_shape- .as_ref()- .is_some_and(|taken| Arc::ptr_eq(taken, &scope)));+ assert!(+ first+ .response_shape+ .as_ref()+ .is_some_and(|taken| Arc::ptr_eq(taken, &scope))+ );assert!(state.take_turn_inputs().response_shape.is_none());}diff --git a/crates/openhuman-core/src/agent/session_host/runtime/run_loop.rs b/crates/openhuman-core/src/agent/session_host/runtime/run_loop.rsindex 5b0a20e592..cd1b990c2c 100644--- a/crates/openhuman-core/src/agent/session_host/runtime/run_loop.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime/run_loop.rs@@ -6,7 +6,7 @@ use super::super::types::OpenHumanSessionHost;use crate::core::bus::BUS;use crate::core::events::DomainEvent;use crate::security::prompt_injection::{- enforce_prompt_input, PromptEnforcementAction, PromptEnforcementContext,+ PromptEnforcementAction, PromptEnforcementContext, enforce_prompt_input,};use anyhow::Result;use tinyagents_harness::agent_error::AgentError;diff --git a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rsindex 1ecabc259f..23abe088b5 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs@@ -15,8 +15,8 @@ use super::announcement_notes::{};use super::runtime_session::tool_surface::reconcile_synthesized_visibility;use super::runtime_session::{- account_committed_turn_against_goal, begin_turn_resume, holistic_last_turn_usage,- OpenHumanSessionState,+ OpenHumanSessionState, account_committed_turn_against_goal, begin_turn_resume,+ holistic_last_turn_usage,};use super::{OpenHumanSessionFactory, OpenHumanSessionHooks, OpenHumanTranscriptCodec};use crate::agent::tinyagents::host::OpenHumanRunContext;@@ -90,10 +90,12 @@ fn codec_marks_failed_tool_rows_from_the_explicit_turn_sidecar() {},).unwrap();- assert!(rows[0]- .tool_failure- .as_ref()- .is_some_and(|failure| failure.failed));+ assert!(+ rows[0]+ .tool_failure+ .as_ref()+ .is_some_and(|failure| failure.failed)+ );}/// The durable record is the parent's OWN spend.diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rsindex 628d86ddea..ed593269d0 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs@@ -34,7 +34,7 @@ use super::types::OpenHumanSessionHost;use crate::agent::{message_convert::{user_message_from_text, user_text_with_markers},session_host::{- driver::OpenHumanSessionDriver, OpenHumanSessionHooks, OpenHumanTranscriptCodec,+ OpenHumanSessionHooks, OpenHumanTranscriptCodec, driver::OpenHumanSessionDriver,},tinyagents::{host::OpenHumanRunContext, middleware::turn_context::TurnContextMiddleware},};@@ -77,8 +77,8 @@ struct OpenHumanTurnPrelude {context_config: crate::config::ContextConfig,tool_policy: Arc<dyn tinyagents_harness::middleware::ToolCallPolicy<- crate::agent::tinyagents::host::OpenHumanRunContext,- >,+ crate::agent::tinyagents::host::OpenHumanRunContext,+ >,>,tool_dispatcher: Arc<dyn tinytools_agent::dialect::ToolDialect>,workspace_dir: std::path::PathBuf,diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest_tests.rsindex b0cb9e3e6c..5ded847bfa 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest_tests.rs@@ -1,6 +1,6 @@use super::*;-use tinyagents_harness::summarization::{checkpoint_message, SummaryPlacement};+use tinyagents_harness::summarization::{SummaryPlacement, checkpoint_message};use tinyinference_llm::ToolCall;fn assistant_with_call(id: &str, name: &str) -> Message {diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/permanent_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/permanent_tests.rsindex 2137af49b0..54fe438700 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session/permanent_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/permanent_tests.rs@@ -1,6 +1,6 @@use super::*;use std::{collections::HashSet, sync::Arc};-use tinyagents_session::transcript::{session_stem, SessionRef};+use tinyagents_session::transcript::{SessionRef, session_stem};use tinyinference_llm::message::Message;use tinytools::ToolSpec;diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rsindex 5cc8ddd4a1..261256b898 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs@@ -263,12 +263,14 @@ fn connected_mcp_actions_enter_search_and_leave_on_disconnect() {.clear();prelude.refresh_delegation_tool_surface().unwrap();assert!(!synthesized_tool_names(&prelude).contains(&action));- assert!(!prelude- .tool_surface- .lock()- .expect("tool surface")- .deferred_tool_names- .contains(&action));+ assert!(+ !prelude+ .tool_surface+ .lock()+ .expect("tool surface")+ .deferred_tool_names+ .contains(&action)+ );}#[cfg(feature = "mcp")]@@ -394,10 +396,12 @@ async fn desktop_browser_setting_keeps_deferred_tools_in_fresh_and_resumed_surfa.expect("desktop orchestrator");for name in ["browser", "browser_open"] {assert!(host.deferred_tool_names.contains(name), "{name}");- assert!(!host- .visible_tool_specs_arc()- .iter()- .any(|spec| spec.name == name));+ assert!(+ !host+ .visible_tool_specs_arc()+ .iter()+ .any(|spec| spec.name == name)+ );}host.ensure_runtime_session().expect("runtime session");let prelude = host@@ -436,10 +440,7 @@ async fn desktop_browser_setting_keeps_deferred_tools_in_fresh_and_resumed_surfa).expect("browser-disabled orchestrator");for name in ["browser", "browser_open"] {- assert!(- !disabled.deferred_tool_names.contains(name),- "{name}"- );+ assert!(!disabled.deferred_tool_names.contains(name), "{name}");}}@@ -709,14 +710,18 @@ async fn newly_connected_action_cannot_shadow_a_permanent_source() {mutable.connected_integrations_authoritative = true;}let error = prelude.refresh_delegation_tool_surface().unwrap_err();- assert!(error- .to_string()- .contains("collision with synthesized tool"));+ assert!(+ error+ .to_string()+ .contains("collision with synthesized tool")+ );let surface = prelude.tool_surface.lock().unwrap();assert!(Arc::ptr_eq(&surface.visible_tool_specs, &before));assert_eq!(surface.tools[0].description(), "host-owned action");- assert!(!surface- .synthesized_tools- .iter()- .any(|tool| tool.name() == "GMAIL_SEND_EMAIL"));+ assert!(+ !surface+ .synthesized_tools+ .iter()+ .any(|tool| tool.name() == "GMAIL_SEND_EMAIL")+ );}diff --git a/crates/openhuman-core/src/agent/session_host/stop_summary_tests.rs b/crates/openhuman-core/src/agent/session_host/stop_summary_tests.rsindex 874b40ca9f..4587673232 100644--- a/crates/openhuman-core/src/agent/session_host/stop_summary_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/stop_summary_tests.rs@@ -1,6 +1,6 @@use super::*;use crate::agent::session_host::turn_checkpoint::{- build_deterministic_final_summary, CheckpointToolResult,+ CheckpointToolResult, build_deterministic_final_summary,};fn result(name: &str, success: bool, content: &str) -> CheckpointToolResult {diff --git a/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs b/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rsindex 68150cb200..0dc7b76a26 100644--- a/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs@@ -22,7 +22,7 @@ use std::collections::{BTreeMap, HashMap};use std::path::{Path, PathBuf};use std::sync::{Arc, LazyLock, Mutex};-use serde_json::{json, Value};+use serde_json::{Value, json};use tinyagents_harness::testkit::ScriptedModel;use tinyagents_session::transcript::{SessionRef, TranscriptLocator};use tinyinference_llm::message::{AssistantMessage, ContentBlock};@@ -479,14 +479,16 @@ fn assert_retired_tool_replay(identity_bound: bool) {&store_locator(root.path()),"retired-audio-thread",);- assert!(archived- .tools- .as_ref()- .expect("recorded declarations")- .as_array()- .expect("declarations array")- .iter()- .any(|spec| spec["name"] == RETIRED));+ assert!(+ archived+ .tools+ .as_ref()+ .expect("recorded declarations")+ .as_array()+ .expect("declarations array")+ .iter()+ .any(|spec| spec["name"] == RETIRED)+ );let archived_rows = to_json(&archived.messages);drop(first);@@ -512,10 +514,12 @@ fn assert_retired_tool_replay(identity_bound: bool) {.expect("unthreaded session build")};if identity_bound {- assert!(resumed- .resume_bound_session()- .await- .expect("resume archive"));+ assert!(+ resumed+ .resume_bound_session()+ .await+ .expect("resume archive")+ );} else {resumed.ensure_runtime_session()diff --git a/crates/openhuman-core/src/agent/session_host/transcript_resume_stable_tests.rs b/crates/openhuman-core/src/agent/session_host/transcript_resume_stable_tests.rsindex f22e5913d6..74b228e49d 100644--- a/crates/openhuman-core/src/agent/session_host/transcript_resume_stable_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/transcript_resume_stable_tests.rs@@ -9,8 +9,8 @@ use serde_json::Value;use tinyinference_llm::model::ModelResponse;use super::transcript_compat_tests::{- build_host, model, place_fixture, run_async, store_locator, store_tree, thread_id, Layout,- SCENARIOS,+ Layout, SCENARIOS, build_host, model, place_fixture, run_async, store_locator, store_tree,+ thread_id,};fn tree(@@ -83,9 +83,11 @@ fn a_legacy_workspace_is_adopted_once_and_the_next_process_resumes_in_place() {let stem = host.session_id().expect("bound session id");place_fixture(root.path(), scenario, &stem, "");imported = legacy_rows(root.path());- assert!(imported- .iter()- .all(|rows| !rows.as_array().unwrap().is_empty()));+ assert!(+ imported+ .iter()+ .all(|rows| !rows.as_array().unwrap().is_empty())+ );assert!(host.resume_bound_session().await.expect("first resume"));after_first = tree(root.path(), &thread, &host);}diff --git a/crates/openhuman-core/src/agent/session_host/turn_backstop_tests.rs b/crates/openhuman-core/src/agent/session_host/turn_backstop_tests.rsindex ec76bd6a6a..522119c17e 100644--- a/crates/openhuman-core/src/agent/session_host/turn_backstop_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/turn_backstop_tests.rs@@ -1,5 +1,5 @@use super::*;-use tinyagents_harness::turn_deadline::{parse_backstop, TurnDeadline};+use tinyagents_harness::turn_deadline::{TurnDeadline, parse_backstop};#[test]fn parse_backstop_defaults_and_disables() {diff --git a/crates/openhuman-core/src/agent/session_host/typed_transcript_compat_tests.rs b/crates/openhuman-core/src/agent/session_host/typed_transcript_compat_tests.rsindex 3e4c58fba5..168aa721fa 100644--- a/crates/openhuman-core/src/agent/session_host/typed_transcript_compat_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/typed_transcript_compat_tests.rs@@ -17,13 +17,13 @@//! committed corpus now.use crate::agent::session_store::splice_fixture_tests::head_of;-use serde_json::{json, Value};+use serde_json::{Value, json};use tinyinference_llm::message::ContentBlock;use tinyinference_llm::model::ModelResponse;use super::transcript_compat_tests::{- build_host, call, classic_path, fixture, golden, import_placed, model, response, run_async,- snapshot_with, store_locator, thread_id, Scenario, SCENARIOS,+ SCENARIOS, Scenario, build_host, call, classic_path, fixture, golden, import_placed, model,+ response, run_async, snapshot_with, store_locator, thread_id,};/// Head fixtures that have a typed re-write (the chain and legacy layouts are@@ -224,10 +224,12 @@ fn an_old_session_continued_by_this_binary_reloads_identically() {continued_history);let transcript = head_of(&locator, &thread);- assert!(transcript- .messages- .iter()- .any(|row| row.tool_calls.iter().any(|call| call.id == "call_new")));+ assert!(+ transcript+ .messages+ .iter()+ .any(|row| row.tool_calls.iter().any(|call| call.id == "call_new"))+ );});}@@ -286,9 +288,11 @@ fn a_live_image_turn_persists_typed_image_parts_and_resumes_identically() {);assert!(!raw.contains("[IMAGE:"), "no text marker is persisted");- assert!(serde_json::to_string(&vision.0.requests())- .unwrap()- .contains(png));+ assert!(+ serde_json::to_string(&vision.0.requests())+ .unwrap()+ .contains(png)+ );let mut second = build_live_image_host(root.path(), live_image_model("unused"), &thread);assert!(second.resume_bound_session().await.expect("resume"));diff --git a/crates/openhuman-core/src/agent/session_host/types.rs b/crates/openhuman-core/src/agent/session_host/types.rsindex 0e4c1b5fe4..15a6bfef6e 100644--- a/crates/openhuman-core/src/agent/session_host/types.rs+++ b/crates/openhuman-core/src/agent/session_host/types.rs@@ -442,8 +442,8 @@ pub struct OpenHumanSessionHost {/// behaviour unless a caller opts into stricter policy.pub(super) tool_policy: Arc<dyn tinyagents_harness::middleware::ToolCallPolicy<- crate::agent::tinyagents::host::OpenHumanRunContext,- >,+ crate::agent::tinyagents::host::OpenHumanRunContext,+ >,>,/// Hash of the Composio connection set this OpenHumanSessionHost last reconciled/// against. Compared at top-of-turn to a fresh hash computed from@@ -632,8 +632,8 @@ pub struct SessionHostBuilder {pub(super) tool_policy: Option<Arc<dyn tinyagents_harness::middleware::ToolCallPolicy<- crate::agent::tinyagents::host::OpenHumanRunContext,- >,+ crate::agent::tinyagents::host::OpenHumanRunContext,+ >,>,>,}diff --git a/crates/openhuman-core/src/agent/session_store/mod.rs b/crates/openhuman-core/src/agent/session_store/mod.rsindex 6ef74a7aa1..5537c1b59c 100644--- a/crates/openhuman-core/src/agent/session_store/mod.rs+++ b/crates/openhuman-core/src/agent/session_store/mod.rs@@ -23,12 +23,12 @@ pub mod ledger_sync;mod rebound;mod workspace;-pub use rebound::{rebind_all, ReboundSessionStores, StoreRegistry};+pub use rebound::{ReboundSessionStores, StoreRegistry, rebind_all};pub use workspace::{- artifact_blobs_for, attachment_stash_for, current_documents_for, default_turn_states_for,- ledger_for, provider_for_workspace, release_workspace, release_workspace_defaults,- require_ledger, status_store_for, stores_for, stores_or_ephemeral, turn_states_for,- with_ledger, with_ledger_async, WorkspaceSessionStores,+ WorkspaceSessionStores, artifact_blobs_for, attachment_stash_for, current_documents_for,+ default_turn_states_for, ledger_for, provider_for_workspace, release_workspace,+ release_workspace_defaults, require_ledger, status_store_for, stores_for, stores_or_ephemeral,+ turn_states_for, with_ledger, with_ledger_async,};static PROVIDER: LazyLock<RwLock<Option<Arc<dyn SessionStoreProvider>>>> =diff --git a/crates/openhuman-core/src/agent/session_store/mod_tests.rs b/crates/openhuman-core/src/agent/session_store/mod_tests.rsindex 549e277dd4..2fbd5afda7 100644--- a/crates/openhuman-core/src/agent/session_store/mod_tests.rs+++ b/crates/openhuman-core/src/agent/session_store/mod_tests.rs@@ -318,11 +318,13 @@ async fn a_stashed_attachment_survives_a_restart_of_the_workspace_store() {resumed.read_data_uri("att-1").await.unwrap().as_deref(),Some(data_uri));- assert!(resumed- .read_data_uri("never-stashed")- .await- .unwrap()- .is_none());+ assert!(+ resumed+ .read_data_uri("never-stashed")+ .await+ .unwrap()+ .is_none()+ );}#[test]diff --git a/crates/openhuman-core/src/agent/session_store/rebound.rs b/crates/openhuman-core/src/agent/session_store/rebound.rsindex 30b77019bf..e5582b8fd9 100644--- a/crates/openhuman-core/src/agent/session_store/rebound.rs+++ b/crates/openhuman-core/src/agent/session_store/rebound.rs@@ -13,8 +13,8 @@use std::sync::{Arc, LazyLock, Mutex, PoisonError, RwLock, Weak};-use tinyagents_session::port::{AgentStores, SessionStoreProvider};use tinyagents_session::DriverSessionStores;+use tinyagents_session::port::{AgentStores, SessionStoreProvider};use tinystoragedrivers::{Blocking, StorageBackend, StorageError};/// The live [`ReboundSessionStores`] of one owner, so a rebind reaches the onediff --git a/crates/openhuman-core/src/agent/session_store/workspace.rs b/crates/openhuman-core/src/agent/session_store/workspace.rsindex 1af57b2d8f..f2a9d1e543 100644--- a/crates/openhuman-core/src/agent/session_store/workspace.rs+++ b/crates/openhuman-core/src/agent/session_store/workspace.rs@@ -18,9 +18,9 @@ use std::path::{Path, PathBuf};use std::sync::{Arc, LazyLock, Mutex, PoisonError};use tinyagents_harness::multimodal::BlobAttachmentStash;+use tinyagents_session::DriverSessionStores;use tinyagents_session::port::{AgentStores, SessionStoreProvider, TurnStates};use tinyagents_session::run_ledger::{LedgerError, LedgerResult, RunLedgerStore};-use tinyagents_session::DriverSessionStores;use tinystoragedrivers::{BlobStore, DocumentStore, MemoryStorage, StorageBackend};/// One fallback provider and the backend it was built over.diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph.rsindex e627a2b16d..6ab8ba34cf 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph.rs@@ -44,10 +44,10 @@ mod worker_mirror;// (`ops/mod.rs`, `ops/runner.rs`, `graph_tests.rs`'s `use super::*`) are// unaffected by the responsibility split.#[cfg(test)]+pub(super) use dispatch::AggregatedUsage;+#[cfg(test)]pub(super) use dispatch::inherited_thread_id;pub(super) use dispatch::run_subagent_via_graph;-#[cfg(test)]-pub(super) use dispatch::AggregatedUsage;// Only what `graph_tests.rs`'s `use super::*` still needs directly (the rest// of the original flat imports now live with the code that uses them, indiff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph/worker_mirror.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph/worker_mirror.rsindex ca8fb96aae..ed6896bfdb 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph/worker_mirror.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph/worker_mirror.rs@@ -22,7 +22,7 @@ fn append_worker_message(sender: &str,metadata: serde_json::Value,) {- use crate::threads::store::{append_message, ConversationMessage as StoredMessage};+ use crate::threads::store::{ConversationMessage as StoredMessage, append_message};let mut extra = serde_json::json!({"scope": "worker_thread","agent_id": agent_id,diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rsindex 7d5ce7e4a9..86e55f3b36 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rs@@ -40,7 +40,7 @@ impl<S: tracing::Subscriber> tracing_subscriber::Layer<S> for WarnLayer {let mut message = Message(None);event.record(&mut message);if let Some(text) = message.0 {- self.0 .0.lock().unwrap().push(text);+ self.0.0.lock().unwrap().push(text);}}}diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/prompt.rs b/crates/openhuman-core/src/agent/subagent_host/ops/prompt.rsindex e2305d40b4..47b21b7ba4 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/prompt.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/prompt.rs@@ -6,7 +6,7 @@use crate::agent::harness::artifact_offload::OFFLOAD_WRITE_TOOL;use std::collections::HashSet;use tinyagents_harness::artifacts::{- render_artifact_offload_contract, should_render_offload_contract, ARTIFACT_OFFLOAD_HEADING,+ ARTIFACT_OFFLOAD_HEADING, render_artifact_offload_contract, should_render_offload_contract,};use tinytools::ToolSpec;diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rsindex ce9fdb77c0..abfaf0441a 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs@@ -13,7 +13,7 @@ use crate::agent::harness::artifact_offload::offload_run_result;use crate::agent::harness::fork_context::ParentExecutionContext;use crate::agent::harness::host_definition::{AgentDefinition, AgentDefinitionRegistry};use crate::agent::prompts::{- render_subagent_system_prompt_with_format, PromptContext, SubagentRenderOptions,+ PromptContext, SubagentRenderOptions, render_subagent_system_prompt_with_format,};use crate::agent::subagent_host::definition_iter_cap;use crate::agent::subagent_host::tool_prep::{@@ -25,14 +25,14 @@ use crate::agent::subagent_host::types::{use crate::agent::tinyagents::budget::MAX_SPAWN_DEPTH;use crate::inference::provider::AGENT_TURN_MAX_OUTPUT_TOKENS;use tinyagents_definition::{- validate_tier_transition, AgentTier, IterationPolicy, PromptSource,- SandboxMode as AgentSandboxMode,+ AgentTier, IterationPolicy, PromptSource, SandboxMode as AgentSandboxMode,+ validate_tier_transition,};use tinyagents_harness::artifacts::{- effective_offload_threshold, extract_artifact_paths, note_artifact_handoff,- DEFAULT_OFFLOAD_THRESHOLD_BYTES, HANDOFF_STAGE_RECORDED,+ DEFAULT_OFFLOAD_THRESHOLD_BYTES, HANDOFF_STAGE_RECORDED, effective_offload_threshold,+ extract_artifact_paths, note_artifact_handoff,};-use tinyagents_harness::context::{current_run_depth, with_run_depth, RunConfig, RunDepth};+use tinyagents_harness::context::{RunConfig, RunDepth, current_run_depth, with_run_depth};use tinytools::{SandboxMode as TinyagentsSandboxMode, ToolSpec, WorkspaceDescriptor};use tinytools_std::file_state::with_file_state_agent_id;diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner_checkpoint_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner_checkpoint_tests.rsindex 357e42e96d..9f1a0b596b 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner_checkpoint_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner_checkpoint_tests.rs@@ -4,12 +4,23 @@ use crate::agent::subagent_host::types::SubagentCheckpointData;fn checkpoint_data(task_id: &str) -> SubagentCheckpointData {SubagentCheckpointData {- task_key: None, task_id: task_id.to_string(), agent_id: "researcher".to_string(),- worker_thread_id: None, history: Vec::new(), question: "Which region?".to_string(),- options: None, skill_filter_override: None, model_override: None,- created_at: "2026-09-02T00:00:00Z".to_string(), resume_checkpoint: None,- resume_metadata: Default::default(), output: String::new(), iterations: 0,- usage: Default::default(), artifact_paths: Vec::new(), elapsed_ms: 0,+ task_key: None,+ task_id: task_id.to_string(),+ agent_id: "researcher".to_string(),+ worker_thread_id: None,+ history: Vec::new(),+ question: "Which region?".to_string(),+ options: None,+ skill_filter_override: None,+ model_override: None,+ created_at: "2026-09-02T00:00:00Z".to_string(),+ resume_checkpoint: None,+ resume_metadata: Default::default(),+ output: String::new(),+ iterations: 0,+ usage: Default::default(),+ artifact_paths: Vec::new(),+ elapsed_ms: 0,}}diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rsindex 9c11cb1b7b..0c43a37d8a 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs@@ -1,6 +1,6 @@use super::*;use crate::agent::subagent_host::run_subagent;-use tinyagents_harness::context::{current_run_depth, with_run_depth, RunDepth};+use tinyagents_harness::context::{RunDepth, current_run_depth, with_run_depth};#[tokio::test]async fn runner_rejects_spawn_beyond_max_depth() {diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests_slug_filter_typed_mode_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests_slug_filter_typed_mode_tests.rsindex c0d47e6681..9d7c067d37 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests_slug_filter_typed_mode_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests_slug_filter_typed_mode_tests.rs@@ -1,6 +1,6 @@use super::*;use crate::agent::subagent_host::run_subagent;-use tinyagents_harness::context::{current_run_depth, with_run_depth, RunDepth};+use tinyagents_harness::context::{RunDepth, current_run_depth, with_run_depth};#[test]fn filter_named_scope_keeps_only_named() {@@ -146,12 +146,16 @@ async fn typed_mode_system_prompt_includes_subagent_role_contract() {.find(|m| m.role == "system").expect("system message should be present");assert!(system_msg.content.contains("## Sub-agent Role Contract"));- assert!(system_msg- .content- .contains("You are a sub-agent working for a parent OpenHuman agent"));- assert!(system_msg- .content- .contains("Keep your final response concise and synthesis-ready"));+ assert!(+ system_msg+ .content+ .contains("You are a sub-agent working for a parent OpenHuman agent")+ );+ assert!(+ system_msg+ .content+ .contains("Keep your final response concise and synthesis-ready")+ );}#[tokio::test]diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_exec_tests.rs b/crates/openhuman-core/src/agent/tinyagents/turn_exec_tests.rsindex 2fe907f438..a2b48ce8d0 100644--- a/crates/openhuman-core/src/agent/tinyagents/turn_exec_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/turn_exec_tests.rs@@ -566,8 +566,10 @@ async fn session_screens_the_new_input_but_not_a_replayed_tool_results_row() {// Splice a text-dialect `[Tool results]` round that scores Blocked into the// transcript the real writer produced, as an earlier admitted turn.- let head =- crate::agent::session_store::splice_fixture_tests::head_of(&locator, "thread-replayed-results");+ let head = crate::agent::session_store::splice_fixture_tests::head_of(+ &locator,+ "thread-replayed-results",+ );let mut messages = head.messages.clone();messages.extend([tinyagents_session::transcript::TranscriptMessage::user("look it up"),