beads/internal/validation
elinor 2d4469763c refactor(validation): remove Gas Town actor validation from beads core (bd-741si)
Remove Gas Town-specific validation that does not belong in beads core:

Removed from internal/validation/bead.go:
- ValidAgentRoles, TownLevelRoles, RigLevelRoles, NamedRoles constants
- isValidRole, isTownLevelRole, isRigLevelRole, isNamedRole helpers
- ExtractAgentPrefix function
- ValidateAgentID function

Removed from internal/validation/bead_test.go:
- TestValidateAgentID
- TestExtractAgentPrefix

Updated cmd/bd/create.go:
- Use ValidateIDFormat for all issue types including agents
- Add comment noting Gas Town agent validation belongs in gastown

Gas Town-specific validation (mayor, deacon, witness, refinery, polecat, crew)
should be implemented in gastown, not beads core.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 20:15:30 -08:00
..
bead.go refactor(validation): remove Gas Town actor validation from beads core (bd-741si) 2026-01-26 20:15:30 -08:00
bead_test.go refactor(validation): remove Gas Town actor validation from beads core (bd-741si) 2026-01-26 20:15:30 -08:00
issue.go Centralize validation patterns with composable validators (bd-jbqx) 2025-12-30 16:00:22 -08:00
issue_test.go Centralize validation patterns with composable validators (bd-jbqx) 2025-12-30 16:00:22 -08:00
template.go feat(validation): add ValidateTemplate() function (bd-615z) 2026-01-01 12:42:43 -08:00
template_test.go refactor(types): remove Gas Town type constants from beads core (bd-w2zz4) 2026-01-21 10:36:59 -08:00