Skip to content

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

test(config): remove unused delegate agent config from tests

Steven Enamakel6da42a5a6a64
diff --git a/crates/openhuman-core/src/config/migrations/retire_managed_tier_slugs_tests.rs b/crates/openhuman-core/src/config/migrations/retire_managed_tier_slugs_tests.rs
index 3375873c7b..ee7fcceca2 100644
--- a/crates/openhuman-core/src/config/migrations/retire_managed_tier_slugs_tests.rs
+++ b/crates/openhuman-core/src/config/migrations/retire_managed_tier_slugs_tests.rs
@@ -1,14 +1,5 @@
use super::*;
-use crate::config::schema::{DelegateAgentConfig, ModelRouteConfig, TeamModelConfig};
-
-fn delegate(model: &str) -> DelegateAgentConfig {
- DelegateAgentConfig {
- model: model.to_string(),
- system_prompt: None,
- temperature: None,
- max_depth: 3,
- }
-}
+use crate::config::schema::{ModelRouteConfig, TeamModelConfig};
#[test]
fn rewrites_every_tier_slug_to_the_managed_default() {
@@ -22,9 +13,6 @@ fn rewrites_every_tier_slug_to_the_managed_default() {
agent_model: Some("burst-v1".to_string()),
},
);
- config
- .agents
- .insert("coder".to_string(), delegate("coding-v1"));
config.model_routes.push(ModelRouteConfig {
hint: "summarization".to_string(),
model: "summarization-v1".to_string(),
@@ -32,7 +20,7 @@ fn rewrites_every_tier_slug_to_the_managed_default() {
let stats = run(&mut config).expect("migration runs");
- assert_eq!(stats.rewritten, 6);
+ assert_eq!(stats.rewritten, 5);
assert_eq!(config.default_model.as_deref(), Some(MODEL_MANAGED_DEFAULT));
assert_eq!(
config.orchestrator.model.as_deref(),
@@ -46,7 +34,6 @@ fn rewrites_every_tier_slug_to_the_managed_default() {
config.teams["research"].agent_model.as_deref(),
Some(MODEL_MANAGED_DEFAULT)
);
- assert_eq!(config.agents["coder"].model, MODEL_MANAGED_DEFAULT);
assert_eq!(config.model_routes[0].model, MODEL_MANAGED_DEFAULT);
// The route's hint key is the role and stays.
assert_eq!(config.model_routes[0].hint, "summarization");
@@ -57,7 +44,6 @@ fn leaves_concrete_ids_hints_and_empty_values_alone() {
let mut config = Config::default();
config.default_model = Some("openrouter/deepseek/deepseek-v4-pro".to_string());
config.orchestrator.model = Some("hint:reasoning".to_string());
- config.agents.insert("byok".to_string(), delegate("gpt-4o"));
let stats = run(&mut config).expect("migration runs");
@@ -67,7 +53,6 @@ fn leaves_concrete_ids_hints_and_empty_values_alone() {
Some("openrouter/deepseek/deepseek-v4-pro")
);
assert_eq!(config.orchestrator.model.as_deref(), Some("hint:reasoning"));
- assert_eq!(config.agents["byok"].model, "gpt-4o");
}
#[test]