Steel foundry defect analysis drops prompt rules for code gates, lifting defect-location mentions from zero to 16
Root-cause analysis of steel casting defects and equipment failures has moved its key checks out of prompts and into code. Previously a general-purpose model answered wrong and right with equal confidence, once calling temperatures above 1,300°C physically impossible and recommending a sensor replacement. The system constrains the model with deterministic decision gates, page-level documentation cards and verbatim citation checks, and on one casting raised mentions of the defect location from zero to 16, 11 and 3, while quantification density stayed far below the reference analysis.