beads/cmd
Mohamed Ramadan f7adf33fd0
fix(import): report accurate create/update/skip counts for --dry-run (#4909)
* fix(import): report accurate create/update/skip counts for --dry-run (GH#4901)

* fix(import): make --dry-run counts match execution

Dry-run classified title-only/zero-timestamp rows as Unchanged though
execution creates them, and --allow-stale reported every row as Created.
Classify via existence lookup (Created vs Updated), move TieKeptLocal out
of Updated, make category counts sum, dedupe NewIDs, and extend the unit
tests to pin the new classifications.

Addresses the 2026-07-23 review on gastownhall/beads#4909.

Agent-Signature: claude-sonnet-5-medium on behalf of maphew

* fix(import): classify all-title-only batches as Created in dry-run

Reviewer finding: a batch with only empty-ID rows short-circuited before
the NewCount classification and reported Unchanged. Classify each row
before the empty-ID short-circuit; add all_title_only_rows_report_created
regression with count-sum assertion.

Agent-Signature: codex-gpt-5.6-terra-medium on behalf of maphew

---------

Co-authored-by: matt wilkie <maphew@gmail.com>
2026-07-25 22:53:12 -07:00
..
bd fix(import): report accurate create/update/skip counts for --dry-run (#4909) 2026-07-25 22:53:12 -07:00