ReasonCodeAction (v1.0.0)

Scrap reason code to corrective action mapping

Maps scrap/rework reason codes to their root causes and recommended corrective actions. Published to a compacted topic via the REST API and used by the alarm-service to provide actionable context in supervisor alerts and LLM prompts.

Key Fields

FieldTypeDescription
reasonCodestringReason code identifier (e.g., “DIM_OUT_OF_SPEC”)
descriptionstringHuman-readable description
rootCausestringKnown root cause
suggestedActionstringRecommended corrective action

Example

{
"reasonCode": "DIM_OUT_OF_SPEC",
"description": "Part dimensions outside specification tolerance",
"rootCause": "CNC tool wear, fixture misalignment, or thermal expansion",
"suggestedAction": "Check tool wear offsets, verify fixture alignment, and confirm coolant flow. Run first-article inspection after adjustment."
}