Skip to content

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

test(ops): update assertion for agent prompt validation error message\n\nThe test now checks that the error message contains "does not interpolate" instead of "input_context", because the validation only reports what is wrong with the graph structure and does not suggest where to place the data, which is taught by the workflow builder archetype rather than a crate-level error.\n\nAuto-committed-on: dragonfly\n

Steven Enamakelb8c3ac526d54
diff --git a/src/openhuman/flows/ops_tests.rs b/src/openhuman/flows/ops_tests.rs
index d71c1a0618..b9478a4592 100644
--- a/src/openhuman/flows/ops_tests.rs
+++ b/src/openhuman/flows/ops_tests.rs
@@ -6345,7 +6345,12 @@ fn agent_prompt_prose_written_as_expression_is_rejected() {
let errors = validate_binding_resolvability(&g);
assert_eq!(errors.len(), 1, "{errors:?}");
assert!(errors[0].contains("classify"), "{}", errors[0]);
- assert!(errors[0].contains("input_context"), "{}", errors[0]);
+ // The gate is `tinyflows::gates`', so the message says what is wrong with
+ // the graph and stops there. WHERE to put the data instead — this host's
+ // `input_context` node-config key, which its own LLM adapter reads and
+ // which the engine knows nothing about — is taught by the workflow_builder
+ // archetype, not by a crate-level error.
+ assert!(errors[0].contains("does not interpolate"), "{}", errors[0]);
}
#[test]