Skip to content

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

refactor(agent): move host_definition out of harness module

Steven Enamakele3596fcdcdc2
diff --git a/crates/openhuman-core/src/agent/harness/mod.rs b/crates/openhuman-core/src/agent/harness/mod.rs
index c87025a682..0eedce7151 100644
--- a/crates/openhuman-core/src/agent/harness/mod.rs
+++ b/crates/openhuman-core/src/agent/harness/mod.rs
@@ -14,7 +14,6 @@
//! identity, global skills) to keep sub-agent prompts small.
//!
//! ## Key Sub-modules
-//! - **[`host_definition`]**: OpenHuman's extension slot and registry over `tinyagents-definition`.
//! - **[`fork_context`]**: The parent execution snapshot handed to sub-agents.
//!
//! Cancellation is handled by the tinyagents steering channel (see
@@ -23,7 +22,6 @@
pub mod artifact_offload;
pub mod fork_context;
pub(crate) mod graph;
-pub mod host_definition;
#[cfg(test)]
pub(crate) mod test_support;
pub(crate) mod tool_result_artifacts;
diff --git a/scripts/ci/check-gated-test-allowlist.sh b/scripts/ci/check-gated-test-allowlist.sh
index 4e24f87711..54f25b5bd8 100755
--- a/scripts/ci/check-gated-test-allowlist.sh
+++ b/scripts/ci/check-gated-test-allowlist.sh
@@ -17,13 +17,13 @@ cd "$(dirname "$0")/../.."
EXPECTED=$(cat <<'EOF'
agent/harness/builtin_definitions_tests.rs
-agent/harness/host_definition_tests.rs
+agent_registry/host_definition_tests.rs
agent/session_host/mod.rs
agent/session_host/prelude_integrations.rs
agent/session_host/runtime_session.rs
agent/session_host/runtime_session_tests.rs
-agent/registry/agents/loader.rs
-agent/registry/agents/loader_tests_specialist_agents_tests.rs
+agent_registry/agents/loader.rs
+agent_registry/agents/loader_tests_specialist_agents_tests.rs
agent/tinyagents/mod.rs
commands/ops.rs
config/migrations/retire_local_whisper_stt_tests.rs
diff --git a/scripts/ci/saas-ambient-baseline.json b/scripts/ci/saas-ambient-baseline.json
index 7ef15378e5..3a839b22b7 100644
--- a/scripts/ci/saas-ambient-baseline.json
+++ b/scripts/ci/saas-ambient-baseline.json
@@ -8,14 +8,14 @@
},
{
"rule": "ambient-config",
- "path": "crates/openhuman-core/src/agent/harness/host_definition.rs",
+ "path": "crates/openhuman-core/src/agent_registry/host_definition.rs",
"line": 207,
"text": "let config = crate::config::Config::load_or_init().await?;",
"occurrence": 1
},
{
"rule": "ambient-context",
- "path": "crates/openhuman-core/src/agent/harness/host_definition.rs",
+ "path": "crates/openhuman-core/src/agent_registry/host_definition.rs",
"line": 287,
"text": "crate::core::runtime::CoreContext::current()",
"occurrence": 1