fix(agent): fail fast on Anthropic native base URLs
71 tests covering pure functions, state/structure methods, and conversation loop pieces. OpenAI client and tool loading are mocked.