Skip to content

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

test(core): account for operator domain group in registry tests

Steven Enamakel33d0839899e6
diff --git a/crates/openhuman-core/src/core/all_registry_tests.rs b/crates/openhuman-core/src/core/all_registry_tests.rs
index d28a5aa6cc..180ad0d7f1 100644
--- a/crates/openhuman-core/src/core/all_registry_tests.rs
+++ b/crates/openhuman-core/src/core/all_registry_tests.rs
@@ -30,8 +30,11 @@ async fn full_registration_is_byte_identical() {
.iter()
.map(|c| c.rpc_method_name())
.collect::<Vec<_>>();
+ // `full()` is every family a single-user core has; the SaaS operator
+ // plane is the one family it deliberately leaves out.
let raw = view
.iter()
+ .filter(|g| g.group != DomainGroup::Operator)
.map(|g| g.controller.rpc_method_name())
.collect::<Vec<_>>();
(filtered, raw)
diff --git a/crates/openhuman-core/src/core/all_tests.rs b/crates/openhuman-core/src/core/all_tests.rs
index b68ceaf08e..235cd486ea 100644
--- a/crates/openhuman-core/src/core/all_tests.rs
+++ b/crates/openhuman-core/src/core/all_tests.rs
@@ -1489,6 +1489,9 @@ fn every_domain_group_is_accounted_for_in_store_init_plan() {
// `init_stores` to stand up.
DomainGroup::Modules,
DomainGroup::Platform,
+ // User agents live on disk under the SaaS root and are opened by the
+ // agent host on demand; nothing is stood up at boot.
+ DomainGroup::Operator,
];
for g in DomainGroup::ALL {
@@ -1542,6 +1545,8 @@ fn every_domain_group_is_accounted_for_in_subscriber_plan() {
// Modules run on their own in-process broker, so they cannot publish a
// `DomainEvent` and there is nothing on the core bus to subscribe to.
DomainGroup::Modules,
+ // The operator plane only answers provisioning calls.
+ DomainGroup::Operator,
];
for g in DomainGroup::ALL {