Skip to content

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

test(embed): run the tests that were gated behind the testkit feature

M3gA-Mindbca5b6fcf410
diff --git a/crates/openhuman-embed/src/runtime/run_tests.rs b/crates/openhuman-embed/src/runtime/run_tests.rs
index a61f9f5f70..dee5848149 100644
--- a/crates/openhuman-embed/src/runtime/run_tests.rs
+++ b/crates/openhuman-embed/src/runtime/run_tests.rs
@@ -53,9 +53,8 @@ fn the_launcher_takes_the_handed_over_builder_once() {
}
#[test]
-#[cfg(feature = "testkit")]
fn split_for_cli_keeps_the_session_store_for_a_stateless_workspace() {
- use crate::session_store::InMemorySessionStores;
+ use tinyagents_session::port::InMemorySessionStores;
let store: Arc<dyn SessionStoreProvider> = Arc::new(InMemorySessionStores::new());
let builder = configured()
.workspace(crate::Workspace::Stateless)
diff --git a/crates/openhuman-embed/tests/cron_host_delivery.rs b/crates/openhuman-embed/tests/cron_host_delivery.rs
index b4b435464b..cd9233ab15 100644
--- a/crates/openhuman-embed/tests/cron_host_delivery.rs
+++ b/crates/openhuman-embed/tests/cron_host_delivery.rs
@@ -1,5 +1,3 @@
-#![cfg(feature = "testkit")]
-
//! A library agent's scheduled reply reaches the host's `CronDelivery`.
//!
//! The agent makes a one-shot job through the `cron` tool in a chat turn on a
@@ -17,8 +15,9 @@ use std::time::Duration;
use common::{offline_config, runtime, scripted_provider, stub_backend, tool_call_completion};
use openhuman_embed::{
Access, AgentDefinitionSpec, AgentSpec, AgentTurnOrigin, CronDelivery, CronReply,
- HostTurnTools, InMemorySessionStores, JobOrigin, Runtime, ServiceSet, ToolScopeSpec, Workspace,
+ HostTurnTools, JobOrigin, Runtime, ServiceSet, ToolScopeSpec, Workspace,
};
+use tinyagents_session::port::InMemorySessionStores;
#[derive(Default)]
struct Recorder(Mutex<Vec<CronReply>>);
diff --git a/crates/openhuman-embed/tests/named_admitted_tools.rs b/crates/openhuman-embed/tests/named_admitted_tools.rs
index e4df2ce37a..0d6ca3bc6f 100644
--- a/crates/openhuman-embed/tests/named_admitted_tools.rs
+++ b/crates/openhuman-embed/tests/named_admitted_tools.rs
@@ -1,5 +1,3 @@
-#![cfg(feature = "testkit")]
-
//! An embedded agent on the harness domains gets the scheduler and clock tools
//! it names, although their domain family is off, and nothing else from that
//! family: not the shell or file tools, even when it names them too. `cron` is
@@ -17,9 +15,10 @@ use common::{
chat_requests, offline_config, runtime, stub_backend, tool_call_completion, tool_names,
};
use openhuman_embed::{
- AgentDefinitionSpec, AgentSpec, DomainSet, GroupMode, HostTurnTools, InMemorySessionStores,
- Runtime, ToolGroups, ToolScopeSpec, Workspace,
+ AgentDefinitionSpec, AgentSpec, DomainSet, GroupMode, HostTurnTools, Runtime, ToolGroups,
+ ToolScopeSpec, Workspace,
};
+use tinyagents_session::port::InMemorySessionStores;
#[test]
fn a_named_scope_admits_the_clock_and_scheduler_but_never_the_shell() {
diff --git a/crates/openhuman-embed/tests/profile_refused_tool_generation.rs b/crates/openhuman-embed/tests/profile_refused_tool_generation.rs
index 57688eef1f..5c06aab873 100644
--- a/crates/openhuman-embed/tests/profile_refused_tool_generation.rs
+++ b/crates/openhuman-embed/tests/profile_refused_tool_generation.rs
@@ -1,5 +1,3 @@
-#![cfg(feature = "testkit")]
-
//! A refused tool call must not rewrite an earlier turn's result. Providers
//! reuse tool-call ids across turns (`call_1` again), so a failure in this turn
//! used to mark the earlier turn's successful `cron` result as failed; the
@@ -15,10 +13,11 @@ use std::sync::Arc;
use common::{chat_completion, chat_requests, runtime_without_master_key, PointedInference};
use openhuman_embed::seams::ToolHookDecision;
use openhuman_embed::{
- DirectProfileProvider, InMemorySessionStores, PermissionLevel, ProfileRuntime, SaasConfig,
- SessionStoreProvider, ToolScopeSpec,
+ DirectProfileProvider, PermissionLevel, ProfileRuntime, SaasConfig, SessionStoreProvider,
+ ToolScopeSpec,
};
use serde_json::{json, Value};
+use tinyagents_session::port::InMemorySessionStores;
use wiremock::matchers::{header, method, path_regex};
use wiremock::{Mock, MockServer, Request, Respond, ResponseTemplate};
diff --git a/crates/openhuman-embed/tests/runtime_observation.rs b/crates/openhuman-embed/tests/runtime_observation.rs
index a0401c7d1b..892df09e22 100644
--- a/crates/openhuman-embed/tests/runtime_observation.rs
+++ b/crates/openhuman-embed/tests/runtime_observation.rs
@@ -1,15 +1,14 @@
-#![cfg(feature = "testkit")]
-
//! Isolation and lifecycle checks for custom inference and runtime observation.
mod common;
use async_trait::async_trait;
use openhuman_embed::providers::{ChatModel, ModelRequest, ModelResponse};
use openhuman_embed::seams::{LearningSink, TurnSummary};
use openhuman_embed::{
- Access, AgentDefinitionSpec, AgentSpec, InMemorySessionStores, ModelDefaults, Provider,
- Runtime, RuntimeEventKind, SessionStoreProvider, StreamEvent,
+ Access, AgentDefinitionSpec, AgentSpec, ModelDefaults, Provider, Runtime, RuntimeEventKind,
+ SessionStoreProvider, StreamEvent,
};
use std::sync::Arc;
+use tinyagents_session::port::InMemorySessionStores;
struct Model {
label: &'static str,
diff --git a/crates/openhuman-embed/tests/session_store.rs b/crates/openhuman-embed/tests/session_store.rs
index 10f3f7cf1c..ce3b256abe 100644
--- a/crates/openhuman-embed/tests/session_store.rs
+++ b/crates/openhuman-embed/tests/session_store.rs
@@ -1,5 +1,3 @@
-#![cfg(feature = "testkit")]
-
//! End-to-end proof that a host session store owns every conversation.
//!
//! A stateless runtime with an [`InMemorySessionStores`] runs two agents
@@ -18,11 +16,11 @@ use std::sync::Arc;
use common::{chat_requests, offline_config, provider, runtime, stub_backend};
use openhuman_core::storage::DocumentStoreExt as _;
-use openhuman_embed::session_store::session_store_conformance;
use openhuman_embed::{
- Access, AgentSpec, InMemorySessionStores, Provider, Runtime, RuntimeError,
- SessionStoreProvider, Workspace,
+ Access, AgentSpec, Provider, Runtime, RuntimeError, SessionStoreProvider, Workspace,
};
+use tinyagents_session::port::InMemorySessionStores;
+use tinyagents_session::testkit::conformance::session_store_conformance;
/// Every path under `root`, relative to it.
fn files_under(root: &std::path::Path) -> Vec<String> {