# Chaos Plugin — Agent Playbook

Browser chaos engineering, network degradation, API fault mocking, and DOM boundary fuzzing for Weavetab.

## MCP Tools
- `chaos_inject`: Emulate CDP network throttling (`offline`, `slow_3g`, `fast_3g`), CPU slowdown (`4x`/`6x`), or Fetch API fault rules (`status_code`, `fail_reason`, `delay_ms`).
- `chaos_fuzz`: Dispatch rapid race-condition multi-clicks (`race_click`) and inject boundary payloads (`oversized`, `unicode_edge`, `numeric_bounds`, `injection_probe`) into DOM/Shadow DOM forms.
- `chaos_report`: Capture CDP Runtime exceptions and HTTP `>= 400` responses into a Markdown or JSON crash report.

## CLI Commands (`weavetab plugin use wt-choas <cmd>`)
- `weavetab plugin use wt-choas presets`: Print built-in network and API chaos profiles with ready-to-run tool payloads.
- `weavetab plugin use wt-choas payloads --category <name>`: List boundary fuzzing test vectors.
- `weavetab plugin use wt-choas fuzz-run --selector <css>`: Execute autonomous boundary fuzzing via CLI.

## Utilities (`/` Prompts & `@` Resources)
- `/chaos-audit`: Multi-step resilience audit workflow for forms and checkout flows.
- `/api-stress`: Simulate API 502/429/timeout faults and verify page recovery.
- `@chaos://presets`: JSON catalog of standard network, CPU, and API failure profiles.
- `@chaos://report`: Live summary of recent exceptions, network drops, and chaos actions.
