Skip to content

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

docs(flows): update node contract docs to reference Catalog bus

Steven Enamakeleeedd5f77af2
diff --git a/crates/openhuman-core/src/flows/node_contracts.rs b/crates/openhuman-core/src/flows/node_contracts.rs
index 4bc4d3531f..1aa69b3d67 100644
--- a/crates/openhuman-core/src/flows/node_contracts.rs
+++ b/crates/openhuman-core/src/flows/node_contracts.rs
@@ -1,7 +1,7 @@
//! Host overlay on the tinyflows node-kind catalog (P1.2 / audit finding F2).
//!
-//! The portable, model-level contracts live in the tinyflows crate
-//! ([`tinyflows::catalog`]) — config fields, ports, examples, and the
+//! The portable, model-level contracts live behind TinyFlows' Catalog bus
+//! interface — config fields, ports, examples, and the
//! structural gotchas that are true of the DSL everywhere. This module is the
//! **thin host layer**: it takes those contracts and appends the facts only
//! *this* host knows — what a `tool_call` slug resolves to (a Composio action
@@ -153,8 +153,8 @@ fn apply_host_overlay(contract: NodeKindContract) -> NodeKindContract {
}
}
-/// Every node-kind contract with this host's overlay applied, in
-/// [`tinyflows::catalog::NODE_KINDS`] order.
+/// Every node-kind contract returned by Catalog.NodeKinds with this host's
+/// overlay applied, in the module's catalog order.
pub async fn all_node_kind_contracts(config: &crate::config::Config) -> Result<Vec<NodeKindContract>, String> {
let proxy = crate::modules::tinyflows::catalog_proxy(config).await?;
let contracts: Vec<NodeKindContract> = proxy
@@ -164,8 +164,8 @@ pub async fn all_node_kind_contracts(config: &crate::config::Config) -> Result<V
Ok(contracts.into_iter().map(apply_host_overlay).collect())
}
-/// The overlaid contract for one node kind, or `None` when `kind` is not one
-/// of [`tinyflows::catalog::NODE_KINDS`].
+/// The overlaid contract for one node kind, or `None` when the module catalog
+/// does not contain `kind`.
pub async fn node_kind_contract(config: &crate::config::Config, kind: &str) -> Result<Option<NodeKindContract>, String> {
Ok(all_node_kind_contracts(config)
.await?