01Write the acceptance criteria
Define task, audience, inputs, constraints, and output shape. Put stable application policy in higher-authority instructions, user intent in user input, and label untrusted retrieved text as data.
A prompt specification should identify the task, permitted evidence, output contract, and behavior when evidence is insufficient. For ticket triage, define urgency with business criteria instead of “be accurate.” State what to do when two categories fit or a customer includes instructions inside the ticket. Examples should demonstrate the decision boundary, including ambiguous and negative cases.
Separate trusted instructions from untrusted task data. Clearly delimit the ticket, but remember that delimiters are communication aids, not a security boundary. Authorization and allowed effects remain in code. A prompt can request a behavior; it cannot reliably grant or enforce a permission. Design the surrounding system so a misclassified or injected instruction cannot directly perform a consequential action.
- Examples resolve ambiguity but consume context
- Delimit data from instructions
- State what to do when information is missing