Skip to content

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

test(subagent-host): match harness artifact path prefix in projection test

Steven Enamakel977f6ef43bae
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 b2df880e5a..7ce81a5a91 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
@@ -85,8 +85,14 @@ async fn byte_policy_projects_a_parent_readable_artifact_before_the_result_cap()
let stored_path = outcome
.artifact_paths
.iter()
- .find(|path| path.starts_with("outputs/"))
- .unwrap_or_else(|| panic!("host projection records its artifact path: {:?} / {}", outcome.artifact_paths, outcome.output));
+ // The harness files offloaded results under `harness/outputs/<agent>/`.
+ .find(|path| path.starts_with("harness/outputs/"))
+ .unwrap_or_else(|| {
+ panic!(
+ "host projection records its artifact path: {:?}",
+ outcome.artifact_paths
+ )
+ });
let parent_copy = parent_action_dir.join(stored_path);
assert!(
parent_copy.is_file(),