Building the Reflector: How Self-Correcting Agents Actually Compute What Went Wrong

The gap function primitive, five shipped implementations, and why naive critique loops often degrade performance