# Simulating Pre Race Failure

> Use when running the simulator-with-failure test variant and the pre-race phase begins. The prepare_simulation tool intentionally raises RuntimeError to exercise the ADK and SimulationCommunicationPlugin tool_error callback path. Not intended for production simulations.

- Skill: `googlecloudplatform/simulating-pre-race-failure` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add googlecloudplatform/simulating-pre-race-failure`
- Raw SKILL.md: https://api.skillmd.com/api/skills/googlecloudplatform/simulating-pre-race-failure/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: Apache-2.0
- Author: GoogleCloudPlatform (https://skillmd.com/u/googlecloudplatform)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/googlecloudplatform/simulating-pre-race-failure

---


# Simulating Pre-Race Failure

This skill replaces the base simulator's pre-race setup with a version that
intentionally fails during `prepare_simulation`. It tests how the ADK and
SimulationCommunicationPlugin handle `tool_error` callbacks when the simulation
engine encounters failures.

## Tools

- `prepare_simulation`: Accepts a plan JSON string but raises `RuntimeError`
  after a brief processing delay, simulating an unhandled internal exception.

