Skip to content

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

refactor(host_gates): widen connection ref check visibility

Steven Enamakeldafa1c8d0c80
diff --git a/crates/openhuman-core/src/flows/host_gates/agent_refs_tests.rs b/crates/openhuman-core/src/flows/host_gates/agent_refs_tests.rs
index 4b9cbd6450..c221f84396 100644
--- a/crates/openhuman-core/src/flows/host_gates/agent_refs_tests.rs
+++ b/crates/openhuman-core/src/flows/host_gates/agent_refs_tests.rs
@@ -5,7 +5,7 @@ use tempfile::TempDir;
use tinyflows::model::WorkflowGraph;
fn test_config(tmp: &TempDir) -> Config {
- let mut config = Config {
+ let config = Config {
workspace_dir: tmp.path().join("workspace"),
action_dir: tmp.path().join("workspace"),
config_path: tmp.path().join("config.toml"),
diff --git a/crates/openhuman-core/src/flows/host_gates/connections.rs b/crates/openhuman-core/src/flows/host_gates/connections.rs
index 42bb8eec9c..dd7ae2a361 100644
--- a/crates/openhuman-core/src/flows/host_gates/connections.rs
+++ b/crates/openhuman-core/src/flows/host_gates/connections.rs
@@ -63,7 +63,7 @@ pub(crate) async fn validate_connection_refs(
/// when the live connection list was fetched (possibly empty — a genuine "no
/// connections" state), or `None` when it was unavailable (fail-open: the
/// id-existence check is skipped, only the toolkit-mismatch check runs).
-pub(super) fn validate_connection_refs_against(
+pub(crate) fn validate_connection_refs_against(
graph: &WorkflowGraph,
connections: Option<&[FlowConnection]>,
) -> Vec<String> {
diff --git a/crates/openhuman-core/src/flows/host_gates/mod_tests.rs b/crates/openhuman-core/src/flows/host_gates/mod_tests.rs
index 2a264edb6f..63365995cc 100644
--- a/crates/openhuman-core/src/flows/host_gates/mod_tests.rs
+++ b/crates/openhuman-core/src/flows/host_gates/mod_tests.rs
@@ -7,7 +7,7 @@ use tinyflows::model::WorkflowGraph;
use tinyflows_catalog::FlowConnection;
fn test_config(tmp: &TempDir) -> Config {
- let mut config = Config {
+ let config = Config {
workspace_dir: tmp.path().join("workspace"),
action_dir: tmp.path().join("workspace"),
config_path: tmp.path().join("config.toml"),