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
chore: files changed crates/openhuman-core/src/skills/search.rs,crates/openhuman-core/src/storage/im
Steven Enamakelfe894842ba65
diff --git a/crates/openhuman-core/src/skills/search.rs b/crates/openhuman-core/src/skills/search.rsindex d90a48b197..eee9b0fbc7 100644--- a/crates/openhuman-core/src/skills/search.rs+++ b/crates/openhuman-core/src/skills/search.rs@@ -34,7 +34,7 @@ use std::path::PathBuf;use std::sync::Arc;use async_trait::async_trait;-use serde_json::{Value, json};+use serde_json::{json, Value};use super::ops_discover::{discover_workflows, is_workspace_trusted};use crate::config::Config;diff --git a/crates/openhuman-core/src/storage/import/sessions.rs b/crates/openhuman-core/src/storage/import/sessions.rsindex c21a9fee1b..1569b75365 100644--- a/crates/openhuman-core/src/storage/import/sessions.rs+++ b/crates/openhuman-core/src/storage/import/sessions.rs@@ -32,11 +32,11 @@ use std::path::{Path, PathBuf};use std::sync::Arc;use anyhow::{Context, Result};-use tinyagents_session::DriverSessionStores;use tinyagents_session::legacy::{- QuiescentSource, SourceOwner, import_transcripts, import_turn_states,+ import_transcripts, import_turn_states, QuiescentSource, SourceOwner,};-use tinyagents_session::transcript::{SessionRef, session_stem};+use tinyagents_session::transcript::{session_stem, SessionRef};+use tinyagents_session::DriverSessionStores;use super::tinyflows::{finish, marked};use super::{Outcome, Report, Snapshot};diff --git a/crates/openhuman-core/src/storage/import/sessions_tests.rs b/crates/openhuman-core/src/storage/import/sessions_tests.rsindex 84e76c4c5b..001f6b601d 100644--- a/crates/openhuman-core/src/storage/import/sessions_tests.rs+++ b/crates/openhuman-core/src/storage/import/sessions_tests.rs@@ -1,6 +1,6 @@use super::*;-use crate::storage::MemoryStorage;use crate::storage::rusqlite;+use crate::storage::MemoryStorage;use crate::util::classic_transcript_fixture::write_classic;use sha2::Digest as _;use std::collections::BTreeMap;diff --git a/crates/openhuman-core/src/storage/schema_tests.rs b/crates/openhuman-core/src/storage/schema_tests.rsindex c7462b836a..b971dd356b 100644--- a/crates/openhuman-core/src/storage/schema_tests.rs+++ b/crates/openhuman-core/src/storage/schema_tests.rs@@ -39,7 +39,13 @@ fn module_items_are_the_owners_module_scoped_declarations() {#[test]fn tiny_artifacts_blob_namespace_composes_with_host_artifact_collections() {let registry = registry().expect("the owners compose");- assert_eq!(registry.owners().filter(|owner| *owner == "artifacts").count(), 1);+ assert_eq!(+ registry+ .owners()+ .filter(|owner| *owner == "artifacts")+ .count(),+ 1+ );let artifacts = owner_schemas().into_iter()diff --git a/crates/openhuman-core/src/storage/sessions/mod.rs b/crates/openhuman-core/src/storage/sessions/mod.rsindex 8230c6fbbe..107b75fe83 100644--- a/crates/openhuman-core/src/storage/sessions/mod.rs+++ b/crates/openhuman-core/src/storage/sessions/mod.rs@@ -23,14 +23,14 @@ mod rebound;mod tenant_router;mod workspace;-pub use rebound::{ReboundSessionStores, StoreRegistry, rebind_all};+pub use rebound::{rebind_all, ReboundSessionStores, StoreRegistry};pub use tenant_router::TenantSessionStores;pub use workspace::{- WorkspaceSessionStores, artifact_blobs_for, artifact_scoped_for_in, attachment_stash_for,- current_documents_for, default_turn_states_for, ledger_for, provider_for_workspace,- provider_for_workspace_in, release_workspace, release_workspace_defaults, require_ledger,- session_scope, status_store_for, stores_for, stores_or_ephemeral, turn_states_for, with_ledger,- with_ledger_async,+ artifact_blobs_for, artifact_scoped_for_in, attachment_stash_for, current_documents_for,+ default_turn_states_for, ledger_for, provider_for_workspace, provider_for_workspace_in,+ release_workspace, release_workspace_defaults, require_ledger, session_scope, status_store_for,+ stores_for, stores_or_ephemeral, turn_states_for, with_ledger, with_ledger_async,+ WorkspaceSessionStores,};static PROVIDER: LazyLock<RwLock<Option<Arc<dyn SessionStoreProvider>>>> =diff --git a/crates/openhuman-core/src/storage/sessions/mod_tests.rs b/crates/openhuman-core/src/storage/sessions/mod_tests.rsindex 2fbd5afda7..549e277dd4 100644--- a/crates/openhuman-core/src/storage/sessions/mod_tests.rs+++ b/crates/openhuman-core/src/storage/sessions/mod_tests.rs@@ -318,13 +318,11 @@ async fn a_stashed_attachment_survives_a_restart_of_the_workspace_store() {resumed.read_data_uri("att-1").await.unwrap().as_deref(),Some(data_uri));- assert!(- resumed- .read_data_uri("never-stashed")- .await- .unwrap()- .is_none()- );+ assert!(resumed+ .read_data_uri("never-stashed")+ .await+ .unwrap()+ .is_none());}#[test]diff --git a/crates/openhuman-core/src/storage/sessions/tenant_router.rs b/crates/openhuman-core/src/storage/sessions/tenant_router.rsindex 9e08731fef..3906fef9c5 100644--- a/crates/openhuman-core/src/storage/sessions/tenant_router.rs+++ b/crates/openhuman-core/src/storage/sessions/tenant_router.rs@@ -13,8 +13,8 @@ use std::collections::HashMap;use std::sync::{Arc, Mutex, PoisonError};use tinyagents_harness::store::SchemaAdmission;-use tinyagents_session::DriverSessionStores;use tinyagents_session::port::{AgentStores, SessionStoreProvider};+use tinyagents_session::DriverSessionStores;use tinystoragedrivers::{Blocking, Scope, StorageBackend, StorageError};/// Session stores over one backend, routed to a per-tenant provider.diff --git a/crates/openhuman-core/src/threads/ops/crud.rs b/crates/openhuman-core/src/threads/ops/crud.rsindex 0093ca38dd..9f4903358b 100644--- a/crates/openhuman-core/src/threads/ops/crud.rs+++ b/crates/openhuman-core/src/threads/ops/crud.rs@@ -5,11 +5,11 @@ use super::support::{counts, envelope, message_to_record, record_to_message, run_to_completion, thread_to_summary,workspace_dir,};-use crate::core::Outcome;use crate::core::runtime::DispatchCtx;-use crate::threads::ThreadsError;+use crate::core::Outcome;use crate::threads::store as conversations;use crate::threads::store::{ConversationMessagePatch, CrossThreadHit};+use crate::threads::ThreadsError;use crate::threads::{ApiEnvelope, AppendConversationMessageRequest, ConversationMessageRecord,ConversationMessagesRequest, ConversationMessagesResponse, ConversationThreadSummary,diff --git a/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs b/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rsindex 964dda7317..1eff122c93 100644--- a/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs+++ b/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs@@ -111,55 +111,47 @@ async fn user_append_stages_original_strips_upload_bytes_and_reuses_returned_con.await.unwrap();assert_eq!(persisted.len(), 2);- assert!(- !serde_json::to_string(&persisted)- .unwrap()- .contains("base64,")- );+ assert!(!serde_json::to_string(&persisted)+ .unwrap()+ .contains("base64,"));}#[tokio::test]async fn rejected_upload_never_appends_a_message() {let (_temp, mut config) = setup().await;config.multimodal_files.max_files = 0;- assert!(- append_with_test_config(- request(- "disabled",- "[IMAGE:data:image/png;base64,iVBORw0KGgo=]",- "user"- ),- &config,- None,- )- .await- .is_err()- );+ assert!(append_with_test_config(+ request(+ "disabled",+ "[IMAGE:data:image/png;base64,iVBORw0KGgo=]",+ "user"+ ),+ &config,+ None,+ )+ .await+ .is_err());config.multimodal_files.max_files = 3;- assert!(- append_with_test_config(- request("bad", "[FILE:data:application/zip;base64,!]", "user"),- &config,- None,- )- .await- .is_err()- );+ assert!(append_with_test_config(+ request("bad", "[FILE:data:application/zip;base64,!]", "user"),+ &config,+ None,+ )+ .await+ .is_err());assert!(append_with_test_config(request("missing", "image.png", "user"), &config, None).await.is_err());- assert!(- conversations::blocking::get_messages(- crate::core::runtime::DispatchCtx::ambient(),- config.workspace_dir.clone(),- "uploads".into()- )- .await- .unwrap()- .is_empty()- );+ assert!(conversations::blocking::get_messages(+ crate::core::runtime::DispatchCtx::ambient(),+ config.workspace_dir.clone(),+ "uploads".into()+ )+ .await+ .unwrap()+ .is_empty());}#[tokio::test]@@ -187,16 +179,14 @@ async fn external_origin_cannot_reuse_an_existing_attachment_marker() {.await.is_err());- assert!(- conversations::blocking::get_messages(- crate::core::runtime::DispatchCtx::ambient(),- config.workspace_dir,- "uploads".into()- )- .await- .unwrap()- .is_empty()- );+ assert!(conversations::blocking::get_messages(+ crate::core::runtime::DispatchCtx::ambient(),+ config.workspace_dir,+ "uploads".into()+ )+ .await+ .unwrap()+ .is_empty());}#[tokio::test]@@ -265,16 +255,14 @@ async fn append_uses_host_persistence_workspace_separate_from_rpc_config() {.await.unwrap();assert_eq!(persisted.len(), 1);- assert!(- conversations::blocking::get_messages(- crate::core::runtime::DispatchCtx::ambient(),- config.workspace_dir,- "uploads".into()- )- .await- .unwrap()- .is_empty()- );+ assert!(conversations::blocking::get_messages(+ crate::core::runtime::DispatchCtx::ambient(),+ config.workspace_dir,+ "uploads".into()+ )+ .await+ .unwrap()+ .is_empty());}#[tokio::test]@@ -285,21 +273,17 @@ async fn poster_only_user_metadata_is_rejected_before_persistence() {"attachmentNames": ["video.mp4"],"attachmentPosters": ["data:image/png;base64,iVBORw0KGgo="]});- assert!(- append_with_test_config(upload, &config, None)- .await- .is_err()- );- assert!(- conversations::blocking::get_messages(- crate::core::runtime::DispatchCtx::ambient(),- config.workspace_dir.clone(),- "uploads".into()- )+ assert!(append_with_test_config(upload, &config, None).await- .unwrap()- .is_empty()- );+ .is_err());+ assert!(conversations::blocking::get_messages(+ crate::core::runtime::DispatchCtx::ambient(),+ config.workspace_dir.clone(),+ "uploads".into()+ )+ .await+ .unwrap()+ .is_empty());}#[tokio::test]diff --git a/crates/openhuman-core/src/tools/impl/document/mod.rs b/crates/openhuman-core/src/tools/impl/document/mod.rsindex 61a0f70b92..68c9f3d9fd 100644--- a/crates/openhuman-core/src/tools/impl/document/mod.rs+++ b/crates/openhuman-core/src/tools/impl/document/mod.rs@@ -30,7 +30,7 @@ use std::sync::Arc;use std::time::Duration;use async_trait::async_trait;-use serde_json::{Value, json};+use serde_json::{json, Value};use crate::artifacts::production::Production;use crate::security::SecurityPolicy;@@ -56,7 +56,7 @@ mod types;#[path = "document_tests.rs"]mod tests;-use self::types::{GenerateDocumentInput, GenerateDocumentOutput, validate_input};+use self::types::{validate_input, GenerateDocumentInput, GenerateDocumentOutput};/// Generation timeout. `docx-rs` typically completes the full section cap/// in well under a second; the 30 s ceiling is a defensive bound againstdiff --git a/crates/openhuman-core/src/tools/impl/document/types.rs b/crates/openhuman-core/src/tools/impl/document/types.rsindex a3f033f881..c77fd115c1 100644--- a/crates/openhuman-core/src/tools/impl/document/types.rs+++ b/crates/openhuman-core/src/tools/impl/document/types.rs@@ -27,8 +27,8 @@ use crate::modules::documents::DocumentCallError;// are the same ones the module validates against, which is the whole reason// `spec` is separable.pub use crate::tools::implementations::document::format::spec::document::{- DocumentSpec as GenerateDocumentInput, MAX_BULLETS_PER_SECTION, MAX_PARAGRAPH_CHARS,- MAX_PARAGRAPHS_PER_SECTION, MAX_SECTIONS, MAX_TEXT_CHARS,+ DocumentSpec as GenerateDocumentInput, MAX_BULLETS_PER_SECTION, MAX_PARAGRAPHS_PER_SECTION,+ MAX_PARAGRAPH_CHARS, MAX_SECTIONS, MAX_TEXT_CHARS,};// `sections` is a `Vec<DocumentSection>`, so anything constructing an inputdiff --git a/crates/openhuman-core/src/tools/impl/presentation/mod.rs b/crates/openhuman-core/src/tools/impl/presentation/mod.rsindex ea9bcef277..ae67f93010 100644--- a/crates/openhuman-core/src/tools/impl/presentation/mod.rs+++ b/crates/openhuman-core/src/tools/impl/presentation/mod.rs@@ -33,7 +33,7 @@ use std::sync::Arc;use std::time::Duration;use async_trait::async_trait;-use serde_json::{Value, json};+use serde_json::{json, Value};use crate::artifacts::production::Production;use crate::artifacts::read_artifact_bytes;@@ -50,8 +50,8 @@ mod tests;use crate::tools::implementations::document::format::spec::SlideImage;use self::types::{- GeneratePresentationInput, GeneratePresentationOutput, MAX_IMAGE_BYTES, SlideImageRequest,- SlideImageSource, validate_input,+ validate_input, GeneratePresentationInput, GeneratePresentationOutput, SlideImageRequest,+ SlideImageSource, MAX_IMAGE_BYTES,};/// Generation timeout. `ppt-rs` typically completes the full 64-slidediff --git a/crates/openhuman-core/src/tools/impl/presentation/presentation_tests.rs b/crates/openhuman-core/src/tools/impl/presentation/presentation_tests.rsindex 803027817d..b0cc052280 100644--- a/crates/openhuman-core/src/tools/impl/presentation/presentation_tests.rs+++ b/crates/openhuman-core/src/tools/impl/presentation/presentation_tests.rs@@ -13,7 +13,7 @@//! perspective.use super::types::GeneratePresentationInput;-use super::types::{MAX_BULLETS_PER_SLIDE, MAX_SLIDES, MAX_TEXT_CHARS, PresentationError};+use super::types::{PresentationError, MAX_BULLETS_PER_SLIDE, MAX_SLIDES, MAX_TEXT_CHARS};use super::*;use std::path::Path;@@ -222,7 +222,7 @@ async fn execute_happy_path_returns_artifact_metadata() {/// Canonical 1×1 PNG, written to disk to exercise the File source path.fn png_1x1() -> Vec<u8> {- use base64::{Engine as _, engine::general_purpose::STANDARD};+ use base64::{engine::general_purpose::STANDARD, Engine as _};STANDARD.decode("iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==").unwrap()diff --git a/crates/openhuman-core/src/tools/impl/presentation/types.rs b/crates/openhuman-core/src/tools/impl/presentation/types.rsindex 6582ec24b4..7359b11f70 100644--- a/crates/openhuman-core/src/tools/impl/presentation/types.rs+++ b/crates/openhuman-core/src/tools/impl/presentation/types.rs@@ -7,7 +7,7 @@ use crate::modules::documents::DocumentCallError;// The size limits are the wire contract's: the tool validates against the same// numbers the `tinydocs` module enforces, so they are defined once, there.pub(super) use crate::tools::implementations::document::format::spec::presentation::{- MAX_BULLETS_PER_SLIDE, MAX_IMAGE_BYTES, MAX_IMAGES_PER_DECK, MAX_IMAGES_PER_SLIDE, MAX_SLIDES,+ MAX_BULLETS_PER_SLIDE, MAX_IMAGES_PER_DECK, MAX_IMAGES_PER_SLIDE, MAX_IMAGE_BYTES, MAX_SLIDES,MAX_TEXT_CHARS,};diff --git a/crates/openhuman-core/src/tools/ops_tests.rs b/crates/openhuman-core/src/tools/ops_tests.rsindex ece8b45aa3..26d404ba0d 100644--- a/crates/openhuman-core/src/tools/ops_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests.rs@@ -1,7 +1,7 @@use super::*;use crate::config::{BrowserConfig, Config};+use crate::security::credentials::{AuthService, APP_SESSION_PROVIDER, DEFAULT_AUTH_PROFILE_NAME};use crate::security::AuditLogger;-use crate::security::credentials::{APP_SESSION_PROVIDER, AuthService, DEFAULT_AUTH_PROFILE_NAME};use crate::tools::ops::{all_tools, tool_group};use tempfile::TempDir;use tinytools::ToolContent;diff --git a/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs b/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rsindex 8f00bee316..15af6b8c9b 100644--- a/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs@@ -354,8 +354,8 @@ fn memory_tool_classifies_as_memory_family() {/// A narrowed DomainSet axis still keeps the ordinary platform tools.#[tokio::test]async fn full_domain_set_keeps_platform_tools() {- use crate::core::runtime::DomainSet;use crate::core::runtime::context::CoreContext;+ use crate::core::runtime::DomainSet;let tmp = TempDir::new().unwrap();let ctx = CoreContext::for_test(DomainSet::full(), None);diff --git a/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs b/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rsindex e5d6bd8825..f9b1dd7142 100644--- a/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs@@ -27,11 +27,9 @@ fn all_tools_registers_the_memory_tool_while_memory_is_on() {);// The search half of deferral is the harness's intrinsic bridge, never a// registered tool: a host `tool_search` would shadow it.- assert!(- !tools- .iter()- .any(|tool| { tool.name() == tinytools::TOOL_SEARCH_NAME })- );+ assert!(!tools+ .iter()+ .any(|tool| { tool.name() == tinytools::TOOL_SEARCH_NAME }));}/// The three `whatsapp_data_*` agent tools are gone, in every build.///diff --git a/crates/openhuman-core/src/tools/toolpacks/mod.rs b/crates/openhuman-core/src/tools/toolpacks/mod.rsindex b3e9440cc2..ea56cda198 100644--- a/crates/openhuman-core/src/tools/toolpacks/mod.rs+++ b/crates/openhuman-core/src/tools/toolpacks/mod.rs@@ -26,14 +26,14 @@ pub mod groups;pub mod ops;pub mod registry;-pub use groups::{GROUP_COUNT, GroupMode, ToolGroups, set_process_default};+pub use groups::{set_process_default, GroupMode, ToolGroups, GROUP_COUNT};pub use ops::{append_pack_tools, bind_pack_registry, bind_synthesized_pack_registry, close_handed_off_packs,closed_by_direct_handoff, strip_packed_from_visible,};pub use registry::{- CATALOG, PACKS, all_packed_tool_names, callable_pack_ids, pack, pack_for_tool,- pack_index_markdown_filtered,+ all_packed_tool_names, callable_pack_ids, pack, pack_for_tool, pack_index_markdown_filtered,+ CATALOG, PACKS,};#[cfg(test)]diff --git a/crates/openhuman-core/src/tools/toolpacks/ops.rs b/crates/openhuman-core/src/tools/toolpacks/ops.rsindex 5d674d8d25..b5db31bec0 100644--- a/crates/openhuman-core/src/tools/toolpacks/ops.rs+++ b/crates/openhuman-core/src/tools/toolpacks/ops.rs@@ -4,7 +4,7 @@ use std::collections::HashSet;use std::sync::{Arc, Weak};use super::registry;-use tinyagents_harness_tools::skills::{PackRegistryHandle, USE_SKILL, UseSkillTool};+use tinyagents_harness_tools::skills::{PackRegistryHandle, UseSkillTool, USE_SKILL};use tinytools::Tool;/// Append `use_skill` to a freshly built registry.diff --git a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rsindex 9b3fb464a1..42fa9ada38 100644--- a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs+++ b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs@@ -8,7 +8,7 @@ use std::collections::HashSet;use std::sync::Arc;use async_trait::async_trait;-use serde_json::{Value, json};+use serde_json::{json, Value};use super::*;use tinyagents_harness_tools::skills::USE_SKILL;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 667d3e0831..fb138d2029 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@@ -2,7 +2,7 @@//! execution distinction the whole pack mechanism rests on.use super::*;-use tinyagents_harness_tools::skills::{USE_SKILL, route_sentence};+use tinyagents_harness_tools::skills::{route_sentence, USE_SKILL};// ── the index must agree with the gate too ──────────────────────────────────diff --git a/crates/openhuman-core/src/util/classic_transcript_fixture.rs b/crates/openhuman-core/src/util/classic_transcript_fixture.rsindex 1bd659a269..466d6ccd0b 100644--- a/crates/openhuman-core/src/util/classic_transcript_fixture.rs+++ b/crates/openhuman-core/src/util/classic_transcript_fixture.rs@@ -11,7 +11,7 @@use std::path::Path;-use serde_json::{Value, json};+use serde_json::{json, Value};use tinyagents_session::transcript::{TranscriptMessage, TranscriptMeta};/// The `{"_meta": ...}` header line of a classic transcript.diff --git a/crates/openhuman-core/src/util/text_tests.rs b/crates/openhuman-core/src/util/text_tests.rsindex 704f0bc632..fcfd635687 100644--- a/crates/openhuman-core/src/util/text_tests.rs+++ b/crates/openhuman-core/src/util/text_tests.rs@@ -92,7 +92,7 @@ fn test_truncate_zero_max_chars() {#[test]fn test_truncate_at_byte_boundary() {let s = "Hello 🦀 World"; // 16 bytes total. "🦀" is 4 bytes at index 6-9.- // No truncation+ // No truncationassert_eq!(truncate_at_byte_boundary(s, 16), s);assert_eq!(truncate_at_byte_boundary(s, 20), s);diff --git a/crates/openhuman-embed/src/agent/build_tests.rs b/crates/openhuman-embed/src/agent/build_tests.rsindex c397502b2b..6e2eeeb19a 100644--- a/crates/openhuman-embed/src/agent/build_tests.rs+++ b/crates/openhuman-embed/src/agent/build_tests.rs@@ -67,12 +67,10 @@ fn sub_agents_become_workers_in_a_catalogue_of_the_agents_own() {own.get("orchestrator").is_some(),"built-ins stay reachable");- assert!(- definition- .subagents- .iter()- .any(|entry| matches!(entry, SubagentEntry::AgentId(id) if id == "lead-helper"))- );+ assert!(definition+ .subagents+ .iter()+ .any(|entry| matches!(entry, SubagentEntry::AgentId(id) if id == "lead-helper")));assert!(catalogue.get("lead-helper").is_none());}diff --git a/crates/openhuman-embed/src/agent/definition_tests.rs b/crates/openhuman-embed/src/agent/definition_tests.rsindex d65c17889d..dc9c01b641 100644--- a/crates/openhuman-embed/src/agent/definition_tests.rs+++ b/crates/openhuman-embed/src/agent/definition_tests.rs@@ -89,13 +89,11 @@ fn tool_rules_reach_the_core_definition() {.into_core("narrow").unwrap();assert_eq!(def.tool_rules, Some(rules));- assert!(- AgentDefinitionSpec::new()- .into_core("open")- .unwrap()- .tool_rules- .is_none()- );+ assert!(AgentDefinitionSpec::new()+ .into_core("open")+ .unwrap()+ .tool_rules+ .is_none());}#[test]@@ -126,12 +124,10 @@ fn template_overrides_are_independent_and_keep_restrictions() {assert_eq!(first.temperature, 0.3);assert_eq!(second.temperature, 0.8);assert_eq!(second.max_iterations, 7);- assert!(- AgentDefinitionSpec::new()- .tools(ToolScopeSpec::Wildcard)- .inherit(template)- .is_err()- );+ assert!(AgentDefinitionSpec::new()+ .tools(ToolScopeSpec::Wildcard)+ .inherit(template)+ .is_err());}#[test]fn base_can_be_named_or_custom_and_unknown_names_are_typed() {diff --git a/crates/openhuman-embed/src/agent/lifecycle.rs b/crates/openhuman-embed/src/agent/lifecycle.rsindex 6efd5eed3f..28d1d3a5bb 100644--- a/crates/openhuman-embed/src/agent/lifecycle.rs+++ b/crates/openhuman-embed/src/agent/lifecycle.rs@@ -5,7 +5,7 @@ use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};use std::sync::{Arc, Mutex};use std::time::Duration;-use tokio::sync::{Notify, watch};+use tokio::sync::{watch, Notify};use crate::CoreError;diff --git a/crates/openhuman-embed/src/agent/mcp_cleanup.rs b/crates/openhuman-embed/src/agent/mcp_cleanup.rsindex 6bedf486ff..fab6927e9b 100644--- a/crates/openhuman-embed/src/agent/mcp_cleanup.rs+++ b/crates/openhuman-embed/src/agent/mcp_cleanup.rs@@ -1,7 +1,7 @@//! Retiring one captured agent owner before its id or home is reusable.use super::*;use crate::runtime::PendingCleanup;-use std::sync::{Weak, atomic::Ordering};+use std::sync::{atomic::Ordering, Weak};pub(crate) fn finish_removal(registry: &crate::runtime::AgentMap,diff --git a/crates/openhuman-embed/src/agent/mod.rs b/crates/openhuman-embed/src/agent/mod.rsindex 5b1b4182b5..20c1ddadd9 100644--- a/crates/openhuman-embed/src/agent/mod.rs+++ b/crates/openhuman-embed/src/agent/mod.rs@@ -38,9 +38,9 @@ use openhuman_core::agent_registry::host_definition::AgentDefinition;use openhuman_core::config::Config;use openhuman_core::core::runtime::{CoreContext, CoreRuntime};-use crate::CoreError;use crate::harness::{Access, Provider};use crate::turn::{Turn, TurnOutcome, TurnTarget};+use crate::CoreError;/// Error from instantiating or driving an [`Agent`].#[derive(Debug, thiserror::Error)]diff --git a/crates/openhuman-embed/src/agent/spec.rs b/crates/openhuman-embed/src/agent/spec.rsindex 037ed73e65..75baa21c4a 100644--- a/crates/openhuman-embed/src/agent/spec.rs+++ b/crates/openhuman-embed/src/agent/spec.rs@@ -423,11 +423,11 @@ impl AgentSpec {pub fn tools(mut self,f: impl for<'a> Fn(- openhuman_core::agent::TurnContext<'a>,- ) -> openhuman_core::agent::HostTurnTools- + Send- + Sync- + 'static,+ openhuman_core::agent::TurnContext<'a>,+ ) -> openhuman_core::agent::HostTurnTools+ + Send+ + Sync+ + 'static,) -> Self {self.host_tools = Some(std::sync::Arc::new(f));selfdiff --git a/crates/openhuman-embed/src/agent/spec_tests.rs b/crates/openhuman-embed/src/agent/spec_tests.rsindex 5f42183ca8..cc5005f658 100644--- a/crates/openhuman-embed/src/agent/spec_tests.rs+++ b/crates/openhuman-embed/src/agent/spec_tests.rs@@ -1,6 +1,6 @@use super::*;-use crate::AgentError;use crate::agent::build::{check_domains_narrow, check_tool_groups_narrow};+use crate::AgentError;use openhuman_core::tools::toolpacks::GroupMode;#[test]diff --git a/crates/openhuman-embed/src/artifacts.rs b/crates/openhuman-embed/src/artifacts.rsindex 23c17c3a52..8dd7a43c18 100644--- a/crates/openhuman-embed/src/artifacts.rs+++ b/crates/openhuman-embed/src/artifacts.rs@@ -4,9 +4,9 @@//! The constructors below the line exist for host tests that need a real//! artifact on disk; production hosts only resolve.-pub use openhuman_core::artifacts::{FileRoots, resolve_ready_file};+pub use openhuman_core::artifacts::{resolve_ready_file, FileRoots};#[doc(hidden)]pub use openhuman_core::artifacts::{- ArtifactKind, ArtifactMeta, ArtifactStatus, create_artifact, finalize_artifact,+ create_artifact, finalize_artifact, ArtifactKind, ArtifactMeta, ArtifactStatus,};diff --git a/crates/openhuman-embed/src/call.rs b/crates/openhuman-embed/src/call.rsindex 3114cbebcc..aa70bfbeef 100644--- a/crates/openhuman-embed/src/call.rs+++ b/crates/openhuman-embed/src/call.rs@@ -36,8 +36,8 @@//! log line. [`unwrap_outcome_envelope`] absorbs that here so no facade method//! and no host has to think about it.-use serde::Serialize;use serde::de::DeserializeOwned;+use serde::Serialize;use super::error::CoreError;use openhuman_core::core::runtime::CoreRuntime;diff --git a/crates/openhuman-embed/src/cancellation.rs b/crates/openhuman-embed/src/cancellation.rsindex b1f9e99cc4..be5eb0a3fd 100644--- a/crates/openhuman-embed/src/cancellation.rs+++ b/crates/openhuman-embed/src/cancellation.rs@@ -47,6 +47,6 @@ impl Cancellation {pub(crate) struct Guard(Cancellation);impl Drop for Guard {fn drop(&mut self) {- self.0.0.active.send_modify(|count| *count -= 1);+ self.0 .0.active.send_modify(|count| *count -= 1);}}diff --git a/crates/openhuman-embed/src/chat_surface.rs b/crates/openhuman-embed/src/chat_surface.rsindex dc52bdff56..1fd074ac22 100644--- a/crates/openhuman-embed/src/chat_surface.rs+++ b/crates/openhuman-embed/src/chat_surface.rs@@ -6,6 +6,6 @@//! then reads it with [`subscribe_web_channel_events`].pub use openhuman_core::web_chat::{- WebChannelEvent, publish_web_channel_event, register_approval_surface_subscriber,- register_artifact_surface_subscriber, subscribe_web_channel_events,+ publish_web_channel_event, register_approval_surface_subscriber,+ register_artifact_surface_subscriber, subscribe_web_channel_events, WebChannelEvent,};diff --git a/crates/openhuman-embed/src/complete.rs b/crates/openhuman-embed/src/complete.rsindex b096e080a9..5b6cf9b467 100644--- a/crates/openhuman-embed/src/complete.rs+++ b/crates/openhuman-embed/src/complete.rs@@ -53,7 +53,7 @@ use tinyinference_llm::message::{ContentBlock, ImageRef, Message, UserMessage};use tinyinference_llm::model::{ModelRequest, ModelResponse};use crate::error::CoreError;-use crate::turn::{Route, is_safe_endpoint_for_bearer, sanitize_url_for_display};+use crate::turn::{is_safe_endpoint_for_bearer, sanitize_url_for_display, Route};/// Method label carried by every [`CoreError`] this module returns.pub const COMPLETE: &str = "openhuman.complete";@@ -539,7 +539,7 @@ impl Completer {mut request: CompletionRequest,) -> Result<CompletionResponse, CoreError> {use crate::structured::{- StructuredFailureReason, StructuredOutputFailure, Validator, accumulate,+ accumulate, StructuredFailureReason, StructuredOutputFailure, Validator,};let initial_failure = |reason| CoreError::StructuredOutput {method: COMPLETE,diff --git a/crates/openhuman-embed/src/config.rs b/crates/openhuman-embed/src/config.rsindex 279bce7171..018f52efaa 100644--- a/crates/openhuman-embed/src/config.rs+++ b/crates/openhuman-embed/src/config.rs@@ -70,12 +70,12 @@ pub use tinytools::{DefaultEffect, Patterns, RuleEffect, Surface, ToolMatcher, ToolRule, ToolRules,};-/// The core's config type, as [`crate::RuntimeConfig`].-pub use openhuman_core::config::Config as RuntimeConfig;/// Typed runtime builder policy groups from the core configuration contract.pub use openhuman_core::config::schema::{AutonomyConfig, CronConfig, PrivacyConfig, PrivacyMode, SecretsConfig,};+/// The core's config type, as [`crate::RuntimeConfig`].+pub use openhuman_core::config::Config as RuntimeConfig;/// Load `config.toml` (creating defaults when absent) with the environment/// overlay and per-user scoping — what a core with no supplied config bootsdiff --git a/crates/openhuman-embed/src/cron.rs b/crates/openhuman-embed/src/cron.rsindex 27d944b68c..ca05ad3a0f 100644--- a/crates/openhuman-embed/src/cron.rs+++ b/crates/openhuman-embed/src/cron.rs@@ -59,19 +59,19 @@ use std::future::Future;use std::time::SystemTime;use openhuman_core::config::Config;-use openhuman_core::cron::JobPolicy;use openhuman_core::cron::system_jobs::SYSTEM_COMMAND_PREFIX;+use openhuman_core::cron::JobPolicy;use {openhuman_core::cron::CronJob, openhuman_core::cron::CronJobPatch,openhuman_core::cron::JobType, openhuman_core::cron::Schedule,};+pub use openhuman_core::cron::handlers::{JobKindHandler, JobOutcome, JobRunContext};+pub use openhuman_core::cron::system_job_handlers::SystemJobContext;/// The kind of a scheduled job (`shell`, `agent`, `flow`), which decides the/// handler that runs it: see/// [`RuntimeBuilder::cron_job_handler`](crate::RuntimeBuilder::cron_job_handler).pub use openhuman_core::cron::JobType as JobKind;-pub use openhuman_core::cron::handlers::{JobKindHandler, JobOutcome, JobRunContext};-pub use openhuman_core::cron::system_job_handlers::SystemJobContext;/// When a job fires.#[derive(Debug, Clone, PartialEq, Eq)]diff --git a/crates/openhuman-embed/src/embeddings.rs b/crates/openhuman-embed/src/embeddings.rsindex 65ed53e053..9dac1faa72 100644--- a/crates/openhuman-embed/src/embeddings.rs+++ b/crates/openhuman-embed/src/embeddings.rs@@ -16,11 +16,11 @@//! [`Runtime`](crate::Runtime).pub use tinyinference_embeddings::{- COHERE_API_BASE, COHERE_DEFAULT_DIMENSIONS, COHERE_DEFAULT_MODEL, CohereEmbeddingModel,+ format_embedding_signature, set_rate_limit, CohereEmbeddingModel, EmbeddingModel,+ MockEmbeddingModel, NoopEmbeddingModel, OllamaEmbeddingModel, OpenAiEmbeddingModel,+ VoyageEmbeddingModel, COHERE_API_BASE, COHERE_DEFAULT_DIMENSIONS, COHERE_DEFAULT_MODEL,DEFAULT_OLLAMA_DIMENSIONS, DEFAULT_OLLAMA_MODEL, DEFAULT_OLLAMA_URL,- DEFAULT_REQUESTS_PER_MINUTE, EmbeddingModel, MockEmbeddingModel, NoopEmbeddingModel,- OllamaEmbeddingModel, OpenAiEmbeddingModel, VOYAGE_API_BASE, VOYAGE_DEFAULT_DIMENSIONS,- VOYAGE_DEFAULT_MODEL, VoyageEmbeddingModel, format_embedding_signature, set_rate_limit,+ DEFAULT_REQUESTS_PER_MINUTE, VOYAGE_API_BASE, VOYAGE_DEFAULT_DIMENSIONS, VOYAGE_DEFAULT_MODEL,};/// Errors the embedding models return.pub use tinyinference_embeddings::{Error as EmbeddingError, Result as EmbeddingResult};diff --git a/crates/openhuman-embed/src/error.rs b/crates/openhuman-embed/src/error.rsindex 524c7305eb..387d1944c5 100644--- a/crates/openhuman-embed/src/error.rs+++ b/crates/openhuman-embed/src/error.rs@@ -20,8 +20,8 @@//! facade classifies it. A host that cannot make that distinction renders a//! scary red error where it should simply hide a tab.-use openhuman_core::core::StructuredRpcError;use openhuman_core::core::dispatch::UNKNOWN_METHOD_PREFIX;+use openhuman_core::core::StructuredRpcError;/// Error returned by every typed facade call.#[derive(Debug, thiserror::Error)]diff --git a/crates/openhuman-embed/src/events.rs b/crates/openhuman-embed/src/events.rsindex cda93673d5..d528e8a0a8 100644--- a/crates/openhuman-embed/src/events.rs+++ b/crates/openhuman-embed/src/events.rs@@ -8,7 +8,7 @@ use std::pin::Pin;use std::sync::{Arc, Mutex, Weak};use std::task::{Context, Poll};use tokio::sync::broadcast;-use tokio_stream::wrappers::{BroadcastStream, errors::BroadcastStreamRecvError};+use tokio_stream::wrappers::{errors::BroadcastStreamRecvError, BroadcastStream};use {openhuman_core::core::bus::BUS, tinybus::EventHandler, tinybus::SubscriptionHandle};/// Metadata about one runtime transition; never includes user/tool payloads.diff --git a/crates/openhuman-embed/src/harness/builder.rs b/crates/openhuman-embed/src/harness/builder.rsindex ce3f73e216..5da75a5a80 100644--- a/crates/openhuman-embed/src/harness/builder.rs+++ b/crates/openhuman-embed/src/harness/builder.rs@@ -9,14 +9,14 @@use std::path::PathBuf;-use super::Harness;use super::access::Access;use super::error::HarnessError;use super::provider::Provider;use super::workspace::Workspace;-use crate::Session;+use super::Harness;use crate::agent::AgentSpec;use crate::runtime::RuntimeBuilder;+use crate::Session;use openhuman_core::config::Config;use openhuman_core::core::runtime::{DomainSet, ServiceSet};use openhuman_core::core::types::HostKind;@@ -130,11 +130,11 @@ impl HarnessBuilder {pub fn tools(mut self,f: impl for<'a> Fn(- openhuman_core::agent::TurnContext<'a>,- ) -> openhuman_core::agent::HostTurnTools- + Send- + Sync- + 'static,+ openhuman_core::agent::TurnContext<'a>,+ ) -> openhuman_core::agent::HostTurnTools+ + Send+ + Sync+ + 'static,) -> Self {self.host_tools = Some(std::sync::Arc::new(f));selfdiff --git a/crates/openhuman-embed/src/harness/mod.rs b/crates/openhuman-embed/src/harness/mod.rsindex c0c4f5b5c1..4a89a6b1e6 100644--- a/crates/openhuman-embed/src/harness/mod.rs+++ b/crates/openhuman-embed/src/harness/mod.rs@@ -101,10 +101,10 @@ pub use workspace::Workspace;use std::path::Path;-use crate::Core;use crate::agent::Agent;use crate::runtime::Runtime;use crate::turn::{Turn, TurnOutcome};+use crate::Core;/// An embedded OpenHuman agent harness: one runtime, one agent.///diff --git a/crates/openhuman-embed/src/host_internals.rs b/crates/openhuman-embed/src/host_internals.rsindex 742811897e..c75c84b4e5 100644--- a/crates/openhuman-embed/src/host_internals.rs+++ b/crates/openhuman-embed/src/host_internals.rs@@ -20,16 +20,16 @@ pub use openhuman_core::run_core_from_args;/// Shared by tinyhumans (hosted controllers) and rpc (`http_host`, `/health`).pub mod core {pub use openhuman_core::core::{- ControllerSchema, FieldSchema, Outcome, StructuredRpcError, TypeSchema, unwrap_rpc,+ unwrap_rpc, ControllerSchema, FieldSchema, Outcome, StructuredRpcError, TypeSchema,};pub mod all {// tinyhumans: hosted controller extension; rpc: http_host + `/health`.pub use openhuman_core::core::all::{- ControllerExtension, ControllerFuture, DomainGroup, RegisteredController,all_controller_schemas, all_http_method_schemas, cli_handler_for_namespace,namespace_description, register_controller_extension, rpc_method_from_parts,- schema_for_rpc_method,+ schema_for_rpc_method, ControllerExtension, ControllerFuture, DomainGroup,+ RegisteredController,};}@@ -37,31 +37,31 @@ pub mod core {/// RPC handler and classifier (rpc).pub mod observability {pub use openhuman_core::core::observability::{- API_KEY_REJECTED_PREFIX, BACKEND_UNAVAILABLE_PREFIX, ExpectedErrorKind,- REPORT_ERROR_TRACING_TARGET, USAGE_PROBE_BACKOFF_PREFIX,contains_transient_transport_phrase, expected_error_kind, is_api_key_rejected_message,is_session_expired_message, is_suppressed_usage_probe_backoff,is_transient_http_status_code, is_transient_message_failure, report_error,- report_error_or_expected, report_warning_message,+ report_error_or_expected, report_warning_message, ExpectedErrorKind,+ API_KEY_REJECTED_PREFIX, BACKEND_UNAVAILABLE_PREFIX, REPORT_ERROR_TRACING_TARGET,+ USAGE_PROBE_BACKOFF_PREFIX,};}// rpc server only, below.pub mod auth {pub use openhuman_core::core::auth::{- CORE_TOKEN_ENV_VAR, bearer_matches, get_rpc_token, init_rpc_token,- init_rpc_token_with_value, verify_bearer_token,+ bearer_matches, get_rpc_token, init_rpc_token, init_rpc_token_with_value,+ verify_bearer_token, CORE_TOKEN_ENV_VAR,};}pub mod bus {- pub use openhuman_core::core::bus::{BUS, init};+ pub use openhuman_core::core::bus::{init, BUS};}pub mod cli {pub use openhuman_core::core::cli::load_dotenv_for_cli;}pub mod dispatch {pub use openhuman_core::core::dispatch::{- UNKNOWN_METHOD_PREFIX, is_known_probe_method, unknown_method_name,+ is_known_probe_method, unknown_method_name, UNKNOWN_METHOD_PREFIX,};}pub mod event_bind_tokens {@@ -81,14 +81,14 @@ pub mod core {}pub mod runtime {pub use openhuman_core::core::runtime::{- CoreContext, CoreRuntime, DispatchCtx, Mode, SaasConfig, current_tenant, is_saas,+ current_tenant, is_saas, CoreContext, CoreRuntime, DispatchCtx, Mode, SaasConfig,};pub mod saas {pub use openhuman_core::core::runtime::saas::build;}}pub mod server_launcher {- pub use openhuman_core::core::server_launcher::{ServeRequest, install_server_launcher};+ pub use openhuman_core::core::server_launcher::{install_server_launcher, ServeRequest};}pub mod session_expiry {pub use openhuman_core::core::session_expiry::is_session_expired_error;@@ -109,15 +109,15 @@ pub mod core {/// tinyhumans (every hosted controller loads its config) and rpc (server).pub mod config {pub use openhuman_core::config::{- Config, MODEL_MANAGED_DEFAULT, PrivacyMode, active_workspace_dir,- active_workspace_dir_cached, active_workspace_snapshot,+ active_workspace_dir, active_workspace_dir_cached, active_workspace_snapshot,build_runtime_proxy_client_with_timeouts, load_config_with_timeout, workspace_handle,+ Config, PrivacyMode, MODEL_MANAGED_DEFAULT,};pub mod app_env {// tinyhumans: backend URL selection.pub use openhuman_core::config::app_env::{- APP_ENV_VAR, VITE_APP_ENV_VAR, app_env_from_env, is_staging_app_env,+ app_env_from_env, is_staging_app_env, APP_ENV_VAR, VITE_APP_ENV_VAR,};}pub mod ops {@@ -170,8 +170,8 @@ pub mod agent {}pub mod session_store {pub use openhuman_core::storage::sessions::{- ReboundSessionStores, WorkspaceSessionStores, context_workspace_dir, install,- installed, restore,+ context_workspace_dir, install, installed, restore, ReboundSessionStores,+ WorkspaceSessionStores,};}}@@ -188,8 +188,8 @@ pub mod channels {pub mod inference {pub mod embedding_host {pub use openhuman_core::inference::embedding_host::{- SharedEmbeddingModel, default_embedding_provider_for_chat,- default_embedding_provider_with_config,+ default_embedding_provider_for_chat, default_embedding_provider_with_config,+ SharedEmbeddingModel,};}pub mod provider {@@ -198,9 +198,9 @@ pub mod inference {}}pub mod http {- pub use openhuman_core::inference::http::EXTERNAL_OPENAI_COMPAT_PROVIDER;#[cfg(feature = "http-server")]pub use openhuman_core::inference::http::router;+ pub use openhuman_core::inference::http::EXTERNAL_OPENAI_COMPAT_PROVIDER;}}@@ -210,16 +210,16 @@ pub mod security {/// Host-supplied secret storage and encryption-key sources.pub mod secret_storage {pub use openhuman_core::security::secret_storage::{- EncryptedFileBackend, MasterKeySource, SecretBackend, SecretStorageError,clear_master_key_source, clear_secret_backend, init_workspace,install_master_key_source, install_secret_backend, installed_master_key_source,installed_secret_backend, is_available, store::workspace_dir_for_file_backend,+ EncryptedFileBackend, MasterKeySource, SecretBackend, SecretStorageError,};}pub mod credentials {pub use openhuman_core::security::credentials::{- APP_SESSION_PROVIDER, AuthService, DEFAULT_AUTH_PROFILE_NAME,- channel_credential_provider,+ channel_credential_provider, AuthService, APP_SESSION_PROVIDER,+ DEFAULT_AUTH_PROFILE_NAME,};pub mod ops {pub use openhuman_core::security::credentials::ops::{@@ -228,11 +228,11 @@ pub mod security {}pub mod session_support {pub use openhuman_core::security::credentials::session_support::{- BackendCredential, LOCAL_SESSION_BACKEND_UNAVAILABLE,+ build_session_state, classify_session_token, current_session_is_local,+ get_session_token, is_local_session_token, load_app_session_profile,+ publish_local_session_expiry, resolve_backend_credential, BackendCredential,+ SessionTokenCheck, LOCAL_SESSION_BACKEND_UNAVAILABLE,LOCAL_SESSION_MANAGED_INFERENCE_UNAVAILABLE, SESSION_EXPIRES_AT_META,- SessionTokenCheck, build_session_state, classify_session_token,- current_session_is_local, get_session_token, is_local_session_token,- load_app_session_profile, publish_local_session_expiry, resolve_backend_credential,};}pub mod api_key {@@ -284,17 +284,17 @@ pub mod util {/// Tool sources: tools an outside crate appends to the agent catalogue.pub mod tool_sources {pub use openhuman_core::tools::sources::{- ANCHOR_AFTER_DELEGATE, ANCHOR_AFTER_SEARCH, ToolSourceCtx, ToolSourceFactory,- ToolSourcePlacement, register_tool_source, register_tool_source_at,- register_tool_source_in, registered_tool_source_placements, unregister_tool_source,+ register_tool_source, register_tool_source_at, register_tool_source_in,+ registered_tool_source_placements, unregister_tool_source, ToolSourceCtx,+ ToolSourceFactory, ToolSourcePlacement, ANCHOR_AFTER_DELEGATE, ANCHOR_AFTER_SEARCH,};}/// The artifact publisher slot: the service that shares an artifact version.pub mod artifact_publisher {pub use openhuman_core::artifacts::{- ArtifactPublisherBinder, ArtifactPublisherFactory, register_artifact_publisher,- register_artifact_publisher_in, unregister_artifact_publisher,+ register_artifact_publisher, register_artifact_publisher_in, unregister_artifact_publisher,+ ArtifactPublisherBinder, ArtifactPublisherFactory,};// tinyhumans file-storage publisher: the protected-path guard it re-checks// before upload, and the store its tests save artifacts into.@@ -304,8 +304,8 @@ pub mod artifact_publisher {/// Egress disclosure, for hosted calls that leave the machine.pub mod egress {pub use openhuman_core::security::egress::{- DataKind, EgressDescriptor, EgressLedger, EgressReason, IdentificationRisk,emit_external_transfer, emit_external_transfer_in, enforce_egress, local_only_blocks,+ DataKind, EgressDescriptor, EgressLedger, EgressReason, IdentificationRisk,};}@@ -313,20 +313,20 @@ pub mod egress {pub mod config_enrichers {pub use openhuman_core::config::schema::resolved_endpoints::ResolvedEndpoints;pub use openhuman_core::config::{- ConfigEnricher, register_enricher, register_enricher_in, run_enrichers, unregister_enricher,+ register_enricher, register_enricher_in, run_enrichers, unregister_enricher, ConfigEnricher,};}/// Composio route builders (`composio.mode` -> route).pub mod composio {pub use openhuman_core::integrations::composio::client::{- ComposioRoute, ComposioRouteBuilder, register_composio_route_builder,- unregister_composio_route_builder,+ register_composio_route_builder, unregister_composio_route_builder, ComposioRoute,+ ComposioRouteBuilder,};// The proxy route's target (origin + bearer) for `composio.mode = backend`.#[cfg(feature = "modules")]pub use openhuman_core::modules::connectors::{- ProxyTarget, ProxyTargetResolver, register_proxy_target, unregister_proxy_target,+ register_proxy_target, unregister_proxy_target, ProxyTarget, ProxyTargetResolver,};}@@ -335,7 +335,7 @@ pub mod composio {pub mod media {pub mod generation {pub use openhuman_core::media::generation::{- GeneratorRouter, MediaGenerators, MediaReferenceAllowlist, media_tools_for_config,+ media_tools_for_config, GeneratorRouter, MediaGenerators, MediaReferenceAllowlist,};}}@@ -344,8 +344,8 @@ pub mod media {#[cfg(feature = "web3")]pub mod wallet_backend {pub use openhuman_core::modules::wallet_backend::{- WalletBackendCall, WalletBackendFuture, WalletBackendHandler, register_wallet_backend,- register_wallet_backend_in, unregister_wallet_backend,+ register_wallet_backend, register_wallet_backend_in, unregister_wallet_backend,+ WalletBackendCall, WalletBackendFuture, WalletBackendHandler,};}@@ -354,23 +354,23 @@ pub mod inference_registry {pub use openhuman_core::inference::provider::factory::PROVIDER_OPENHUMAN;pub use openhuman_core::inference::provider::openhuman_backend_model::REASONING_OFF_METADATA_KEY;pub use openhuman_core::inference::registry::{- BoxFuture, CatalogEntry, CatalogLimits, CatalogListing, CatalogRequest, ChatModelEntry,- ChatModelFactory, ChatModelRequest, EmbeddingFactory, EmbeddingRequest, ReadinessProbe,register_catalog, register_catalog_in, register_chat_model, register_chat_model_in,register_embedding, register_embedding_in, unregister_catalog, unregister_chat_model,- unregister_embedding,+ unregister_embedding, BoxFuture, CatalogEntry, CatalogLimits, CatalogListing,+ CatalogRequest, ChatModelEntry, ChatModelFactory, ChatModelRequest, EmbeddingFactory,+ EmbeddingRequest, ReadinessProbe,};}/// Memory engines by id, and the free-background-work predicate.pub mod memory_engines {pub use openhuman_core::memory::engine::{- BearerSource, Binding, BoundEngine, EngineCredential, EngineSettings, TINYHUMANS_ENGINE,- build_cached, rooted,+ build_cached, rooted, BearerSource, Binding, BoundEngine, EngineCredential, EngineSettings,+ TINYHUMANS_ENGINE,};pub use openhuman_core::memory::engine_registry::{- EngineBuilder, EngineEntry, EngineFuture, EngineRequest, FreeBackground, bound_engine,- register_memory_engine, register_memory_engine_in, unregister_memory_engine,+ bound_engine, register_memory_engine, register_memory_engine_in, unregister_memory_engine,+ EngineBuilder, EngineEntry, EngineFuture, EngineRequest, FreeBackground,};}@@ -378,8 +378,8 @@ pub mod memory_engines {#[cfg(feature = "channels")]pub mod channel_callback {pub use openhuman_core::channels::callback_slot::{- CallbackFuture, ChannelCallback, ChannelCallbackCtx, register_channel_callback,- register_channel_callback_in, unregister_channel_callback,+ register_channel_callback, register_channel_callback_in, unregister_channel_callback,+ CallbackFuture, ChannelCallback, ChannelCallbackCtx,};}@@ -390,21 +390,21 @@ pub mod voice_registry {LIVE_PROVIDER_ELEVENLABS_HOSTED, LIVE_PROVIDER_GEMINI_HOSTED,};pub use openhuman_core::voice::factory::registry::{- SttProviderFactory, TtsProviderFactory, register_stt_provider, register_stt_provider_in,- register_tts_provider, register_tts_provider_in, unregister_stt_provider,- unregister_tts_provider,+ register_stt_provider, register_stt_provider_in, register_tts_provider,+ register_tts_provider_in, unregister_stt_provider, unregister_tts_provider,+ SttProviderFactory, TtsProviderFactory,};pub use openhuman_core::voice::factory::{- SttProvider, SttResult, TtsProvider, create_stt_provider, create_tts_provider,+ create_stt_provider, create_tts_provider, SttProvider, SttResult, TtsProvider,};pub use openhuman_core::voice::live::ops::live_providers;pub use openhuman_core::voice::live::registry::{- ConfigureFn, ConfiguredFn, LiveFuture, LiveProviderEntry, LiveProviderPlacement, PrepareFn,- register_live_provider, register_live_provider_in, unregister_live_provider,+ register_live_provider, register_live_provider_in, unregister_live_provider, ConfigureFn,+ ConfiguredFn, LiveFuture, LiveProviderEntry, LiveProviderPlacement, PrepareFn,};pub use openhuman_core::voice::live::types::{LiveProviderInfo, LiveProviderKind};pub use openhuman_core::voice::live::{- GEMINI_LANGUAGES, GEMINI_VOICES, LiveVoiceError, PreparedProvider,+ LiveVoiceError, PreparedProvider, GEMINI_LANGUAGES, GEMINI_VOICES,};}@@ -436,7 +436,7 @@ pub mod platform {pub mod connectivity {pub mod rpc {pub use openhuman_core::platform::connectivity::rpc::{- OccupiedByCore, pick_listen_port_for_host_with,+ pick_listen_port_for_host_with, OccupiedByCore,};}}@@ -447,8 +447,8 @@ pub mod platform {pub mod storage {pub use openhuman_core::storage::{- STORAGE_URL_VAR, StorageBackend, block_on, block_on_anyhow, clear, configured_url,- driver_is_shared, install, install_for_url, installed, open, url_from,+ block_on, block_on_anyhow, clear, configured_url, driver_is_shared, install,+ install_for_url, installed, open, url_from, StorageBackend, STORAGE_URL_VAR,};/// The layout v1 -> v2 migration the host runs at boot when@@ -461,8 +461,8 @@ pub mod storage {pub mod profiles {pub mod gateway {pub use openhuman_core::profiles::gateway::{- GatewayRefusal, GatewayScope, HeldBy, PROFILE_HELD, PROFILE_OWNER_HEADER, USER_HEADER,- USER_SIG_HEADER, resolve_scope, sign, verify,+ resolve_scope, sign, verify, GatewayRefusal, GatewayScope, HeldBy, PROFILE_HELD,+ PROFILE_OWNER_HEADER, USER_HEADER, USER_SIG_HEADER,};}pub mod host {@@ -504,9 +504,9 @@ pub mod web3 {pub mod web_chat {pub use openhuman_core::web_chat::{- ChatRequestMetadata, GuardrailPayload, StartChatError, WebChannelEvent,approval_request_event, cancel_chat_scoped, plan_review_request_event,publish_web_channel_event, start_chat, subscribe_web_channel_events, unix_epoch_ms,+ ChatRequestMetadata, GuardrailPayload, StartChatError, WebChannelEvent,};}diff --git a/crates/openhuman-embed/src/lib.rs b/crates/openhuman-embed/src/lib.rsindex 46e9590ce8..59ae408371 100644--- a/crates/openhuman-embed/src/lib.rs+++ b/crates/openhuman-embed/src/lib.rs@@ -80,7 +80,7 @@ pub use openhuman_core::config::ComposioHostCredential;pub use openhuman_core::config::Config as RuntimeConfig;pub use openhuman_core::config::{SearchHostCredential, UnknownKeyedSearchProvider};/// The exact ambient tenant, inherited across profile turns and their scoped tasks.-pub use openhuman_core::core::runtime::{NoTenant, Tenant, current_tenant};+pub use openhuman_core::core::runtime::{current_tenant, NoTenant, Tenant};pub use openhuman_core::security::TrustedAccess;pub use openhuman_core::tools::toolpacks::{GroupMode, ToolGroups};// The seam `AgentSpec::tools` needs: the belt types, and `Tool` itself from the@@ -108,7 +108,7 @@ pub mod agent_progress {#[cfg(feature = "skills")]pub mod skill_registry {pub use openhuman_core::skills::catalog::{- HERMES_REGISTRY_ID, ReqwestTransport, skill_registry,+ skill_registry, ReqwestTransport, HERMES_REGISTRY_ID,};}@@ -153,11 +153,11 @@ mod turn_steering;#[path = "host_internals.rs"]pub mod __host;-pub use openhuman_core::core::ControllerSchema;/// Look up the schema of a registered RPC method (`openhuman.<ns>_<fn>`).pub use openhuman_core::core::all::schema_for_rpc_method;/// Whether this build carries the HTTP server surface the router mounts.pub use openhuman_core::core::http_server_status::HTTP_SERVER_COMPILED_IN;+pub use openhuman_core::core::ControllerSchema;/// Why a listen-port pick failed (another live core holds the port, ...).pub use openhuman_core::platform::connectivity::rpc::PickListenPortError;/// Whether this build carries the voice domain.@@ -183,10 +183,10 @@ pub use harness::{};#[cfg(feature = "mcp")]pub use harness::{HttpHeader, McpAuthConfig, McpServer};-pub use openhuman_core::cron::JobOrigin;/// Host-routed delivery of scheduled replies, for [`RuntimeBuilder::cron_delivery`]/// and the profile runtime alike.pub use openhuman_core::cron::host_delivery::{CronDelivery, CronReply};+pub use openhuman_core::cron::JobOrigin;#[cfg(feature = "profiles")]pub use profiles::{ChatReply, CronSweepReport, DirectProfileProvider, OpenError, ProfileError, ProfileEvents,@@ -195,14 +195,14 @@ pub use profiles::{};#[cfg(all(feature = "profiles", feature = "channels"))]pub use profiles::{RelayAccepted, RelayMessage};+pub use runtime::builder::DEFAULT_MAX_AGENTS;/// Read-only view of a [`RuntimeBuilder`], for the layered crates' tests.#[doc(hidden)]pub use runtime::BuilderSummary;-pub use runtime::builder::DEFAULT_MAX_AGENTS;pub use runtime::{- AgentDefaults, ApiKey, ConfigSource, ConfigurationInfo, DefaultsInfo, LearningSettings,- ModelDefaults, RemoveAgent, Runtime, RuntimeBuilder, RuntimeDefaults, RuntimeError,- RuntimeInfo, RuntimeModule, SkillsPolicy, StorageInfo, WeightClass, run_from_args,+ run_from_args, AgentDefaults, ApiKey, ConfigSource, ConfigurationInfo, DefaultsInfo,+ LearningSettings, ModelDefaults, RemoveAgent, Runtime, RuntimeBuilder, RuntimeDefaults,+ RuntimeError, RuntimeInfo, RuntimeModule, SkillsPolicy, StorageInfo, WeightClass,};/// The types the [`RuntimeBuilder`] seam options take: controller@@ -264,7 +264,7 @@ pub use complete::{CompletionTrace, CompletionUsage,};pub use session_store::{InMemorySessionStores, SessionStoreProvider};-pub use turn::{Route, Turn, TurnOutcome, TurnRequest, absolute};+pub use turn::{absolute, Route, Turn, TurnOutcome, TurnRequest};pub use turn_cancellation::TurnCancellation;pub use turn_steering::{SteerRefused, TurnSteering};diff --git a/crates/openhuman-embed/src/modules.rs b/crates/openhuman-embed/src/modules.rsindex 0e0f694657..6132f5ae28 100644--- a/crates/openhuman-embed/src/modules.rs+++ b/crates/openhuman-embed/src/modules.rs@@ -11,7 +11,7 @@ pub use openhuman_core::modules::ops::set_bundled_releases_dir;/// this for each module it links; no shipped host does.#[cfg(feature = "modules")]pub use openhuman_core::modules::linked::{- LinkedFactory, is_registered as is_linked_registered, register_linked,+ is_registered as is_linked_registered, register_linked, LinkedFactory,};/// The browser-control module.diff --git a/crates/openhuman-embed/src/process_sentry.rs b/crates/openhuman-embed/src/process_sentry.rsindex 89baaa72ef..acb13a7086 100644--- a/crates/openhuman-embed/src/process_sentry.rs+++ b/crates/openhuman-embed/src/process_sentry.rs@@ -13,8 +13,8 @@ use std::borrow::Cow;use std::sync::Arc;use openhuman_core::core::observability as obs;-pub use sentry::ClientOptions;pub use sentry::protocol::Event;+pub use sentry::ClientOptions;/// Re-exported so a host initialises the same `sentry` the options were/// built for.diff --git a/crates/openhuman-embed/src/profiles.rs b/crates/openhuman-embed/src/profiles.rsindex 6470d65f88..72e6cf1289 100644--- a/crates/openhuman-embed/src/profiles.rs+++ b/crates/openhuman-embed/src/profiles.rs@@ -54,8 +54,8 @@ use std::path::Path;use std::sync::Arc;use openhuman_core::core::runtime::CoreRuntime;-use openhuman_core::profiles::ProfileHost;use openhuman_core::profiles::credentials::UserCredentialKind;+use openhuman_core::profiles::ProfileHost;use tinyagents_session::port::SessionStoreProvider;use crate::error::CoreError;@@ -68,12 +68,12 @@ pub use handle::RelayAccepted;pub use handle::{ChatReply, ProfileEvents, ProfileHandle};#[cfg(feature = "channels")]pub use openhuman_core::channels::providers::relay::RelayInboundParams as RelayMessage;-pub use openhuman_core::core::runtime::SaasConfig;/// Validated operator-owned direct inference settings.pub use openhuman_core::core::runtime::direct_profile_provider::DirectProfileProvider;pub use openhuman_core::core::runtime::saas::{SaasCronConfig, SaasSandboxConfig};-pub use openhuman_core::cron::JobOrigin;+pub use openhuman_core::core::runtime::SaasConfig;pub use openhuman_core::cron::host_delivery::{CronDelivery, CronReply};+pub use openhuman_core::cron::JobOrigin;pub use openhuman_core::profiles::cron::SweepReport as CronSweepReport;pub use openhuman_core::profiles::{OpenError, ProfileId, ProfileIdMode, ProfileSummary};pub use openhuman_core::storage::lease::LeaseRecord;diff --git a/crates/openhuman-embed/src/profiles/host_tests.rs b/crates/openhuman-embed/src/profiles/host_tests.rsindex 250c7f9ca1..b7c0e9a596 100644--- a/crates/openhuman-embed/src/profiles/host_tests.rs+++ b/crates/openhuman-embed/src/profiles/host_tests.rs@@ -65,13 +65,11 @@ fn profiles_keep_a_nonempty_readonly_permission_map_without_operator_grants() {let mut config = openhuman_core::profiles::layout::profile_config(&layout, &id);capabilities.configure(&mut config);assert!(!config.agent.channel_permissions.is_empty());- assert!(- config- .agent- .channel_permissions- .values()- .all(|level| level == "readonly")- );+ assert!(config+ .agent+ .channel_permissions+ .values()+ .all(|level| level == "readonly"));}#[test]diff --git a/crates/openhuman-embed/src/runtime/build.rs b/crates/openhuman-embed/src/runtime/build.rsindex 8e78398388..305e6a59c6 100644--- a/crates/openhuman-embed/src/runtime/build.rs+++ b/crates/openhuman-embed/src/runtime/build.rs@@ -8,12 +8,12 @@ use openhuman_core::core::runtime::CoreBuilder;use openhuman_core::core::types::HostKind;use tinyagents_session::port::SessionStoreProvider;-use super::builder::{ConfigSource, starts_services_on_build};+use super::builder::{starts_services_on_build, ConfigSource};use super::presets::{default_domains, default_services};-use super::{ApiKey, RUNTIME_LIVE, Runtime, RuntimeBuilder, RuntimeError};-use crate::Core;+use super::{ApiKey, Runtime, RuntimeBuilder, RuntimeError, RUNTIME_LIVE};use crate::harness::workspace::ResolvedWorkspace;use crate::harness::{Provider, Workspace};+use crate::Core;struct SessionStoreCleanup {installed: Option<Arc<dyn SessionStoreProvider>>,diff --git a/crates/openhuman-embed/src/runtime/builder.rs b/crates/openhuman-embed/src/runtime/builder.rsindex de79f51eda..b1fd9908c3 100644--- a/crates/openhuman-embed/src/runtime/builder.rs+++ b/crates/openhuman-embed/src/runtime/builder.rs@@ -20,10 +20,10 @@ use openhuman_core::core::types::HostKind;use openhuman_core::tools::toolpacks::ToolGroups;use tinyagents_session::port::SessionStoreProvider;-use super::ApiKey;use super::seams::HostSeams;-use crate::Session;+use super::ApiKey;use crate::harness::{Access, Provider, Workspace};+use crate::Session;// Re-exported for the sibling test module and older call sites that reached// the default triples through this module.@@ -46,7 +46,7 @@ pub(crate) use super::build::{effective_host_kind, routed_provider_effective};#[cfg(test)]pub(crate) use super::presets::{default_domains, default_services};#[cfg(test)]-pub(crate) use super::{RUNTIME_LIVE, RuntimeError};+pub(crate) use super::{RuntimeError, RUNTIME_LIVE};/// Who produces the [`Config`] the core boots with.///diff --git a/crates/openhuman-embed/src/runtime/info.rs b/crates/openhuman-embed/src/runtime/info.rsindex a221aeab6a..e3daf89670 100644--- a/crates/openhuman-embed/src/runtime/info.rs+++ b/crates/openhuman-embed/src/runtime/info.rs@@ -1,8 +1,8 @@//! Versioned, credential-safe runtime capability metadata.use super::{LearningSettings, ModelDefaults, Runtime, RuntimeBuilder};use openhuman_core::config::{- Config,schema::{AutonomyConfig, CronConfig, PrivacyConfig, SecretsConfig},+ Config,};use std::collections::BTreeMap;diff --git a/crates/openhuman-embed/src/runtime/info_tests.rs b/crates/openhuman-embed/src/runtime/info_tests.rsindex 6e12065a9d..ef5ae2fd2d 100644--- a/crates/openhuman-embed/src/runtime/info_tests.rs+++ b/crates/openhuman-embed/src/runtime/info_tests.rs@@ -157,15 +157,13 @@ fn unavailable_module_error_names_its_cargo_feature() {fn discovered_config_still_rejects_typed_boot_edits() {let builder = RuntimeBuilder::desktop().cron(Default::default());assert!(builder.validate().is_err());- assert!(- RuntimeBuilder::desktop()- .model_defaults(ModelDefaults {- max_tokens: Some(300),- ..Default::default()- })- .validate()- .is_ok()- );+ assert!(RuntimeBuilder::desktop()+ .model_defaults(ModelDefaults {+ max_tokens: Some(300),+ ..Default::default()+ })+ .validate()+ .is_ok());}#[test]diff --git a/crates/openhuman-embed/src/runtime/mod.rs b/crates/openhuman-embed/src/runtime/mod.rsindex 6f298cfb73..24fec236c7 100644--- a/crates/openhuman-embed/src/runtime/mod.rs+++ b/crates/openhuman-embed/src/runtime/mod.rs@@ -104,8 +104,8 @@ use openhuman_core::core::runtime::{CoreRuntime, DomainSet, ServiceSet};use openhuman_core::tools::toolpacks::ToolGroups;use crate::agent::{Agent, AgentError, AgentSpec};-use crate::harness::HarnessCore;use crate::harness::workspace::ResolvedWorkspace;+use crate::harness::HarnessCore;use crate::{Core, CoreError};/// Guards the process-scoped core state described in the module docs.diff --git a/crates/openhuman-embed/src/runtime/presets.rs b/crates/openhuman-embed/src/runtime/presets.rsindex 6e38b66bff..fbe897dd96 100644--- a/crates/openhuman-embed/src/runtime/presets.rs+++ b/crates/openhuman-embed/src/runtime/presets.rs@@ -24,8 +24,8 @@ use openhuman_core::core::runtime::{DomainSet, ServiceSet, TokenSource};use openhuman_core::core::types::HostKind;use openhuman_core::tools::toolpacks::ToolGroups;-use super::RuntimeBuilder;use super::builder::ConfigSource;+use super::RuntimeBuilder;use crate::harness::Workspace;impl RuntimeBuilder {diff --git a/crates/openhuman-embed/src/runtime/seams.rs b/crates/openhuman-embed/src/runtime/seams.rsindex 2ab2bd6358..fa4303400e 100644--- a/crates/openhuman-embed/src/runtime/seams.rs+++ b/crates/openhuman-embed/src/runtime/seams.rs@@ -32,8 +32,8 @@ use openhuman_core::agent::hooks::{use openhuman_core::agent::tinyagents::discovery::{clear_tool_ranker, install_tool_ranker, installed_tool_ranker,};-use openhuman_core::core::all::{ControllerExtension, register_controller_extension};-use openhuman_core::core::server_launcher::{ServerLauncher, install_server_launcher};+use openhuman_core::core::all::{register_controller_extension, ControllerExtension};+use openhuman_core::core::server_launcher::{install_server_launcher, ServerLauncher};use openhuman_core::security::SecurityPolicy;use openhuman_core::storage::StorageBackend;use tinytools::ToolRanker;diff --git a/crates/openhuman-embed/src/runtime/seams_tests.rs b/crates/openhuman-embed/src/runtime/seams_tests.rsindex 0c57edd363..7e95d1fab6 100644--- a/crates/openhuman-embed/src/runtime/seams_tests.rs+++ b/crates/openhuman-embed/src/runtime/seams_tests.rs@@ -66,17 +66,13 @@ fn live_replacement_and_removal_update_builder_hooks_and_restore_predecessors()"seams-live-tool",Some(Arc::new(NamedToolHook("different-tool-name"))),);- assert!(- embedder_tool_hooks()- .iter()- .any(|hook| hook.name() == "seams-live-tool")- );+ assert!(embedder_tool_hooks()+ .iter()+ .any(|hook| hook.name() == "seams-live-tool"));seams.tool_hook("seams-live-tool", None);- assert!(- !embedder_tool_hooks()- .iter()- .any(|hook| hook.name() == "seams-live-tool")- );+ assert!(!embedder_tool_hooks()+ .iter()+ .any(|hook| hook.name() == "seams-live-tool"));drop(seams);assert!(!post_turn_hook_is_registered(&builder_hook));assert!(Arc::ptr_eq(diff --git a/crates/openhuman-embed/src/runtime/summary.rs b/crates/openhuman-embed/src/runtime/summary.rsindex aa09b804e4..3e654ac9f8 100644--- a/crates/openhuman-embed/src/runtime/summary.rs+++ b/crates/openhuman-embed/src/runtime/summary.rs@@ -11,8 +11,8 @@ use openhuman_core::core::all::DomainGroup;use openhuman_core::core::runtime::{DomainSet, ServiceSet, TokenSource};use openhuman_core::core::types::HostKind;-use super::RuntimeBuilder;use super::builder::ConfigSource;+use super::RuntimeBuilder;use crate::harness::Workspace;/// What a [`RuntimeBuilder`] is set to; see the module docs.diff --git a/crates/openhuman-embed/src/secret_storage.rs b/crates/openhuman-embed/src/secret_storage.rsindex 2e2891bb09..53164fc486 100644--- a/crates/openhuman-embed/src/secret_storage.rs+++ b/crates/openhuman-embed/src/secret_storage.rs@@ -8,6 +8,6 @@//! during core boot. Native OS providers belong to `openhuman-rpc::keyring`.pub use openhuman_core::security::secret_storage::{- EncryptedFileBackend, MemoryBackend, SecretBackend, SecretStorageError, install_secret_backend,- installed_secret_backend,+ install_secret_backend, installed_secret_backend, EncryptedFileBackend, MemoryBackend,+ SecretBackend, SecretStorageError,};diff --git a/crates/openhuman-embed/src/turn.rs b/crates/openhuman-embed/src/turn.rsindex c62d489c58..d17710fe34 100644--- a/crates/openhuman-embed/src/turn.rs+++ b/crates/openhuman-embed/src/turn.rs@@ -49,8 +49,8 @@ use openhuman_core::security::turn_origin::AgentTurnOrigin;#[path = "turn_types.rs"]mod types;-pub use types::{Route, TurnOutcome, TurnRequest};pub(crate) use types::{is_safe_endpoint_for_bearer, sanitize_url_for_display};+pub use types::{Route, TurnOutcome, TurnRequest};#[path = "turn_control.rs"]mod control;@@ -173,11 +173,11 @@ impl Turn {pub fn tools(mut self,factory: impl for<'a> Fn(- openhuman_core::agent::TurnContext<'a>,- ) -> openhuman_core::agent::HostTurnTools- + Send- + Sync- + 'static,+ openhuman_core::agent::TurnContext<'a>,+ ) -> openhuman_core::agent::HostTurnTools+ + Send+ + Sync+ + 'static,) -> Self {self.tools = Some(Arc::new(factory));self@@ -606,7 +606,7 @@ async fn dispatch(let turn: futures_box::BoxFuture<'_, Result<AgentReply, CoreError>> =Box::pin(async move {use openhuman_core::inference::host_runtime::ops::{- AgentChatTarget, agent_chat_reply_for,+ agent_chat_reply_for, AgentChatTarget,};let mut config = dispatch.load_config()@@ -652,7 +652,7 @@ async fn dispatch(let turn: futures_box::BoxFuture<'_, Result<AgentReply, CoreError>> =Box::pin(async move {use openhuman_core::inference::host_runtime::ops::{- AgentChatTarget, agent_chat_for,+ agent_chat_for, AgentChatTarget,};let mut config = inner.config.clone();let route = openhuman_core::config::schema::EphemeralRoute::from_params(diff --git a/crates/openhuman-tinyhumans/src/integrations/file_storage/artifact_publisher.rs b/crates/openhuman-tinyhumans/src/integrations/file_storage/artifact_publisher.rsindex 5fcfabf482..3454787871 100644--- a/crates/openhuman-tinyhumans/src/integrations/file_storage/artifact_publisher.rs+++ b/crates/openhuman-tinyhumans/src/integrations/file_storage/artifact_publisher.rs@@ -22,13 +22,13 @@ use tiny_artifacts::{PublishedLink,};-use super::tools::helpers::{FILES_PATH, file_path, mime_for_path};+use super::tools::helpers::{file_path, mime_for_path, FILES_PATH};use super::types::{LinkResponse, UploadResponse};use crate::integrations::IntegrationClient;use openhuman_embed::__host::artifact_publisher::ArtifactPublisherBinder;use openhuman_embed::__host::config::Config;-use openhuman_embed::__host::security::SecurityPolicy;use openhuman_embed::__host::security::approval::ApprovalTurnContext;+use openhuman_embed::__host::security::SecurityPolicy;/// Lifetime of a private link when the caller does not choose: the backend's/// maximum, 7 days.diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rsindex a7f90b66d4..2542df45a2 100644--- a/tests/agent_harness_e2e.rs+++ b/tests/agent_harness_e2e.rs@@ -30,15 +30,15 @@ use std::time::Duration;/// Prevents `ApprovalGate` from writing `./approval/approval.db` into the repo root.static GATE_WORKSPACE: OnceLock<tempfile::TempDir> = OnceLock::new();-use axum::http::{HeaderMap, StatusCode, Uri, header::AUTHORIZATION};+use axum::http::{header::AUTHORIZATION, HeaderMap, StatusCode, Uri};use axum::routing::{get, post};use axum::{Json, Router};use futures_util::StreamExt;-use serde_json::{Value, json};+use serde_json::{json, Value};use tempfile::tempdir;use openhuman_core::agent_registry::host_definition::AgentDefinitionRegistry;-use openhuman_core::core::auth::{CORE_TOKEN_ENV_VAR, init_rpc_token};+use openhuman_core::core::auth::{init_rpc_token, CORE_TOKEN_ENV_VAR};use openhuman_rpc::server::build_core_http_router;const TEST_RPC_TOKEN: &str = "json-rpc-e2e-local-token";@@ -2629,8 +2629,8 @@ async fn streaming_tool_call_accumulation() {use openhuman_core::progress::AgentProgress;use std::sync::Mutex;use streaming_support::{- EchoTool, ScriptedProvider, agent_with_s, native_tool_response_s, text_response_s,- workspace_s,+ agent_with_s, native_tool_response_s, text_response_s, workspace_s, EchoTool,+ ScriptedProvider,};use tinyinference_llm::model::{ModelProfile, ModelStreamItem};use tinyinference_llm::tool::ToolDelta;diff --git a/tests/support/scripted_stack.rs b/tests/support/scripted_stack.rsindex 0371c76ffd..d5126d5470 100644--- a/tests/support/scripted_stack.rs+++ b/tests/support/scripted_stack.rs@@ -13,9 +13,9 @@use std::sync::{Mutex, MutexGuard};-use axum::Json;use axum::http::HeaderMap;-use serde_json::{Value, json};+use axum::Json;+use serde_json::{json, Value};/// Lock `m`, recovering the data when a panicking test poisoned it.pub fn lock_or_recover<T>(m: &Mutex<T>) -> MutexGuard<'_, T> {