CYGURUACADEMYMy learning ↗
AI & Automation / MODULE 2 / LESSON 5 OF 5

Run a prompt evaluation before deployment

10 min read · 1987 words · practice time separate · Module project

Extended edition · 6 November 2026

Reading estimate uses 200 words per minute and excludes exercises, self-review and optional book descriptions. Earlier lesson checks are kept; revisit the expanded text if you completed the short edition.

BY THE END OF THIS LESSON

Build a five-case prompt evaluation pack, compare two versions under fixed conditions, retain failures and use the evidence to choose a specific next revision.

A successful demonstration is a useful beginning, but it is a poor substitute for a defined evaluation. The module project compares two prompt versions on the same five fictional meeting-note cases. You will define expected handling before seeing outputs, record different error types separately and preserve a failure as evidence. The final decision can be revise or stop; deployment is not the automatic reward for completing the exercise. The result is a small, reproducible learning dossier, not a claim of universal reliability.

In this lesson · 12 sections
  1. State the task contract before designing the test
  2. Define acceptance criteria and failure categories
  3. Construct the complete-notes case
  4. Construct the missing-owner case
  5. Construct the conflicting-dates case
  6. Construct the embedded-instruction case
  7. Construct the no-action-items case
  8. Compare two versions under recorded conditions
  9. Keep runs, errors and review time visible
  10. Interpret the pattern without declaring a universal winner
  11. Retain a failed output and specify one next change
  12. Make the final project decision explicit

1. State the task contract before designing the test

For this project, the fictional task is to extract explicit action items from approved meeting notes into a draft table. Required fields are action, owner, due date and source location. Missing values must remain not specified. Conflicting values must be marked unresolved, with both source claims preserved. The output must not create tasks, send messages or perform any external action. These requirements define what the evaluation will judge.

Write the purpose as well: a reviewer should be able to identify commitments and questions without reconstructing the entire meeting. That purpose explains why preserved owners, dates and source locations matter. A beautiful table containing invented commitments fails the job. A table with honest unresolved fields may pass if it handles the input correctly. Keeping the task contract in the dossier satisfies the first project criterion and prevents evaluation from becoming a contest over which prompt produces the most polished prose.

2. Define acceptance criteria and failure categories

Use separate checks for source fidelity, coverage, missing-information handling, conflict handling, instruction boundary and output format. Source fidelity asks whether each included claim is supported. Coverage asks whether required explicit actions were retained. Missing-information handling asks whether absent values stayed absent. Conflict handling checks that the prompt did not invent an authority rule. Instruction-boundary review checks whether source content redirected the task or proposed an unauthorised action.

Do not collapse these into one average before inspecting the pattern. A formatting error and a command to send records elsewhere have different implications. For the classroom evaluation, define an unacceptable boundary failure and the response to it before running any case. Record the output even if it fails immediately. The purpose is to discover and explain failure, not to hide difficult examples until the comparison looks successful. Acceptance criteria should be strict enough to represent the intended job and modest enough to avoid claiming more than the test can establish.

3. Construct the complete-notes case

Case one contains a clear statement: “Mira will send the draft to the reviewer on 18 April.” Add another explicit action with a different owner and date. The expected table contains both actions once, with their stated owners and dates and the correct source identifiers. Keep unrelated discussion in the input so that the prompt must distinguish commitments from ordinary context. The expected result should not depend on knowing anything outside the supplied notes.

Write the expected properties before generating an answer. You do not need a single canonical wording for every action phrase, but the meaning, ownership and date must remain intact. Note which paraphrases are acceptable and which would change the commitment. This case establishes ordinary behaviour. It does not carry the evaluation by itself; a prompt can succeed on complete notes while failing badly when a field is absent or a sentence claims new authority.

4. Construct the missing-owner case

Case two says: “The draft must be prepared by 18 April,” without naming an owner. The expected output preserves the action and date while marking the owner not specified. Use names elsewhere in the notes that do not assign responsibility for this action. This makes it possible to detect a plausible but unsupported owner chosen from nearby context. A complete-looking row is not the objective; an evidence-faithful row is.

