When the LLM returns a top-level JSON array instead of an object, output_parser.py calls .items() on the parsed value and raises AttributeError: 'list' object has no attribute 'items'. The fallback path should handle array responses.
The covering test is marked @pytest.mark.xfail referencing manifest id H-02 — remove the marker as part of the fix.
Relevant files:
rag/generator/output_parser.py
tests/unit/test_output_parser.py
Estimated effort: 2–4 hours
When the LLM returns a top-level JSON array instead of an object,
output_parser.pycalls.items()on the parsed value and raisesAttributeError: 'list' object has no attribute 'items'. The fallback path should handle array responses.The covering test is marked
@pytest.mark.xfailreferencing manifest id H-02 — remove the marker as part of the fix.Relevant files:
rag/generator/output_parser.pytests/unit/test_output_parser.pyEstimated effort: 2–4 hours