beads/internal/validation
emma 63432acf64 fix: --validate checks --acceptance field, add validation.on-close config (PR #2654)
Three fixes for validation consistency:

1. bd create --validate now uses LintIssue() instead of ValidateTemplate(),
   bringing it to parity with bd lint. A non-empty --acceptance field now
   satisfies the "Acceptance Criteria" requirement without needing the
   heading in --description. (GH#2468 parity)

2. --dry-run no longer bypasses --validate. Validation now runs before the
   dry-run exit, so users get feedback on template issues during preview.

3. New validation.on-close config option (none|warn|error, default: none).
   When enabled, warns on terse close reasons (<20 chars) or default
   "Closed" reasons. Mirrors existing validation.on-create pattern.

Co-Authored-By: seanmartinsmith <114885497+seanmartinsmith@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 22:21:23 -07:00
..
bead.go style: run gofmt across entire codebase (bd-nmk12) 2026-02-07 19:35:20 -08:00
bead_test.go fix: treat molecule as core issue type 2026-02-18 12:55:26 -08:00
issue.go feat: epic close guards, merge re-parenting, and progress display 2026-03-10 17:33:13 -07:00
issue_test.go feat: epic close guards, merge re-parenting, and progress display 2026-03-10 17:33:13 -07:00
template.go fix: --validate checks --acceptance field, add validation.on-close config (PR #2654) 2026-03-18 22:21:23 -07:00
template_test.go fix: --validate checks --acceptance field, add validation.on-close config (PR #2654) 2026-03-18 22:21:23 -07:00