Design: Shared validation module with versioned client cache, checked on submission #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Design a shared validation module living in the middle tier (FastAPI) that is the single source of truth for all business-logic validation rules. It serves two consumers: the client UI (field-exit and submit-time checks) and the inference prompt builder (Call 2 input assembly). This eliminates drift between what the UI allows and what the prompt silently rejects.
Design
Module interface
Client-side caching
Validation timing (pre-submission)
Post-submission (separate issue)
Acceptance criteria
Branch
Linked to
docs/refactor-v2.