Documentation
¶
Overview ¶
CANARY: REQ=CBIN-139; FEATURE="AspectIDGenerator"; ASPECT=Engine; STATUS=IMPL; UPDATED=2025-10-16
CANARY: REQ=CBIN-139; FEATURE="AspectIDParser"; ASPECT=Engine; STATUS=IMPL; UPDATED=2025-10-16
CANARY: REQ-151; FEATURE="FixedPrefixes"; ASPECT=Engine; STATUS=IMPL; UPDATED=2025-11-01
CANARY: REQ=CBIN-139; FEATURE="AspectValidator"; ASPECT=Engine; STATUS=IMPL; UPDATED=2025-10-16
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateNextID ¶
GenerateNextID generates the next requirement ID for a given aspect
func NormalizeAspect ¶
NormalizeAspect normalizes aspect casing to the canonical form
func SuggestAspect ¶
SuggestAspect returns fuzzy match suggestions for invalid aspects
func ValidateAspect ¶
ValidateAspect checks if the given aspect is valid Accepts: exact canonical form, all-lowercase, or all-uppercase Rejects: partial capitalizations (e.g., "Frontend" when it should be "FrontEnd")
Types ¶
type ID ¶
type ID struct {
Type IDType // REQ, TASK, or BUG
Number int // Numeric identifier (e.g., 123)
// Relationships
ParentID string // For TASK/BUG: the REQ or TASK this relates to (optional)
}
ID represents a parsed identifier (REQ, TASK, or BUG)
type RequirementID ¶
type RequirementID struct {
Key string // e.g., "CBIN"
Aspect string // e.g., "CLI", "API" (empty for v1 format)
ID string // e.g., "001", "042"
Format string // "v1" (CBIN-XXX) or "v2" (CBIN-SECURITY_REVIEW-XXX)
}
RequirementID represents a parsed requirement identifier
func ParseRequirementID ¶
func ParseRequirementID(reqID string) (*RequirementID, error)
ParseRequirementID parses a requirement ID string into its components
func (*RequirementID) String ¶
func (r *RequirementID) String() string
String returns the string representation of the RequirementID