Skip to content

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

fix(flows): correct tinyflows capability registration

Steven Enamakel8d5fc471e701
diff --git a/crates/openhuman-core/src/agent/harness/builtin_definitions_tests.rs b/crates/openhuman-core/src/agent/harness/builtin_definitions_tests.rs
index 1de6fb175c..87ef7d7e79 100644
--- a/crates/openhuman-core/src/agent/harness/builtin_definitions_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/builtin_definitions_tests.rs
@@ -96,6 +96,11 @@ fn expected_builtin_ids_are_present() {
"task_manager_agent",
"critic",
"summarizer",
+ // Gated with `flows` (#4797) — absent from a slim build.
+ #[cfg(feature = "flows")]
+ "workflow_builder",
+ #[cfg(feature = "flows")]
+ "flow_discovery",
] {
assert!(ids.contains(&expected.to_string()), "missing {expected}");
}
@@ -111,13 +116,4 @@ fn expected_builtin_ids_are_present() {
"v1 memory agent {removed} must stay removed"
);
}
- for expected in [
- // Gated with `flows` (#4797) — absent from a slim build.
- #[cfg(feature = "flows")]
- "workflow_builder",
- #[cfg(feature = "flows")]
- "flow_discovery",
- ] {
- assert!(ids.contains(&expected.to_string()), "missing {expected}");
- }
}
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs
index 5baa4d359a..0244e907c0 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs
@@ -592,11 +592,9 @@ impl ToolInvoker for OpenHumanTools {
///
/// `state_namespace` scopes the [`tinyflows_sqlite::flows::SqliteStateStore`] KV so two saved flows that
/// use the same state key never read or overwrite each other — callers pass a
-/// per-flow namespace (e.g. `"flow:<id>"`). Note this is **not** the same
-/// namespace `OpenHumanMemory` writes flow-scoped memory under — that one is
-/// derived independently from the run's trusted origin via
-/// `flows::flow_namespace`, so the two never need to agree on separator
-/// conventions.
+/// per-flow namespace (e.g. `"flow:<id>"`). This KV namespace is unrelated to
+/// flow-scoped memory: `OpenHumanMemory` tags memory items with
+/// `flows::flow_tag`, derived independently from the run's trusted origin.
pub fn build_capabilities(config: Arc<Config>, state_namespace: impl Into<String>) -> Capabilities {
let security = Arc::new(SecurityPolicy::from_config(
&config.autonomy,
diff --git a/crates/openhuman-core/src/flows/tinyflows/mod.rs b/crates/openhuman-core/src/flows/tinyflows/mod.rs
index a576aaddb9..95ce70fc2b 100644
--- a/crates/openhuman-core/src/flows/tinyflows/mod.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/mod.rs
@@ -18,11 +18,6 @@
pub mod caps;
pub mod langfuse_export;
pub mod memory_adapter;
-/// End-to-end coverage for the `memory` node through the REAL engine + real
-/// `OpenHumanMemory` adapter + real store — see the module doc there for why
-/// this lives apart from `tests.rs`'s general capability-seam smoke tests.
-#[cfg(test)]
-mod memory_node_e2e_tests;
pub mod observability;
#[cfg(test)]
#[path = "tinyflows_tests.rs"]