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
fix(test): correct managed model resolution for retired tier slugs
Steven Enamakel194d54723dd7
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rsindex 1715edf189..26a43534ea 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs@@ -412,11 +412,8 @@ fn resolve_subagent_source_hint_with_config_routes_via_factory() {// is the workload's canonical managed tier — NOT `default_model`,// and NOT the parent's model.//- // Regression (#hint-routing): the managed backend used to ignore the- // workload role and return `default_model`, so `hint = "agentic"`- // silently ran on whatever `default_model` was (here `chat-v1`).- // `make_openhuman_backend` now pins specialised roles to their tier,- // so `agentic` resolves to `agentic-v1` regardless of `default_model`.+ // Every managed role runs on the managed default model; a retired tier+ // slug in `default_model` is not a pin and must not leak to the backend.use crate::config::Config;let mut config = Config::default();// Route `agentic` to the OpenHuman backend explicitly, and set a@@ -437,9 +434,10 @@ fn resolve_subagent_source_hint_with_config_routes_via_factory() {0.0,);assert_eq!(- resolved_model, "agentic-v1",- "Hint must resolve to the workload's managed tier (agentic-v1), not \- fall back to default_model (chat-v1) or the parent's model"+ resolved_model,+ crate::config::MODEL_MANAGED_DEFAULT,+ "Hint must resolve to the managed default model, not a retired tier \+ slug from default_model or the parent's model");}diff --git a/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs b/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rsindex 30dc88cc11..adea1944a8 100644--- a/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs+++ b/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs@@ -144,14 +144,15 @@ async fn one_shot_chat_models_preserve_factory_temperature_as_request_default().await.expect("explicit-temperature invoke");- let turn_model = create_turn_chat_model("chat", &config, "chat-v1", 0.2).expect("turn model");+ let turn_model =+ create_turn_chat_model("chat", &config, "hint:chat", 0.2).expect("turn model");turn_model.invoke(&(), ModelRequest::new(vec![Message::user("turn default")])).await.expect("turn default-temperature invoke");let explicit_turn_model =- create_turn_chat_model_from_string("chat", "openhuman", &config, "chat-v1", 0.4)+ create_turn_chat_model_from_string("chat", "openhuman", &config, "hint:chat", 0.4).expect("explicit turn model");explicit_turn_model.invoke(@@ -374,13 +375,22 @@ fn configured_openhuman_jwt_slug_routes_to_managed_chat_model() {let _guard = crate::inference::inference_test_guard();let mut config = Config::default();config.cloud_providers.push(oh_entry("p_oh"));+ // A retired tier slug after the managed slug is a role alias: it runs on+ // the managed default, never reaches the backend verbatim.config.chat_provider = Some("openhuman:reasoning-v1".to_string());let (model, model_id) = try_create_cloud_slug_chat_model("chat", &config).expect("configured OpenhumanJwt slug should be recognized").expect("managed model should build");- assert_eq!(model_id, "reasoning-v1");+ assert_eq!(model_id, crate::config::MODEL_MANAGED_DEFAULT);++ // A concrete catalog id is forwarded verbatim.+ config.chat_provider = Some("openhuman:openrouter/deepseek/deepseek-v4-pro".to_string());+ let (_, pinned_id) = try_create_cloud_slug_chat_model("chat", &config)+ .expect("configured OpenhumanJwt slug should be recognized")+ .expect("managed model should build");+ assert_eq!(pinned_id, "openrouter/deepseek/deepseek-v4-pro");assert_eq!(model.profile()