Skip to content

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

test(progress-tracing, tool-prep): update test expectations for renamed agents

Steven Enamakel421a9d9c580e
diff --git a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_attribution_tests.rs b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_attribution_tests.rs
index 36bb557ee3..ed69bc87be 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_attribution_tests.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_attribution_tests.rs
@@ -518,10 +518,10 @@ fn generation_withholds_content_when_capture_off() {
fn subagent_model_call_nests_generation_and_stamps_model_on_subagent_span() {
let mut c = collect_with_capture(&[
(AgentProgress::TurnStarted, 0),
- (spawn("task-9", "Researcher"), 5),
+ (spawn("task-9", "Critic"), 5),
(
AgentProgress::SubagentIterationStarted {
- agent_id: "researcher".to_string(),
+ agent_id: "critic".to_string(),
task_id: "task-9".to_string(),
iteration: 1,
max_iterations: 8,
@@ -544,7 +544,7 @@ fn subagent_model_call_nests_generation_and_stamps_model_on_subagent_span() {
assert!(generation.input.is_some(), "child generation carries input");
// The subagent span itself surfaces the provider-labeled model + usage.
- let sub = find(spans, "subagent.Context Scout");
+ let sub = find(spans, "subagent.Critic");
assert_eq!(
sub.attributes["gen_ai.request.model"],
serde_json::json!("managed.chat-v1")
diff --git a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs
index c75c89b126..08ae769c1a 100644
--- a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs
@@ -17,22 +17,15 @@ fn unprefixed_delegate_name_overrides_are_treated_as_spawn_tools() {
crate::agent::harness::definition::AgentDefinitionRegistry::init_global(tmp.path()).unwrap();
for delegate in [
"plan",
- "run_code",
- "research",
"review_code",
- "do_crypto",
- "schedule_task",
+ "manage_tasks",
+ "create_image",
// `make_presentation` is `presentation_agent`'s `delegate_name`; the agent —
// and therefore this delegate tool — is compiled out with the
// `documents` feature.
#[cfg(feature = "documents")]
"make_presentation",
"archive_session",
- // `use_mcp_server` is `mcp_agent`'s `delegate_name`; the agent —
- // and therefore this delegate tool — is compiled out with the
- // `mcp` feature (#4799).
- #[cfg(feature = "mcp")]
- "use_mcp_server",
] {
assert!(
is_subagent_spawn_tool(delegate),