Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(composio): handle missing provider config in tool registration

Steven Enamakel44f4b03ebf3f
diff --git a/crates/openhuman-core/src/core/runtime/services.rs b/crates/openhuman-core/src/core/runtime/services.rs
index 3fb8489c52..820bbf2175 100644
--- a/crates/openhuman-core/src/core/runtime/services.rs
+++ b/crates/openhuman-core/src/core/runtime/services.rs
@@ -318,16 +318,11 @@ pub fn start_bootstrap_jobs(services: ServiceSet, config: &Config) {
// loading the module gets TWO pairs of loops over one store, and neither
// can see the other.
if plan.composio_integration_sync {
- log::debug!("[runtime.bootstrap] starting composio source reconcile");
- tokio::spawn(async {
- log::debug!("[runtime.bootstrap] composio source reconcile started");
- crate::memory::sources::reconcile::ensure_composio_sources().await;
- log::debug!("[runtime.bootstrap] composio source reconcile completed");
- });
- } else {
log::debug!(
- "[runtime.bootstrap] composio integration sync + source reconcile disabled by ServiceSet"
+ "[runtime.bootstrap] composio integrations enabled; memory syncs run on memory source schedules"
);
+ } else {
+ log::debug!("[runtime.bootstrap] composio integrations disabled by ServiceSet");
}
// Memory sync — workspace-kind memory sources (GitHub repos, folders, RSS,
diff --git a/crates/openhuman-core/src/integrations/composio/mod.rs b/crates/openhuman-core/src/integrations/composio/mod.rs
index 28dc209426..60199b1d0d 100644
--- a/crates/openhuman-core/src/integrations/composio/mod.rs
+++ b/crates/openhuman-core/src/integrations/composio/mod.rs
@@ -20,7 +20,14 @@
//!
//! - **Event bus** (`bus.rs`) — `ComposioTriggerSubscriber` listens for
//! [`DomainEvent::ComposioTriggerReceived`] events published by the
-//! socket transport when the backend emits `composio:trigger`.
+//! socket transport when the backend emits `composio:trigger`; the
+//! connection-created and config-changed subscribers keep the
+//! integrations cache fresh.
+//!
+//! - **Memory sync** (`ops::sync`) — `composio_sync` / `run_sync_pass` read a
+//! connection through the connector module and store the records via
+//! `memory::sources::composio`. Scheduling is memory's (v2 source
+//! schedules); this domain has no periodic loop.
//!
//! ## Socket.IO trigger flow
//!
@@ -44,12 +51,12 @@ pub mod contract;
pub mod contract_gate;
pub(crate) mod direct_auth;
pub mod execute_dispatch;
+pub(crate) mod file_store;
pub mod googlecalendar_args;
pub mod identity;
pub mod identity_store;
pub mod module_client;
pub mod ops;
-pub mod periodic;
pub mod profile_md;
pub mod providers;
pub mod schemas;
@@ -59,9 +66,9 @@ pub mod types;
pub use crate::agent::prompts::types::ConnectedIntegration;
pub use crate::integrations::composio::providers::{ProviderUserProfile, SyncOutcome, SyncReason};
-pub use crate::memory::sync::composio::bus::{
+pub use bus::{
register_composio_trigger_subscriber, ComposioConfigChangedSubscriber,
- ComposioTriggerSubscriber,
+ ComposioConnectionCreatedSubscriber, ComposioTriggerSubscriber,
};
pub use action_tool::ComposioActionTool;
pub use identity::connection_identity;
@@ -70,7 +77,6 @@ pub use ops::{
fetch_connected_integrations, fetch_connected_integrations_status,
invalidate_connected_integrations_cache, FetchConnectedIntegrationsStatus,
};
-pub use periodic::{record_sync_success, start_periodic_sync};
pub use schemas::{
all_controller_schemas as all_composio_controller_schemas,
all_registered_controllers as all_composio_registered_controllers,
diff --git a/crates/openhuman-core/src/integrations/composio/providers/mod.rs b/crates/openhuman-core/src/integrations/composio/providers/mod.rs
index b4eb12cf56..051bef7111 100644
--- a/crates/openhuman-core/src/integrations/composio/providers/mod.rs
+++ b/crates/openhuman-core/src/integrations/composio/providers/mod.rs
@@ -26,11 +26,7 @@
//! was pure indirection), or
//! - calls the `tinyconnectors` module directly through
//! [`super::module_client`] (profile fetch, action execution, sync —
-//! see `ops::providers_ops::run_sync_pass` and `ops::execute`).
-//!
-//! `slack` stays re-exported below: it is this host's own RPC layer over
-//! the connector module (`memory::sync::composio::providers::slack`), not
-//! an engine provider.
+//! see `ops::sync::run_sync_pass` and `ops::execute`).
// ── The contract half ───────────────────────────────────────────────────────
pub use crate::integrations::composio::contract::catalogs::{
@@ -49,6 +45,3 @@ pub use crate::integrations::composio::contract::{
render_connected_identities_section, ConnectedIdentity, ProviderUserProfile, SyncOutcome,
SyncReason,
};
-
-// ── This host's own RPC layer over the connector module ────────────────────
-pub use crate::memory::sync::composio::providers::slack;
diff --git a/crates/openhuman-core/src/tools/toolpacks/registry.rs b/crates/openhuman-core/src/tools/toolpacks/registry.rs
index 9a39dc93f7..bfbb99dab7 100644
--- a/crates/openhuman-core/src/tools/toolpacks/registry.rs
+++ b/crates/openhuman-core/src/tools/toolpacks/registry.rs
@@ -343,20 +343,6 @@ pub const PACKS: &[ToolPack] = &[
owners: &[],
guide: include_str!("guides/scheduling.md"),
},
- ToolPack {
- id: "profile",
- summary: "The user's profile: record preferences, edit persona and people graph.",
- // The delegate and the two raw tools belong together because they are
- // one question from the model's side — "remember this about the user" —
- // split only by how much editing it needs.
- tools: &[
- "save_preference",
- "remember_preference",
- "manage_profile_memory",
- ],
- owners: &["profile_memory_agent"],
- guide: "",
- },
ToolPack {
id: "media",
summary: "Images and clips: generate, or read (describe, OCR, charts, UI elements).",
@@ -385,12 +371,8 @@ pub const PACKS: &[ToolPack] = &[
id: "goals",
// Everything about goals EXCEPT closing one.
//
- // Two different surfaces live here, and the pack is the seam that lets
- // the model find either: `goals` is the user's durable long-term
- // objectives held in memory, while `goal_get` / `goal_set` are the
- // agent-owned completion contract for one conversation thread and are
- // assigned to `goals_agent`. Long-term goals remain user-reachable
- // through `memory_goals.*`.
+ // `goal_get` / `goal_set` are the agent-owned completion contract for
+ // one conversation thread.
//
// `goal_complete` is deliberately NOT a member. Closing a goal is the
// one goal operation an agent reaches for reactively, at the end of
@@ -398,9 +380,9 @@ pub const PACKS: &[ToolPack] = &[
// moment buys nothing: the alternative to a visible `goal_complete` is
// an objective that silently stays open and keeps driving autonomous
// continuation. Same reasoning as `DELIBERATELY_UNPACKED_FLEET_TOOLS`.
- summary: "Long-term goals and this thread's objective: read, add, edit.",
- tools: &["goals", "goal_get", "goal_set"],
- owners: &["goals_agent"],
+ summary: "This thread's objective: read and set it.",
+ tools: &["goal_get", "goal_set"],
+ owners: &[],
guide: "",
},
ToolPack {