Skip to content

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

chore(subagent_host): tidy module order and test formatting

Steven Enamakel950d0685cec2
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/mod.rs b/crates/openhuman-core/src/agent/subagent_host/ops/mod.rs
index 69223e22d4..3a229c428a 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/mod.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/mod.rs
@@ -26,8 +26,8 @@ mod pause_checkpoint;
pub(crate) use pause_checkpoint::is_safe_task_id;
mod prompt;
mod provider;
-mod runner_artifacts;
mod runner;
+mod runner_artifacts;
// The lifecycle adapter owns the public entry point. This is its host-only
// execution leaf after a neutral driver has prepared and admitted a request.
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
index a604cfd2ea..44141b5de4 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -390,7 +390,6 @@ pub(crate) async fn run_subagent_direct(
.await
}
-
fn workspace_descriptor_for_subagent(
definition: &AgentDefinition,
options: &SubagentRunOptions,
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner_artifacts_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner_artifacts_tests.rs
index 0f479b0986..5c6419d5aa 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner_artifacts_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner_artifacts_tests.rs
@@ -66,13 +66,8 @@ async fn byte_policy_projects_a_parent_readable_artifact_before_the_result_cap()
assert!(options.run_context.dispatch_ctx().tenant().is_ok());
assert!(crate::storage::sessions::artifact_blobs_for(&workspace_dir).is_some());
assert_eq!(
- apply_subagent_result_policies(
- &mut outcome,
- &definition,
- &options,
- "task-policy-test"
- )
- .await,
+ apply_subagent_result_policies(&mut outcome, &definition, &options, "task-policy-test")
+ .await,
None,
"artifact storage should succeed"
);