Skip to content

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

chore(memory): clear the cfg gates and imports the shed left behind\n\n`#[cfg(feature = "memory-engine-seams")]` and `#[cfg(feature = "rss-bench")]`\noutlived the features themselves in four `inference/` files, which\n`unexpected_cfgs` reports as an error under `-D warnings`. The seams arm\nbecomes plain `#[cfg(test)]`; the `rss-bench` arms drop to what remains of\ntheir alternation.\n\nThe rest is imports and one re-export left unused once the tests that reached\nthem went. `memory::ops`'s `memory_kind_label` is the re-export:\n`ops::documents` takes it from `helpers` directly, so the second path existed\nonly for a deleted test.\n\nBoth lanes CI actually runs are clean — `cargo clippy -p openhuman --features\n"$(scripts/ci/product-features.sh)"` and the bare contributor-set one. Worth\nrecording that `--all-targets` is *not* one of them and does not pass on\n`main` either (439 errors there against 417 here, nearly all\n`MutexGuard`-held-across-await in test code). That is a pre-existing state of\nthis repository, not something this branch introduced or is expected to fix.\n\nRefs #6161\n

Shanu9f2982bd69ef
diff --git a/src/openhuman/agent/agent_tests.rs b/src/openhuman/agent/agent_tests.rs
index 495b816ce9..c1a4a1907f 100644
--- a/src/openhuman/agent/agent_tests.rs
+++ b/src/openhuman/agent/agent_tests.rs
@@ -228,7 +228,7 @@ fn make_memory() -> (Arc<dyn Memory>, tempfile::TempDir) {
// The embedding seam fails loudly when unwired; before the memory
// extraction this was a direct call and needed no setup.
let tmp = tempfile::TempDir::new().unwrap();
- let cfg = MemoryConfig {
+ let _cfg = MemoryConfig {
backend: "none".into(),
..MemoryConfig::default()
};
@@ -242,7 +242,7 @@ fn make_sqlite_memory() -> (Arc<dyn Memory>, tempfile::TempDir) {
// The embedding seam fails loudly when unwired; before the memory
// extraction this was a direct call and needed no setup.
let tmp = tempfile::TempDir::new().unwrap();
- let cfg = MemoryConfig {
+ let _cfg = MemoryConfig {
backend: "sqlite".into(),
..MemoryConfig::default()
};
diff --git a/src/openhuman/agent/harness/archivist/mod.rs b/src/openhuman/agent/harness/archivist/mod.rs
index 2c5ff7c604..4499cbd8a0 100644
--- a/src/openhuman/agent/harness/archivist/mod.rs
+++ b/src/openhuman/agent/harness/archivist/mod.rs
@@ -31,10 +31,3 @@ mod tree_ingest;
mod types;
pub use types::ArchivistHook;
-
-#[cfg(test)]
-pub(crate) use crate::openhuman::agent::hooks::PostTurnHook;
-#[cfg(test)]
-pub(crate) use helpers::extract_profile_key;
-#[cfg(test)]
-pub(crate) use std::sync::Arc;
diff --git a/src/openhuman/agent/harness/archivist/store.rs b/src/openhuman/agent/harness/archivist/store.rs
index 80fb604359..34abfc2cda 100644
--- a/src/openhuman/agent/harness/archivist/store.rs
+++ b/src/openhuman/agent/harness/archivist/store.rs
@@ -378,4 +378,3 @@ fn write_if_new(abs_path: &Path, bytes: &[u8]) -> Result<bool> {
}
}
}
-
diff --git a/src/openhuman/agent/harness/session/runtime_tests.rs b/src/openhuman/agent/harness/session/runtime_tests.rs
index 8d587a8d38..be6f8addfe 100644
--- a/src/openhuman/agent/harness/session/runtime_tests.rs
+++ b/src/openhuman/agent/harness/session/runtime_tests.rs
@@ -105,12 +105,11 @@ fn make_agent(model: Arc<dyn ChatModel<()>>) -> Agent {
let workspace = tempfile::TempDir::new().expect("temp workspace");
let workspace_path = workspace.path().to_path_buf();
std::mem::forget(workspace);
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
Agent::builder()
.chat_model(model)
diff --git a/src/openhuman/agent/harness/session/session_tests.rs b/src/openhuman/agent/harness/session/session_tests.rs
index 0a7ab7206b..5e5142fdbb 100644
--- a/src/openhuman/agent/harness/session/session_tests.rs
+++ b/src/openhuman/agent/harness/session/session_tests.rs
@@ -185,12 +185,11 @@ fn build_minimal_agent_with_definition_name(definition_name: Option<&str>) -> Ag
responses: Mutex::new(vec![]),
});
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
let mut builder = Agent::builder()
.chat_model(provider)
@@ -271,12 +270,11 @@ async fn turn_dispatches_spawn_subagent_through_full_path_inner() {
]),
});
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
// Tools include SpawnSubagentTool so the parent can call it.
let tools: Vec<Box<dyn Tool>> = vec![Box::new(SpawnSubagentTool::new())];
@@ -453,12 +451,11 @@ fn agent_with_fake_locator(
canned,
appended: Mutex::new(Vec::new()),
});
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
let agent = Agent::builder()
.chat_model(Arc::new(MockProvider {
responses: Mutex::new(vec![]),
diff --git a/src/openhuman/agent/harness/session/session_tests_part_01_tests.rs b/src/openhuman/agent/harness/session/session_tests_part_01_tests.rs
index ee3bf6d69f..5a6e6f3f12 100644
--- a/src/openhuman/agent/harness/session/session_tests_part_01_tests.rs
+++ b/src/openhuman/agent/harness/session/session_tests_part_01_tests.rs
@@ -329,12 +329,11 @@ fn refresh_workflows_picks_up_skill_installed_on_disk() {
)
.unwrap();
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
let provider = Arc::new(MockProvider {
responses: Mutex::new(vec![]),
});
@@ -401,12 +400,11 @@ fn refresh_workflows_retracts_skill_removed_from_disk() {
)
.unwrap();
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
let provider = Arc::new(MockProvider {
responses: Mutex::new(vec![]),
});
@@ -502,12 +500,11 @@ async fn turn_without_tools_returns_text() {
}]),
});
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
let mut agent = Agent::builder()
.chat_model(provider)
@@ -549,12 +546,11 @@ async fn last_turn_usage_is_public_and_non_draining() {
}]),
});
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
let mut agent = Agent::builder()
.chat_model(provider)
diff --git a/src/openhuman/agent/harness/session/session_tests_part_02_tests.rs b/src/openhuman/agent/harness/session/session_tests_part_02_tests.rs
index feb0fe949d..8ac5c3cbe3 100644
--- a/src/openhuman/agent/harness/session/session_tests_part_02_tests.rs
+++ b/src/openhuman/agent/harness/session/session_tests_part_02_tests.rs
@@ -29,12 +29,11 @@ async fn turn_with_native_dispatcher_handles_tool_results_variant() {
]),
});
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
let mut agent = Agent::builder()
.chat_model(provider)
@@ -80,12 +79,11 @@ async fn turn_with_native_dispatcher_persists_fallback_tool_calls() {
]),
});
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
let mut agent = Agent::builder()
.chat_model(provider)
@@ -207,12 +205,11 @@ async fn system_prompt_and_model_are_byte_stable_across_turns() {
captures: Mutex::new(Vec::new()),
});
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
let mut agent = Agent::builder()
.chat_model(provider.clone() as Arc<dyn ChatModel<()>>)
diff --git a/src/openhuman/agent/harness/session/session_tests_part_03_tests.rs b/src/openhuman/agent/harness/session/session_tests_part_03_tests.rs
index 4ab1f798d4..64ce54bd9a 100644
--- a/src/openhuman/agent/harness/session/session_tests_part_03_tests.rs
+++ b/src/openhuman/agent/harness/session/session_tests_part_03_tests.rs
@@ -78,12 +78,11 @@ fn seed_resume_from_thread_transcript_preserves_tool_calls_and_reasoning() {
// ── Cold boot: a brand-new agent for the same thread whose agent
// definition name deliberately does NOT match the transcript stem — the
// resume must route purely by thread id, not by agent name. ──
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
let mut agent = Agent::builder()
.chat_model(Arc::new(MockProvider {
responses: Mutex::new(vec![]),
diff --git a/src/openhuman/agent/harness/session/turn_tests.rs b/src/openhuman/agent/harness/session/turn_tests.rs
index 36387dbf67..683d4fcbaa 100644
--- a/src/openhuman/agent/harness/session/turn_tests.rs
+++ b/src/openhuman/agent/harness/session/turn_tests.rs
@@ -385,7 +385,7 @@ fn make_agent(visible_tool_names: Option<HashSet<String>>) -> Agent {
let workspace = tempfile::TempDir::new().expect("temp workspace");
let workspace_path = workspace.path().to_path_buf();
std::mem::forget(workspace);
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
@@ -395,8 +395,7 @@ fn make_agent(visible_tool_names: Option<HashSet<String>>) -> Agent {
// runs the startup wiring that installs it, so the helper installs it
// itself. `install_for_tests` is idempotent (a `Once`), so every helper in
// this file calling it costs one install for the whole binary.
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
let mut builder = Agent::builder()
.chat_model(Arc::new(DummyProvider))
@@ -445,13 +444,12 @@ fn make_agent_with_builder_and_dispatcher(
let workspace = tempfile::TempDir::new().expect("temp workspace");
let workspace_path = workspace.path().to_path_buf();
std::mem::forget(workspace);
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
// The embedding seam, as above.
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
Agent::builder()
.chat_model(provider)
@@ -503,8 +501,7 @@ fn make_agent_with_memory(
.unwrap()
}
-fn make_real_memory(workspace: &std::path::Path) -> Arc<dyn Memory> {
- use crate::openhuman::inference::embeddings::NoopEmbedding;
+fn make_real_memory(_workspace: &std::path::Path) -> Arc<dyn Memory> {
Arc::new(crate::openhuman::memory::tool_memory::test_helpers::MockMemory::default())
}
diff --git a/src/openhuman/agent/harness/session/turn_tests_part_01_tests.rs b/src/openhuman/agent/harness/session/turn_tests_part_01_tests.rs
index 4d8d750878..3be2a10e7b 100644
--- a/src/openhuman/agent/harness/session/turn_tests_part_01_tests.rs
+++ b/src/openhuman/agent/harness/session/turn_tests_part_01_tests.rs
@@ -460,13 +460,12 @@ async fn turn_triggers_configured_memory_agent_before_parent_prompt() {
// fast path finds nothing and the model-driven walk (the two-call sequence
// asserted below) is what actually runs.
let _workspace_env = WorkspaceEnvGuard::set(&workspace_path);
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
// The embedding seam, as above.
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
let mut agent = Agent::builder()
.chat_model(provider)
diff --git a/src/openhuman/agent/harness/session/turn_tests_part_02_tests.rs b/src/openhuman/agent/harness/session/turn_tests_part_02_tests.rs
index 907b6583e3..7193072c3c 100644
--- a/src/openhuman/agent/harness/session/turn_tests_part_02_tests.rs
+++ b/src/openhuman/agent/harness/session/turn_tests_part_02_tests.rs
@@ -79,13 +79,12 @@ async fn turn_override_suppress_memory_agent_skips_memory_trigger() {
let workspace = tempfile::TempDir::new().expect("temp workspace");
let workspace_path = workspace.path().to_path_buf();
let _workspace_env = WorkspaceEnvGuard::set(&workspace_path);
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
// The embedding seam, as above.
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
let mut agent = Agent::builder()
.chat_model(provider)
diff --git a/src/openhuman/agent/harness/session/turn_tests_part_05_tests.rs b/src/openhuman/agent/harness/session/turn_tests_part_05_tests.rs
index 20e9ff5368..7e320f7952 100644
--- a/src/openhuman/agent/harness/session/turn_tests_part_05_tests.rs
+++ b/src/openhuman/agent/harness/session/turn_tests_part_05_tests.rs
@@ -111,12 +111,11 @@ fn make_agent_with_auto_recall(
let workspace = tempfile::TempDir::new().expect("temp workspace");
let workspace_path = workspace.path().to_path_buf();
std::mem::forget(workspace);
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
Agent::builder()
.chat_model(provider)
diff --git a/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rs b/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rs
index df8af3d504..e9610aed37 100644
--- a/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rs
+++ b/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rs
@@ -496,12 +496,11 @@ async fn agent_turn_runs_long_parallel_subagent_flow_with_many_nested_tool_calls
let provider = ParallelHarnessProvider::default();
let fixture_state = Arc::new(FixtureStepState::default());
- let memory_cfg = crate::openhuman::config::MemoryConfig {
+ let _memory_cfg = crate::openhuman::config::MemoryConfig {
backend: "none".into(),
..crate::openhuman::config::MemoryConfig::default()
};
- let mem: Arc<dyn Memory> =
- crate::openhuman::memory::test_support::noop_memory();
+ let mem: Arc<dyn Memory> = crate::openhuman::memory::test_support::noop_memory();
let tools: Vec<Box<dyn Tool>> = vec![
Box::new(SpawnParallelAgentsTool::new()),
diff --git a/src/openhuman/channels/tests/memory.rs b/src/openhuman/channels/tests/memory.rs
index 9690438016..7555b2360a 100644
--- a/src/openhuman/channels/tests/memory.rs
+++ b/src/openhuman/channels/tests/memory.rs
@@ -5,12 +5,10 @@ use super::super::context::{
use super::super::runtime::process_channel_message;
use super::super::{traits, Channel};
use super::common::{HistoryCaptureModel, RecordingChannel};
-use crate::openhuman::inference::embeddings::NoopEmbedding;
use crate::openhuman::inference::provider;
-use crate::openhuman::memory::{Memory, MemoryCategory};
+use crate::openhuman::memory::Memory;
use std::collections::HashMap;
use std::sync::{Arc, Mutex};
-use tempfile::TempDir;
use tinymemory_api::provider::MemoryCore as _;
fn conversation_memory_key_uses_message_id() {
diff --git a/src/openhuman/desktop/app_state/ops_current_user_backoff_tests.rs b/src/openhuman/desktop/app_state/ops_current_user_backoff_tests.rs
index 3e03efbf7b..e07f6ef1f8 100644
--- a/src/openhuman/desktop/app_state/ops_current_user_backoff_tests.rs
+++ b/src/openhuman/desktop/app_state/ops_current_user_backoff_tests.rs
@@ -7,7 +7,6 @@
use super::*;
use once_cell::sync::Lazy as TestLazy;
-use serde_json::json;
// ── Current-user failure backoff (#5624) ────────────────────────────────────
//
diff --git a/src/openhuman/flows/memory_tools_tests.rs b/src/openhuman/flows/memory_tools_tests.rs
index 5b50f824ff..8e8d3a2c13 100644
--- a/src/openhuman/flows/memory_tools_tests.rs
+++ b/src/openhuman/flows/memory_tools_tests.rs
@@ -1,5 +1,4 @@
use super::*;
-use crate::openhuman::inference::embeddings::NoopEmbedding;
use crate::openhuman::security::AutonomyLevel;
use tempfile::TempDir;
diff --git a/src/openhuman/flows/tinyflows/memory_node_e2e_tests.rs b/src/openhuman/flows/tinyflows/memory_node_e2e_tests.rs
index 74c24cd8bb..8d9dafc6f1 100644
--- a/src/openhuman/flows/tinyflows/memory_node_e2e_tests.rs
+++ b/src/openhuman/flows/tinyflows/memory_node_e2e_tests.rs
@@ -50,7 +50,6 @@ use tinyflows::model::{Edge, Node, NodeKind, WorkflowGraph};
use crate::openhuman::agent::turn_origin::{self, AgentTurnOrigin, TrustedAutomationSource};
use crate::openhuman::config::Config;
-use crate::openhuman::flows::flow_namespace;
use crate::openhuman::flows::memory_tools::FlowMemoryRecallTool;
use crate::openhuman::security::AutonomyLevel;
use crate::openhuman::tools::traits::Tool;
@@ -269,4 +268,3 @@ async fn memory_node_remember_then_recall_round_trips_through_the_real_engine_an
// ── 4. dry_run_workflow still works with a memory node: MockMemory returns
// shaped data without ever touching the real store ─────────────────────────
-
diff --git a/src/openhuman/inference/embeddings/mod.rs b/src/openhuman/inference/embeddings/mod.rs
index ea2217abe5..6bab9d8d09 100644
--- a/src/openhuman/inference/embeddings/mod.rs
+++ b/src/openhuman/inference/embeddings/mod.rs
@@ -60,8 +60,6 @@ pub(crate) use factory::MODELS_SUPPORTING_DIMENSIONS;
// `-D warnings`. The
// function itself is not test-only: `factory` and `embeddings::rpc` both reach
// it directly through `super::factory::`, which is why only the re-export moves.
-#[cfg(any(test, feature = "memory-engine-seams"))]
-pub(crate) use factory::model_supports_dimensions;
// #002 FR-015: the memory-tree OpenAI-compat embedder reuses the same key
// resolution the embeddings RPC uses, so there is one source of truth.
pub use noop::NoopEmbedding;
@@ -74,7 +72,7 @@ pub use rpc::provider_from_config;
// gated on `memory-engine-seams` since #5560). `embeddings::rpc` itself names
// the function
// through `super::rpc`, not through here, so this gate does not narrow it.
-#[cfg(any(test, feature = "modules", feature = "memory-engine-seams"))]
+#[cfg(any(test, feature = "modules"))]
pub(crate) use rpc::resolve_api_key;
pub use schemas::{
all_controller_schemas as all_embeddings_controller_schemas,
diff --git a/src/openhuman/inference/provider/factory.rs b/src/openhuman/inference/provider/factory.rs
index 4496155609..85915a224c 100644
--- a/src/openhuman/inference/provider/factory.rs
+++ b/src/openhuman/inference/provider/factory.rs
@@ -32,7 +32,7 @@
/// and clear it via the returned guard. Inert in production: the check below
/// is gated on `cfg(test)` or an off-by-default test/profiling feature,
/// so the override is never consulted in shipped builds.
-#[cfg(any(test, feature = "e2e-test-support", feature = "rss-bench"))]
+#[cfg(any(test, feature = "e2e-test-support"))]
#[path = "factory_test_provider_override_tests.rs"]
pub mod test_provider_override;
diff --git a/src/openhuman/inference/provider/factory_part_02.rs b/src/openhuman/inference/provider/factory_part_02.rs
index e3756781b1..9e54b05e7a 100644
--- a/src/openhuman/inference/provider/factory_part_02.rs
+++ b/src/openhuman/inference/provider/factory_part_02.rs
@@ -3,7 +3,7 @@ fn create_chat_model_with_model_id_inner(
role: &str,
config: &Config,
) -> anyhow::Result<(Arc<dyn ChatModel<()>>, String)> {
- #[cfg(any(test, feature = "e2e-test-support", feature = "rss-bench"))]
+ #[cfg(any(test, feature = "e2e-test-support"))]
if let Some(model) = test_provider_override::current() {
return Ok((model, "mock-model".to_string()));
}
@@ -14,11 +14,11 @@ fn create_chat_model_with_model_id_inner(
// override is installed. The public wrapper supplies the construction-time
// default while preserving an explicit per-call `ModelRequest` temperature.
let test_override_active = {
- #[cfg(any(test, feature = "e2e-test-support", feature = "rss-bench"))]
+ #[cfg(any(test, feature = "e2e-test-support"))]
{
test_provider_override::current().is_some()
}
- #[cfg(not(any(test, feature = "e2e-test-support", feature = "rss-bench")))]
+ #[cfg(not(any(test, feature = "e2e-test-support")))]
{
false
}
@@ -91,7 +91,7 @@ fn resolves_to_managed_backend(role: &str, config: &Config) -> bool {
/// `resolves_to_managed_backend` is a pure config read that would otherwise
/// still call this "managed" in a test with a bare default `Config`.
pub async fn probe_inference_readiness(role: &str, config: &Config) -> Result<(), String> {
- #[cfg(any(test, feature = "e2e-test-support", feature = "rss-bench"))]
+ #[cfg(any(test, feature = "e2e-test-support"))]
if test_provider_override::current().is_some() {
log::debug!(
"[flows][inference-probe] role={role} test model override active — skipping probe"
@@ -161,16 +161,16 @@ fn create_chat_model_from_string_with_model_id_inner(
provider: &str,
config: &Config,
) -> anyhow::Result<(Arc<dyn ChatModel<()>>, String)> {
- #[cfg(any(test, feature = "e2e-test-support", feature = "rss-bench"))]
+ #[cfg(any(test, feature = "e2e-test-support"))]
if let Some(model) = test_provider_override::current() {
return Ok((model, "mock-model".to_string()));
}
let test_override_active = {
- #[cfg(any(test, feature = "e2e-test-support", feature = "rss-bench"))]
+ #[cfg(any(test, feature = "e2e-test-support"))]
{
test_provider_override::current().is_some()
}
- #[cfg(not(any(test, feature = "e2e-test-support", feature = "rss-bench")))]
+ #[cfg(not(any(test, feature = "e2e-test-support")))]
{
false
}
diff --git a/src/openhuman/inference/provider/factory_part_03.rs b/src/openhuman/inference/provider/factory_part_03.rs
index 6cd974f4b1..c9a9db424b 100644
--- a/src/openhuman/inference/provider/factory_part_03.rs
+++ b/src/openhuman/inference/provider/factory_part_03.rs
@@ -5,7 +5,7 @@ fn create_turn_chat_model_with_native_tools_and_route_inner(
model: &str,
native_tool_calling: bool,
) -> anyhow::Result<(Arc<dyn ChatModel<()>>, String, String)> {
- #[cfg(any(test, feature = "e2e-test-support", feature = "rss-bench"))]
+ #[cfg(any(test, feature = "e2e-test-support"))]
if let Some(chat) = test_provider_override::current() {
let provider = chat
.profile()
@@ -14,11 +14,11 @@ fn create_turn_chat_model_with_native_tools_and_route_inner(
return Ok((chat, provider, model.to_string()));
}
let test_override_active = {
- #[cfg(any(test, feature = "e2e-test-support", feature = "rss-bench"))]
+ #[cfg(any(test, feature = "e2e-test-support"))]
{
test_provider_override::current().is_some()
}
- #[cfg(not(any(test, feature = "e2e-test-support", feature = "rss-bench")))]
+ #[cfg(not(any(test, feature = "e2e-test-support")))]
{
false
}
@@ -258,7 +258,7 @@ pub(crate) fn create_turn_chat_model_from_string_with_native_tools_and_route(
temperature: f64,
native_tool_calling: bool,
) -> anyhow::Result<(Arc<dyn ChatModel<()>>, String, String)> {
- #[cfg(any(test, feature = "e2e-test-support", feature = "rss-bench"))]
+ #[cfg(any(test, feature = "e2e-test-support"))]
if let Some(chat) = test_provider_override::current() {
let provider = chat
.profile()
@@ -271,11 +271,11 @@ pub(crate) fn create_turn_chat_model_from_string_with_native_tools_and_route(
));
}
let test_override_active = {
- #[cfg(any(test, feature = "e2e-test-support", feature = "rss-bench"))]
+ #[cfg(any(test, feature = "e2e-test-support"))]
{
test_provider_override::current().is_some()
}
- #[cfg(not(any(test, feature = "e2e-test-support", feature = "rss-bench")))]
+ #[cfg(not(any(test, feature = "e2e-test-support")))]
{
false
}
diff --git a/src/openhuman/integrations/composio/ops/mod.rs b/src/openhuman/integrations/composio/ops/mod.rs
index 02fd1fa9d1..b13dfa97eb 100644
--- a/src/openhuman/integrations/composio/ops/mod.rs
+++ b/src/openhuman/integrations/composio/ops/mod.rs
@@ -110,8 +110,6 @@ pub(crate) use error_utils::{
resolve_client,
};
#[cfg(test)]
-pub(crate) use memory_cleanup::{composio_memory_targets_for_connection, MemoryCleanupTarget};
-#[cfg(test)]
pub(crate) use providers_ops::parse_sync_reason;
#[cfg(test)]
diff --git a/src/openhuman/integrations/composio/ops_tests_part_01_tests.rs b/src/openhuman/integrations/composio/ops_tests_part_01_tests.rs
index 88a66015e3..3d8cca77fc 100644
--- a/src/openhuman/integrations/composio/ops_tests_part_01_tests.rs
+++ b/src/openhuman/integrations/composio/ops_tests_part_01_tests.rs
@@ -385,4 +385,3 @@ async fn composio_delete_connection_via_mock() {
.unwrap();
assert!(outcome.value.deleted);
}
-
diff --git a/src/openhuman/integrations/composio/ops_tests_part_02_tests.rs b/src/openhuman/integrations/composio/ops_tests_part_02_tests.rs
index 23e5ba1d60..7ce9834086 100644
--- a/src/openhuman/integrations/composio/ops_tests_part_02_tests.rs
+++ b/src/openhuman/integrations/composio/ops_tests_part_02_tests.rs
@@ -148,4 +148,3 @@ async fn composio_execute_via_mock_propagates_backend_error() {
assert!(err.starts_with("[composio:error:"), "got: {err}");
assert!(err.contains("rate limited"), "got: {err}");
}
-
diff --git a/src/openhuman/memory/ops/learn_tests.rs b/src/openhuman/memory/ops/learn_tests.rs
index eb544142fe..f140eada0e 100644
--- a/src/openhuman/memory/ops/learn_tests.rs
+++ b/src/openhuman/memory/ops/learn_tests.rs
@@ -1,7 +1,6 @@
use std::ffi::OsString;
use serde_json::json;
-use tempfile::TempDir;
use super::*;
use crate::openhuman::memory::api::types::NamespaceDocumentInput;
@@ -115,4 +114,3 @@ async fn memory_learn_all_is_noop_when_requested_namespaces_do_not_exist() {
assert_eq!(outcome.value.namespaces_processed, 0);
assert!(outcome.value.results.is_empty());
}
-
diff --git a/src/openhuman/memory/ops/mod.rs b/src/openhuman/memory/ops/mod.rs
index 4f33bc6b42..0dba05e841 100644
--- a/src/openhuman/memory/ops/mod.rs
+++ b/src/openhuman/memory/ops/mod.rs
@@ -80,8 +80,8 @@ pub(crate) use envelope::{error_envelope, memory_counts, memory_request_id};
pub(crate) use helpers::{
build_retrieval_context, chunk_metadata, default_category, default_priority,
default_source_type, extract_entity_type, filter_hits_by_document_ids,
- format_llm_context_message, maybe_retrieval_context, memory_kind_label, relation_identity,
- relation_metadata, timestamp_to_rfc3339, validate_memory_relative_path,
+ format_llm_context_message, maybe_retrieval_context, relation_identity, relation_metadata,
+ timestamp_to_rfc3339, validate_memory_relative_path,
};
/// Serializes the tests that drive the process-global memory client
@@ -93,7 +93,6 @@ pub(crate) use helpers::{
pub(crate) static GLOBAL_MEMORY_TEST_LOCK: tokio::sync::Mutex<()> =
tokio::sync::Mutex::const_new(());
#[cfg(all(test, feature = "modules"))]
-
#[cfg(test)]
#[path = "../ops_tests.rs"]
mod tests;
diff --git a/src/openhuman/memory/ops_tests.rs b/src/openhuman/memory/ops_tests.rs
index cabd579f11..bf5dd7fd6b 100644
--- a/src/openhuman/memory/ops_tests.rs
+++ b/src/openhuman/memory/ops_tests.rs
@@ -3,8 +3,8 @@
// The engine's re-export and the contract's are the same item; name the
// contract, which is what this crate still links (openhuman#6161).
-use tinymemory_api::types::{MemoryItemKind, NamespaceMemoryHit, RetrievalScoreBreakdown};
use serde_json::json;
+use tinymemory_api::types::{MemoryItemKind, NamespaceMemoryHit, RetrievalScoreBreakdown};
use super::{build_retrieval_context, filter_hits_by_document_ids, format_llm_context_message};
use crate::openhuman::memory::api::types::GraphRelationRecord;
@@ -154,9 +154,8 @@ fn format_llm_context_message_includes_entity_types_when_present() {
use super::{
chunk_metadata, default_category, default_priority, default_source_type, error_envelope,
- extract_entity_type, maybe_retrieval_context, memory_counts, memory_kind_label,
- memory_request_id, relation_identity, relation_metadata, timestamp_to_rfc3339,
- validate_memory_relative_path,
+ extract_entity_type, maybe_retrieval_context, memory_counts, memory_request_id,
+ relation_identity, relation_metadata, timestamp_to_rfc3339, validate_memory_relative_path,
};
use crate::openhuman::memory::{ApiEnvelope, MemoryRetrievalContext};
use crate::rpc::RpcOutcome;
diff --git a/src/openhuman/memory/people/mod_contacts_gate_tests_tests.rs b/src/openhuman/memory/people/mod_contacts_gate_tests_tests.rs
index e69de29bb2..8b13789179 100644
--- a/src/openhuman/memory/people/mod_contacts_gate_tests_tests.rs
+++ b/src/openhuman/memory/people/mod_contacts_gate_tests_tests.rs
@@ -0,0 +1 @@
+
diff --git a/src/openhuman/memory/query/ingest_document_tests.rs b/src/openhuman/memory/query/ingest_document_tests.rs
index b11f78a3c0..f20c7c6895 100644
--- a/src/openhuman/memory/query/ingest_document_tests.rs
+++ b/src/openhuman/memory/query/ingest_document_tests.rs
@@ -153,4 +153,3 @@ async fn execute_rejects_blank_required_fields() {
.expect("blank source_id should return ToolResult error");
assert!(result.is_error);
}
-
diff --git a/src/openhuman/memory/read_rpc_tests.rs b/src/openhuman/memory/read_rpc_tests.rs
index 2c997e2ccd..8351dba3a9 100644
--- a/src/openhuman/memory/read_rpc_tests.rs
+++ b/src/openhuman/memory/read_rpc_tests.rs
@@ -1,6 +1,4 @@
use super::*;
-use chrono::{TimeZone, Utc};
-use rusqlite::params;
use tempfile::TempDir;
fn test_config() -> (TempDir, Config) {
diff --git a/src/openhuman/memory/read_rpc_tests_part_02_tests.rs b/src/openhuman/memory/read_rpc_tests_part_02_tests.rs
index c4f1074616..7c40b927c8 100644
--- a/src/openhuman/memory/read_rpc_tests_part_02_tests.rs
+++ b/src/openhuman/memory/read_rpc_tests_part_02_tests.rs
@@ -158,4 +158,3 @@ async fn vault_rpcs_report_core_host_os() {
"host_os must be populated"
);
}
-
diff --git a/src/openhuman/memory/tool_memory/test_support/mod.rs b/src/openhuman/memory/tool_memory/test_support/mod.rs
index d0c9630fa9..4961ac85df 100644
--- a/src/openhuman/memory/tool_memory/test_support/mod.rs
+++ b/src/openhuman/memory/tool_memory/test_support/mod.rs
@@ -25,8 +25,8 @@
//! tests reach `memory.entries.lock()` directly, and a `std` mutex would make
//! every one of those call sites grow an `unwrap`.
-use std::collections::HashMap;
use parking_lot::Mutex;
+use std::collections::HashMap;
use async_trait::async_trait;
use tinymemory_api::recall::RecallOpts;
diff --git a/src/openhuman/memory/tools/doctor_tests.rs b/src/openhuman/memory/tools/doctor_tests.rs
index 051f34fd88..04e5b73133 100644
--- a/src/openhuman/memory/tools/doctor_tests.rs
+++ b/src/openhuman/memory/tools/doctor_tests.rs
@@ -18,4 +18,3 @@ fn name_and_schema() {
// No required args.
assert_eq!(tool.parameters_schema()["required"], json!([]));
}
-
diff --git a/src/openhuman/memory/tree/retrieval/mod.rs b/src/openhuman/memory/tree/retrieval/mod.rs
index 280ed82c9e..0ae5c30c5b 100644
--- a/src/openhuman/memory/tree/retrieval/mod.rs
+++ b/src/openhuman/memory/tree/retrieval/mod.rs
@@ -52,7 +52,6 @@
pub mod rpc;
pub mod schemas;
-
// The controller aggregators this domain's RPC surface defines. Aliased
// exactly as the pre-extraction module exported them.
pub use schemas::{
diff --git a/src/openhuman/memory/tree/tree_runtime/cli_tests.rs b/src/openhuman/memory/tree/tree_runtime/cli_tests.rs
index f28530cad2..517b619af5 100644
--- a/src/openhuman/memory/tree/tree_runtime/cli_tests.rs
+++ b/src/openhuman/memory/tree/tree_runtime/cli_tests.rs
@@ -225,4 +225,3 @@ fn init_logging_sets_default_rust_log_only_when_needed() {
assert_eq!(std::env::var("RUST_LOG").ok().as_deref(), Some("debug"));
}
}
-
diff --git a/src/openhuman/memory/tree/tree_runtime/mod.rs b/src/openhuman/memory/tree/tree_runtime/mod.rs
index 5b3891dd1c..47d66eb377 100644
--- a/src/openhuman/memory/tree/tree_runtime/mod.rs
+++ b/src/openhuman/memory/tree/tree_runtime/mod.rs
@@ -42,7 +42,6 @@ pub use crate::openhuman::memory::api::tree::{
pub mod ops;
pub mod schemas;
-
pub use ops as rpc;
pub mod bus;
diff --git a/src/openhuman/memory/tree/tree_runtime/ops_tests.rs b/src/openhuman/memory/tree/tree_runtime/ops_tests.rs
index 4be650db29..4309867b4b 100644
--- a/src/openhuman/memory/tree/tree_runtime/ops_tests.rs
+++ b/src/openhuman/memory/tree/tree_runtime/ops_tests.rs
@@ -1,5 +1,4 @@
use super::*;
-use chrono::TimeZone;
use tempfile::TempDir;
// `TreeNode`, `level_from_node_id` and `derive_parent_id` used to arrive
@@ -86,4 +85,3 @@ fn create_provider_uses_cloud_when_opted_in_and_local_ai_off() {
"cloud fallback must resolve a model"
);
}
-
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rs
index f410eecd76..7a512486ef 100644
--- a/tests/agent_harness_e2e.rs
+++ b/tests/agent_harness_e2e.rs
@@ -2363,7 +2363,7 @@ mod streaming_support {
use async_trait::async_trait;
use openhuman_core::openhuman::agent::dispatcher::NativeToolDispatcher;
use openhuman_core::openhuman::agent::Agent;
- use openhuman_core::openhuman::config::{AgentConfig, ContextConfig, MemoryConfig};
+ use openhuman_core::openhuman::config::{AgentConfig, ContextConfig};
use openhuman_core::openhuman::memory::Memory;
use openhuman_core::openhuman::tools::traits::ToolCallOptions;
use openhuman_core::openhuman::tools::{
diff --git a/tests/agent_turn_overrides_e2e.rs b/tests/agent_turn_overrides_e2e.rs
index a7322c4780..a95392f713 100644
--- a/tests/agent_turn_overrides_e2e.rs
+++ b/tests/agent_turn_overrides_e2e.rs
@@ -38,7 +38,7 @@ use openhuman_core::openhuman::agent::dispatcher::{NativeToolDispatcher, XmlTool
use openhuman_core::openhuman::agent::harness::session::TurnOverrides;
use openhuman_core::openhuman::agent::tinyagents::thread_context::with_thread_id;
use openhuman_core::openhuman::agent::Agent;
-use openhuman_core::openhuman::config::{AgentConfig, Config, ContextConfig, MemoryConfig};
+use openhuman_core::openhuman::config::{AgentConfig, ContextConfig};
use openhuman_core::openhuman::threads::goals::{runtime as goal_runtime, store as goal_store};
use openhuman_core::openhuman::tools::{
PermissionLevel, Tool, ToolContent, ToolResult, ToolScope as RuntimeToolScope,
@@ -92,8 +92,7 @@ fn ensure_memory_seams() {
std::thread::Builder::new()
.name("turn-overrides-e2e-seams".to_string())
.stack_size(8 * 1024 * 1024)
- .spawn(|| {
- })
+ .spawn(|| {})
.expect("spawn turn-overrides seam installer")
.join()
.expect("turn-overrides seam installer panicked");
diff --git a/tests/personality_e2e.rs b/tests/personality_e2e.rs
index 3c14e7e0e2..30923b5ad1 100644
--- a/tests/personality_e2e.rs
+++ b/tests/personality_e2e.rs
@@ -13,9 +13,7 @@
//! Run with: `cargo test --test personality_e2e`
use std::collections::HashSet;
-use std::sync::Arc;
-use serde_json::json;
use tempfile::tempdir;
use openhuman_core::openhuman::agent::profiles::{
@@ -31,11 +29,9 @@ use openhuman_core::openhuman::agent::prompts::{
IdentitySection, PersonalityRosterEntry, PersonalityRosterSection, PromptContext,
PromptSection, ToolCallFormat, UserFilesSection,
};
-use openhuman_core::openhuman::inference::embeddings::NoopEmbedding;
use openhuman_core::openhuman::memory::conversations::{
ensure_thread, list_threads, update_thread_title, ConversationStore, CreateConversationThread,
};
-use openhuman_core::openhuman::memory::NamespaceDocumentInput;
// The engine handle is named on the crate rather than reached through the
// memory module's public surface: it is an in-process engine type, not
// contract vocabulary, and the alias that used to re-export it existed for
diff --git a/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs b/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs
index c0cbaf6045..aef9446265 100644
--- a/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs
@@ -3159,7 +3159,7 @@ async fn agent_public_tools_cover_validation_and_metadata_paths() {
#[tokio::test]
async fn agent_preference_tools_tree_loader_and_triage_events_cover_public_edges() {
- let memory = Arc::new(RecordingMemory::default());
+ let _memory = Arc::new(RecordingMemory::default());
let security = Arc::new(SecurityPolicy::default());
assert_eq!(FacetClass::parse(" Tooling "), Some(FacetClass::Tooling));
diff --git a/tests/raw_coverage/inference_local_services_round21_raw_coverage_e2e.rs b/tests/raw_coverage/inference_local_services_round21_raw_coverage_e2e.rs
index 96feb9dbb7..cebc5ecedb 100644
--- a/tests/raw_coverage/inference_local_services_round21_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/inference_local_services_round21_raw_coverage_e2e.rs
@@ -154,7 +154,7 @@ async fn local_services_cover_mocked_inference_assets_speech_and_ops_entry_point
"adds tests"
);
- let progress = service.downloads_progress(&config).await.expect("progress");
+ let _progress = service.downloads_progress(&config).await.expect("progress");
let after_tts = service
.download_asset(&config, "tts")
.await
diff --git a/tests/raw_coverage/medulla_session_e2e.rs b/tests/raw_coverage/medulla_session_e2e.rs
index 2545293017..aa1d28808e 100644
--- a/tests/raw_coverage/medulla_session_e2e.rs
+++ b/tests/raw_coverage/medulla_session_e2e.rs
@@ -265,7 +265,7 @@ async fn serve_fixture_backend() -> (
async fn send_message(
State(state): State<Arc<BackendState>>,
- AxumPath(id): AxumPath<String>,
+ AxumPath(_id): AxumPath<String>,
Query(query): Query<std::collections::HashMap<String, String>>,
headers: HeaderMap,
Json(body): Json<Value>,
diff --git a/tests/transcript_search_e2e.rs b/tests/transcript_search_e2e.rs
index b88f88c6ab..b00f84774f 100644
--- a/tests/transcript_search_e2e.rs
+++ b/tests/transcript_search_e2e.rs
@@ -23,7 +23,6 @@ use openhuman_core::openhuman::memory::conversations::{
ConversationMessage, ConversationStore, CreateConversationThread,
};
use openhuman_core::openhuman::threads::ops::transcript_search;
-use openhuman_core::openhuman::tools::traits::Tool;
// ── Env isolation (mirrors tests/memory_roundtrip_e2e.rs) ────────────────────
diff --git a/tests/worker_c_modules_e2e.rs b/tests/worker_c_modules_e2e.rs
index a9edb5aa12..572c1ac008 100644
--- a/tests/worker_c_modules_e2e.rs
+++ b/tests/worker_c_modules_e2e.rs
@@ -123,8 +123,7 @@ async fn setup() -> Harness {
std::thread::Builder::new()
.name("worker-c-memory-seams".to_string())
.stack_size(8 * 1024 * 1024)
- .spawn(|| {
- })
+ .spawn(|| {})
.expect("spawn worker-c memory seam installer")
.join()
.expect("worker-c memory seam installer panicked");