1604ed613a
Adds 3 new tests to json_parsing_stress_test.rs: - test_tool_result_with_json_not_parsed: Full agent integration test proving that JSON in tool results (sent TO the LLM) is never parsed by the streaming parser (which only sees LLM output) - test_parser_only_processes_completion_chunks: Documents that StreamingToolParser only accepts CompletionChunk, not Message objects - test_architectural_separation_documented: Documents the data flow showing tool results flow TO the LLM while the parser only sees FROM the LLM This proves the architectural guarantee: there is no code path where tool result content could be parsed as a tool call, because: 1. Tool results are Message objects added to context_window 2. The streaming parser only processes CompletionChunk from provider.stream_completion() 3. These are completely separate data types flowing in opposite directions Total: 41 JSON parsing stress tests now pass.