beads/internal/utils
Steve Yegge b4cb636d92 Switch from hex to Base36 encoding for issue IDs (GH #213)
This change improves information density by using Base36 (0-9, a-z) instead
of hex (0-9, a-f) for hash-based issue IDs. Key benefits:

- Shorter IDs: Can now use 3-char IDs (was 4-char minimum)
- Better scaling: 3 chars good for ~160 issues, 4 chars for ~980 issues
- Case-insensitive: Maintains excellent CLI usability
- Backward compatible: Old hex IDs continue to work

Changes:
- Implemented Base36 encoding with proper truncation (keep LSB)
- Updated adaptive length thresholds (3-8 chars instead of 4-8)
- Fixed collision probability math to match encoding (was calculating
  for base36 but encoding in hex - now both use base36)
- Fixed ID parser bug (use prefixWithHyphen for substring matching)
- Updated all tests and test data patterns

Fixes #213

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 12:02:15 -08:00
..
id_parser.go Switch from hex to Base36 encoding for issue IDs (GH #213) 2025-11-03 12:02:15 -08:00
id_parser_test.go Fix hyphenated issue prefix detection (#199) 2025-11-01 19:57:37 -07:00
issue_id.go fix: Address all errcheck and misspell linter errors 2025-11-01 23:56:03 -07:00
path.go Refactor: Extract path canonicalization into utils.CanonicalizePath() 2025-11-02 19:11:08 -08:00
path_test.go Refactor: Extract path canonicalization into utils.CanonicalizePath() 2025-11-02 19:11:08 -08:00