Chronos DB 0.9.2
Fixes from the production-readiness pass
Fixes from the production-readiness pass. UNDO AGENT puts back every world a multi-world transaction committed in, ROLLBACK TO no longer changes the world COMMIT returns the session to, and the Postgres write timeout can be set. Nothing changes in how rows are stored: 0.9.2 opens and writes data format 8 as 0.9.1 does. Built and signed on the maintainer's Mac as 0.9.1 was.
- UNDO AGENT puts back a commit of several worlds in each. A transaction that switched worlds commits all its merges as one group; UNDO AGENT measured each world around its own merge, so every world but the last showed no change and its rows stayed. Each world is now measured across the whole group.
- ROLLBACK TO keeps where COMMIT goes back to.
SET LOCAL chronos.world, then a savepoint, aSWITCH WORLDandROLLBACK TOit, left the session in theSET LOCALworld after COMMIT instead of the one the transaction began in, which could hand a pooled connection back in the wrong world. The savepoint now keeps it too. - The Postgres write timeout can be set.
CHRONOS_WRITE_TIMEOUT(seconds, 60 by default as before; 0 waits forever) bounds how long one write waits on a client that stops reading before the connection ends and its transaction rolls back, letting its locks go. Its test now sets 3 seconds, which ends the flaky waits it had on loaded machines.
Release checks: the supply-chain step (no advisory, every licence on the list; SBOM attached as chronos-0.9.2.cdx.json); the release gate (crash points, kill -9 under concurrent merges, simulated interleavings, fuzz tests at 100,000 rounds); the cargo-fuzz targets ran for the first time, 10 minutes each with no crash (sql_parse 1.93 million inputs, sql_run 0.80 million); a 10-minute soak; the whole suite on the Mac (2,883 tests, 2,875 passed, 8 known failures, none outside tests/known_failures.txt); the Linux gate passed on Ubuntu 24.04, x86_64, against Postgres 16.16 (commit f847f3d: 2,904 tests, 2,892 passed, 12 known failures, 17 skipped; S3 against moto, doctests, the installer test and the latency budgets passed; summary attached as linux-gate-summary.md). Drivers and ORMs: psycopg, SQLAlchemy, Django, Alembic, LangGraph, a pytest fixture, node-postgres, Knex, Prisma, TypeORM, Sequelize, JDBC, Flyway and Hibernate passed; pgx and GORM were not run (no Go toolchain on the Mac).