1. Robust JSON extraction
medium25 XPModels sometimes wrap JSON in prose or ``json fences. Write extract_ticket(text) -> Ticket | None: find the first {...} JSON object in text (fenced or not), validate it against the given Ticket` model, return None if nothing valid is found. Never raise.
Ctrl/⌘ + Enter runs the tests · Esc then Tab leaves the editor