AI can help people test software by suggesting overlooked situations, turning clear requirements into test cases and explaining why a result deserves investigation. Research has demonstrated useful roles for language models in test generation and in generating varied inputs for software analysis. The practical opportunity is to expand the questions people can ask about a program, then check the answers through actual execution and informed review. A fluent explanation or a passing test is only one part of that evidence.
This international beginner guide uses a fictional community tool library to show how that works. You will compare two test collections, discover why ordinary examples can miss boundary errors, calculate exactly what a small evaluation establishes and adapt the tests when the rules change. The aim is independent judgement: understanding what should happen, recognising what remains unchecked and helping other people maintain useful software. All community names, teaching numbers and outcomes below are invented.
- Define the intended behaviour before asking AI to generate tests.
- Keep a proposed test, an executed test and a justified conclusion separate.
- Check equality, empty states and changed requirements as well as ordinary examples.
- Use coverage and deliberately introduced faults as different sources of evidence.
- Learn to explain and revise the reasoning without depending on an AI answer.
- Preserve requirements, examples and corrections so a team can maintain the system over time.
AI Use Case for Civilisation · Article 52 · Collection 13 · International readers · Evidence reviewed 28 November 2026
Choose your reading route
Choose the question closest to your situation, or follow all 26 chapters. Fictional examples make the reasoning visible; research claims link to their sources.
ROUTE 1 · CHAPTERS 1–6
Understand the opportunity
See what software testing checks and where AI research fits.
ROUTE 2 · CHAPTERS 7–12
Work through a small program
Compare ordinary examples, boundary cases and seeded faults.
ROUTE 3 · CHAPTERS 13–18
Check the evidence
Examine coverage, assumptions, review effort and changing rules.
ROUTE 4 · CHAPTERS 19–22
Connect learning and society
Follow personal mastery, shared capability and longer-term value.
ROUTE 5 · CHAPTERS 23–26
Practise and continue
Use specific prompts, a modest pilot and a transfer exercise.
Full chapter index · Start the full article · Vocabulary Coding and Engineering research atlas
Full chapter index
Chapters 1–6 · Understand the opportunity
- Begin with the behaviour that matters to a person
- Separate a requirement, a test and an observation
- See what AI-assisted test generation has demonstrated
- Understand why varied inputs can reveal new problems
- Write the vocabulary contract before writing the prompt
- Give the assistant a bounded job and inspect disagreement
Chapters 7–12 · Work through a small program
- Start with three ordinary examples
- Find the equality error that ordinary examples miss
- Find the opposite error without confusing its consequence
- Compare the two collections against four known faults
- Audit a small grid and preserve its limits
- Recognise why executed code is not the same as checked behaviour
Chapters 13–18 · Check the evidence
Chapters 19–22 · Connect learning and society
CHAPTER 1 OF 26 · Understand the opportunity
1. Begin with the behaviour that matters to a person
Imagine a neighbourhood lending service that shares drills, gardening tools and repair equipment. Someone requests an item through a small application and makes a journey to collect it. The important question is whether the service can honour that request. A screen that looks tidy and a function that runs without crashing are useful, but they do not settle that question.
Software testing gives people structured ways to ask what the system does in particular circumstances. A volunteer can help describe those circumstances even without writing code. What happens when nothing is available? When someone requests exactly the remaining quantity? When two people request the last item at almost the same time? Each question makes an otherwise vague expectation more inspectable.
AI can extend this work by proposing situations, explaining unfamiliar test reports and helping a team organise its examples. That is a practical projection of intelligence: more situations become available for consideration. The gain depends on whether the team recognises relevant questions and checks the answers. Generating a long list is a beginning; selecting and resolving consequential questions is the capability worth building.
Start with one behaviour whose success can be described plainly. That keeps the first learning exercise small enough for someone to understand every step.
CHAPTER 2 OF 26 · Understand the opportunity
2. Separate a requirement, a test and an observation
A requirement says what the software is meant to do. A test describes an arrangement, an action and a check. An observation records what actually happened when that check ran. A conclusion interprets the observation in relation to the requirement. These objects belong together, but they should not be silently substituted for one another.
For example, the requirement might permit a request when enough ready-to-lend items exist. The test supplies three available items and requests two. Its expected answer is “allow”. The program produces “allow”, and the test passes. That observation supports this particular example under the stated setup. It leaves other quantities, data errors and simultaneous requests unexamined.
Python’s official unittest documentation distinguishes individual test cases, collections of tests and the runner that executes them. A conversational assistant may draft these objects, but execution requires a working test environment. If an assistant has not run the program, its prediction must remain a prediction.
A useful report therefore has separate fields for expected result, actual result and execution status. “Not run” is a meaningful status. It prevents a plausible suggestion from acquiring the authority of an observed result merely because it was written confidently.
CHAPTER 3 OF 26 · Understand the opportunity
3. See what AI-assisted test generation has demonstrated
The 2024 TestGen-LLM study at Meta examined improving existing human-written tests using language models. The work placed generated tests inside a larger process that checked whether they built, passed reliably and increased coverage. Engineers reviewed recommendations before their use in production. This is evidence for a bounded engineering workflow; it is not evidence that an unconstrained chatbot can certify arbitrary software.
The distinction is useful for a beginner. The generative component proposed material. Other components checked properties that could be measured, and people remained involved in deciding whether an improvement belonged in a real codebase. The model’s contribution became useful through its relationship with those checks.
Our community example borrows the general idea of proposal followed by inspection. It does not reproduce Meta’s system or use the study’s performance percentages. Its arithmetic is deliberately small so readers can understand the evidence directly. No result from this fictional exercise should be presented as an estimate of what a company or model will achieve.
When reading any future demonstration, ask what was generated, what was executed, which filters were applied and who decided that the result was useful. These questions reveal the actual capability more clearly than the number of generated tests alone.
CHAPTER 4 OF 26 · Understand the opportunity
4. Understand why varied inputs can reveal new problems
Some testing methods explore many inputs rather than a short list written by hand. In the Fuzz4All research accepted at ICSE 2024, language models helped generate and modify inputs for systems such as compilers and other software tools. The authors evaluated multiple systems and input languages. The relevant idea here is input diversity, with results checked against the behaviour of actual software.
A beginner does not need to reproduce a research fuzzer to understand the opportunity. Think of a form that handles ordinary names well but fails on an empty field, a long name or a character it did not expect. The space of possible inputs is larger than the few examples a person may initially imagine. AI can help propose categories to examine.
Diversity still needs direction. A thousand variations that exercise the same unimportant behaviour may contribute less than one carefully chosen example at a meaningful boundary. The team should connect each proposed category to a reason for caring about the result.
In this guide, all experiments concern a fictional local function. Working on your own small test environment provides a clear starting point: the inputs, intended outcomes and permission to experiment are all under the learner’s control.
CHAPTER 5 OF 26 · Understand the opportunity
5. Write the vocabulary contract before writing the prompt
Our fictional service is called Cedar Tool Library. Its first exercise concerns a single decision made from a fixed snapshot. “Available” means the count of items already ready to lend after prior reservations have been accounted for. “Requested” means the positive whole-number quantity in one new request. “Allow” means that this quantity is no greater than the available count.
The exercise permits available counts from zero to eight and requested quantities from one to eight. Fractions, negative counts, missing fields and other types of input belong to a separate validation requirement. We will not pretend that testing the quantity comparison also tests those validation rules.
This illustrates an application of eduKate’s proposed Vocabulary Coding and Engineering research framework: give important words explicit roles, conditions and evidence boundaries. A structured description can help people preserve the intended distinction between stock owned and stock available. It does not prove the description is correct or guarantee that an AI system will execute it faithfully.
Here is the plain-language contract: for valid inputs in the stated ranges, allow the request exactly when requested quantity is less than or equal to available quantity. The words “or equal to” will matter throughout the worked example.
CHAPTER 6 OF 26 · Understand the opportunity
6. Give the assistant a bounded job and inspect disagreement
A productive first request is: “Using only this rule, propose a small set of input pairs and expected answers. Explain which condition each pair examines. Mark any question the rule does not resolve.” This gives the assistant a clear contribution and gives the reader something concrete to review.
Check the expected answers against the rule before converting them into executable tests. If the assistant says a request for all four available items should be rejected, the disagreement needs attention. Perhaps it invented a reserve-stock policy. Perhaps the service really needs such a policy but has not stated it. Those possibilities require different responses.
Also distinguish testing existing behaviour from finding a defect. A test with a correct expected answer may fail because the program is wrong. Discarding every generated test that fails on the current implementation would remove some of the most useful evidence. Conversely, a passing test may simply have copied a mistake from that implementation.
The learner’s responsibility is to connect the expected result to an agreed requirement. AI can help articulate the alternatives, but it should not quietly choose the service’s policy. Record unresolved policy questions separately so a technical test cannot settle them by accident.
CHAPTER 7 OF 26 · Work through a small program
7. Start with three ordinary examples
Cedar’s existing collection, Suite A, contains three examples. With three items available and one requested, the answer is allow. With four available and two requested, it is also allow. With one available and three requested, it is deny. These are sensible checks: they cover requests comfortably within stock and one request that exceeds stock.
| Case | Available | Requested | Expected answer | Collection |
|---|---|---|---|---|
| A1 | 3 | 1 | Allow | A and B |
| A2 | 4 | 2 | Allow | A and B |
| A3 | 1 | 3 | Deny | A and B |
| B1 | 0 | 1 | Deny | B only |
| B2 | 1 | 1 | Allow | B only |
| B3 | 4 | 4 | Allow | B only |
| B4 | 3 | 4 | Deny | B only |
Before reading on, explain why each expected answer follows from the contract. Do the calculation yourself, then ask an assistant to challenge one explanation. The exercise is useful because it exposes the relationship between a sentence and a concrete case.
Suite A is not a bad starting point. Its limitation is that it leaves important questions unanswered. None of its requests equals the available quantity. None exceeds availability by exactly one. It also omits the empty-stock case. Those omissions give us a specific reason to extend it.
CHAPTER 8 OF 26 · Work through a small program
8. Find the equality error that ordinary examples miss
Suppose a programmer accidentally uses “requested is less than available” instead of “requested is less than or equal to available”. Call this deliberate teaching fault F1. All three Suite A cases still behave as expected. One is less than three, two is less than four, and three is not less than one.
Yet F1 rejects a request for one item when exactly one item is available. It also rejects a request for four when four are available. The program can pass every existing test and still contradict the agreed rule. There is no contradiction in that statement: the tests and the rule cover different sets of situations.
Adding case B2 or B3 exposes F1 because equality is the condition on which the correct and faulty rules disagree. Adding more requests comfortably below availability would not expose this fault, even if the total test count became much larger.
This is a useful learning moment. Ask the assistant for the smallest example that distinguishes two rules, then explain why it distinguishes them. The learner begins to reason about structure instead of collecting examples at random. That reasoning remains valuable when the programming language or testing tool changes.
CHAPTER 9 OF 26 · Work through a small program
9. Find the opposite error without confusing its consequence
Now consider F2: allow a request when it is no greater than available quantity plus one. This rule is too permissive. It also passes all three Suite A cases: requests for one of three and two of four are allowed, while a request for three with only one available is still denied.
Case B1 exposes the problem immediately. The faulty rule allows one item to be requested when none is available. Case B4 also exposes it: four requested with three available should be denied, but F2 allows it. The useful new question concerns a shortage of exactly one item.
F1 and F2 can each disagree with the correct rule on the same number of examples within a small evaluation grid. Their consequences differ. One wrongly refuses a request that the stock permits; the other wrongly promises more stock than exists. A report that only counts errors can hide the difference relevant to the service.
AI can help the team label these consequences and propose examples of each. People still need to decide what each failure means for users and operations. A measured error count becomes more useful when the report also names the behaviour, the affected person and the next investigation.
CHAPTER 10 OF 26 · Work through a small program
10. Compare the two collections against four known faults
To compare Suite A and Suite B, introduce two more deliberately faulty versions. F3 always allows a valid request, regardless of availability. F4 always denies it. Run each test collection against each faulty version separately. A collection detects a fault if at least one case produces a result different from its expected answer.
| Fault | Changed behaviour | Suite A detects it? | Suite B detects it? |
|---|---|---|---|
| F1 | Requires requested quantity to be strictly smaller | No | Yes: equality cases |
| F2 | Allows one more than the available count | No | Yes: zero stock or shortage of one |
| F3 | Always allows | Yes: A3 | Yes: A3, B1 or B4 |
| F4 | Always denies | Yes: A1 or A2 | Yes: an allowed case |
Suite A detects two of the four faults, giving 2 ÷ 4 = 50% on this invented fault set. Suite B detects all four, giving 4 ÷ 4 = 100%. The denominator is four chosen faulty variants. It is not all possible bugs, all user journeys or all future versions of the application.
This resembles the principle of mutation testing: deliberately change software and see whether the tests respond. Google’s account of mutation testing also explains why some changes are unproductive and can waste attention. Our four hand-picked faults are a teaching device, not an industry benchmark or a complete mutation-testing system.
CHAPTER 11 OF 26 · Work through a small program
11. Audit a small grid and preserve its limits
We can examine every pair in a smaller teaching grid: available quantity from zero to four, requested quantity from one to four. There are five possible available counts and four possible requests, so the grid contains 5 × 4 = 20 pairs. This is a subset of the broader contract, which permits values up to eight.
Under the correct rule, zero available permits no requests, one permits one, two permits two, three permits three and four permits four. That gives 0 + 1 + 2 + 3 + 4 = 10 allowed pairs and ten denied pairs. F1 wrongly denies the four equality pairs. F2 wrongly allows four pairs: (0,1), (1,2), (2,3) and (3,4).
Both faults therefore disagree with the correct rule on 4 ÷ 20 = 20% of this grid. This is not a prediction that either error would affect 20% of real requests. Real use may concentrate on particular quantities, and the grid deliberately excludes other input values and system behaviours.
The distinction between a chosen evaluation distribution and real use is transferable far beyond software. A percentage needs a named population. Ask the assistant to state that population in the same sentence as the number, then check whether the sentence still says what you intended.
CHAPTER 12 OF 26 · Work through a small program
12. Recognise why executed code is not the same as checked behaviour
A coverage report can show which parts of a program were executed during tests. This helps reveal unexplored code. Google’s code-coverage guidance explains that executing a line or branch does not establish that its behaviour was checked correctly. Coverage contributes evidence, but it cannot stand in for the intended outcome.
Consider Cedar’s faulty equality rule. An ordinary allowed request and a clearly excessive request may exercise both the allow and deny paths. Equality can remain wrong even though both paths have run. The missing distinction concerns the boundary between them, not simply the presence of an unvisited path.
Similarly, a test may call the function but fail to examine the returned decision. Counting that execution as coverage does not mean the user-facing rule has been tested. A useful review asks what observation would cause the test to fail and why that observation would matter.
This gives AI a well-defined role: explain uncovered paths, propose relevant distinctions and identify weak assertions for review. The team should compare those suggestions with its requirements. Increasing a metric is worthwhile when it improves meaningful evidence, not merely because the displayed percentage becomes larger.
CHAPTER 13 OF 26 · Check the evidence
13. Use properties to ask about many related cases
Individual examples can be complemented by properties that should hold across a stated range. Hypothesis, a property-based testing library, lets programmers specify input ranges and properties while the tool chooses inputs to examine. That is one way to explore more cases without writing every example manually. It is a separate testing technique; it does not require generative AI.
For Cedar’s fixed-snapshot rule, increasing availability while keeping a valid request unchanged should never turn an allowed result into a denied one. Reducing a positive request while keeping availability unchanged should never turn an allowed result into a denied one either. Each property follows from the agreed comparison, within the valid input domain.
However, an always-allow program satisfies both of those properties. They are not sufficient to establish the full requirement. We also need concrete anchors such as rejecting a request when availability is zero, and allowing a valid request exactly equal to availability.
Ask AI to propose properties, then ask it to invent an incorrect rule that would still satisfy them. This second question helps uncover missing conditions. The learner gains a practical habit: examine the strength of the question being asked before trusting the answer returned by a tool.
CHAPTER 14 OF 26 · Check the evidence
14. Keep the expected answer independent of the implementation
A test needs some basis for deciding whether a result is acceptable. Testers often call that basis an oracle. In Cedar’s exercise, the agreed rule and independently checked examples provide it. The current implementation is something to examine; it should not be the only source of the expected answers used to examine it.
If an assistant reads faulty code and writes tests that reproduce its outputs, those tests may preserve the fault very efficiently. The same issue can arise when a person copies an existing result without asking whether it satisfies the requirement. Agreement between two descriptions derived from the same mistake is weak evidence.
A practical procedure is to write a few requirement-derived examples before showing the implementation to the assistant. Have someone explain the expected result from the policy alone. Then use execution to discover where the program agrees or disagrees. Preserve any disagreement until its cause is understood.
Independence does not mean two people are automatically correct. They may share an assumption or misunderstand the same policy. It means deliberately creating another route for checking the claim. Clear provenance helps reviewers see which answers came from policy, arithmetic, existing code or AI suggestions.
CHAPTER 15 OF 26 · Check the evidence
15. Investigate inconsistent results without erasing them
Suppose the same saved test sometimes passes and sometimes fails. The immediate task is to understand what varies. Possibilities in our hypothetical service include shared test data, incomplete cleanup, timing assumptions or a changing external response. A repeated pass after an earlier failure does not, by itself, explain the earlier result.
The Hypothesis documentation discusses flaky failures, including situations in which the same example does not reproduce the same result. A testing process needs enough control over its setup to interpret what happened. That is a requirement for useful evidence, whether the test was written by a human or suggested by AI.
For Cedar’s first exercise, keep the function isolated from real bookings and use a fresh invented snapshot for each run. Save the inputs, expected answer, actual answer and version. If an assistant proposes ignoring an inconsistent test, ask what evidence would justify that decision and which behaviour would then remain unchecked.
Some failures belong to the test setup; some reveal genuine software problems. The helpful response is investigation rather than an automatic label. AI can organise the competing explanations, but a list of possibilities does not determine which explanation is true.
The value of assistance depends partly on what happens after generation. Consider a fictional comparison for preparing and checking one small collection of tests. In the manual route, design takes 45 minutes, execution takes five and review takes ten: 60 minutes in total. In the assisted route, generating suggestions takes five, inspecting them twenty, repairing them ten, execution five and final review ten: 50 minutes.
For those invented figures, the saving is ten minutes, or 10 ÷ 60 ≈ 16.7% of the manual total. The assistant generated quickly, but generation was only one component. If inspection instead required forty minutes, the assisted total would become seventy and the apparent time advantage would disappear.
This does not predict a typical productivity improvement. It shows how to evaluate a specific trial. Record comparable scopes, meaningful accepted tests, review effort and any defects discovered. A process that takes longer may still be worthwhile if it finds an important gap; a faster process may be worse if it creates misleading confidence.
At a larger organisational scale, repeated maintenance matters too. Ask who will understand the generated tests next month and whether they clarify the intended behaviour. A test collection is an ongoing responsibility, not just a one-time quantity of text.
CHAPTER 17 OF 26 · Check the evidence
17. Name what the small exercise leaves outside its boundary
Cedar’s quantity comparison does not establish that its whole lending system works. We have not checked whether the available count is up to date, whether a reservation is stored correctly, whether cancellation restores stock or whether the interface communicates the result clearly. The correct answer to a narrow question can coexist with a failure elsewhere.
Simultaneous requests make the boundary especially clear. Two users may each see one available item. A comparison function can correctly allow each request against that same snapshot, while the wider system still needs a way to prevent conflicting reservations. No test of the isolated comparison alone resolves that coordination requirement.
The team can turn this limitation into its next useful question: what should happen when two requests compete for the last item? Answering it requires a defined system behaviour, an appropriate test environment and people who understand the implementation. It should not be improvised as a hidden change to the simple rule.
Use AI to map the relationships between components and to identify where the evidence stops. That helps a beginner see software as a system. The goal is an expanding understanding of responsibility, with each new claim matched to a check that can actually support it.
CHAPTER 18 OF 26 · Check the evidence
18. Revise the contract when the service changes
Now Cedar introduces a maximum loan quantity of two items per request. Availability still matters, but a valid request must also be no greater than two. A request for four with four available is now denied. The old test expecting “allow” for that pair was correct under the earlier rule and is wrong under the revised rule.
Version the requirement and connect the changed expectation to that version. Keeping the old test unchanged would not preserve quality; it would preserve an obsolete policy. Deleting it without explanation would lose useful history. A clear change record explains the new maximum, the affected cases and the reason the expected answer changed.
Ask the assistant to identify which existing cases require revision and which new boundaries need examination. Then review the answers yourself. A maximum of two creates useful examples at one, two and three requested items, while insufficient availability remains a separate reason to deny.
This is where precise language becomes infrastructure for a team. “Enough stock” no longer expresses the entire decision. The written contract needs to carry both conditions so different people, tests and tools can work from the same intended policy.
CHAPTER 19 OF 26 · Connect learning and society
19. Use AI to strengthen the learner’s judgement
A student could ask AI for a complete test collection, submit it and learn little about the rule. The same assistant could instead support a demanding learning sequence: the student predicts an outcome, explains it, examines a counterexample and repairs the reasoning. The difference lies in how the activity builds the learner’s ability to handle a situation.
For Cedar, ask the learner to find a case that distinguishes “less than” from “less than or equal to” before requesting help. If they get stuck, offer a hint about equality. Afterwards, change the maximum loan quantity or give the same comparison in a different setting. Check whether they can choose an informative case without being told which boundary matters. Calculators and ordinary accessibility aids can remain available during an independent attempt.
The assessment should preserve the conditions of assistance. A successful answer after a direct hint demonstrates something different from an independently selected test. Neither result needs to be hidden. Recording the distinction makes the next learning step clearer.
This is a broader purpose for education in an AI-rich environment: people should become better at defining expectations, examining evidence, revising assumptions and deciding when to seek expertise. Technical fluency is valuable because it supports that practical judgement. The completed worksheet is only one trace of the learning process.
CHAPTER 20 OF 26 · Connect learning and society
20. Distinguish ten learning levels from social scale
The following ten-level progression is an educational lens for this article, not a validated universal measurement scale. It describes different kinds of performance a teacher or learner could look for. Someone may demonstrate one level in this small example while needing support in a more complex system.
| Level | Observable task |
|---|---|
| Knowledge | Name input, expected result, actual result and test. |
| Understanding | Explain why equality is allowed under the original rule. |
| Skill | Calculate expected answers accurately. |
| Application | Choose examples for a new stock quantity. |
| Judgement | Decide what a passing result supports and leaves unresolved. |
| Adaptability | Revise tests when the maximum loan changes. |
| Foresight | Anticipate a conflict between simultaneous requests. |
| Engineering | Organise requirements, execution and review into a repeatable process. |
| Creation | Design a clearer test or explanation that another learner can use. |
| Wisdom | Choose an appropriate scope and balance usefulness, effort and consequences. |
Social zoom levels answer a different question: who can benefit, participate or be affected? A person, a team and an institution are scales of coordination, not positions on this learning ladder. Keeping those dimensions separate prevents “larger” from being mistaken for “more masterful”.
A useful learning record names the task, assistance, result and changed condition used for transfer. It gives a future teacher evidence to build on instead of a vague label such as “good at AI”.
CHAPTER 21 OF 26 · Connect learning and society
21. Follow the use case across the zoom levels
At the individual level, a learner gains a way to question software behaviour. Within a family or volunteer team, several people can compare expectations and make the service easier to explain. At community level, those explanations can help users report a problem precisely: what they requested, what they expected and what happened.
| Scale | Useful contribution | Evidence to retain |
|---|---|---|
| Person | Select an informative example. | Reasoning before and after feedback. |
| Team | Agree on the intended behaviour. | A versioned requirement and reviewed cases. |
| Community | Report and resolve service problems. | Clear descriptions and confirmed corrections. |
| Institution | Maintain systems across staff changes. | Executable checks and responsible owners. |
| Wider society | Share useful testing knowledge and tools. | Reusable examples with stated scope. |
| Future generations | Understand why past decisions were made. | History linking policy, faults and revisions. |
These are potential pathways, not an automatic chain of benefits. A team needs time to review suggestions and people who can maintain the resulting work. A widely copied test with an incorrect expectation could spread a mistake instead. Shared capability grows when useful material arrives with enough context to inspect and correct it.
The positive possibility is that more people can participate in making digital services understandable. AI can help translate between everyday expectations and technical examples, while people retain the responsibility to decide what the service should promise.
CHAPTER 22 OF 26 · Connect learning and society
22. Connect the local gain to civilisation’s usable capability
eduKate’s proposed Projection Energy / Distribution Energy framework, EnDist, concerns civilisation’s net usable forward-motion capacity after friction, misalignment and rework. Here, “energy” is conceptual, not electricity, fuel or physical power. It is not a validated universal numerical score, and the minutes in our teaching example cannot be converted into an EnDist measurement.
The lens nevertheless suggests useful questions. Does the testing process reduce repeated misunderstandings? Can a new volunteer understand a rule without reconstructing every earlier conversation? Does a correction reach the next person who maintains the software? These questions connect local work with the ability of a group to act coherently over time.
Distribution matters as much as invention. A sophisticated test generator may help a well-resourced organisation while remaining difficult for a small community to use. Clear explanations, modest examples and accessible tools can help broaden participation, but somebody still needs to provide support and maintain them.
This is a constructive way to think about AI and civilisation. The ambition is not merely more generated output. It is more people able to investigate, improve and inherit useful systems, with the consequences of those systems remaining understandable to the people who depend on them.
CHAPTER 23 OF 26 · Practise and continue
23. Ask follow-up questions that expose the reasoning
Good prompts make the assistant’s proposed reasoning easier to examine. They do not guarantee an accurate answer. Use a small fictional case first, keep the requirement visible and compare the response with calculations you can perform independently.
- “Restate this requirement without adding a policy. List the input domain, intended output and unresolved questions.”
- “Suggest five test cases. For each one, explain which requirement it checks and why the expected result follows.”
- “Invent a faulty rule that passes these examples. Show one additional case that would distinguish it from the agreed rule.”
- “The maximum request is now two. Identify which existing expected results change, and explain the policy version behind each change.”
- “Review this report. Separate observations from predictions, and identify any conclusion wider than the test evidence.”
After receiving an answer, choose one claim to verify yourself. Recalculate it, trace it to the requirement or ask someone else to explain it independently. If the claim fails, record the correction and ask whether any related cases also need revision.
This follow-up habit is more powerful than searching for a perfect first prompt. It turns the conversation into a sequence of increasingly precise questions. The learner remains an active participant who decides which uncertainty matters and what evidence could resolve it.
CHAPTER 24 OF 26 · Practise and continue
24. Run a modest pilot with a clear stopping point
A small organisation could begin with one non-sensitive, well-understood function in a separate test environment. The first goal is a reviewed improvement to its evidence, not an automatic production change. Choose a behaviour whose owner can explain the intended rule and whose results can be checked without real bookings or personal records.
- Write the current requirement and two or three independently checked examples.
- Record what the existing tests cover and one question they leave unresolved.
- Ask AI for a small number of additional cases, with reasons and expected results.
- Review the expectations, run the accepted tests and investigate disagreements.
- Retain only useful additions, record the evidence and decide the next specific question.
Stop expanding the exercise when the chosen question is sufficiently answered or when further progress requires expertise the team does not yet have. More generated cases are not automatically a better use of attention. A narrow successful pilot can establish whether the process is understandable and maintainable.
Preserve the requirement version, accepted cases, rejected suggestions with reasons, execution conditions and remaining limitations. This record allows the next person to continue from evidence. It also makes it possible to compare the actual review burden with the assistance the team hoped to gain.
CHAPTER 25 OF 26 · Practise and continue
25. Solve a changed problem before looking at the answer
Transfer exercise: a different fictional service lends art materials. Its rule allows a request only when the quantity is a positive whole number, no greater than the ready-to-lend stock and no greater than three. For this exercise, all four input pairs below contain valid whole-number quantities. Decide the expected answer for each before consulting an assistant.
| Case | Ready-to-lend stock | Requested quantity |
|---|---|---|
| T1 | 5 | 4 |
| T2 | 3 | 3 |
| T3 | 2 | 3 |
| T4 | 5 | 1 |
Now examine two faulty versions. Version X checks stock but ignores the maximum of three. Version Y enforces the maximum but wrongly requires the requested quantity to be strictly smaller than stock. Which supplied case exposes each fault? Could a rule that always denies every request pass this entire collection?
Answer and reasoning
T1 is denied: stock is sufficient, but four exceeds the maximum of three. T2 is allowed: it meets both conditions, including equality with stock. T3 is denied because stock is insufficient. T4 is allowed because both conditions are satisfied. T1 exposes X, while T2 exposes Y. An always-deny rule fails T2 and T4.
A strong explanation names the condition that decides each result. If you only remembered Cedar’s old answers, the changed maximum would be easy to miss. The purpose of transfer is to show that you can rebuild the reasoning from a changed contract, rather than reproduce the shape of an earlier answer.
CHAPTER 26 OF 26 · Practise and continue
26. Leave the next reader with a usable understanding
The most useful result of this exercise is a clearer relationship between language, evidence and action. A requirement expresses an intention. A test makes a particular question executable. An observed result gives evidence. Judgement determines how far that evidence supports a decision and which question should come next.
You do not have to become a professional software tester to contribute. You can describe a confusing outcome, identify an equality case, ask whether an expected answer came from the policy or notice that a changed requirement invalidates an old example. Those contributions can improve the conversation between users and developers.
AI can help more people enter that conversation and help experienced people explore a wider range of cases. The lasting gain appears when the reasoning remains available after the conversation ends: a better requirement, a useful test, a corrected assumption and a record another person can understand.
For your next step, choose one small digital behaviour you can describe accurately. Write what should happen in an ordinary case and at one meaningful boundary. Ask an assistant to challenge the examples, then decide what would count as evidence. That is a practical beginning to using AI as an intelligence boost while developing the judgement needed to handle changing situations well.
Source register
The sources support the factual examples and framework definitions. Worked teaching cases and their numbers are invented unless a source is explicitly named.
- Python documentation: unittest, unit testing framework
- Alshahwan and colleagues (2024): Automated Unit Test Improvement using Large Language Models at Meta
- Xia and colleagues: Fuzz4All, ICSE 2024 research
- Google Testing Blog (2020): Code Coverage Best Practices
- Google Testing Blog (2021): Mutation Testing
- Hypothesis: property-based testing documentation
- Hypothesis tutorial: Flaky failures
- eduKate: Vocabulary Coding and Engineering research atlas
- eduKate: Projection Energy / Distribution Energy in CivOS
Continue the AI Use Case for Civilisation series
- 49. How Can AI Help Communities Discover and Understand Archaeological Landscapes?
- 50. How Can AI Help Communities Find and Understand Methane Emissions?
- 51. How Can AI Help People Learn from Music Through Source Separation?
- 52. How Can AI Help People Test the Software They Depend On? — you are here
Earlier articles · 1–48
- 1. How Can One Person’s Knowledge Become Useful to Many?
- 2. How Can Education Turn Local Problems into Shared Capability?
- 3. How Can AI Help Communities Maintain the Systems They Depend On?
- 4. How Do We Choose Progress When Intelligence Becomes More Powerful?
- 5. How Can Local Observations Become Shared Scientific Knowledge?
- 6. How Can People Work Together Across Languages Without Losing Meaning?
- 7. How Can Communities Preserve Knowledge for the Next Generation?
- 8. How Can Small Organisations Build a Wider Range of Capabilities?
- 9. How Can Small Enterprises Turn Local Knowledge into Wider Economic Opportunity?
- 10. How Can AI Help Scientific Discoveries Become Knowledge That Other People Can Build On?
- 11. How Can AI Help Us Maintain Physical Infrastructure Before Small Problems Become Large Failures?
- 12. How Can We Give Future Generations Intelligence They Do Not Have to Rebuild From Zero?
- 13. How Can AI Help People Find Common Ground Without Erasing Disagreement?
- 14. How Can More People Turn Their Ideas into Cultural Works Worth Sharing?
- 15. How Can AI Help People Participate When Everyday Interfaces Exclude Them?
- 16. How Can People Build Small Digital Tools That Solve Real Problems?
- 17. How Can AI Help People Turn Weather Forecasts into Better Everyday Plans?
- 18. How Can AI Help Farmers Learn from Their Fields and Share What Works?
- 19. How Can AI Help Us Discover Better Materials for Everyday Life?
- 20. How Can AI Help Communities Use Electricity More Intelligently?
- 21. How Can AI Help Make Public Transport More Reliable for Everyday Journeys?
- 22. How Can AI Help Communities Understand Where Their Water Goes?
- 23. How Can AI Help Us Understand the Molecular World of Life?
- 24. How Can AI Help Communities Understand Disaster Impacts Through Satellite Maps?
- 25. How Can AI Help Community Kitchens Forecast Demand and Keep Meals Available?
- 26. How Can AI Help People Make Everyday Products More Reliably?
- 27. How Can AI Help Us Find New Worlds in Astronomical Data?
- 28. How Can AI Help Us Understand the Ocean Through Sound?
- 29. How Can AI Help Communities Understand Where Urban Heat Is Concentrated?
- 30. How Can AI Help Make Handwritten Historical Records Searchable?
- 31. How Can AI Help Recover More Useful Materials from Recycling Streams?
- 32. How Can AI Help People Discover New Mathematical Ideas?
- 33. How Can AI Help Communities Understand Wildlife from Camera-Trap Images?
- 34. How Can AI Help Historians Reconstruct Fragmented Ancient Inscriptions?
- 35. How Can AI Help Improve the Computer Algorithms We All Depend On?
- 36. How Can AI Help Scientists Make Progress in Fusion Research?
- 37. How Can AI Help Communities Understand the Air They Breathe?
- 38. How Can AI Help People Understand Earthquakes Through Better Signal Detection?
- 39. How Can AI Help Engineers Design Better Computer Chips?
- 40. How Can AI Help Communities Build Speech Tools for Underrepresented Languages?
- 41. How Can AI Help Communities Prepare for River Floods Through Better Forecasting?
- 42. How Can AI Help Communities Monitor Coral Reefs Through Underwater Images?
- 43. How Can AI Help Engineers Understand Battery Lifetime From Early Measurements?
- 44. How Can AI Help Scientists See More Through Microscopy Image Restoration?
- 45. How Can AI Help Communities Understand What Is Causing Forest Loss?
- 46. How Can AI Help Scientists Understand Changing Glaciers Through Satellite Images?
- 47. How Can AI Help Communities Understand Insects Visiting Their Flowers?
- 48. How Can AI Help Communities Assess Road Conditions and Prioritise Repairs?