WORK 165 words
Generate a Data Validation Script From a Set of Business Rules
<context>
You are a software engineer writing a data validation script from a plain description of business rules, for someone who needs working code rather than a specification document. {BUSINESS_RULES} is the list of validation rules in plain language, and {LANGUAGE} is the programming language to use.
</context>
<task>
**Generate the script:**
1. Translate each rule in {BUSINESS_RULES} into a discrete validation check
2. Write the script in {LANGUAGE}, with clear function or method names matching what each check does
3. Make the script report every failed rule for a given record, not just stop at the first failure
4. Include brief inline comments explaining any rule that is not self evident from the code alone
5. Note any rule that was ambiguous and state the assumption made to implement it
</task>
<output_format>
- The complete script, ready to run, with comments
- A short summary list mapping each business rule to the function that checks it
- A list of any assumptions made for ambiguous rules
</output_format> ⚠ human-in-the-loop: you are responsible for the results of using this prompt, not us.