404 means the simulation id is unknown to this project (treat the session as real). 409 means the simulation has already ended (stale session state: do NOT execute the real tool; return your static fallback). 5xx means generation failed (return your static fallback). Identical retries (same tool, same arguments) within a few minutes return the stored response, so double-fired handlers stay consistent.
Calls
POST /v1/simulation/tool-mockOptions
The simulation this session belongs to, from the agent-config resolve response (
simulationJobId). Roark re-validates it against the live simulation before answering.The tool’s contract: its description and, ideally, its parameter and return shape. The more contract you pass, the more faithful the simulated response.