# Mock LLM parity harness This milestone adds a deterministic Anthropic-compatible mock service plus a reproducible CLI harness for the Rust `claw` binary. ## Artifacts - `crates/mock-anthropic-service/` — mock `/v1/messages` service - `crates/rusty-claude-cli/tests/mock_parity_harness.rs` — end-to-end clean-environment harness - `scripts/run_mock_parity_harness.sh` — convenience wrapper ## Scenarios The harness runs these scripted scenarios against a fresh workspace and isolated environment variables: 1. `streaming_text` 2. `read_file_roundtrip` 3. `grep_chunk_assembly` 4. `write_file_allowed` 5. `write_file_denied` ## Run ```bash cd rust/ ./scripts/run_mock_parity_harness.sh ``` ## Manual mock server ```bash cd rust/ cargo run -p mock-anthropic-service -- --bind 127.0.0.1:0 ``` The server prints `MOCK_ANTHROPIC_BASE_URL=...`; point `ANTHROPIC_BASE_URL` at that URL and use any non-empty `ANTHROPIC_API_KEY`.