Skip to content

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

refactor(agent): reorganise test modules into topic-named files

Steven Enamakel01399392a1b4
diff --git a/crates/openhuman-core/src/agent/harness/harness_tests.rs b/crates/openhuman-core/src/agent/harness/harness_tests.rs
index f21ab93c92..a7acf6f61a 100644
--- a/crates/openhuman-core/src/agent/harness/harness_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/harness_tests.rs
@@ -7,7 +7,7 @@ use super::parse::{
use crate::tools;
use std::sync::Arc;
-#[path = "harness_tests_part_01_tests.rs"]
-mod part_01_tests;
-#[path = "harness_tests_part_02_tests.rs"]
-mod part_02_tests;
+#[path = "harness_tool_call_parsing_tests.rs"]
+mod harness_tool_call_parsing_tests;
+#[path = "harness_tool_call_parsing_edge_case_tests.rs"]
+mod harness_tool_call_parsing_edge_case_tests;
diff --git a/crates/openhuman-core/src/agent/harness/session/builder/builder_tests.rs b/crates/openhuman-core/src/agent/harness/session/builder/builder_tests.rs
index 214648a139..29de9a7a09 100644
--- a/crates/openhuman-core/src/agent/harness/session/builder/builder_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/session/builder/builder_tests.rs
@@ -61,14 +61,14 @@ fn custom_profile(id: &str, dedicated_memory: bool) -> crate::agent::profiles::A
profile
}
-#[path = "builder_tests_part_01_tests.rs"]
-mod part_01_tests;
-#[path = "builder_tests_part_02_tests.rs"]
-mod part_02_tests;
-#[path = "builder_tests_part_03_tests.rs"]
-mod part_03_tests;
-#[path = "builder_tests_part_04_tests.rs"]
-mod part_04_tests;
+#[path = "builder_tests_session_agent_profile_tests.rs"]
+mod session_agent_profile_tests;
+#[path = "builder_tests_profile_soul_prompt_tests.rs"]
+mod profile_soul_prompt_tests;
+#[path = "builder_tests_memory_write_instruction_tests.rs"]
+mod memory_write_instruction_tests;
+#[path = "builder_tests_tool_spec_views_tests.rs"]
+mod tool_spec_views_tests;
// ── use_skill's advertised spec is scoped to the session ────────────────────
diff --git a/crates/openhuman-core/src/agent/registry/agents/loader_tests.rs b/crates/openhuman-core/src/agent/registry/agents/loader_tests.rs
index 43975e259b..8f2de02fb9 100644
--- a/crates/openhuman-core/src/agent/registry/agents/loader_tests.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/loader_tests.rs
@@ -12,9 +12,9 @@ fn find(id: &str) -> AgentDefinition {
.unwrap_or_else(|| panic!("missing built-in {id}"))
}
-#[path = "loader_tests_part_01_tests.rs"]
-mod part_01_tests;
-#[path = "loader_tests_part_02_tests.rs"]
-mod part_02_tests;
-#[path = "loader_tests_part_03_tests.rs"]
-mod part_03_tests;
+#[path = "loader_tests_builtin_registration_tests.rs"]
+mod builtin_registration_tests;
+#[path = "loader_tests_specialist_agents_tests.rs"]
+mod specialist_agents_tests;
+#[path = "loader_tests_orchestrator_tier_tests.rs"]
+mod orchestrator_tier_tests;
diff --git a/crates/openhuman-core/src/agent/registry/agents/loader_tests_part_01_tests.rs b/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs
similarity index 100%
rename from crates/openhuman-core/src/agent/registry/agents/loader_tests_part_01_tests.rs
rename to crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs
diff --git a/crates/openhuman-core/src/agent/registry/agents/loader_tests_part_03_tests.rs b/crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rs
similarity index 100%
rename from crates/openhuman-core/src/agent/registry/agents/loader_tests_part_03_tests.rs
rename to crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rs
diff --git a/crates/openhuman-core/src/agent/registry/agents/loader_tests_part_02_tests.rs b/crates/openhuman-core/src/agent/registry/agents/loader_tests_specialist_agents_tests.rs
similarity index 100%
rename from crates/openhuman-core/src/agent/registry/agents/loader_tests_part_02_tests.rs
rename to crates/openhuman-core/src/agent/registry/agents/loader_tests_specialist_agents_tests.rs