Skip to content

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

refactor(flows): move agent routing imports to agent_route module

Steven Enamakelda938066c60f
diff --git a/crates/openhuman-core/src/cron/scheduler.rs b/crates/openhuman-core/src/cron/scheduler.rs
index a4014d169b..c6835666ed 100644
--- a/crates/openhuman-core/src/cron/scheduler.rs
+++ b/crates/openhuman-core/src/cron/scheduler.rs
@@ -107,4 +107,4 @@ pub(crate) use dispatcher::{execute_job_now, tick_once, JobDispatcher};
pub use live_agents::run_live_agent_pass;
pub(crate) use live_agents::LiveAgentSchedulers;
pub use manual_run::is_running;
-pub(crate) use manual_run::{scheduler_config, try_acquire_run, RunGuard, ALREADY_RUNNING};
+pub(crate) use manual_run::{try_acquire_run, RunGuard, ALREADY_RUNNING};
diff --git a/crates/openhuman-core/src/flows/ops/builder_gates.rs b/crates/openhuman-core/src/flows/ops/builder_gates.rs
index fa471ec240..a5658c0abb 100644
--- a/crates/openhuman-core/src/flows/ops/builder_gates.rs
+++ b/crates/openhuman-core/src/flows/ops/builder_gates.rs
@@ -319,7 +319,7 @@ pub(crate) async fn build_builder_proposal(
/// Rejects an `agent` node whose `config.agent_ref` would hit the runtime's
/// `RegistryFallback` "unknown agent_ref" hard error mid-run
/// (`run_via_registry_fallback` in `tinyflows/caps.rs`) — a real ref is one
-/// that resolves via [`crate::flows::tinyflows::caps::route_for_agent_ref`]
+/// that resolves via [`crate::flows::agent_route::route_for_agent_ref`]
/// to a harness [`AgentDefinition`](crate::agent::harness::host_definition::AgentDefinition)
/// (`AgentRoute::Harness`), OR — when it routes to `AgentRoute::RegistryFallback`
/// — resolves to an *enabled*
@@ -362,7 +362,7 @@ pub(crate) async fn validate_agent_refs(
) -> Vec<String> {
use crate::agent::harness::host_definition::AgentDefinitionRegistry;
use crate::agent::registry::AgentRegistryEntry;
- use crate::flows::tinyflows::caps::{route_for_agent_ref, AgentRoute};
+ use crate::flows::agent_route::{route_for_agent_ref, AgentRoute};
let mut errors = Vec::new();
let mut harness_registry_init_attempted = false;
diff --git a/crates/openhuman-core/src/flows/tinyflows/tinyflows_capabilities_tests.rs b/crates/openhuman-core/src/flows/tinyflows/tinyflows_capabilities_tests.rs
index 0bdece0741..49768b1055 100644
--- a/crates/openhuman-core/src/flows/tinyflows/tinyflows_capabilities_tests.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/tinyflows_capabilities_tests.rs
@@ -1,4 +1,5 @@
use super::*;
+use crate::flows::agent_route::{route_for_agent_ref, AgentRoute};
use crate::flows::tinyflows::caps::OpenHumanCode;
// ── build_capabilities smoke ────────────────────────────────────────────
diff --git a/crates/openhuman-core/src/flows/tinyflows/tinyflows_tests.rs b/crates/openhuman-core/src/flows/tinyflows/tinyflows_tests.rs
index f43d7fa9ad..ee3f1b192f 100644
--- a/crates/openhuman-core/src/flows/tinyflows/tinyflows_tests.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/tinyflows_tests.rs
@@ -138,7 +138,7 @@ fn seeded_required_args_contract(
// ── OpenHumanAgentRunner: routing + request/model mapping (Phase A) ───────────
-use super::caps::{
+use crate::flows::agent_route::{
harness_model_default_override, route_custom_entry_lookup, route_for_agent_ref, AgentRoute,
};