Spec-driven workflow covering requirement gathering, spec authoring, implementation review, and verification — with skills, rules, and evaluation scenarios.
96
90%
Does it follow best practices?
Impact
98%
1.19xAverage score across 9 eval scenarios
Passed
No known issues
A user reported that when they enter an invalid email during registration, the error message says "Invlaid email format" instead of "Invalid email format." The team wants this fixed.
Fix the typo and produce a file named changes.md describing what you changed and why you did or did not create/update a spec.
Extract the following files before beginning.
=============== FILE: src/validation.py =============== """Input validation utilities."""
import re
EMAIL_PATTERN = re.compile(r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$')
def validate_email(email: str) -> str: """Validate and normalize an email address.""" if not email or not isinstance(email, str): raise ValueError("Email is required") email = email.strip().lower() if not EMAIL_PATTERN.match(email): raise ValueError("Invlaid email format") return email
def validate_password(password: str) -> str: """Validate password meets minimum requirements.""" if not password or len(password) < 8: raise ValueError("Password must be at least 8 characters") return password
name: User Registration description: New user registration flow targets:
[@test] ../tests/test_validation.py[@test] ../tests/test_validation.py[@test] ../tests/test_registration.py[@test] ../tests/test_registration.py