Ver código fonte

docs: weekly Tuesday release policy, CHANGELOG.md

2.12.0-2.19.0 were sixteen releases in nine days, one per consumer request.
From now on: changes merge to main with a line under CHANGELOG.md's
Unreleased section, VERSION is bumped only when cutting the release, and a
release is cut every Tuesday. Out of cycle only for security, data loss or a
regression of the latest release, or with the owner's approval. Early access
is a container-built preview (build.sh without --sync), never a testing suite
or branch. The local container moves on release day only.
fszontagh 1 mês atrás
pai
commit
e6d2527fc1
3 arquivos alterados com 150 adições e 0 exclusões
  1. 101 0
      CHANGELOG.md
  2. 31 0
      CLAUDE.md
  3. 18 0
      docs/integration-guide.md

+ 101 - 0
CHANGELOG.md

@@ -0,0 +1,101 @@
+# Changelog
+
+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.
+Per-release detail (design, measurements, revert evidence) stays in `CLAUDE.md`;
+consumer-facing usage is in `docs/integration-guide.md`.
+
+## Unreleased
+
+### Changed
+- Releases follow a weekly Tuesday cadence; hotfixes only for security, data
+  loss and regressions of the latest release.
+
+## 2.19.0 - 2026-10-15
+### Added
+- `_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).
+
+## 2.18.1 - 2026-10-15 (client only)
+### Added
+- `smartbotic-db-cli configure <collection> [--versioning on|off] [--max-versions N]`;
+  `info` prints `default_ttl_seconds`.
+### Packaging
+- 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.
+
+## 2.18.0 - 2026-10-13
+### Changed
+- Range filters (GT/GTE/LT/LTE) match only number-to-number or string-to-string
+  (`typed_range_filters`); null, booleans and type mismatches never match.
+
+## 2.17.2 - 2026-10-12
+### Fixed
+- Inserts carrying a vector into an encrypted collection were refused (`_vector`
+  is never encrypted now).
+- A reseal is requested only when an online encryption upgrade rewrote plaintext,
+  and compacts only that project.
+- History locks are per collection; the `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.
+
+## 2.17.1 - 2026-10-12
+### Fixed
+- `encryption-verify` stalled history-recording writes server-wide.
+- The migration's memory scaled with the largest history file (now streamed).
+- Compaction could leave an env without `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).
+- Lowering `maxVersions` on an existing collection prunes its history.
+
+## 2.17.0 - 2026-10-12
+### Fixed
+- 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`.
+### Changed
+- Comparisons over encrypted values are refused (`encrypted_field`).
+
+## 2.16.0 - 2026-10-09
+### Added
+- Optional per-collection JSON Schema (enforce/audit), read back, suggested
+  from existing rows.
+
+## 2.15.0 - 2026-10-09
+### Added
+- `GetServerInfo` and capability names; client and server release independently.
+### Packaging
+- The server no longer depends on the client library; `--only client|server`.
+
+## 2.14.0 - 2026-10-09
+### Added
+- Filtered `similaritySearch` (pre-filter, exact).
+### Fixed
+- Vector search now applies the access policy's row predicate and masks.
+
+## 2.13.1 - 2026-10-08
+### Fixed
+- A row could grow past the send limit through patches (write-time size guard).
+- Timed-out non-idempotent writes were retried; `connect()` did not check reachability.
+
+## 2.13.0 - 2026-10-08
+### Added
+- Vector read-back (`WithVector`), `exportCollection`.
+### Fixed
+- A document and its vector were two LMDB commits; read-metadata names in write
+  bodies were stored.
+
+## 2.12.0 - 2.12.4 - 2026-10-07
+- 2.12.0: refusal detail (`sbdb-error-detail-bin`), `patchIfVersion`,
+  `increment`, composite unique constraints, `removeManyAs`, event actor.
+- 2.12.1: evicted documents were invisible to writes; duplicate id as AlreadyExists.
+- 2.12.2: dropping a collection or project left its declarations (and documents).
+- 2.12.3: file store size limit, project drop and streaming download.
+- 2.12.4: a failed read looked like "nothing there"; reads now throw.
+
+Earlier releases: see the per-version entries in `CLAUDE.md`.

+ 31 - 0
CLAUDE.md

@@ -189,6 +189,37 @@ The submodule fallback still works for projects that haven't switched (`BUILD_SH
 | shadowman-cpp | `smartbotic-database (>= 1.2.0)` | 1.2.0 | `/opt/shadowman/share/shadowman/migrations/json` |
 | callerai | `smartbotic-database (>= 1.2.0)` | 1.2.0 | `/etc/callerai/migrations` |
 
+### Release policy (from 2026-10-15)
+
+**One release a week, on Tuesday.** Changes merge to `main` continuously; a
+release is cut on Tuesday from whatever `main` holds. 2.12.0-2.19.0 were
+sixteen releases in nine days, one per consumer request - each a tag, an apt
+publish, a container restart and a round of consumer warnings. Not again.
+
+- **Every change adds a line under `## Unreleased` in `CHANGELOG.md`** in the
+  same commit. Cutting a release renames that heading to `## X.Y.Z - date`; the
+  Gogs release notes are that section.
+- **`VERSION` is bumped only when cutting the release**, never per change or per
+  branch. All features merged that week fold into one minor bump, fixes into the
+  patch level.
+- **Out of cycle only for:** a security fix, data loss or corruption, a
+  regression of the latest release - or the owner explicitly approving one.
+  "A consumer needs this feature" is NOT a reason; it ships Tuesday.
+- **Early access without a release:** `./packaging/build.sh` (no `--sync`)
+  builds the four packages from `main` into `dist/debian13/`; a consumer installs
+  those into a throwaway Debian 13 container to build and test against the new
+  feature. Never published to apt, never deployed. No testing suite or branch.
+- **The local container is upgraded on release day only** (one warning to the
+  consumer sessions, not one per change).
+- **Release day:** full gate (ctest, `dev.sh e2e all`, `compat.sh` against the
+  last two released versions), `symbols/update.sh`, rename the changelog
+  section, signed tag, `build.sh --sync --suite trixie`, Gogs release from the
+  changelog, container upgrade, one consumer notice listing observable changes
+  (error shapes AND latency).
+- **Consumers are told the cadence** and plan around it: a feature they ask for
+  is available for container testing as soon as it merges, and in apt the next
+  Tuesday.
+
 ### Version policy
 
 Bump `VERSION` for API/protocol changes. Deb revision (`-N`) for packaging-only changes.

+ 18 - 0
docs/integration-guide.md

@@ -19,6 +19,24 @@ How to install, configure, and integrate smartbotic-database into your C++ proje
 
 ---
 
+## Release cadence
+
+New versions are published to apt **once a week, on Tuesday** (`CHANGELOG.md`
+lists what each contains; `## Unreleased` is what the next Tuesday brings).
+Out-of-cycle releases happen only for security fixes, data loss and
+regressions of the latest release.
+
+**Need a feature before Tuesday?** It is on `main` as soon as it merges. Build
+the packages yourself and test in a throwaway container - nothing is published:
+
+```bash
+./packaging/build.sh                     # -> dist/debian13/*.deb (no --sync: not published)
+docker run --rm -it -v "$PWD/dist/debian13:/debs:ro" debian:trixie bash
+#   apt-get update && apt-get install -y /debs/libsmartbotic-db-client_*.deb ...
+```
+
+Production takes the feature from apt on the next Tuesday.
+
 ## Installing the Database
 
 ### From APT Repository