The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(flows): update graph serialization in tests
Steven Enamakel1402137d5535
diff --git a/crates/openhuman-core/src/flows/ops_agent_binding_tests.rs b/crates/openhuman-core/src/flows/ops_agent_binding_tests.rsindex ba957a2336..3fc7ea1092 100644--- a/crates/openhuman-core/src/flows/ops_agent_binding_tests.rs+++ b/crates/openhuman-core/src/flows/ops_agent_binding_tests.rs@@ -417,13 +417,14 @@ async fn agent_ref_gate_reads_the_registry_of_the_explicit_context() {],"edges": [ { "from_node": "t", "to_node": "a" } ]}));+ let graph_json = serde_json::to_value(&g).unwrap();// Both calls run scoped to tenant B, so an ambient read would answer B's// registry for A's call.let (for_a, for_b) = CoreContext::scope(core_b, async {(- crate::flows::host_gates::validate_agent_refs(&ctx_a, &config_a, &g).await,- crate::flows::host_gates::validate_agent_refs(&ctx_b, &config_b, &g).await,+ crate::flows::host_gates::validate_agent_refs(&ctx_a, &config_a, &graph_json).await,+ crate::flows::host_gates::validate_agent_refs(&ctx_b, &config_b, &graph_json).await,)}).await;diff --git a/crates/openhuman-core/src/flows/ops_tool_contract_and_wiring_warnings_tests.rs b/crates/openhuman-core/src/flows/ops_tool_contract_and_wiring_warnings_tests.rsindex 39f95c8e94..b369763b61 100644--- a/crates/openhuman-core/src/flows/ops_tool_contract_and_wiring_warnings_tests.rs+++ b/crates/openhuman-core/src/flows/ops_tool_contract_and_wiring_warnings_tests.rs@@ -76,7 +76,8 @@ async fn wiring_warnings_omits_missing_required_arg_advisory_but_host_gate_rejec.await.expect("TinyFlows wiring warnings should succeed");assert!(warnings.is_empty(), "{warnings:?}");- let errors = crate::flows::host_gates::validate_tool_contracts(&config, &g).await;+ let graph_json = serde_json::to_value(&g).unwrap();+ let errors = crate::flows::host_gates::validate_tool_contracts(&config, &graph_json).await;assert!(errors.iter()