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
refactor(flows): route graph validation through DispatchCtx
Steven Enamakel9f93028b89e1
diff --git a/crates/openhuman-core/src/flows/ops.rs b/crates/openhuman-core/src/flows/ops.rsindex a89e4f0c27..e995478379 100644--- a/crates/openhuman-core/src/flows/ops.rs+++ b/crates/openhuman-core/src/flows/ops.rs@@ -38,7 +38,6 @@ use std::sync::{Arc, LazyLock};use chrono::Utc;use serde_json::{json, Value};-use tinyflows::authoring::validate_and_migrate_graph;use tinyflows::model::{NodeKind, TriggerKind, WorkflowGraph};use tinyflows::triggers::graph_trigger_warnings;// The save/run safety predicates are `tinyflows-catalog`'s: whether a graphdiff --git a/crates/openhuman-core/src/flows/ops/definitions.rs b/crates/openhuman-core/src/flows/ops/definitions.rsindex a49707d004..30f4179077 100644--- a/crates/openhuman-core/src/flows/ops/definitions.rs+++ b/crates/openhuman-core/src/flows/ops/definitions.rs@@ -57,8 +57,7 @@ pub async fn flows_create(graph_json: Value,require_approval: bool,) -> Result<Outcome<Flow>, String> {- let graph = validate_and_migrate_graph(graph_json)?;- ensure_config_aware_engine_compatible(config, &graph)?;+ let graph = validate_and_migrate_graph(&crate::core::runtime::DispatchCtx::ambient(), config, graph_json).await?;// Rule 1: automatic triggers create DISABLED — the user must arm them// explicitly.diff --git a/crates/openhuman-core/src/flows/ops/updates.rs b/crates/openhuman-core/src/flows/ops/updates.rsindex dbc3be6a57..92503dd1d1 100644--- a/crates/openhuman-core/src/flows/ops/updates.rs+++ b/crates/openhuman-core/src/flows/ops/updates.rs@@ -103,8 +103,7 @@ async fn flows_update_inner(let graph_changed = graph_json.is_some();let graph = match graph_json {Some(raw) => {- let graph = validate_and_migrate_graph(raw)?;- ensure_config_aware_engine_compatible(config, &graph)?;+ let graph = validate_and_migrate_graph(&crate::core::runtime::DispatchCtx::ambient(), config, raw).await?;graph}None => {