Skip to content

feat(fakes): add mock Anthropic/Vertex inference server - #1

Merged
1 commit merged into
agentexecutor:mainfrom
Lukeluds:feat/mock-anthropic-core
Nov 16, 2026
Merged

1 commit merged into
agentexecutor:mainfrom
Lukeluds:feat/mock-anthropic-core

Conversation

@Lukeluds

Copy link
Copy Markdown
Collaborator

Adds fakes/mock-anthropic, a standard-library Python HTTP fake for the Anthropic Messages API and Vertex AI Anthropic rawPredict / streamRawPredict routes.

Running this fake outside the sandbox lets E2E tests verify Claude Code task execution, egress rules, and gateway credential injection without live API keys or model spend:

  • Validates x-api-key and Authorization: Bearer against EXPECTED_KEY (401 on mismatch).
  • Supports streaming SSE and JSON replies on /v1/messages, :rawPredict, and :streamRawPredict, plus /v1/models and count_tokens.
  • Exposes GET /_mock/requests (with auth headers redacted) and POST /_mock/reset for test assertions.
  • Wires fakes/mock-anthropic/selftest.sh and a container build/smoke check into CI.

Fault injection modes and scripted tool_use turns will follow in a subsequent PR.

@MushuEE MushuEE closed this pull request by merging all changes into agentexecutor:main in 0ba3101 Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants