Skip to content

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

fix(tinyflows): correct test assertions for tier gate and timeout behavior

Steven Enamakel018e51c46c7c
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests.rs
index d41494148d..adc79aa4cc 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests.rs
@@ -445,14 +445,14 @@ fn agent_node_runtime_resolves_to_the_definitions_effective_iteration_cap() {
.expect("agent registry init");
let def = crate::agent::harness::definition::AgentDefinitionRegistry::global()
.expect("registry initialised")
- .get("code_executor")
- .expect("code_executor definition registered")
+ .get("planner")
+ .expect("planner definition registered")
.clone();
let expected = def.effective_max_iterations();
assert_eq!(expected, 50);
- let agent = crate::agent::OpenHumanSessionHost::from_config_for_agent(&config, "code_executor")
- .expect("build code_executor agent");
+ let agent = crate::agent::OpenHumanSessionHost::from_config_for_agent(&config, "planner")
+ .expect("build planner agent");
assert_eq!(agent.agent_config().max_tool_iterations, expected);
// And the timeout scaling this cap feeds into actually widens the
diff --git a/crates/openhuman-core/src/flows/tinyflows/tinyflows_capabilities_tests.rs b/crates/openhuman-core/src/flows/tinyflows/tinyflows_capabilities_tests.rs
index 7ef534190b..22a31017fa 100644
--- a/crates/openhuman-core/src/flows/tinyflows/tinyflows_capabilities_tests.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/tinyflows_capabilities_tests.rs
@@ -609,7 +609,7 @@ fn route_for_agent_ref_selects_harness_for_definitions_else_fallback() {
// A shipped harness definition → full-loop harness path.
assert_eq!(route_for_agent_ref("workflow_builder"), AgentRoute::Harness);
- assert_eq!(route_for_agent_ref("researcher"), AgentRoute::Harness);
+ assert_eq!(route_for_agent_ref("planner"), AgentRoute::Harness);
// An id with no harness definition → the custom-registry completion fallback.
assert_eq!(