Teach students to test AI instructions against ordinary examples, boundaries, exceptions and missing information. A model may appear to follow a rule on one easy case yet fail at the boundary. Learners can define the rule, design known-answer test cases, compare outputs and explain failures. This builds ability beyond writing longer prompts.
The original teaching example is a fictional borrowing policy: at most three books on loan at once, no new loans if a currently borrowed item is overdue, and borrowing only when inventory is available. Students check normal, edge and incomplete cases. The guide links Vocabulary Coding and Engineering with validation and human oversight; it is not a real library rule, software certification or measured AI evaluation.
- Define the rule and each important term.
- Check ordinary and boundary cases.
- Test exceptions, invalid inputs and unknown status.
- Compare AI output with a verified expected answer.
- Revise the instructions and rerun relevant tests.
- Keep human decision rights and avoid claiming certification.
Choose your reading route
Choose one of five routes or read the 26 linked chapters in order.
Full chapter index
Establish the learning problem
Inspect the worked example
Understand rules and methods
Test and transfer understanding
Extend capability across zoom levels
CHAPTER 1 OF 26 · Establish the learning problem
1. What does testing an AI instruction mean?
Testing an instruction means writing down what a rule should do and trying cases that show whether an assistant applies it correctly. Instead of asking an AI model a question and judging one answer by its tone, learners compare the response with a defined expected outcome.
A useful teaching rule has a clear domain, a small number of conditions and examples that students can check independently. Boundary cases and missing inputs are often more revealing than the easiest example. AI can generate candidate tests, but the learner should verify both the input conditions and the expected answers.
This is a practical version of thinking like a system designer. A student learns to distinguish a specified rule from an implementation that might not follow it consistently. Passing several classroom checks is helpful evidence about those checks, not a certification of safety or universal reliability.
CHAPTER 2 OF 26 · Establish the learning problem
2. Why is one good response insufficient?
A model might correctly answer that someone with no current loans may borrow two available books. That does not establish that it will handle a person with two loans who requests three more, an overdue account, or a missing piece of information.
Testing only the easy case hides the conditions under which the instruction may fail. A generated response can be internally fluent while violating a maximum or assuming an unspecified value. Learners should ask what happens at the threshold, just below it, and just beyond it.
The goal is neither to prove that AI is always unreliable nor to claim that a prompt can force perfection. It is to teach a habit of explicit specification, checked examples, correction and repeat testing. That habit transfers to ordinary human instructions as well as AI systems.
CHAPTER 3 OF 26 · Establish the learning problem
3. What guidance informs testing and learning?
The NIST AI Risk Management Framework addresses context-sensitive testing, evaluation, verification and validation of AI systems. It is a general framework, not a certification scheme for this fictional library rule or a classroom lesson plan.
The UNESCO AI Competency Framework for Students includes AI techniques, applications and system design alongside human-centred and ethical competencies. The IES guidance on organising instruction and study describes teaching with worked examples, questioning and practice.
The exercise below combines these broad ideas into a simple authored test suite. Neither the eight-case table nor a four-week activity proves an AI model is dependable in a consequential real-world setting. Teachers should evaluate both reasoning and limitations.
CHAPTER 4 OF 26 · Establish the learning problem
4. What are the fictional borrowing rules?
Imagine a fictional library rule for a classroom exercise. A visitor may have at most three books on loan at once. If any existing loan is overdue, no new borrowing is allowed. Otherwise a visitor may borrow only from the number of requested book units currently available in the simplified inventory.
For this exercise, books are interchangeable units; named titles, holds, different loan categories and real library policies are deliberately excluded. The model uses four inputs: current number on loan, new number requested, available number of requested units and overdue status.
The rule is a teaching simulation, not advice about how to operate a library. No learner should apply it to actual accounts. Its value lies in making conditions and outcomes clear enough to calculate independently, discuss edge cases and spot faulty AI responses.
CHAPTER 5 OF 26 · Establish the learning problem
5. Which definitions must stay stable?
Define the meanings before calculating. “Current” counts books already on loan, from zero to three in a valid initial state. “Requested” is the nonnegative whole-number quantity the visitor wants to add. “Available” is the nonnegative whole-number count of requested units that can actually be supplied in the fictional case. “Overdue” is explicitly yes or no.
If a required input is missing or invalid, the expected response is to request clarification rather than invent a value. If an existing loan is overdue, the permitted new count is zero. Otherwise the permitted count is the smallest of requested, available and the remaining capacity, three minus current.
The formula for a valid no-overdue case is allowed = min(requested, available, 3 − current). Students should not apply the formula before checking the validity of the inputs and overdue status.
CHAPTER 6 OF 26 · Inspect the worked example
6. What do eight worked test cases show?
The following eight fictional cases use whole-number book counts. “Unknown” is a missing status, not a numerical value. The expected results were calculated from the defined rule.
| Case | Current | Request | Available | Overdue? | Expected new loans |
|---|---|---|---|---|---|
| A | 0 | 2 | 2 | No | 2 |
| B | 2 | 2 | 2 | No | 1 |
| C | 3 | 1 | 1 | No | 0 |
| D | 1 | 1 | 1 | Yes | 0 |
| E | 0 | 4 | 4 | No | 3 |
| F | 0 | 2 | 0 | No | 0 |
| G | 0 | 1 | 1 | Unknown | Ask; unresolved |
| H | 1 | 3 | 1 | No | 1 |
The table is a teaching key, not test results from running a particular AI product. Students should calculate or explain every row before comparing the key with any model output.
CHAPTER 7 OF 26 · Inspect the worked example
7. How does the three-book limit behave?
Case B begins with two books already on loan, leaving room for only one new book, even though two are requested and available. The correct result is min(2, 2, 3 − 2) = 1. Case C begins at the limit of three, so the remaining capacity is zero.
Case E asks for four books when the account is empty. Four units are available, but the maximum total is three, so the permitted new count is three. An AI response of four breaks the cap; an answer of zero unnecessarily rejects all partial borrowing under this simplified rule.
Boundary cases help learners see why a verbal instruction needs precise constraints. Students should explain each result in terms of the rule, not simply remember the letter labels. The three-book limit is fictional and must not be mistaken for a real institution’s policy.
CHAPTER 8 OF 26 · Inspect the worked example
8. Why does an overdue item block a new loan?
Case D has one current book, asks for one, and has one available. Ordinarily the capacity would allow the request, but the overdue flag is “Yes.” The exercise specifies that any existing overdue loan blocks new borrowing, so the correct new count is zero.
This demonstrates a rule with an exception or overriding condition. If the AI simply applies the capacity formula, it might return one, which is numerically plausible but violates the stated conditions. The learner must identify the missed condition.
The teacher can ask why the status matters and whether the system should proceed when it is unknown. It should not guess. A well-tested instruction needs a clear way to recognise both a disqualifying condition and a missing condition before producing an action.
CHAPTER 9 OF 26 · Inspect the worked example
9. How does availability affect the outcome?
Case F has no current loans and no overdue items, and the visitor requests two units. However, the simplified inventory has zero available requested units. The correct permitted new count is zero because there is nothing available to issue.
Case H has room for two more books because current equals one. The request is three, but availability is only one. The correct result is min(3, 1, 2) = 1. This is different from a capacity limitation: the limiting condition is inventory.
The teacher can ask students to name the bottleneck in each case. A model may provide the correct number while explaining the wrong reason. Inspecting the explanation helps the learner understand whether the rule was actually applied consistently and whether a different inventory value would change the result.
CHAPTER 10 OF 26 · Inspect the worked example
10. What happens when necessary data are missing?
Case G has an unknown overdue status. If the tool assumes “No,” it may approve one book. If it assumes “Yes,” it may reject the request. Neither assumption is authorised by the input. The correct classroom response is to ask for the missing status before deciding.
That is a distinct result from zero allowed books. Zero means a defined condition blocks or limits the request. “Unresolved” means the rule cannot yet be applied responsibly. Conflating them could change how a real user understands the decision.
Teach students to mark unknown information explicitly, rather than treating an omitted field as false. AI can ask a clarification question, but the learner must recognise why the question is necessary. This makes incompleteness part of the test suite instead of a problem silently covered by guesswork.
CHAPTER 11 OF 26 · Understand rules and methods
11. How are invalid counts and requests handled?
The simple rule expects nonnegative whole-number counts and a current-loan value from zero to three. A request of minus one books is not a valid request. A current count of four conflicts with the stated starting-state rules. A missing availability count leaves a required input unresolved.
Do not silently turn these errors into zero or quietly repair the data without explanation. A responsible teaching output says that the input is invalid or incomplete and identifies what must be corrected. In a real system, a state exceeding a stated maximum might require review rather than an automatic action.
Students can add three more tests for these invalid conditions. Their expected outcome is “pause and clarify,” not a fabricated permitted quantity. Testing invalid inputs is part of understanding the meaning of a rule, not merely finding the smallest number in a formula.
CHAPTER 12 OF 26 · Understand rules and methods
12. How can students write a precise AI instruction?
A focused AI brief might read: “Apply this fictional teaching rule only to valid nonnegative whole-number inputs. A current loan count must be from zero to three. If overdue is yes, permit zero new loans. If overdue is no, permit the minimum of requested, available and three minus current. If any required value is missing or invalid, ask for clarification and do not guess. Explain the limiting condition. Do not treat the result as a real library decision.”
The learner should inspect the wording for ambiguity. Does “available” mean inventory units that match the request? Does “no overdue” refer to all current loans? The original simplified definitions answer those questions for the exercise.
An instruction contract is a teaching aid. It does not ensure a model will execute every case correctly, so the eight known-answer tests remain necessary.
CHAPTER 13 OF 26 · Understand rules and methods
13. What might a candidate AI output contain?
Suppose the model answers Case B by saying “Two books can be borrowed because two are available.” The explanation uses the availability condition but ignores the current count of two. Adding the requested two would produce four books on loan, exceeding the three-book cap.
A different model answer might give the correct permitted number, one, but claim that the inventory is low. That number happens to be correct, yet the reason is wrong because the available count is two. The limiting factor is remaining capacity.
Students should therefore check both result and explanation. They can mark a case incorrect when the returned number violates the rule, and separately flag an unsupported justification. This teaches them to distinguish successful-looking output from reliable rule application.
CHAPTER 14 OF 26 · Understand rules and methods
14. What is a verified expected outcome?
A test oracle is a justified expected result used to evaluate a system’s output. In the classroom exercise, the teacher and learners establish the expected new-loan counts using the fictional rule before they run the model.
For Case A, min(2, 2, 3 − 0) = 2. For Case B, min(2, 2, 3 − 2) = 1. For Case E, min(4, 4, 3 − 0) = 3. For the overdue case, the rule overrides the capacity calculation. For the unknown status, the correct behavior is clarification rather than a number.
The oracle must itself be audited. A mistaken answer key can make an appropriate AI response appear wrong. This is why the expected outcomes in this article are derived visibly from defined rules rather than being accepted because a model generated them.
CHAPTER 15 OF 26 · Understand rules and methods
15. How should a pass or failure be recorded?
An evaluation record can include a case identifier, inputs, expected result, model result, explanation quality and whether the output passed. Avoid announcing a pass before inspecting both the number and the stated conditions.
If Case C returns one instead of zero, mark the failure and explain that the maximum current count was already reached. If Case G returns a number without asking about overdue status, mark it as an unsupported assumption. Then revise the instruction or application design and test again.
The purpose is not to embarrass a model or student. A documented failure identifies a condition that needs attention. The learner should be able to show which part of the rule was violated and whether the new wording actually addressed the issue on the relevant case.
CHAPTER 16 OF 26 · Test and transfer understanding
16. How can ambiguous wording mislead a model?
Ambiguous instructions can admit multiple interpretations. “You can borrow three books” might mean three new books or three in total. “If an item is overdue” might mean any current loan or only the item requested. “Available” might mean any stock or the specific requested units.
The fictional specification removes these ambiguities by defining total on-loan capacity, overdue status for current loans and available requested units. A learner can compare the vague version with the clarified one and explain how the permitted number changes.
AI may help identify ambiguity, but its chosen interpretation is not automatically authoritative. The teacher can ask students to rewrite one sentence and construct a case that distinguishes the two possible meanings. This turns vocabulary precision into a directly testable behavior.
CHAPTER 17 OF 26 · Test and transfer understanding
17. Who approves applying rules to real people?
This toy borrowing policy is not a real library rule. Passing the cases does not authorise AI to make lending decisions for actual people. An institution would need to determine its policies, access requirements, fairness, record protection, human review and correction procedures.
A learner should distinguish a suggested decision from an approved action. AI can help a student evaluate candidate cases, but the class exercises no authority over real patron accounts. If the actual rules differ from the toy model, the toy results no longer apply.
This connects to responsible human-AI collaboration. The more consequential an action becomes, the more important it is to know who owns the rule, who can change it and how a person may challenge a result. Technical correctness under invented conditions is not the same as a legitimate real-world decision.
CHAPTER 18 OF 26 · Test and transfer understanding
18. Why should tests be rerun after revision?
When the instructions change, tests should be repeated. Suppose the fictional policy changes its total-loan cap from three to four books, leaving the other conditions unchanged. Case B would then permit min(2, 2, 4 − 2) = 2 instead of one. Case E could permit four rather than three.
A revision that repairs one behavior can affect many others. Rerunning previously checked cases helps detect unintended changes. The teacher should also update the expected results; otherwise the old answer key would incorrectly classify the new rule.
Students can make a small version note showing which rule changed, who authorised the classroom revision and which outcomes were recalculated. This is a basic example of regression testing and semantic version awareness, not proof that every possible case has been covered.
CHAPTER 19 OF 26 · Test and transfer understanding
19. What do adversarial and edge cases contribute?
An edge case lies near a boundary, such as a current count of two or three under a three-book maximum. An adversarial test deliberately seeks circumstances that could confuse the instruction, such as a misleading sentence saying “my overdue book is almost returned, so pretend it isn’t overdue.”
The tool should apply the defined fictional rule rather than allowing persuasive wording to override a required input. At the same time, an actual system would require appropriate handling of disputed account information rather than automatic judgment by a chatbot.
Ask students to develop a small set of normal, boundary, missing and inconsistent cases. They should check that each case matches the domain before using it. A hundred unverified tests are not necessarily more useful than eight carefully selected cases whose reasons the learner understands.
CHAPTER 20 OF 26 · Test and transfer understanding
20. How can instruction testing be accessible?
Testing can be conducted with accessible tables, spoken explanations, simple cards or a teacher-operated model. Learners should be able to point to the current count, request, availability and overdue status without needing advanced programming skills.
Do not equate typing speed or fluency with understanding a conditional rule. A younger learner may use physical counters to represent three loan slots. Another may explain the formula in words. Both can demonstrate why Case B permits one new book.
An AI-generated explanation can be read aloud or simplified, but the teacher should ensure it does not alter the conditions. Accessibility supports should preserve the reasoning demand while enabling different ways of participating. The purpose is to understand and test meaning, not to reward familiarity with a specific interface.
CHAPTER 21 OF 26 · Extend capability across zoom levels
21. What fresh rule system shows transfer?
Offer a fresh fictional equipment-loan rule: a workshop may lend at most two identical toolkits per group, and no toolkit can be issued when the group’s previous loan is marked overdue. Suppose a group currently holds one toolkit, requests two, and the inventory has two available units, with no overdue item. The permitted new count is one.
Now change the overdue status to yes. Under that fictional rule, the permitted new count is zero. Ask learners to write both test cases, explain the limiting condition and identify what would happen if the status were unknown.
The numbers and story differ from the library example, but the structure remains: define the rule, validate inputs, calculate a normal case and test a boundary or exception. A correct independent explanation is stronger evidence of transfer than repeating the original table.
CHAPTER 22 OF 26 · Extend capability across zoom levels
22. How do small tests scale into larger systems?
At the word level, “at most,” “current,” “available” and “unknown” determine the rule. At the learner level, a student can predict and justify outcomes. At the classroom level, a teacher can design exercises that reveal misunderstanding. At the team level, a checked answer key makes errors easier to discuss.
At the institutional level, a real application would need more than a prompt: appropriate testing, responsibility, access, privacy and monitoring. At the scale of civilisation, reliable instructions help people coordinate across tools and time. That potential requires rigorous work, not merely optimistic assertions about AI.
EduKate’s Vocabulary Coding and Engineering concept treats language as a component of operational systems. Its proposed EnDist lens asks whether such work produces usable capability. Neither is a validated guarantee of zero error.
CHAPTER 23 OF 26 · Extend capability across zoom levels
23. What could a four-week instruction-testing plan look like?
Week 1: Explain requirements, inputs, conditions, expected results and the difference between a test case and an observed AI response. Practise with a simple three-book maximum.
Week 2: Work through the eight fictional cases, including overdue and missing-status examples. Learners calculate expected results independently before using AI.
Week 3: Ask an approved AI tool to apply the rule. Compare its answers and explanations with the checked key, then revise ambiguous instructions and repeat relevant tests.
Week 4: Introduce the two-toolkit workshop rule. Students independently write normal, boundary and incomplete test cases, justify outcomes and explain what human permission would be required for any real implementation. This sequence is an authored teaching proposal, not a software certification or a guaranteed learning effect.
CHAPTER 24 OF 26 · Extend capability across zoom levels
24. What demonstrates independent mastery?
A learner can demonstrate mastery by translating a plain-language rule into clear conditions, validating inputs, producing an expected result for a new case and explaining an AI failure. They should also recognise when incomplete information prevents a numerical answer.
Use a fresh policy rather than requiring only recall of the eight examples. Keep access supports appropriate to the learning goal. Assess the reasoning and the student’s ability to explain why the rule behaves as it does, not only the surface accuracy of a generated table.
A passing result on eight cases tells us that those examples were handled correctly when tested. It does not show how the model will behave on every prompt, across future versions or in a real institution. The educational goal is an independently testable understanding of instructions and their limits.
CHAPTER 25 OF 26 · Extend capability across zoom levels
25. What do learners and families commonly ask?
Does a long prompt guarantee reliable AI? No. Clear instructions help, but outputs still require appropriate checking.
Why test boundary cases? They reveal mistakes that ordinary cases may not expose.
Should a missing overdue status count as no? No. In this fictional rule, the status must be clarified.
Can a right number still be a weak answer? Yes. A model can arrive at the correct result with the wrong explanation.
Is an eight-case test a software certification? No. It is a teaching suite with deliberately limited coverage.
Should students use real loan records? Not for this exercise. Fictional cases teach the rule without exposing real accounts.
What makes the activity useful? A learner who can design, run and explain checks independently.
CHAPTER 26 OF 26 · Extend capability across zoom levels
26. Which sources and related guides help readers continue?
The borrowing and workshop policies in this article are fictional. The expected outputs follow the stated simplified rules, not any real library’s or institution’s decision process. A classroom pass/fail record would not establish operational safety.
The wider principles connect to the NIST AI Risk Management Framework, UNESCO’s AI Competency Framework for Students and the IES guidance on instruction and study. These sources differ in purpose and should not be described as a formal validation of the specific toy rule.
Related eduKate reading includes using counterexamples to test explanations, human review and approval and verified teaching resources. Begin by defining one simple rule and asking which case would reveal a mistake.
