Skip to content

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

refactor(subagent_host): update terminology in ops tests

Steven Enamakel44d5a6c625eb
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs
index 358bf29e88..994994296b 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs
@@ -308,7 +308,7 @@ fn make_parent(
}
// ── Runtime spawn-hierarchy (tier) gate (issue #4098) ───────────────────────
-// `tier_gate_decision` is the pure decision the runtime gate in `run_subagent`
+// `tier_gate_decision` is the pure decision the runtime gate in child execution
// applies to each delegation hop. Tested directly so the deny/allow/skip
// table is covered without standing up a global registry or a live spawn.
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs
index 0ba7cd91b6..bf320bd6c8 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs
@@ -1,7 +1,4 @@
use super::*;
-use crate::agent::subagent_host::{
- SubagentRunStatus, run_subagent_via_driver_tool, spawn_async_via_driver_tool_with_jobs,
-};
use tinyagents_harness::context::{RunDepth, current_run_depth, with_run_depth};
struct BlockingSubagentCloseTool {
@@ -618,7 +615,7 @@ fn nested_subagent_dispatch_runs_on_a_constrained_worker_stack() {
with_parent(parent, SubagentRunOptions::default()),
)
.await
- .map_err(|e| anyhow::anyhow!("nested run_subagent failed: {e}"))?;
+ .map_err(|e| anyhow::anyhow!("nested child execution failed: {e}"))?;
Ok(ToolResult::success(outcome.output))
}
}
@@ -667,7 +664,7 @@ fn nested_subagent_dispatch_runs_on_a_constrained_worker_stack() {
});
let outcome = outcome.expect(
- "nested run_subagent must complete on a 1 MiB worker stack — \
+ "nested child execution must complete on a 1 MiB worker stack — \
a stack overflow here means the recursion boundary in \
`run_typed_mode` regressed (see the `Box::pin` callsites around \
`run_typed_mode` and the child's tinyagents drive future).",
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests_slug_filter_typed_mode_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests_slug_filter_typed_mode_tests.rs
index 524a403f24..3e4b9d785f 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests_slug_filter_typed_mode_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests_slug_filter_typed_mode_tests.rs
@@ -259,7 +259,7 @@ async fn capped_no_progress_subagent_returns_incomplete_status() {
//
// The legacy repeat-identical-call circuit-breaker `Halted` distinction
// folded into this cap handling during the tinyagents migration (#4249) —
- // see `run_subagent`'s status mapping. With `max_iterations = 2` the two
+ // see the host status mapping. With `max_iterations = 2` the two
// scripted tool calls exhaust the budget; the checkpoint summary call then
// draws the deterministic "reached my tool-call limit" digest.
let provider = ScriptedProvider::new(vec![
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests_tier_gate_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests_tier_gate_tests.rs
index 87b87ab0b4..24189cf1ee 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests_tier_gate_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests_tier_gate_tests.rs
@@ -92,7 +92,7 @@ fn tier_gate_allows_upward_reasoning_to_chat() {
//
// These exercise the gate at its real call site rather than only the policy it
// consults. The lever is that no `ParentExecutionContext` is installed here, so
-// an ungated `run_subagent` returns `NoParentContext`: each refusal below is
+// an ungated child execution returns `NoParentContext`: each refusal below is
// therefore evidence the gate ran *and* that it ran before anything was spent,
// and removing the gate turns every one of them into `NoParentContext`.
// ---------------------------------------------------------------------------