What actually makes a system an agent, how the decision loop works, and what breaks when you put one into production.