Before sending a reusable prompt:
- Keep a trusted, reviewed template and an explicit required-field list.
- Distinguish absent, null, empty and whitespace-only input.
- Use StrictUndefined to expose accessed missing values.
- Apply a separate input policy for required nonblank strings.
- Reserve explicit defaults for genuinely optional fields.
- Review the final rendered text and source facts before sending.
- Treat inserted data as data; do not render it again as a template.
- Verify model behavior separately. Field presence is not correctness or injection protection.
