Deterministic Concurrency & Isolation Fuzzer
ChaosSQL injects stochastic micro-jitter to trigger rare database race conditions, classifies isolation anomalies through Adya dependency graphs, and shrinks 100-operation execution traces to 1-minimal reproductions in milliseconds.
Built on Formal Concurrency Research
ChaosSQL replaces heuristic guesswork with rigorous isolation theory, provable scheduling bounds, and algorithmic test case minimization.
Adya Cycle Classification
Constructs dynamic Direct Serialization Graphs $DSG(H) = (V, E)$ tracking write-read ($wr$), write-write ($ww$), and read-write anti-dependency ($rw$) edges to categorize anomalies (P4, A5B, A5A, G0, G2).
PCT-SQL Priority Scheduling
Adapts Probabilistic Concurrency Testing to SQL engines. Mathematically guarantees finding isolation bugs of bug-depth $d$ with lower bound $\mathbb{P} \ge rac{1}{n \cdot k^{d-1}}$, avoiding deadlocks and thread starvation.
Causal Delta-Debugging ($ddmin$)
Partitions noisy execution histories of 100+ concurrent operations to isolate the exact 1-minimal subset of 2 steps required to reproduce the anomaly in <200ms.
Interactive Trace Visualizer
Embedded HTTP engine on port 8090 with microsecond Gantt swimlanes per goroutine, interactive Adya conflict graphs, and deep parameter query inspector.
OASIS SARIF 2.1.0 & GitHub
Converts database isolation flaws directly into security findings in GitHub Code Scanning with 9 formal rules, JUnit XML test results, and PR step summaries.
Zero CGO & Pure Go
Compiled with CGO_ENABLED=0 using modernc.org/sqlite. Completely static binary with zero external C libraries and micro-benchmark throughput of 13.9M operations/sec.
10 Flagship Demonstration Scenarios & Fixes
Explore anomalias de isolamento reais em livros bancários, inventário, plantões médicos e corretoras cripto — com redução causal e código de mitigação em produção.
Banking Lost Update (P4)
Concurrent withdrawals under READ COMMITTED overwrite balances without transactional serialization.
Interactive Trace Visualizer
Servidor web de observabilidade de alta resolução. Analise o entrelaçamento de goroutines em escala de microssegundos, o Grafo de Forças Adya e compare o trace original de 20 passos com a síntese minimal de 2 passos.
Hermitage Isolation Anomaly Matrix
Comparação empírica dos limites de isolamento entre motores SQL através de baterias automáticas de testes concorrentes fuzzed com ChaosSQL (chaossql matrix).
| Anomaly / Phenonemon | Formal Cycle | SQLite (WAL) | PostgreSQL (RC) | PostgreSQL (SSI) | MySQL (InnoDB RR) |
|---|---|---|---|---|---|
| P4 — Lost Update | T1 ──(rw)──► T2 ──(ww)──► T1 |
PERMITTED | PERMITTED | PREVENTED | PREVENTED |
| A5B — Write Skew | T1 ──(rw)──► T2 ──(rw)──► T1 |
PERMITTED | PERMITTED | PREVENTED | PERMITTED |
| A5A — Read Skew | T1 ──(rw)──► T2 ──(wr)──► T1 |
PERMITTED | PERMITTED | PREVENTED | PREVENTED |
| G0 — Dirty Write | T1 ──(ww)──► T2 ──(ww)──► T1 |
PREVENTED | PREVENTED | PREVENTED | PREVENTED |
| G1a — Dirty Read (Aborted) | w1(x) ... r2(x) ... a1 |
PREVENTED | PREVENTED | PREVENTED | PREVENTED |
| G2 — Anti-Dependency Cycle | T1 ──(rw)──► T2 ──(rw)──► T3 ──(rw)──► T1 |
PERMITTED | PERMITTED | PREVENTED | PERMITTED |
| G-DL — Deadlock Cycle | T1 ──(waits)──► T2 ──(waits)──► T1 |
DETECTED (Timeout) | DETECTED (40P01) | DETECTED (40P01) | DETECTED (1213) |
Playground WebAssembly (WASM)
Execute o fuzzer de concorrência, o classificador Adya DSG e o delta-debugging causal diretamente no seu navegador, com zero servidor backend e zero dependências nativas.