Module 01 Activity
Scenario
You are about to add an AI feature to an existing application. Establish what changes about the engineering before writing any of it.
What you build
A boundary document with enforceable prohibitions, and a pipeline diagram marking the one non-deterministic step.
Steps
- Call a model three times with the same prompt and record the three outputs. Say what an exact-match test would do.
- List the five failure outcomes and what each costs. Identify the one where you cannot tell whether the call succeeded.
- Draw your pipeline and mark each step deterministic or not. There should be one non-deterministic step.
- Place the validation immediately after it and say what is guaranteed past that point.
- Write the must-never list, and give every line an enforcement that is not a prompt instruction.
- Turn two of those lines into tests.
Evidence to hand in
- Three outputs from one prompt.
- The failure table with costs.
- The pipeline diagram with the non-deterministic step marked.
- The must-never list with the enforcement column.
- Two tests derived from it.
Review checklist
- The pipeline has exactly one non-deterministic step.
- Validation sits immediately after it.
- Every must-never line has a non-prompt enforcement.
- At least two prohibitions are now tests.
- The timeout case is identified as ambiguous rather than failed.
