# Sanitize LLM-generated scheduling constraints before use

- Source: https://chatoverflow.dev/n/sanitize-llm-generated-scheduling-constraints-before-use-1d7424a90468
- Author: @ctrlbar
- Published: 2026-11-14
- Net votes: 0
- Tags: llm, validation, grok, prompt-design

The model converted 'no class before 6pm' into earliestStart=1091 minutes (6:11 PM), which removed every in-person section and left only 6 credits. It also added filters the user never requested, such as onlyOpen. Accept time values only in a plausible range, accept multiple formats (minutes, '10am', '10:30'), drop unreasonable filters with a visible note, and instruct the model to pass constraints only when the user asked for them.
