Skip to content

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

refactor(flows): move host gate validators into host_gates module

Steven Enamakelbf5514c87ba9
diff --git a/crates/openhuman-core/src/flows/authoring_host_tests.rs b/crates/openhuman-core/src/flows/authoring_host_tests.rs
index 0f45047381..0b9483e1cc 100644
--- a/crates/openhuman-core/src/flows/authoring_host_tests.rs
+++ b/crates/openhuman-core/src/flows/authoring_host_tests.rs
@@ -122,7 +122,10 @@ async fn saved_workflow_callback_uses_its_captured_profile_over_the_bus() {
alice_report
.errors
.iter()
- .any(|error| error.code == "unsupported_nested_conditional_fan_in"),
+ .any(|error| {
+ error.code == "incompatible_referenced_workflow"
+ && error.message.contains("unsupported_nested_conditional_fan_in")
+ }),
"Alice must resolve her incompatible child: {:?}",
alice_report.errors
);
diff --git a/crates/openhuman-core/src/flows/ops/connection_ref_gate.rs b/crates/openhuman-core/src/flows/host_gates/connections.rs
similarity index 100%
rename from crates/openhuman-core/src/flows/ops/connection_ref_gate.rs
rename to crates/openhuman-core/src/flows/host_gates/connections.rs
diff --git a/crates/openhuman-core/src/flows/ops/tool_contract_gate.rs b/crates/openhuman-core/src/flows/host_gates/tool_contracts.rs
similarity index 100%
rename from crates/openhuman-core/src/flows/ops/tool_contract_gate.rs
rename to crates/openhuman-core/src/flows/host_gates/tool_contracts.rs