A prompt is one component of an application boundary. The product also determines what context is supplied, which tools exist and what happens when a response cannot be used. Write that contract before tuning the wording.
Define an observable success condition
For a reporting assistant, success might mean returning the requested account’s permitted records with the correct date range. A fluent answer that uses the wrong account is a failure. Include those distinctions in the evaluation set.
Keep untrusted content separate from authority
Retrieved text and user documents can contain instructions. Treat them as task data. Authorise tool operations in application code, validate structured output and give the model a clear path for reporting missing information.
Version the whole setup
Record the prompt, model configuration, tool definitions and evaluation inputs. Re-run meaningful cases after changing any of them. Keep examples of failures so a wording improvement in one area does not quietly weaken another.
How should production prompts be versioned and evaluated?
A prompt is one component of an application boundary. The product also determines what context is supplied, which tools exist and what happens when a response cannot be used. Write that contract before tuning the wording.
