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(tests): update model spec resolution and vision preflight tests
Steven Enamakel8256b66e7240
diff --git a/crates/openhuman-core/src/agent/harness/definition_tests.rs b/crates/openhuman-core/src/agent/harness/definition_tests.rsindex d922d62734..f44640ff6a 100644--- a/crates/openhuman-core/src/agent/harness/definition_tests.rs+++ b/crates/openhuman-core/src/agent/harness/definition_tests.rs@@ -72,17 +72,20 @@ fn model_spec_resolve_exact_uses_name() {}#[test]-fn model_spec_resolve_hint_appends_v1() {+fn model_spec_resolve_hint_yields_the_role_alias() {let spec = ModelSpec::Hint("coding".into());- assert_eq!(spec.resolve("parent-model"), "coding-v1");+ assert_eq!(spec.resolve("parent-model"), "hint:coding");}#[test]-fn model_spec_resolve_vision_hint_yields_vision_v1() {- // The vision sub-agent's `hint = "vision"` must resolve to the `vision-v1`- // tier alias — which `oh_tier_supports_vision` reports as image-capable.+fn model_spec_resolve_vision_hint_yields_the_vision_alias() {+ // The vision sub-agent's `hint = "vision"` must resolve to the `hint:vision`+ // alias — which `oh_tier_supports_vision` reports as image-capable.let spec = ModelSpec::Hint("vision".into());- assert_eq!(spec.resolve("parent-model"), "vision-v1");+ assert_eq!(spec.resolve("parent-model"), "hint:vision");+ assert!(crate::inference::provider::factory::oh_tier_supports_vision(+ &spec.resolve("parent-model")+ ));}#[test]diff --git a/crates/openhuman-core/src/inference/provider/fallback_diagnostics_tests.rs b/crates/openhuman-core/src/inference/provider/fallback_diagnostics_tests.rsindex f92f044aa1..fbac1c8b13 100644--- a/crates/openhuman-core/src/inference/provider/fallback_diagnostics_tests.rs+++ b/crates/openhuman-core/src/inference/provider/fallback_diagnostics_tests.rs@@ -133,9 +133,10 @@ fn vision_preflight_rejects_a_text_only_model_with_an_actionable_message() {}#[test]-fn vision_preflight_allows_the_managed_vision_tier() {- // `vision-v1` is multimodal per `oh_tier_supports_vision`; the- // pre-flight must not fire for the managed vision sub-agent.+fn vision_preflight_allows_the_managed_vision_route() {+ // The vision route and the managed default are multimodal per+ // `oh_tier_supports_vision`; the pre-flight must not fire for them.let config = crate::config::Config::default();- assert!(vision_preflight("vision-v1", &config).is_ok());+ assert!(vision_preflight("hint:vision", &config).is_ok());+ assert!(vision_preflight(crate::config::MODEL_MANAGED_DEFAULT, &config).is_ok());}