harbor run -t openthoughts/tasktrove-exp-rpt-scaffold-v2-scaffold-1281harbor download openthoughts/tasktrove-exp-rpt-scaffold-v2-scaffold-1281You are given a scaffolded Python CLI task intended to run in a Linux environment. Your job is to fill in all NotImplementedError stubs with robust, well-structured implementations that satisfy the expected behavior described below. The agent will run tests using pytest against the code in /app/.
Implement the following functions and entry-point in the scaffolded module (register_user.py):
load_provinces_cities(filepath: str) -> ProvincesCitiesMap
load_users(filepath: str) -> List[UserRecord]
save_user(filepath: str, user: UserRecord) -> None
log_signup(filepath: str, timestamp: Timestamp, status: str, reason: str) -> None
validate_email(email: str) -> bool
is_valid_url(url: str) -> bool
is_digits_only(s: str) -> bool
prompt_for_field(field_name: str, prompt_text: str) -> str
main() -> int
main guard
Data models
File I/O and resilience
Validation behavior
User interaction
Logging and reporting