Steve Yegge
048522c41a
Add prefix validation to prevent wrong-database issue creation
Closes bd-156 (originally bd-151, remapped during auto-import)
Validates that explicit --id prefix matches database prefix from config.
Prevents accidental creation of issues with wrong prefix (e.g., creating
'bd-118' in a database configured for 'vc-' prefix).
Features:
- Checks issue_prefix from config table when --id is provided
- Fails with helpful error message showing the mismatch
- Suggests correct prefix format
- Adds --force flag to override validation if intentional
- Only validates in direct mode (daemon needs RPC enhancement)
Example: bd create 'Test' --id vc-99 # Error: prefix mismatch, use bd-99
bd create 'Test' --id vc-99 --force # OK, forced override
Amp-Thread-ID: https://ampcode.com/threads/T-4e1ac6f1-7465-442a-a385-adaa98b539ad
Co-authored-by: Amp <amp@ampcode.com>