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
test(config): pin public workload role values and order
Steven Enamakelc0cccc40a087
diff --git a/crates/openhuman-core/src/config/schema/types/model_ids.rs b/crates/openhuman-core/src/config/schema/types/model_ids.rsindex 4d07325b51..0d5998fb2e 100644--- a/crates/openhuman-core/src/config/schema/types/model_ids.rs+++ b/crates/openhuman-core/src/config/schema/types/model_ids.rs@@ -1,6 +1,10 @@//! Provider-neutral workload roles used by inference routing.-/// Workload roles understood by the generic inference router.+/// Public, unprefixed workload roles understood by the generic inference router.+///+/// Keep this config/API view in canonical order. The adjacent regression test+/// ties it to TinyInference's native `WORKLOAD_ROUTE_TIERS` so the host does+/// not silently grow a second routing vocabulary.pub const WORKLOAD_ROLES: [&str; 7] = ["chat","reasoning",diff --git a/crates/openhuman-core/src/config/schema/types_model_ids_tests.rs b/crates/openhuman-core/src/config/schema/types_model_ids_tests.rsindex 55a99b811b..a940d550e1 100644--- a/crates/openhuman-core/src/config/schema/types_model_ids_tests.rs+++ b/crates/openhuman-core/src/config/schema/types_model_ids_tests.rs@@ -1,5 +1,21 @@use super::WORKLOAD_ROLES;+#[test]+fn workload_roles_keep_the_public_unprefixed_api_values_and_order() {+ assert_eq!(+ WORKLOAD_ROLES,+ [+ "chat",+ "reasoning",+ "agentic",+ "coding",+ "burst",+ "summarization",+ "vision",+ ]+ );+}+#[test]fn workload_roles_follow_the_native_workload_route_order() {let native = tinyinference_llm::model::workload::WORKLOAD_ROUTE_TIERS