Skip to content

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

test(orchestration): assert owner-scoped store resolves task-id alias

Steven Enamakelbbc5d214cdb6
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs
index 6e4b7f6573..57547d6eb6 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs
@@ -206,6 +206,14 @@ async fn force_fresh_cancels_old_driver_before_creating_a_new_session() {
Some((*jobs).clone()),
)
.expect("open explicitly scoped force-fresh session store");
+ assert!(
+ session_port
+ .get(&old_task_id)
+ .await
+ .expect("look up task id in the owner-scoped session store")
+ .is_some(),
+ "the upstream store adapter resolves the public task-id alias"
+ );
let wait = SubAgentJobsTool::new((*jobs).clone())
.with_fixed_action(tinyagents_harness_tools::subagents::SubAgentJobAction::Await)
.with_identifier_fields("task_id", "subagent_session_id")