"""Reasoning inference pipeline. Takes defect JSON and returns diagnosis."""