Repository navigation
v1.5.6 — Correction concurrency tests + TOCTOU investigation
What's in this release
Concurrency investigation: execute_correction TOCTOU race (no exploitable bug found)
Following community review by @SmallFounder (Christopher Lee, Oct 2026), we formally investigated and tested the execute_correction concurrent-call race condition.
The race window is real. execute_correction makes 4 independent SQL calls — each acquires and releases the Arc<RwLock<LedgerStore>> write lock separately — with no spanning lock across the pre-flight existence check and the two INSERT writes. Two concurrent callers can both observe "nothing applied yet" and both proceed to write.
No exploitable bug. The protection is post_entry's idempotency key check, which runs atomically under &mut LedgerStore (the exclusive write lock). Because execute_correction always sets deterministic idempotency_key values derived from the original entry UUID, the second concurrent caller's INSERT silently returns the first caller's sequence number — no duplicate entry is written.
The loser receives the winner's result. Per the design goal raised in community review: the losing concurrent caller receives the winner's (reversal_seq, correction_seq), not an error, so the agent has no reason to retry.
New tests: 5 concurrency tests in correction_concurrency_tests.rs
| Test | Scenario |
|---|---|
concurrent_correction_idempotency |
20 tasks from a Tokio barrier → exactly 3 entries, never duplicates |
correction_loser_receives_winner_result_not_error |
Loser gets winner's sequences, not an error |
partial_correction_recovery_only_missing_half_written |
Crash between reversal + correction writes → retry posts only the missing half |
correction_does_not_disturb_unrelated_entries |
Append-only: content_hash/chain_hash of unrelated entries not mutated |
high_concurrency_correction_stress_50_tasks |
50 concurrent callers → 3 entries, all 50 return same result, chain intact |
Total test count: 523 (518 pre-existing + 5 new). Zero failures.
Download
⚠️ Use the exact filenames below. Archives use Rust target triple naming.linux-aarch64returns 404 — the correct name isaarch64-unknown-linux-gnu.✅ Tarballs are clean — macOS extended attributes (
LIBARCHIVE.xattr.com.apple.*) have been stripped. GNU tar on Linux will extract without warnings.
| Platform | wget command |
|---|---|
| Linux x86_64 | wget https://github.com/pavondunbar/VectorLedger/releases/download/v1.5.6/vledger-v1.5.6-x86_64-unknown-linux-gnu.tar.gz |
| Linux ARM64 | wget https://github.com/pavondunbar/VectorLedger/releases/download/v1.5.6/vledger-v1.5.6-aarch64-unknown-linux-gnu.tar.gz |
| macOS ARM64 | wget https://github.com/pavondunbar/VectorLedger/releases/download/v1.5.6/vledger-v1.5.6-aarch64-apple-darwin.tar.gz |
| macOS x86_64 | wget https://github.com/pavondunbar/VectorLedger/releases/download/v1.5.6/vledger-v1.5.6-x86_64-apple-darwin.tar.gz |
Checksums
f384b6e88c0c39d6855c48597fe521df14bf07b76d04dc42587d164a9b7cbf47 vledger-v1.5.6-x86_64-unknown-linux-gnu.tar.gz
664d12f720f29c7495e87295fe500116990674f59309929afe735f17dc1d2b62 vledger-v1.5.6-aarch64-unknown-linux-gnu.tar.gz
2e84b9bf901c3fdff7657de6a5d0443df901cfcf6ffe69448f0b8c2e6388e1ff vledger-v1.5.6-aarch64-apple-darwin.tar.gz
db65616ab039904d6bfb09e02f7851d64bff48c4e3f90d1de664891458031b46 vledger-v1.5.6-x86_64-apple-darwin.tar.gz
See SECURITY.md §19 for the full concurrency investigation writeup and README.md changelog for the full history.