Checking device saving. Saved learning will load when ready; choices made now are not added.
Chapters · 2 of 7
AI judgment foundations / Chapter 2 / Practice
Give useful context
Before you start
Building software
Choose a task brief that keeps the information needed for a useful draft and leaves unrelated private details out.
Original fictional records and scripted feedback. No model is running; no message, code or approval is sent.
First case
Choose a brief for a bug-report draft using only the supplied synthetic invented test input.
Fictional notes
Note 1
In the demo basket, setting quantity to 0 leaves the previous total visible. Expected total: 0 credits.
Note 2
Draft a reproduction report and a proposed test. The cause has not been investigated. No code change is requested.
Note 3
The demo catalogue has 120 products and three colour themes.
Which plan matches these notes?
Choose a proposal before reading its rationale.
Plan A
Draft a report for the demo basket: quantity 0 keeps the old total instead of 0 credits. Mark the database as the confirmed cause and propose a test; do not change code.
Needs revision. The notes show an output error, not a database investigation. A plausible cause still needs evidence.
Plan B
Draft a report for the demo basket: quantity 0 keeps the old total instead of 0 credits. Keep the cause open and propose a test for that input; do not change code.
Fits the records. Notes 1–2 give the input, expected result and permitted output. The extra catalogue note does not help reproduce the error.
Plan C
Draft a report for the demo basket: quantity 1 keeps the old total instead of 0 credits. Keep the cause open and propose a test for that input; do not change code.
Needs revision. The supplied failure uses quantity 0. Changing it to 1 tests a different situation.
Changed case
Choose a brief that preserves the environment distinction without adding real user records.
Fictional notes
Note 1
Demo version 2.4: quantity 0 fails in offline mode but passes online. Version 2.3 passes both. Expected total in each case: 0 credits.
Note 2
Invented basket Test input 1 has two items. Use it for the plan rather than customer logs.
Note 3
Draft a test plan only. No code change is requested.
Which plan matches these notes?
Choose a proposal before reading its rationale.
Plan A
Draft a comparison using invented basket Test input 1: version 2.4 fails offline but passes online; version 2.3 passes both. Keep expected quantity-0 total at 0 credits; propose tests without editing code.
Fits the records. The version and connection mode identify the observed regression. Note 2 provides a permitted invented input.
Plan B
Draft a comparison using invented basket Test input 1: version 2.4 fails online but passes offline; version 2.3 passes both. Keep expected quantity-0 total at 0 credits; propose tests without editing code.
Needs revision. The failure is offline, not online. Swapping those observations changes the proposed comparison.
Plan C
Draft a comparison using invented basket Test input 1: version 2.3 fails offline but passes online; version 2.4 passes both. Keep expected quantity-0 total at 0 credits; propose tests without editing code.
Needs revision. The newer version fails in one mode; the older one passes both. Swapping versions misreports the evidence.
Takeaway
- Name one task and the intended reader.
- Include the relevant record and the constraint that changes the answer.
- Omit unrelated identifiers; keep exact details only when the task needs them and sharing is permitted.
- Specify the output and what must remain uncertain.
Paper practice is self-checked; independent demonstration has not been assessed.
Lesson quiz self-check
Practice: useful context
1 point for each correct answer; 0 for wrong or unanswered. No penalties. The denominator is every question, including unanswered questions. These are practice scores, not a measure of broader competence.
Note 1: In demo search v3, an empty query crashes in French; English passes. Note 2: Use invented input Search-1. Note 3: Draft a test plan only; do not change code.
Which brief preserves the comparison?
- Draft v3 empty-query tests: English fails, French passes; use Search-1 and keep code unchanged.
- Draft v2 empty-query tests: French fails, English passes; use Search-1 and keep code unchanged.
- Draft v3 empty-query tests: French fails, English passes; use Search-1 and keep code unchanged.
Answer and explanations
Needs revision: Draft v3 empty-query tests: English fails, French passes; use Search-1 and keep code unchanged. The languages’ outcomes are reversed.
Needs revision: Draft v2 empty-query tests: French fails, English passes; use Search-1 and keep code unchanged. The report concerns v3, not v2.
Correct: Draft v3 empty-query tests: French fails, English passes; use Search-1 and keep code unchanged. The version, failing input, passing control and permitted output all match the notes.
Note 1: Blank input crashes demo search. Note 2: A database timeout is suspected, but no cause check has run. Note 3: Draft a reproduction report and propose a check.
How should the report describe the cause?
- Record the blank-input crash; describe the database timeout as a hypothesis needing a check.
- Record the blank-input crash; describe the database timeout as confirmed by the completed check.
- Record the blank-input crash; describe the database timeout as ruled out by the completed check.
Answer and explanations
Correct: Record the blank-input crash; describe the database timeout as a hypothesis needing a check. The observation is supplied, while the cause is still a hypothesis.
Needs revision: Record the blank-input crash; describe the database timeout as confirmed by the completed check. No completed cause check confirms the timeout.
Needs revision: Record the blank-input crash; describe the database timeout as ruled out by the completed check. No completed cause check rules out the timeout.