Skip to main content
Beads issue data lives in Dolt. The local Dolt database is the source of truth for bd list, bd show, bd ready, and every write command.

The Wire Format

Cross-machine sync uses Dolt remotes:
For normal git-hosted projects, the Dolt remote can be the same origin URL used for source code. Dolt stores issue history under refs/dolt/data, separate from source branches such as refs/heads/main. On new projects, bd init auto-detects git remote get-url origin and configures a Dolt remote named origin. The first bd dolt push publishes refs/dolt/data. Fresh clones should run bd bootstrap to clone that Dolt history. When bootstrap finds refs/dolt/data on git origin, it also wires that origin as the Dolt remote for future bd dolt push and bd dolt pull.

What JSONL Is For

.beads/issues.jsonl is an export. It exists for viewers, interchange, and migration. It is not the canonical cross-machine sync channel, and it is not a database backup: for recoverable database backups use bd backup, and for cross-machine sync use bd dolt push / bd dolt pull. Do not use routine bd import .beads/issues.jsonl as a replacement for bd dolt pull. JSONL import is upsert-only; it cannot infer that records absent from an export were deleted, pruned, or simply never exported.

Export Lag

With export.auto=true, the export refreshes after eligible mutating commands, but export.interval (default 60s) is only a minimum time between refreshes. It is not a staleness deadline: a write inside the window is skipped and exports only when a later eligible mutating command runs, or when you export explicitly. Without either, the file can lag the database indefinitely.
The warning names the resolved export path, so with a custom export.path refresh that file (bd export -o <resolved-path>) instead of the default. bd doctor --check=export is the missing-ID staleness detector. It compares the in-scope store issue IDs against the IDs in the export file — coverage only: it does not check full record contents and does not validate a backup. Bare bd doctor and bd doctor --check=artifacts do not run this coverage check.

Hooks

The pre-commit hook refreshes .beads/issues.jsonl when export.auto=true and the commit stages at least one .beads/ path — it never refreshes when the export file itself is staged for deletion. That keeps the export current for tools when a commit carries beads changes, but it does not push Dolt history, and it is not a substitute for the explicit refresh above when no beads path is staged. The post-merge and post-checkout hooks skip JSONL import when sync.remote is configured. For old projects with no Dolt remote, they may import JSONL as a compatibility fallback and print a warning that this is not durable sync.

Repair

For projects initialized before automatic git-origin remote wiring, pick the machine with the authoritative local Dolt database first. Then run:
Use the Dolt-compatible git URL form when needed. For example, git+ssh://git@github.com/org/repo.git or git+https://github.com/org/repo.git. bd dolt remote add origin ... persists sync.remote into .beads/config.yaml; commit and push that config change so fresh clones can run bd bootstrap. Other machines should then run: