Skip to content

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

chore: files changed crates/openhuman-core/src/flows/ops/definitions.rs,crates/openhuman-core/src/fl

Steven Enamakel2b11ee173744
diff --git a/crates/openhuman-core/src/flows/ops/definitions.rs b/crates/openhuman-core/src/flows/ops/definitions.rs
index 3fc96d1a6b..b6cbb24ab1 100644
--- a/crates/openhuman-core/src/flows/ops/definitions.rs
+++ b/crates/openhuman-core/src/flows/ops/definitions.rs
@@ -75,6 +75,7 @@ pub(crate) async fn flows_create_with_context(
require_approval: bool,
) -> Result<Outcome<Flow>, String> {
let graph = validate_and_migrate_graph(ctx, config, graph_json).await?;
+ ensure_config_aware_engine_compatible(ctx, config, &graph).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.rs
index 6dbeea443d..9d22f046df 100644
--- a/crates/openhuman-core/src/flows/ops/updates.rs
+++ b/crates/openhuman-core/src/flows/ops/updates.rs
@@ -132,7 +132,15 @@ async fn flows_update_inner(
}
// Metadata-only updates preserve access to legacy graphs written by
// older versions, even when the current engine no longer accepts them.
- None => existing.graph.clone(),
+ None => {
+ validate_and_migrate_graph(
+ ctx,
+ config,
+ serde_json::to_value(&existing.graph).map_err(|error| error.to_string())?,
+ )
+ .await?;
+ existing.graph.clone()
+ }
};
// B29 Rule 1 analogue: disarm every manual/none → automatic trigger
// transition, unconditionally. `now_auto` is safe to compute here (it
diff --git a/crates/openhuman-core/src/flows/ops/validation.rs b/crates/openhuman-core/src/flows/ops/validation.rs
index 573a5f5b6f..af14998d43 100644
--- a/crates/openhuman-core/src/flows/ops/validation.rs
+++ b/crates/openhuman-core/src/flows/ops/validation.rs
@@ -27,7 +27,12 @@ async fn validate_over_bus(
}
fn is_engine_compatibility_error(code: &str) -> bool {
- code.starts_with("unsupported_") || code.starts_with("incompatible_referenced_workflow")
+ matches!(
+ code,
+ tinyflows::compat::UNSUPPORTED_NESTED_CONDITIONAL_FAN_IN
+ | tinyflows::compat::UNSUPPORTED_MAIN_PORT_CONDITIONAL_FAN_IN
+ | "incompatible_referenced_workflow"
+ )
}
/// Validates and migrates a graph through TinyFlows, resolving saved children