Critical fix: Without extra='forbid', Pydantic accepted UI format {operator: "and", operands: [...]} as valid Condition by ignoring unknown fields, resulting in Condition(expression=None). With extra='forbid': - Condition rejects unknown fields → fails - Union tries next type → LogicExpression → success Test Results (9/9 passed): - Simple comparisons (eq, neq, gt, lt, in) ✅ - AND/OR combinations ✅ - Deep nesting (3+ levels) ✅ - NOT operator ✅ - All operators (eq, neq, in, not_in, gt, lt, gte, lte, and, or, not) ✅ - Legacy format (Condition wrapper) ✅ - Complex real-world scenarios ✅ Added comprehensive test suite in: - test_condition_parsing.py (9 test cases) - test_condition_union.py (Union resolution verification) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>