AI Workflow
End-to-End User Workflow
1. Wallet Connection
User connects Solana wallet (Phantom, Solflare, etc.)
SDK verifies wallet connection and balance
User approves token allowance for Glitch Gremlin operations
2. Chaos Request Creation
User selects test parameters:
Target program address
Test type (Fuzz, Load, Exploit, Concurrency)
Duration (60-3600 seconds)
Intensity (1-10 scale)
SDK validates parameters
User approves token transfer for test fee
On-chain:
ChaosRequest account created
Tokens escrowed
Request marked as Pending
3. Off-Chain Processing
AI Engine picks up request from queue
Spins up test environment:
Local test validator
Forked mainnet environment
Containerized malicious traffic simulation
Executes test scenario based on parameters
Records metrics:
Transaction throughput
CPU usage
Error logs
Discovered vulnerabilities
4. Result Finalization
AI Engine signs proof of completion
On-chain:
ChaosRequest status updated
Tokens released/refunded
Results reference stored (IPFS/Arweave)
Off-chain:
Detailed logs stored
Metrics analyzed
Vulnerability report generated
5. User Notification
SDK monitors request status
User receives notification when complete
Results available through:
SDK methods
CLI tools
Web interface
Workflow Diagram
Key Considerations
Rate Limiting
Max 10 requests per minute per user
Minimum 2 seconds between requests
Max 1M tokens escrowed per request
Security
Multisig control for critical operations
Signed proofs from AI engine
Comprehensive error handling
Monitoring
Real-time status updates
Detailed test metrics
Vulnerability reports
Last updated