Skip to content

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

feat(tokenjuice_host): use shared constants for ML host name and path

Steven Enamakel793baaab463c
diff --git a/src/openhuman/modules/tokenjuice_host.rs b/src/openhuman/modules/tokenjuice_host.rs
index 32fc93f60f..e04294bca8 100644
--- a/src/openhuman/modules/tokenjuice_host.rs
+++ b/src/openhuman/modules/tokenjuice_host.rs
@@ -2,8 +2,12 @@
use tinybus::ObjectPath;
-const NAME: &str = "ai.tinyhumans.tinyjuice.MlHost";
-const PATH: &str = "/ai/tinyhumans/tinyjuice/MlHost";
+// The module calls *out* to this one: the ML plain-text compressor is the
+// host's, not the module's. The names come from the contract so the two sides
+// cannot drift — a mismatch here is a `NameHasNoOwner` the module swallows by
+// falling back to a compressor that needs no ML runtime, which is a silent
+// loss of compression rather than a failure anyone sees.
+use tinyjuice_bus::names::{ML_HOST_NAME as NAME, ML_HOST_PATH as PATH};
#[derive(Clone)]
struct MlHost;