# Releasing BenoDB
This document defines the release line policy and the gate every release must
pass. It exists so a stabilization pass cannot quietly turn into a feature
release, and so the durability prerequisite for remote tables is stated in one
place operators can find.
## Release lines
- **`v0.17.x` is a stabilization release line.** Patch releases in this line
carry correctness, security, observability, and resource-isolation fixes only.
- **Deferred until the stabilization workstreams pass sustained hostile
verification:** new SQL functions, new index families (quantizers, graph
variants), and broader Iceberg V3 feature surface. Existing behavior may be
hardened, but the feature surface must not grow.
- A change that adds user-visible capability belongs in the next minor line, not
in a `0.17.x` patch.
## Durability model (read this before deploying)
`WalDurability::Sync` gives **RPO = 0**; `WalDurability::Async` gives **RPO =
one sync window** (`BDB_WAL_SYNC_BATCH_SIZE` batches or `BDB_WAL_SYNC_INTERVAL_MS`).
Where the acknowledged bytes land depends on the table:
- **`file://` tables.** The WAL directory is `
/_wal`. `fdatasync` on the
segment is the durable write, and nothing leaves the node.
- **Object-store tables (`s3://`, `gs://`, `az://`, `abfs://`).** The local
directory is *staging*. Every batch is uploaded to
`/_wal//part-.arrow` before the sync barrier acknowledges
it, so a node loss does not discard acknowledged writes. Startup restores any
segment the bucket has and staging does not, then replays it.
That means `BDB_WAL_DIR` / `TableBuilder::with_wal_dir()` no longer decide
durability for a remote table; they choose the staging location, which affects
only how much is re-downloaded on restart. Point it at a fast local disk if the
default `/tmp/benodb_wal_staging/...` competes with the page cache.
A failed upload fails the append. The batch is not acknowledged and stays queued
for the next flush, which is the same contract `fdatasync` failure already had.
See [`RECOVERY_RUNBOOK.md`](RECOVERY_RUNBOOK.md) for the full recovery model and
[`CONCURRENCY.md`](CONCURRENCY.md) for how sealed segments are pruned.
## Pre-tag checklist
Run all of these from the repository root and require every one to pass:
1. `cargo test --lib`
2. `cargo clippy --workspace --all-targets -- -D warnings`
3. `bash scripts/no_panic_check.sh` — must report `0` production panic sites
and pass both hard gates.
4. The relevant integration suites for the touched subsystem (ingest,
compaction, detached overlay, Iceberg interop, Flight SQL, MCP).
5. A short soak: `BDB_SOAK_SECONDS=20 cargo test --test soak -- --ignored`.
6. A `CHANGELOG.md` entry under the new version heading, grouped as
`Security & Hardening`, `Fixed`, `Tests`, `Build / CI`, or `Docs`.
7. The workspace version in `Cargo.toml` matches the tag.
## Tagging
- Tags are annotated and follow `vMAJOR.MINOR.PATCH` (`v0.17.4`).
- Tag the commit that contains the version bump and the changelog entry.
- Do not move a published tag. If a release is wrong, cut the next patch.
## After a release
- Leave the stabilization-line deferral in force until the next minor release is
explicitly opened.
- If a workstream uncovers a regression in a shipped patch, fix forward in a new
patch release rather than rewriting history.