Skip to content

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

test(subagent_host): assert decoded tier against definition

Steven Enamakelc2926b355793
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome_tests.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome_tests.rs
index bf06d16311..bb093dfd01 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome_tests.rs
@@ -90,5 +90,8 @@ fn host_outcome_terminal_record_round_trips_through_json_bytes() {
assert_eq!(decoded.task_id, "task-123");
assert_eq!(decoded.worker_thread_id.as_deref(), Some("worker-thread"));
assert_eq!(decoded.model_override.as_deref(), Some("worker-model"));
- assert_eq!(decoded.tier.as_deref(), Some("orchestrator"));
+ assert_eq!(
+ decoded.tier.as_deref(),
+ Some(definition.agent_tier.as_str())
+ );
}