Detect agent execution loops: exact duplicates, A-B-A-B oscillation, repeated tool calls and max iteration breaches.