Releases are cut weekly on Tuesday (see "Release policy" in CLAUDE.md).
Every change merged to main adds a line under Unreleased in the same
commit; cutting a release renames that heading to the version and date.
Categories: Added, Changed (behaviour a consumer can observe), Fixed, Packaging.
Mark every line [server], [client] or [both]: a server-side change
reaches every consumer when the server restarts, a client-side one only when
they rebuild against the new library.
Per-release detail (design, measurements, revert evidence) stays in CLAUDE.md;
consumer-facing usage is in docs/integration-guide.md.
max_versions was enforced only when it was lowered, so a
capped collection's history file grew without bound (a comment claimed the
snapshot loop pruned it; nothing did). After each snapshot, a capped file
that has grown past 16 MB and twice its size at its last prune is now pruned
to the cap. The first snapshot after the upgrade prunes every capped file
over 16 MB once, which reclaims history like the 1.9 GB above.[server] Two snapshots could run at once (the final snapshot at shutdown and the periodic one); within the same second they shared a file name, and one failed or renamed the other's half-written file. Snapshots now run one at a time.
[server] The boot key audit no longer logs one line per adopted row; the
summary says how many were adopted (loaded unchanged) and how many are not
adoptable because their collection exists only on disk. In report mode
each collection says what adopt would do, and consistency-report.json
carries collection_in_memory per collection, so the step can be sized
before it is taken.
snapshots/ plus wal/. The snapshot now reads an evicted document from
LMDB, and a document it still cannot read fails the snapshot (the WAL is
kept) instead of being dropped.[server] A row whose copy to LMDB failed was repaired at the next boot
only if its WAL entry still existed; a snapshot in between made the
divergence permanent. Failed copies are now recorded durably
(mirror-pending.log in the data directory) and repaired from memory at the
next boot.
[server] storage.consistency: what the boot key audit does about rows
memory and disk disagree on. disk_only: adopt (default: load into
memory; reads already see them) / report / remove. memory_only:
report (default) / write / remove. Complete id lists in
consistency-report.json in the data directory every boot.
[server] With the default disk_only: adopt, the first boot on this
version loads every disk-only row into memory (on the instance above, 7,219
rows): memory use rises by their size until eviction trims it, and boot takes
longer by the time to read them. Set disk_only: report first to see the
list before anything acts. The key audit logs at WARN (it was ERROR), and
ERROR only when a repair failed.
AlreadyExists. Only while LMDB is what
reads are served from (mirror healthy, no drift).[server] upsert reported inserted=true for a row that existed but
was not in memory (evicted since 2.12.1, or the case above), and skipped
keeping the stored ciphertext of unchanged sensitive fields (a spurious
history diff). An evicted row's _created_by was NOT affected (the store
keeps the original); a disk-only row's was, because the upsert re-created it.
_created_by keeps its meaning (the creator) on every version; 2.20.2 removes
an exception, it does not redefine the field. The exception belongs to a ROW,
not a date: a disk-only row that an insert or upsert re-created before
2.20.2 names that writer, and still will after the upgrade (nothing repairs
it retroactively), so an audit across the upgrade compares like with like
everywhere else.
[server] Boot step "memory/disk key audit": per collection, the ids LMDB holds that MemoryStore does not and the reverse, logged as ERROR with counts and up to 10 ids each; read-only, changes nothing. Walks keys, never values: about 120 ms and a few MB per 100,000 rows (memory scales with the largest collection, not the store).
[server] An insert of an id that is on disk but was not in memory now
fails AlreadyExists instead of silently overwriting. Each insert of a new
id costs one LMDB existence check (microseconds). No format, marker or
migration change: 2.20.1 runs on a data directory 2.20.2 has used.
[server] ⚠ A snapshot held the whole store in memory twice more: the serialised body, a compressed copy beside it, and a copy of each collection's documents. A store that outgrew its host was OOM-killed at every snapshot, the WAL was never truncated, and recovery grew with it until the server could no longer boot. The writer now streams to disk a chunk at a time; a snapshot adds a few tens of MB to memory whatever the store's size. The file format is unchanged (older servers read the new files and the reverse). This removes the cause, not the failure mode: boot still holds the whole dataset in memory, so a large WAL left by anything else (a crash, a long stop, a full disk) can still keep a small host from booting (ROADMAP 5e).
[server] A snapshot that never finished (the process was killed while writing it) is reported at the next boot as an ERROR, with the WAL size and the age of the newest snapshot; a WARN whenever the WAL reaches twice the size that triggers a snapshot; and an INFO line at recovery naming the WAL size and the newest snapshot. Boot logs each step after the backfill.
std::regex, which backtracks: a
caller-supplied pattern such as (a+)+$ could tie up a server thread for
minutes against one long value (any key holder with a read grant). They now
run on RE2, in time linear in the value, compiled once per query instead of
once per row. Capability re2_regex_filters.invalid_pattern (reading the reason on a read call
needs a 2.17.0+ client).[server] Character classes over non-ASCII letters matched bytes: [áÁ]
now matches one character, so sz[áÁ]mfejt matches and [öÖ] no longer
matches unrelated accented text. (?i) works as a case-insensitive flag.
[server] ⚠ Patterns with backreferences or lookaround are refused
(invalid_pattern): RE2 has neither. A view stored with such a pattern
matches nothing; recreate it.
[client] Client::Capability::kRe2RegexFilters.
Releases follow a weekly Tuesday cadence; hotfixes only for security, data loss and regressions of the latest release. (process, no code change)
_expires_at (absolute ms) on get/find/export when a document has an expiry;
filterable on a 2.19.0 server (document_expires_at); reserved in write bodies
(stripped by server and client).smartbotic-db-cli configure <collection> [--versioning on|off] [--max-versions N];
info prints default_ttl_seconds.
2.18.1-2: the library ships a Debian symbols file; the CLI's Depends is
computed by dpkg-shlibdeps (needs library >= 2.17.0) instead of pinning
the library to its own version.
typed_range_filters); null, booleans and type mismatches never match._vector
is never encrypted now).maxVersions prune runs outside the
global lock.encryption-verify prints CLEAN (UNSEALED: ...) while a reseal is pending;
a missing key_file is named in the startup error.encryption-verify stalled history-recording writes server-wide.data.mdb if killed mid-swap.info reported the collection's own encryption options, not the enforced rule.project:_name collections are refused (writes to them were unreadable).maxVersions on an existing collection prunes its history.Encryption at rest: the encrypted flag and sensitive_fields did nothing,
top-level sensitive names were plaintext, patch and migration ops never
encrypted. One-time boot migration with a seal; encryption-verify.
Comparisons over encrypted values are refused (encrypted_field).
GetServerInfo and capability names; client and server release independently.
The server no longer depends on the client library; --only client|server.
Filtered similaritySearch (pre-filter, exact).
Vector search now applies the access policy's row predicate and masks.
connect() did not check reachability.Vector read-back (WithVector), exportCollection.
A document and its vector were two LMDB commits; read-metadata names in write bodies were stored.
sbdb-error-detail-bin), patchIfVersion,
increment, composite unique constraints, removeManyAs, event actor.Earlier releases: see the per-version entries in CLAUDE.md.