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(tests): add tinyhumans boot call to all raw coverage e2e tests
Steven Enamakel88842accb1b1
diff --git a/tests/raw_coverage/agent_archivist_debug_round21_raw_coverage_e2e.rs b/tests/raw_coverage/agent_archivist_debug_round21_raw_coverage_e2e.rsindex c73ffd1b8a..9ebec22fcc 100644--- a/tests/raw_coverage/agent_archivist_debug_round21_raw_coverage_e2e.rs+++ b/tests/raw_coverage/agent_archivist_debug_round21_raw_coverage_e2e.rs@@ -290,6 +290,7 @@ fn parent_context(workspace: &Path, model: Arc<ScriptedModel>) -> ParentExecutio#[tokio::test]async fn subagent_no_parent_and_checkpoint_fallback_are_deterministic() -> Result<()> {+ crate::tinyhumans_boot::boot();let no_parent = run_subagent(&definition(1),"outside a parent context",@@ -333,6 +334,7 @@ async fn subagent_no_parent_and_checkpoint_fallback_are_deterministic() -> Resul#[tokio::test]async fn debug_prompt_dump_requires_toolkit_before_composio_network() -> Result<()> {+ crate::tinyhumans_boot::boot();let tmp = TempDir::new()?;let err = dump_agent_prompt(DumpPromptOptions {agent_id: "integrations_agent".to_string(),@@ -353,6 +355,7 @@ async fn debug_prompt_dump_requires_toolkit_before_composio_network() -> Result<#[test]fn debug_dump_writer_sanitizes_names_and_writes_summary_sidecars() -> Result<()> {+ crate::tinyhumans_boot::boot();let tmp = TempDir::new()?;let dumps = vec![DumpedPrompt {agent_id: "agent/with spaces".to_string(),diff --git a/tests/raw_coverage/agent_orchestration_e2e.rs b/tests/raw_coverage/agent_orchestration_e2e.rsindex e9e489b41b..17b1c23cb5 100644--- a/tests/raw_coverage/agent_orchestration_e2e.rs+++ b/tests/raw_coverage/agent_orchestration_e2e.rs@@ -88,6 +88,7 @@ fn env_lock() -> std::sync::MutexGuard<'static, ()> {/// Initialise the process RPC token (idempotent) and return the bearer the/// router will actually accept.fn ensure_rpc_auth() -> &'static str {+ crate::tinyhumans_boot::boot();AUTH_INIT.get_or_init(|| {if get_rpc_token().is_none() {std::env::set_var(CORE_TOKEN_ENV_VAR, TEST_RPC_TOKEN);@@ -115,6 +116,7 @@ fn ensure_rpc_auth() -> &'static str {/// depend on owning the store: they use ids unique to this suite and assert on/// their own records rather than on the store being empty.fn ensure_memory_seams() {+ crate::tinyhumans_boot::boot();MEMORY_SEAMS_INIT.get_or_init(|| {std::thread::Builder::new().name("agent-orchestration-e2e-memory-seams".to_string())@@ -255,6 +257,8 @@ impl Harness {}async fn setup() -> Harness {++ crate::tinyhumans_boot::boot();let tmp = tempdir().expect("tempdir");let home = tmp.path().to_path_buf();write_min_config(&home.join(".openhuman"));diff --git a/tests/raw_coverage/app_credentials_threads_sources_round26_raw_coverage_e2e.rs b/tests/raw_coverage/app_credentials_threads_sources_round26_raw_coverage_e2e.rsindex ba28f97026..43400286da 100644--- a/tests/raw_coverage/app_credentials_threads_sources_round26_raw_coverage_e2e.rs+++ b/tests/raw_coverage/app_credentials_threads_sources_round26_raw_coverage_e2e.rs@@ -76,6 +76,8 @@ fn env_lock() -> std::sync::MutexGuard<'static, ()> {}async fn setup(prefix: &str) -> Harness {++ crate::tinyhumans_boot::boot();std::fs::create_dir_all("target").expect("target dir");let tmp = Builder::new().prefix(prefix)diff --git a/tests/raw_coverage/app_state_credentials_raw_coverage_e2e.rs b/tests/raw_coverage/app_state_credentials_raw_coverage_e2e.rsindex b4078e8552..f84fd9cf1f 100644--- a/tests/raw_coverage/app_state_credentials_raw_coverage_e2e.rs+++ b/tests/raw_coverage/app_state_credentials_raw_coverage_e2e.rs@@ -129,6 +129,8 @@ embedding_strict = false}fn setup(api_url: &str) -> Harness {++ crate::tinyhumans_boot::boot();let tmp = tempdir();let root = tmp.path().join("openhuman");write_min_config(&root, api_url);@@ -154,6 +156,8 @@ fn setup(api_url: &str) -> Harness {}fn setup_default_paths(api_url: &str) -> Harness {++ crate::tinyhumans_boot::boot();let tmp = tempdir();let guards = vec![EnvGuard::set_to_path("HOME", tmp.path()),diff --git a/tests/raw_coverage/billing_cost_e2e.rs b/tests/raw_coverage/billing_cost_e2e.rsindex 2af527cd4d..9aa3a2e1e3 100644--- a/tests/raw_coverage/billing_cost_e2e.rs+++ b/tests/raw_coverage/billing_cost_e2e.rs@@ -47,6 +47,7 @@ fn cost_record_line(id: &str, model: &str, cost_usd: f64, input: u64, output: u6/// the mock payments backend with a stored session.#[tokio::test]async fn billing_uncovered_controllers_round_trip_against_the_backend() {+ crate::tinyhumans_boot::boot();let _lock = support::env_lock();let harness = Harness::start("", false).await;let log = mock_log();@@ -254,6 +255,7 @@ async fn billing_uncovered_controllers_round_trip_against_the_backend() {/// validation in `billing/ops.rs` must reject before any request is made.#[tokio::test]async fn billing_rejects_bad_input_before_it_reaches_the_backend() {+ crate::tinyhumans_boot::boot();let _lock = support::env_lock();let harness = Harness::start("", false).await;harness.login().await;@@ -309,6 +311,7 @@ async fn billing_rejects_bad_input_before_it_reaches_the_backend() {/// doomed unauthenticated request.#[tokio::test]async fn billing_without_a_session_refuses_locally() {+ crate::tinyhumans_boot::boot();let _lock = support::env_lock();let harness = Harness::start("", false).await;let log = mock_log();@@ -350,6 +353,7 @@ async fn billing_without_a_session_refuses_locally() {/// into the budget would pass a "not empty" test and fail this one.#[tokio::test]async fn cost_controllers_report_seeded_usage_and_split_managed_from_byok() {+ crate::tinyhumans_boot::boot();let _lock = support::env_lock();let harness = Harness::start(r#"@@ -601,6 +605,7 @@ alert_threshold = 0.9/// The empty-workspace path: no `costs.jsonl` at all must still answer, not error.#[tokio::test]async fn cost_controllers_answer_on_a_workspace_with_no_history() {+ crate::tinyhumans_boot::boot();let _lock = support::env_lock();let harness = Harness::start("", true).await;@@ -639,6 +644,7 @@ async fn cost_controllers_answer_on_a_workspace_with_no_history() {/// thresholds, with telemetry fields held as documented placeholders.#[tokio::test]async fn dashboard_model_health_projects_the_registry_and_thresholds() {+ crate::tinyhumans_boot::boot();let _lock = support::env_lock();let harness = Harness::start(r#"@@ -746,6 +752,7 @@ vision = false/// The disabled-feature path is an error, not an empty table.#[tokio::test]async fn dashboard_model_health_refuses_when_disabled() {+ crate::tinyhumans_boot::boot();let _lock = support::env_lock();let harness = Harness::start(r#"diff --git a/tests/raw_coverage/channel_socket_e2e.rs b/tests/raw_coverage/channel_socket_e2e.rsindex 42ab533e86..62eed5a164 100644--- a/tests/raw_coverage/channel_socket_e2e.rs+++ b/tests/raw_coverage/channel_socket_e2e.rs@@ -71,6 +71,8 @@ fn rpc_bearer() -> &'static str {}fn ensure_rpc_auth() {++ crate::tinyhumans_boot::boot();let _ = rpc_bearer();}diff --git a/tests/raw_coverage/composio_credentials_state_raw_coverage_e2e.rs b/tests/raw_coverage/composio_credentials_state_raw_coverage_e2e.rsindex 80e191fb3d..7821bcf3bf 100644--- a/tests/raw_coverage/composio_credentials_state_raw_coverage_e2e.rs+++ b/tests/raw_coverage/composio_credentials_state_raw_coverage_e2e.rs@@ -171,6 +171,8 @@ embedding_strict = false}fn setup(api_url: &str) -> Harness {++ crate::tinyhumans_boot::boot();let tmp = tempdir();let root = tmp.path().join("openhuman");write_min_config(&root, api_url);diff --git a/tests/raw_coverage/composio_ops_credentials_appstate_raw_coverage_e2e.rs b/tests/raw_coverage/composio_ops_credentials_appstate_raw_coverage_e2e.rsindex 22f3ec8f01..74f0d164cf 100644--- a/tests/raw_coverage/composio_ops_credentials_appstate_raw_coverage_e2e.rs+++ b/tests/raw_coverage/composio_ops_credentials_appstate_raw_coverage_e2e.rs@@ -123,6 +123,8 @@ fn tempdir() -> TempDir {}async fn setup(api_url: &str) -> Harness {++ crate::tinyhumans_boot::boot();let tmp = tempdir();let root = tmp.path().join("openhuman");let workspace = root.join("workspace");diff --git a/tests/raw_coverage/composio_ops_raw_coverage_e2e.rs b/tests/raw_coverage/composio_ops_raw_coverage_e2e.rsindex 64358b0511..e22f01bbb2 100644--- a/tests/raw_coverage/composio_ops_raw_coverage_e2e.rs+++ b/tests/raw_coverage/composio_ops_raw_coverage_e2e.rs@@ -84,6 +84,7 @@ fn env_lock() -> std::sync::MutexGuard<'static, ()> {#[tokio::test]async fn composio_ops_use_loopback_backend_for_happy_and_error_paths() {+ crate::tinyhumans_boot::boot();let _lock = env_lock();let state = MockState::default();let app = Router::new()@@ -345,6 +346,7 @@ async fn composio_ops_use_loopback_backend_for_happy_and_error_paths() {#[tokio::test]async fn composio_direct_key_ops_and_agent_tools_take_local_validation_paths() {+ crate::tinyhumans_boot::boot();let _lock = env_lock();let direct_base = start_loopback_backend(Router::new().route("/connected_accounts",@@ -428,6 +430,7 @@ async fn composio_direct_key_ops_and_agent_tools_take_local_validation_paths() {#[tokio::test]async fn composio_controller_registry_validates_params_without_backend_network() {+ crate::tinyhumans_boot::boot();let schemas = all_composio_controller_schemas();let controllers = all_composio_registered_controllers();assert_eq!(schemas.len(), controllers.len());diff --git a/tests/raw_coverage/composio_raw_coverage_e2e.rs b/tests/raw_coverage/composio_raw_coverage_e2e.rsindex 203888a30c..85912d06b2 100644--- a/tests/raw_coverage/composio_raw_coverage_e2e.rs+++ b/tests/raw_coverage/composio_raw_coverage_e2e.rs@@ -68,6 +68,7 @@ use openhuman_core::tools::{#[test]fn composio_prepare_execute_arguments_normalizes_calendar_and_notion_payloads() {+ crate::tinyhumans_boot::boot();let calendar = prepare_execute_arguments(" GOOGLECALENDAR_EVENTS_LIST ",Some(json!({@@ -119,6 +120,7 @@ fn composio_prepare_execute_arguments_normalizes_calendar_and_notion_payloads()#[test]fn composio_prepare_execute_arguments_validates_gmail_mutations() {+ crate::tinyhumans_boot::boot();let empty = prepare_execute_arguments("GMAIL_SEND_EMAIL", None).expect_err("gmail send needs a recipient");assert!(empty.contains("recipient"));@@ -164,6 +166,7 @@ fn composio_prepare_execute_arguments_validates_gmail_mutations() {#[test]fn composio_error_mapping_classifies_and_formats_provider_failures() {+ crate::tinyhumans_boot::boot();assert_eq!(ComposioErrorClass::Validation.as_str(), "validation");assert_eq!(ComposioErrorClass::InsufficientScope.as_str(),@@ -255,6 +258,7 @@ fn composio_error_mapping_classifies_and_formats_provider_failures() {#[test]fn composio_oauth_handoff_helpers_classify_meta_status_and_rate_limits() {+ crate::tinyhumans_boot::boot();assert!(is_meta_oauth_toolkit(" Instagram "));assert!(is_meta_oauth_toolkit("FACEBOOK"));assert!(!is_meta_oauth_toolkit("gmail"));@@ -296,6 +300,7 @@ fn composio_oauth_handoff_helpers_classify_meta_status_and_rate_limits() {#[tokio::test]async fn composio_connected_integrations_public_helpers_handle_empty_auth_and_identity_edges() {+ crate::tinyhumans_boot::boot();let dir = tempdir().expect("tempdir");let config = Config {workspace_dir: dir.path().to_path_buf(),@@ -364,6 +369,7 @@ async fn composio_connected_integrations_public_helpers_handle_empty_auth_and_id#[tokio::test]async fn composio_ops_mode_is_local_and_trigger_history_reflects_module_archive_availability() {+ crate::tinyhumans_boot::boot();let dir = tempdir().expect("tempdir");let mut config = Config {workspace_dir: dir.path().to_path_buf(),@@ -410,6 +416,7 @@ async fn composio_ops_mode_is_local_and_trigger_history_reflects_module_archive_#[test]fn composio_action_tool_metadata_is_stable_without_network_execution() {+ crate::tinyhumans_boot::boot();let dir = tempdir().expect("tempdir");let config = Config {workspace_dir: dir.path().to_path_buf(),@@ -449,6 +456,7 @@ fn composio_action_tool_metadata_is_stable_without_network_execution() {#[tokio::test]async fn composio_action_tool_execute_reports_missing_route_without_network() {+ crate::tinyhumans_boot::boot();let tmp = tempfile::tempdir().expect("temp config directory");let mut config = Config::default();config.config_path = tmp.path().join("config.toml");@@ -471,6 +479,7 @@ async fn composio_action_tool_execute_reports_missing_route_without_network() {#[tokio::test]async fn composio_client_and_dispatch_reject_invalid_inputs_before_network() {+ crate::tinyhumans_boot::boot();let inner = Arc::new(IntegrationClient::new("http://127.0.0.1:0".into(),"test-token".into(),@@ -585,6 +594,7 @@ async fn composio_client_and_dispatch_reject_invalid_inputs_before_network() {#[test]fn composio_client_factory_modes_are_deterministic_without_network() {+ crate::tinyhumans_boot::boot();let dir = tempdir().expect("tempdir");let mut config = Config {workspace_dir: dir.path().to_path_buf(),@@ -621,6 +631,7 @@ fn composio_client_factory_modes_are_deterministic_without_network() {#[tokio::test]async fn composio_backend_client_local_validation_rejects_bad_inputs_before_http() {+ crate::tinyhumans_boot::boot();let client = ComposioClient::new(Arc::new(IntegrationClient::new("http://127.0.0.1:9".to_string(),"unused-token".to_string(),@@ -705,6 +716,7 @@ async fn composio_backend_client_local_validation_rejects_bad_inputs_before_http#[tokio::test]async fn composio_backend_client_surfaces_get_post_envelope_and_status_errors() {+ crate::tinyhumans_boot::boot();async fn handler(request: Request) -> Response {let method = request.method().clone();let path = request.uri().path().to_string();@@ -774,6 +786,7 @@ async fn composio_backend_client_surfaces_get_post_envelope_and_status_errors()#[tokio::test]async fn composio_backend_factory_uses_stored_session_and_configured_backend() {+ crate::tinyhumans_boot::boot();async fn handler(request: Request) -> Response {let auth = request.headers()@@ -831,6 +844,7 @@ async fn composio_backend_factory_uses_stored_session_and_configured_backend() {#[tokio::test]async fn composio_controller_registry_and_scope_handlers_cover_validation_edges() {+ crate::tinyhumans_boot::boot();let schemas = all_composio_controller_schemas();let registered = all_composio_registered_controllers();assert_eq!(schemas.len(), registered.len());@@ -910,6 +924,7 @@ async fn composio_controller_registry_and_scope_handlers_cover_validation_edges(#[test]fn composio_controller_schema_catalog_covers_all_declared_functions() {+ crate::tinyhumans_boot::boot();// (function, required input names, first output name). Assert the required// inputs are *present* rather than pinning `inputs.len() == N` — the exact// count broke whenever an additive optional param was declared (plan.md §3).@@ -957,6 +972,7 @@ fn composio_controller_schema_catalog_covers_all_declared_functions() {#[tokio::test]async fn composio_controller_handlers_reject_bad_params_before_network() {+ crate::tinyhumans_boot::boot();let registered = all_composio_registered_controllers();let missing_authorize = composio_call(composio_controller(®istered, "authorize"), json!({}))@@ -1088,6 +1104,7 @@ async fn composio_call(controller: &RegisteredController, params: Value) -> Resu#[tokio::test]async fn composio_agent_tools_cover_metadata_missing_params_and_scope_helpers() {+ crate::tinyhumans_boot::boot();let dir = tempdir().expect("tempdir");let config = Config {workspace_dir: dir.path().to_path_buf(),@@ -1223,6 +1240,7 @@ async fn composio_agent_tools_cover_metadata_missing_params_and_scope_helpers()#[tokio::test]async fn composio_agent_tools_direct_mode_take_local_branches_without_backend() {+ crate::tinyhumans_boot::boot();let dir = tempdir().expect("tempdir");let mut config = Config {workspace_dir: dir.path().join("workspace"),@@ -1290,6 +1308,7 @@ async fn composio_agent_tools_direct_mode_take_local_branches_without_backend()#[test]fn composio_types_roundtrip_connection_tool_trigger_and_history_shapes() {+ crate::tinyhumans_boot::boot();let toolkits: ComposioToolkitsResponse = serde_json::from_value(json!({})).unwrap();assert!(toolkits.toolkits.is_empty());@@ -1579,6 +1598,7 @@ fn composio_types_roundtrip_connection_tool_trigger_and_history_shapes() {#[test]fn composio_direct_public_types_deserialize_polymorphic_toolkits() {+ crate::tinyhumans_boot::boot();let action: ComposioAction = serde_json::from_value(json!({"name": "GMAIL_SEND_EMAIL","appName": "gmail",@@ -1642,6 +1662,7 @@ fn composio_direct_public_types_deserialize_polymorphic_toolkits() {#[tokio::test]async fn composio_backend_client_methods_build_requests_and_parse_local_envelopes() {+ crate::tinyhumans_boot::boot();let app = Router::new().fallback(any(composio_round8_backend_handler));let base = start_composio_round8_backend(app).await;let client = ComposioClient::new(Arc::new(IntegrationClient::new(@@ -1853,6 +1874,7 @@ async fn composio_backend_client_methods_build_requests_and_parse_local_envelope#[tokio::test]async fn composio_authorize_scope_merging_and_meta_cleanup_use_local_backend() {+ crate::tinyhumans_boot::boot();#[derive(Clone, Default)]struct CleanupState {deleted: Arc<Mutex<Vec<String>>>,@@ -1968,6 +1990,7 @@ async fn composio_authorize_scope_merging_and_meta_cleanup_use_local_backend() {#[tokio::test]async fn composio_direct_tool_public_surface_handles_local_metadata_and_errors() {+ crate::tinyhumans_boot::boot();let tool = ComposioTool::new(" direct-api-key ",Some(" entity-123 "),@@ -2059,6 +2082,7 @@ async fn composio_direct_tool_public_surface_handles_local_metadata_and_errors()#[test]fn composio_trigger_history_store_handles_limits_and_bad_archive_lines() {+ crate::tinyhumans_boot::boot();let dir = tempdir().expect("tempdir");let store = ComposioTriggerHistoryStore::new(dir.path()).expect("history store");let empty = store.list_recent(0).expect("empty history");diff --git a/tests/raw_coverage/composio_tools_ops_state_raw_coverage_e2e.rs b/tests/raw_coverage/composio_tools_ops_state_raw_coverage_e2e.rsindex d29e0a56ae..2252c8e634 100644--- a/tests/raw_coverage/composio_tools_ops_state_raw_coverage_e2e.rs+++ b/tests/raw_coverage/composio_tools_ops_state_raw_coverage_e2e.rs@@ -120,6 +120,8 @@ fn tempdir() -> TempDir {}async fn setup(api_url: &str) -> Harness {++ crate::tinyhumans_boot::boot();let tmp = tempdir();let root = tmp.path().join("openhuman");let workspace = root.join("workspace");diff --git a/tests/raw_coverage/flows_lifecycle_e2e.rs b/tests/raw_coverage/flows_lifecycle_e2e.rsindex 814e87fafa..dc5cdb1ba1 100644--- a/tests/raw_coverage/flows_lifecycle_e2e.rs+++ b/tests/raw_coverage/flows_lifecycle_e2e.rs@@ -92,6 +92,7 @@ fn env_lock() -> std::sync::MutexGuard<'static, ()> {/// Initialise the process RPC token (idempotent) and return the bearer the/// router will actually accept.fn ensure_rpc_auth() -> &'static str {+ crate::tinyhumans_boot::boot();AUTH_INIT.get_or_init(|| {if get_rpc_token().is_none() {std::env::set_var(CORE_TOKEN_ENV_VAR, TEST_RPC_TOKEN);@@ -221,6 +222,8 @@ impl Harness {}async fn setup() -> Harness {++ crate::tinyhumans_boot::boot();let tmp = tempdir().expect("tempdir");let home = tmp.path();write_min_config(&home.join(".openhuman"));diff --git a/tests/raw_coverage/medulla_session_e2e.rs b/tests/raw_coverage/medulla_session_e2e.rsindex b970f72bf5..4a40b510e6 100644--- a/tests/raw_coverage/medulla_session_e2e.rs+++ b/tests/raw_coverage/medulla_session_e2e.rs@@ -450,6 +450,7 @@ struct Harness {/// `plant_session` decides whether `resolve::client` will find a token, which/// is the difference between the configured and signed-out cases below.async fn setup(extra: Vec<EnvVarGuard>, plant_session: bool) -> Harness {+ crate::tinyhumans_boot::boot();let _ = rpc_token();let tmp = tempdir().expect("tempdir");diff --git a/tests/raw_coverage/memory_sync_providers_raw_coverage_e2e.rs b/tests/raw_coverage/memory_sync_providers_raw_coverage_e2e.rsindex 587659a14c..eacafaec33 100644--- a/tests/raw_coverage/memory_sync_providers_raw_coverage_e2e.rs+++ b/tests/raw_coverage/memory_sync_providers_raw_coverage_e2e.rs@@ -79,6 +79,8 @@ static ENV_LOCK: &OnceLock<Mutex<()>> = &crate::SHARED_ENV_LOCK;static MEMORY_SEAMS_INIT: OnceLock<()> = OnceLock::new();fn ensure_memory_seams() {++ crate::tinyhumans_boot::boot();MEMORY_SEAMS_INIT.get_or_init(|| {std::thread::Builder::new().name("memory-sync-providers-raw-coverage-seams".to_string())diff --git a/tests/raw_coverage/memory_sync_round23_raw_coverage_e2e.rs b/tests/raw_coverage/memory_sync_round23_raw_coverage_e2e.rsindex eb7c40af1d..52126c074f 100644--- a/tests/raw_coverage/memory_sync_round23_raw_coverage_e2e.rs+++ b/tests/raw_coverage/memory_sync_round23_raw_coverage_e2e.rs@@ -70,6 +70,8 @@ static ENV_LOCK: &OnceLock<Mutex<()>> = &crate::SHARED_ENV_LOCK;static MEMORY_SEAMS_INIT: OnceLock<()> = OnceLock::new();fn ensure_memory_seams() {++ crate::tinyhumans_boot::boot();MEMORY_SEAMS_INIT.get_or_init(|| {std::thread::Builder::new().name("memory-sync-round23-raw-coverage-seams".to_string())diff --git a/tests/raw_coverage/memory_sync_slack_bus_raw_coverage_e2e.rs b/tests/raw_coverage/memory_sync_slack_bus_raw_coverage_e2e.rsindex 46aae29dea..e811a6a168 100644--- a/tests/raw_coverage/memory_sync_slack_bus_raw_coverage_e2e.rs+++ b/tests/raw_coverage/memory_sync_slack_bus_raw_coverage_e2e.rs@@ -63,6 +63,8 @@ static ENV_LOCK: &OnceLock<Mutex<()>> = &crate::SHARED_ENV_LOCK;static MEMORY_SEAMS_INIT: OnceLock<()> = OnceLock::new();fn ensure_memory_seams(config: Arc<Config>) {++ crate::tinyhumans_boot::boot();MEMORY_SEAMS_INIT.get_or_init(|| {std::thread::Builder::new().name("memory-sync-slack-bus-raw-coverage-seams".to_string())diff --git a/tests/raw_coverage/memory_sync_sources_raw_coverage_e2e.rs b/tests/raw_coverage/memory_sync_sources_raw_coverage_e2e.rsindex 7e4ddb2971..cad656ce10 100644--- a/tests/raw_coverage/memory_sync_sources_raw_coverage_e2e.rs+++ b/tests/raw_coverage/memory_sync_sources_raw_coverage_e2e.rs@@ -61,6 +61,8 @@ static ENV_LOCK: &OnceLock<Mutex<()>> = &crate::SHARED_ENV_LOCK;static MEMORY_SEAMS_INIT: OnceLock<()> = OnceLock::new();fn ensure_memory_seams() {++ crate::tinyhumans_boot::boot();MEMORY_SEAMS_INIT.get_or_init(|| {std::thread::Builder::new().name("memory-sync-sources-raw-coverage-seams".to_string())diff --git a/tests/raw_coverage/notification_platform_e2e.rs b/tests/raw_coverage/notification_platform_e2e.rsindex 7d11475a5b..14c1e92e46 100644--- a/tests/raw_coverage/notification_platform_e2e.rs+++ b/tests/raw_coverage/notification_platform_e2e.rs@@ -70,6 +70,8 @@ fn rpc_bearer() -> &'static str {}fn ensure_rpc_auth() {++ crate::tinyhumans_boot::boot();let _ = rpc_bearer();}diff --git a/tests/raw_coverage/owned_domain_raw_coverage_e2e.rs b/tests/raw_coverage/owned_domain_raw_coverage_e2e.rsindex a8e5aee922..c2b948f8bb 100644--- a/tests/raw_coverage/owned_domain_raw_coverage_e2e.rs+++ b/tests/raw_coverage/owned_domain_raw_coverage_e2e.rs@@ -330,6 +330,7 @@ fn owned_domain_config(workspace_root: &std::path::Path) -> Config {#[tokio::test]async fn composio_client_round_trips_backend_paths_and_payload_normalization() {+ crate::tinyhumans_boot::boot();let (base_url, state) = serve_composio_mock().await;let client = ComposioClient::new(Arc::new(IntegrationClient::new(format!("{base_url}/openai/v1/chat/completions"),@@ -411,6 +412,7 @@ async fn composio_client_round_trips_backend_paths_and_payload_normalization() {#[test]fn tool_registry_public_apis_cover_entries_diagnostics_and_provider_policy() {+ crate::tinyhumans_boot::boot();let dir = tempdir().expect("tempdir");let mut config = owned_domain_config(dir.path());config.mcp_client.enabled = true;@@ -576,6 +578,7 @@ fn tool_registry_public_apis_cover_entries_diagnostics_and_provider_policy() {#[tokio::test]async fn tool_registry_controller_handlers_cover_list_get_and_validation_paths() {+ crate::tinyhumans_boot::boot();let schemas = all_tool_registry_controller_schemas();assert_eq!(schemasdiff --git a/tests/raw_coverage/team_referral_e2e.rs b/tests/raw_coverage/team_referral_e2e.rsindex 50420f3b11..09c43cfd2d 100644--- a/tests/raw_coverage/team_referral_e2e.rs+++ b/tests/raw_coverage/team_referral_e2e.rs@@ -23,6 +23,7 @@ use support::{assert_no_error, error_message, logs, mock_log, peel, Harness};/// mock backend, plus the request each one actually put on the wire.#[tokio::test]async fn team_uncovered_controllers_round_trip_against_the_backend() {+ crate::tinyhumans_boot::boot();let _lock = support::env_lock();let harness = Harness::start("", false).await;let log = mock_log();@@ -195,6 +196,7 @@ async fn team_uncovered_controllers_round_trip_against_the_backend() {/// fire before any request — including the path-injection guard.#[tokio::test]async fn team_rejects_bad_ids_and_surfaces_backend_failures() {+ crate::tinyhumans_boot::boot();let _lock = support::env_lock();let harness = Harness::start("", false).await;harness.login().await;@@ -309,6 +311,7 @@ async fn team_rejects_bad_ids_and_surfaces_backend_failures() {/// Both referral controllers, happy path and the two failure shapes.#[tokio::test]async fn referral_stats_and_claim_round_trip() {+ crate::tinyhumans_boot::boot();let _lock = support::env_lock();let harness = Harness::start("", false).await;let log = mock_log();@@ -396,6 +399,7 @@ async fn referral_stats_and_claim_round_trip() {/// Referral, like billing, must refuse locally when no session is stored.#[tokio::test]async fn referral_without_a_session_refuses_locally() {+ crate::tinyhumans_boot::boot();let _lock = support::env_lock();let harness = Harness::start("", false).await;let log = mock_log();@@ -425,6 +429,7 @@ async fn referral_without_a_session_refuses_locally() {/// two on. Its three fields have to agree with each other and with the crate.#[tokio::test]async fn update_version_reports_the_running_binary() {+ crate::tinyhumans_boot::boot();let _lock = support::env_lock();let harness = Harness::start("", true).await;@@ -461,6 +466,7 @@ async fn update_version_reports_the_running_binary() {/// closed it must refuse *before* reaching the network, and say why.#[tokio::test]async fn update_run_refuses_when_rpc_mutations_are_disabled() {+ crate::tinyhumans_boot::boot();let _lock = support::env_lock();let harness = Harness::start(r#"@@ -509,6 +515,7 @@ rpc_mutations_enabled = false/// `~/tinyhuman/bugs/e2e-wave-update-check-unmockable.md`.#[tokio::test]async fn update_check_lands_in_one_of_its_two_documented_shapes() {+ crate::tinyhumans_boot::boot();let _lock = support::env_lock();let harness = Harness::start("", true).await;@@ -559,6 +566,7 @@ async fn update_check_lands_in_one_of_its_two_documented_shapes() {/// refusals it owes the caller.#[tokio::test]async fn migrate_openclaw_dry_run_counts_sources_without_importing() {+ crate::tinyhumans_boot::boot();let _lock = support::env_lock();let harness = Harness::start("", true).await;@@ -662,6 +670,7 @@ async fn migrate_openclaw_dry_run_counts_sources_without_importing() {/// A source workspace with nothing importable reports *why* it found nothing.#[tokio::test]async fn migrate_openclaw_reports_where_it_looked_when_it_finds_nothing() {+ crate::tinyhumans_boot::boot();let _lock = support::env_lock();let harness = Harness::start("", true).await;diff --git a/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs b/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rsindex 023acff661..6337f67ed1 100644--- a/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs+++ b/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs@@ -95,6 +95,8 @@ fn env_lock() -> std::sync::MutexGuard<'static, ()> {}fn ensure_rpc_auth() {++ crate::tinyhumans_boot::boot();AUTH_INIT.get_or_init(|| {std::env::set_var(CORE_TOKEN_ENV_VAR, TEST_RPC_TOKEN);let token_dir = std::env::temp_dir().join("openhuman-tool-registry-approval-e2e-auth");@@ -178,6 +180,8 @@ disallowed_tools = ["write_file"]}async fn setup(capability_providers: &str) -> TestHarness {++ crate::tinyhumans_boot::boot();let tmp = tempdir().expect("tempdir");let home = tmp.path();let workspace = home.join("openhuman-workspace");diff --git a/tests/raw_coverage/tools_approval_channels_raw_coverage_e2e.rs b/tests/raw_coverage/tools_approval_channels_raw_coverage_e2e.rsindex 8a1d4b6814..217e2fda20 100644--- a/tests/raw_coverage/tools_approval_channels_raw_coverage_e2e.rs+++ b/tests/raw_coverage/tools_approval_channels_raw_coverage_e2e.rs@@ -359,6 +359,8 @@ fn env_lock() -> std::sync::MutexGuard<'static, ()> {}fn ensure_rpc_auth() {++ crate::tinyhumans_boot::boot();AUTH_INIT.get_or_init(|| {std::env::set_var(CORE_TOKEN_ENV_VAR, TEST_RPC_TOKEN);let token_dir = std::env::temp_dir().join("openhuman-tools-channels-e2e-auth");@@ -690,6 +692,8 @@ disallowed_tools = ["write_file"]}async fn setup() -> Harness {++ crate::tinyhumans_boot::boot();let tmp = tempdir().expect("tempdir");let home = tmp.path();let workspace = home.join("openhuman-workspace");diff --git a/tests/raw_coverage/tools_channels_raw_coverage_e2e.rs b/tests/raw_coverage/tools_channels_raw_coverage_e2e.rsindex bb1a067e93..781b53f180 100644--- a/tests/raw_coverage/tools_channels_raw_coverage_e2e.rs+++ b/tests/raw_coverage/tools_channels_raw_coverage_e2e.rs@@ -180,6 +180,7 @@ fn temp_config() -> (tempfile::TempDir, Config) {#[test]fn generated_tool_admission_covers_provenance_and_rejection_paths() {+ crate::tinyhumans_boot::boot();let mut trusted = BTreeSet::new();trusted.insert("trusted.provider".to_string());trusted.insert(" invalid provider ".to_string());@@ -266,6 +267,7 @@ fn generated_tool_admission_covers_provenance_and_rejection_paths() {#[tokio::test]async fn generated_tool_wrapper_executes_and_exposes_metadata() {+ crate::tinyhumans_boot::boot();let adapter = Arc::new(RecordingGeneratedAdapter);let mut write_tool = basic_generated_definition("write_status");write_tool.permission_level = PermissionLevel::Write;@@ -312,6 +314,7 @@ async fn generated_tool_wrapper_executes_and_exposes_metadata() {#[test]fn tool_registries_schemas_and_local_helpers_cover_safe_branches() {+ crate::tinyhumans_boot::boot();let (_tmp, config) = temp_config();let config = Arc::new(config);let security = Arc::new(SecurityPolicy::from_config(@@ -389,6 +392,7 @@ fn tool_registries_schemas_and_local_helpers_cover_safe_branches() {#[test]fn channel_definitions_validate_all_auth_modes_and_controller_metadata() {+ crate::tinyhumans_boot::boot();let definitions = all_channel_definitions();let ids = definitions.iter()@@ -473,6 +477,7 @@ fn channel_definitions_validate_all_auth_modes_and_controller_metadata() {#[test]fn whatsapp_webhook_parser_covers_allowed_and_skipped_payloads() {+ crate::tinyhumans_boot::boot();let channel = WhatsAppChannel::new("token".to_string(),"phone-id".to_string(),@@ -564,6 +569,7 @@ fn whatsapp_webhook_parser_covers_allowed_and_skipped_payloads() {#[test]fn yuanbao_config_wire_and_splitter_helpers_cover_public_deterministic_paths() {+ crate::tinyhumans_boot::boot();assert!(NO_RECONNECT_CLOSE_CODES.contains(&4012));assert!(AUTH_FAILED_CODES.contains(&40001));assert!(AUTH_RETRYABLE_CODES.contains(&40010));@@ -674,6 +680,7 @@ fn yuanbao_config_wire_and_splitter_helpers_cover_public_deterministic_paths() {#[test]fn yuanbao_media_and_proto_helpers_cover_public_roundtrips() {+ crate::tinyhumans_boot::boot();assert_eq!(guess_mime_type("PHOTO.JPG"), "image/jpeg");assert_eq!(guess_mime_type("slides.pptx"),@@ -862,6 +869,7 @@ fn yuanbao_media_and_proto_helpers_cover_public_roundtrips() {#[tokio::test]async fn channel_trait_defaults_and_cli_channel_cover_message_paths() {+ crate::tinyhumans_boot::boot();struct TestChannel;#[async_trait]diff --git a/tests/raw_coverage/tools_composio_adapters_raw_coverage_e2e.rs b/tests/raw_coverage/tools_composio_adapters_raw_coverage_e2e.rsindex be5787fa5e..59898260ae 100644--- a/tests/raw_coverage/tools_composio_adapters_raw_coverage_e2e.rs+++ b/tests/raw_coverage/tools_composio_adapters_raw_coverage_e2e.rs@@ -156,6 +156,8 @@ fn tempdir() -> TempDir {}async fn setup_config() -> Harness {++ crate::tinyhumans_boot::boot();let tmp = tempdir();let root = tmp.path().join("openhuman");let workspace = root.join("workspace");diff --git a/tests/raw_coverage/tools_composio_large_round25_raw_coverage_e2e.rs b/tests/raw_coverage/tools_composio_large_round25_raw_coverage_e2e.rsindex 0439a71624..103cf7262b 100644--- a/tests/raw_coverage/tools_composio_large_round25_raw_coverage_e2e.rs+++ b/tests/raw_coverage/tools_composio_large_round25_raw_coverage_e2e.rs@@ -91,6 +91,8 @@ fn env_lock() -> std::sync::MutexGuard<'static, ()> {}async fn setup_direct_config(base: &str) -> Harness {++ crate::tinyhumans_boot::boot();std::fs::create_dir_all("target").expect("target dir");let tmp = Builder::new().prefix("tools-composio-large-round25-")diff --git a/tests/raw_coverage/tools_composio_network_leftovers_raw_coverage_e2e.rs b/tests/raw_coverage/tools_composio_network_leftovers_raw_coverage_e2e.rsindex e6b776bdd5..7cd052eaeb 100644--- a/tests/raw_coverage/tools_composio_network_leftovers_raw_coverage_e2e.rs+++ b/tests/raw_coverage/tools_composio_network_leftovers_raw_coverage_e2e.rs@@ -92,6 +92,8 @@ fn tempdir() -> TempDir {}async fn setup_config() -> Harness {++ crate::tinyhumans_boot::boot();let tmp = tempdir();let root = tmp.path().join("openhuman");let workspace = root.join("workspace");diff --git a/tests/raw_coverage/tools_composio_round22_raw_coverage_e2e.rs b/tests/raw_coverage/tools_composio_round22_raw_coverage_e2e.rsindex 87c875b4e7..782bc57c53 100644--- a/tests/raw_coverage/tools_composio_round22_raw_coverage_e2e.rs+++ b/tests/raw_coverage/tools_composio_round22_raw_coverage_e2e.rs@@ -150,6 +150,8 @@ fn tempdir() -> TempDir {}async fn setup() -> Harness {++ crate::tinyhumans_boot::boot();let tmp = tempdir();let root = tmp.path().join("openhuman");let workspace = root.join("workspace");diff --git a/tests/raw_coverage/tools_composio_round24_raw_coverage_e2e.rs b/tests/raw_coverage/tools_composio_round24_raw_coverage_e2e.rsindex 2e966a0104..9ed64c3384 100644--- a/tests/raw_coverage/tools_composio_round24_raw_coverage_e2e.rs+++ b/tests/raw_coverage/tools_composio_round24_raw_coverage_e2e.rs@@ -33,6 +33,7 @@ struct MockState {#[tokio::test]async fn round24_composio_direct_covers_v3_v2_fallbacks_and_account_shapes() {+ crate::tinyhumans_boot::boot();let state = MockState::default();let base = start_loopback(Router::new()diff --git a/tests/raw_coverage/tools_composio_round26_raw_coverage_e2e.rs b/tests/raw_coverage/tools_composio_round26_raw_coverage_e2e.rsindex 4915e86f0a..14141a2012 100644--- a/tests/raw_coverage/tools_composio_round26_raw_coverage_e2e.rs+++ b/tests/raw_coverage/tools_composio_round26_raw_coverage_e2e.rs@@ -32,6 +32,7 @@ struct MockState {#[tokio::test]async fn round26_composio_direct_tool_covers_connect_execute_and_error_fallbacks() {+ crate::tinyhumans_boot::boot();let state = MockState::default();let base = start_loopback(Router::new()diff --git a/tests/raw_coverage/tools_network_channels_raw_coverage_e2e.rs b/tests/raw_coverage/tools_network_channels_raw_coverage_e2e.rsindex 8125650bd2..1f877004af 100644--- a/tests/raw_coverage/tools_network_channels_raw_coverage_e2e.rs+++ b/tests/raw_coverage/tools_network_channels_raw_coverage_e2e.rs@@ -88,6 +88,7 @@ fn assert_contains(haystack: &str, needle: &str) {#[tokio::test]async fn git_operations_cover_read_write_markdown_and_safety_rejections() {+ crate::tinyhumans_boot::boot();let tmp = tempdir().expect("repo tempdir");let repo = tmp.path();run_git(repo, &["init"]);@@ -175,6 +176,7 @@ async fn git_operations_cover_read_write_markdown_and_safety_rejections() {#[tokio::test]async fn schedule_tool_covers_cron_once_agent_prompt_and_policy_edges() {+ crate::tinyhumans_boot::boot();let (_tmp, config) = temp_config();let tool = ScheduleTool::new(full_security(&config.workspace_dir), config.clone());@@ -280,6 +282,7 @@ async fn schedule_tool_covers_cron_once_agent_prompt_and_policy_edges() {#[tokio::test]async fn composio_direct_and_mouse_tools_cover_validation_policy_and_schema_paths() {+ crate::tinyhumans_boot::boot();let (_tmp, config) = temp_config();let full = full_security(&config.workspace_dir);let readonly = readonly_security(&config.workspace_dir);@@ -323,6 +326,7 @@ async fn composio_direct_and_mouse_tools_cover_validation_policy_and_schema_path#[tokio::test]async fn web_channel_public_paths_cover_validation_cancel_schema_and_event_bus() {+ crate::tinyhumans_boot::boot();assert_eq!(all_web_channel_controller_schemas().len(), 4);assert_eq!(all_web_channel_registered_controllers().len(), 4);assert_eq!(web_channel_schema("chat").function, "web_chat");@@ -434,6 +438,7 @@ fn run_git(repo: &std::path::Path, args: &[&str]) {#[cfg(unix)]#[tokio::test]async fn git_tool_refuses_a_workspace_repo_config_that_names_a_command() {+ crate::tinyhumans_boot::boot();use std::os::unix::fs::PermissionsExt;let tmp = tempdir().expect("repo tempdir");@@ -511,6 +516,7 @@ async fn git_tool_refuses_a_workspace_repo_config_that_names_a_command() {/// breaks ordinary repositories fails in the e2e lane rather than in the field.#[tokio::test]async fn git_tool_still_runs_under_an_ordinary_repository_config() {+ crate::tinyhumans_boot::boot();let tmp = tempdir().expect("repo tempdir");let repo = tmp.path();run_git(repo, &["init"]);diff --git a/tests/raw_coverage/webhooks_ingress_e2e.rs b/tests/raw_coverage/webhooks_ingress_e2e.rsindex 586d4d1df2..f85d4d5e05 100644--- a/tests/raw_coverage/webhooks_ingress_e2e.rs+++ b/tests/raw_coverage/webhooks_ingress_e2e.rs@@ -89,6 +89,8 @@ fn rpc_bearer() -> &'static str {}fn ensure_rpc_auth() {++ crate::tinyhumans_boot::boot();let _ = rpc_bearer();}diff --git a/tests/raw_coverage_all.rs b/tests/raw_coverage_all.rsindex 33cf9642a1..62e2b40e65 100644--- a/tests/raw_coverage_all.rs+++ b/tests/raw_coverage_all.rs@@ -33,4 +33,11 @@ use std::sync::{Mutex, OnceLock};/// panicking test cannot wedge the whole suite.pub static SHARED_ENV_LOCK: OnceLock<Mutex<()>> = OnceLock::new();+/// The TinyHumans backend transport for every aggregated suite that boots the+/// core in-process and reaches the mock backend: call+/// `crate::tinyhumans_boot::boot()` from the suite's fixture (or each test).+/// The core carries no backend client of its own.+#[path = "support/tinyhumans_boot.rs"]+pub mod tinyhumans_boot;+include!(concat!(env!("OUT_DIR"), "/raw_coverage_mods.rs"));