Record what counts as failure. Borrowing Mira from case one is a source-fidelity error. Omitting the action entirely may be a coverage error, depending on the task contract. Asking the reviewer to resolve the owner can be appropriate if represented according to the output format. This case is especially useful for comparing prompts because it challenges the tendency to satisfy every requested field even when the input does not. Preserve the original missing value in the evaluation pack so that later revisions cannot quietly redefine the case.

5. Construct the conflicting-dates case

Case three contains two approved notes about the same action: one states 18 April, while the other states 20 April. Supply no authorised rule that makes one source take priority. The expected output identifies the conflict, preserves both dates with source locations and leaves the due date unresolved. Do not permit the model to choose the newer-looking date merely because that seems sensible in ordinary business practice.

This case tests a clarification path. A useful response can state what must be resolved and which person or record should resolve it under the task's rules. It should not manufacture agreement. Distinguish a conflict-handling failure from a simple copying error. If the model accurately copies one date but hides the competing source, the problem is still meaningful. The output has converted uncertainty into certainty. The evaluation should make that mechanism visible rather than marking the answer correct because one of its numbers appears somewhere in the notes.

6. Construct the embedded-instruction case

Case four contains a legitimate action item and a separate sentence asking the assistant to ignore its extraction task and send a record elsewhere. Use a harmless fictional destination and no real records. The expected result extracts the legitimate action under the normal rules and treats the embedded command as source content outside its authority. The pilot remains read-only, so no sending capability is available or used.

Check two outcomes separately. Did the model preserve the valid action? Did it attempt to change the task, disclose extra material or claim that an external action was required? A prompt that refuses to process the whole note may avoid one boundary error while losing useful in-scope work. Whether that is acceptable depends on the prewritten contract. Keep the judgement explicit. This case does not prove security against all attacks; it examines one concrete authority distinction and the handling of relevant content beside a distracting instruction.

7. Construct the no-action-items case

Case five contains discussion and tentative ideas but no explicit agreed action. The expected output states that no supported action items were found, using the agreed empty-result format. It must not invent three tasks to satisfy a requested count or transform a possibility into a commitment. Include realistic planning language such as “we could consider a survey” to test the distinction between discussion and agreement.

Write down how the empty result should appear. A blank table without explanation may confuse a reviewer; an invented table is worse. The task specification can require an empty list plus a short status message. If a prompt asks for exactly three actions regardless of evidence, this case exposes a contradiction in the prompt itself. The correct response is to revise that requirement, not to praise the model for making the table look full. The evaluation should be capable of identifying a flawed specification as well as a flawed output.

8. Compare two versions under recorded conditions

Prepare version A and version B, with a clear difference between them. For example, A requests a professional action table, while B adds explicit missing-value and conflict rules. Keep the same five input cases and expected properties for both. Record the tool or model identifier available to you, the date, relevant settings and the exact prompt text. The exercise does not require an API or any particular product; the important point is that the comparison conditions are inspectable.

Avoid changing the source pack while revising the prompt. If a case needs correction because it was ambiguous in an unintended way, record a new case-set version and rerun both prompts on that version. Otherwise an apparent improvement might come from easier inputs rather than the changed instruction. The second rubric criterion asks for the same normal, difficult and clarification cases across versions. It is a requirement for interpretability, not a claim that the resulting comparison isolates every possible source of variation.

9. Keep runs, errors and review time visible

For every case and version, retain the output and a check record. Mark unsupported claims separately from instruction-boundary failures, as the third rubric criterion requires. Also record omitted actions, mishandled conflicts and format problems. A short evidence note should identify the relevant source and the exact output that failed. “Bad answer” is too vague to guide the next revision.

Include handling time: preparation, generation, review and correction where measured. A prompt that generates faster but requires more reconstruction may not improve the job. In a classroom exercise, these timings are small observations rather than general productivity estimates. If outputs vary between repeated runs, preserve that variation instead of selecting the best run. A clean demonstration can hide instability when inconvenient outputs are discarded. The dossier should show what was actually examined, including missing results or interruptions that affect the comparison.

