From 3dcb9541b1186f6e395fc9e370fe321d8e6a9edf Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Sat, 12 Sep 2026 14:54:33 -0600 Subject: [PATCH] test(TASK-016): assert fallback warn carries the error root cause --- src/graph/agent.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/graph/agent.rs b/src/graph/agent.rs index 23a94f4..fc8edde 100644 --- a/src/graph/agent.rs +++ b/src/graph/agent.rs @@ -832,6 +832,11 @@ mod tests { "warn must carry the error chain: {}", warns[0] ); + assert!( + warns[0].contains("no JSON object found in output"), + "fallback warn must carry the full error chain: {}", + warns[0] + ); } #[test]