Skip to content

test(e2e): add mounted-runner Substrate E2E suite for Claude Code - #5

Open
Lukeluds wants to merge 2 commits into
agentexecutor:mainfrom
Lukeluds:feat/claude-code-e2e
Open

Lukeluds wants to merge 2 commits into
agentexecutor:mainfrom
Lukeluds:feat/claude-code-e2e

Conversation

@Lukeluds

Copy link
Copy Markdown
Collaborator

Adds e2e/claude-code/, a portable KinD + Agent Substrate (gVisor) end-to-end test suite exercising agents/claude-code (#3, #4) with a static ax-task-runner mounted read-only at /opt/ax (ImageVolumeSource) against an out-of-sandbox fakes/mock-anthropic Deployment (#1, #2):

  • Cases covered (8/8 verified locally on ax-e2e):
    1. Happy path (ANTHROPIC_API_KEY direct /v1/messages SSE stream → MOCK_OK)
    2. Wrong key (401 rejected, non-zero exit)
    3. Missing key (0 authorized calls, non-zero exit)
    4. Egress denied (no EgressPolicy → 0 calls reach mock-anthropic)
    5. Vertex AI path (CLAUDE_CODE_USE_VERTEX=1, :streamRawPredict with Bearer auth)
    6. Gateway credential injection (k8s.io provider injects ax-test/mock-anthropic[key]; verifies /proc/1/environ inside the sandbox never holds the key)
    7. Scripted multi-turn Write tool_use writing /workspace/tool_ok.txt
    8. FAULT=500 transient retry and recovery via POST /_mock/config
  • Includes Kubernetes manifests (e2e/claude-code/k8s/mock-anthropic.yaml, egress-policy-http.yaml, egress-policy-inject.yaml) and setup/usage docs (e2e/claude-code/README.md).

The prompt now comes from AX_GOAL_FILE (spec.goal.text) and ax-harness
rejects spec.config.prompt.
@MushuEE

MushuEE commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Tracking: the release epic #12 covers publishing images from this repo. The Claude Code image is left out of publishing there for now, so this PR isn't tied to the v0.0.0 release work.

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