Repository navigation
v1.6.0 — Fix 5 partial financial invariants + musl builds
v1.6.0
What's new
#38 Reconciliation evidence retention
Every vledger reconcile run now persists an append-only ReconciliationRecord to the WAL (table_id=4) with run UUID, timestamp, entries scanned, discrepancy details, and chain tip at run time. History survives restarts via deterministic WAL replay.
#39 Retention policy scheduling
The server background task scheduler now includes a daily retention evaluator. It reads catalog/retention\_policy.json and writes a RETENTION\_EVAL event to the WORM audit log — a durable compliance paper trail. No data is deleted (the ledger is append-only WORM by design).
#40 Snapshot isolation
New LedgerStore methods: current\_snapshot() (SeqCst sequence fence), balance\_at\_snapshot(), and entries\_at\_snapshot() provide consistent point-in-time reads without blocking concurrent writers.
#41 Database-enforced constraints + append-only triggers (SQLite schema v2)
Automatic migration 1→2 adds CHECK constraints (sequence > 0, status enum, length(content\_hash)=64, length(chain\_hash)=64) and BEFORE UPDATE / BEFORE DELETE triggers that fire RAISE(ABORT) on any mutation attempt — enforcing append-only at the database layer, not just the application layer.
#42 Alert channels
New AlertChannel trait with WebhookAlertChannel (Slack/PagerDuty/Teams/generic, auto-detected by URL). Configured via catalog/alerts.json. Background monitors now route critical failures to all configured channels. Falls back to log-only when unconfigured.
musl static builds
New linux-x86\_64-musl and linux-aarch64-musl targets — fully statically linked, no glibc dependency. Ideal for Alpine Linux, distroless containers, and systems with non-standard libc.
Upgrade notes
SQLite schema migrates automatically from version 1 → 2 on first start. No manual steps required. Verify with: PRAGMA user\_version → should return 2.
Checksums
See vledger-v1.6.0-checksums.txt attached to this release.