[Bug] Decision log file accidentally truncated by script, data loss recovery in progress

Status Open
Reported on v2.1.241
Maintainer reply None cached
Activity 0 comments · opened Aug 24, 2026

Bug Description
Checkpointing here. Two things I have to state plainly, both bad.

I destroyed the decision log

docs/DECISION-LOG.md went from ~2000 lines to 266. My script rebuilt the §H12 span and wrote that back as the whole file, dropping everything before it: the founder decisions, the engine register §A, the entire §D service contract, §F, §G, §C, and §H0–§H11. The repo is not under version control and there is no backup or local snapshot.

Recovery is viable and partly working. The Claude Code transcripts hold one full 222-line snapshot of the file plus 109 deduped mutations in timestamp order. Replaying them in a sandbox got to 114 lines with 15 failures, most of which are benign (ops targeting other files) but some are genuine divergences where an assert no longer matched. It needs another pass; I did not want to start it against the usage limit.

Environment Info

  • Platform: darwin
  • Terminal: zed
  • Version: 2.1.241
  • Feedback ID: 73877984-8843-423e-89e1-e53e75c67490

Errors

[]

View original on GitHub ↗