The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(tests): construct DelegationTarget explicitly in the raw-coverage e2e\n\n`main` does not compile `--test raw_coverage_all`:\n\n error[E0277]: the trait bound `DelegationTarget: From<&str>` is not satisfied\n --> tests/raw_coverage/inference_agent_raw_coverage_e2e.rs:3086:32\n\n#6214 changed `ArchetypeDelegationTool::agent_id` from `String` to a\n`DelegationTarget` newtype and updated the construction sites under `src/`, but\nmissed this one under `tests/`. It used `"researcher".into()`, which had been\nresolving through `From<&str> for String`.\n\nNo lane caught it before the merge, and that is worth recording: `Rust Quality`\nruns clippy **without** `--all-targets`, and `Rust Core Coverage` is `--lib`\nscoped. A break confined to `tests/` ships green through both.\n\nConstructed explicitly rather than adding `impl From<&str> for DelegationTarget`.\nThe newtype exists so a routing target cannot be an anonymous string — it is what\n`traits::delegation_target` downcasts on, and what stops an unrelated `String`\nhost-extension being read as a delegate. An ambient `From<&str>` would let any\n`.into()` mint one silently, re-opening precisely the hole the newtype closes.\nOne call site is a cheap price for keeping that shut.\n\nVerified: `cargo test -p openhuman --test raw_coverage_all --features\n"$(bash scripts/ci/product-features.sh)" --no-default-features --no-run`\ncompiles with this change and fails with the error above without it.\n
M3gA-Minde1e32ac4cb4d
diff --git a/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs b/tests/raw_coverage/inference_agent_raw_coverage_e2e.rsindex aef9446265..1bcdf9bc96 100644--- a/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs+++ b/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs@@ -3035,6 +3035,7 @@ async fn agent_public_tools_cover_validation_and_metadata_paths() {AskClarificationTool, DelegateToPersonalityTool, DelegateTool, RunWorkflowTool, TodoTool,RUN_WORKFLOW_TOOL_NAME,};+ use openhuman_core::openhuman::agent::orchestration::tools::DelegationTarget;use openhuman_core::openhuman::tools::{ArchetypeDelegationTool, SkillDelegationTool};let ask = AskClarificationTool::new();@@ -3083,7 +3084,11 @@ async fn agent_public_tools_cover_validation_and_metadata_paths() {let archetype = ArchetypeDelegationTool {tool_name: "delegate_researcher".into(),- agent_id: "researcher".into(),+ // Constructed explicitly rather than via `.into()`: `DelegationTarget`+ // exists so a routing target cannot be an anonymous string, and an+ // ambient `From<&str>` would let any `.into()` mint one silently —+ // re-opening the hole the newtype was added to close.+ agent_id: DelegationTarget("researcher".into()),tool_description: "Use for research.".into(),};assert_eq!(