# Cloud World Model Chaos Test Runner

> Cloud World Model Chaos Test Runner is a paid API for AI agents from www.cloudworldmodel.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Injects chaos failures (CPU stress, zone outages, network partitions, etc.) into a simulated cloud infrastructure environment and returns a job ID for async status polling.

## Facts

- Endpoint: POST https://www.cloudworldmodel.ai/api/chaos/run
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cloud-world-model-chaos-test-runner-06588337
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p2j3l2qSVEuw9B9_9au_r

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability cloud-world-model-chaos-test-runner-06588337 -d '<json body>'
```

Example prompt: On my existing Cloud World Model simulation sim-abc123, run a zone_outage chaos test targeting AWS us-east-1 for 300 seconds at 80% intensity, then tell me the job ID so I can check the results.

## When to prefer this

Use this endpoint when you need to inject controlled, simulated cloud infrastructure failures (CPU stress, zone outages, network partitions, database crashes, etc.) into a Cloud World Model simulation without provisioning or affecting real cloud resources. Prefer this over real chaos engineering tools (e.g. AWS Fault Injection Simulator, Gremlin) when you want a safe, cost-effective, sandbox environment for training AI/RL agents, running SRE drills, or evaluating architecture resilience. Use a pre-built scenarioId for convenience or customInjections for precise multi-failure orchestration.

## Known failure modes

- Invalid simulationId returns an error if the simulation does not exist or is not running
- Unknown scenarioId returns a not-found or validation error
- customInjections with missing required 'failureType' field cause schema validation failure
- duration outside the 10–1000 second range is rejected
- intensity values outside 0–100 are rejected
- Specifying an unsupported failureType enum value causes a 400 validation error
- Payment not included or insufficient USDC triggers a 402 Payment Required response
- Concurrent chaos tests on the same simulation may conflict depending on platform limits

## How this service works

Simulate AWS, GCP, Azure, OCI, and DigitalOcean cloud infrastructure without provisioning real resources. Built for Canvas Cloud AI learners and agents.

## Output

Returns a JSON object containing a chaos job record with a unique job ID, job type ('chaos_test'), initial status ('pending'), creation timestamp, and the associated simulationId, plus a message instructing the caller to poll GET /chaos/jobs/{id} for status updates.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "duration": {
   "type": "number",
   "maximum": 1000,
   "minimum": 10,
   "description": "Test duration in seconds (default 300)"
  },
  "scenarioId": {
   "type": "string",
   "description": "Pre-built chaos scenario ID (e.g. cpu_stress, zone_outage)"
  },
  "simulationId": {
   "type": "string"
  },
  "customInjections": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "failureType"
    ],
    "properties": {
     "duration": {
      "type": "number"
     },
     "intensity": {
      "type": "number",
      "maximum": 100,
      "minimum": 0
     },
     "startTime": {
      "type": "number"
     },
     "targetZone": {
      "type": "string"
     },
     "failureType": {
      "enum": [
       "database_crash",
       "database_slowdown",
       "database_overload",
       "zone_outage",
       "instance_failure",
       "network_latency",
       "network_partition",
       "cascading_failure",
       "cpu_stress"
      ],
      "type": "string"
     },
     "targetProvider": {
      "enum": [
       "aws",
       "gcp",
       "azure",
       "oci",
       "digitalocean"
      ],
      "type": "string"
     },
     "targetResourceId": {
      "type": "string"
     },
     "affectedResources": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "targetResourceName": {
      "type": "string",
      "description": "Resource display name to target — resolved exact-then-prefix (case-insensitive); ambiguous names return 400 with a candidates list"
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "job": {
   "id": "job-id",
   "type": "chaos_test",
   "status": "pending",
   "createdAt": "2024-01-01T00:00:00.000Z",
   "simulationId": "sim-id"
  },
  "jobId": "job-id",
  "message": "Chaos test started. Use GET /chaos/jobs/{id} to check status."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cloud-world-model-chaos-test-runner-06588337/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.cloudworldmodel.ai](https://www.zero.xyz/host/www.cloudworldmodel.ai/llms.txt)
