Skip to content

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

chore(composio): strip stale TinyMemory v1 references from catalogs and contract docs

Steven Enamakelb0641519708c
diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/README.md b/crates/openhuman-core/src/integrations/composio/contract/catalogs/README.md
index b4bb797499..80d72df7b9 100644
--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/README.md
+++ b/crates/openhuman-core/src/integrations/composio/contract/catalogs/README.md
@@ -1,89 +1,15 @@
-# composio::catalogs
+# `integrations::composio::contract::catalogs`
-The curated Composio tool catalogs, and the lookups over them. Composio
-publishes 60+ actions per toolkit; most are noise for an agent's planning
-loop. Each toolkit that has one gets a hand-curated `&'static [CuratedTool]`
-slice that pares the surface down to a useful subset and tags every action
-with a [`ToolScope`](../scopes.rs), so a user's scope preference can gate
-execution per action.
+Curated per-toolkit Composio action catalogs: which actions an agent may see,
+how each is scoped (read / write / admin), the toolkit descriptions shown to
+the model, and the per-toolkit sync-interval defaults for toolkits that have a
+native provider.
-Moved here from the engine crate (`tinymemory-core`) by OpenHuman#5560: the
-catalogs are `&'static str` action slugs with no dependency of any kind, and
-the *host* is their heaviest reader (it filters the agent's visible tool
-list, renders unlock hints, and decides which connected toolkits get the
-"agent-ready" badge). While they lived in the engine crate, every one of
-those host reads was a compile-time link to `tinymemory-core`; now a host can
-read them by depending on `tinymemory-bus` (or `tinymemory-api`) alone.
+These tables used to live in TinyMemory's v1 bus contract. They are host data
+about Composio, not memory, so they moved here with memory v2.
-## Responsibilities
-
-- Hold one curated `&'static [CuratedTool]` table per catalogued toolkit,
- grouped by category (see Key files).
-- Resolve a toolkit slug — including its known aliases and casing — to its
- catalog via [`catalog_for_toolkit`].
-- Answer "should this action slug be visible to the agent, given a loaded
- user scope preference?" via [`is_action_visible_with_pref`], falling back
- to [`classify_unknown`] for toolkits with no curated catalog.
-- Answer "what scope does this slug require?" via [`curated_scope_for`].
-- Provide a short human-readable description of a toolkit for the UI via
- [`toolkit_description`] (`descriptions.rs`).
-- Track which catalogued toolkits have a native `ComposioProvider` in the
- engine crate ([`NATIVE_PROVIDERS`]) and how often each one syncs
- ([`native_provider_sync_interval_secs`]), without depending on the engine
- crate's provider trait or registry.
-
-## Key files
-
-| File | Role |
-| --- | --- |
-| `mod.rs` | Module docs, category re-exports, `CAPABILITY_TOOLKITS`, `catalog_for_toolkit`, `is_action_visible_with_pref`, `curated_scope_for`, `toolkit_has_scope`, `NATIVE_PROVIDERS`, sync-interval helpers. |
-| `descriptions.rs` | `toolkit_description` — one short sentence per toolkit slug (including aliases), generic fallback for anything uncatalogued. |
-| `business.rs`, `google.rs`, `messaging.rs`, `microsoft.rs`, `productivity.rs`, `social_media.rs` | The category-grouped `CuratedTool` tables (Shopify/Stripe/HubSpot/…, Google apps, Slack/Discord/…, OneDrive/Excel, Outlook/Linear/Jira/…, Twitter/Spotify/YouTube). |
-| `github.rs`, `gmail.rs`, `notion.rs`, `linear.rs`, `clickup.rs` | Provider-colocated catalogs for the five toolkits with a native `ComposioProvider` in the engine crate. |
-| `mod_tests.rs`, `microsoft_tests.rs`, `productivity_tests.rs` | Module-local unit tests, wired from the bottom of `mod.rs` / the relevant category file with `#[cfg(test)] #[path = "…_tests.rs"] mod tests;`. |
-
-## Public surface
-
-Re-exported from `mod.rs` (and re-exported again from `tinymemory-api::composio::catalogs`,
-and from `tinymemory-core::sync::composio::providers::catalogs` for the historical flat
-path — plus `tinymemory-core`'s `providers::catalogs_compat` module, which restores the
-six per-category module names — `catalogs_business`, `catalogs_google`, … — that predate
-this move):
-
-- `catalog_for_toolkit`, `is_action_visible_with_pref`, `curated_scope_for`, `toolkit_has_scope`, `has_native_provider`
-- `CAPABILITY_TOOLKITS`, `NATIVE_PROVIDERS`
-- `toolkit_description`
-- `sync_interval_env_var`, `parse_sync_interval_override`, `native_provider_sync_interval_secs`
-- every category module (`business`, `google`, `messaging`, `microsoft`, `productivity`,
- `social_media`) and every provider-colocated module (`gmail`, `notion`, `github`,
- `linear`, `clickup`), each exporting its `&'static [CuratedTool]` constants.
-
-## Dependencies
-
-None beyond `serde`/`std` (via [`CuratedTool`]/[`ToolScope`] in `../scopes.rs`). This
-module must stay dependency-light — see the guard command in
-`tinymemory-bus/Cargo.toml`'s doc comment (`cargo tree -p tinymemory-bus -e normal,build
---prefix none | grep -Ei 'rusqlite|libsqlite|git2|reqwest|regex|tokio|tinybus'`, expect no
-match) before adding anything here.
-
-## Used by
-
-- `tinymemory-api::host::composio::capability_matrix` — the static integrations-overview
- RPC surface.
-- `tinymemory-core::sync::composio::providers` — re-exports every symbol above at its
- historical path so in-engine callers (trigger dispatch, periodic sync, the six native
- `ComposioProvider` impls) keep resolving unchanged.
-- The OpenHuman host — filters the agent's visible tool list and renders "agent-ready" /
- unlock-hint UI without linking `tinymemory-core`.
-
-## Notes / gotchas
-
-- `get_provider(..).curated_tools()` (the engine's provider-registry hop) is deliberately
- **not** consulted here. Every native provider's `curated_tools()` was verified to return
- exactly the slice `catalog_for_toolkit` returns for the same toolkit, so the hop was pure
- indirection — see the "`get_provider(..).curated_tools()` is not a separate source"
- section in `mod.rs`'s module docs.
-- `resolve_sync_interval_secs` (engine-side) logs via `tracing::warn!` on a malformed
- interval override; `native_provider_sync_interval_secs` here applies the identical rule
- (`parse_sync_interval_override`) silently, because an observability read should not emit
- warnings. Do not add `tracing` to this crate to "fix" that — it is intentional.
+Entry points (re-exported from `contract::mod`): `catalog_for_toolkit`,
+`curated_scope_for`, `has_native_provider`, `is_action_visible_with_pref`,
+`native_provider_sync_interval_secs`, `parse_sync_interval_override`,
+`sync_interval_env_var`, `toolkit_description`, `toolkit_has_scope`,
+`toolkit_result_notes`, `CAPABILITY_TOOLKITS`, `NATIVE_PROVIDERS`.
diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/microsoft.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/microsoft.rs
index 6a698d3f57..d71e416e60 100644
--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/microsoft.rs
+++ b/crates/openhuman-core/src/integrations/composio/contract/catalogs/microsoft.rs
@@ -2,7 +2,7 @@
//! `OneDrive` (files) and Excel (spreadsheets).
//!
//! These toolkits are catalog-only: they don't ship a native
-//! `ComposioProvider` implementation (in `tinymemory-core`), so they have no
+//! `ComposioProvider` implementation, so they have no
//! user-profile fetch, no initial/periodic sync, no trigger webhooks,
//! and no memory ingestion. Connecting them via the UI lets the agent
//! invoke the listed actions through Composio's API, but their data
diff --git a/crates/openhuman-core/src/integrations/composio/contract/catalogs/productivity.rs b/crates/openhuman-core/src/integrations/composio/contract/catalogs/productivity.rs
index c832d0e6b1..b6582aec13 100644
--- a/crates/openhuman-core/src/integrations/composio/contract/catalogs/productivity.rs
+++ b/crates/openhuman-core/src/integrations/composio/contract/catalogs/productivity.rs
@@ -2,7 +2,7 @@
//! Trello, Asana, Dropbox, Todoist.
//!
//! Catalog-only toolkits (Linear, Jira, Trello, Asana, Dropbox,
-//! Todoist) don't ship a native `ComposioProvider` (in `tinymemory-core`) — they
+//! Todoist) don't ship a native `ComposioProvider` — they
//! have no user-profile fetch, no initial/periodic sync, no trigger
//! webhooks, and no memory ingestion. The agent invokes their actions
//! through Composio's API, but their data is not pre-ingested into
diff --git a/crates/openhuman-core/src/integrations/composio/contract/mod.rs b/crates/openhuman-core/src/integrations/composio/contract/mod.rs
index f3dfe4486a..e15396de23 100644
--- a/crates/openhuman-core/src/integrations/composio/contract/mod.rs
+++ b/crates/openhuman-core/src/integrations/composio/contract/mod.rs
@@ -1,55 +1,12 @@
-//! The Composio sync vocabulary: what a provider run produces, what it
-//! remembers between runs, and what a user is willing to let it do.
-//!
-//! Composio is the connector layer the memory stack syncs through — Gmail,
-//! Slack, Notion, GitHub, Linear, ClickUp and the catalog-only toolkits behind
-//! them. Each toolkit's *provider* fetches a profile, pulls items, normalises
-//! tasks and reports what it did. This module owns the shapes those runs
-//! exchange; the providers themselves, the HTTP client, the registry and the
-//! persistence live in the engine crate, where their dependencies belong.
-//!
-//! # Why the vocabulary is here and the providers are not
-//!
-//! The split is the same one [`crate::goals`] makes, and for the same reason.
-//! A host reads these shapes: it renders a [`runs::SyncOutcome`] in the sync
-//! status panel, files a [`tasks::NormalizedTask`] onto the agent's todo board,
-//! gates a tool call on a [`scopes::UserScopePref`], and reports a
-//! [`state::SyncState`]'s remaining daily budget. It does not run a provider —
-//! the module does that, behind the bus. So the *values* have to be nameable
-//! from the contract the host already links, while the code that produces them
-//! must not be: a provider needs `reqwest`, an async runtime and the chunk
-//! store, and none of those may enter this crate.
-//!
-//! The alternative — a parallel set of host-side structs — is the failure this
-//! whole crate exists to prevent. A `SyncOutcome` decoded from the module would
-//! not be *the* `SyncOutcome`, and every field added on one side would be a
-//! silent decode gap on the other with nothing to catch it. One definition,
-//! here, at the bottom.
-//!
-//! # What stayed in the engine crate, and why
-//!
-//! Read this before concluding something is missing:
-//!
-//! - **`ProviderContext`** — holds an `Arc<Config>` and dispatches Composio
-//! actions through the host seam. Behaviour, not a payload.
-//! - **`SyncStateStore`** and [`state::SyncState`]'s `load` / `save` — a
-//! key/value I/O seam and its two async methods. This crate publishes no
-//! traits (see [`crate`]); the engine crate carries the trait and offers the
-//! two methods as an extension trait over the type defined here.
-//! - **`user_scopes::{load, save}`** — the same, one namespace over: the
-//! preference *shape* is here, reading and writing it is not.
-//! - **`profile::{persist_provider_profile, load_connected_identities,
-//! delete_connected_identity_facets, is_self_identity}`** — every one of
-//! them reaches the profile facet store.
-//! - **`profile_md`** — rewrites managed blocks in the host's `PROFILE.md`.
-//! Filesystem mutation against a host-owned file; it is host policy that
-//! happens to be written in the memory stack, not a wire type.
-//! - **the provider registry** — a process-global `HashMap` of trait objects
-//! that reach `reqwest` and the chunk store.
-//!
-//! The curated catalogs were on that list and are **not** any more: they are
-//! several thousand `&'static str` action slugs with no dependency at all, and
-//! the host is their heaviest reader. See [`catalogs`] for why they moved.
+//! The Composio vocabulary the host's integration code shares: toolkit
+//! catalogs (curated action lists and descriptions), connected-identity
+//! profiles, per-toolkit user scope preferences, provider sync bookkeeping and
+//! the normalised task shape.
+//!
+//! These types used to be part of TinyMemory's v1 bus contract, which carried
+//! them only because the memory engine ran Composio syncs. Memory v2 does not,
+//! so the shapes live here, beside the integration that produces and reads
+//! them. They are plain data and pure functions: no HTTP, no persistence.
pub mod catalogs;
pub mod profile;