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(e2e): assert the prose-prompt create succeeds; narrow the schemaless tolerance\n\nBoth reviewers flagged the tolerated-error pattern in the strict-create accept\ntests. Probing the running stack shows they are right about one of the two and\nwrong about the other, so the two are treated differently.\n\nThe prose-prompt fixture is a trigger plus one agent node — no bindings, no\nconnections, no external-tool args — and the create demonstrably SUCCEEDS,\nreturning a flow id. The old `if let Some(refusal)` form would have gone green\non a structural error, a transport failure or a renamed diagnostic, and green\nagain if no refusal came back at all, proving nothing either way. Now asserts\nassert_no_jsonrpc_error plus the saved flow's name and a non-empty id.\n\nThe schemaless fixture is NOT the same case, contrary to the review note that\nit shares the pattern. It legitimately trips a LATER, unrelated gate: strict\nmode refuses it because the Slack node's `channel` arg binds to an upstream\nfield that resolves to null under a sandboxed dry run. Asserting success there\nwould fail. The original tolerance was still too broad though, so it is now\nnarrowed to require a strict-validation refusal specifically — closing the\nstructural/transport false positive the reviewers were pointing at, without\nasserting an outcome the graph cannot produce.\n\nVerified: 4 passed, cargo fmt clean.\n
M3gA-Mindcbcba2b2f53d
diff --git a/tests/json_rpc_e2e.rs b/tests/json_rpc_e2e.rsindex a9b8ece8b0..cb9018fa25 100644--- a/tests/json_rpc_e2e.rs+++ b/tests/json_rpc_e2e.rs@@ -14561,6 +14561,19 @@ async fn json_rpc_flows_strict_create_accepts_binding_to_schemaless_agent() {.await;if let Some(refusal) = strict_create_refusal(&create) {+ // A refusal is expected here and is NOT this gate's doing: the fixture+ // also carries a Slack node whose `channel` arg binds to an upstream+ // field that is null under a sandboxed dry run, which strict mode+ // refuses on its own. Success therefore cannot be asserted.+ //+ // But the refusal must still be a *strict-validation* one. Without this+ // the test would also pass on a transport failure, an unknown-method+ // error or any other structural break — the false-positive shape a bare+ // "does not contain" check leaves open.+ assert!(+ refusal.starts_with("strict validation failed:"),+ "expected a strict-validation refusal, not an unrelated failure: {refusal}"+ );assert!(!refusal.contains("output_parser.schema"),"a schema-less agent must be treated as unverifiable, not refused: {refusal}"@@ -14593,12 +14606,27 @@ async fn json_rpc_flows_strict_create_accepts_prose_prompt_beside_real_messages().await;- if let Some(refusal) = strict_create_refusal(&create) {- assert!(- !refusal.contains("reads as an instruction written as a"),- "a `=`-prose prompt beside real messages must not block the save: {refusal}"- );- }+ // Asserted as a successful save, not merely "no refusal naming this gate".+ // This fixture is a trigger plus one agent node — no bindings, no+ // connections, no external-tool args — so there is no later gate it could+ // legitimately trip, and a tolerated-error form would have gone green on a+ // structural error, a transport failure or a renamed diagnostic while+ // proving nothing. Confirmed against the running stack: the create returns+ // a flow id.+ let created = assert_no_jsonrpc_error(&create, "flows_create prose prompt beside messages");+ let created = peel_logs_envelope(created);+ assert_eq!(+ created.get("name").and_then(Value::as_str),+ Some("prose-prompt-with-messages"),+ "the saved flow must be the one submitted: {created}"+ );+ assert!(+ created+ .get("id")+ .and_then(Value::as_str)+ .is_some_and(|id| !id.is_empty()),+ "a saved flow must come back with an id: {created}"+ );rpc_join.abort();api_join.abort();