Both waves are now on PR #16 with all CI green — CI (Rust + Python) and all 12 wheel builds (Linux/Windows/macOS × Python 3.9–3.12) pass.
What this second round added
Bugs/durability fixed
- The most serious one:
persist() wrote directly over the database file, so a crash or power loss mid-save left a truncated, unrecoverable .rsndb. Every database, snapshot, and export write now goes through temp file + fsync + atomic rename, verified by tests that also confirm no temp litter remains.
- Opening a file with a mismatched
compression= argument produced a baffling parse error because the file didn't say how it was compressed. The format is now v3 and self-describing (a compression byte in the header): any v3 file opens correctly regardless of constructor arguments, the setting sticks on load, and set_compression() does explicit conversions. v2 and legacy files still read and upgrade on save.
- Command history grew without bound (memory leak in long sessions) — now capped at 1000; a test-suite
os.chdir leak was also fixed.
Security
rekey() — one-call encryption key rotation with a fresh salt; rekey(None) decrypts at rest, rekeying plaintext encrypts it (wrong-old-key verified rejected in tests).
0600 owner-only permissions on database files, snapshots, and session-memory sidecars.
CLEAR HISTORY for wiping sensitive payloads from the command log, plus new caps (4096 tables, 256 fields per table).
Abilities
- Bulk
UPDATE … WHERE / DELETE … WHERE (atomic — a unique-constraint failure mid-bulk rolls everything back), aggregates SUM/AVG/MIN/MAX, COUNT … WHERE, DISTINCT, SAMPLE, SEARCH, schema evolution via ALTER TABLE ADD (with default backfill) and DROP, COPY TABLE, SCHEMA, CSV export with RFC 4180 escaping, SELECT … OFFSET / Query.skip() pagination, and CLI session memory (REMEMBER / RECALL [n | search]). All mirrored in the Python API.
Snark and messages
- Ten new personality commands —
HAIKU (15 database haikus), TAROT (a 22-card data tarot: The Deadlock, The Orphaned Key, The Off-By-One…), HOROSCOPE, DADJOKE, CONSPIRACY, QUOTE, TIP, BANTER, CREDITS, and RATE <thing> which gives deterministic 0–10 ratings (the same subject always scores the same — that's the joke). Plus a hidden Konami-code easter egg.
- Eight new achievements (22 total), including Night Owl, Key Alchemist, Schema Surgeon, and Bulk Harvester, all persisted and announced inline.
Verification: 68 Rust tests (up from 62), 291 Python tests (up from 226) at 100% wrapper coverage, clippy -D warnings clean, and a live CLI smoke test covering aggregates, bulk updates, ALTER backfill, CSV output, tarot achievements, and the -rw------- file mode. The PR description was updated to cover both waves.
The one remaining item only you can do is unchanged: publishing to PyPI needs PYPI_API_TOKEN, after which tagging v0.5.0 triggers the wheel publish workflow.