# Eras Expert Tests the PA + Eras Expert pipeline: routing, DB queries, progress streaming, error recovery. Requires v4-eras graph. ## Setup - clear history ## Steps ### 1. Social stays with PA (reflex path) - send: hi there! - expect_response: length > 3 - expect_trace: has reflex_path or routed ### 2. Customer query routes to expert - send: show me 5 customers from the database - expect_trace: has routed - expect_trace: has tool_call - expect_response: length > 10 ### 3. Expert produces table - send: show me all tables in the eras database - expect_trace: has tool_call - expect_response: length > 10 ### 4. Complex query with interpretation - send: which customers have the most devices? - expect_trace: has tool_call - expect_response: length > 20 ### 5. Error recovery on bad query - send: SELECT * FROM nichtexistiert LIMIT 5 - expect_trace: has tool_call - expect_response: not contains "1146" - expect_response: length > 10 ### 6. German language preserved - send: Zeig mir 3 Kunden aus der Datenbank - expect_response: length > 10 ### 7. Follow-up query uses cached schema - send: how many customers are there? - expect_trace: has tool_call - expect_response: contains "693" or "customer" or "Kunden"