Implement hash ID migration tool (bd-173)

- Add migrate-hash-ids command for converting sequential to hash-based IDs
- Integrate into bd migrate --to-hash-ids for transparent user experience
- Generate hash IDs for top-level issues, hierarchical IDs for children
- Update all references: dependencies, comments, text mentions
- Auto-backup database before migration
- Comprehensive tests covering migration scenarios
- Update AGENTS.md with migration documentation

Amp-Thread-ID: https://ampcode.com/threads/T-492f81db-5b0e-437a-b54d-ae4525dd7827
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Steve Yegge
2025-10-30 16:28:13 -07:00
parent d348d90cbe
commit 0858bdb7ed
5 changed files with 780 additions and 1 deletions

View File

@@ -210,6 +210,8 @@ bd merge bd-42 bd-43 --into bd-41 --dry-run # Preview merge
bd migrate # Detect and migrate old databases
bd migrate --dry-run # Preview migration
bd migrate --cleanup --yes # Migrate and remove old files
bd migrate --to-hash-ids # Migrate sequential IDs to hash-based IDs
bd migrate --to-hash-ids --dry-run # Preview hash ID migration
```
### Managing Daemons