Batch mining pass over agent history that turns repeated waste into proposed principles, guards, or scripts.