beads/website/docs
matt wilkie 889ade6b7f
fix(compact): archive content before destructive compaction; make restore work (#4464)
Content compaction (bd admin compact) overwrote an issue's description and
cleared design/notes/acceptance_criteria in place with no archive, while the
issue_snapshots/compaction_snapshots tables built to hold that archive were
dead code (never written). The only recovery, bd restore, was display-only and
relied on a largest-history-row heuristic that dolt gc / history-squash can
erase. Net: compaction was effectively irreversible.

Wire the existing compaction_snapshots table: archive the full pre-compaction
content (snapshot_json BLOB) before the destructive overwrite, aborting if the
archive fails; add SnapshotIssue/GetCompactionSnapshot/RestoreFromSnapshot to
the CompactionStore interface on both Dolt and embedded stores; and rework
bd restore to restore from the snapshot (--apply writes it back; default stays
read-only display, with the old Dolt-history reconstruction as fallback).

Unit tests assert snapshot-before-overwrite ordering and abort-on-archive-
failure; an integration test covers the snapshot -> overwrite -> restore round
trip against a real Dolt store. CLI reference docs regenerated for the new flag.

Refs #4463

Agent-Signature: claude-opus-4-8-high on behalf of maphew
2026-06-20 14:12:07 -07:00
..
architecture fix(docs): repair broken links failing Deploy Documentation CI (#3103) 2026-04-07 10:17:55 -07:00
cli-reference fix(compact): archive content before destructive compaction; make restore work (#4464) 2026-06-20 14:12:07 -07:00
core-concepts docs: publish community tools on website (#4299) 2026-06-03 13:44:47 -07:00
getting-started fix(install): use declared module path for go fallback (#4215) 2026-05-27 21:48:24 -07:00
integrations fix(codex): ship hook release safely 2026-05-27 13:19:41 -07:00
multi-agent docs(claim): standardize start-work semantics to --claim (#2070) 2026-02-24 22:11:39 -08:00
recovery docs: publish community tools on website (#4299) 2026-06-03 13:44:47 -07:00
reference docs: publish community tools on website (#4299) 2026-06-03 13:44:47 -07:00
workflows docs(claim): standardize start-work semantics to --claim (#2070) 2026-02-24 22:11:39 -08:00
community-tools.md docs: publish community tools on website (#4299) 2026-06-03 13:44:47 -07:00
intro.md docs: update user-facing URLs from steveyegge/beads to gastownhall/beads 2026-04-24 08:17:42 -07:00