Introduction

Pre-flight simulate a transaction. Halt the moment realized profit drifts from simulation predictions — before drift compounds into real capital loss.

predicted ──▶ simulate ──▶ submit ──▶ realized
    │                                    │
    └──────────────▶ reconcile ◀─────────┘
                        │
                     halt / continue

This book documents the design, mathematical invariants, and architectural boundaries of driftbrake. For installation and working examples, see the repository README.

Resource Directory

ResourceLocation
Source Repositorygithub.com/Xtley001/driftbrake
Rust Packagecrates.io/crates/driftbrake
Python Packagepypi.org/project/driftbrake-py
API Referencedocs.rs/driftbrake
  • Architecture: Workspace boundaries, concurrency patterns, persistence, and non-goals.
  • Whitepaper: Formal invariant proofs, multi-guard mathematics, and security trade-offs.
  • API Reference: Trait signatures, data types, and Python bindings.
  • Benchmark Methodology: Parameter calibration and empirical trade-off sweeps.
  • Technical Post-Mortem: Case study of simulation failure modes observed in production.