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
style: apply rustfmt formatting across orchestration and registry tests
Steven Enamakel49804d810d30
diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions.rs b/crates/openhuman-core/src/agent/orchestration/background_completions.rsindex 3c43326b3a..080e43bd62 100644--- a/crates/openhuman-core/src/agent/orchestration/background_completions.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_completions.rs@@ -57,6 +57,7 @@ use tinyagents_tasks::{use super::completion_notice::BackgroundCompletionFormatter;pub(crate) use super::completion_notice::{BackgroundAgentOutcome, AWAITING_INPUT_LABEL};+use super::completion_target::awaiting_input_record_id;#[cfg(test)]pub(crate) use super::completion_target::claim_recovery;#[cfg(test)]@@ -64,7 +65,6 @@ pub(crate) use super::completion_target::tests::{forget_workspace_for_test, install_store_for_test, TestWorkspace,};pub(crate) use super::completion_target::CompletionTarget;-use super::completion_target::awaiting_input_record_id;pub(crate) use super::completion_target::{claim_recovery_ctx, forget_recovery_ctx};/// How long a settled record (delivered / gave up / tombstoned) is kept beforediff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/registry.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/registry.rsindex 139cf15167..86570c1c73 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/registry.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/registry.rs@@ -40,11 +40,7 @@ pub(super) fn admit_workspace(}caller_profile(ctx).map_err(|_| WaitError::NotOwned)?;let context = ctx.resolved().ok_or(WaitError::NotOwned)?;- if context- .workspace_dir()- .map_err(|_| WaitError::NotOwned)?- != workspace- {+ if context.workspace_dir().map_err(|_| WaitError::NotOwned)? != workspace {return Err(WaitError::NotOwned);}Ok(())diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rsindex 8187b58763..1dcd98235b 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs@@ -89,7 +89,6 @@ pub(crate) fn task_store_for_workspace(workspace_dir: &Path) -> Arc<dyn TaskStor}}-/// Restart/resume reconciliation for detached sub-agents (issue #4249 / 07.2/// steps 2 & 4).///@@ -173,4 +172,3 @@ pub(crate) fn reconcile_orphaned_tasks_on_boot(workspace_dir: &Path) -> usize {);reconciled}-diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/mod.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/mod.rsindex aa42969162..85f91edd1b 100644--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/mod.rs+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/mod.rs@@ -10,15 +10,13 @@ pub use ops::{action_root_key, cancel_driver_job_by_task, cancel_driver_job_for_observed_session,cancel_driver_jobs_for_thread, close_if_current, find_reusable, list_for_parent,mark_driver_pause_cancelled, mark_failed, mark_finished, normalize_task_key,- resolve_lifecycle_key, reuse_decision, upsert_running,- DriverTaskCancellation,+ resolve_lifecycle_key, reuse_decision, upsert_running, DriverTaskCancellation,};pub(crate) use tiny_port::OpenHumanTinySubagentSessionStore;pub use types::{DurableSubagentStatus, SubagentSessionSelector, SubagentSessionStore, SubagentSessionUpsert,};-// Test-only since the `harness-subagent-audit` debug binary (and the-// `orchestration::harness_audit` facade it needed) were removed: production-// callers reach the session records through `DurableSubagentSessionSummary`.+// Test-only: the host keeps the raw durable row private to its persistence+// adapter and exposes scoped operations to production callers.#[cfg(test)]pub use types::DurableSubagentSession;diff --git a/crates/openhuman-core/src/agent/orchestration/tools/awaiting_user_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/awaiting_user_tests.rsindex 02a3fda0d2..6d66f56192 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/awaiting_user_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/awaiting_user_tests.rs@@ -18,7 +18,10 @@ fn envelope_carries_resume_handles_and_question() {"envelope: {env}");// It must steer the model to resume, not re-spawn (#4291 loop).- assert!(env.contains("spawn_subagent with the original task_key"), "envelope: {env}");+ assert!(+ env.contains("spawn_subagent with the original task_key"),+ "envelope: {env}"+ );assert!(env.to_lowercase().contains("do not re-spawn"),"envelope must forbid re-spawn: {env}"@@ -71,7 +74,10 @@ fn malicious_question_cannot_break_envelope_structure() {"question must be JSON-encoded (quoted): {env}");// Resume instruction still present and intact after the real terminator.- assert!(env.contains("spawn_subagent with the original task_key"), "envelope: {env}");+ assert!(+ env.contains("spawn_subagent with the original task_key"),+ "envelope: {env}"+ );}// ── An unpersisted pause must say so (#5928) ────────────────────────────────@@ -101,7 +107,10 @@ fn an_unpersisted_pause_warns_that_resuming_may_fail() {// task-key instruction must survive both ways.for env in [&saved, &lost] {assert!(env.contains("task_id: t-1"), "envelope: {env}");- assert!(env.contains("spawn_subagent with the original task_key"), "envelope: {env}");+ assert!(+ env.contains("spawn_subagent with the original task_key"),+ "envelope: {env}"+ );assert_eq!(env.lines().filter(|l| l.trim() == "[/SUBAGENT_AWAITING_USER]")diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rsindex 6b96dac71d..e2e5ad596b 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs@@ -180,7 +180,11 @@ async fn spawn_subagent_with_same_task_key_resumes_paused_job_through_shared_dri"refusal identifies the mismatched checkpoint: {}",refused_resume.output());- assert_eq!(jobs.list().len(), before_job_count, "refusal admits no child");+ assert_eq!(+ jobs.list().len(),+ before_job_count,+ "refusal admits no child"+ );assert_eq!(provider.calls.load(std::sync::atomic::Ordering::SeqCst),1,@@ -354,19 +358,21 @@ async fn spawn_subagent_reuses_idle_task_key_with_the_saved_history() {.expect("first durable session");assert_eq!(first_session.status, DurableSubagentStatus::Idle);let original_session_id = first_session.subagent_session_id.clone();- let first_task_id = first_session.current_task_id.clone().expect("first task id");- let first_job = crate::core::runtime::slot_for::<SubAgentJobRegistry>(- &live.data.dispatch_ctx(),- )- .list()- .into_iter()- .find(|job| {- job.extensions- .get("task_id")- .and_then(serde_json::Value::as_str)- == Some(first_task_id.as_str())- })- .expect("first child is registered");+ let first_task_id = first_session+ .current_task_id+ .clone()+ .expect("first task id");+ let first_job =+ crate::core::runtime::slot_for::<SubAgentJobRegistry>(&live.data.dispatch_ctx())+ .list()+ .into_iter()+ .find(|job| {+ job.extensions+ .get("task_id")+ .and_then(serde_json::Value::as_str)+ == Some(first_task_id.as_str())+ })+ .expect("first child is registered");assert_eq!(first_job.status, SubAgentJobStatus::Completed);let second = tool@@ -393,13 +399,19 @@ async fn spawn_subagent_reuses_idle_task_key_with_the_saved_history() {.find(|session| session.subagent_session_id == original_session_id).expect("same durable child session is reused");assert_eq!(second_session.status, DurableSubagentStatus::Idle);- assert_ne!(second_session.current_task_id.as_deref(), Some(first_task_id.as_str()));+ assert_ne!(+ second_session.current_task_id.as_deref(),+ Some(first_task_id.as_str())+ );assert!(provider.saw("idle-history-first-prompt"));assert!(provider.saw("idle-child-first-result"));assert!(provider.saw("idle-history-follow-up-prompt"));let requests = provider.seen.lock();assert_eq!(requests.len(), 2, "both spawns use the injected model");- assert_eq!(requests[1].matches("idle-history-follow-up-prompt").count(), 1);+ assert_eq!(+ requests[1].matches("idle-history-follow-up-prompt").count(),+ 1+ );}async fn wait_completed(@@ -409,7 +421,10 @@ async fn wait_completed(loop {match progress.recv().await {Some(crate::progress::AgentProgress::SubagentCompleted { agent_id, .. })- if agent_id == "task_manager_agent" => break,+ if agent_id == "task_manager_agent" =>+ {+ break+ }Some(crate::progress::AgentProgress::SubagentFailed { error, .. }) => {panic!("child failed before completion: {error}")}@@ -430,7 +445,10 @@ struct TwoTurnModel {impl TwoTurnModel {fn saw(&self, needle: &str) -> bool {- self.seen.lock().iter().any(|payload| payload.contains(needle))+ self.seen+ .lock()+ .iter()+ .any(|payload| payload.contains(needle))}}@@ -462,7 +480,11 @@ impl tinyinference_llm::model::ChatModel<()> for TwoTurnModel {let answer = match self.calls.fetch_add(1, std::sync::atomic::Ordering::SeqCst) {0 => "idle-child-first-result",1 => "idle-child-follow-up-result",- call => return Err(tinyinference_llm::Error::Model(format!("unexpected call {call}"))),+ call => {+ return Err(tinyinference_llm::Error::Model(format!(+ "unexpected call {call}"+ )))+ }};Ok(tinyinference_llm::model::ModelResponse::assistant(answer))}diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_reuse_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_reuse_tests.rsindex 5affc130d9..06cee40e9c 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_reuse_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_reuse_tests.rs@@ -131,4 +131,3 @@ async fn failed_steer_of_running_reused_session_does_not_create_second_child() {Some("existing-running-task"));}-diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_profile_cancel_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_profile_cancel_tests.rsindex 3044771b31..edb20307ff 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_profile_cancel_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_profile_cancel_tests.rs@@ -5,18 +5,16 @@ async fn profile_scope_cannot_cancel_another_profiles_driver_child() {const CHILD: &str = "OPENHUMAN_SAAS_SUBAGENT_CANCEL_SCOPE_CHILD";if std::env::var_os(CHILD).is_none() {let module_path = module_path!().trim_start_matches("openhuman_core::");- let test_name = format!(- "{module_path}::profile_scope_cannot_cancel_another_profiles_driver_child"- );- let output = std::process::Command::new(- std::env::current_exe().expect("unit test executable path"),- )- .arg("--exact")- .arg(&test_name)- .arg("--nocapture")- .env(CHILD, "1")- .output()- .expect("run isolated SaaS-mode driver cancellation case");+ let test_name =+ format!("{module_path}::profile_scope_cannot_cancel_another_profiles_driver_child");+ let output =+ std::process::Command::new(std::env::current_exe().expect("unit test executable path"))+ .arg("--exact")+ .arg(&test_name)+ .arg("--nocapture")+ .env(CHILD, "1")+ .output()+ .expect("run isolated SaaS-mode driver cancellation case");assert!(output.status.success()&& String::from_utf8_lossy(&output.stdout).contains(&test_name)@@ -104,8 +102,7 @@ async fn profile_scope_cannot_cancel_another_profiles_driver_child() {.with_parent(parent);host.thread_id = Some(thread_id.into());let live = RunContext::<OpenHumanRunContext>::new(- tinyagents_harness::context::RunConfig::new("profile-cancel-parent")- .with_thread(thread_id),+ tinyagents_harness::context::RunConfig::new("profile-cancel-parent").with_thread(thread_id),host,);let detached_data = live.data.detached_child();@@ -209,9 +206,7 @@ async fn profile_scope_cannot_cancel_another_profiles_driver_child() {assert_eq!(after_bob.latest_error, row_before.latest_error);assert_eq!(crate::agent::orchestration::background_completions::pending_for_ctx(- &bob_ctx,- &workspace,- thread_id,+ &bob_ctx, &workspace, thread_id,).len(),0,@@ -238,9 +233,7 @@ async fn profile_scope_cannot_cancel_another_profiles_driver_child() {assert_eq!(after_unbound.latest_error, row_before.latest_error);assert!(crate::agent::orchestration::background_completions::pending_for_ctx(- &alice_ctx,- &workspace,- thread_id,+ &alice_ctx, &workspace, thread_id,).is_empty(),"neither rejected control attempt emits an Alice completion"@@ -274,4 +267,3 @@ async fn profile_scope_cannot_cancel_another_profiles_driver_child() {assert_eq!(terminal.status, SubAgentJobStatus::Cancelled);release.notify_one();}-diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rsindex fb96eda606..b21f60f04a 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs@@ -140,7 +140,10 @@ async fn spawn_subagent_returns_async_reference_and_runs_child_e2e() {terminal.status,tinyagents_orchestration::subagent::SubAgentJobStatus::Completed);- assert_eq!(terminal.output.as_deref(), Some("spawn-subagent-child-answer"));+ assert_eq!(+ terminal.output.as_deref(),+ Some("spawn-subagent-child-answer")+ );}/// A child the harness stops early (failure breaker / iteration cap) is not a@@ -229,7 +232,10 @@ async fn failed_async_child_is_reported_to_the_parent_without_a_success_result()).await.expect("the asynchronous spawn request is accepted");- assert!(!accepted.is_error, "child failure is delivered asynchronously");+ assert!(+ !accepted.is_error,+ "child failure is delivered asynchronously"+ );let failure = tokio::time::timeout(std::time::Duration::from_secs(5), async {loop {@@ -253,12 +259,10 @@ async fn unexecuted_tool_call_stub_is_projected_as_incomplete_not_success() {const STUB_CANARY: &str = "unexecuted-tool-call-stub-canary";let _ = AgentDefinitionRegistry::init_global_builtins();let workspace = tempfile::TempDir::new().expect("workspace");- let provider = Arc::new(ScriptedModel::new(vec![- (- STUB_CANARY,- r#"{"tool_calls":[{"type":"function","function":{"name":"missing","arguments":"{}"}}]}"#,- ),- ]));+ let provider = Arc::new(ScriptedModel::new(vec![(+ STUB_CANARY,+ r#"{"tool_calls":[{"type":"function","function":{"name":"missing","arguments":"{}"}}]}"#,+ )]));let (progress_tx, mut progress_rx) = tokio::sync::mpsc::channel(32);let mut parent = parent_context(workspace.path(), provider.clone(), vec![]);parent.on_progress = Some(progress_tx);@@ -302,7 +306,10 @@ async fn unexecuted_tool_call_stub_is_projected_as_incomplete_not_success() {.expect("the completion guard projects the stub to the parent");assert!(provider.saw(STUB_CANARY));assert!(completed.0.contains("tool_calls"), "{}", completed.0);- assert!(completed.1.is_some(), "a stub is incomplete, not successful");+ assert!(+ completed.1.is_some(),+ "a stub is incomplete, not successful"+ );}struct FailingModel;@@ -501,10 +508,10 @@ impl ChatModel<()> for LoopingToolModel {}}-#[path = "tools_e2e_driver_tests.rs"]-mod driver_tests;#[path = "tools_e2e_driver_reuse_tests.rs"]mod driver_reuse_tests;+#[path = "tools_e2e_driver_tests.rs"]+mod driver_tests;#[path = "tools_e2e_profile_cancel_tests.rs"]mod profile_cancel_tests;diff --git a/crates/openhuman-core/src/agent/subagent_host/mod.rs b/crates/openhuman-core/src/agent/subagent_host/mod.rsindex 4cadc4bfae..10673ce0e2 100644--- a/crates/openhuman-core/src/agent/subagent_host/mod.rs+++ b/crates/openhuman-core/src/agent/subagent_host/mod.rs@@ -56,6 +56,7 @@ mod persisted_compat_tests;// Public API — the entry point and the shapes it returns.pub use autonomous::{definition_iter_cap, subagent_iter_cap_with_autonomous_lift};+pub(crate) use lifecycle::checkpoint_resume;pub(crate) use lifecycle::detached_subagent_parent;pub(crate) use lifecycle::load_subagent_checkpoint;pub(crate) use lifecycle::load_terminal_outcome;@@ -65,7 +66,6 @@ pub(crate) use lifecycle::run_subagent_via_driver_tool;pub(crate) use lifecycle::spawn_async_via_driver_tool;#[cfg(test)]pub(crate) use lifecycle::spawn_async_via_driver_tool_with_jobs;-pub(crate) use lifecycle::checkpoint_resume;pub use lifecycle::{continue_subagent, continue_subagent_with_parent, run_subagent, run_subagent_with_parent,OpenHumanSubagentHost,diff --git a/crates/openhuman-core/src/agent_registry/agents/fleet_prompt_tests.rs b/crates/openhuman-core/src/agent_registry/agents/fleet_prompt_tests.rsindex a11499c85f..77893198e0 100644--- a/crates/openhuman-core/src/agent_registry/agents/fleet_prompt_tests.rs+++ b/crates/openhuman-core/src/agent_registry/agents/fleet_prompt_tests.rs@@ -25,7 +25,11 @@ fn visible_tool_names(def: &AgentDefinition) -> HashSet<String> {};visible.extend(def.extra_tools.iter().cloned());- if def.subagents.iter().any(|entry| matches!(entry, SubagentEntry::AgentId(_))) {+ if def+ .subagents+ .iter()+ .any(|entry| matches!(entry, SubagentEntry::AgentId(_)))+ {visible.insert("spawn_subagent".to_string());}visiblediff --git a/crates/openhuman-core/src/agent_registry/agents/loader_tests_specialist_agents_tests.rs b/crates/openhuman-core/src/agent_registry/agents/loader_tests_specialist_agents_tests.rsindex 9a98ae10f5..67a4e36b03 100644--- a/crates/openhuman-core/src/agent_registry/agents/loader_tests_specialist_agents_tests.rs+++ b/crates/openhuman-core/src/agent_registry/agents/loader_tests_specialist_agents_tests.rs@@ -257,7 +257,9 @@ fn orchestrator_routes_every_registered_specialist_through_spawn_subagent() {continue;};assert!(- allowed.iter().any(|candidate| candidate.as_str() == Some(agent_id)),+ allowed+ .iter()+ .any(|candidate| candidate.as_str() == Some(agent_id)),"orchestrator allows `{agent_id}` but spawn_subagent does not");}diff --git a/crates/openhuman-core/src/agent_registry/agents/orchestrator/prompt_tests_installed_skills_tests.rs b/crates/openhuman-core/src/agent_registry/agents/orchestrator/prompt_tests_installed_skills_tests.rsindex ac6f910052..9c13368819 100644--- a/crates/openhuman-core/src/agent_registry/agents/orchestrator/prompt_tests_installed_skills_tests.rs+++ b/crates/openhuman-core/src/agent_registry/agents/orchestrator/prompt_tests_installed_skills_tests.rs@@ -24,7 +24,8 @@ fn render_installed_skills_lists_skills_and_names_the_hand_offs_it_is_given() {);assert!(out.contains("## Installed Skills"));assert!(- out.contains("`run_workflow`") && out.contains("`spawn_subagent` with agent_id `skill_setup`"),+ out.contains("`run_workflow`")+ && out.contains("`spawn_subagent` with agent_id `skill_setup`"),"catalogue must name the run and install hand-offs it was given: {out}");assert!(@@ -89,7 +90,11 @@ fn prompt_documents_the_single_always_async_spawn_contract() {assert!(ARCHETYPE.contains("Calls are asynchronous; completed results arrive automatically."));assert!(ARCHETYPE.contains("Reuse the same `task_key` to continue a worker"));assert!(ARCHETYPE.contains("including one paused on `ask_user_clarification`"));- for retired in ["blocking: true", "continue_subagent", "delegate_make_presentation"] {+ for retired in [+ "blocking: true",+ "continue_subagent",+ "delegate_make_presentation",+ ] {assert!(!ARCHETYPE.contains(retired),"retired dispatch contract leaked into prompt: {retired}"diff --git a/crates/openhuman-core/src/agent_registry/agents/orchestrator/prompt_tests_session_routing_tests.rs b/crates/openhuman-core/src/agent_registry/agents/orchestrator/prompt_tests_session_routing_tests.rsindex 62078cc982..2c022eacb1 100644--- a/crates/openhuman-core/src/agent_registry/agents/orchestrator/prompt_tests_session_routing_tests.rs+++ b/crates/openhuman-core/src/agent_registry/agents/orchestrator/prompt_tests_session_routing_tests.rs@@ -154,10 +154,7 @@ fn skill_sections_name_the_hand_off_this_session_can_call() {// A packed route needs `use_skill` on the belt. A session filtered down to// neither the delegate nor `use_skill` cannot reach the specialist at all,// and naming a call it cannot make is the bug, not the fix.- let no_use_skill: HashSet<String> = ["file_read"]- .iter()- .map(|s| s.to_string())- .collect();+ let no_use_skill: HashSet<String> = ["file_read"].iter().map(|s| s.to_string()).collect();ctx.visible_tool_names = &no_use_skill;assert_eq!(hand_off_route(&ctx, "image_agent"),diff --git a/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs b/crates/openhuman-core/src/tools/orchestrator_tools_tests.rsindex 822d2a7a62..9d6ccf5d20 100644--- a/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs+++ b/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs@@ -55,9 +55,7 @@ fn agent_id_allowlist_entries_do_not_synthesize_model_facing_dispatch_tools() {);let subagent_tools: Vec<_> = spawn.iter()- .filter(|tool| {- tool.name().contains("subagent") || tool.name().starts_with("delegate_")- })+ .filter(|tool| tool.name().contains("subagent") || tool.name().starts_with("delegate_")).map(|tool| tool.name()).collect();assert_eq!(subagent_tools, ["spawn_subagent"]);diff --git a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rsindex 90e07e4788..057a69e163 100644--- a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs+++ b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs@@ -256,13 +256,7 @@ fn every_pack_declares_the_tools_it_is_named_for() {"read_workflow_resource",],),- (- "documents",- &[- "generate_document",- "generate_presentation",- ],- ),+ ("documents", &["generate_document", "generate_presentation"]),("system",&[diff --git a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests_scoping_and_visibility_tests.rs b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests_scoping_and_visibility_tests.rsindex a46907929d..11a5b6c24a 100644--- a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests_scoping_and_visibility_tests.rs+++ b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests_scoping_and_visibility_tests.rs@@ -320,7 +320,10 @@ fn retired_specialist_aliases_are_not_packed() {"analyze_image",] {assert_eq!(registry::pack_for_tool(alias), None, "{alias}");- assert!(!registry::all_packed_tool_names().contains(&alias), "{alias}");+ assert!(+ !registry::all_packed_tool_names().contains(&alias),+ "{alias}"+ );}}diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rsindex 516384784b..8a357211ea 100644--- a/tests/agent_harness_e2e.rs+++ b/tests/agent_harness_e2e.rs@@ -3369,11 +3369,11 @@ async fn agent_installs_a_registry_skill_then_runs_it_inner() {reset_script(vec![// Orchestrator hands the install to `skill_setup` (a direct hand-off, #6302).tool_call_completion(- "spawn_subagent",- json!({- "agent_id": "skill_setup",- "prompt": "Install the harness registry skill"- }),+ "spawn_subagent",+ json!({+ "agent_id": "skill_setup",+ "prompt": "Install the harness registry skill"+ }),),// skill_setup finds the entry, then installs it (the gate parks here).tool_call_completion(