The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(runtime): remove medulla domain and its integration
Steven Enamakela43228f6d1aa
diff --git a/crates/openhuman-core/src/core/runtime/builder.rs b/crates/openhuman-core/src/core/runtime/builder.rsindex d96d97bdfc..b4a4e6e239 100644--- a/crates/openhuman-core/src/core/runtime/builder.rs+++ b/crates/openhuman-core/src/core/runtime/builder.rs@@ -198,9 +198,6 @@ pub struct DomainSet {/// future backing controller would stay live. Fold the media-generation/// controller into this group when it lands.pub media: bool,- /// Medulla integration: cloud client, session runtime, chat store, and- /// authored harness workflows.- pub medulla: bool,/// Model inference: providers, routing, local engines, embeddings.pub inference: bool,/// External connectors (Composio, calendar, file storage, task sources).@@ -236,7 +233,6 @@ impl DomainSet {web3: true,voice: true,media: true,- medulla: true,inference: true,integrations: true,automation: true,@@ -265,7 +261,6 @@ impl DomainSet {web3: false,voice: false,media: false,- medulla: false,inference: false,integrations: false,automation: false,@@ -311,7 +306,6 @@ impl DomainSet {web3: false,voice: false,media: false,- medulla: true,inference: true,integrations: true,automation: true,@@ -346,7 +340,6 @@ impl DomainSet {web3: false,voice: false,media: false,- medulla: false,inference: false,integrations: false,automation: false,@@ -373,7 +366,6 @@ impl DomainSet {web3: false,voice: false,media: false,- medulla: false,inference: false,integrations: false,automation: false,@@ -400,7 +392,6 @@ impl DomainSet {DomainGroup::Web3 => self.web3,DomainGroup::Voice => self.voice,DomainGroup::Media => self.media,- DomainGroup::Medulla => self.medulla,DomainGroup::Inference => self.inference,DomainGroup::Integrations => self.integrations,DomainGroup::Automation => self.automation,@@ -435,7 +426,6 @@ impl DomainSet {web3: self.web3 && other.web3,voice: self.voice && other.voice,media: self.media && other.media,- medulla: self.medulla && other.medulla,inference: self.inference && other.inference,integrations: self.integrations && other.integrations,automation: self.automation && other.automation,diff --git a/crates/openhuman-core/src/core/runtime/builder_tests.rs b/crates/openhuman-core/src/core/runtime/builder_tests.rsindex 8af49c17b9..4d5360b80d 100644--- a/crates/openhuman-core/src/core/runtime/builder_tests.rs+++ b/crates/openhuman-core/src/core/runtime/builder_tests.rs@@ -18,7 +18,6 @@ fn domain_set_presets_have_expected_flags() {DomainGroup::Web3,DomainGroup::Voice,DomainGroup::Media,- DomainGroup::Medulla,DomainGroup::Integrations,DomainGroup::Platform,] {@@ -45,7 +44,6 @@ fn domain_set_presets_have_expected_flags() {DomainGroup::Web3,DomainGroup::Voice,DomainGroup::Media,- DomainGroup::Medulla,DomainGroup::Platform,] {assert!(!harness.allows(off), "harness() must NOT allow {off:?}");@@ -66,7 +64,6 @@ fn domain_set_presets_have_expected_flags() {DomainGroup::Web3,DomainGroup::Voice,DomainGroup::Media,- DomainGroup::Medulla,DomainGroup::Platform,] {assert!(!none.allows(group), "none() must NOT allow {group:?}");@@ -87,7 +84,6 @@ fn embedded_domain_set_enables_the_host_families() {DomainGroup::Threads,DomainGroup::Config,DomainGroup::Security,- DomainGroup::Medulla,DomainGroup::Platform,] {assert!(set.allows(on), "embedded() must allow {on:?}");@@ -120,7 +116,7 @@ fn embedded_keeps_channels_on_for_web_chat() {}#[test]-fn embedded_is_not_harness_plus_medulla() {+fn embedded_is_not_harness() {// Guards the most tempting future "simplification": deriving this// preset from harness(), which leaves the supporting Platform,// Channels, and Integrations families off.diff --git a/crates/openhuman-core/src/core/runtime/services.rs b/crates/openhuman-core/src/core/runtime/services.rsindex f4d7bb72b4..b5593d9f4c 100644--- a/crates/openhuman-core/src/core/runtime/services.rs+++ b/crates/openhuman-core/src/core/runtime/services.rs@@ -534,10 +534,6 @@ pub fn spawn_socket_auto_connect(// `Config` resolved above, which a workspace switch invalidates.// `set_workflow_bridge` re-advertises over a live socket by// design, so reinstall and skip only the handshake.- #[cfg(feature = "flows")]- if _flows_enabled {- crate::flows::medulla_bridge::install(std::sync::Arc::clone(&config));- }log::info!("[socket] Auto-connect: {api_url} already connected with this session — refreshed the workflow bridge, kept the socket");@@ -547,10 +543,6 @@ pub fn spawn_socket_auto_connect(log::error!("[socket] Auto-connect could not stop the prior connection: {e}");return;}- #[cfg(feature = "flows")]- if _flows_enabled {- crate::flows::medulla_bridge::install(std::sync::Arc::clone(&config));- }let provider =crate::platform::socket::token_provider::token_provider_from_config(config);if let Err(e) = socket_mgr.connect_with_provider(&api_url, provider).await {