Skip to content

Releases

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 01:34
0b8c1cc

The third public release. Snapshot decoding and restore now enforce
every structural invariant unconditionally across build profiles,
property and allocation runners honour SIM_SEED, CLI verification
and replay stream in bounded O(1) memory with multi-cycle
checkpointing, active-price bitmaps traverse sparse grids in
O(depth), and the core book gains zero-allocation inspection
helpers.

Security

  • snapshot_config and decode_snapshot now validate BookConfig
    in the snapshot header alongside positive order_id and qty,
    in-range neighbour links, unique order identifiers, symmetric
    acyclic level lists, exact per-level counts and quantities, single
    side per level, live-order reachability, and an uncrossed book.
  • Book::from_snapshot_state now validates every structural
    invariant unconditionally in both debug and release builds before
    any indexing, returning BookError::InvalidSnapshot so untrusted
    SnapshotState inputs can never panic or construct a cyclic book
    that hangs plan_sweep.
  • encode_snapshot saturates last_included_seq when next_seq is
    zero instead of panicking, and mutation.rs adds CRC-recomputing
    structural mutation harnesses and explicit regressions for zero
    max_orders, invalid live-order fields, and self-loop links.
  • SECURITY.md states the supported versions, the private GitHub
    vulnerability reporting route, and the untrusted decoder scope
    (programme 6, lane W3).

Added

  • Zero-allocation order and level inspection helpers on Book
    (OrderInfo, get_order, contains_order, spread, level_at,
    orders_at yielding a double-ended exact-size OrdersAt FIFO
    iterator, free_order_count, and compact Debug), grid price
    helpers BookConfig::min_price and BookConfig::max_price,
    EventBuffer::clear, and #[derive(Debug)] on Recovery.
  • True bounded-memory WAL streaming via scan_reader_with and
    ScanReport (~8 KiB per-chunk scratch) plus save_snapshot_with_buffer
    in chronicle-wal so repeated snapshot saves reuse one caller
    buffer without heap growth (INV-ALLOC-3).
  • Multi-cycle --snapshot support on chronicle-cli checkpoint and
    chronicle-cli snapshot, supporting atomic in-place --snapshot
    to --out updates across successive log segments.
  • The CLI checkpoint subcommand, recovering a book from a log,
    writing and verifying a snapshot, and archiving the covered log
    under its sequence number (programme 3, lane T5).
  • Tag-triggered .github/workflows/release.yml, .github/workflows/publish.yml, and .github/workflows/pypi.yml automating five-target GitHub Releases, crates.io OIDC publishing, and chronicle-lob PyPI wheel publishing alongside a typed Python SDK (pyproject.toml, python/chronicle_lob) and [package.metadata.binstall] metadata in chronicle-lob-cli.
  • Per-crate README.md files wired as doctests in chronicle-core
    and chronicle-wal, method doctests across core and WAL entry
    points, root .gitignore, .github/dependabot.yml, and pull
    request and bug report templates (programmes 5 and 7).
  • Animated wal_recovery demo in README.md (docs/media/demo.gif)
    and end-to-end checkpoint act in the wal_recovery example
    (programmes 4 and 5).
  • Public documentation index (docs/README.md), light and dark SVG
    lockups and architecture and guarantee diagrams, a 1200x630
    social card, and a split-screen docs/media/money-shot.gif built
    from pinned real outputs.
  • Mutation coverage of the streaming decoders across chunk sizes,
    scan_reader, and recover_from_reader against their slice forms
    (programme 4, lane U1).

Changed

  • All 18 proptest properties across chronicle-core and
    chronicle-wal plus alloc_proof now derive deterministic seeds
    from SIM_SEED, honour PROPTEST_CASES, and print the active seed
    once per test binary (INV-DET-1, INV-DET-2).
  • Bitmap::highest_below and Bitmap::lowest_above now ascend and
    descend the bitmap hierarchy in O(bitmap depth) word reads
    instead of scanning leaf words linearly.
  • chronicle-cli verify and chronicle-cli replay now stream
    through scan_reader_with in O(1) memory, replay writes
    directly through BufWriter<StdoutLock> without per-event String
    allocations and exits cleanly on BrokenPipe, and sequence
    stepping uses checked_add(1).
  • Fault-injection hooks SaveStep and save_snapshot_with_hook are
    marked #[doc(hidden)], and wal_recovery cleans up all temporary
    files in a dedicated temp directory before exiting.
  • Criterion harnesses in bench_depth, bench_match_sweep,
    bench_snapshot, bench_recovery, bench_add_cancel_best, and
    bench_amend now exclude book drop and buffer reallocation from
    timed iterations, benchmark recover_from_reader alongside
    recover, and wrap inputs and outputs in std::hint::black_box
    under Criterion 0.8.2 (programmes 8 and 9).
  • CI determinism-gate now scans both chronicle-core/src and
    chronicle-wal/src for SystemTime, Instant, thread_rng,
    RandomState, DefaultHasher, HashMap, and HashSet.
  • CI and dispatch workflows cache the Cargo registry and target
    directory under pinned actions/cache v6.1.0, actions/checkout
    v7, and actions/upload-artifact v7, and verify-published.yml
    runs weekly on a schedule (programmes 4 through 11).

0.2.0

Choose a tag to compare

@david-engelmann david-engelmann released this 25 Nov 03:50
190d34a

The second public release. All three crates are published on crates.io at 0.2.0 and verified from the registry and the sparse index, under direction call DC-4 in docs/ROADMAP.md.

Highlights: streaming reads and streaming recovery in chronicle-wal (LogScanner, scan_reader, recover_from_reader), benchmarks for amend, mass cancel, and the snapshot round trip, macOS and Windows CI legs, multi-point decoder mutations with a deep dispatch workflow, rotating CI exploration seeds, and the slicing-by-8 CRC32C (WAL append at 1.60 times its former throughput, recovery at 1.26 times, values proven unchanged).

Full notes in the CHANGELOG under [0.2.0].

0.1.0

Choose a tag to compare

@david-engelmann david-engelmann released this 25 Nov 03:50

The first public release. The four-milestone build is complete and gated, and all three crates are published on crates.io at 0.1.0 and verified from the registry, the docs builds, and a hosted scratch consumer built against the published packages.

Highlights: chronicle-core, a single-threaded deterministic limit order book with zero steady-state allocation; chronicle-wal, a CRC32C write-ahead log with atomic snapshots and recovery that validates sequence, framing, and checksums before applying a frame; and the chronicle-cli tool with replay, verify, snapshot, and bench subcommands, all seeded and byte deterministic across processes.

Full notes in the CHANGELOG under [0.1.0].