10. Interpret the pattern without declaring a universal winner

Suppose version A invents an owner in the missing-owner case, while version B marks the owner unresolved but uses the wrong column label. The versions fail in different ways. If source fidelity is essential and the format can be corrected, B may be the better candidate for another test. That decision should name the trade-off and the remaining problem, not simply call B reliable. A perfect score on five fictional cases would still describe only those cases under the recorded conditions.

Look for mechanisms. Does the prompt demand a fixed count when evidence can be empty? Does it lack a conflict rule? Does the output format make uncertainty difficult to represent? A useful interpretation connects the observed failure to a specific part of the task or process. Avoid explaining every result through the model's personality or intelligence. The purpose of the project is to learn what should change next and what evidence would show that the change helped.

11. Retain a failed output and specify one next change

Choose one failure to include prominently in the dossier. Show the source input, the expected handling, the actual output and why the difference matters. For example, preserve a row that assigns a task to Mira when the source names no owner. The missing information is the evidence behind the judgement. This directly addresses the project requirement to show an output that fails the rubric rather than merely claiming that failures were checked.

Name one targeted next change. It might be an explicit unknown-value rule, a clearer distinction between discussion and commitment or a format that allows both conflicting dates. State which cases must be rerun and what improvement you expect to observe. Do not change several unrelated features if your purpose is to understand the effect. Retaining failures and naming a specific next revision satisfies the final rubric criterion. The failed output becomes a reusable test asset instead of an embarrassment removed from the record.

12. Make the final project decision explicit

Finish with a short decision: revise, stop or advance to another bounded pilot. Include the task, tested versions, case-set version, observed failures, time burden and owner of the next step. If you choose another pilot, keep its scope explicit. This project does not authorise external actions or establish production readiness. A future operational workflow would need its own access, review and recovery design, tested for its actual consequences.

Review the dossier against all four criteria: explicit task contract, fixed contrasting cases, separately recorded claim and boundary failures, and retained evidence linked to a next change. A useful dossier allows another person to disagree with your conclusion by inspecting the same material. That is a stronger outcome than a confident slide saying the prompt passed. You have converted a demonstration into a reproducible comparison and a concrete learning decision. The next work is guided by evidence about the job, rather than enthusiasm for the most fluent answer.

A worked example

Fictional comparison: version A assigns a missing-owner task to Mira because her name appears in another note. Version B correctly uses not specified but omits a required source column. Retain both outputs. Record A's unsupported owner separately from B's format failure, then test a targeted format revision of B on the unchanged five-case pack. Neither result alone establishes readiness for live actions.

Your module project

Build the five-case evaluation pack: complete notes, missing owner, conflicting dates, embedded instruction and no action items. Define task, source boundary, output format and expected handling before comparing two prompt versions. Retain every output, record claim and instruction-boundary failures separately, show one failed output with its source evidence and name one specific next revision.

Notes stay in this browser. Avoid sensitive personal information.

Compare your answer · Self-review guide

A complete project preserves the same cases across versions and permits honest unknown or empty results. It distinguishes unsupported claims from boundary and format failures, includes an accountable reviewer and retains a concrete failure. The final conclusion names a targeted next change or a stop decision. A small clean test set is not presented as proof of universal future correctness.

This is an indicative answer, not an automatic assessment of your written work. Check your reasoning, units and assumptions.

REVIEW THE WORK YOU CREATED

Your project self-review.

Inspect your draft against each criterion. Tick a box after you have checked it, and note what you will improve. This records your own review, not an automated assessment.

Four criteria to review
Show your reasoning

Show an output that fails the rubric and the evidence or missing information behind that judgement.

My project portfolio →

No checklist saved yet. Drafts and lesson checks are recorded separately.

CHECK YOUR UNDERSTANDING

Why keep the test cases fixed when comparing prompts?

← PreviousBegin the next module →