Implement `agent_error_budget` in Python. Test cases verify edge cases and functional requirements.
agent_error_budget(*args, **kwargs)