Summary
The task classifier fails to classify certain architecture-level tasks correctly. Tasks containing "redesign" are classified as UNKNOWN/MEDIUM instead of ARCHITECTURE/EXPERT.
Reproduction
from arbiterx.router.classifier import TaskClassifier
classifier = TaskClassifier()
result = classifier.classify("redesign the entire authentication system to support OAuth2, SAML, and OpenID Connect")
print(result.task_type.name) # UNKNOWN — should be ARCHITECTURE
print(result.complexity.name) # MEDIUM — should be EXPERT
Expected Behavior
Tasks containing keywords like "redesign", "rearchitect", "overhaul", "migrate architecture" should be classified as ARCHITECTURE type with HIGH or EXPERT complexity.
Tasks that DO work correctly
"architect a new microservice for payment processing" → ARCHITECTURE/EXPERT ✓
"design a caching layer with Redis and fallback" → ARCHITECTURE/HIGH ✓
Suggested Fix
Add "redesign", "rearchitect", "overhaul", "restructure" to the architecture keyword patterns in the classifier.
Summary
The task classifier fails to classify certain architecture-level tasks correctly. Tasks containing "redesign" are classified as
UNKNOWN/MEDIUMinstead ofARCHITECTURE/EXPERT.Reproduction
Expected Behavior
Tasks containing keywords like "redesign", "rearchitect", "overhaul", "migrate architecture" should be classified as
ARCHITECTUREtype withHIGHorEXPERTcomplexity.Tasks that DO work correctly
Suggested Fix
Add "redesign", "rearchitect", "overhaul", "restructure" to the architecture keyword patterns in the classifier.