Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed crates/openhuman-core/src/agent/goals/store.rs,crates/openhuman-core/src/agent/

Steven Enamakel15125b32caa4
diff --git a/crates/openhuman-core/src/agent/goals/store.rs b/crates/openhuman-core/src/agent/goals/store.rs
index 9270b8c878..f9ca860c8a 100644
--- a/crates/openhuman-core/src/agent/goals/store.rs
+++ b/crates/openhuman-core/src/agent/goals/store.rs
@@ -17,9 +17,9 @@ use std::path::Path;
use std::sync::Arc;
use super::ThreadGoal;
-use tinyagents_session::transcript::import::ops::open_session_stores;
use tinyagents_graph::goals::store as crate_store;
use tinyagents_harness::store::Store;
+use tinyagents_session::transcript::import::ops::open_session_stores;
pub(crate) fn goals_store(workspace_dir: &Path) -> Arc<dyn Store> {
Arc::new(open_session_stores(workspace_dir).kv)
diff --git a/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/collect.rs b/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/collect.rs
index 1ed628d54d..977cffac07 100644
--- a/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/collect.rs
+++ b/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/collect.rs
@@ -7,8 +7,8 @@ use std::path::PathBuf;
use serde_json::json;
use tokio::sync::mpsc::Sender;
-use tinytools_std::file_state;
use crate::agent::progress::AgentProgress;
+use tinytools_std::file_state;
use super::types::{ParallelAgentResult, ParallelAgentStatus};
diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs
index a0999446eb..ce35f6b047 100644
--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs
@@ -40,8 +40,8 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
let skill_run = run_workflow_route(ctx);
// A packed install route is already named under "Capabilities not in your
// tool list"; the skills section names it only when it is on the belt.
- let skill_install =
- hand_off_route(ctx, "skill_setup").filter(|route| !route.contains(tinyagents_harness::tool::packs::USE_SKILL));
+ let skill_install = hand_off_route(ctx, "skill_setup")
+ .filter(|route| !route.contains(tinyagents_harness::tool::packs::USE_SKILL));
// An empty visibility set is the builder's unfiltered sentinel. Preserve
// the MCP route for those sessions while suppressing it in gated-off builds.
// Registered is enough: the orchestrator defers the registry tools
diff --git a/crates/openhuman-core/src/agent/session_host/builder/mod.rs b/crates/openhuman-core/src/agent/session_host/builder/mod.rs
index ab6baa9276..7c35eef04e 100644
--- a/crates/openhuman-core/src/agent/session_host/builder/mod.rs
+++ b/crates/openhuman-core/src/agent/session_host/builder/mod.rs
@@ -139,7 +139,8 @@ pub(super) fn visible_tool_specs_for_policy(
// below already does the real per-tool narrowing via `is_callable`
// (and drops the spec entirely when nothing survives), so this
// filter only needs to gate *other* tools on the static ceiling.
- spec.name == tinyagents_harness::tool::packs::USE_SKILL || tool_policy.is_allowed(&spec.name)
+ spec.name == tinyagents_harness::tool::packs::USE_SKILL
+ || tool_policy.is_allowed(&spec.name)
})
.cloned()
.filter_map(|mut spec| {
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
index 0df3133b9e..1e0392e3cd 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@ -1023,14 +1023,13 @@ impl OpenHumanTurnPrelude {
log::warn!("[session-store] dual-write transcript read-back failed");
return;
};
- if let Err(error) =
- tinyagents_session::transcript::import::live::write_live_turn(
- &workspace,
- &stem,
- &transcript,
- crate::agent::session_import::projector::journal_message_from_transcript,
- )
- .await
+ if let Err(error) = tinyagents_session::transcript::import::live::write_live_turn(
+ &workspace,
+ &stem,
+ &transcript,
+ crate::agent::session_import::projector::journal_message_from_transcript,
+ )
+ .await
{
log::warn!("[session-store] dual-write failed stem={stem}: {error:#}");
}
diff --git a/crates/openhuman-core/src/agent/session_import/live_tests.rs b/crates/openhuman-core/src/agent/session_import/live_tests.rs
index ad5a627c84..23367af664 100644
--- a/crates/openhuman-core/src/agent/session_import/live_tests.rs
+++ b/crates/openhuman-core/src/agent/session_import/live_tests.rs
@@ -15,6 +15,10 @@ use tinyagents_harness::store::{AppendStore, FileStore, JsonlAppendStore, Store}
use super::live::{dual_write_enabled, shadow_reads_enabled};
use super::projector::journal_message_from_transcript as project;
+use crate::agent::messages::{
+ attach_chat_tool_failure_metadata, attach_chat_turn_usage_metadata,
+ transcript_message_from_chat, ChatMessage,
+};
use tinyagents_session::transcript::import::convert::{
journal_messages as journal_messages_with, sanitize_store_name, stream_name,
};
@@ -23,10 +27,8 @@ use tinyagents_session::transcript::import::live::{
ShadowReadOutcome,
};
use tinyagents_session::transcript::import::ops::store_root;
-use tinyagents_session::transcript::import::types::{JournalMessage, SessionDescriptor, NS_SESSIONS};
-use crate::agent::messages::{
- attach_chat_tool_failure_metadata, attach_chat_turn_usage_metadata,
- transcript_message_from_chat, ChatMessage,
+use tinyagents_session::transcript::import::types::{
+ JournalMessage, SessionDescriptor, NS_SESSIONS,
};
use tinyagents_session::transcript::{
read_transcript, write_transcript, MessageUsage, SessionTranscript, TranscriptMeta,
@@ -37,11 +39,7 @@ fn journal_messages(t: &SessionTranscript) -> Vec<JournalMessage> {
journal_messages_with(t, project)
}
-async fn write_live_turn(
- workspace: &Path,
- key: &str,
- t: &SessionTranscript,
-) -> anyhow::Result<()> {
+async fn write_live_turn(workspace: &Path, key: &str, t: &SessionTranscript) -> anyhow::Result<()> {
write_live_turn_with(workspace, key, t, project).await
}
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
index b7d7c775f1..45050c8233 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -10,7 +10,6 @@ use std::collections::HashSet;
use std::sync::Arc;
use std::time::Instant;
-use tinytools_std::file_state::with_file_state_agent_id;
use crate::agent::harness::agent_graph::{AgentTurnRequest, AgentTurnUsage};
use crate::agent::harness::artifact_offload::{
effective_offload_threshold, extract_artifact_paths, new_artifact_offload,
@@ -41,6 +40,7 @@ use crate::inference::provider::AGENT_TURN_MAX_OUTPUT_TOKENS;
use crate::memory::api::provider::retrieval::{FastRetrieveQuery, RetrievalResponse};
use crate::memory::source_scope::as_bus_scope;
use tinytools::{SandboxMode as TinyagentsSandboxMode, ToolSpec, WorkspaceDescriptor};
+use tinytools_std::file_state::with_file_state_agent_id;
use super::prompt::{
append_artifact_offload_contract, append_subagent_role_contract, dedup_tool_specs_by_name,
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs
index 01fa4d4046..98cbe618d7 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs
@@ -434,11 +434,11 @@ mod prompt_cache_tests;
#[path = "middleware_research_budget_tests.rs"]
mod research_budget_tests;
+#[path = "middleware_memory_and_hooks_tests.rs"]
+mod memory_and_hooks_tests;
#[path = "middleware_tool_output_artifact_tests.rs"]
mod tool_output_artifact_tests;
#[path = "middleware_tool_output_tests.rs"]
mod tool_output_tests;
#[path = "middleware_tool_policy_tests.rs"]
mod tool_policy_tests;
-#[path = "middleware_memory_and_hooks_tests.rs"]
-mod memory_and_hooks_tests;
diff --git a/crates/openhuman-core/src/agent/tinyagents/reaper.rs b/crates/openhuman-core/src/agent/tinyagents/reaper.rs
index a02981b2df..8898017dc4 100644
--- a/crates/openhuman-core/src/agent/tinyagents/reaper.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/reaper.rs
@@ -21,8 +21,8 @@ use tinyagents_harness::events::HarnessRunStatus;
use tinyagents_harness::ids::{ExecutionStatus, HarnessPhase};
use tinyagents_harness::observability::HarnessStatusStore;
-use tinyagents_session::transcript::import::ops::open_session_stores;
use crate::agent::tinyagents::journal::FileStatusStore;
+use tinyagents_session::transcript::import::ops::open_session_stores;
/// Error recorded on a run reaped by the startup sweep. Stable + grep-friendly
/// so an operator (or a test) can tell a reaped run from a genuinely failed one.
diff --git a/crates/openhuman-core/src/agent/tinyagents/replay/ops.rs b/crates/openhuman-core/src/agent/tinyagents/replay/ops.rs
index 9fa5a6155e..c3e723b515 100644
--- a/crates/openhuman-core/src/agent/tinyagents/replay/ops.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/replay/ops.rs
@@ -17,8 +17,8 @@ use tinyagents_harness::observability::{
AgentObservation, HarnessEventJournal, HarnessStatusStore, StoreEventJournal,
};
-use tinyagents_session::transcript::import::ops::open_session_stores;
use crate::agent::tinyagents::journal::FileStatusStore;
+use tinyagents_session::transcript::import::ops::open_session_stores;
/// Default page size for [`read_run_events_page`] when the caller omits `limit`.
pub(crate) const DEFAULT_EVENTS_LIMIT: u64 = 200;
diff --git a/crates/openhuman-core/src/core/runtime/bootstrap.rs b/crates/openhuman-core/src/core/runtime/bootstrap.rs
index 647307d1d7..391ded80e5 100644
--- a/crates/openhuman-core/src/core/runtime/bootstrap.rs
+++ b/crates/openhuman-core/src/core/runtime/bootstrap.rs
@@ -81,7 +81,10 @@ pub(crate) async fn bootstrap_core_runtime(
// confusing a stale `Streaming` lifecycle for an in-flight turn.
{
let now = chrono::Utc::now().to_rfc3339();
- match tinyagents_session::turn_state::store::mark_all_interrupted(workspace_dir.clone(), &now) {
+ match tinyagents_session::turn_state::store::mark_all_interrupted(
+ workspace_dir.clone(),
+ &now,
+ ) {
Ok(0) => {}
Ok(count) => {
log::info!("[runtime] marked {count} stale turn snapshot(s) as interrupted")
diff --git a/crates/openhuman-core/src/hooks/bridge.rs b/crates/openhuman-core/src/hooks/bridge.rs
index fea902625b..254037a4f7 100644
--- a/crates/openhuman-core/src/hooks/bridge.rs
+++ b/crates/openhuman-core/src/hooks/bridge.rs
@@ -354,7 +354,11 @@ impl PostTurnHook for ConfiguredHookBridge {
// lets the entrypoint that owns the conversation decide whether
// to start another one — the only layer that knows if there is
// still a user attached.
- tinyagents_runtime::command_hooks::followup::publish(ctx.session_id.clone(), followup).await;
+ tinyagents_runtime::command_hooks::followup::publish(
+ ctx.session_id.clone(),
+ followup,
+ )
+ .await;
}
}
Ok(())
diff --git a/crates/openhuman-core/src/hooks/ops.rs b/crates/openhuman-core/src/hooks/ops.rs
index b67441bcda..4accf59872 100644
--- a/crates/openhuman-core/src/hooks/ops.rs
+++ b/crates/openhuman-core/src/hooks/ops.rs
@@ -10,7 +10,9 @@
use std::path::PathBuf;
use std::time::Duration;
-use tinyagents_runtime::command_hooks::context::{build_input, set_host_context, HostContext, TurnIdentity};
+use tinyagents_runtime::command_hooks::context::{
+ build_input, set_host_context, HostContext, TurnIdentity,
+};
use tinyagents_runtime::command_hooks::types::{
CompactPayload, HookEvent, HookPayload, PromptPayload, SessionPayload, SubagentPayload,
TextPayload,
diff --git a/crates/openhuman-core/src/hooks/schemas.rs b/crates/openhuman-core/src/hooks/schemas.rs
index 286ee9ff0b..c02050ba07 100644
--- a/crates/openhuman-core/src/hooks/schemas.rs
+++ b/crates/openhuman-core/src/hooks/schemas.rs
@@ -135,13 +135,15 @@ fn handle_test(params: Map<String, Value>) -> ControllerFuture {
)
.map_err(|error| format!("invalid payload for '{event}': {error}"))?;
- let input = tinyagents_runtime::command_hooks::context::build_input(event, TurnIdentity::default(), payload);
+ let input = tinyagents_runtime::command_hooks::context::build_input(
+ event,
+ TurnIdentity::default(),
+ payload,
+ );
// A test fire is always run in the foreground, even for an
// observational event: the point of the endpoint is to show the author
// what happened, and a detached dispatch would report nothing.
- let outcome = super::host::engine()
- .dispatch_for_test(event, input)
- .await;
+ let outcome = super::host::engine().dispatch_for_test(event, input).await;
Ok(json!({
"result": {
"event": event.as_str(),
diff --git a/crates/openhuman-core/src/threads/ops/crud.rs b/crates/openhuman-core/src/threads/ops/crud.rs
index 88b78bc51d..96257a32f8 100644
--- a/crates/openhuman-core/src/threads/ops/crud.rs
+++ b/crates/openhuman-core/src/threads/ops/crud.rs
@@ -16,10 +16,10 @@ use crate::memory::{
UpdateConversationMessageRequest, UpdateConversationThreadLabelsRequest,
UpdateConversationThreadTitleRequest, UpsertConversationThreadRequest,
};
-use tinyagents_session::turn_state;
use crate::threads::ThreadsError;
use crate::web_chat as web_channel;
use std::path::PathBuf;
+use tinyagents_session::turn_state;
/// Lists all conversation threads.
pub async fn threads_list(
diff --git a/crates/openhuman-core/src/threads/ops/edit.rs b/crates/openhuman-core/src/threads/ops/edit.rs
index adec95db94..683ab7e7bc 100644
--- a/crates/openhuman-core/src/threads/ops/edit.rs
+++ b/crates/openhuman-core/src/threads/ops/edit.rs
@@ -361,7 +361,8 @@ async fn clear_dropped_turn_states(
let thread_id_owned = thread_id.to_string();
let cut_request_id_owned = cut_request_id.to_string();
let result = tokio::task::spawn_blocking(move || {
- let turns = tinyagents_session::turn_state::store::list_thread(dir.clone(), &thread_id_owned)?;
+ let turns =
+ tinyagents_session::turn_state::store::list_thread(dir.clone(), &thread_id_owned)?;
let Some(cut_started_at) = turns
.iter()
.find(|t| t.request_id == cut_request_id_owned)
diff --git a/crates/openhuman-core/src/threads/ops/edit_turn_state_tests.rs b/crates/openhuman-core/src/threads/ops/edit_turn_state_tests.rs
index 8388d4fddb..3fb998ce14 100644
--- a/crates/openhuman-core/src/threads/ops/edit_turn_state_tests.rs
+++ b/crates/openhuman-core/src/threads/ops/edit_turn_state_tests.rs
@@ -7,10 +7,10 @@
use super::*;
use crate::memory::conversations::{self, run_reply_message_id, ConversationMessage};
-use tinyagents_session::turn_state::store as turn_state_store;
-use tinyagents_session::turn_state::types::TurnState;
use serde_json::json;
use tempfile::TempDir;
+use tinyagents_session::turn_state::store as turn_state_store;
+use tinyagents_session::turn_state::types::TurnState;
fn turn_state(thread_id: &str, request_id: &str, started_at: &str) -> TurnState {
TurnState::started(thread_id.to_string(), request_id, 25, started_at)
diff --git a/crates/openhuman-core/src/threads/ops/purge.rs b/crates/openhuman-core/src/threads/ops/purge.rs
index 220f8111ba..143ae59145 100644
--- a/crates/openhuman-core/src/threads/ops/purge.rs
+++ b/crates/openhuman-core/src/threads/ops/purge.rs
@@ -4,8 +4,8 @@ use super::support::{envelope, run_to_completion, workspace_dir};
use crate::core::Outcome;
use crate::memory::conversations;
use crate::memory::{ApiEnvelope, EmptyRequest, PurgeConversationThreadsResponse};
-use tinyagents_session::turn_state;
use std::path::PathBuf;
+use tinyagents_session::turn_state;
/// Purges all conversation threads and messages.
///
diff --git a/crates/openhuman-core/src/threads/ops_conversion_tests.rs b/crates/openhuman-core/src/threads/ops_conversion_tests.rs
index 61eabaa435..125fbbed72 100644
--- a/crates/openhuman-core/src/threads/ops_conversion_tests.rs
+++ b/crates/openhuman-core/src/threads/ops_conversion_tests.rs
@@ -468,7 +468,9 @@ async fn thread_delete_removes_persisted_turn_state_snapshot() {
let snapshot = TurnState::started(thread_id, "req-1", 4, "2026-01-01T00:00:00Z");
tinyagents_session::turn_state::store::put(dir.clone(), &snapshot).expect("put snapshot");
- assert!(tinyagents_session::turn_state::store::get(dir, thread_id).unwrap().is_some());
+ assert!(tinyagents_session::turn_state::store::get(dir, thread_id)
+ .unwrap()
+ .is_some());
// Queue a finished background sub-agent result for this thread; deleting the
// thread must discard it so it's never delivered into a dead thread.
diff --git a/crates/openhuman-core/src/threads/ops_tests.rs b/crates/openhuman-core/src/threads/ops_tests.rs
index be968223d6..f51581acee 100644
--- a/crates/openhuman-core/src/threads/ops_tests.rs
+++ b/crates/openhuman-core/src/threads/ops_tests.rs
@@ -7,12 +7,12 @@ use super::*;
// these, so importing them there would be an unused import in a non-test build.
use crate::memory::conversations as conversations_store;
use crate::threads::turn_state::{ClearTurnStateRequest, GetTurnStateRequest};
-use tinyagents_session::turn_state::TurnState;
use crate::threads::ThreadsError;
use serde_json::{json, Value};
use std::ffi::OsString;
use std::path::Path;
use tinyagents_harness::title::{build_title_prompt, THREAD_TITLE_SYSTEM_PROMPT};
+use tinyagents_session::turn_state::TurnState;
struct EnvVarGuard {
key: &'static str,
diff --git a/crates/openhuman-core/src/threads/transcript_host_tests.rs b/crates/openhuman-core/src/threads/transcript_host_tests.rs
index edf5946979..fef5735a9d 100644
--- a/crates/openhuman-core/src/threads/transcript_host_tests.rs
+++ b/crates/openhuman-core/src/threads/transcript_host_tests.rs
@@ -9,8 +9,10 @@
use crate::agent::messages::{
attach_chat_tool_failure_metadata, transcript_message_from_chat, ChatMessage,
};
-use tinyagents_session::transcript::view::{project_records, project_thread, DisplayItem, ToolCallStatus};
use tempfile::TempDir;
+use tinyagents_session::transcript::view::{
+ project_records, project_thread, DisplayItem, ToolCallStatus,
+};
use tinyagents_session::transcript::{self, read_transcript_display};
/// Write a raw JSONL transcript (meta header + `body` lines) for `thread_id`.
diff --git a/crates/openhuman-core/src/threads/turn_state/mirror.rs b/crates/openhuman-core/src/threads/turn_state/mirror.rs
index fc72c4b53f..f50af4ae98 100644
--- a/crates/openhuman-core/src/threads/turn_state/mirror.rs
+++ b/crates/openhuman-core/src/threads/turn_state/mirror.rs
@@ -26,6 +26,8 @@ mod state;
pub use state::TurnStateMirror;
+#[cfg(test)]
+pub(crate) use caps::MAX_PERSISTED_TRANSCRIPT_ITEM;
#[cfg(test)]
use tinyagents_session::turn_state::store::TurnStateStore;
#[cfg(test)]
@@ -33,5 +35,3 @@ use tinyagents_session::turn_state::types::{
SubagentToolCall, SubagentTranscriptItem, ToolTimelineStatus, TranscriptItem, TurnLifecycle,
TurnPhase,
};
-#[cfg(test)]
-pub(crate) use caps::MAX_PERSISTED_TRANSCRIPT_ITEM;
diff --git a/crates/openhuman-core/src/tools/impl/filesystem/apply_patch.rs b/crates/openhuman-core/src/tools/impl/filesystem/apply_patch.rs
index 31bb3a882c..aa1a510b41 100644
--- a/crates/openhuman-core/src/tools/impl/filesystem/apply_patch.rs
+++ b/crates/openhuman-core/src/tools/impl/filesystem/apply_patch.rs
@@ -14,7 +14,6 @@
//! containing `x`). An empty `old_string` against a file that *does* exist is
//! still an error — "replace nothing" is ambiguous, not a create.
-use tinytools_std::file_state;
use crate::security::{CommandClass, GateDecision, SecurityPolicy};
use async_trait::async_trait;
use serde_json::json;
@@ -23,6 +22,7 @@ use std::path::PathBuf;
use std::sync::Arc;
use tinytools::ToolRunContext;
use tinytools::{PermissionLevel, Tool, ToolCallOptions, ToolResult};
+use tinytools_std::file_state;
const MAX_FILE_BYTES: u64 = 5 * 1024 * 1024;
const MAX_EDITS: usize = 50;
diff --git a/crates/openhuman-core/src/tools/impl/filesystem/edit_file.rs b/crates/openhuman-core/src/tools/impl/filesystem/edit_file.rs
index d596c97509..0d463af0b5 100644
--- a/crates/openhuman-core/src/tools/impl/filesystem/edit_file.rs
+++ b/crates/openhuman-core/src/tools/impl/filesystem/edit_file.rs
@@ -6,13 +6,13 @@
//! exactly once in the file (so the model can't accidentally edit
//! every match). Set `replace_all` to override.
-use tinytools_std::file_state;
use crate::security::{CommandClass, GateDecision, SecurityPolicy};
use async_trait::async_trait;
use serde_json::json;
use std::sync::Arc;
use tinytools::ToolRunContext;
use tinytools::{PermissionLevel, Tool, ToolCallOptions, ToolResult};
+use tinytools_std::file_state;
const MAX_FILE_BYTES: u64 = 5 * 1024 * 1024;
diff --git a/crates/openhuman-core/src/tools/impl/filesystem/file_read.rs b/crates/openhuman-core/src/tools/impl/filesystem/file_read.rs
index 215ad28c00..b94bbe26ac 100644
--- a/crates/openhuman-core/src/tools/impl/filesystem/file_read.rs
+++ b/crates/openhuman-core/src/tools/impl/filesystem/file_read.rs
@@ -1,10 +1,10 @@
-use tinytools_std::file_state;
use crate::security::SecurityPolicy;
use async_trait::async_trait;
use serde_json::json;
use std::sync::Arc;
use tinytools::ToolRunContext;
use tinytools::{Tool, ToolCallOptions, ToolResult};
+use tinytools_std::file_state;
const MAX_FILE_SIZE_BYTES: u64 = 10 * 1024 * 1024;
/// Keep a page below the harness's 16 KiB per-result ceiling so the continuation
diff --git a/crates/openhuman-core/src/tools/impl/filesystem/file_write.rs b/crates/openhuman-core/src/tools/impl/filesystem/file_write.rs
index c85627748a..3ed24e71ae 100644
--- a/crates/openhuman-core/src/tools/impl/filesystem/file_write.rs
+++ b/crates/openhuman-core/src/tools/impl/filesystem/file_write.rs
@@ -1,10 +1,10 @@
-use tinytools_std::file_state;
use crate::security::{CommandClass, GateDecision, SecurityPolicy};
use async_trait::async_trait;
use serde_json::json;
use std::sync::Arc;
use tinytools::ToolRunContext;
use tinytools::{PermissionLevel, Tool, ToolCallOptions, ToolResult};
+use tinytools_std::file_state;
const MAX_CONTENT_BYTES: usize = 5 * 1024 * 1024;
diff --git a/crates/openhuman-core/src/tools/impl/meta/mod.rs b/crates/openhuman-core/src/tools/impl/meta/mod.rs
index 9dfc341a11..bfabf943ce 100644
--- a/crates/openhuman-core/src/tools/impl/meta/mod.rs
+++ b/crates/openhuman-core/src/tools/impl/meta/mod.rs
@@ -10,11 +10,11 @@
pub mod deferred;
+pub use deferred::{
+ deferred_set, deferred_tool_names, strip_deferred_from_visible, TOOL_SEARCH_NAME,
+};
pub use tinytools::collapse;
pub use tinytools::collapse::{
any_external_effect, args_without_action, merge_action_schemas, resolve, strictest_permission,
unknown_action_message, CollapsedAction,
};
-pub use deferred::{
- deferred_set, deferred_tool_names, strip_deferred_from_visible, TOOL_SEARCH_NAME,
-};
diff --git a/crates/openhuman-core/src/tools/impl/network/curl.rs b/crates/openhuman-core/src/tools/impl/network/curl.rs
index f7e89ba7a6..9cf279fe59 100644
--- a/crates/openhuman-core/src/tools/impl/network/curl.rs
+++ b/crates/openhuman-core/src/tools/impl/network/curl.rs
@@ -6,7 +6,6 @@
//! `http_request.allowed_domains` so there is one allowlist to reason
//! about.
-use tinytools_std::url_guard::{normalize_allowed_domains, validate_url_with_dns_check};
use crate::security::{CommandClass, GateDecision, SecurityPolicy};
use async_trait::async_trait;
use futures_util::StreamExt;
@@ -15,6 +14,7 @@ use std::path::{Component, Path, PathBuf};
use std::sync::Arc;
use std::time::Duration;
use tinytools::{PermissionLevel, Tool, ToolResult};
+use tinytools_std::url_guard::{normalize_allowed_domains, validate_url_with_dns_check};
use tokio::fs;
use tokio::io::AsyncWriteExt;
diff --git a/crates/openhuman-core/src/tools/impl/network/http_request.rs b/crates/openhuman-core/src/tools/impl/network/http_request.rs
index a5f3bf7d14..9909975521 100644
--- a/crates/openhuman-core/src/tools/impl/network/http_request.rs
+++ b/crates/openhuman-core/src/tools/impl/network/http_request.rs
@@ -1,8 +1,8 @@
-use tinytools_std::url_guard::{normalize_allowed_domains, validate_url_with_dns_check};
use crate::config::HttpRequestConfig;
use crate::security::{CommandClass, GateDecision, SecurityPolicy};
use async_trait::async_trait;
use tinytools::{PermissionLevel, Tool, ToolResult};
+use tinytools_std::url_guard::{normalize_allowed_domains, validate_url_with_dns_check};
// Only used by the `web3`-gated x402 402-retry path below.
#[cfg(feature = "web3")]
use base64::engine::Engine as _;
diff --git a/crates/openhuman-core/src/tools/impl/network/web_fetch.rs b/crates/openhuman-core/src/tools/impl/network/web_fetch.rs
index 528d83e532..c71358f3e1 100644
--- a/crates/openhuman-core/src/tools/impl/network/web_fetch.rs
+++ b/crates/openhuman-core/src/tools/impl/network/web_fetch.rs
@@ -6,7 +6,6 @@
//! the agent reaches for when researching: returns the response body
//! as text, capped, with a tiny preamble (status + final URL).
-use tinytools_std::url_guard::{normalize_allowed_domains, validate_url_with_dns_check};
use crate::config::HttpRequestConfig;
use crate::security::SecurityPolicy;
use async_trait::async_trait;
@@ -14,6 +13,7 @@ use serde_json::json;
use std::sync::Arc;
use std::time::Duration;
use tinytools::{PermissionLevel, Tool, ToolResult};
+use tinytools_std::url_guard::{normalize_allowed_domains, validate_url_with_dns_check};
pub struct WebFetchTool {
security: Arc<SecurityPolicy>,
diff --git a/crates/openhuman-core/src/web_chat/progress_bridge.rs b/crates/openhuman-core/src/web_chat/progress_bridge.rs
index f47b56ffdc..fb4caa92cc 100644
--- a/crates/openhuman-core/src/web_chat/progress_bridge.rs
+++ b/crates/openhuman-core/src/web_chat/progress_bridge.rs
@@ -6,8 +6,8 @@
use serde_json::json;
use crate::threads::turn_state::TurnStateMirror;
-use tinyagents_session::turn_state::TurnStateStore;
use crate::web_chat::{SubagentProgressDetail, WebChannelEvent};
+use tinyagents_session::turn_state::TurnStateStore;
use super::event_bus::publish_web_channel_event;
use super::types::ChatRequestMetadata;