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): replace local CapturingObserver with re-export from tinyflows
Steven Enamakel11c2d2d41230
diff --git a/src/openhuman/flows/builder_tools.rs b/src/openhuman/flows/builder_tools.rsindex 7cd59457cc..063bd733d8 100644--- a/src/openhuman/flows/builder_tools.rs+++ b/src/openhuman/flows/builder_tools.rs@@ -2824,7 +2824,7 @@ fn build_null_resolution_entry(diag: &tinyflows::expr::NullResolution,graph: &WorkflowGraph,) -> Value {- if let Some(upstream) = crate::openhuman::flows::ops::mock_opaque_tool_call_upstream_ref(+ if let Some(upstream) = tinyflows::preflight::mock_opaque_tool_call_upstream_ref(&diag.expression,graph,node_id,@@ -3462,31 +3462,7 @@ fn tool_call_error_message(output: &Value, node_id: &str) -> Option<String> {/// (issue B18 — escalating a null-resolved REQUIRED outbound arg to a hard/// authoring-time reject) can run the identical sandbox-capture shape without/// duplicating this struct.-#[derive(Default)]-pub(crate) struct CapturingObserver {- steps: std::sync::Mutex<Vec<tinyflows::observability::ExecutionStep>>,-}--impl tinyflows::observability::RunObserver for CapturingObserver {- fn on_step_finish(&self, step: &tinyflows::observability::ExecutionStep) {- self.steps- .lock()- .expect("CapturingObserver steps mutex poisoned")- .push(step.clone());- }-}--impl CapturingObserver {- /// A snapshot of every step recorded so far (steps are pushed- /// synchronously from `on_step_finish`, so once the run's future resolves- /// every step it will ever record is already present).- pub(crate) fn steps(&self) -> Vec<tinyflows::observability::ExecutionStep> {- self.steps- .lock()- .expect("CapturingObserver steps mutex poisoned")- .clone()- }-}+pub(crate) use tinyflows::observability::CapturingObserver;// ─────────────────────────────────────────────────────────────────────────────// save_workflow — persist a built graph onto an EXISTING saved flowdiff --git a/src/openhuman/flows/ops.rs b/src/openhuman/flows/ops.rsindex 23ed93dc34..f43b2991f0 100644--- a/src/openhuman/flows/ops.rs+++ b/src/openhuman/flows/ops.rs@@ -625,6 +625,23 @@ pub(crate) async fn run_builder_gates(config: &Config, graph: &WorkflowGraph) ->validate_required_arg_resolvability(graph).await}+/// Refuses a graph whose outbound `tool_call` arguments a sandbox run proves+/// can never carry a value.+///+/// Delegates to [`tinyflows::preflight::unresolvable_tool_args`]; the whole+/// analysis is the engine's, because the mock run, the trigger-scope rule and+/// the opaque-upstream rule are all statements about the DSL. What this host+/// contributes is the one thing the crate cannot know: which slug prefix marks+/// a tool of *ours*, which has no external provider to reject the call and so+/// is skipped.+pub(crate) async fn validate_required_arg_resolvability(graph: &WorkflowGraph) -> Vec<String> {+ tinyflows::preflight::unresolvable_tool_args(+ graph,+ &[crate::openhuman::flows::tinyflows::caps::NATIVE_TOOL_PREFIX],+ )+ .await+}+/// Checks literal `workflow_id` children reachable from an authoring candidate.////// Pure graph validation can recurse through inline children, but resolving a