Skip to content

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

style: format extracted Rust modules\n\n

Steven Enamakel54da83ebc347
diff --git a/src/openhuman/agent/harness/definition.rs b/src/openhuman/agent/harness/definition.rs
index 96b8cfbf6b..4fcfcc4c57 100644
--- a/src/openhuman/agent/harness/definition.rs
+++ b/src/openhuman/agent/harness/definition.rs
@@ -21,7 +21,6 @@
//! runtime — it is pure data so the model can be unit-tested in isolation
//! and serialised straight from disk.
-
#[cfg(test)]
#[path = "definition_tests.rs"]
mod tests;
diff --git a/src/openhuman/agent/harness/session/transcript.rs b/src/openhuman/agent/harness/session/transcript.rs
index 2f1a3dd0f9..f2996dadf5 100644
--- a/src/openhuman/agent/harness/session/transcript.rs
+++ b/src/openhuman/agent/harness/session/transcript.rs
@@ -92,7 +92,6 @@
//! the session transcript can eventually replace the separate thread
//! message log without losing message-level addressing.
-
// ── Tests ─────────────────────────────────────────────────────────────
#[cfg(test)]
diff --git a/src/openhuman/agent/harness/subagent_runner/ops/graph.rs b/src/openhuman/agent/harness/subagent_runner/ops/graph.rs
index 96d8fa5db5..972470a4ef 100644
--- a/src/openhuman/agent/harness/subagent_runner/ops/graph.rs
+++ b/src/openhuman/agent/harness/subagent_runner/ops/graph.rs
@@ -27,7 +27,6 @@
//! and a graceful model-call-cap checkpoint summary
//! (`SubagentCheckpoint::summarize_cap_hit`).
-
#[cfg(test)]
#[path = "graph_tests.rs"]
mod tests;
diff --git a/src/openhuman/agent/learning/linkedin_enrichment.rs b/src/openhuman/agent/learning/linkedin_enrichment.rs
index 185374e278..9766cabcac 100644
--- a/src/openhuman/agent/learning/linkedin_enrichment.rs
+++ b/src/openhuman/agent/learning/linkedin_enrichment.rs
@@ -11,7 +11,6 @@
//! pass. Each stage logs progress so the caller (or a future frontend
//! progress UI) can observe what happened.
-
#[cfg(test)]
#[path = "linkedin_enrichment_tests.rs"]
mod tests;
diff --git a/src/openhuman/agent/learning/schemas.rs b/src/openhuman/agent/learning/schemas.rs
index b62f122ce0..2769cd7cb2 100644
--- a/src/openhuman/agent/learning/schemas.rs
+++ b/src/openhuman/agent/learning/schemas.rs
@@ -1,6 +1,5 @@
//! Controller schemas for the learning domain.
-
#[cfg(test)]
#[path = "schemas_tests.rs"]
mod tests;
diff --git a/src/openhuman/agent/orchestration/running_subagents.rs b/src/openhuman/agent/orchestration/running_subagents.rs
index 12168724cc..ed103cce6a 100644
--- a/src/openhuman/agent/orchestration/running_subagents.rs
+++ b/src/openhuman/agent/orchestration/running_subagents.rs
@@ -34,7 +34,6 @@
//! paths record `Cancelled`. This gives a typed, queryable lifecycle
//! (`task_records`) alongside the crate-owned runtime registry.
-
#[cfg(test)]
#[path = "running_subagents_tests.rs"]
mod tests;
diff --git a/src/openhuman/agent/orchestration/tools/agent_prepare_context.rs b/src/openhuman/agent/orchestration/tools/agent_prepare_context.rs
index be15f91388..a72e5badcf 100644
--- a/src/openhuman/agent/orchestration/tools/agent_prepare_context.rs
+++ b/src/openhuman/agent/orchestration/tools/agent_prepare_context.rs
@@ -11,7 +11,6 @@
//! The scout's output is bounded by `context_scout`'s `max_result_chars`
//! (≈1000 tokens) so the parent's context only grows by a bounded amount.
-
#[cfg(test)]
#[path = "agent_prepare_context_tests.rs"]
mod tests;
diff --git a/src/openhuman/agent/orchestration/workflow_runs/engine.rs b/src/openhuman/agent/orchestration/workflow_runs/engine.rs
index 284b86669a..ef8625e032 100644
--- a/src/openhuman/agent/orchestration/workflow_runs/engine.rs
+++ b/src/openhuman/agent/orchestration/workflow_runs/engine.rs
@@ -40,7 +40,6 @@
//! current between-phase cancellation bookkeeping is intentionally left in place
//! until that phase kind lands, to keep stop/resume semantics unchanged.
-
#[cfg(test)]
#[path = "engine_tests.rs"]
mod engine_tests;
diff --git a/src/openhuman/agent/progress_tracing/langfuse.rs b/src/openhuman/agent/progress_tracing/langfuse.rs
index 8ca04b7434..b4f8992fbe 100644
--- a/src/openhuman/agent/progress_tracing/langfuse.rs
+++ b/src/openhuman/agent/progress_tracing/langfuse.rs
@@ -17,7 +17,6 @@
//! ride along only while `observability.agent_tracing.capture_content` is on;
//! with the default off, content is withheld and export stays metadata-only.
-
#[cfg(test)]
#[path = "langfuse_tests.rs"]
mod tests;
diff --git a/src/openhuman/agent/tinyagents/middleware.rs b/src/openhuman/agent/tinyagents/middleware.rs
index 2505dd2c35..98727a9ae1 100644
--- a/src/openhuman/agent/tinyagents/middleware.rs
+++ b/src/openhuman/agent/tinyagents/middleware.rs
@@ -20,7 +20,6 @@
//! [`TurnContextMiddleware`] bundles the config and installs whichever hooks are
//! enabled onto a harness.
-
#[cfg(test)]
#[path = "middleware_tests.rs"]
mod tests;
diff --git a/src/openhuman/agent/tinyagents/observability.rs b/src/openhuman/agent/tinyagents/observability.rs
index 95714992d7..29115bf6bc 100644
--- a/src/openhuman/agent/tinyagents/observability.rs
+++ b/src/openhuman/agent/tinyagents/observability.rs
@@ -8,7 +8,6 @@
//! live tool timeline, streaming text, and the cost/token footer on the
//! tinyagents path — and feeds per-call usage into the global cost tracker.
-
#[cfg(test)]
#[path = "observability_tests.rs"]
mod tests;
diff --git a/src/openhuman/agent/triage/evaluator.rs b/src/openhuman/agent/triage/evaluator.rs
index 56642cd062..c31d94b11b 100644
--- a/src/openhuman/agent/triage/evaluator.rs
+++ b/src/openhuman/agent/triage/evaluator.rs
@@ -28,7 +28,6 @@
//! sending no tool schemas to the backend — the turn degrades to a plain
//! chat completion.
-
#[cfg(test)]
#[path = "evaluator_tests.rs"]
mod tests;
diff --git a/src/openhuman/channels/bus.rs b/src/openhuman/channels/bus.rs
index 3a8aa48cdd..60bda9d8ec 100644
--- a/src/openhuman/channels/bus.rs
+++ b/src/openhuman/channels/bus.rs
@@ -4,7 +4,6 @@
//! by the socket transport layer. It runs the agent inference loop via the web
//! channel provider and sends the reply back through the REST API.
-
#[cfg(test)]
#[path = "bus_inbound_thread_id_tests_tests.rs"]
mod inbound_thread_id_tests;
diff --git a/src/openhuman/channels/controllers/ops/connect.rs b/src/openhuman/channels/controllers/ops/connect.rs
index 67d767ef5e..7136726571 100644
--- a/src/openhuman/channels/controllers/ops/connect.rs
+++ b/src/openhuman/channels/controllers/ops/connect.rs
@@ -1,6 +1,5 @@
//! Core channel connect/disconnect/status operations.
-
#[cfg(test)]
#[path = "connect_email_config_tests_tests.rs"]
mod email_config_tests;
diff --git a/src/openhuman/channels/runtime/startup.rs b/src/openhuman/channels/runtime/startup.rs
index 07a2f65b83..973f0e83ca 100644
--- a/src/openhuman/channels/runtime/startup.rs
+++ b/src/openhuman/channels/runtime/startup.rs
@@ -1,6 +1,5 @@
//! Channel startup wiring.
-
#[cfg(any(test, debug_assertions))]
#[path = "startup_test_support_tests.rs"]
pub mod test_support;
diff --git a/src/openhuman/config/ops/loader.rs b/src/openhuman/config/ops/loader.rs
index 124e06c33e..e7e0cdd85e 100644
--- a/src/openhuman/config/ops/loader.rs
+++ b/src/openhuman/config/ops/loader.rs
@@ -1,6 +1,5 @@
//! Config loading, snapshotting, and core runtime-flag helpers.
-
#[cfg(test)]
#[path = "loader_model_registry_seed_tests_tests.rs"]
mod model_registry_seed_tests;
diff --git a/src/openhuman/config/schema/types.rs b/src/openhuman/config/schema/types.rs
index af94ac4415..d2dcba4711 100644
--- a/src/openhuman/config/schema/types.rs
+++ b/src/openhuman/config/schema/types.rs
@@ -1,4 +1,3 @@
-
// Load/save and env overrides extend Config in load.rs
#[cfg(test)]
diff --git a/src/openhuman/config/schemas/controllers.rs b/src/openhuman/config/schemas/controllers.rs
index 4e7aaeb2e7..37ede7583b 100644
--- a/src/openhuman/config/schemas/controllers.rs
+++ b/src/openhuman/config/schemas/controllers.rs
@@ -1,4 +1,3 @@
-
#[cfg(test)]
#[path = "controllers_tests.rs"]
mod tests;
diff --git a/src/openhuman/cron/scheduler.rs b/src/openhuman/cron/scheduler.rs
index 4c3c39bb7f..e15e875fcd 100644
--- a/src/openhuman/cron/scheduler.rs
+++ b/src/openhuman/cron/scheduler.rs
@@ -1,4 +1,3 @@
-
#[cfg(test)]
#[path = "scheduler_tests.rs"]
mod tests;
diff --git a/src/openhuman/cron/store.rs b/src/openhuman/cron/store.rs
index 6bfd8e45bc..ab8d6d5107 100644
--- a/src/openhuman/cron/store.rs
+++ b/src/openhuman/cron/store.rs
@@ -1,4 +1,3 @@
-
#[cfg(test)]
#[path = "store_tests.rs"]
mod tests;
diff --git a/src/openhuman/desktop/app_state/ops.rs b/src/openhuman/desktop/app_state/ops.rs
index a5665da50f..f3d55b1717 100644
--- a/src/openhuman/desktop/app_state/ops.rs
+++ b/src/openhuman/desktop/app_state/ops.rs
@@ -1,4 +1,3 @@
-
#[cfg(test)]
#[path = "ops_tests.rs"]
mod tests;
diff --git a/src/openhuman/flows/builder_tools.rs b/src/openhuman/flows/builder_tools.rs
index 0e9a4ed954..98c71b87ad 100644
--- a/src/openhuman/flows/builder_tools.rs
+++ b/src/openhuman/flows/builder_tools.rs
@@ -64,7 +64,6 @@
//! — this makes exactly one bounded real read to observe the actual shape
//! instead. It can never send/create/update/delete anything.
-
#[cfg(test)]
#[path = "builder_tools_tests.rs"]
mod tests;
diff --git a/src/openhuman/flows/bus.rs b/src/openhuman/flows/bus.rs
index d26a82305f..594394e0d1 100644
--- a/src/openhuman/flows/bus.rs
+++ b/src/openhuman/flows/bus.rs
@@ -10,7 +10,6 @@
//! `flows::ops::flows_set_enabled` to bind/unbind a flow's automatic
//! dispatch on enable/disable.
-
#[cfg(test)]
#[path = "bus_tests.rs"]
mod tests;
diff --git a/src/openhuman/flows/ops.rs b/src/openhuman/flows/ops.rs
index d1e2a372c6..0c5c5ec5b7 100644
--- a/src/openhuman/flows/ops.rs
+++ b/src/openhuman/flows/ops.rs
@@ -3,7 +3,6 @@
//! `schemas.rs`'s `handle_*` RPC/CLI handlers, mirroring
//! `src/openhuman/cron/ops.rs`.
-
#[cfg(test)]
#[path = "ops_tests.rs"]
mod tests;
diff --git a/src/openhuman/inference/embeddings/rpc.rs b/src/openhuman/inference/embeddings/rpc.rs
index 9121e001c0..3fa98459bc 100644
--- a/src/openhuman/inference/embeddings/rpc.rs
+++ b/src/openhuman/inference/embeddings/rpc.rs
@@ -1,6 +1,5 @@
//! RPC handlers for the embeddings domain.
-
#[cfg(test)]
#[path = "rpc_tests.rs"]
mod tests;
diff --git a/src/openhuman/inference/local/ops.rs b/src/openhuman/inference/local/ops.rs
index 21618c041f..b76ac8fb97 100644
--- a/src/openhuman/inference/local/ops.rs
+++ b/src/openhuman/inference/local/ops.rs
@@ -4,7 +4,6 @@
//! services such as agent chat, model downloads, summarization, and
//! transcription. These functions are typically invoked via RPC or CLI.
-
#[cfg(test)]
#[path = "ops_tests.rs"]
mod tests;
diff --git a/src/openhuman/inference/provider/factory.rs b/src/openhuman/inference/provider/factory.rs
index 703f761f20..4496155609 100644
--- a/src/openhuman/inference/provider/factory.rs
+++ b/src/openhuman/inference/provider/factory.rs
@@ -23,7 +23,6 @@
//!
//! Unknown slugs and missing-creds configurations produce actionable errors.
-
/// Test-only seam: inject a mock [`ChatModel`] so e2e tests can drive the
/// autonomous run paths (`spawn_workflow_run_background`, the task dispatcher)
/// with a scripted LLM and no network. Process-global because those runs are
diff --git a/src/openhuman/inference/provider/ops/http_error.rs b/src/openhuman/inference/provider/ops/http_error.rs
index d7895f422e..f575fbdf08 100644
--- a/src/openhuman/inference/provider/ops/http_error.rs
+++ b/src/openhuman/inference/provider/ops/http_error.rs
@@ -1,4 +1,3 @@
-
#[cfg(test)]
#[path = "http_error_tests.rs"]
mod tests;
diff --git a/src/openhuman/inference/schemas.rs b/src/openhuman/inference/schemas.rs
index 3239f2f8b2..e80fd119b8 100644
--- a/src/openhuman/inference/schemas.rs
+++ b/src/openhuman/inference/schemas.rs
@@ -1,4 +1,3 @@
-
#[cfg(test)]
#[path = "schemas_tests.rs"]
mod tests;
diff --git a/src/openhuman/integrations/client.rs b/src/openhuman/integrations/client.rs
index 0049e15c66..796f2ab8c3 100644
--- a/src/openhuman/integrations/client.rs
+++ b/src/openhuman/integrations/client.rs
@@ -1,6 +1,5 @@
//! Shared HTTP client for all integration tools.
-
#[cfg(test)]
#[path = "client_tests.rs"]
mod tests;
diff --git a/src/openhuman/integrations/composio/catalog.rs b/src/openhuman/integrations/composio/catalog.rs
index 8fb214ac03..f1bb707f33 100644
--- a/src/openhuman/integrations/composio/catalog.rs
+++ b/src/openhuman/integrations/composio/catalog.rs
@@ -27,7 +27,6 @@
//! for its primary array and its field names) is in
//! [`crate::openhuman::json_schema`], owned by neither side.
-
#[cfg(test)]
#[path = "catalog_in_flight_tests_tests.rs"]
mod in_flight_tests;
diff --git a/src/openhuman/integrations/composio/client.rs b/src/openhuman/integrations/composio/client.rs
index e1ecd8adfb..38513c0e22 100644
--- a/src/openhuman/integrations/composio/client.rs
+++ b/src/openhuman/integrations/composio/client.rs
@@ -9,7 +9,6 @@
//! Logging uses the `[composio]` grep-prefix so all sidecar output for
//! this domain can be filtered in one shot.
-
#[cfg(test)]
#[path = "client_tests.rs"]
mod tests;
diff --git a/src/openhuman/integrations/composio/connected_integrations.rs b/src/openhuman/integrations/composio/connected_integrations.rs
index 10b53b143f..a65601f6fa 100644
--- a/src/openhuman/integrations/composio/connected_integrations.rs
+++ b/src/openhuman/integrations/composio/connected_integrations.rs
@@ -1,4 +1,3 @@
-
#[cfg(test)]
#[path = "connected_integrations_connectable_slug_tests_tests.rs"]
mod connectable_slug_tests;
diff --git a/src/openhuman/integrations/composio/mod.rs b/src/openhuman/integrations/composio/mod.rs
index 40aaa743ad..c973362282 100644
--- a/src/openhuman/integrations/composio/mod.rs
+++ b/src/openhuman/integrations/composio/mod.rs
@@ -60,6 +60,11 @@ pub mod trigger_history;
pub mod types;
pub use crate::openhuman::agent::prompts::types::ConnectedIntegration;
+pub use crate::openhuman::integrations::composio::providers::{
+ all_providers as all_composio_providers, get_provider as get_composio_provider,
+ init_default_providers as init_default_composio_providers, ComposioProvider, ProviderContext,
+ ProviderUserProfile, SyncOutcome, SyncReason,
+};
pub use crate::openhuman::memory::sync::composio::bus::{
register_composio_trigger_subscriber, ComposioConfigChangedSubscriber,
ComposioTriggerSubscriber,
@@ -67,11 +72,6 @@ pub use crate::openhuman::memory::sync::composio::bus::{
pub use crate::openhuman::memory::sync::composio::periodic::{
record_sync_success, start_periodic_sync,
};
-pub use crate::openhuman::integrations::composio::providers::{
- all_providers as all_composio_providers, get_provider as get_composio_provider,
- init_default_providers as init_default_composio_providers, ComposioProvider, ProviderContext,
- ProviderUserProfile, SyncOutcome, SyncReason,
-};
pub use action_tool::ComposioActionTool;
pub use client::ComposioClient;
pub use identity::connection_identity;
diff --git a/src/openhuman/integrations/composio/providers/mod.rs b/src/openhuman/integrations/composio/providers/mod.rs
index 90452d6cc4..41835f35e9 100644
--- a/src/openhuman/integrations/composio/providers/mod.rs
+++ b/src/openhuman/integrations/composio/providers/mod.rs
@@ -46,6 +46,6 @@ pub use tinymemory_api::host::composio::capability_matrix;
// listing them by name is what keeps that measurable.
pub use crate::openhuman::memory::sync::composio::providers::{
all_providers, get_provider, init_default_providers, load_user_scope_or_default, profile,
- profile_md, register_provider, resolve_sync_interval_secs, slack, sync_state,
- ComposioProvider, ProviderArc, ProviderContext, ProviderUserProfile,
+ profile_md, register_provider, resolve_sync_interval_secs, slack, sync_state, ComposioProvider,
+ ProviderArc, ProviderContext, ProviderUserProfile,
};
diff --git a/src/openhuman/integrations/composio/schemas.rs b/src/openhuman/integrations/composio/schemas.rs
index 0f899548c5..26bc009b91 100644
--- a/src/openhuman/integrations/composio/schemas.rs
+++ b/src/openhuman/integrations/composio/schemas.rs
@@ -16,7 +16,6 @@
//! - `composio.refresh_all_identities` → `openhuman.composio_refresh_all_identities`
//! - `composio.sync` → `openhuman.composio_sync`
-
#[cfg(test)]
#[path = "schemas_tests.rs"]
mod tests;
diff --git a/src/openhuman/integrations/composio/tools.rs b/src/openhuman/integrations/composio/tools.rs
index b9b332bea1..3f9d8fdb44 100644
--- a/src/openhuman/integrations/composio/tools.rs
+++ b/src/openhuman/integrations/composio/tools.rs
@@ -24,7 +24,6 @@
//! the right slug and supply valid arguments without a separate round
//! trip.
-
mod direct;
// ── Tests ───────────────────────────────────────────────────────────
diff --git a/src/openhuman/integrations/composio/tools/direct.rs b/src/openhuman/integrations/composio/tools/direct.rs
index 191aba7e7d..b0a5ddea56 100644
--- a/src/openhuman/integrations/composio/tools/direct.rs
+++ b/src/openhuman/integrations/composio/tools/direct.rs
@@ -1,4 +1,3 @@
-
#[cfg(test)]
#[path = "direct_tests.rs"]
mod tests;
diff --git a/src/openhuman/integrations/file_storage/tools.rs b/src/openhuman/integrations/file_storage/tools.rs
index 9ff749c64c..3f8e060750 100644
--- a/src/openhuman/integrations/file_storage/tools.rs
+++ b/src/openhuman/integrations/file_storage/tools.rs
@@ -14,7 +14,6 @@
//! 1 GiB per user; TTL is 7 days on the free plan / up to 1 year on paid
//! plans. Public files get a stable public URL.
-
#[cfg(test)]
#[path = "tools_tests.rs"]
mod tools_tests;
diff --git a/src/openhuman/integrations/task_sources/pipeline_tests.rs b/src/openhuman/integrations/task_sources/pipeline_tests.rs
index ab160007e8..27264ce542 100644
--- a/src/openhuman/integrations/task_sources/pipeline_tests.rs
+++ b/src/openhuman/integrations/task_sources/pipeline_tests.rs
@@ -1,11 +1,11 @@
use super::*;
use crate::openhuman::config::Config;
-use crate::openhuman::integrations::task_sources::store;
-use crate::openhuman::integrations::task_sources::types::{FilterSpec, ProviderSlug, SourceTarget};
use crate::openhuman::integrations::composio::providers::{
register_provider, ComposioProvider, NormalizedTask, ProviderContext, ProviderUserProfile,
TaskFetchFilter,
};
+use crate::openhuman::integrations::task_sources::store;
+use crate::openhuman::integrations::task_sources::types::{FilterSpec, ProviderSlug, SourceTarget};
use async_trait::async_trait;
use serde_json::json;
use std::sync::{Arc, Mutex, MutexGuard, OnceLock};
diff --git a/src/openhuman/mcp/registry/schemas.rs b/src/openhuman/mcp/registry/schemas.rs
index cdf13045c6..9231380f89 100644
--- a/src/openhuman/mcp/registry/schemas.rs
+++ b/src/openhuman/mcp/registry/schemas.rs
@@ -4,7 +4,6 @@
//! shape. Every `handle_*` function deserialises params and delegates to
//! `ops.rs`.
-
#[cfg(test)]
#[path = "schemas_tests.rs"]
mod tests;
diff --git a/src/openhuman/memory/guard/families.rs b/src/openhuman/memory/guard/families.rs
index 37a3c71e08..dbb5c8a2e9 100644
--- a/src/openhuman/memory/guard/families.rs
+++ b/src/openhuman/memory/guard/families.rs
@@ -29,7 +29,6 @@
//!
//! [`MemoryGuard`]: super::MemoryGuard
-
#[cfg(test)]
#[path = "families_tests.rs"]
mod tests;
diff --git a/src/openhuman/memory/read_rpc/admin.rs b/src/openhuman/memory/read_rpc/admin.rs
index b168a7e101..c3f545746a 100644
--- a/src/openhuman/memory/read_rpc/admin.rs
+++ b/src/openhuman/memory/read_rpc/admin.rs
@@ -1,8 +1,8 @@
use anyhow::{Context, Result};
use crate::openhuman::config::Config;
-use crate::openhuman::memory::api::provider::ForgetSelector;
use crate::openhuman::integrations::composio::providers::sync_state::KV_NAMESPACE;
+use crate::openhuman::memory::api::provider::ForgetSelector;
use crate::rpc::RpcOutcome;
use tinymemory_api::chunks::SourceKind;
diff --git a/src/openhuman/memory/read_rpc/chunks.rs b/src/openhuman/memory/read_rpc/chunks.rs
index 6a73415586..25454d675d 100644
--- a/src/openhuman/memory/read_rpc/chunks.rs
+++ b/src/openhuman/memory/read_rpc/chunks.rs
@@ -2,10 +2,10 @@ use anyhow::Result;
use std::collections::{HashMap, HashSet};
use crate::openhuman::config::Config;
-use crate::openhuman::memory::api::provider::{ChunkListRow, ChunkQuery};
use crate::openhuman::memory::api::provider::retrieval::{
RetrievalNodeKind, RetrievalResponse, SourceRetrievalQuery,
};
+use crate::openhuman::memory::api::provider::{ChunkListRow, ChunkQuery};
use crate::rpc::RpcOutcome;
use tinymemory_api::chunks::SourceKind;
diff --git a/src/openhuman/memory/safety.rs b/src/openhuman/memory/safety.rs
index 675ccf5da8..c7900d6968 100644
--- a/src/openhuman/memory/safety.rs
+++ b/src/openhuman/memory/safety.rs
@@ -38,7 +38,6 @@
//! named the inner modules; every item keeps its name, so the two copies stay
//! diffable line for line.
-
#[cfg(test)]
#[path = "safety_tests.rs"]
mod tests;
diff --git a/src/openhuman/memory/sources/readers/composio.rs b/src/openhuman/memory/sources/readers/composio.rs
index e8125cd81a..4e8c547d6c 100644
--- a/src/openhuman/memory/sources/readers/composio.rs
+++ b/src/openhuman/memory/sources/readers/composio.rs
@@ -7,10 +7,10 @@
use async_trait::async_trait;
+use crate::openhuman::config::Config;
use crate::openhuman::memory::sources::types::{
ContentType, MemorySourceEntry, SourceContent, SourceItem, SourceKind,
};
-use crate::openhuman::config::Config;
use crate::openhuman::memory::sources::readers::SourceReader;
diff --git a/src/openhuman/memory/sources/readers/twitter.rs b/src/openhuman/memory/sources/readers/twitter.rs
index 2e996dd9d4..e7a0e7d0aa 100644
--- a/src/openhuman/memory/sources/readers/twitter.rs
+++ b/src/openhuman/memory/sources/readers/twitter.rs
@@ -7,8 +7,10 @@
use async_trait::async_trait;
-use crate::openhuman::memory::sources::types::{MemorySourceEntry, SourceContent, SourceItem, SourceKind};
use crate::openhuman::config::Config;
+use crate::openhuman::memory::sources::types::{
+ MemorySourceEntry, SourceContent, SourceItem, SourceKind,
+};
use crate::openhuman::memory::sources::readers::SourceReader;
diff --git a/src/openhuman/memory/sources/registry.rs b/src/openhuman/memory/sources/registry.rs
index 9c8ecab3e9..a64ee3ca6b 100644
--- a/src/openhuman/memory/sources/registry.rs
+++ b/src/openhuman/memory/sources/registry.rs
@@ -35,10 +35,10 @@ use std::sync::OnceLock;
use crate::openhuman::config::rpc as config_rpc;
use crate::openhuman::config::Config;
+use tinymemory_sources::types::{MemorySourceEntry, SourceKind};
pub use tinymemory_sources::{
apply_kind_defaults, memory_sync_defaults_for_toolkit, ComposioUpsertTarget, MemorySourcePatch,
};
-use tinymemory_sources::types::{MemorySourceEntry, SourceKind};
static MEMORY_SOURCES_WRITE_LOCK: OnceLock<tokio::sync::Mutex<()>> = OnceLock::new();
@@ -183,9 +183,7 @@ pub async fn remove_source(id: &str) -> Result<bool, String> {
/// # Errors
///
/// As [`replace_sources_in`].
-pub async fn remove_composio_source_by_connection_id(
- connection_id: &str,
-) -> Result<usize, String> {
+pub async fn remove_composio_source_by_connection_id(connection_id: &str) -> Result<usize, String> {
let _guard = memory_sources_write_guard().await;
registry()
.await?
diff --git a/src/openhuman/memory/sources/rpc.rs b/src/openhuman/memory/sources/rpc.rs
index 2cefc3f4cb..e04fd0df81 100644
--- a/src/openhuman/memory/sources/rpc.rs
+++ b/src/openhuman/memory/sources/rpc.rs
@@ -56,7 +56,6 @@
//! registry CRUD between them talks only to `registry` and `readers` and never
//! resolves a binding at all.
-
#[cfg(test)]
#[path = "rpc_filter_tests_tests.rs"]
mod filter_tests;
diff --git a/src/openhuman/memory/sources/schemas.rs b/src/openhuman/memory/sources/schemas.rs
index 043663ae90..e6afe15f91 100644
--- a/src/openhuman/memory/sources/schemas.rs
+++ b/src/openhuman/memory/sources/schemas.rs
@@ -1,6 +1,5 @@
//! Controller-registry schemas for `openhuman.memory_sources_*`.
-
#[cfg(test)]
#[path = "schemas_tests.rs"]
mod tests;
diff --git a/src/openhuman/memory/sync/composio/bus.rs b/src/openhuman/memory/sync/composio/bus.rs
index 188378fc01..a486573c27 100644
--- a/src/openhuman/memory/sync/composio/bus.rs
+++ b/src/openhuman/memory/sync/composio/bus.rs
@@ -46,7 +46,6 @@
//! event bus dispatch loop is never blocked by a long-running provider
//! call (sync can take seconds).
-
#[cfg(test)]
#[path = "bus_tests.rs"]
mod tests;
diff --git a/src/openhuman/memory/tree/tree/rpc.rs b/src/openhuman/memory/tree/tree/rpc.rs
index fef7192abd..21cc9099be 100644
--- a/src/openhuman/memory/tree/tree/rpc.rs
+++ b/src/openhuman/memory/tree/tree/rpc.rs
@@ -9,7 +9,6 @@
//! - `openhuman.memory_tree_list_chunks` — listing with filters.
//! - `openhuman.memory_tree_get_chunk` — single chunk fetch.
-
#[cfg(test)]
#[path = "rpc_tests.rs"]
mod tests;
diff --git a/src/openhuman/modules/memory.rs b/src/openhuman/modules/memory.rs
index b8d331c3ef..3315d61cd0 100644
--- a/src/openhuman/modules/memory.rs
+++ b/src/openhuman/modules/memory.rs
@@ -39,7 +39,6 @@
//! let a `PathEscape` arrive as an `Invalid`, silently reclassifying a sandbox
//! escape as a caller mistake.
-
#[cfg(test)]
#[path = "memory_tests.rs"]
mod tests;
diff --git a/src/openhuman/modules/registry.rs b/src/openhuman/modules/registry.rs
index 400655a07d..f4b434d732 100644
--- a/src/openhuman/modules/registry.rs
+++ b/src/openhuman/modules/registry.rs
@@ -24,7 +24,6 @@
//! them from a local build — the point is to pin what the release publishes, and
//! a locally recomputed digest would agree with itself no matter what was served.
-
#[cfg(test)]
#[path = "registry_tests.rs"]
mod tests;
diff --git a/src/openhuman/platform/doctor/core.rs b/src/openhuman/platform/doctor/core.rs
index 8e2315d0f9..56c5bd2c18 100644
--- a/src/openhuman/platform/doctor/core.rs
+++ b/src/openhuman/platform/doctor/core.rs
@@ -1,4 +1,3 @@
-
#[cfg(test)]
#[path = "core_tests.rs"]
mod tests;
diff --git a/src/openhuman/platform/socket/ws_loop.rs b/src/openhuman/platform/socket/ws_loop.rs
index 5e0d38ce19..f5a1dc963c 100644
--- a/src/openhuman/platform/socket/ws_loop.rs
+++ b/src/openhuman/platform/socket/ws_loop.rs
@@ -1,6 +1,5 @@
//! WebSocket Engine.IO / Socket.IO connection loop with automatic reconnection.
-
#[cfg(test)]
#[path = "ws_loop_tests.rs"]
mod tests;
diff --git a/src/openhuman/search/tools/parallel.rs b/src/openhuman/search/tools/parallel.rs
index 7c22b3623d..0e234b1b61 100644
--- a/src/openhuman/search/tools/parallel.rs
+++ b/src/openhuman/search/tools/parallel.rs
@@ -18,7 +18,6 @@
//!
//! The backend handles Parallel API keys, billing, and rate limiting.
-
#[cfg(test)]
#[path = "parallel_tests.rs"]
mod tests;
diff --git a/src/openhuman/security/credentials/ops.rs b/src/openhuman/security/credentials/ops.rs
index ed181037f9..e780fa8956 100644
--- a/src/openhuman/security/credentials/ops.rs
+++ b/src/openhuman/security/credentials/ops.rs
@@ -1,6 +1,5 @@
//! JSON-RPC / CLI controller surface for credentials and app session auth.
-
#[cfg(test)]
#[path = "ops_tests.rs"]
mod tests;
diff --git a/src/openhuman/skills/ops_install.rs b/src/openhuman/skills/ops_install.rs
index f354fa6826..9edf592da0 100644
--- a/src/openhuman/skills/ops_install.rs
+++ b/src/openhuman/skills/ops_install.rs
@@ -1,6 +1,5 @@
//! URL-based skill installation: fetch, validate, and write SKILL.md from a remote URL.
-
#[cfg(test)]
#[path = "ops_install_install_fetch_tests_tests.rs"]
mod install_fetch_tests;
diff --git a/src/openhuman/threads/ops.rs b/src/openhuman/threads/ops.rs
index f48e03522d..7a64c0bb83 100644
--- a/src/openhuman/threads/ops.rs
+++ b/src/openhuman/threads/ops.rs
@@ -1,6 +1,5 @@
//! RPC operations for conversation thread management.
-
#[cfg(test)]
#[path = "ops_tests.rs"]
mod tests;
diff --git a/src/openhuman/threads/schemas.rs b/src/openhuman/threads/schemas.rs
index 58c5ac3e61..87b973d6b4 100644
--- a/src/openhuman/threads/schemas.rs
+++ b/src/openhuman/threads/schemas.rs
@@ -1,6 +1,5 @@
//! RPC schemas and controller registration for conversation threads.
-
#[cfg(test)]
#[path = "schemas_tests.rs"]
mod tests;
diff --git a/src/openhuman/threads/todos/schemas.rs b/src/openhuman/threads/todos/schemas.rs
index f0b12a7763..70c5c9b636 100644
--- a/src/openhuman/threads/todos/schemas.rs
+++ b/src/openhuman/threads/todos/schemas.rs
@@ -3,7 +3,6 @@
//! agent-driven edits share the exact same persistence and rendering
//! logic.
-
#[cfg(test)]
#[path = "schemas_tests.rs"]
mod tests;
diff --git a/src/openhuman/threads/turn_state/mirror.rs b/src/openhuman/threads/turn_state/mirror.rs
index 9b4f39b435..1641c0115e 100644
--- a/src/openhuman/threads/turn_state/mirror.rs
+++ b/src/openhuman/threads/turn_state/mirror.rs
@@ -14,7 +14,6 @@
//! flagged [`TurnLifecycle::Interrupted`] and persisted so the UI can
//! surface a retry affordance.
-
#[cfg(test)]
#[path = "mirror_tests.rs"]
mod tests;
diff --git a/src/openhuman/tools/schemas.rs b/src/openhuman/tools/schemas.rs
index 678cbca6eb..b10286a2a6 100644
--- a/src/openhuman/tools/schemas.rs
+++ b/src/openhuman/tools/schemas.rs
@@ -6,7 +6,6 @@
//! the renderer; external calls still go through the core's auth / proxy
//! layer). Anything **not** in this file remains agent-only.
-
#[cfg(test)]
#[path = "schemas_tests.rs"]
mod tests;
diff --git a/src/openhuman/voice/always_on.rs b/src/openhuman/voice/always_on.rs
index 6ac0adf15a..8003762e4b 100644
--- a/src/openhuman/voice/always_on.rs
+++ b/src/openhuman/voice/always_on.rs
@@ -25,7 +25,6 @@
//! Privacy: always-on is **opt-in** (`config.voice_server.always_on_enabled`,
//! default false) and pauses when the screen is locked.
-
#[cfg(test)]
#[path = "always_on_tests.rs"]
mod tests;
diff --git a/src/openhuman/voice/realtime_harness.rs b/src/openhuman/voice/realtime_harness.rs
index d1ff588462..71a34711a8 100644
--- a/src/openhuman/voice/realtime_harness.rs
+++ b/src/openhuman/voice/realtime_harness.rs
@@ -12,7 +12,6 @@
//! arriving over a channel, so `external_effect` tools route through the
//! audit-trail path rather than running with trusted-CLI semantics.
-
#[cfg(test)]
#[path = "realtime_harness_tests.rs"]
mod tests;
diff --git a/src/openhuman/voice/server.rs b/src/openhuman/voice/server.rs
index ca974a3ce2..b8a633528b 100644
--- a/src/openhuman/voice/server.rs
+++ b/src/openhuman/voice/server.rs
@@ -5,7 +5,6 @@
//! microphone, transcribes via the configured STT engine, and inserts the result into the
//! active text field.
-
#[cfg(test)]
#[path = "server_tests.rs"]
mod tests;
diff --git a/src/openhuman/web3/wallet/execution.rs b/src/openhuman/web3/wallet/execution.rs
index c0c3207655..fa71fc123e 100644
--- a/src/openhuman/web3/wallet/execution.rs
+++ b/src/openhuman/web3/wallet/execution.rs
@@ -9,7 +9,6 @@
//! Solana (native + SPL), and Tron (native + TRC20) all sign and broadcast.
//! Swap broadcast is still quote-only on every chain.
-
#[cfg(test)]
#[path = "execution_tests.rs"]
mod tests;
diff --git a/src/openhuman/web3/wallet/ops.rs b/src/openhuman/web3/wallet/ops.rs
index 1a3c49db19..0bcf50f58d 100644
--- a/src/openhuman/web3/wallet/ops.rs
+++ b/src/openhuman/web3/wallet/ops.rs
@@ -1,4 +1,3 @@
-
#[cfg(test)]
#[path = "ops_tests.rs"]
mod tests;
diff --git a/src/openhuman/web_chat/ops.rs b/src/openhuman/web_chat/ops.rs
index 08c4290da2..4079bdf03e 100644
--- a/src/openhuman/web_chat/ops.rs
+++ b/src/openhuman/web_chat/ops.rs
@@ -1,4 +1,3 @@
-
#[cfg(test)]
#[path = "ops_budget_correlation_tests_tests.rs"]
mod budget_correlation_tests;