Skip to content

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

test(orchestration): widen Drain field visibility for migration tests

Steven Enamakel8d16ad3681a0
diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions_migration_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_completions_migration_tests.rs
index bfc8fed9f7..b030bfb5a4 100644
--- a/crates/openhuman-core/src/agent/orchestration/background_completions_migration_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/background_completions_migration_tests.rs
@@ -1,4 +1,5 @@
use super::*;
+use tinyagents_tasks::InMemoryCompletionStore;
/// A store whose writes always fail, like a full disk.
struct FullDisk(InMemoryCompletionStore);
diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery.rs
index deecc424bf..40903e4186 100644
--- a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs
+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery.rs
@@ -66,6 +66,8 @@ use crate::core::runtime::CoreContext;
#[cfg(test)]
pub(super) use delivery_events::drain_schedule;
pub(super) use delivery_events::{drain_schedule_in, owning_profiles};
+#[cfg(test)]
+pub(super) use delivery_events::Drain;
/// Coalesce completions landing within this window into one delivery turn.
const DEBOUNCE: Duration = Duration::from_secs(3);
diff --git a/crates/openhuman-core/src/agent/orchestration/delivery_events.rs b/crates/openhuman-core/src/agent/orchestration/delivery_events.rs
index 87a9f89480..09603cdab4 100644
--- a/crates/openhuman-core/src/agent/orchestration/delivery_events.rs
+++ b/crates/openhuman-core/src/agent/orchestration/delivery_events.rs
@@ -5,9 +5,9 @@ use super::*;
/// One drain an event asks for: the thread, how soon, and the context of the
/// profile that owns it (`None` on the desktop, where nothing is per profile).
pub(in crate::agent::orchestration) struct Drain {
- pub(super) owner: Option<Arc<CoreContext>>,
- pub(super) thread_id: String,
- pub(super) delay: Duration,
+ pub(in crate::agent::orchestration) owner: Option<Arc<CoreContext>>,
+ pub(in crate::agent::orchestration) thread_id: String,
+ pub(in crate::agent::orchestration) delay: Duration,
}
/// Which thread to drain, and after how long, for an event, outside any