Skip to content

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

fix: correct test module paths after agent registry restructuring

Steven Enamakela5b99d92af60
diff --git a/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rs
index c8fbcc4606..85d958cce6 100644
--- a/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rs
@@ -271,22 +271,12 @@ const KNOWN_UNCALLABLE: &[(&str, &str, &str)] = &[
"composio_execute",
"withheld by the `composio` pack",
),
- (
- "context_scout",
- "list_workflows",
- "on its belt but withheld by the `workflows` pack",
- ),
(
"skill_executor",
"describe_workflow",
"step 1 of its procedure; on its belt but withheld by the `workflows` pack",
),
// Collision.
- (
- "context_scout",
- "run_workflow",
- "names the orchestrator's call, not its own",
- ),
(
"scheduler_agent",
"schedule",
diff --git a/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs b/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs
index 97a95929d2..0c83669029 100644
--- a/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs
@@ -280,7 +280,6 @@ fn vision_agent_loads_on_its_pinned_multimodal_model() {
#[test]
fn low_context_workers_use_burst_hint() {
for id in [
- "context_scout",
// NOTE: `flow_memory_agent` is intentionally NOT listed here. It is
// a `#[cfg(feature = "flows")]` agent, and an array literal can't
// carry a per-element `cfg`; its burst hint is covered by the
diff --git a/crates/openhuman-core/src/agent/registry/agents/loader_tests_specialist_agents_tests.rs b/crates/openhuman-core/src/agent/registry/agents/loader_tests_specialist_agents_tests.rs
index cab7b54d74..585a5709ff 100644
--- a/crates/openhuman-core/src/agent/registry/agents/loader_tests_specialist_agents_tests.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/loader_tests_specialist_agents_tests.rs
@@ -302,105 +302,6 @@ fn help_uses_gitbooks_tools_and_is_read_only() {
assert_eq!(def.trigger_memory_agent, TriggerMemoryAgent::Never);
}
-#[test]
-fn orchestrator_and_nested_agents_do_not_expose_agent_prepare_context() {
- // First-turn context preparation is owned by the harness. Keeping the
- // direct tool out of the orchestrator scope prevents a duplicate scout
- // pass after the harness has already prepared context.
- let orch = find("orchestrator");
- if let ToolScope::Named(tools) = &orch.tools {
- assert!(
- !tools.iter().any(|t| t == "agent_prepare_context"),
- "orchestrator must NOT allowlist `agent_prepare_context`"
- );
- }
- // The planner must NOT: when invoked via delegate_plan it runs under
- // the orchestrator's PARENT_CONTEXT, so a nested scout would render the
- // wrong (orchestrator) visible catalog/session.
- let planner = find("planner");
- if let ToolScope::Named(tools) = &planner.tools {
- assert!(
- !tools.iter().any(|t| t == "agent_prepare_context"),
- "planner must NOT allowlist `agent_prepare_context` (nested-context mismatch)"
- );
- }
- // The scout itself must NOT see the tool (would be circular).
- let scout = find("context_scout");
- if let ToolScope::Named(tools) = &scout.tools {
- assert!(!tools.iter().any(|t| t == "agent_prepare_context"));
- }
-}
-
-#[test]
-fn context_scout_is_read_only_worker_with_bounded_output() {
- let def = find("context_scout");
- assert_eq!(def.agent_tier, AgentTier::Worker);
- assert_eq!(def.sandbox_mode, SandboxMode::ReadOnly);
- // The context scout rides the cheap, high-throughput `burst` tier
- // (resolves to `burst-v1` on the managed backend), not the pricier
- // agentic/reasoning tiers.
- assert!(
- matches!(&def.model, ModelSpec::Hint(h) if h == "burst"),
- "context_scout must spawn on the burst tier, got {:?}",
- def.model
- );
- // Bundle cap — load-bearing for the parent's context budget. Leaves
- // room for the `recommended_skills` block alongside summary + plan.
- assert_eq!(def.max_result_chars, Some(5000));
- // Keeps goals/profile + long-term memory so it can ground the
- // orchestrator in who the user is and what they want.
- assert!(!def.omit_profile, "context_scout needs PROFILE.md (goals)");
- assert!(!def.omit_memory_md, "context_scout needs MEMORY.md");
- // Strictly read-only gathering surface — no writes / shell / delegation.
- match &def.tools {
- ToolScope::Named(tools) => {
- for required in [
- "memory_recall",
- // Transcripts + thread metadata + message reader (read-only).
- // Skill discovery (read-only).
- "list_workflows",
- "skill_registry_browse",
- "skill_registry_search",
- // Web.
- "web_search_tool",
- "web_fetch",
- ] {
- assert!(
- tools.iter().any(|t| t == required),
- "context_scout needs read-only gathering tool `{required}`"
- );
- }
- for forbidden in [
- "shell",
- "file_write",
- "spawn_subagent",
- "spawn_async_subagent",
- "agent_prepare_context",
- // memory_tree bundles a write mode (ingest_document) under a
- // ReadOnly wrapper — must not be reachable by the auto-run scout.
- "memory_tree",
- // Write-capable thread + skill tools must stay out of the
- // auto-run, prompt-injectable scout.
- "thread_create",
- "thread_delete",
- "skill_registry_install",
- "skill_registry_uninstall",
- ] {
- assert!(
- !tools.iter().any(|t| t == forbidden),
- "context_scout must NOT have `{forbidden}` — it only gathers context"
- );
- }
- }
- ToolScope::Wildcard => panic!("context_scout must have a Named tool scope"),
- }
- // Worker leaf: no onward delegation.
- assert!(
- def.subagents.is_empty(),
- "context_scout is a leaf and must not list subagents"
- );
-}
-
#[cfg(feature = "flows")]
#[test]
fn flow_memory_agent_is_read_only_worker_with_bounded_memory_belt() {
diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rs
index 94fddac642..5a897fefee 100644
--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rs
@@ -188,7 +188,7 @@ fn skill_sections_name_the_hand_off_this_session_can_call() {
Some("`use_skill { \"skill\": \"crypto\", \"tool\": \"do_crypto\" }`")
);
// Not in the orchestrator's allowlist: no route, so name nothing.
- assert_eq!(hand_off_route(&ctx, "context_scout"), None);
+ assert_eq!(hand_off_route(&ctx, "summarizer"), None);
// The generated withheld block no longer lists the unpacked hand-offs.
let block = render_withheld_specialists(&ctx);