Rebalancer order-safety fixes, deflated Sharpe, ITCH and IBKR fixes, verification docs

RI
4d ago
+10964-760

The 22 commits of feat/execution-records, rebased on main. The Scorecard workflow conflicted with #81, which already added it; main's version is kept.

Highlights: six rebalancer order-safety fixes with tests for each mutation gap, deflated Sharpe following Bailey and Lopez de Prado (2014), IBKR connection-loss reporting, ITCH Stock Directory symbol offset, unsafe code forbidden in the four crates, VERIFICATION.md and the tour docs.

Local tests (CI is off for this org):

  • cargo test --workspace with the CONTRIBUTING feature set: 1216 passed, 0 failed
  • python: pytest tests/ --ignore=tests/reference: 305 passed, 1 skipped

Summary by CodeRabbit

  • New Features

    • Added a five-scene Python tour showcasing backtests, order types, risk checks, and execution records.
    • Added release checksums and build-provenance attestations.
    • Expanded rebalancer reporting with documented exit-code meanings and clearer audit-log path details.
  • Bug Fixes

    • Improved handling of broker connection-loss notices and partial fills.
    • Corrected rebalancer close-order pricing, skipped closes with invalid quotes, and tightened recovery matching for open orders.
    • Corrected stock-symbol parsing and updated deflated Sharpe calculations to account for observations and trial variance.
  • Documentation

    • Added security and verification guides, and clarified timestamp behavior and equity-curve contents.