Skip to content

v0.7.4

Choose a tag to compare

@Dicklesworthstone Dicklesworthstone released this 01 Oct 06:41
· 412 commits to main since this release

br 0.7.4 adds --exclude-label, moves to FrankenSQLite 0.4.7, and stops recovery data piling up under .beads/ after bv or sqlite3 reads the tracker. The database schema is unchanged (19).

--exclude-label for list, ready, search and count (#522)

br list, br ready, br search and br count accept --exclude-label <label>, repeatable. An issue carrying any excluded label is hidden. It composes with --label and --label-any: those select, then the exclusion removes. ready --limit and the list and search pages apply after the exclusion, so hidden issues never shorten a page, and saved queries keep the flag. There is no config or environment default for it.

Reads after bv or sqlite3 no longer copy the database

When bv, the sqlite3 shell or any other SQLite program is the first to open a tracker whose WAL holds no frames, it leaves an empty WAL index (beads.db-shm). Since 0.7.3, each read-only command (--no-auto-import --no-auto-flush, the form bv hands to agents) copied the whole database to a private snapshot to read around that index. FrankenSQLite 0.4.7 reads it directly, so read-only commands now read the live database.

Writes are a different story. FrankenSQLite 0.4.7 still cannot commit through the empty index stock SQLite leaves, so the first command that writes after a bv read still runs the index-only recovery described below before it commits. That is expected and costs one small set-aside of the old index, not a copy of the database.

FrankenSQLite 0.4.6 and 0.4.7 also fix silent index corruption after a single large multi-row INSERT ... VALUES, a race where a schema change beside concurrent writers left rows out of a new index, and a page referenced twice across a WAL generation.

.br_recovery and .br-wal-index-* no longer grow without bound

  • Every write after a SQLite reader used to copy the whole database twice into a new .beads/.br_recovery/schema-migrations/ run, and nothing removed them. When the WAL holds no frames, the main database file is already the complete committed state, so recovery now sets aside only the old index plus its receipts. It still checks that the database and WAL come out byte-identical and that the integrity check is clean; if it finds older damage, it restores the original index and falls back to the full-backup path as before.
  • After each successful recovery, br removes this database's completed recovery runs and finished .br-wal-index-* quarantines that are both outside the newest five and older than seven days. Failed, interrupted or unfinished runs, runs of other databases, and schema-migration runs used by undo are kept.

Also in this release

  • "database is busy (recovery in progress)" now names the command that clears it, br doctor migrate-schema recover, in the error hint, the pending-merge refusal, the sync_merge_pending_unknown warning and the br doctor --repair refusal.
  • workflow.entry_routes in policy.yaml lets br create skip the global initial status when the new issue carries a configured label and at least one parent or dependency names an existing issue (#503). A label alone, a relation alone, or an external: reference is refused.
  • Upgrade tests now check that rows written before an ALTER TABLE ... ADD COLUMN migration read back unchanged.

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.