Prompt, context, loop and harness are four layers of the same AI system, and each fails differently. Here's how to tell which one broke.