Repository navigation
Releases
v0.3.0
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_configanddecode_snapshotnow validateBookConfig
in the snapshot header alongside positiveorder_idandqty,
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_statenow validates every structural
invariant unconditionally in both debug and release builds before
any indexing, returningBookError::InvalidSnapshotso untrusted
SnapshotStateinputs can never panic or construct a cyclic book
that hangsplan_sweep.encode_snapshotsaturateslast_included_seqwhennext_seqis
zero instead of panicking, andmutation.rsadds CRC-recomputing
structural mutation harnesses and explicit regressions for zero
max_orders, invalid live-order fields, and self-loop links.SECURITY.mdstates 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_atyielding a double-ended exact-sizeOrdersAtFIFO
iterator,free_order_count, and compactDebug), grid price
helpersBookConfig::min_priceandBookConfig::max_price,
EventBuffer::clear, and#[derive(Debug)]onRecovery. - True bounded-memory WAL streaming via
scan_reader_withand
ScanReport(~8 KiB per-chunk scratch) plussave_snapshot_with_buffer
inchronicle-walso repeated snapshot saves reuse one caller
buffer without heap growth (INV-ALLOC-3). - Multi-cycle
--snapshotsupport onchronicle-cli checkpointand
chronicle-cli snapshot, supporting atomic in-place--snapshot
to--outupdates across successive log segments. - The CLI
checkpointsubcommand, 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.ymlautomating five-target GitHub Releases, crates.io OIDC publishing, andchronicle-lobPyPI wheel publishing alongside a typed Python SDK (pyproject.toml,python/chronicle_lob) and[package.metadata.binstall]metadata inchronicle-lob-cli. - Per-crate
README.mdfiles wired as doctests inchronicle-core
andchronicle-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_recoverydemo inREADME.md(docs/media/demo.gif)
and end-to-end checkpoint act in thewal_recoveryexample
(programmes 4 and 5). - Public documentation index (
docs/README.md), light and dark SVG
lockups and architecture and guarantee diagrams, a1200x630
social card, and a split-screendocs/media/money-shot.gifbuilt
from pinned real outputs. - Mutation coverage of the streaming decoders across chunk sizes,
scan_reader, andrecover_from_readeragainst their slice forms
(programme 4, lane U1).
Changed
- All 18
proptestproperties acrosschronicle-coreand
chronicle-walplusalloc_proofnow derive deterministic seeds
fromSIM_SEED, honourPROPTEST_CASES, and print the active seed
once per test binary (INV-DET-1,INV-DET-2). Bitmap::highest_belowandBitmap::lowest_abovenow ascend and
descend the bitmap hierarchy inO(bitmap depth)word reads
instead of scanning leaf words linearly.chronicle-cli verifyandchronicle-cli replaynow stream
throughscan_reader_withinO(1)memory,replaywrites
directly throughBufWriter<StdoutLock>without per-eventString
allocations and exits cleanly onBrokenPipe, and sequence
stepping useschecked_add(1).- Fault-injection hooks
SaveStepandsave_snapshot_with_hookare
marked#[doc(hidden)], andwal_recoverycleans 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_amendnow exclude book drop and buffer reallocation from
timed iterations, benchmarkrecover_from_readeralongside
recover, and wrap inputs and outputs instd::hint::black_box
under Criterion 0.8.2 (programmes 8 and 9). - CI
determinism-gatenow scans bothchronicle-core/srcand
chronicle-wal/srcforSystemTime,Instant,thread_rng,
RandomState,DefaultHasher,HashMap, andHashSet. - CI and dispatch workflows cache the Cargo registry and target
directory under pinnedactions/cachev6.1.0,actions/checkout
v7, andactions/upload-artifactv7, andverify-published.yml
runs weekly on a schedule (programmes 4 through 11).
0.2.0
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
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].