Skip to content

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

test(tinyagents): assert packed dispatch keeps agent output origin

Steven Enamakeld49cb865547c
diff --git a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs
index 7322d35ba2..cb80783e78 100644
--- a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs
@@ -161,6 +161,11 @@ async fn use_skill_dispatch_keeps_authorized_target_after_registry_rebind() {
.bind_call(&arguments)
.expect("bind succeeds")
.expect("known packed target binds");
+ assert_eq!(
+ pinned.output_origin(),
+ tinyagents_harness::host::ContentOrigin::Agent,
+ "typed packed dispatch must keep the delegated-agent output policy"
+ );
let replacement: Arc<Vec<Box<dyn Tool>>> = Arc::new(vec![
Box::new(UseSkillTool::new(