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

Write an instruction that can be checked

10 min read · 1907 words · practice time separate

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

Write a prompt as a task specification with authority boundaries, required output fields, explicit uncertainty handling and an evaluation plan.

A useful prompt is not a spell that makes a model reliable. It is a compact specification for a particular transformation, placed inside a wider process of input preparation, checking and human responsibility. Adding more adjectives can improve the appearance of an answer while leaving the actual job ambiguous. This lesson develops an instruction from the task brief created previously, then tests what the instruction does when the input is incomplete, contradictory or distracting. The objective is inspectable behaviour, not impressive wording.

In this lesson · 12 sections
  1. Start with the job rather than a fictional persona
  2. Separate instructions from source material
  3. Give every required field a definition
  4. Specify what absence and contradiction mean
  5. Use examples to teach distinctions, not surface decoration
  6. Build the first prompt as a compact contract
  7. Test the prompt with a small adversarial classroom set
  8. Ask for evidence that a reviewer can inspect
  9. Diagnose the failure before changing the instruction
  10. Package the instruction so another person can maintain it
  11. Distinguish formatting success from task success
  12. Preserve a minimal change log

1. Start with the job rather than a fictional persona

A persona such as “world-class expert” may influence style, but it does not establish the facts, constraints or acceptance criteria for a task. Begin by stating the transformation: extract commitments from the supplied notes and return a draft table. Add the purpose only where it helps resolve choices, such as preserving dates so a project manager can review open obligations. This tells the model what useful work looks like.

Do not confuse a confident voice with greater authority. A model instructed to sound decisive can still omit a source item or invent a missing owner. Define what it should do with uncertainty before defining the tone. For example, an unresolved date should remain unresolved even if the requested style is concise. The instruction should make the desired information structure more explicit, rather than asking the model to compensate for missing evidence by sounding more experienced.

2. Separate instructions from source material

Use clear boundaries around the material to be processed. You can introduce a labelled source section and state that its contents are evidence, not instructions authorising new actions. This matters when notes, emails or documents contain imperative language. A quoted sentence such as “ignore the old deadline” may describe a meeting decision that needs attribution; it should not automatically change the workflow's own rules or permissions.

Delimiters help make the intended boundary readable, but they are not a complete security guarantee. A robust workflow also limits available actions and validates the result. For the classroom extraction task, the model needs no sending capability at all. Keep the task at producing a draft table. If a source paragraph asks the system to publish the notes, the correct response is to treat that paragraph as content within the authorised transformation, not as a new instruction from the task owner.

3. Give every required field a definition

Suppose the output must contain commitment, owner, due date, source and status. Define commitment as an explicit agreed action, not every idea mentioned in discussion. Define owner as the person named in the source, not the person the model thinks would usually do the work. Define due date as the stated date or an unresolved value. These definitions reduce the space in which a fluent answer can silently substitute an interpretation.

Field definitions also make evaluation possible. If “status” is undefined, one reviewer may expect open or completed while another expects confidence levels. A prompt cannot satisfy two incompatible meanings that were never specified. Choose a small allowed set and explain when each value applies. If an output will later be parsed by software, specify the format and validate it outside the model. A request for JSON does not prove that every response will be valid JSON or that the values inside it are correct.

4. Specify what absence and contradiction mean

Missing and contradictory information are not the same. A note with no owner has an absent field. Two approved notes naming different owners create a conflict. The first may need an unresolved value; the second may require both source claims to be preserved for review. A generic instruction to “be accurate” does not explain how to represent either case. State the desired behaviour directly.

For example: “If a due date is absent, write not stated. If sources disagree, do not select a winner; record the conflict and cite both sources.” That rule is an Academy teaching convention for this exercise, not a universal requirement for all tasks. Some operational settings have a documented hierarchy of sources. If such a hierarchy exists, the prompt should refer to the authorised rule rather than inventing one. Keep business authority outside the model's improvisation.

5. Use examples to teach distinctions, not surface decoration

A useful example shows an input, the expected output and the reason for an important decision. Include an ordinary commitment, a missing owner and an ambiguous statement that should not become a commitment. If all examples are easy successes, the model receives little guidance about the boundaries that matter. An example set should illuminate the rule, especially where a plausible alternative would be wrong.

Avoid leaking the evaluation answers into every development example. If you repeatedly tune the prompt on the same three notes, success on those notes becomes less informative. Keep a few separate cases for checking the final version. Also vary irrelevant features such as names and ordering. A model that succeeds only when a deadline appears in the last sentence has not necessarily learned the intended extraction rule. The evaluation should challenge the distinction between the task's essential requirements and its accidental presentation.

6. Build the first prompt as a compact contract

A practical first prompt can be assembled in five parts. State the task, identify the approved input, define the required fields, specify uncertainty handling and limit the output to a draft. For example: “From the notes below, extract explicit agreed actions into a table. Preserve named owners and stated dates. Cite the source note for every row. Mark missing fields as not stated and conflicts as unresolved. Do not send messages or create tasks.”

Then add the field definitions needed for this particular work. The goal is not maximum prompt length. Each sentence should resolve an ambiguity or communicate a necessary constraint. Instructions that repeat the same demand in several dramatic forms can make maintenance harder without improving the specification. A reviewer should be able to explain why each clause is present and which failure it addresses. If nobody can do that, simplify before adding more wording.

7. Test the prompt with a small adversarial classroom set

