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: files changed crates/openhuman-core/src/agent/harness/definition.rs,crates/openhuman-core/src
Steven Enamakel82d7a0dec747
diff --git a/crates/openhuman-core/src/agent/harness/definition.rs b/crates/openhuman-core/src/agent/harness/definition.rsindex 63f5f66e03..ad4e352c27 100644--- a/crates/openhuman-core/src/agent/harness/definition.rs+++ b/crates/openhuman-core/src/agent/harness/definition.rs@@ -33,7 +33,6 @@ mod source;mod subagents;mod tier;-pub(crate) use agent_definition::defaults;pub use agent_definition::{AgentDefinition, IterationPolicy, TriggerMemoryAgent, EXTENDED_MAX_TOOL_ITERATIONS,};diff --git a/crates/openhuman-core/src/agent/harness/session/runtime_tests.rs b/crates/openhuman-core/src/agent/harness/session/runtime_tests.rsindex 53503d5357..024bec05c2 100644--- a/crates/openhuman-core/src/agent/harness/session/runtime_tests.rs+++ b/crates/openhuman-core/src/agent/harness/session/runtime_tests.rs@@ -1,4 +1,3 @@-use super::*;use super::super::types::Agent;use crate::agent::messages::ConversationMessage;use crate::agent::dispatcher::XmlToolDispatcher;diff --git a/crates/openhuman-core/src/agent/harness/session/transcript.rs b/crates/openhuman-core/src/agent/harness/session/transcript.rsindex 13cf2b0463..5e807e313c 100644--- a/crates/openhuman-core/src/agent/harness/session/transcript.rs+++ b/crates/openhuman-core/src/agent/harness/session/transcript.rs@@ -117,22 +117,19 @@ mod types;mod writer;pub use legacy_md::read_transcript_legacy_md;-pub(crate) use metadata::{- attach_tool_failure_metadata, attach_turn_usage_metadata, turn_usage_extra_metadata,-};+pub(crate) use metadata::attach_tool_failure_metadata;pub use paths::{- find_latest_transcript, find_latest_transcript_in_subdir, resolve_keyed_transcript_path,- resolve_keyed_transcript_path_in_dir, resolve_new_transcript_path,+ find_latest_transcript_in_subdir, resolve_keyed_transcript_path,+ resolve_keyed_transcript_path_in_dir,};pub use reader::{read_transcript, read_transcript_display};pub use thread_lookup::{- find_root_transcript_for_thread, find_root_transcript_for_thread_in_dir,+ find_root_transcript_for_thread,find_root_transcripts_for_thread, read_thread_usage_summary,};pub use types::{- CompactionMarker, DisplayMessage, DisplayRecord, DisplaySessionTranscript, MessageUsage,- SessionTranscript, SubagentArchetypeUsage, ThreadUsageSummary, TranscriptMeta, TurnUsage,- TRANSCRIPT_SCHEMA_VERSION,+ CompactionMarker, DisplayMessage, DisplayRecord, MessageUsage,+ SessionTranscript, TranscriptMeta, TurnUsage,};pub use writer::{append_interrupted_partial, append_transcript_turn, write_transcript};diff --git a/crates/openhuman-core/src/agent/harness/session/turn/core.rs b/crates/openhuman-core/src/agent/harness/session/turn/core.rsindex 34af8fa489..0fb99a5674 100644--- a/crates/openhuman-core/src/agent/harness/session/turn/core.rs+++ b/crates/openhuman-core/src/agent/harness/session/turn/core.rs@@ -5,19 +5,12 @@ use super::{integration_announcement_note, mcp_announcement_note, newly_connected_slugs,skill_announcement_note, skill_retraction_note,};-use crate::agent::experience::{- prepend_experience_block, render_experience_hits, retrieve_across_stores, AgentExperienceStore,- ExperienceQuery,-};use crate::agent::harness;-use crate::agent::harness::definition::TriggerMemoryAgent;-use crate::agent::harness::fork_context::ParentExecutionContext;-use crate::agent::hooks::{self, TurnContext};+use crate::agent::hooks::{self};use crate::agent::messages::{ChatMessage, ConversationMessage};use crate::agent::progress::AgentProgress;use crate::memory::agent::memory_loader::collect_recall_citations;use crate::memory::MemoryCategory;-use crate::util::truncate_with_ellipsis;use anyhow::Result;use std::hash::{Hash, Hasher};diff --git a/crates/openhuman-core/src/agent/harness/session/turn/session_io/transcript_load.rs b/crates/openhuman-core/src/agent/harness/session/turn/session_io/transcript_load.rsindex 4d7a5b2311..d348775e23 100644--- a/crates/openhuman-core/src/agent/harness/session/turn/session_io/transcript_load.rs+++ b/crates/openhuman-core/src/agent/harness/session/turn/session_io/transcript_load.rs@@ -1,7 +1,6 @@//! Loading a prior session transcript for KV-cache resume, and the locator//! that finds it.-use crate::agent::harness::session::transcript;use crate::agent::harness::session::transcript_history::{FileTranscriptLocator, SessionHistoryLocator,};diff --git a/crates/openhuman-core/src/agent/learning/linkedin_enrichment.rs b/crates/openhuman-core/src/agent/learning/linkedin_enrichment.rsindex 5cc78f069e..a0f8b8d5ef 100644--- a/crates/openhuman-core/src/agent/learning/linkedin_enrichment.rs+++ b/crates/openhuman-core/src/agent/learning/linkedin_enrichment.rs@@ -18,7 +18,6 @@ mod profile_markdown;use crate::config::Config;use crate::integrations::build_client;use regex::Regex;-use serde_json::json;use std::sync::LazyLock;pub use gmail_discovery::scrape_linkedin_profile;diff --git a/crates/openhuman-core/src/agent/learning/linkedin_enrichment/profile_markdown.rs b/crates/openhuman-core/src/agent/learning/linkedin_enrichment/profile_markdown.rsindex d660bd5b4c..14da89a9a5 100644--- a/crates/openhuman-core/src/agent/learning/linkedin_enrichment/profile_markdown.rs+++ b/crates/openhuman-core/src/agent/learning/linkedin_enrichment/profile_markdown.rs@@ -3,7 +3,6 @@use crate::config::Config;-use super::LINKEDIN_SCRAPER_ACTOR;// ── PROFILE.md generation ────────────────────────────────────────────diff --git a/crates/openhuman-core/src/agent/learning/schemas.rs b/crates/openhuman-core/src/agent/learning/schemas.rsindex 9959cb3552..e242680e55 100644--- a/crates/openhuman-core/src/agent/learning/schemas.rs+++ b/crates/openhuman-core/src/agent/learning/schemas.rs@@ -4,7 +4,7 @@ mod cache_helpers;mod facet_handlers;mod profile_handlers;-use crate::core::all::{ControllerFuture, RegisteredController};+use crate::core::all::RegisteredController;use crate::core::{ControllerSchema, FieldSchema, TypeSchema};use cache_helpers::{facet_to_json, forget_facet_log, full_key, get_cache};diff --git a/crates/openhuman-core/src/agent/learning/schemas/profile_handlers.rs b/crates/openhuman-core/src/agent/learning/schemas/profile_handlers.rsindex 5ed167c4eb..0da5f434b1 100644--- a/crates/openhuman-core/src/agent/learning/schemas/profile_handlers.rs+++ b/crates/openhuman-core/src/agent/learning/schemas/profile_handlers.rs@@ -7,7 +7,6 @@ use crate::config::rpc as config_rpc;use crate::core::all::ControllerFuture;use crate::rpc::RpcOutcome;-use super::get_cache;pub(super) fn handle_linkedin_enrichment(params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents.rsindex 88ce2c7e9a..fafc512ef6 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents.rs@@ -64,18 +64,18 @@ mod tests;#[cfg(test)]pub(crate) use cancel::prune;pub(crate) use cancel::{- cancel_all, cancel_by_session, cancel_by_session_in_workspace, cancel_by_task,- cancel_for_thread, CancelledSubagent,+ cancel_all, cancel_by_session_in_workspace, cancel_by_task,+ cancel_for_thread,};pub(crate) use registry::{register, status_channel, SubagentResumeRef, SubagentStatus};pub(crate) use resolve::{- resume_ref_for_task, resume_ref_for_task_in_workspace, task_id_for_session,+ resume_ref_for_task_in_workspace,task_id_for_session_in_workspace,};-pub(crate) use roster::{active_subagents_context_block, snapshot_for_parent, SubagentSnapshot};+pub(crate) use roster::active_subagents_context_block;pub use steering::{steer, SteerError};-pub(crate) use steering::{steer_control, steer_directive, SteerDirectiveError, SteeringDirective};+pub(crate) use steering::steer_control;pub(crate) use task_ledger::{reconcile_orphaned_tasks_on_boot, task_record_for_task_in_workspace};#[cfg(test)]-pub(crate) use task_ledger::{record_spawned, task_records};-pub(crate) use wait::{wait, wait_in_workspace, WaitError, WaitOutcome};+pub(crate) use task_ledger::task_records;+pub(crate) use wait::{wait_in_workspace, WaitError, WaitOutcome};diff --git a/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph.rs b/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph.rsindex 4802a5c864..22f057f019 100644--- a/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph.rs+++ b/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph.rs@@ -36,13 +36,5 @@ mod workers;pub(crate) use collect::{format_spawn_parallel_success, SpawnParallelGraphOutcome};pub(crate) use graph::spawn_parallel_graph_topology;-pub(crate) use request::{ParallelAgentTask, SpawnParallelTaskValidationError};-pub(crate) use run::{- run_spawn_parallel_graph, run_spawn_parallel_graph_with_cancellation,- run_spawn_parallel_graph_with_cancellation_and_workspace,-};-pub(crate) use staging::{- prepare_spawn_parallel_tasks_from_defs, with_ownership_boundary, ParallelTaskRejectionKind,- SpawnParallelTaskPreflight, WorkerDispatchMode,-};-pub(crate) use types::{ParallelAgentLineage, ParallelAgentResult};+pub(crate) use request::SpawnParallelTaskValidationError;+pub(crate) use run::run_spawn_parallel_graph_with_cancellation_and_workspace;diff --git a/crates/openhuman-core/src/agent/progress_tracing.rs b/crates/openhuman-core/src/agent/progress_tracing.rsindex f917b8b926..a5f29452c0 100644--- a/crates/openhuman-core/src/agent/progress_tracing.rs+++ b/crates/openhuman-core/src/agent/progress_tracing.rs@@ -68,10 +68,9 @@ mod serialize;mod export;pub use collector::SpanCollector;-pub use types::{trace_session_id, RunType, SpanKind, SpanStatus, TraceContext, TraceSpan};+pub use types::{trace_session_id, RunType, SpanStatus, TraceContext, TraceSpan};-pub(crate) use export::{export_run_trace, export_run_trace_from_journal, export_spans};-pub(crate) use serialize::spans_to_ndjson;+pub(crate) use export::{export_run_trace, export_run_trace_from_journal};#[cfg(test)]mod journal_projection_tests;diff --git a/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs b/crates/openhuman-core/src/agent/progress_tracing/langfuse.rsindex 0ec0f33e17..a5dbc06ff1 100644--- a/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs@@ -26,7 +26,7 @@ mod span_export;pub(crate) use environment::{environment_for_base, ingestion_url};pub(crate) use journal_export::push_observations;-pub(crate) use span_export::{push_spans, spans_to_langfuse_batch};+pub(crate) use span_export::push_spans;use super::{SpanStatus, TraceContext, TraceSpan};use environment::skip_push;@@ -34,9 +34,7 @@ use environment::skip_push;#[cfg(test)]use crate::config::Config;#[cfg(test)]-use crate::security::credentials::session_support::require_live_session_token;-#[cfg(test)]-use environment::{push_allowed, LANGFUSE_PUSH_ENVIRONMENTS};+use environment::push_allowed;#[cfg(test)]use ingestion_batch::{iso_millis, split_ingestion_batch};#[cfg(test)]diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware.rs b/crates/openhuman-core/src/agent/tinyagents/middleware.rsindex 08c2136f80..66b2dab5f4 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware.rs@@ -52,9 +52,6 @@ pub(crate) use cost_budget::CostBudgetMiddleware;pub(crate) use credential_scrub::CredentialScrubMiddleware;pub(crate) use embedder_hooks::EmbedderToolHooksMiddleware;pub(crate) use final_call_wrap_up::FinalCallWrapUpMiddleware;-pub(crate) use loop_guards::{- is_repeat_call_exempt, terminal_inference_failure_kind, TerminalInferenceFailure,-};pub use memory_protocol::MemoryProtocolMiddleware;pub(crate) use message_trim::{legacy_max_input_tokens, ImageAwareMessageTrimMiddleware};pub(crate) use prompt_cache::PromptCacheSegmentMiddleware;@@ -62,10 +59,9 @@ pub(crate) use repeat_progress::RepeatProgressMiddleware;pub(crate) use repeated_failure::RepeatedToolFailureMiddleware;pub(crate) use tool_exposure::OpenHumanToolExposureShadowMiddleware;pub(crate) use tool_outcome_capture::ToolOutcomeCaptureMiddleware;-pub(crate) use tool_output::ToolOutputMiddleware;pub(crate) use tool_policy::ToolPolicyMiddleware;pub(crate) use turn_context::{- HandoffConfig, HandoffMiddleware, TranscriptSnapshotMiddleware, TranscriptSnapshotSink,+ HandoffConfig, TranscriptSnapshotSink,TurnContextMiddleware,};diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rsindex ee2caf3ef9..4c91eab85f 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs@@ -1,5 +1,5 @@use super::approval::approval_tool_name;-use super::artifact_index_toc::{FOOTER_ALLOWANCE, NO_WINDOW_ALLOWANCE};+use super::artifact_index_toc::NO_WINDOW_ALLOWANCE;use super::message_trim::{estimate_message_tokens, estimate_text_tokens, IMAGE_MARKER_TOKEN_COST};use super::repeated_failure::{is_body_level_failure, user_actionable_escalation};use super::tool_output::{@@ -14,7 +14,7 @@ use std::sync::Arc;use async_trait::async_trait;use tinyagents_harness::middleware::{- AgentRun, BudgetTracker, Middleware, MiddlewareToolOutcome, ToolHandler, ToolMiddleware,+ AgentRun, BudgetTracker, Middleware, ToolMiddleware,};use tinyagents_harness::steering::{SteeringCommand, SteeringHandle};use tinyagents_harness::tool::{ToolPolicy as TaToolPolicy, ToolResult as TaToolResult};@@ -23,7 +23,6 @@ use tinyinference::model::{ModelResponse, SegmentRole};use tinyinference::tool::{ToolCall as TaToolCall, ToolSchema};use crate::agent::context::CLEARED_PLACEHOLDER;-use crate::agent::harness::tool_result_artifacts::TINYAGENTS_TOOL_RESULT_ARTIFACT_STORE;use crate::agent::tinyagents::payload_summarizer::{PayloadSummarizer, SummarizeOutcome, UnavailableReason,};diff --git a/crates/openhuman-core/src/agent/tinyagents/mod.rs b/crates/openhuman-core/src/agent/tinyagents/mod.rsindex f384af9128..b904e03bde 100644--- a/crates/openhuman-core/src/agent/tinyagents/mod.rs+++ b/crates/openhuman-core/src/agent/tinyagents/mod.rs@@ -77,14 +77,12 @@ pub use resolved_route::{current_resolved_provider_route, current_route_slot, record_resolved_provider_route,with_resolved_provider_route_scope, with_route_slot, ResolvedProviderRoute, RouteSlot,};-pub(crate) use run_cancellation_context::{current_run_cancellation, with_run_cancellation};+pub(crate) use run_cancellation_context::current_run_cancellation;pub(crate) use topology::all_graph_topologies;pub use turn_models::TurnModelSource;pub(crate) use turn_models::TurnModels;pub(crate) use turn_outcome::{HaltSummarySlot, TinyagentsTurnOutcome, ToolCallOutcome, ToolOutcomeSink};pub(crate) use turn_policy::{agent_turn_wall_clock_ms, ToolPolicyEnforcement};-#[cfg(test)]-pub(crate) use turn_runner::run_turn_via_tinyagents;pub(crate) use turn_runner::run_turn_via_tinyagents_shared;// Test-only glue so `tinyagents_tests.rs`'s `use super::*;` sees thediff --git a/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rs b/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rsindex c3f94bcaab..a78892766d 100644--- a/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rs+++ b/crates/openhuman-core/src/agent/tinyagents/observability/event_bridge.rs@@ -7,13 +7,10 @@ use std::sync::{Arc, Mutex};use tokio::sync::mpsc::Sender;-use tinyagents_harness::cache::CacheLayoutEvent;-use tinyagents_harness::events::{AgentEvent, EventListener, EventRecord};use tinyinference::usage::Usage;use crate::agent::progress::AgentProgress;use crate::inference::provider::UsageInfo;-use crate::tools::traits::humanize_tool_name;use super::cap_pauser::{IterationCursor, ProviderUsageCarry, SubagentScope, ToolFailureMap, ToolNameMap,diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_runner.rs b/crates/openhuman-core/src/agent/tinyagents/turn_runner.rsindex 4cbbfc342b..7889a9468d 100644--- a/crates/openhuman-core/src/agent/tinyagents/turn_runner.rs+++ b/crates/openhuman-core/src/agent/tinyagents/turn_runner.rs@@ -23,14 +23,13 @@ use crate::agent::messages::ChatMessage;use crate::agent::progress::AgentProgress;use crate::agent::tinyagents::harness_assembly::{assemble_turn_harness, AssembledTurnHarness};use crate::agent::tinyagents::middleware::TurnContextMiddleware;-use crate::agent::tinyagents::model::{ProfileOverrideModel, TurnChatModel};use crate::agent::tinyagents::observability::{CapPauser, OpenhumanEventBridge, SubagentScope};use crate::agent::tinyagents::run_cancellation_context::with_run_cancellation;#[cfg(test)]use crate::agent::tinyagents::tools::ToolAdapter;use crate::agent::tinyagents::turn_models::TurnModels;use crate::agent::tinyagents::turn_outcome::TinyagentsTurnOutcome;-use crate::agent::tinyagents::turn_policy::{effective_max_iterations, run_policy_for};+use crate::agent::tinyagents::turn_policy::effective_max_iterations;use crate::agent::tinyagents::turn_run_error::map_turn_run_error;use crate::agent::tinyagents::turn_run_finalize::finalize_turn_outcome;use crate::agent::tinyagents::{journal, orchestration, routes, steering_forwarder};diff --git a/crates/openhuman-core/src/channels/bus.rs b/crates/openhuman-core/src/channels/bus.rsindex 7e23b79d49..0d174f6998 100644--- a/crates/openhuman-core/src/channels/bus.rs+++ b/crates/openhuman-core/src/channels/bus.rs@@ -19,13 +19,8 @@ pub use subscriber::ChannelInboundSubscriber;// items reached only through their owning submodule) so the `#[path]`// test modules below — which share this module's scope via `super::*` —// can see them exactly as they could when this was one unsplit file.-pub(crate) use thread_id::{derive_inbound_client_id, derive_inbound_thread_id};-use delivery::channel_message_body_with_idempotency;+pub(crate) use thread_id::derive_inbound_thread_id;use draft::extract_message_id;-use progressive_ui::{- channel_edits_unsupported, channel_supports_progressive_ui, classify_edit_failure,- edit_capability_key, mark_channel_edits_unsupported, EditFailure,-};use streaming_state::StreamingState;use thinking::latest_thinking_snippet;diff --git a/crates/openhuman-core/src/channels/controllers/ops/connect.rs b/crates/openhuman-core/src/channels/controllers/ops/connect.rsindex 88ed0f3411..a045fc3535 100644--- a/crates/openhuman-core/src/channels/controllers/ops/connect.rs+++ b/crates/openhuman-core/src/channels/controllers/ops/connect.rs@@ -13,8 +13,6 @@ mod test_channel;pub(crate) use catalog::{describe_channel, list_channels};pub use connect_channel::connect_channel;pub use disconnect::disconnect_channel;-pub(crate) use email::persist_email_config;-pub(crate) use shared::merge_listener_health;pub use status::{channel_status, connected_channel_slugs, get_default_channel, set_default_channel};pub use test_channel::test_channel;diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor.rsindex bd36c90a62..952f3b9334 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs@@ -15,7 +15,6 @@ mod dispatch_loop;mod message;mod turn;-pub(crate) use approval::channel_has_approval_surface;pub(crate) use dispatch_loop::run_message_dispatch_loop;pub(crate) use message::RuntimeChannelMessage;pub(crate) use turn::{process_channel_message, process_channel_runtime_message};diff --git a/crates/openhuman-core/src/channels/runtime/startup.rs b/crates/openhuman-core/src/channels/runtime/startup.rsindex e230a6e40c..5cc31c3e05 100644--- a/crates/openhuman-core/src/channels/runtime/startup.rs+++ b/crates/openhuman-core/src/channels/runtime/startup.rs@@ -15,7 +15,7 @@ pub use start_channels::start_channels;#[cfg(test)]use chat_workload::{resolve_chat_workload, ChatWorkloadResolution};#[cfg(any(test, debug_assertions))]-use credentials::{resolve_email_password, resolve_yuanbao_app_secret};+use credentials::resolve_yuanbao_app_secret;#[cfg(test)]use relay::RelayInboundMessageHandler;#[cfg(test)]diff --git a/crates/openhuman-core/src/config/schema/load/env_overlay/proxy.rs b/crates/openhuman-core/src/config/schema/load/env_overlay/proxy.rsindex 3379093763..c2c6cb0d6e 100644--- a/crates/openhuman-core/src/config/schema/load/env_overlay/proxy.rs+++ b/crates/openhuman-core/src/config/schema/load/env_overlay/proxy.rs@@ -1,6 +1,5 @@//! Env overrides for the outbound proxy configuration.-use crate::config::schema::load::env::parse_env_bool;use crate::config::schema::load::env::EnvLookup;use crate::config::schema::proxy::{normalize_no_proxy_list, normalize_proxy_url_option, normalize_service_list,diff --git a/crates/openhuman-core/src/config/schemas/schema_defs/agent.rs b/crates/openhuman-core/src/config/schemas/schema_defs/agent.rsindex a1e809148e..4f1e677c39 100644--- a/crates/openhuman-core/src/config/schemas/schema_defs/agent.rs+++ b/crates/openhuman-core/src/config/schemas/schema_defs/agent.rs@@ -2,7 +2,7 @@use crate::core::{ControllerSchema, FieldSchema, TypeSchema};-use super::super::helpers::{json_output, optional_bool, optional_json, optional_string};+use super::super::helpers::{json_output, optional_bool, optional_string};pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {match function {diff --git a/crates/openhuman-core/src/config/schemas/schema_defs/integrations.rs b/crates/openhuman-core/src/config/schemas/schema_defs/integrations.rsindex 4191f93058..49ff42f734 100644--- a/crates/openhuman-core/src/config/schemas/schema_defs/integrations.rs+++ b/crates/openhuman-core/src/config/schemas/schema_defs/integrations.rs@@ -2,7 +2,7 @@use crate::core::{ControllerSchema, FieldSchema, TypeSchema};-use super::super::helpers::{json_output, optional_bool, optional_json, optional_string};+use super::super::helpers::{json_output, optional_bool, optional_string};pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {match function {diff --git a/crates/openhuman-core/src/config/schemas/schema_defs/voice.rs b/crates/openhuman-core/src/config/schemas/schema_defs/voice.rsindex 0cf44128df..45bc985f6f 100644--- a/crates/openhuman-core/src/config/schemas/schema_defs/voice.rs+++ b/crates/openhuman-core/src/config/schemas/schema_defs/voice.rs@@ -2,7 +2,7 @@use crate::core::{ControllerSchema, FieldSchema, TypeSchema};-use super::super::helpers::{json_output, optional_bool, optional_json, optional_string};+use super::super::helpers::{json_output, optional_bool, optional_string};pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {match function {diff --git a/crates/openhuman-core/src/config/schemas/schema_defs/workspace.rs b/crates/openhuman-core/src/config/schemas/schema_defs/workspace.rsindex 7a73fbb7b7..69bcfa3dee 100644--- a/crates/openhuman-core/src/config/schemas/schema_defs/workspace.rs+++ b/crates/openhuman-core/src/config/schemas/schema_defs/workspace.rs@@ -2,7 +2,7 @@use crate::core::{ControllerSchema, FieldSchema, TypeSchema};-use super::super::helpers::{json_output, optional_bool, optional_json, optional_string};+use super::super::helpers::{json_output, optional_bool, optional_string};pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {match function {diff --git a/crates/openhuman-core/src/core/subsystem/schemas_tests.rs b/crates/openhuman-core/src/core/subsystem/schemas_tests.rsindex 63de807baa..7a1ce5d7d5 100644--- a/crates/openhuman-core/src/core/subsystem/schemas_tests.rs+++ b/crates/openhuman-core/src/core/subsystem/schemas_tests.rs@@ -1,5 +1,4 @@use super::*;-use super::*;#[test]fn status_schema_shape() {diff --git a/crates/openhuman-core/src/core/subsystems_cli_tests.rs b/crates/openhuman-core/src/core/subsystems_cli_tests.rsindex 4d0eea9df5..2d5c1b1801 100644--- a/crates/openhuman-core/src/core/subsystems_cli_tests.rs+++ b/crates/openhuman-core/src/core/subsystems_cli_tests.rs@@ -1,5 +1,4 @@use super::*;-use super::*;#[test]fn help_flag_short_circuits_without_probing_a_driver() {diff --git a/crates/openhuman-core/src/core/types_tests.rs b/crates/openhuman-core/src/core/types_tests.rsindex 1539270fb3..818fd5202f 100644--- a/crates/openhuman-core/src/core/types_tests.rs+++ b/crates/openhuman-core/src/core/types_tests.rs@@ -1,5 +1,4 @@use super::*;-use super::*;use serde_json::json;#[test]diff --git a/crates/openhuman-core/src/desktop/app_state/ops.rs b/crates/openhuman-core/src/desktop/app_state/ops.rsindex 2132b116e1..db16f49510 100644--- a/crates/openhuman-core/src/desktop/app_state/ops.rs+++ b/crates/openhuman-core/src/desktop/app_state/ops.rs@@ -46,31 +46,14 @@ mod tests;// inside a submodule is private to it and is not picked up by a glob import// of that submodule.#[cfg(test)]-use crate::api::rest::user_id_from_profile_payload;-#[cfg(test)]-use crate::config::rpc as config_rpc;-#[cfg(test)]use crate::config::Config;#[cfg(test)]-use crate::inference::LocalAiStatus;-#[cfg(test)]-use crate::platform::service::{ServiceState, ServiceStatus};-#[cfg(test)]-use crate::rpc::RpcOutcome;-#[cfg(test)]-use crate::security::credentials::session_support::{- is_local_session_token, load_app_session_profile, session_state_from_profile,- session_token_from_profile,-};-#[cfg(test)]use crate::security::credentials::{AuthService, APP_SESSION_PROVIDER, DEFAULT_AUTH_PROFILE_NAME};#[cfg(test)]use serde_json::Value;#[cfg(test)]use std::collections::{BTreeMap, HashMap};#[cfg(test)]-use std::sync::atomic::{AtomicU64, Ordering};-#[cfg(test)]use std::time::{Duration, Instant};#[cfg(test)]@@ -86,13 +69,9 @@ use pending_session::*;#[cfg(test)]use runtime_snapshot::*;#[cfg(test)]-use snapshot::*;-#[cfg(test)]use staleness::*;#[cfg(test)]use state_file::*;-#[cfg(test)]-use types::*;/// Shared log prefix for every `[app_state]`-tagged debug/warn line across/// these submodules.diff --git a/crates/openhuman-core/src/flows/builder_tools.rs b/crates/openhuman-core/src/flows/builder_tools.rsindex 8f5c44d790..98e29edbee 100644--- a/crates/openhuman-core/src/flows/builder_tools.rs+++ b/crates/openhuman-core/src/flows/builder_tools.rs@@ -78,13 +78,12 @@ mod run_control;mod tool_contract;pub use catalog_search::SearchToolCatalogTool;-pub(crate) use catalog_search::{search_catalog, search_live_catalog, CatalogSearchOutcome};+pub(crate) use catalog_search::search_live_catalog;pub use connection_reads::{ListConnectableToolkitsTool, ListFlowConnectionsTool};pub use draft_edit::EditWorkflowTool;pub use draft_revise::ReviseWorkflowTool;pub use draft_validate::ValidateWorkflowTool;pub use dry_run::DryRunWorkflowTool;-pub(crate) use dry_run_diagnostics::CapturingObserver;pub use flow_reads::{GetFlowHistoryTool, GetFlowRunTool, GetFlowTool, ListFlowRunsTool, ListFlowsTool,};diff --git a/crates/openhuman-core/src/flows/builder_tools/draft_revise.rs b/crates/openhuman-core/src/flows/builder_tools/draft_revise.rsindex 7fe575339b..e7df2b7897 100644--- a/crates/openhuman-core/src/flows/builder_tools/draft_revise.rs+++ b/crates/openhuman-core/src/flows/builder_tools/draft_revise.rs@@ -8,7 +8,6 @@ use serde_json::{json, Value};use crate::config::Config;use crate::flows::ops;use crate::flows::ops::validate_and_migrate_graph;-use crate::flows::tools;use crate::tools::traits::{PermissionLevel, Tool, ToolResult};// ─────────────────────────────────────────────────────────────────────────────diff --git a/crates/openhuman-core/src/flows/builder_tools/dry_run_diagnostics.rs b/crates/openhuman-core/src/flows/builder_tools/dry_run_diagnostics.rsindex 3adebe1a53..b0c7884c82 100644--- a/crates/openhuman-core/src/flows/builder_tools/dry_run_diagnostics.rs+++ b/crates/openhuman-core/src/flows/builder_tools/dry_run_diagnostics.rs@@ -4,7 +4,6 @@use serde_json::{json, Value};use tinyflows::model::WorkflowGraph;-use crate::flows::ops;/// Builds one `null_resolutions` diagnostic entry for a `tool_call` node's/// null-resolved `args.*` config expression.diff --git a/crates/openhuman-core/src/flows/bus.rs b/crates/openhuman-core/src/flows/bus.rsindex f24a182db9..d234c02363 100644--- a/crates/openhuman-core/src/flows/bus.rs+++ b/crates/openhuman-core/src/flows/bus.rs@@ -34,7 +34,7 @@ use crate::flows::flow_namespace;#[cfg(test)]use crate::flows::store;#[cfg(test)]-use dedup_commit::{flow_commit_lock, CommitTestHooks, FLOW_COMMIT_LOCKS};+use dedup_commit::{flow_commit_lock, CommitTestHooks};#[cfg(test)]use run_digest::{render_run_digest, truncate_chars, DIGEST_MAX_CHARS};#[cfg(test)]diff --git a/crates/openhuman-core/src/inference/local/ops/agent_chat.rs b/crates/openhuman-core/src/inference/local/ops/agent_chat.rsindex 45f47a3b45..a8bde330da 100644--- a/crates/openhuman-core/src/inference/local/ops/agent_chat.rs+++ b/crates/openhuman-core/src/inference/local/ops/agent_chat.rs@@ -2,7 +2,6 @@use crate::agent::Agent;use crate::config::Config;-use crate::inference::local as local_ai;use crate::inference::provider as providers;use crate::rpc::RpcOutcome;diff --git a/crates/openhuman-core/src/inference/local/ops/runtime_ops.rs b/crates/openhuman-core/src/inference/local/ops/runtime_ops.rsindex 0b0f90149b..c5b04eb896 100644--- a/crates/openhuman-core/src/inference/local/ops/runtime_ops.rs+++ b/crates/openhuman-core/src/inference/local/ops/runtime_ops.rs@@ -5,7 +5,6 @@ use chrono::Utc;use crate::config::Config;use crate::inference::local as local_ai;-use crate::inference::provider as providers;use crate::inference::{LocalAiAssetsStatus, LocalAiDownloadsProgress, LocalAiEmbeddingResult, LocalAiSpeechResult,LocalAiStatus, LocalAiTtsResult,diff --git a/crates/openhuman-core/src/inference/local/ops/turn_guards.rs b/crates/openhuman-core/src/inference/local/ops/turn_guards.rsindex 3755cbfdbb..16ee891c48 100644--- a/crates/openhuman-core/src/inference/local/ops/turn_guards.rs+++ b/crates/openhuman-core/src/inference/local/ops/turn_guards.rs@@ -3,7 +3,6 @@//! the origin label an agent chat runs under.use crate::config::Config;-use crate::inference::local as local_ai;use crate::security::prompt_injection::{enforce_prompt_input, PromptEnforcementAction, PromptEnforcementContext,};diff --git a/crates/openhuman-core/src/inference/provider/factory.rs b/crates/openhuman-core/src/inference/provider/factory.rsindex e6e785942b..3329026f39 100644--- a/crates/openhuman-core/src/inference/provider/factory.rs+++ b/crates/openhuman-core/src/inference/provider/factory.rs@@ -49,9 +49,7 @@ mod subprocess_providers;mod tiers;mod turn_model;-pub(crate) use access_gates::{- current_host_requires_session, verify_backend_session_active, verify_session_active,-};+pub(crate) use access_gates::current_host_requires_session;pub(crate) use chat_model::resolves_to_managed_backend;pub use chat_model::{create_chat_model, create_chat_model_from_string, create_chat_model_from_string_with_model_id,@@ -69,49 +67,39 @@ pub(crate) use tiers::{pub use tiers::{resolve_model_for_hint, role_for_model_tier};pub(crate) use turn_model::{create_turn_chat_model, create_turn_chat_model_from_string,- create_turn_chat_model_from_string_with_native_tools,- create_turn_chat_model_from_string_with_native_tools_and_route,- create_turn_chat_model_with_native_tools, create_turn_chat_model_with_native_tools_and_route,+ create_turn_chat_model_from_string_with_native_tools_and_route, create_turn_chat_model_with_native_tools_and_route,};// Factory-internal helpers shared across the submodules (and their tests)// through `use super::*`.use access_gates::{- emit_inference_egress, enforce_local_only_inference, external_provider_label,- host_requires_session, local_only_violation,+ emit_inference_egress, enforce_local_only_inference,};use chat_model::{- create_chat_model_from_string_with_model_id_inner, create_chat_model_with_model_id_inner,- unresolved_chat_model_error, with_default_temperature, DefaultTemperatureChatModel,+ unresolved_chat_model_error, with_default_temperature,};use cloud_slug::{resolve_cloud_slug, try_create_cloud_slug_chat_model,try_create_cloud_slug_chat_model_from_string,- try_create_cloud_slug_chat_model_from_string_with_native_tools,- try_create_cloud_slug_chat_model_with_native_tools, CloudSlugResolution,+ try_create_cloud_slug_chat_model_with_native_tools,};use local_runtime::{try_create_local_runtime_chat_model, try_create_local_runtime_chat_model_from_string,- OptionalChatModelResult, ResolvedChatModel,+ OptionalChatModelResult,};use managed_backend::{- managed_tier_for_role, resolve_managed_backend, resolve_managed_backend_with_model_override,+ resolve_managed_backend, resolve_managed_backend_with_model_override,};use primary_cloud::{- cloud_entry_provider_string, has_custom_inference_intent, is_openhuman_cloud_entry,- legacy_custom_inference_provider_string, legacy_inference_slug, looks_like_openhuman_backend,- normalize_endpoint_for_compare, redact_inference_url, resolve_primary_cloud_provider_string,-};-use routing::{- configured_route_for_role, route_has_usable_credentials, split_model_and_temperature,+ legacy_inference_slug, resolve_primary_cloud_provider_string,};+use routing::split_model_and_temperature;use subprocess_providers::{- claude_agent_sdk_model_from_string, prepare_claude_agent_sdk_chat_model,+ prepare_claude_agent_sdk_chat_model,try_create_claude_agent_sdk_chat_model, try_create_claude_agent_sdk_chat_model_from_string,try_create_claude_code_chat_model, try_create_claude_code_chat_model_from_string,};use tiers::is_abstract_tier_model;-use turn_model::create_turn_chat_model_with_native_tools_and_route_inner;/// Test-only seam: inject a mock [`ChatModel`] so e2e tests can drive the/// autonomous run paths (`spawn_workflow_run_background`, the task dispatcher)diff --git a/crates/openhuman-core/src/inference/provider/ops/http_error/context_window.rs b/crates/openhuman-core/src/inference/provider/ops/http_error/context_window.rsindex 4a371c555f..97e7b8af24 100644--- a/crates/openhuman-core/src/inference/provider/ops/http_error/context_window.rs+++ b/crates/openhuman-core/src/inference/provider/ops/http_error/context_window.rs@@ -1,7 +1,6 @@//! Context-window overflow classification: the request exceeded the//! configured model's context length.-use super::*;/// Whether a provider error body indicates the request exceeded the model's/// context window (the conversation/prompt is too long for the configureddiff --git a/crates/openhuman-core/src/inference/provider/ops/http_error/local_provider.rs b/crates/openhuman-core/src/inference/provider/ops/http_error/local_provider.rsindex ddadb756fc..be404978ec 100644--- a/crates/openhuman-core/src/inference/provider/ops/http_error/local_provider.rs+++ b/crates/openhuman-core/src/inference/provider/ops/http_error/local_provider.rs@@ -1,7 +1,6 @@//! Local inference server (LM Studio / Ollama) user-state classification://! no model loaded, and Ollama Cloud's opaque hosted-inference 500.-use super::*;/// Whether a provider non-2xx response is a local inference server that is/// running but has **no model loaded** (e.g. LM Studio idle): a 400 carryingdiff --git a/crates/openhuman-core/src/inference/provider/ops/http_error/quota_and_credits.rs b/crates/openhuman-core/src/inference/provider/ops/http_error/quota_and_credits.rsindex b60132c82e..3ca95809fa 100644--- a/crates/openhuman-core/src/inference/provider/ops/http_error/quota_and_credits.rs+++ b/crates/openhuman-core/src/inference/provider/ops/http_error/quota_and_credits.rs@@ -1,7 +1,6 @@//! Budget, quota, and per-request rate-cap classification — the deterministic//! "third-party account/plan is out of runway" family of provider errors.-use super::*;/// Whether a provider non-2xx response is a deterministic budget-exhausted/// user-state error that should be demoted from Sentry to an info log.diff --git a/crates/openhuman-core/src/inference/provider/ops/models.rs b/crates/openhuman-core/src/inference/provider/ops/models.rsindex 5b5b06cfbc..399e4fe492 100644--- a/crates/openhuman-core/src/inference/provider/ops/models.rs+++ b/crates/openhuman-core/src/inference/provider/ops/models.rs@@ -38,7 +38,6 @@ pub use parsing::{merge_openai_codex_model_hints, model_items_from_body, parse_m// Cross-submodule wiring: each submodule reaches these through `use super::*;`// (mirrors the pre-split `include!`-shared scope).-use catalog_listing::resolve_local_runtime_key;use managed_provider::{managed_401_means_signed_out, managed_session_attaches, synthesize_managed_entry,url_is_credential_safe,diff --git a/crates/openhuman-core/src/inference/provider/ops/models/local_runtime.rs b/crates/openhuman-core/src/inference/provider/ops/models/local_runtime.rsindex 5bc1c97117..7f14c5982c 100644--- a/crates/openhuman-core/src/inference/provider/ops/models/local_runtime.rs+++ b/crates/openhuman-core/src/inference/provider/ops/models/local_runtime.rs@@ -1,6 +1,5 @@//! Synthesized `cloud_providers` entries for well-known local-runtime slugs.-use super::*;/// Synthesize a transient [`CloudProviderCreds`] entry for the well-known/// local-runtime slugs (`ollama`, `lmstudio`) so [`super::list_configured_models`]diff --git a/crates/openhuman-core/src/inference/provider/ops/models/managed_provider.rs b/crates/openhuman-core/src/inference/provider/ops/models/managed_provider.rsindex 2a306ed7fa..c795354d38 100644--- a/crates/openhuman-core/src/inference/provider/ops/models/managed_provider.rs+++ b/crates/openhuman-core/src/inference/provider/ops/models/managed_provider.rs@@ -5,7 +5,6 @@//! `cloud_providers`: it has its own URL, its own credential, and its own//! meaning for a 401.-use super::*;/// Synthesize the managed (`openhuman`) provider entry when `cloud_providers`/// has no row for it.diff --git a/crates/openhuman-core/src/integrations/composio/catalog.rs b/crates/openhuman-core/src/integrations/composio/catalog.rsindex 93ab79b65c..e31a3687fb 100644--- a/crates/openhuman-core/src/integrations/composio/catalog.rs+++ b/crates/openhuman-core/src/integrations/composio/catalog.rs@@ -43,10 +43,10 @@ pub use contract::{fetch_live_toolkit_catalog, seed_live_catalog_cache, seed_live_catalog_cache_expired,ToolContract,};-pub use lookups::{composio_required_args, composio_response_fields};+pub use lookups::composio_required_args;pub use probe::{- apply_probe_override, probe_tool_output_sample, probed_output_sample, seed_probe_cache,- seed_probe_cache_expired, ProbedOutputSample, COMPOSIO_ENVELOPE_META_KEYS_AT_ROOT,+ apply_probe_override, probe_tool_output_sample, seed_probe_cache,+ seed_probe_cache_expired,};// Brought into this module's own namespace (private `use`, not `pub use`) so@@ -55,8 +55,6 @@ pub use probe::{// implementation details they exercise via a plain `use super::*;`, exactly// as when this was one un-split file. See each item's `pub(super)` in its// owning submodule.-use contract::{compute_composio_array_path, live_catalog_fetch_lock};-use probe::{cache_probe_result, resolve_composio_action_scope};#[cfg(test)]use crate::config::Config;#[cfg(test)]diff --git a/crates/openhuman-core/src/integrations/composio/catalog/probe.rs b/crates/openhuman-core/src/integrations/composio/catalog/probe.rsindex 9e9f72086d..25ea818f21 100644--- a/crates/openhuman-core/src/integrations/composio/catalog/probe.rs+++ b/crates/openhuman-core/src/integrations/composio/catalog/probe.rs@@ -6,7 +6,7 @@use serde_json::Value;-use super::contract::{CacheEntry, ToolContract, COMPOSIO_CATALOG_CACHE_TTL};+use super::contract::{CacheEntry, ToolContract};use crate::config::Config;use crate::integrations::composio::client::{create_composio_client, direct_execute, ComposioClientKind,diff --git a/crates/openhuman-core/src/integrations/composio/catalog_in_flight_tests_tests.rs b/crates/openhuman-core/src/integrations/composio/catalog_in_flight_tests_tests.rsindex 1b8584ae6a..624eca0dae 100644--- a/crates/openhuman-core/src/integrations/composio/catalog_in_flight_tests_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/catalog_in_flight_tests_tests.rs@@ -1,4 +1,3 @@-use super::*;#[test]fn catalog_miss_locks_are_shared_per_toolkit_only() {diff --git a/crates/openhuman-core/src/integrations/composio/client.rs b/crates/openhuman-core/src/integrations/composio/client.rsindex 7d0c833499..89197383e2 100644--- a/crates/openhuman-core/src/integrations/composio/client.rs+++ b/crates/openhuman-core/src/integrations/composio/client.rs@@ -31,7 +31,6 @@ pub use factory::{// above — can still reach these via a plain `use super::*;`, exactly as// when this was one un-split file. See each item's `pub(super)` in its// owning submodule.-use execute::is_post_oauth_auth_readiness_error;#[cfg(test)]use std::sync::Arc;#[cfg(test)]diff --git a/crates/openhuman-core/src/integrations/composio/client/execute.rs b/crates/openhuman-core/src/integrations/composio/client/execute.rsindex 5f693408a3..644df5ec2b 100644--- a/crates/openhuman-core/src/integrations/composio/client/execute.rs+++ b/crates/openhuman-core/src/integrations/composio/client/execute.rs@@ -5,7 +5,7 @@use std::time::Duration;use anyhow::Result;-use serde_json::{json, Value};+use serde_json::json;use super::super::types::{ComposioExecuteResponse, ComposioToolsResponse};use super::connections::ComposioClient;diff --git a/crates/openhuman-core/src/integrations/composio/connected_integrations.rs b/crates/openhuman-core/src/integrations/composio/connected_integrations.rsindex 018825f47e..6c1350d039 100644--- a/crates/openhuman-core/src/integrations/composio/connected_integrations.rs+++ b/crates/openhuman-core/src/integrations/composio/connected_integrations.rs@@ -17,9 +17,8 @@ mod catalog_description_tests;#[cfg(test)]pub(crate) use cache::composio_cache_test_lock;pub(crate) use cache::{- cache_key, cached_active_integrations, cached_active_integrations_including_expired,+ cached_active_integrations, cached_active_integrations_including_expired,connected_set_hash, invalidate_connected_integrations_cache, sync_cache_with_connections,- CachedIntegrations, CACHE_TTL, INTEGRATIONS_CACHE,};pub(crate) use fetch::{fetch_connected_integrations, fetch_connected_integrations_status, fetch_toolkit_actions,@@ -32,4 +31,3 @@ pub(crate) use fetch::{// direct child modules of `connected_integrations` above — can still reach// these via a plain `use super::<name>;`, exactly as when this was one// un-split file. See each item's `pub(super)` in its owning submodule.-use fetch::{connectable_toolkit_slugs, resolve_toolkit_description};diff --git a/crates/openhuman-core/src/integrations/composio/mod.rs b/crates/openhuman-core/src/integrations/composio/mod.rsindex 50bbe4992f..64ded9bacc 100644--- a/crates/openhuman-core/src/integrations/composio/mod.rs+++ b/crates/openhuman-core/src/integrations/composio/mod.rs@@ -72,8 +72,7 @@ pub use client::ComposioClient;pub use identity::connection_identity;pub use ops::{cached_active_integrations, cached_active_integrations_including_expired, connected_set_hash,- fetch_connected_integrations, fetch_connected_integrations_status, fetch_toolkit_actions,- invalidate_connected_integrations_cache, FetchConnectedIntegrationsStatus,+ fetch_connected_integrations, fetch_connected_integrations_status, fetch_toolkit_actions, FetchConnectedIntegrationsStatus,};pub use periodic::{record_sync_success, start_periodic_sync};pub use schemas::{diff --git a/crates/openhuman-core/src/integrations/composio/schemas.rs b/crates/openhuman-core/src/integrations/composio/schemas.rsindex 91105d81d1..e6bca3d3bd 100644--- a/crates/openhuman-core/src/integrations/composio/schemas.rs+++ b/crates/openhuman-core/src/integrations/composio/schemas.rs@@ -36,8 +36,6 @@ pub use registry::{all_controller_schemas, all_registered_controllers};// above — can still reach these via a plain `use super::*;`, exactly as// when this was one un-split file. See each item's `pub(super)` in its// owning submodule.-use definitions::schemas;-use util::{read_optional, read_required, read_required_non_empty, to_json};#[cfg(test)]use crate::rpc::RpcOutcome;#[cfg(test)]diff --git a/crates/openhuman-core/src/integrations/composio/tools.rs b/crates/openhuman-core/src/integrations/composio/tools.rsindex 5b2f2f22fb..aea79f876d 100644--- a/crates/openhuman-core/src/integrations/composio/tools.rs+++ b/crates/openhuman-core/src/integrations/composio/tools.rs@@ -49,20 +49,6 @@ pub use registry::all_composio_agent_tools;// — can still reach these via a plain `use super::*;`, exactly as when// this was one un-split file. See each item's `pub(super)` in its owning// submodule.-use crate::tools::traits::{PermissionLevel, Tool, ToolCategory, ToolResult};+use crate::tools::traits::Tool;-use authorize::ComposioAuthorizeTool;-use connect::{- canonicalize_toolkit_slug, composio_connect_timeout, connection_is_active,- parse_composio_connect_timeout, ComposioConnectTool, DEFAULT_COMPOSIO_CONNECT_TIMEOUT_SECS,-};-use execute::ComposioExecuteTool;-use list_connections::ComposioListConnectionsTool;-use list_toolkits::ComposioListToolkitsTool;-use list_tools::ComposioListToolsTool;pub(super) use visibility::{action_mutates_external_state, resolve_action_scope};-use visibility::{- empty_uncurated_toolkits_message, evaluate_tool_visibility, normalized_scope_toolkits,- render_tools_markdown, retain_connected_tools, scope_error_message, uncatalogued_toolkits,- ToolDecision,-};diff --git a/crates/openhuman-core/src/integrations/composio/tools/direct.rs b/crates/openhuman-core/src/integrations/composio/tools/direct.rsindex 19fcaba68f..0d1366ccf5 100644--- a/crates/openhuman-core/src/integrations/composio/tools/direct.rs+++ b/crates/openhuman-core/src/integrations/composio/tools/direct.rs@@ -19,7 +19,7 @@ mod tool_impl;mod types;pub use connections::ComposioConnectedAccount;-pub use discovery::{ComposioAction, ComposioToolSchemaV3};+pub use discovery::ComposioAction;pub use types::ComposioTool;// Test-only bridges: the flat `direct_tests.rs` module (kept as a rename-onlydiff --git a/crates/openhuman-core/src/mcp/registry/schemas/registry.rs b/crates/openhuman-core/src/mcp/registry/schemas/registry.rsindex 116091e5ea..69bfb69a42 100644--- a/crates/openhuman-core/src/mcp/registry/schemas/registry.rs+++ b/crates/openhuman-core/src/mcp/registry/schemas/registry.rs@@ -2,7 +2,7 @@//! ([`schemas`]) and the two entry points that assemble the controller//! list ([`all_controller_schemas`], [`all_registered_controllers`]).-use crate::core::all::{ControllerFuture, RegisteredController};+use crate::core::all::RegisteredController;use crate::core::{ControllerSchema, FieldSchema, TypeSchema};use super::handlers::{diff --git a/crates/openhuman-core/src/memory/guard/families/ingest_and_tree.rs b/crates/openhuman-core/src/memory/guard/families/ingest_and_tree.rsindex 3cd359e4c5..622e7b08f4 100644--- a/crates/openhuman-core/src/memory/guard/families/ingest_and_tree.rs+++ b/crates/openhuman-core/src/memory/guard/families/ingest_and_tree.rs@@ -206,7 +206,7 @@ impl MemoryDocuments for GuardedDocuments {// ── Tree ─────────────────────────────────────────────────────────────────────-#[async_trait]+Pin<Box<(dyn futures::Future<Output = std::result::Result<Vec<tinymemory_api::chunks::Chunk>, tinymemory_api::error::MemoryError>> + std::marker::Send + 'async_trait)>>impl MemoryTree for GuardedTree {async fn append(&self, mut request: IngestRequest) -> Result<(), MemoryError> {self.policy@@ -246,7 +246,7 @@ impl MemoryTree for GuardedTree {source_id: &str,limit: usize,scope: Option<&SourceScope>,- ) -> Result<Vec<Chunk>, MemoryError> {+ ) -> Result<Vec<crate::memory::ExtractionMode>, MemoryError> {self.policy.admit_read(Capability::Tree, "tree.query_source", namespace, false)?;let ambient = self.policy.ambient_scope();diff --git a/crates/openhuman-core/src/memory/guard/families/retrieval_and_profile.rs b/crates/openhuman-core/src/memory/guard/families/retrieval_and_profile.rsindex e9830536d1..82ef271aef 100644--- a/crates/openhuman-core/src/memory/guard/families/retrieval_and_profile.rs+++ b/crates/openhuman-core/src/memory/guard/families/retrieval_and_profile.rs@@ -26,7 +26,7 @@ use crate::memory::api::provider::{use crate::memory::api::types::NamespaceMemoryHit;use async_trait::async_trait;-use super::super::audit::{trace_allowed, NO_NAMESPACE};+use super::super::audit::NO_NAMESPACE;use super::types::{GuardedCodingSessions, GuardedEpisodic, GuardedProfile, GuardedRetrieval, GuardedScoring,GuardedSourceSync,diff --git a/crates/openhuman-core/src/memory/guard/test_support.rs b/crates/openhuman-core/src/memory/guard/test_support.rsindex 715cb75900..0c993f2ae3 100644--- a/crates/openhuman-core/src/memory/guard/test_support.rs+++ b/crates/openhuman-core/src/memory/guard/test_support.rs@@ -17,5 +17,5 @@ mod retrieval_and_ingest_impls;pub use fixtures::{document, embedded_policy, entry, export_record, external_policy, guarded, guarded_with,- namespace_hit, namespace_summary, Call, RecordingProvider,+ namespace_hit, namespace_summary, RecordingProvider,};diff --git a/crates/openhuman-core/src/memory/guard/test_support/core_and_docs_impls.rs b/crates/openhuman-core/src/memory/guard/test_support/core_and_docs_impls.rsindex e1605c6866..c222d1bbec 100644--- a/crates/openhuman-core/src/memory/guard/test_support/core_and_docs_impls.rs+++ b/crates/openhuman-core/src/memory/guard/test_support/core_and_docs_impls.rs@@ -14,7 +14,7 @@ use crate::memory::api::provider::types::{};use crate::memory::api::provider::{MemoryCore, MemoryDiff, MemoryDocuments, MemoryEntities, MemoryGoals, MemoryGraph,- MemoryIngest, MemoryPortability, MemoryProvider, MemoryRecall, MemoryToolMemory, MemoryTree,+ MemoryIngest, MemoryPortability, MemoryRecall, MemoryToolMemory, MemoryTree,};use crate::memory::api::recall::OwnedRecallOpts;use crate::memory::api::tool_memory::ToolMemoryRule;diff --git a/crates/openhuman-core/src/memory/guard/test_support/retrieval_and_ingest_impls.rs b/crates/openhuman-core/src/memory/guard/test_support/retrieval_and_ingest_impls.rsindex e66102c55d..1591b95e81 100644--- a/crates/openhuman-core/src/memory/guard/test_support/retrieval_and_ingest_impls.rs+++ b/crates/openhuman-core/src/memory/guard/test_support/retrieval_and_ingest_impls.rs@@ -11,12 +11,11 @@use crate::memory::api::chunks::Chunk;use crate::memory::api::error::MemoryError;use crate::memory::api::provider::chunks::{- ChunkDetail, ChunkEmbedding, ChunkQuery, ChunkScore, SourceIngestQuery, SourceIngestStatus,+ ChunkDetail, ChunkEmbedding, ChunkQuery,};-use crate::memory::api::provider::episodic::{ConversationSegment, EpisodicTurn};use crate::memory::api::provider::operations::{- AnswerRequest, AnswerResponse, MemoryAnswer, MemoryConversationIngest, MemoryDocumentIngest,- MemoryEventIngest, MemoryLearningIngest, RawMemoryEvent,+ MemoryAnswer, MemoryConversationIngest, MemoryDocumentIngest,+ MemoryEventIngest, MemoryLearningIngest,};use crate::memory::api::provider::people::{AddressBookSeedOutcome, PersonHandle, PersonInteraction, PersonRecord, PersonScore,@@ -33,7 +32,6 @@ use crate::memory::api::provider::{MemoryScoring,};use async_trait::async_trait;-use tinymemory_api::learning::LearningCandidate;use super::fixtures::{rendered_scope, Call, RecordingProvider};diff --git a/crates/openhuman-core/src/memory/safety.rs b/crates/openhuman-core/src/memory/safety.rsindex 3d92fd36dc..43960ca7b1 100644--- a/crates/openhuman-core/src/memory/safety.rs+++ b/crates/openhuman-core/src/memory/safety.rs@@ -47,7 +47,7 @@ mod tests;mod pii;mod secrets;-pub use pii::{has_likely_email, has_likely_pii, redact_pii};+pub use pii::{has_likely_email, has_likely_pii};pub use secrets::{has_likely_secret, sanitize_json, sanitize_text, SanitizationReport, Sanitized,};diff --git a/crates/openhuman-core/src/memory/sources/rpc.rs b/crates/openhuman-core/src/memory/sources/rpc.rsindex 9c681a9822..d68c71a7d6 100644--- a/crates/openhuman-core/src/memory/sources/rpc.rs+++ b/crates/openhuman-core/src/memory/sources/rpc.rs@@ -85,7 +85,6 @@ pub use source_sync::{reconcile_rpc, sync_rpc, ReconcileRequest, ReconcileResponse, ReconcileScopeReport,SyncRequest, SyncResponse,};-pub(crate) use source_sync::{sync_dispatch, SyncDispatch};pub use status_toolkits::{status_list_rpc, supported_toolkits_rpc, StatusListResponse, SupportedToolkitsResponse,};@@ -94,11 +93,6 @@ pub use status_toolkits::{// under `rpc` (not under the submodule that owns each helper) and reach these// through `use super::*;`. Private `use` is enough — a descendant module can// see everything visible in its ancestors, `unserved` and friends included.-use coding_sessions::unserved;-use cost_reporting::summarise_month;-use registry_crud::filter_to_active_composio_sources;-use source_sync::describe_source_sync_failure;-use apply_all::trigger_enabled_syncs;#[cfg(test)]#[path = "rpc_filter_tests_tests.rs"]diff --git a/crates/openhuman-core/src/memory/sources/rpc_filter_tests_tests.rs b/crates/openhuman-core/src/memory/sources/rpc_filter_tests_tests.rsindex a65be27016..d6d14b7090 100644--- a/crates/openhuman-core/src/memory/sources/rpc_filter_tests_tests.rs+++ b/crates/openhuman-core/src/memory/sources/rpc_filter_tests_tests.rs@@ -1,4 +1,3 @@-use super::*;use std::collections::HashSet;fn composio_entry(id: &str, connection_id: &str) -> MemorySourceEntry {diff --git a/crates/openhuman-core/src/memory/sources/rpc_monthly_summary_tests_tests.rs b/crates/openhuman-core/src/memory/sources/rpc_monthly_summary_tests_tests.rsindex eb4ed92ad4..df24ceb537 100644--- a/crates/openhuman-core/src/memory/sources/rpc_monthly_summary_tests_tests.rs+++ b/crates/openhuman-core/src/memory/sources/rpc_monthly_summary_tests_tests.rs@@ -1,4 +1,3 @@-use super::*;use chrono::{DateTime, Utc};/// One audit row, dated `stamp`, costing `estimated` with no real charge.diff --git a/crates/openhuman-core/src/memory/sources/schemas.rs b/crates/openhuman-core/src/memory/sources/schemas.rsindex b08d11f529..7ddc0973d9 100644--- a/crates/openhuman-core/src/memory/sources/schemas.rs+++ b/crates/openhuman-core/src/memory/sources/schemas.rs@@ -13,7 +13,7 @@use serde::de::DeserializeOwned;use serde_json::Value;-use crate::core::all::{ControllerFuture, RegisteredController};+use crate::core::all::RegisteredController;use crate::core::ControllerSchema;use crate::rpc::RpcOutcome;diff --git a/crates/openhuman-core/src/memory/sync/composio/bus.rs b/crates/openhuman-core/src/memory/sync/composio/bus.rsindex 08425df294..f84e8d825f 100644--- a/crates/openhuman-core/src/memory/sync/composio/bus.rs+++ b/crates/openhuman-core/src/memory/sync/composio/bus.rs@@ -69,8 +69,6 @@ pub use trigger_subscriber::ComposioTriggerSubscriber;// under the submodule that owns each helper) and reaches these through// `use super::*;`. Private `use` is enough — a descendant module can see// everything visible in its ancestors.-use connection_created_subscriber::{toolkit_is_memory_source_registrable, WaitError};-use trigger_subscriber::{triage_disabled, TRIAGE_DISABLED_ENV};#[cfg(test)]#[path = "bus_tests.rs"]diff --git a/crates/openhuman-core/src/memory/tree/tree/rpc.rs b/crates/openhuman-core/src/memory/tree/tree/rpc.rsindex 3b6f984187..6ab3635138 100644--- a/crates/openhuman-core/src/memory/tree/tree/rpc.rs+++ b/crates/openhuman-core/src/memory/tree/tree/rpc.rs@@ -20,7 +20,6 @@//! [`set_enabled`] (the scheduler-gate toggle). Every handler keeps its//! original `rpc::<name>` path through the re-exports below.-use crate::config::Config;mod backfill;mod chunks;@@ -44,17 +43,11 @@ pub use pipeline_status::{};pub use retry_failed::{retry_failed_rpc, RetryFailedResponse};pub use set_enabled::{set_enabled_rpc, SetEnabledRequest, SetEnabledResponse};-pub(crate) use stall::{queue_is_stalled, QUEUE_STALL_THRESHOLD_MS};// Test-only visibility: `tests` below is declared directly under `rpc` (not// under the submodule that owns each helper) and reaches these through// `use super::*;`. Private `use` is enough — a descendant module can see// everything visible in its ancestors.-use backfill::backfill_in_progress;-use ingest::document_item;-use pipeline_status::{gate_pause_state, latest_quarantine};-use retry_failed::{blocking_cause, latest_failed_job_failure};-use stall::{derive_pipeline_status, queue_idle_ms};#[cfg(test)]#[path = "rpc_tests.rs"]diff --git a/crates/openhuman-core/src/modules/memory.rs b/crates/openhuman-core/src/modules/memory.rsindex 6c90970302..babf2ded24 100644--- a/crates/openhuman-core/src/modules/memory.rs+++ b/crates/openhuman-core/src/modules/memory.rs@@ -64,7 +64,7 @@ mod people_chunks_retrieval;mod provider;mod sync_sessions_episodic;-pub(crate) use capabilities::{capabilities_for, ARTIFACT_CAPABILITIES, ARTIFACT_CAPABILITIES_PIN};+pub(crate) use capabilities::ARTIFACT_CAPABILITIES;pub use provider::{install_host_callbacks, publish_cli_boot_policy, set_modules_policy};pub(crate) use provider::policy;pub use provider::{ModuleMemoryProvider, MODULE_ID};diff --git a/crates/openhuman-core/src/platform/socket/ws_loop.rs b/crates/openhuman-core/src/platform/socket/ws_loop.rsindex d8193b2a43..7047b8f135 100644--- a/crates/openhuman-core/src/platform/socket/ws_loop.rs+++ b/crates/openhuman-core/src/platform/socket/ws_loop.rs@@ -20,7 +20,7 @@ pub(super) use reconnect::ws_loop;#[cfg(test)]use connect::{connect_with_redirects, extract_location_header, is_redirect_status, record_redirect_warning,- resolve_redirect_target, run_connection,+ resolve_redirect_target,};#[cfg(test)]use dispatch::{handle_eio_message, handle_sio_packet, parse_sio_ack};diff --git a/crates/openhuman-core/src/tools/schemas.rs b/crates/openhuman-core/src/tools/schemas.rsindex b847d9b9ed..70f94ba8c4 100644--- a/crates/openhuman-core/src/tools/schemas.rs+++ b/crates/openhuman-core/src/tools/schemas.rs@@ -15,4 +15,4 @@ mod composio;mod registry;mod web_search;-pub use registry::{all_controller_schemas, all_registered_controllers, tools_schemas};+pub use registry::{all_controller_schemas, all_registered_controllers};diff --git a/crates/openhuman-core/src/tools/schemas/registry.rs b/crates/openhuman-core/src/tools/schemas/registry.rsindex 1bed265984..36d7ac5e45 100644--- a/crates/openhuman-core/src/tools/schemas/registry.rs+++ b/crates/openhuman-core/src/tools/schemas/registry.rs@@ -4,9 +4,8 @@//! small allowlist of tool-like operations exposed over JSON-RPC (see the module//! doc on `super`). [`tools_schemas`] is the schema lookup shared by both.-use serde_json::{json, Map, Value};-use crate::core::all::{ControllerFuture, RegisteredController};+use crate::core::all::RegisteredController;use crate::core::{ControllerSchema, FieldSchema, TypeSchema};use super::apify::handle_apify_linkedin_scrape;diff --git a/crates/openhuman-core/src/web_chat/ops.rs b/crates/openhuman-core/src/web_chat/ops.rsindex d674dcacb0..6bc8b2c323 100644--- a/crates/openhuman-core/src/web_chat/ops.rs+++ b/crates/openhuman-core/src/web_chat/ops.rs@@ -26,9 +26,9 @@ pub use start_chat::start_chat;#[cfg(any(test, debug_assertions))]pub use state::parallel_in_flight_entries_for_test;-pub(super) use state::{cancel_in_flight_gracefully, event_session_id_for, key_for};+pub(super) use state::{event_session_id_for, key_for};pub use state::{cancel_should_target, in_flight_entries_for_test, invalidate_thread_sessions};-pub(super) use state::{IN_FLIGHT, PARALLEL_IN_FLIGHT, THREAD_SESSIONS};+pub(super) use state::THREAD_SESSIONS;#[cfg(any(test, debug_assertions))]pub use test_hooks::set_test_forced_run_chat_task_error;@@ -40,4 +40,3 @@ pub use test_hooks::{set_test_run_chat_task_block, TestRunChatTaskBlock};pub(super) use test_hooks::{TEST_FORCED_RUN_CHAT_TASK_ERROR, TEST_RUN_CHAT_TASK_BLOCK};pub(super) use turn_guards::sentry_suppression_reason;-pub(super) use turn_guards::timeout_bound_tag;