Skip to content

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

refactor: keep registry layout within limit

Steven Enamakel917480478abc
diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rs
index f8b33d2ba2..16639a76ce 100644
--- a/crates/openhuman-core/src/core/all.rs
+++ b/crates/openhuman-core/src/core/all.rs
@@ -906,18 +906,12 @@ fn build_internal_only_controllers() -> Vec<GroupedController> {
controllers
}
-/// Returns a vector of all currently registered controllers.
-///
-/// Filtered by the ambient [`crate::core::runtime::DomainSet`] (#4796): a
-/// controller whose [`DomainGroup`] is disabled under the active context is
-/// omitted. With no active context, or under `DomainSet::full()`, this returns
-/// the complete set (byte-identical to pre-#4796).
+/// Returns registered controllers filtered by the ambient [`crate::core::runtime::DomainSet`].
pub fn all_registered_controllers() -> Vec<RegisteredController> {
let view = registry_view();
registered_controllers(&view)
}
-/// Apply the ambient domain filter to a stable registry snapshot.
fn registered_controllers(view: &RegistryView) -> Vec<RegisteredController> {
let found = view
.iter()
diff --git a/scripts/ci/check-openhuman-rust-layout.mjs b/scripts/ci/check-openhuman-rust-layout.mjs
index ae041f30b4..c9ffc214a2 100644
--- a/scripts/ci/check-openhuman-rust-layout.mjs
+++ b/scripts/ci/check-openhuman-rust-layout.mjs
@@ -52,7 +52,7 @@ const LEGACY_LIMIT_ENTRIES = [
// their current sizes while follow-up work separates their test concerns.
// `core/` was pruned from the line limit by name until these pins; its
// oversized files are pinned at the size they had when enforcement began.
- ["crates/openhuman-core/src/core/all.rs", 1494],
+ ["crates/openhuman-core/src/core/all.rs", 1493],
["crates/openhuman-core/src/core/all_tests.rs", 1635],
["crates/openhuman-core/src/core/events.rs", 1808],
["crates/openhuman-core/src/core/events_tests.rs", 1003],