Skip to content

br v0.7.3

Choose a tag to compare

@Dicklesworthstone Dicklesworthstone released this 29 Sep 20:33
· 429 commits to main since this release

br 0.7.3 fixes read-only commands that failed after another SQLite program had read the tracker. The database schema is unchanged (19).

Read-only commands work after bv or sqlite3 reads the tracker

Since 0.7.0, a command run with --no-auto-import --no-auto-flush failed with "database is busy (recovery in progress)" once bv, the sqlite3 shell or any other SQLite program had opened .beads/beads.db. That includes the br --db <path> --no-auto-import --no-auto-flush show --json -- <id> command bv hands to agents. It stayed broken until some command without those flags ran.

When SQLite is the first program to open a database whose WAL holds no frames, it rebuilds the WAL index (beads.db-shm) and records a page size of zero, because an empty WAL has no frame to take one from. That is the index shape from #507, and the storage engine (FrankenSQLite 0.4.x) refuses to read through it. Commands that write already rebuilt the index; read-only commands could not.

Read-only commands now read a private copy whose index is rebuilt from the WAL, the same fallback 0.7.1 added for indexes left by br 0.6.0 (#521). A WAL that fails its checksums is still refused, and the live files are not changed. Until the next command that writes rebuilds the live index, each read-only command pays for that copy.

Also in this release

  • br doctor names this index state instead of calling beads.db-shm inert. br doctor --repair still refuses while it is present; run any ordinary br command or br doctor migrate-schema recover first.

Full detail: CHANGELOG.md.

Assets

Seven archives (Linux GNU and musl on amd64/arm64, macOS amd64/arm64, Windows amd64 built with the GNU toolchain), each with a .sha256 sidecar and a Minisign signature from the br release key 36B847D11BA5A0D0, plus checksums.sha256 and SPDX/CycloneDX source SBOMs. Built with dsr on self-hosted machines; GitHub Actions were not used. Linux GNU binaries require glibc 2.28 or newer; the musl binaries are static.