| name | scenario |
| description | Edge case exploration. 12 dimensions, scored by likelihood x impact. Runnable tests for HIGH+.
|
Activate When
/godmode:scenario, "edge cases", "failure modes"
- "what could go wrong?", "break this", "stress test"
- Before shipping features with user input or APIs
- After build when no edge case coverage exists
Workflow
1. Read the Design
Read spec, plan, and code. Trace the data flow:
Input -> Validation -> Transform -> Logic -> Persist
-> Side Effects -> Response
For each stage list:
- External calls: API endpoints, DB queries, file I/O
- State mutations: created, updated, deleted
- Side effects: emails, webhooks, cache invalidation
- Trust boundaries: where untrusted data enters
Print: [scenario:read] Feature: {name} | {N} calls | {N} mutations | {N} side effects | {N} boundaries
2. Identify Feature Scope
Entry points: API routes, CLI, UI events, cron, queues
Dependencies: services, DBs, caches, third-party APIs
Data shapes: input schemas, output schemas, models
3. Explore All 12 Dimensions
For EACH dimension, generate 2-5 specific scenarios.
Every scenario MUST reference a code path (file:line).
| # | Dimension | What to explore |
|---|
| 1 | Invalid Input | SQL injection, XSS, >64KB strings |
| 2 | Boundary | 0, -1, MAX_INT+1, empty, null |
| 3 |