docir — design documents Graph

Documents / Release notes / rel-5eeef90c2457

0.30.5 — a hand edit survives, and a miss says why

Six fixes from 0.30.4 acceptance testing: a forced body replace no longer erases a hand edit, one add writes one document, and MCP clients see which store they write to.

rel-5eeef90c2457release_notepublished
View as Markdown◉ View in graph

🎯 The release

A hand edit survives, and a miss says why.

0.30.4's acceptance testing found six defects that each cost somebody work without an error to show for it: a forced body replace that erased a paragraph somebody had just typed, one add that wrote two documents, an MCP client writing a project's decisions into the global store, ids cut short in a narrow terminal, a broken file reported as a missing id, and a first embedding pass that locked the store for minutes.

🐛 Bug fixes

  • A forced --replace-body no longer erases a hand edit the daemon has already re-indexed (issue-5e61f46f19f8, adr-895bdabdcd6f). The stale-write guard now compares the file with the version docir last wrote or returned in full through docir get, which no reindex advances, so the replace is refused with exit 6 with or without the daemon. docir get now reads the file, so the refetch the error asks for clears the refusal. archive, unarchive, tag rename, tag rm --force and delete --force now rewrite the file as it is on disk, so an edit nothing has re-indexed yet survives them too (issue-43be097cae13).
  • One docir add after deleting the index no longer writes two documents (issue-d75df898a99a). The daemon notices its index file was deleted or replaced and hands the command to a fresh daemon. A command it already started is never sent twice.
  • An MCP client can tell which store it is using (issue-29f4b96efdaa). The server's instructions open with the store's path and how it was chosen, docir_store_status carries home and home_origin, and every write result carries store. In a repository with no .docir/, the global-fallback warning rides along too.
  • Document tables print every id whole, at any terminal width (issue-ae38739a68d4). Narrow terminals drop whole columns instead, and a line under the table names them.
  • A miss on a document whose file will not parse names the file (issue-1ccfda8b9c1e), with the parse problem and the fix, instead of "no document with id".
  • The first embedding pass no longer locks the store for minutes (issue-88d8fcb20296). Each document is embedded with no transaction open and written on its own.

✨ Changed

  • The docir-feedback skill drafts a report that opens with a triage table: area, severity, category, build and date, rated on the ladder in .claude/rules/issue-triage.md.

⬆️ Upgrading

  • Upgrade with docir self upgrade, which rebuilds the index and refreshes the agent files.
  • The index gains a column (migration 0014). An index the new build has opened is refused by docir 0.30.4 and earlier, by name, with the fix. The index is derived and gitignored, so this only affects one working copy touched by two builds; a teammate still on 0.30.4 reads the committed files unchanged. To go back, delete .docir/index.db* and run docir reindex on the older build.
  • A document nothing has written or fully read since the index was built (a fresh clone, a pull, the upgrade itself) refuses a whole-body replace until it is read with docir get.

🔗 Full changelog

See CHANGELOG.md

To amend: Re-verify: