Text this: Counterfactual multi-agent reinforcement learning for causal defect analysis in manufacturing environments.