Skip to content

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

chore: files changed Cargo.lock,crates/openhuman-embed/Cargo.toml,crates/openhuman-embed/tests/commo

Steven Enamakel2e2f319aa753
diff --git a/Cargo.lock b/Cargo.lock
index e4818958f3..56d5f5fca5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5601,6 +5601,7 @@ dependencies = [
"tinyagents-session",
"tinybus",
"tinyflows-bus",
+ "tinyflows-module",
"tinyinference-embeddings",
"tinyinference-llm 0.4.1",
"tinymcp-bus",
diff --git a/crates/openhuman-embed/Cargo.toml b/crates/openhuman-embed/Cargo.toml
index 4be2e7faa3..8164a8f591 100644
--- a/crates/openhuman-embed/Cargo.toml
+++ b/crates/openhuman-embed/Cargo.toml
@@ -104,6 +104,9 @@ dirs = "6"
# `cron_tests` builds core `CronJob`s, whose schedule types live in the
# tinyflows bus contract.
tinyflows-bus = { path = "../../vendor/tinyflows/crates/tinyflows-bus" }
+# The real tinyflows module, linked into the test binaries (never the product):
+# the scheduler runtime and job store that `cron` reaches over the bus.
+tinyflows-module = { path = "../../vendor/tinyflows/crates/tinyflows-module", features = ["static-link"] }
env_logger = "0.11"
# The profile tests and example implement a stub `BackendTransport`, whose
# `http_client` hands out a `reqwest::Client`. Same features as the core's, so
diff --git a/crates/openhuman-embed/tests/common/mod.rs b/crates/openhuman-embed/tests/common/mod.rs
index dc0b890cae..599b5c2aab 100644
--- a/crates/openhuman-embed/tests/common/mod.rs
+++ b/crates/openhuman-embed/tests/common/mod.rs
@@ -54,9 +54,28 @@ pub fn offline_config() -> Config {
config.agent.session_dual_write = false;
config.agent.session_shadow_reads = false;
config.default_temperature = 0.0;
+ link_tinyflows(&mut config);
config
}
+/// Serve the tinyflows module (scheduler runtime, job store, schedule maths)
+/// from the test binary instead of a downloaded release: the factory is
+/// registered with the core's `register_linked` seam and this config asks for
+/// it by a per-module override, so no other module changes source.
+pub fn link_tinyflows(config: &mut Config) {
+ use openhuman_core::config::schema::{ModuleOverride, ModuleSourceMode};
+ openhuman_embed::modules::register_linked("tinyflows", tinyflows_module::linked_module);
+ config.modules.allow_download = false;
+ config
+ .modules
+ .overrides
+ .retain(|existing| existing.id != "tinyflows");
+ config
+ .modules
+ .overrides
+ .push(ModuleOverride::with_source("tinyflows", ModuleSourceMode::Linked));
+}
+
/// The tuned runtime the harness documents as the caller's responsibility.
///
/// A default 2 MiB worker stack overflows on a turn that delegates to a