Repository navigation
br v0.7.5
br 0.7.5 stops br doctor migrate-schema recover from rewriting the WAL (#556) and closes a set of sync, recovery and repair paths that could lose unflushed or locally exported work without saying so. It runs on FrankenSQLite 0.4.10. The database schema is unchanged (19). Upgrading is recommended for anyone who syncs clones through Git or has run br doctor --repair or br doctor migrate-schema recover.
Imports and sync --merge keep your work
- A JSONL restored, checked out or merged over newer local work no longer overwrites it, and a JSONL that simply omits an already exported row no longer deletes it (#535, #548).
sync --mergetreats its anchor as this clone's last export, not as a common ancestor; deleting rows the JSONL lacks now needs--force-jsonl. - Comments are unioned on import, on both the update and the skip path. When two clones minted the same comment id, the import no longer certifies the stale export afterwards (#547,
0d573bfb), so the local comment is exported on the next flush. source_repo_pathstays on the machine that wrote it and is no longer written toissues.jsonl(#528).
Recovery and repair refuse instead of dropping data
br doctor migrate-schema recoverno longer rewrites the WAL (#556). Recovery runs the engine on a private copy and installs only a verified WAL index in the live tracker. A WAL that still holds frames is refused before anything is opened or copied, so a refused attempt leaves nothing behind. Known issues below covers the one case where that refusal blocks writes. This includes main's01ea5cb0and4632bb11and a fix for a false alarm on the engine's namespace files during index installation (cf6b6d59).- Automatic JSONL rebuilds (startup recovery, mutation retry) now refuse when any dirty issue, tombstone or relation could not be read, instead of replacing the database. A dirty issue whose primary-key index entry is lost is found by a table scan and kept (#546,
890675b3). br doctor --repairno longer reportsverifiedwhen the rebuild dropped unflushed changes; it fails verification and keeps the evidence (#553). It also keeps dirty issue rows when another table is damaged, and its orphan-row prunes stand aside when the issues index is damaged.- WAL-index recovery that meets a stock SQLite reader (bv, the
sqlite3shell) fails that one command with a retry hint and no longer latches the workspace (#532). A valid empty index left by stock SQLite is admitted without any recovery (#555). - Stale-schema heal tries the lossless in-place migration first (#551), and
--discard-db-onlyno longer drops recoverable unflushed issues (#550).
Also in this release
- FrankenSQLite 0.4.10 (from 0.4.7): it builds on macOS from a published release again (#538). 0.4.12 was evaluated and deferred: with it, a tracker whose WAL is zero bytes and whose
-shmis missing cannot be opened (#561). br vcs-status --runtime-filesand the doctor checkgit.tracked_runtime_fileslist tracker files and recovery evidence that are in Git's index, without opening the tracker.- MCP
createaccepts a workflow-aware initial status (#503); combined label and status updates apply atomically;br showrenders inline code and wrapped bullets correctly (#529, #530); external project ids keep hyphens and case (#531). install.shno longer enables Bashlastpipe, which crashed Bash 5.2.21.- Release binaries are performance-optimized (
opt-level = 3instead ofz). On a 10,000-issue trackerready,list,show,createandupdaterun 1.5–2× faster than atz. The binaries are about twice as large (macOS arm64: 16.8 MB in v0.7.4, 34.6 MB now).
Not in this release. v0.7.5 was cut from acf11098 plus the #556 recovery fixes and gated as a whole. Work that reached main afterwards ships in the next release:
- the restore of a missing
-shmwithout rewriting the committed WAL, and the packaged WAL-recovery tool (#562,2710a889and follow-ups); - the frame-free WAL generation binding and headerless-WAL recovery work (#561);
- further #556 hardening (
548ee3ef,f470a6e9) and main's own versions of the #546 and #547 fixes (e4b6d91e,ac50db0f); - the heal and history work (
b8cbd5e1,45db7aa1,8e1b2f15,6203898a,f0f065ea,25d7bc48).
Known issues
- After a crash that loses the
-shmfile while the WAL still holds committed, uncheckpointed changes,br liststill works, butbr createand other writes, andbr doctor migrate-schema recover, are refused withSYNC_CONFLICT"engine recovery refused before opening: WAL contains frames…" (#562; fixed on main, in the next release). With nobrrunning and no other program holding the tracker open, runsqlite3 .beads/beads.db 'PRAGMA wal_checkpoint(TRUNCATE);'with stock SQLite, then retry. The committed changes are kept. - A
br doctor migrate-schema recoverthat fails after it copied the pre-recovery state keeps that copy under.br_recovery/as evidence. Prune it by hand once the tracker is healthy. - Each command that meets a stock SQLite reader during WAL-index recovery still keeps a new
.br_recoveryrun (#544). Close long-running viewers before a burst of br commands on a tracker that needs recovery. - An auto-import that finds a displaced id whose local issue has comments refuses with
SyncConflict, even when the relocated row carries them (#549);br sync --mergeresolves it. br vcs-status --runtime-filesreports the inventory unavailable in large nested repositories and on slow hosts (#552).- Every automatic export re-hashes all JSONL rows for the #548 row receipts, so mutation cost grows with tracker size (#559). At 10,000 issues the export step adds about 30 ms per command over v0.7.4 at the same optimization level. The shipped
opt-level = 3binaries are still faster than v0.7.4 on every measured command. - rustls 0.23.45 in
br upgrade's HTTPS client is affected by RUSTSEC-2026-0346 to 0349, published after this release (low severity; fixed on main with rustls 0.23.46). - #556 stays open until the reporter confirms the fix against this release.
Qualification
The release commit was gated against the merge base it was cut from, on the same Linux x86_64 hosts. Test builds had debuginfo off.
| step | v0.7.5 passed / failed | base passed / failed |
|---|---|---|
clippy -D warnings, all targets (all features; no default features) |
clean | |
| lib and bins, all features | 3598 / 0 | 3590 / 4 |
| lib, no default features | 3431 / 0 | 3422 / 5 |
| doc tests | pass | pass |
integration shard e2e-a-l |
6720 / 4 | 6715 / 9 |
integration shard e2e-m-z |
7400 / 9 | 7395 / 14 |
integration shard storage |
5746 / 33 | 5747 / 32 |
integration shard misc |
3281 / 4 | 3281 / 4 |
How the remaining failures break down:
- Most also fail on the base: they are pre-existing failures on main.
- One class is tests written before the #556 framed-WAL refusal, which still drive recovery over a WAL with frames (#567).
- Two tests have timing-sensitive assertions (#566).
- The other pre-existing failures are tracked in #563, #564 and #565.
22 tests that fail on the base pass on v0.7.5.
Also checked:
- a release build for
x86_64-unknown-linux-musl(static) andcargo checkforx86_64-pc-windows-msvc; - on macOS, clippy (aarch64) and
cargo check(x86_64); - the #556 regression harness, which passes all 14 cases against the Linux release build.
Performance
Setup:
- macOS arm64 (Apple M5 Ultra), hyperfine
-NABBA: rounds A,B / B,A / B,A / A,B, 8 rounds × 10 runs per side after 3 warmups, so 80 measured runs per side and command. - 10,000-issue corpus from the repository's
release_abbagenerator; each side runs on its own copy. Default auto-flush. - Host load 13–55 on 36 CPUs. An A/A control (same binary on both sides) has every CI including 1.0.
- The measured build differs from the release only in the WAL-index recovery code, which these commands do not run on a healthy tracker.
Ratio of medians, B/A (95% bootstrap CI):
version |
ready |
list |
show |
create |
update |
|
|---|---|---|---|---|---|---|
v0.7.5 vs v0.7.4, both opt-level z |
1.00 (0.92–1.06) | 0.74 (0.71–0.77) | 0.90 (0.87–0.94) | 0.98 (0.91–1.03) | 1.11 (1.02–1.20) | 1.10 (1.00–1.21) |
v0.7.5 opt-level 3 vs z |
0.98 | 0.50 | 0.50 | 0.65 | 0.61 | 0.56 |
v0.7.5 as shipped (opt-level 3) vs v0.7.4 as shipped (z) |
0.70 (0.67–0.78) | 0.68 (0.65–0.71) |
- Mutations: the slower
create/updateat equal optimization comes from the export step. It bisects to the #548 row receipts (1eeae10b), filed as #559. - Shipped binary: v0.7.5
createtakes about 186 ms against 265 ms for v0.7.4, andupdate177 ms against 262 ms (medians).
Full detail: CHANGELOG.md.
Assets
Seven archives (Linux GNU and musl on amd64/arm64, macOS amd64/arm64, Windows amd64), each with a .sha256 sidecar and a Minisign signature from the br release key 36B847D11BA5A0D0, plus checksums.sha256 and SPDX/CycloneDX source SBOMs. Built on a self-hosted Mac, with no GitHub Actions: six targets by dsr (Linux with cargo-zigbuild, macOS natively), and Windows with cargo-xwin (MSVC ABI). The archives were packaged and signed outside dsr because of a dsr packaging bug (doodlestein_self_releaser#31), in the same names and layout as v0.7.4. The Windows binary is tested on Windows 11. The Windows build statically links the C runtime, so it no longer needs the Visual C++ redistributable. Linux GNU binaries require glibc 2.28 or newer; the musl binaries are static.
Verify a signature with minisign -Vm <archive> -P RWTQoKUb0Ue4NsqTpPWnABCrIU0+m25zsMlbv6UcRClQ7jmRP3A7NmTB (key ID 36B847D11BA5A0D0; the README's "Verify Release Signatures" section has the same key and its history).