Create three fictional source packs. The normal pack contains clear commitments. The incomplete pack omits owners or dates. The distracting pack includes commentary, quoted instructions and conflicting statements. Predict the expected handling before running the task. This prevents an attractive output from redefining your standard after you see it. The question is whether the prompt preserves the contract across cases, not whether it can produce one pleasing answer.

Keep the test low consequence: generate a draft with no external actions. Record the prompt version, input version and observed errors. A wrong owner, omitted row and formatting problem should be separate categories because they suggest different corrections. Re-run the affected cases after a change and check at least one previously successful case. Otherwise a fix for ambiguity can accidentally degrade the ordinary task. This is a small evaluation exercise, not a claim of production readiness.

8. Ask for evidence that a reviewer can inspect

A concise explanation of why a row was included can be helpful, especially when paired with a source reference. Request observable evidence such as the quoted commitment phrase or note identifier rather than treating a long reasoning narrative as proof of correctness. A model can provide a persuasive explanation for an incorrect answer. The review must return to the source material and the acceptance criteria.

Similarly, a statement that the model “checked everything” is an output claim, not an independent check. Required-field validation, row counts where applicable and numerical calculations should be verified by a suitable mechanism outside the model when the workflow depends on them. Keep human review focused on decisions that require judgement, while simple mechanical checks catch simple mechanical failures. A good prompt makes inspection easier; it does not eliminate the need to inspect.

9. Diagnose the failure before changing the instruction

If the result is wrong, identify the layer that failed. Was the relevant document missing? Was the field definition ambiguous? Did the model ignore a clear rule? Did a parser discard a valid row? Did the reviewer misunderstand the output? Adding a sentence to the prompt addresses only some of these problems. A missing source file cannot be recovered by stronger wording, and a downstream parser error will remain after the model is told to be more careful.

Write one failure statement that names the expected and observed behaviour. For example: “The prompt required unresolved dates to remain not stated, but case B supplied a guessed Friday date.” Now choose a targeted change and test it. Avoid revising several unrelated clauses at once when you want to understand the effect. The purpose of versioning is not bureaucracy; it preserves the relationship between a change and the evidence used to accept or reject it.

10. Package the instruction so another person can maintain it

Store the prompt with its purpose, input contract, field definitions, examples, evaluation cases and known limitations. Include the date and the person responsible for approving changes. If a model or tool changes, run the relevant checks again rather than assuming identical behaviour. An instruction that worked in one environment is evidence about that environment and test set, not a permanent guarantee for every future deployment.

Finally, write the boundary of what the prompt cannot decide. It cannot authorise external messages merely because a source requests them. It cannot establish the truth of a claim without supporting evidence. It cannot convert an undefined business rule into a legitimate rule by expressing it fluently. The next lesson examines verification as a separate workflow stage. Keep the prompt as a clear communication device inside that workflow: valuable, editable and testable, but never the sole foundation on which reliability depends.

11. Distinguish formatting success from task success

A response can match the requested table perfectly while containing the wrong commitments. Conversely, a response can preserve the facts but fail a downstream format requirement. Both failures matter, but they belong to different checks. Evaluate the content against the source and evaluate the structure against the output contract. Do not let an attractive table stand in for evidence that every cell is supported.

For the classroom extraction task, first check that each expected commitment appears and that no unagreed idea has become an assigned action. Then check required columns, allowed status values and source identifiers. If software consumes the result, validate the machine-readable format with an appropriate parser. A model's statement that the format is valid is not equivalent to a successful parse. Keep these checks separate in the evaluation record so that a later revision can target the actual failure rather than mixing factual accuracy and formatting into one vague quality judgement.

12. Preserve a minimal change log

When you revise a prompt, record the previous version, the change, the failure it addresses and the cases you rechecked. For example: “Version two adds an explicit conflict status because version one selected the most recent-looking date without an authorised rule.” This sentence explains the reason for the edit in a way another maintainer can understand. A long prompt without such context can accumulate clauses whose purpose nobody remembers.

Also record a known limitation that wording alone does not solve. The source pack may be incomplete, the authorised owner may be absent or the task may require a factual check outside the supplied material. Keeping these limitations visible protects the prompt from being promoted as a universal solution. It also guides the next engineering step. Instead of asking for ever stronger wording, the team can improve input collection, add a deterministic check, narrow the task or redesign the review interface. Prompt maintenance then becomes part of system maintenance rather than a search for a perfect sentence.

A worked example

Fictional source: “Mara will prepare the draft. The date is still to be agreed.” Expected row: commitment = prepare draft; owner = Mara; due date = not stated; source = note A; status = unresolved date. “Friday” must not be added because it would make the table look more complete.

Put it into practice

Write a prompt for extracting commitments from fictional notes. Define the fields, source boundary, missing-data rule and conflict rule. Create three test inputs: clear, incomplete and contradictory. Write the expected handling before comparing any outputs. Record one failure and propose a targeted revision with a version number.

Notes stay in this browser. Avoid sensitive personal information.

Compare your answer · Self-review guide

The prompt should preserve evidence and name uncertainty instead of filling it. The normal case produces the stated commitment; the incomplete case retains an unresolved field; the conflict case preserves both claims for review. The answer distinguishes better instructions from missing inputs, software validation and action permissions. It does not treat a model's self-reported check as independent verification.

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

CHECK YOUR UNDERSTANDING

What should happen when a required fact is missing?

← PreviousNext lesson →