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
feat(runtime): enable operator plane in saas preset
Steven Enamakel9d923bc9d671
diff --git a/crates/openhuman-core/src/core/runtime/boot_guard.rs b/crates/openhuman-core/src/core/runtime/boot_guard.rsindex 5aff64def1..4056d5a99f 100644--- a/crates/openhuman-core/src/core/runtime/boot_guard.rs+++ b/crates/openhuman-core/src/core/runtime/boot_guard.rs@@ -296,7 +296,7 @@ fn service_flags(s: &ServiceSet) -> [(&'static str, bool); 12] {]}-fn domain_flags(d: &DomainSet) -> [(&'static str, bool); 20] {+fn domain_flags(d: &DomainSet) -> [(&'static str, bool); 21] {[("agent", d.agent),("memory", d.memory),@@ -318,6 +318,7 @@ fn domain_flags(d: &DomainSet) -> [(&'static str, bool); 20] {("hosted", d.hosted),("modules", d.modules),("platform", d.platform),+ ("operator", d.operator),]}diff --git a/crates/openhuman-core/src/core/runtime/saas.rs b/crates/openhuman-core/src/core/runtime/saas.rsindex 5c258ed206..9ffb121832 100644--- a/crates/openhuman-core/src/core/runtime/saas.rs+++ b/crates/openhuman-core/src/core/runtime/saas.rs@@ -8,9 +8,11 @@//! [`boot_guard`](super::boot_guard) finds nothing unsafe.//!//! The per-user surface lands phase by phase. Until then the presets are-//! closed: [`DomainSet::saas`] enables no domain family, so a SaaS core-//! answers only its always-on infrastructure (`core.*`, `/health`, `/schema`)-//! and refuses every domain method as unknown.+//! closed: [`DomainSet::saas`] enables only the operator plane+//! (`user_agents.*`), so a SaaS core answers its always-on infrastructure+//! (`core.*`, `/health`, `/schema`) and provisioning, and refuses every user+//! domain method as unknown. [`build`] installs the process's+//! [`AgentHost`](crate::user_agents::AgentHost).use std::path::{Path, PathBuf};use std::sync::Arc;@@ -194,7 +196,12 @@ pub async fn build(if let Some(port) = port {builder = builder.port(port);}- builder.build().await+ let runtime = builder.build().await?;+ crate::user_agents::host::install(Arc::new(crate::user_agents::AgentHost::new(+ config,+ runtime.context().clone(),+ )));+ Ok(runtime)}#[cfg(test)]diff --git a/crates/openhuman-core/src/core/runtime/saas_tests.rs b/crates/openhuman-core/src/core/runtime/saas_tests.rsindex 10a7f936f9..c0b926a021 100644--- a/crates/openhuman-core/src/core/runtime/saas_tests.rs+++ b/crates/openhuman-core/src/core/runtime/saas_tests.rs@@ -80,7 +80,14 @@ fn the_operator_plane_lives_under_the_root() {#[test]fn the_saas_presets_are_closed() {- assert_eq!(DomainSet::saas(), DomainSet::none());+ assert_eq!(+ DomainSet::saas(),+ DomainSet {+ operator: true,+ ..DomainSet::none()+ },+ "only the operator plane until user families are isolated"+ );let services = ServiceSet::saas();assert!(services.rpc_http);assert_eq!(