Skip to main content

Module validate

Module validate 

Source
Expand description

Input validation and intent detection for agent ergonomics.

Provides O(1) validation sets and synonym maps so agents can use natural language for statuses, types, and priorities. Three-tier resolution: exact match → synonym lookup → error with suggestion.

Statics§

PRIORITY_SYNONYMS
Priority synonyms map to string digits. SaveContext: 0=lowest, 4=critical.
STATUS_SYNONYMS
TYPE_SYNONYMS
VALID_STATUSES
VALID_TYPES

Functions§

find_similar_ids
Find existing IDs similar to the searched ID.
levenshtein_distance
Compute the Levenshtein edit distance between two strings.
normalize_priority
Normalize a priority value from string, integer, synonym, or P-notation.
normalize_status
Normalize a status string via exact match or synonym lookup.
normalize_type
Normalize an issue type string via exact match or synonym lookup.