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
feat: execute connector preparation and trigger archives through released module
Steven Enamakel0f045a2491c1
diff --git a/Cargo.lock b/Cargo.lockindex 2dc4f0b99a..10ccd480e1 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -1225,35 +1225,6 @@ dependencies = ["unicode-segmentation",]-[[package]]-name = "cookie"-version = "0.18.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1a373e3602691c3cdea496d2f0ee5935151e6168fe87739483c463db1b2f2f87"-dependencies = [- "percent-encoding",- "time",- "version_check",-]--[[package]]-name = "cookie_store"-version = "0.22.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "15b2c103cf610ec6cae3da84a766285b42fd16aad564758459e6ecf128c75206"-dependencies = [- "cookie",- "document-features",- "idna",- "indexmap",- "log",- "serde",- "serde_derive",- "serde_json",- "time",- "url",-]-[[package]]name = "core-foundation"version = "0.7.0"@@ -4700,7 +4671,6 @@ dependencies = ["tinychannels-runtime","tinycomputer-accessibility","tinycomputer-bus",- "tinyconnectors","tinyconnectors-bus","tinydocs-bus","tinyflows",@@ -6805,17 +6775,6 @@ dependencies = ["socketioxide-core",]-[[package]]-name = "socks"-version = "0.3.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f0c3dbbd9ae980613c6dd8e28a9407b50509d3803b57624d5dfe8315218cd58b"-dependencies = [- "byteorder",- "libc",- "winapi",-]-[[package]]name = "spki"version = "0.7.3"@@ -7570,43 +7529,12 @@ dependencies = ["serde_json",]-[[package]]-name = "tinyconnectors"-version = "0.13.2"-dependencies = [- "async-trait",- "chrono",- "fs4",- "getrandom 0.4.3",- "percent-encoding",- "serde",- "serde_json",- "thiserror 2.0.20",- "tinyconnectors-bus",- "tinyconnectors-sync",- "tokio",- "tracing",- "ureq",- "url",-]-[[package]]name = "tinyconnectors-bus"-version = "0.13.2"-dependencies = [- "serde",- "serde_json",-]--[[package]]-name = "tinyconnectors-sync"-version = "0.13.2"+version = "0.14.0"dependencies = [- "async-trait","serde","serde_json",- "thiserror 2.0.20",- "tinyconnectors-bus",][[package]]@@ -8900,16 +8828,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9a7ac20be9b7726e0bbdbf974c059676d9acb1cd414961f570a4e8231cacd7fc"dependencies = ["base64 0.23.1",- "cookie_store","flate2","log","percent-encoding","rustls","rustls-pki-types",- "rustls-platform-verifier",- "serde",- "serde_json",- "socks","ureq-proto","utf8-zero","webpki-roots 1.0.9",diff --git a/crates/openhuman-app/Cargo.lock b/crates/openhuman-app/Cargo.lockindex d4535f388b..b8fc81cf18 100644--- a/crates/openhuman-app/Cargo.lock+++ b/crates/openhuman-app/Cargo.lock@@ -1053,29 +1053,10 @@ version = "0.18.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "1a373e3602691c3cdea496d2f0ee5935151e6168fe87739483c463db1b2f2f87"dependencies = [- "percent-encoding","time","version_check",]-[[package]]-name = "cookie_store"-version = "0.22.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "15b2c103cf610ec6cae3da84a766285b42fd16aad564758459e6ecf128c75206"-dependencies = [- "cookie",- "document-features",- "idna",- "indexmap 2.14.2",- "log",- "serde",- "serde_derive",- "serde_json",- "time",- "url",-]-[[package]]name = "core-foundation"version = "0.7.0"@@ -1694,15 +1675,6 @@ dependencies = ["const-random",]-[[package]]-name = "document-features"-version = "0.2.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61"-dependencies = [- "litrs",-]-[[package]]name = "dom_query"version = "0.27.0"@@ -3648,12 +3620,6 @@ version = "0.8.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"-[[package]]-name = "litrs"-version = "1.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092"-[[package]]name = "lock_api"version = "0.4.14"@@ -4658,7 +4624,6 @@ dependencies = ["tinychannels-runtime","tinycomputer-accessibility","tinycomputer-bus",- "tinyconnectors","tinyconnectors-bus","tinydocs-bus","tinyflows",@@ -6685,17 +6650,6 @@ dependencies = ["socketioxide-core",]-[[package]]-name = "socks"-version = "0.3.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f0c3dbbd9ae980613c6dd8e28a9407b50509d3803b57624d5dfe8315218cd58b"-dependencies = [- "byteorder",- "libc",- "winapi",-]-[[package]]name = "softbuffer"version = "0.4.8"@@ -7876,43 +7830,12 @@ dependencies = ["serde_json",]-[[package]]-name = "tinyconnectors"-version = "0.13.2"-dependencies = [- "async-trait",- "chrono",- "fs4",- "getrandom 0.4.3",- "percent-encoding",- "serde",- "serde_json",- "thiserror 2.0.20",- "tinyconnectors-bus",- "tinyconnectors-sync",- "tokio",- "tracing",- "ureq",- "url",-]-[[package]]name = "tinyconnectors-bus"-version = "0.13.2"-dependencies = [- "serde",- "serde_json",-]--[[package]]-name = "tinyconnectors-sync"-version = "0.13.2"+version = "0.14.0"dependencies = [- "async-trait","serde","serde_json",- "thiserror 2.0.20",- "tinyconnectors-bus",][[package]]@@ -9243,16 +9166,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9a7ac20be9b7726e0bbdbf974c059676d9acb1cd414961f570a4e8231cacd7fc"dependencies = ["base64 0.23.1",- "cookie_store","flate2","log","percent-encoding","rustls","rustls-pki-types",- "rustls-platform-verifier",- "serde",- "serde_json",- "socks","ureq-proto","utf8-zero","webpki-roots 1.0.9",diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.tomlindex a9020002f7..dc6b4bedc4 100644--- a/crates/openhuman-core/Cargo.toml+++ b/crates/openhuman-core/Cargo.toml@@ -230,14 +230,7 @@ tinymemory-integrations = { path = "../../vendor/tinymemory/crates/tinymemory-in# of it.#tinyconnectors-bus = { path = "../../vendor/tinyconnectors/crates/tinyconnectors-bus" }-# tinyconnectors — the connector module's implementation crate, linked as a-# plain Rust library (never as the loaded module) for its pure, host-agnostic-# helpers: failure classification, action-argument preparation, the daily-# trigger archive, calendar defaults and the task-recency window.-# `default-features = false` drops the `module` feature, so no TinyBus adapter or-# ABI export is compiled into the host (and no second copy of `tinybus` enters-# the graph). Live connector calls still go over the bus to the loaded module.-tinyconnectors = { path = "../../vendor/tinyconnectors/crates/tinyconnectors", default-features = false }+# tinymcp — the Model Context Protocol client, extracted out of this tree@@ -954,7 +947,7 @@ media = ["tinyagents-harness/media"]# runtime `DomainSet::flows` flag (#4796): the feature narrows the compile-time# surface, `DomainSet` gates it at runtime.# NOTE: this gate does NOT drop `tinyagents` itself — 26+ domains consume it.-flows = ["dep:tinyflows", "dep:tinyflows-catalog", "dep:tinyflows-copilot", "tinyflows-drivers/catalog", "tinyflows-sqlite/catalog"]+flows = ["modules", "dep:tinyflows", "dep:tinyflows-catalog", "dep:tinyflows-copilot", "tinyflows-drivers/catalog", "tinyflows-sqlite/catalog"]# Skills domains: `openhuman::skills` (metadata/discovery/install),# `openhuman::skill_runtime` (SKILL.md execution + the skill_executor agent),# and `openhuman::skill_registry` (remote catalogs + the skill_setup agent).diff --git a/crates/openhuman-core/src/agent/harness/task_recency_context.rs b/crates/openhuman-core/src/agent/harness/task_recency_context.rsindex ee9134b36a..1a4d4f136c 100644--- a/crates/openhuman-core/src/agent/harness/task_recency_context.rs+++ b/crates/openhuman-core/src/agent/harness/task_recency_context.rs@@ -6,7 +6,7 @@//! concept. `CURRENT_AGENT_SANDBOX_MODE` carries the calling agent's sandbox//! mode; [`TASK_RECENCY_WINDOW`] carries an optional "only data newer than//! `now - window`" hint that the `composio_execute` handler applies to a-//! curated set of task-fetch slugs (see `tinyconnectors::execute::apply_window_args`).+//! curated set of task-fetch slugs (see `tinyconnectors-bus::PrepareArguments`).//!//! Why a task-local instead of a `Tool::execute` argument: the tool trait is//! invoked from many call sites (CLI, JSON-RPC, tests, agent loops). Adiff --git a/crates/openhuman-core/src/core/runtime/builder.rs b/crates/openhuman-core/src/core/runtime/builder.rsindex 2ca7430def..4eb461c739 100644--- a/crates/openhuman-core/src/core/runtime/builder.rs+++ b/crates/openhuman-core/src/core/runtime/builder.rs@@ -491,6 +491,9 @@ impl CoreRuntime {/// to stop either: the user runs Ollama / LM Studio / MLX themselves and/// OpenHuman never spawns it.pub async fn exit_cleanup(&self) {+ if let Err(error) = crate::integrations::composio::trigger_history::close_global().await {+ log::warn!("[composio][history] archive shutdown failed: {error}");+ }log::debug!("[core] shutdown: exit cleanup done (no owned local runtime to stop)");}diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops.rsindex 176bb393e3..9e57be3247 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs@@ -415,7 +415,15 @@ pub(crate) async fn preflight_composio_args(// (1) Static rules — the same validation the Composio dispatch runs, hoisted// ahead of it. Only the `Err` matters here; the normalized arguments it// returns are recomputed (and used) at dispatch.- if let Err(e) = tinyconnectors::execute::prepare_execute_arguments(slug, Some(args.clone())) {+ if let Err(e) = crate::integrations::composio::processing::prepare(+ config,+ slug,+ Some(args.clone()),+ None,+ None,+ )+ .await+ {tracing::warn!(target: "flows", %slug, error = %e, "[flows] preflight: static arg rule rejected the call — failing before dispatch");return Err(EngineError::Capability(format!("tool_call `{slug}`: {e}")));}diff --git a/crates/openhuman-core/src/integrations/composio/README.md b/crates/openhuman-core/src/integrations/composio/README.mdindex b971f63a20..3ab70276ac 100644--- a/crates/openhuman-core/src/integrations/composio/README.md+++ b/crates/openhuman-core/src/integrations/composio/README.md@@ -63,7 +63,7 @@ triggers) from a real transport failure.| [`crates/openhuman-core/src/integrations/composio/identity_store.rs`](./identity_store.rs) | Persists connected-account identities in `<workspace>/integrations/composio_identities.json`. || [`crates/openhuman-core/src/integrations/composio/file_store.rs`](./file_store.rs) | Atomic JSON file helpers for the identity and user-scope files under `<workspace>/integrations/`. With a storage backend configured the same values are `composio_state` documents under the acting agent's scope ([`file_store_documents.rs`](./file_store_documents.rs)) and the files are not used. || [`crates/openhuman-core/src/integrations/composio/direct_auth/mod.rs`](./direct_auth/mod.rs) | Direct-mode API-key health tracking: a process-local consecutive-401-failure counter (keyed by a non-logged key fingerprint) that short-circuits repeated invalid-key polling. |-| [`crates/openhuman-core/src/integrations/composio/trigger_history.rs`](./trigger_history.rs) | Process-global `OnceLock` handle to `tinyconnectors::triggers::TriggerArchive` (`init_global`/`global`). |+| [`crates/openhuman-core/src/integrations/composio/trigger_history.rs`](./trigger_history.rs) | Lazy host lifecycle owner of a module-side opaque archive handle (`init_global`/`global`). || [`crates/openhuman-core/src/integrations/composio/bus.rs`](./bus.rs) + `bus/` | Trigger, connection-created and config-changed subscribers, and their registration. || [`crates/openhuman-core/src/integrations/composio/providers/mod.rs`](./providers/mod.rs) | Re-exports the curated catalogs, scope verdicts, identity vocabulary and run types from `contract/`. || [`crates/openhuman-core/src/integrations/composio/contract/`](./contract/) | The Composio vocabulary: catalogs, scopes, profiles, run shapes, task shapes. Plain data and pure functions. |@@ -146,7 +146,7 @@ Published from `ops/` via `crate::core::bus::BUS.publish` (`crate::core::events:## Persistence-- **Trigger history** (`trigger_history.rs`): JSONL records under `<workspace>/state/triggers/YYYY-MM-DD.jsonl`, partitioned by UTC day, written by `tinyconnectors::triggers::TriggerArchive` (exclusive file lock on append) behind a process-global `OnceLock` handle. Exposed via `composio.list_trigger_history`.+- **Trigger history** (`trigger_history.rs`): JSONL records under `<workspace>/state/triggers/YYYY-MM-DD.jsonl`, partitioned by UTC day, written inside the TinyConnectors module (exclusive file lock on append). The host keeps an opaque lease, closes it on sign-out/shutdown, and releases the old lease before switching user directories. Exposed via `composio.list_trigger_history`.- **Direct-mode API key**: stored in the encrypted keychain (via `credentials`); never logged/returned. `direct_auth/mod.rs` additionally tracks a process-local (non-persisted) consecutive-401 counter for the same key.- **Connected identities**: `<workspace>/integrations/composio_identities.json` (`identity_store.rs`). **User scope prefs**: `<workspace>/integrations/composio_user_scopes.json` (`ops::user_scopes`). Both written atomically (temp file + rename) under one process-wide lock (`file_store.rs`).- **Integrations cache**: warmed in the background after app startup/sign-in, then kept for the process lifetime. Connection create/delete, config changes, and a divergent `list_connections` response invalidate it; the change paths eagerly re-warm it. Idle time does not trigger a backend fetch on a chat turn (`connected_integrations.rs`).@@ -199,3 +199,10 @@ Published from `ops/` via `crate::core::bus::BUS.publish` (`crate::core::events:- [Parent module README](../README.md)- [Third-party integrations](../../../../../gitbooks/features/integrations/README.md)- [tinyconnectors](../../../../../vendor/tinyconnectors/README.md)++Connector argument preparation, calendar defaults, task-window filtering and+provider classification use the v0.14.0 module's contract 1.13 operations. The+host supplies configuration and policy context; it links only+`tinyconnectors-bus`. Trigger history opens lazily through `OpenArchive`, with+`RecordTrigger`, `ReadArchive` and `CloseArchive` handling all filesystem work.+Cancelling an archive-open caller does not discard its eventual resource handle.diff --git a/crates/openhuman-core/src/integrations/composio/action_tool.rs b/crates/openhuman-core/src/integrations/composio/action_tool.rsindex 73152b78b0..1c4a9ead13 100644--- a/crates/openhuman-core/src/integrations/composio/action_tool.rs+++ b/crates/openhuman-core/src/integrations/composio/action_tool.rs@@ -347,11 +347,18 @@ impl ComposioActionTool {iana = %iana,"[composio][per-action] applying calendar query defaults pre-dispatch");- let args = tinyconnectors::execute::apply_calendar_query_defaults(+ let args = match super::processing::prepare(+ &live_config,&self.action_name,Some(args),- &iana,- );+ Some(iana),+ None,+ )+ .await+ {+ Ok(args) => args,+ Err(error) => return (live_config, Ok(ToolResult::error(error))),+ };let started = std::time::Instant::now();// Allow the agent to override the baked-in connection_id via argsdiff --git a/crates/openhuman-core/src/integrations/composio/bus/trigger_subscriber.rs b/crates/openhuman-core/src/integrations/composio/bus/trigger_subscriber.rsindex 5728137e0b..654a82c126 100644--- a/crates/openhuman-core/src/integrations/composio/bus/trigger_subscriber.rs+++ b/crates/openhuman-core/src/integrations/composio/bus/trigger_subscriber.rs@@ -94,47 +94,25 @@ impl EventHandler<DomainEvent> for ComposioTriggerSubscriber {}if let Some(store) = trigger_history::global() {- let toolkit_owned = toolkit.clone();- let trigger_owned = trigger.clone();- let metadata_id_owned = metadata_id.clone();- let metadata_uuid_owned = metadata_uuid.clone();- let payload_owned = payload.clone();-- match tokio::task::spawn_blocking(move || {- store.record(- &toolkit_owned,- &trigger_owned,- &metadata_id_owned,- &metadata_uuid_owned,- &payload_owned,- )- })- .await- {- Ok(Ok(_)) => {}- Ok(Err(error)) => {- tracing::warn!(- toolkit = %toolkit,- trigger = %trigger,- error = %error,- "[composio][history] failed to archive trigger"- );+ match config_rpc::load_config_with_timeout().await {+ Ok(config) => {+ let event = super::super::types::ComposioTriggerEvent {+ toolkit: toolkit.clone(),+ trigger: trigger.clone(),+ payload: payload.clone(),+ metadata: super::super::types::ComposioTriggerMetadata {+ id: metadata_id.clone(),+ uuid: metadata_uuid.clone(),+ },+ };+ if let Err(error) = store.record(&config, event).await {+ tracing::warn!(error = %error, "[composio][history] failed to archive trigger");+ }}Err(error) => {- tracing::warn!(- toolkit = %toolkit,- trigger = %trigger,- error = %error,- "[composio][history] failed to join archive task"- );+ tracing::warn!(error = %error, "[composio][history] archive configuration unavailable")}}- } else {- tracing::debug!(- toolkit = %toolkit,- trigger = %trigger,- "[composio][history] archive store not initialized"- );}if triage_disabled() {diff --git a/crates/openhuman-core/src/integrations/composio/googlecalendar_args.rs b/crates/openhuman-core/src/integrations/composio/googlecalendar_args.rsindex 6190972005..506c93a43d 100644--- a/crates/openhuman-core/src/integrations/composio/googlecalendar_args.rs+++ b/crates/openhuman-core/src/integrations/composio/googlecalendar_args.rs@@ -1,7 +1,7 @@//! Host time-zone lookup for Google Calendar defaults.//!//! The defaulting itself (`timeZone` + `singleEvents` for calendar list/find-//! actions, issue #1714) is `tinyconnectors::execute::apply_calendar_query_defaults`.+//! actions, issue #1714) is the connector module’s `PrepareArguments` operation.//! It takes the zone as a parameter because reading the machine's zone is host//! business; this is that lookup.diff --git a/crates/openhuman-core/src/integrations/composio/mod.rs b/crates/openhuman-core/src/integrations/composio/mod.rsindex e42c581743..755a3f82ad 100644--- a/crates/openhuman-core/src/integrations/composio/mod.rs+++ b/crates/openhuman-core/src/integrations/composio/mod.rs@@ -53,10 +53,11 @@ pub mod identity;pub mod identity_store;pub mod module_client;pub mod ops;+pub(crate) mod processing;pub mod providers;pub mod schemas;pub mod tools;-pub mod trigger_history;+pub(crate) mod trigger_history;pub mod types;pub use crate::agent::prompts::types::ConnectedIntegration;diff --git a/crates/openhuman-core/src/integrations/composio/module_client.rs b/crates/openhuman-core/src/integrations/composio/module_client.rsindex 93d9d37f5c..d68cdf4690 100644--- a/crates/openhuman-core/src/integrations/composio/module_client.rs+++ b/crates/openhuman-core/src/integrations/composio/module_client.rs@@ -130,7 +130,10 @@ whereRequest: serde::Serialize + Send,Reply: serde::de::DeserializeOwned,{- Err(format!("{member}: {WITHOUT_MODULES}"))+ crate::modules::client::ModuleClient::new(_config.clone())+ .call::<Reply>("tinyconnectors", member, (_request,))+ .await+ .map_err(|error| format!("{member}: {error}; {WITHOUT_MODULES}"))}/// Give an already-serving connector module the route the current config@@ -187,7 +190,10 @@ whereRequest: serde::Serialize + Send,Reply: serde::de::DeserializeOwned,{- Err(format!("{member}: {WITHOUT_MODULES}"))+ crate::modules::client::ModuleClient::new(_config.clone())+ .call::<Reply>("tinyconnectors", member, (_request,))+ .await+ .map_err(|error| format!("{member}: {error}; {WITHOUT_MODULES}"))}/// The message a stateless member's failure carries, with the transport layers@@ -242,7 +248,10 @@ pub async fn call_bare<Reply: serde::de::DeserializeOwned>(_config: &crate::config::Config,member: &str,) -> Result<Reply, String> {- Err(format!("{member}: {WITHOUT_MODULES}"))+ crate::modules::client::ModuleClient::new(_config.clone())+ .call::<Reply>("tinyconnectors", member, ())+ .await+ .map_err(|error| format!("{member}: {error}; {WITHOUT_MODULES}"))}/// Serializes every test that reaches the connector module.diff --git a/crates/openhuman-core/src/integrations/composio/ops/triggers.rs b/crates/openhuman-core/src/integrations/composio/ops/triggers.rsindex 19185b8e0a..3d5fa4123b 100644--- a/crates/openhuman-core/src/integrations/composio/ops/triggers.rs+++ b/crates/openhuman-core/src/integrations/composio/ops/triggers.rs@@ -19,8 +19,7 @@ use super::super::types::{ComposioCreateTriggerRequest, ComposioCreateTriggerResponse, ComposioDisableTriggerRequest,ComposioDisableTriggerResponse, ComposioEnableTriggerRequest, ComposioEnableTriggerResponse,ComposioGithubReposResponse, ComposioListAvailableTriggersRequest,- ComposioListGithubReposRequest, ComposioListTriggerHistoryRequest, ComposioListTriggersRequest,- ComposioTriggerHistoryResult,+ ComposioListGithubReposRequest, ComposioListTriggersRequest, ComposioTriggerHistoryResult,};use super::error_utils::{report_composio_op_error, OpResult};@@ -145,22 +144,38 @@ pub async fn composio_enable_trigger(trigger_config,},)- .await- .map_err(|e| {- report_composio_op_error("enable_trigger", &anyhow::anyhow!("{e}"));- // Enabling is the one trigger call a user drives directly from a- // settings screen, so its failures are mapped to something a person can- // act on ("reconnect GitHub") rather than the provider's own wording.- let class = tinyconnectors::execute::classify_composio_error(slug, &e);- let mapped = tinyconnectors::execute::format_provider_error(slug, &e);- tracing::warn!(- slug = %slug,- connection_id = %connection_id,- class = class.as_str(),- "[composio] enable_trigger failed; surfacing mapped error"- );- mapped- })?;+ .await;+ let resp = match resp {+ Ok(response) => response,+ Err(e) => {+ if e.contains("MODULE_CALL_REPORTED:") {+ return Err(e);+ }+ report_composio_op_error("enable_trigger", &anyhow::anyhow!("{e}"));+ // Enabling is the one trigger call a user drives directly from a+ // settings screen, so its failures are mapped to something a person can+ // act on ("reconnect GitHub") rather than the provider's own wording.+ let classified: tinyconnectors_bus::ProviderError =+ crate::modules::client::ModuleClient::new(config.clone())+ .call(+ "tinyconnectors",+ methods::CLASSIFY_ERROR,+ (tinyconnectors_bus::ClassifyErrorRequest {+ tool: slug.to_owned(),+ message: e,+ },),+ )+ .await+ .map_err(|error| error.to_string())?;+ tracing::warn!(+ slug = %slug,+ connection_id = %connection_id,+ class = classified.class.as_str(),+ "[composio] enable_trigger failed; surfacing mapped error"+ );+ return Err(classified.message);+ }+ };let trigger_id = resp.trigger_id.clone();Ok(Outcome::new(resp,@@ -209,15 +224,13 @@ pub async fn composio_list_trigger_history("[composio] rpc list_trigger_history");- let history = connectors::call::<_, ComposioTriggerHistoryResult>(- config,- methods::LIST_TRIGGER_HISTORY,- ComposioListTriggerHistoryRequest {- limit: Some(requested_limit),- },- )- .await- .map_err(|error| format!("[composio] list_trigger_history failed: {error}"))?;+ let store = super::super::trigger_history::global().ok_or_else(|| {+ "[composio] list_trigger_history failed: trigger archive owner unavailable".to_owned()+ })?;+ let history = store+ .read(config, Some(requested_limit))+ .await+ .map_err(|error| format!("[composio] list_trigger_history failed: {error}"))?;let count = history.entries.len();Ok(Outcome::new(diff --git a/crates/openhuman-core/src/integrations/composio/processing.rs b/crates/openhuman-core/src/integrations/composio/processing.rsnew file mode 100644index 0000000000..49aafbf776--- /dev/null+++ b/crates/openhuman-core/src/integrations/composio/processing.rs@@ -0,0 +1,75 @@+//! Thin adapters for connector-owned argument and response processing.++use crate::config::Config;+use tinyconnectors_bus::{FilterResponseRequest, PrepareArgumentsRequest, PreparedArguments};++use super::module_client::methods;++/// Apply the connector's validation, calendar defaults and task window rules.+pub(crate) async fn prepare(+ config: &Config,+ tool: &str,+ arguments: Option<serde_json::Value>,+ timezone: Option<String>,+ since: Option<String>,+) -> Result<Option<serde_json::Value>, String> {+ prepare_with(+ &crate::modules::client::ModuleClient::new(config.clone()),+ tool,+ arguments,+ timezone,+ since,+ )+ .await+}++async fn prepare_with(+ client: &crate::modules::client::ModuleClient,+ tool: &str,+ arguments: Option<serde_json::Value>,+ timezone: Option<String>,+ since: Option<String>,+) -> Result<Option<serde_json::Value>, String> {+ let reply: PreparedArguments = client+ .call(+ "tinyconnectors",+ methods::PREPARE_ARGUMENTS,+ (PrepareArgumentsRequest {+ tool: tool.to_owned(),+ arguments,+ timezone,+ since,+ },),+ )+ .await+ .map_err(|error| error.to_string())?;+ match reply.error {+ Some(error) => Err(error.message),+ None => Ok(reply.arguments),+ }+}++/// Filter a provider response within the separately compiled module.+pub(crate) async fn filter(+ config: &Config,+ tool: &str,+ response: super::types::ComposioExecuteResponse,+ since: String,+) -> Result<super::types::ComposioExecuteResponse, String> {+ crate::modules::client::ModuleClient::new(config.clone())+ .call(+ "tinyconnectors",+ methods::FILTER_RESPONSE,+ (FilterResponseRequest {+ tool: tool.to_owned(),+ response,+ since,+ },),+ )+ .await+ .map_err(|error| error.to_string())+}++#[cfg(test)]+#[path = "processing_tests.rs"]+mod tests;diff --git a/crates/openhuman-core/src/integrations/composio/processing_tests.rs b/crates/openhuman-core/src/integrations/composio/processing_tests.rsnew file mode 100644index 0000000000..93bba62c17--- /dev/null+++ b/crates/openhuman-core/src/integrations/composio/processing_tests.rs@@ -0,0 +1,101 @@+use super::*;++#[tokio::test]+async fn disabled_processing_never_executes_linked_calendar_or_validation_helpers() {+ let mut config = Config::default();+ config.modules.enabled = false;+ let result = prepare(+ &config,+ "GOOGLECALENDAR_LIST_EVENTS",+ Some(serde_json::json!({})),+ Some("UTC".into()),+ None,+ )+ .await;+ assert!(result+ .unwrap_err()+ .contains("MODULE_CALL_REPORTED: module unavailable"));+}++#[cfg(feature = "modules")]+#[derive(Clone)]+struct Fixture(std::sync::Arc<Mutex<Vec<PrepareArgumentsRequest>>>);+#[cfg(feature = "modules")]+use tokio::sync::Mutex;++#[cfg(feature = "modules")]+#[tinybus::interface(name = "test.ConnectorProcessing")]+impl Fixture {+ async fn prepare_arguments(+ &self,+ request: PrepareArgumentsRequest,+ ) -> tinybus::Result<PreparedArguments> {+ self.0.lock().await.push(request.clone());+ Ok(PreparedArguments {+ arguments: Some(serde_json::json!({"module_prepared":true})),+ error: (request.tool == "invalid").then(|| tinyconnectors_bus::ProviderError {+ class: "validation".into(),+ message: "provider validation refused the action".into(),+ }),+ })+ }+}++#[cfg(feature = "modules")]+#[tokio::test]+async fn preparation_forwards_host_context_and_preserves_module_validation_errors() {+ use tinybus::{broker::Broker, transport::memory::MemoryBus, Connection, ObjectPath};+ let bus = MemoryBus::new();+ Broker::new().spawn(bus.clone());+ let service = Connection::connect(bus.connect().await.unwrap())+ .await+ .unwrap();+ let caller = Connection::connect(bus.connect().await.unwrap())+ .await+ .unwrap();+ let requests = std::sync::Arc::new(Mutex::new(Vec::new()));+ service+ .serve_at(+ ObjectPath::new("/test/processing").unwrap(),+ Fixture(requests.clone()),+ )+ .await+ .unwrap();+ service+ .request_name("test.ConnectorProcessing")+ .await+ .unwrap();+ let client = crate::modules::client::ModuleClient::fixture(+ caller+ .proxy(+ "test.ConnectorProcessing",+ "/test/processing",+ "test.ConnectorProcessing",+ )+ .unwrap(),+ );+ let args = Some(serde_json::json!({"caller_argument":"value"}));+ assert_eq!(+ prepare_with(+ &client,+ "calendar",+ args.clone(),+ Some("Asia/Kuwait".into()),+ Some("2026-10-10T00:00:00Z".into())+ )+ .await+ .unwrap(),+ Some(serde_json::json!({"module_prepared":true}))+ );+ let captured = requests.lock().await;+ assert_eq!(captured[0].arguments, args);+ assert_eq!(captured[0].timezone.as_deref(), Some("Asia/Kuwait"));+ assert_eq!(captured[0].since.as_deref(), Some("2026-10-10T00:00:00Z"));+ drop(captured);+ assert_eq!(+ prepare_with(&client, "invalid", None, None, None)+ .await+ .unwrap_err(),+ "provider validation refused the action"+ );+}diff --git a/crates/openhuman-core/src/integrations/composio/tools/execute.rs b/crates/openhuman-core/src/integrations/composio/tools/execute.rsindex d09a558fdf..d8784b3e9c 100644--- a/crates/openhuman-core/src/integrations/composio/tools/execute.rs+++ b/crates/openhuman-core/src/integrations/composio/tools/execute.rs@@ -236,8 +236,6 @@ impl ComposioExecuteTool {iana = %iana,"[composio][dispatcher] applying calendar query defaults pre-dispatch");- let arguments =- tinyconnectors::execute::apply_calendar_query_defaults(&tool, arguments, &iana);// Task-recency window (morning briefing): when the calling agent// installed a window, inject best-effort server-side narrowing for@@ -248,9 +246,22 @@ impl ComposioExecuteTool {chrono::Utc::now()- chrono::Duration::from_std(w).unwrap_or_else(|_| chrono::Duration::zero())});- let arguments = match task_window_since {- Some(since) => tinyconnectors::execute::apply_window_args(&tool, arguments, since),- None => arguments,+ let arguments = match super::super::processing::prepare(+ self.config.as_ref(),+ &tool,+ arguments,+ Some(iana),+ task_window_since.map(|since| since.to_rfc3339()),+ )+ .await+ {+ Ok(arguments) => arguments,+ Err(error) => {+ return (+ Box::new(self.config.as_ref().clone()),+ Ok(ToolResult::error(error)),+ )+ }};// Resolve the client through the mode-aware factory on every@@ -289,7 +300,17 @@ impl ComposioExecuteTool {// slug is a curated task-fetch action. Runs before the// markdown/JSON body decision so the agent reads filtered data.let resp = match task_window_since {- Some(since) => tinyconnectors::execute::filter_response(&tool, resp, since),+ Some(since) => match super::super::processing::filter(+ &live_config,+ &tool,+ resp,+ since.to_rfc3339(),+ )+ .await+ {+ Ok(response) => response,+ Err(error) => return (live_config, Ok(ToolResult::error(error))),+ },None => resp,};tracing::info!(diff --git a/crates/openhuman-core/src/integrations/composio/trigger_history.rs b/crates/openhuman-core/src/integrations/composio/trigger_history.rsindex 4381208760..a271a24751 100644--- a/crates/openhuman-core/src/integrations/composio/trigger_history.rs+++ b/crates/openhuman-core/src/integrations/composio/trigger_history.rs@@ -1,42 +1,195 @@-//! Process-global handle to the persistent Composio trigger archive.-//!-//! The archive itself (daily JSONL under `<workspace>/state/triggers/`, exclusive-//! file locking on append, newest-first reads that skip corrupt lines) is-//! `tinyconnectors::triggers::TriggerArchive`. What stays here is the-//! host lifecycle: one archive per process, opened once at startup and read by-//! the trigger subscriber.+//! Lazy ownership of a module-side trigger archive; no files are opened here.use std::path::PathBuf;use std::sync::{Arc, OnceLock};+use tinyconnectors_bus::{+ ArchiveHandle, OpenArchiveRequest, ReadArchiveRequest, RecordTriggerRequest,+};+use tokio::sync::Mutex;-use tinyconnectors::triggers::TriggerArchive;+use super::module_client::methods;+use super::types::{+ ComposioTriggerEvent, ComposioTriggerHistoryEntry, ComposioTriggerHistoryResult,+};+use crate::config::Config;+use crate::modules::client::ModuleClient;-static GLOBAL_TRIGGER_HISTORY: OnceLock<Arc<TriggerArchive>> = OnceLock::new();+static GLOBAL_TRIGGER_HISTORY: OnceLock<Arc<TriggerHistory>> = OnceLock::new();-/// Open the archive under `<workspace_dir>/state/triggers` and install it as the-/// process-global store. Idempotent for the same workspace; a different-/// workspace after initialization is an error.+struct Lease {+ workspace: PathBuf,+ client: ModuleClient,+ handle: ArchiveHandle,+}++/// Host lifecycle owner of one opaque archive lease. The module owns its files.+pub struct TriggerHistory {+ initial_workspace: PathBuf,+ lease: Arc<Mutex<Option<Lease>>>,+ #[cfg(all(test, feature = "modules"))]+ fixture: Option<ModuleClient>,+}++impl TriggerHistory {+ fn client(&self, config: &Config) -> ModuleClient {+ #[cfg(all(test, feature = "modules"))]+ if let Some(client) = self.fixture.as_ref() {+ return client.clone();+ }+ ModuleClient::new(config.clone())+ }++ async fn ensure_lease(+ config: &Config,+ lease: &mut Option<Lease>,+ client: ModuleClient,+ ) -> Result<ArchiveHandle, String> {+ if lease+ .as_ref()+ .is_some_and(|current| current.workspace != config.workspace_dir)+ {+ Self::release(lease).await?;+ }+ if let Some(current) = lease.as_ref() {+ return Ok(current.handle.clone());+ }+ let state_dir = config.workspace_dir.join("state");+ let state_dir = state_dir+ .to_str()+ .ok_or_else(|| "trigger archive requires a UTF-8 state directory".to_owned())?;+ let handle = client+ .call(+ "tinyconnectors",+ methods::OPEN_ARCHIVE,+ (OpenArchiveRequest {+ state_dir: state_dir.to_owned(),+ },),+ )+ .await+ .map_err(|error| error.to_string())?;+ *lease = Some(Lease {+ workspace: config.workspace_dir.clone(),+ client,+ handle,+ });+ Ok(lease.as_ref().expect("lease installed").handle.clone())+ }++ async fn acquire(+ &self,+ config: &Config,+ ) -> Result<tokio::sync::OwnedMutexGuard<Option<Lease>>, String> {+ let lease = Arc::clone(&self.lease);+ let config = config.clone();+ let client = self.client(&config);+ // Keep ownership installation running if the caller is cancelled while+ // OpenArchive completes. A later close can still release the handle.+ tokio::spawn(async move {+ let mut guard = lease.lock_owned().await;+ Self::ensure_lease(&config, &mut guard, client).await?;+ Ok(guard)+ })+ .await+ .map_err(|_| "trigger archive ownership task failed".to_owned())?+ }++ async fn release(lease: &mut Option<Lease>) -> Result<(), String> {+ if let Some(current) = lease.as_ref() {+ current+ .client+ .call::<()>(+ "tinyconnectors",+ methods::CLOSE_ARCHIVE,+ (current.handle.clone(),),+ )+ .await+ .map_err(|error| error.to_string())?;+ *lease = None;+ }+ Ok(())+ }++ /// Archive one delivered event, serialized with reads and scope changes.+ pub async fn record(+ &self,+ config: &Config,+ event: ComposioTriggerEvent,+ ) -> Result<ComposioTriggerHistoryEntry, String> {+ let lease = self.acquire(config).await?;+ let handle = lease.as_ref().expect("lease installed").handle.clone();+ lease+ .as_ref()+ .expect("lease installed")+ .client+ .call(+ "tinyconnectors",+ methods::RECORD_TRIGGER,+ (RecordTriggerRequest { handle, event },),+ )+ .await+ .map_err(|error| error.to_string())+ }++ /// Read persisted history without changing the user's connector route.+ pub async fn read(+ &self,+ config: &Config,+ limit: Option<usize>,+ ) -> Result<ComposioTriggerHistoryResult, String> {+ let lease = self.acquire(config).await?;+ let handle = lease.as_ref().expect("lease installed").handle.clone();+ lease+ .as_ref()+ .expect("lease installed")+ .client+ .call(+ "tinyconnectors",+ methods::READ_ARCHIVE,+ (ReadArchiveRequest { handle, limit },),+ )+ .await+ .map_err(|error| error.to_string())+ }++ /// Release the module resource while retaining all persisted documents.+ pub async fn close(&self) -> Result<(), String> {+ let lease = Arc::clone(&self.lease);+ tokio::spawn(async move { Self::release(&mut *lease.lock_owned().await).await })+ .await+ .map_err(|_| "trigger archive release task failed".to_owned())?+ }+}++/// Install the lifecycle owner without downloading or loading a module.pub fn init_global(workspace_dir: PathBuf) -> Result<(), String> {- let state_dir = workspace_dir.join("state");- let archive = Arc::new(- TriggerArchive::open(&state_dir).map_err(|error| format!("[composio][history] {error}"))?,- );- let installed = GLOBAL_TRIGGER_HISTORY.get_or_init(|| archive.clone());- if installed.archive_dir() == archive.archive_dir() {- tracing::debug!(- archive_dir = %archive.archive_dir().display(),- "[composio][history] archive initialized"- );- return Ok(());- }- Err(format!(- "[composio][history] global store already initialized for {} while attempting {}",- installed.archive_dir().display(),- archive.archive_dir().display()- ))+ let installed = GLOBAL_TRIGGER_HISTORY.get_or_init(|| {+ Arc::new(TriggerHistory {+ initial_workspace: workspace_dir.clone(),+ lease: Arc::new(Mutex::new(None)),+ #[cfg(all(test, feature = "modules"))]+ fixture: None,+ })+ });+ if installed.initial_workspace == workspace_dir {+ Ok(())+ } else {+ Err("trigger archive owner already initialized for another workspace".to_owned())+ }}-/// The process-global archive, if [`init_global`] has run.-pub fn global() -> Option<Arc<TriggerArchive>> {+/// The process-wide lifecycle owner, if initialized at startup.+pub fn global() -> Option<Arc<TriggerHistory>> {GLOBAL_TRIGGER_HISTORY.get().cloned()}++/// Close an existing lease on sign-out or runtime shutdown; never load at exit.+pub(crate) async fn close_global() -> Result<(), String> {+ match global() {+ Some(store) => store.close().await,+ None => Ok(()),+ }+}++#[cfg(test)]+#[path = "trigger_history_tests.rs"]+mod tests;diff --git a/crates/openhuman-core/src/integrations/composio/trigger_history_tests.rs b/crates/openhuman-core/src/integrations/composio/trigger_history_tests.rsnew file mode 100644index 0000000000..2fb046ca5c--- /dev/null+++ b/crates/openhuman-core/src/integrations/composio/trigger_history_tests.rs@@ -0,0 +1,159 @@+use super::*;++#[tokio::test]+async fn disabled_archive_operations_leave_the_host_filesystem_untouched() {+ let workspace = tempfile::tempdir().unwrap();+ let mut config = Config::default();+ config.workspace_dir = workspace.path().to_owned();+ config.modules.enabled = false;+ let owner = TriggerHistory {+ initial_workspace: config.workspace_dir.clone(),+ lease: Arc::new(Mutex::new(None)),+ #[cfg(feature = "modules")]+ fixture: None,+ };+ assert!(owner+ .read(&config, Some(10))+ .await+ .unwrap_err()+ .contains("module unavailable"));+ assert!(!workspace.path().join("state").exists());+ assert!(owner.lease.lock().await.is_none());+ owner.close().await.unwrap();+}++#[cfg(feature = "modules")]+#[derive(Clone, Default)]+struct Fixture {+ calls: Arc<Mutex<Vec<String>>>,+ open_started: Arc<tokio::sync::Notify>,+ open_continue: Arc<tokio::sync::Notify>,+ pause_open: bool,+}++#[cfg(feature = "modules")]+#[tinybus::interface(name = "test.ConnectorArchive")]+impl Fixture {+ async fn open_archive(&self, request: OpenArchiveRequest) -> tinybus::Result<ArchiveHandle> {+ self.calls+ .lock()+ .await+ .push(format!("open:{}", request.state_dir));+ if self.pause_open {+ self.open_started.notify_one();+ self.open_continue.notified().await;+ }+ Ok(ArchiveHandle(request.state_dir))+ }+ async fn read_archive(+ &self,+ request: ReadArchiveRequest,+ ) -> tinybus::Result<ComposioTriggerHistoryResult> {+ self.calls+ .lock()+ .await+ .push(format!("read:{}", request.handle.0));+ Ok(ComposioTriggerHistoryResult {+ archive_dir: "fixture".into(),+ current_day_file: "fixture-day".into(),+ entries: Vec::new(),+ })+ }+ async fn close_archive(&self, handle: ArchiveHandle) -> tinybus::Result<()> {+ self.calls.lock().await.push(format!("close:{}", handle.0));+ Ok(())+ }+}++#[cfg(feature = "modules")]+async fn connected_owner(fixture: Fixture) -> (Arc<TriggerHistory>, tinybus::Connection) {+ use tinybus::{broker::Broker, transport::memory::MemoryBus, Connection, ObjectPath};+ let bus = MemoryBus::new();+ Broker::new().spawn(bus.clone());+ let service = Connection::connect(bus.connect().await.unwrap())+ .await+ .unwrap();+ let caller = Connection::connect(bus.connect().await.unwrap())+ .await+ .unwrap();+ service+ .serve_at(ObjectPath::new("/test/archive").unwrap(), fixture)+ .await+ .unwrap();+ service.request_name("test.ConnectorArchive").await.unwrap();+ let client = ModuleClient::fixture(+ caller+ .proxy(+ "test.ConnectorArchive",+ "/test/archive",+ "test.ConnectorArchive",+ )+ .unwrap(),+ );+ (+ Arc::new(TriggerHistory {+ initial_workspace: PathBuf::from("first"),+ lease: Arc::new(Mutex::new(None)),+ fixture: Some(client),+ }),+ service,+ )+}++#[cfg(feature = "modules")]+#[tokio::test]+async fn changing_users_releases_the_old_archive_before_opening_the_next_scope() {+ let fixture = Fixture::default();+ let calls = fixture.calls.clone();+ let (owner, _service) = connected_owner(fixture).await;+ assert!(+ calls.lock().await.is_empty(),+ "constructing an owner must remain lazy"+ );+ let mut config = Config::default();+ config.workspace_dir = PathBuf::from("first");+ owner.read(&config, Some(2)).await.unwrap();+ config.workspace_dir = PathBuf::from("second");+ owner.read(&config, Some(2)).await.unwrap();+ owner.close().await.unwrap();+ owner.close().await.unwrap();+ assert_eq!(+ *calls.lock().await,+ vec![+ format!("open:{}", PathBuf::from("first").join("state").display()),+ format!("read:{}", PathBuf::from("first").join("state").display()),+ format!("close:{}", PathBuf::from("first").join("state").display()),+ format!("open:{}", PathBuf::from("second").join("state").display()),+ format!("read:{}", PathBuf::from("second").join("state").display()),+ format!("close:{}", PathBuf::from("second").join("state").display())+ ]+ );+ assert!(owner.lease.lock().await.is_none());+}++#[cfg(feature = "modules")]+#[tokio::test]+async fn cancelling_a_pending_open_retains_a_handle_that_shutdown_can_release() {+ let fixture = Fixture {+ pause_open: true,+ ..Default::default()+ };+ let observed = fixture.clone();+ let (owner, _service) = connected_owner(fixture).await;+ let mut config = Config::default();+ config.workspace_dir = PathBuf::from("cancelled");+ let opening = tokio::spawn({+ let owner = owner.clone();+ async move { owner.read(&config, Some(1)).await }+ });+ observed.open_started.notified().await;+ opening.abort();+ assert!(opening.await.unwrap_err().is_cancelled());+ observed.open_continue.notify_one();+ owner.close().await.unwrap();+ assert_eq!(+ *observed.calls.lock().await,+ vec!["open:cancelled/state", "close:cancelled/state"]+ );+ assert!(owner.lease.lock().await.is_none());+}diff --git a/crates/openhuman-core/src/modules/README.md b/crates/openhuman-core/src/modules/README.mdindex a7be0d212f..19b687fc6c 100644--- a/crates/openhuman-core/src/modules/README.md+++ b/crates/openhuman-core/src/modules/README.md@@ -395,3 +395,10 @@ minimal build small.- [Loadable modules](../../../../gitbooks/developing/loadable-modules.md)- [tinybus submodule](../../../../vendor/tinybus/README.md)- [Architecture overview](../../../../gitbooks/developing/architecture.md)++The connector host consumes verified release v0.14.0 (contract 1.13). The+argument/default/filter/classification and trigger-archive adapters call bus+members; no normal or build edge reaches `tinyconnectors` or its sync library.+Provider messages remain product output, while terminal bus reports contain+only the module/version/stage/platform/reason vocabulary. Credential-bearing+configuration and direct reads use attested confidential calls.diff --git a/crates/openhuman-core/src/modules/registry/records_mcp_connectors.rs b/crates/openhuman-core/src/modules/registry/records_mcp_connectors.rsindex f067acaad9..dd52b1bd8d 100644--- a/crates/openhuman-core/src/modules/registry/records_mcp_connectors.rs+++ b/crates/openhuman-core/src/modules/registry/records_mcp_connectors.rs@@ -94,63 +94,63 @@ pub(crate) const TINYCONNECTORS: ModuleRecord = ModuleRecord {description: "OAuth connector integrations: accounts, actions, and triggers",bus_name: "ai.tinyhumans.connectors.Composio",object_path: "/ai/tinyhumans/connectors/Composio",- version: "0.13.2",- release_url: "https://github.com/tinyhumansai/tinyconnectors/releases/tag/v0.13.2",+ version: "0.14.0",+ release_url: "https://github.com/tinyhumansai/tinyconnectors/releases/tag/v0.14.0",assets: &[PlatformAsset {host_key: "ubuntu-24.04-x86_64",- archive: "tinyconnectors-0.13.2-ubuntu-24.04-x86_64.tar.gz",- sha256: "aeab20e2cc5fe2849b78150d3df919cb72f1f1d5b0485cae5a07b84b81784ffc",+ archive: "tinyconnectors-0.14.0-ubuntu-24.04-x86_64.tar.gz",+ sha256: "836bffa2fe4f935c8504f608e08bdf023326d1285fc977fd37149f2799899478",},PlatformAsset {host_key: "ubuntu-24.04-arm64",- archive: "tinyconnectors-0.13.2-ubuntu-24.04-arm64.tar.gz",- sha256: "185b91fe3354bd0346e1281b34e066abc092e52a856e4ed3de9f6359c1e05cce",+ archive: "tinyconnectors-0.14.0-ubuntu-24.04-arm64.tar.gz",+ sha256: "b7dbafe019aca715e55444a37b5ff4fc469ef2bcc675dfa987e1de626e70fd22",},PlatformAsset {host_key: "ubuntu-22.04-x86_64",- archive: "tinyconnectors-0.13.2-ubuntu-22.04-x86_64.tar.gz",- sha256: "72cdb1705acd7598b66d529808191e4eeeb9c83c672061abfa1c92eec112fc8a",+ archive: "tinyconnectors-0.14.0-ubuntu-22.04-x86_64.tar.gz",+ sha256: "a29cb970b385cf8cd40998baa3b6f040447196d019a8d3413d67ca64a6509687",},PlatformAsset {host_key: "ubuntu-22.04-arm64",- archive: "tinyconnectors-0.13.2-ubuntu-22.04-arm64.tar.gz",- sha256: "05ac114ba4575407aaca39016339ff334affa88a9652c1f66b4dcc1d59f9e7e9",+ archive: "tinyconnectors-0.14.0-ubuntu-22.04-arm64.tar.gz",+ sha256: "e961477b9cac1892beef8b498ba4f44daa4b39b8dddf277ec49496e3869427b5",},PlatformAsset {host_key: "macos-26-arm64",- archive: "tinyconnectors-0.13.2-macos-26-arm64.tar.gz",- sha256: "2ad04ea45d9c89f7cedfcc4d7448cae70c5468c7460d9ed8a742376040360700",+ archive: "tinyconnectors-0.14.0-macos-26-arm64.tar.gz",+ sha256: "5a24f1eabb0f246a5954e4d6f93cc0feeaed4fe6bfbf1fceb7399078e0e5734a",},PlatformAsset {host_key: "macos-26-x86_64",- archive: "tinyconnectors-0.13.2-macos-26-x86_64.tar.gz",- sha256: "24e3ab0cfb624118d7371957341661f6e23b1c8379129257c6365395101cebfc",+ archive: "tinyconnectors-0.14.0-macos-26-x86_64.tar.gz",+ sha256: "5df7dbc74b2f39174e57695c5556ab4c232b775897e7bd534be015ead01ef51b",},PlatformAsset {host_key: "macos-15-arm64",- archive: "tinyconnectors-0.13.2-macos-15-arm64.tar.gz",- sha256: "6985646cde86616dc60ad3637867db2b8ea2e722ff9990cc4875dd27e68619b0",+ archive: "tinyconnectors-0.14.0-macos-15-arm64.tar.gz",+ sha256: "ea8010163f279f14e25a4ad884b4665e24385c560dd2caf46e8c80220556ba11",},PlatformAsset {host_key: "macos-15-x86_64",- archive: "tinyconnectors-0.13.2-macos-15-x86_64.tar.gz",- sha256: "dd47655c4a5ef6344978c6780fb8400490e7c5e251dfb57ff99cd3050309fc08",+ archive: "tinyconnectors-0.14.0-macos-15-x86_64.tar.gz",+ sha256: "508e44cc9cd273dcbd2d269295ab0b7009efb1a27d3244ba9adde6b297306db1",},PlatformAsset {host_key: "windows-2025-x86_64",- archive: "tinyconnectors-0.13.2-windows-2025-x86_64.zip",- sha256: "0c1e4569fc655425f6a945dba57fc73c0f01dccc80d84ce297f44386b71202fe",+ archive: "tinyconnectors-0.14.0-windows-2025-x86_64.zip",+ sha256: "5a5e62e8d11bbdc792c9d8fd2a9b59bcea9add80978457ea0faa7c058cd48546",},PlatformAsset {host_key: "windows-2022-x86_64",- archive: "tinyconnectors-0.13.2-windows-2022-x86_64.zip",- sha256: "d0e07c73fce16619c1ff5265dc5f49c5ac8812534ec3b2dfb53edd7419ee1083",+ archive: "tinyconnectors-0.14.0-windows-2022-x86_64.zip",+ sha256: "1560ed909f338a5bf1118d644d44e1fbeee5c26461241df9f24630e3f9ba3cbe",},PlatformAsset {host_key: "windows-11-arm64",- archive: "tinyconnectors-0.13.2-windows-11-arm64.zip",- sha256: "0ae07bf8dacd998fd0edb9097a6e808c94c16059523ae416b150f0477bd4f9ad",+ archive: "tinyconnectors-0.14.0-windows-11-arm64.zip",+ sha256: "0bdfb0424ad62fc93ba66a7d8dd7063a39ae8656b78d2e65f4f1a6425aec3279",},],// Lazy: a user with no connected accounts should not pay to load it, anddiff --git a/crates/openhuman-core/src/security/credentials/ops/gated_services.rs b/crates/openhuman-core/src/security/credentials/ops/gated_services.rsindex 6ed6fa0182..36e5997fe8 100644--- a/crates/openhuman-core/src/security/credentials/ops/gated_services.rs+++ b/crates/openhuman-core/src/security/credentials/ops/gated_services.rs@@ -213,6 +213,10 @@ pub async fn stop_credential_gated_services(config: &Config) {// logged out). Symmetric with start_login_gated_services step 3b.crate::voice::always_on::stop();+ if let Err(error) = crate::integrations::composio::trigger_history::close_global().await {+ log::warn!("[composio][history] archive release failed on sign-out: {error}");+ }+log::info!("[services] all login-gated services stopped");}diff --git a/docs/module-boundary-inventory.md b/docs/module-boundary-inventory.mdindex f0954536bc..81a57002e4 100644--- a/docs/module-boundary-inventory.md+++ b/docs/module-boundary-inventory.md@@ -145,3 +145,55 @@ TinyConnectors PR 46 is merged; its canonical main CI passed. The minor release[run 38084368799](https://github.com/tinyhumansai/tinyconnectors/actions/runs/38084368799)is building compatible platform artifacts. Host adoption remains gated onpublished packages and verified digests. No host dependency cut is claimed here.++## Released connector integration (2026-10-11)++The `module-connectors-host` branch consumes TinyConnectors v0.14.0, source+`8b35ca5`, contract 1.13. All 16 archive bytes were hashed and matched both+`checksum.toml` and GitHub asset digests before replacing registry pins. The+host calls the module for preparation, calendar defaults, task-window filtering,+provider classification and opaque archive operations. It releases archive+leases on scope changes, sign-out and runtime shutdown; cancellation during+open retains the handle for cleanup. Frozen recorded tool declarations are+retained by the existing session adapter.++The normal/build graph audit removes the two connector implementation+exceptions and reports 32 remaining temporary exceptions and two pending+contracts. The measured flows profile is 335 packages / 313 names / two native+builds, compared with the combined foundation baseline of 340 / 318 / two.+Validation passes: 354 Composio tests against the released native artifact and+local provider mocks, 176 module/Sentry tests, ten recorded-tool tests, the+no-loader library check, the contract/host graph audit, crate-chain, feature+forwarding and Rust layout checks. A new Sentry regression first captured two+events; the fixed adapter emits one sanitized event and preserves existing+provider messages. The broad native suite first exposed changed authentication+text and an uninitialized-history read; both existing regressions now pass.+This does not claim completion of the full migration.++TinyWallet #56 and TinyHosts #21 merged with green hosted checks and approval.+Their release workflows exposed two packaging failures: Wallet still selected+an implementation crate with an unpublished sibling dependency, and Hosts+shared native build-script caches across Ubuntu images. Owner follow-ups+[Wallet #60](https://github.com/tinyhumansai/tinywallet/pull/60) and+[Hosts #25](https://github.com/tinyhumansai/tinyhosts/pull/25) correct the release+workflows with regressions; both follow-ups have merged. Hosts v0.3.0 completed+in run 38087761940, and all 16 archive bytes match the checksum file and GitHub+asset digests. Its host adapter is isolated in `module-tinyhosts-host`.++Wallet v0.9.0 committed source `69938a6` but its original run could not push the+tag. The exact release commit was tagged successfully through the owner remote.+Recovery run 38088958171 skipped the bundle job after the skipped versioning+ancestor; [Wallet #61](https://github.com/tinyhumansai/tinywallet/pull/61) adds the+missing recovery condition and a regression. Run 38089224879 uses the release-tag+workflow to build the existing tag and completed successfully. All eleven+supported-platform archives and the checksum file match their GitHub asset+digests and checksum entries. The older tagged workflow does not produce the+five additional distro bundles; the next complete wallet-operations release+must use the current distro-inclusive workflow before host adoption. Wallet #61+merged with 35 passing hosted checks and approval.++The current base also contains unrelated source/artifact pin drift for computer,+search, docs, runtime/providers, MCP and Box. The module-pin gate reports this;+it is not treated as a passing check or hidden by new exceptions. The stale+Wallet and Channels pin exemptions were removed because those base pins now+agree. TinyRuntime changes remain excluded from this migration.diff --git a/scripts/ci/check-dep-sim-calibration.sh b/scripts/ci/check-dep-sim-calibration.shindex 219a201bca..f5c6acb977 100755--- a/scripts/ci/check-dep-sim-calibration.sh+++ b/scripts/ci/check-dep-sim-calibration.sh@@ -113,8 +113,9 @@ cd "$(dirname "$0")/../.."# 316 -> 317: storage-file adds the first-party file driver.# 317 -> 318: pre-core registry vocabulary adds the pure tinycomputer-bus.-# This matches the current `flows:340:318:2` entry in+# This matches the current `flows:335:313:2` entry in# scripts/kernel-floor.limits; its preceding entries are historical.-EXPECTED_NAMES=318+# 318 -> 313: connector implementation cut (-8) and explicit flows loader (+3).+EXPECTED_NAMES=313exec python3 scripts/dep-sim.py --cut-nothing --expect-names "${EXPECTED_NAMES}"diff --git a/scripts/ci/module-boundaries.json b/scripts/ci/module-boundaries.jsonindex 6c91e291d9..4f2f5eb3a6 100644--- a/scripts/ci/module-boundaries.json+++ b/scripts/ci/module-boundaries.json@@ -117,16 +117,6 @@"package": "tinyjuice","reason": "HTML extraction, REPL execution and schema vocabulary still call the implementation."},- {- "scope": "hosts",- "package": "tinyconnectors",- "reason": "Argument preparation, provider errors and trigger archives still call the implementation."- },- {- "scope": "hosts",- "package": "tinyconnectors-sync",- "reason": "Argument preparation, provider errors and trigger archives still call the implementation."- },{"scope": "hosts","package": "tinymcp",diff --git a/scripts/kernel-floor.limits b/scripts/kernel-floor.limitsindex b7bb5e5678..9fd03aaa40 100644--- a/scripts/kernel-floor.limits+++ b/scripts/kernel-floor.limits@@ -682,4 +682,10 @@# with dep-sim --cut-nothing on current upstream main.# Two existing native builds; no shedding claimed.-flows:340:318:2+# 335/313/2 2026-10-11 Connector processing and archive ownership now execute+# through the verified v0.14.0 module. Removing the linked+# implementation removes eight package names from this+# profile; making flows enable the loader adds three.+# Measured net change: five fewer packages/names, with+# the same two native builds. No binary-size claim.+flows:335:313:2diff --git a/vendor/tinyconnectors b/vendor/tinyconnectorsindex afccaa4c2c..8b35ca5e96 160000--- a/vendor/tinyconnectors+++ b/vendor/tinyconnectors@@ -1 +1 @@-Subproject commit afccaa4c2c31ee1e51359f7e8e98c9fe879ac417+Subproject commit 8b35ca5e96b824934b68dc2a7b136776dc17fece