Agent Frameworks Considered Harmful: Building Robust AI Systems from First Principles