Designing Reliable LLM Agents With Deterministic Control Flow HackerNoon