Worked example lessons
Follow a problem from its starting evidence to a completed response. Notice why each step is justified, then try the same reasoning on a different case.
Lesson previews
step-trail before-after try-node A team has a vague risk note for a support triage model: "algorithmic bias may affect customers." It is too broad to test, assign, or mitigate. Risk entry = event + cause + affected impact + control + owner + trigger. The common trap is to write a value statement instead of a risk entry: "We will ensure fairness." That sounds good but does not say what can fail, who is affected, how anyone will know, or what control changes the workflow. Event Write the failure as a concrete event: "Spanish-language tickets are incorrectly classified as how-to…
5 minWrite The Dataset Datasheet Fragmentstep-trail before-after try-node A customer-intent classifier will be trained on chat logs, but the team has not documented what the logs represent or omit. Datasheet fragment = motivation + composition + collection + labels + recommended and out-of-scope uses. The common trap is to describe only dataset size. "2.4M rows" sounds robust but says nothing about who appears, who is absent, how labels were made, or whether the data matches the new deployment context. Motivation State why the dataset exists: "Collected to resolve logged-in customer support chats, not to represent all customer support needs." Motivation prevents accidental reuse. A dataset…
5 minWork A Selection-Rate Gapcalculation-trail stat-tiles try-node A scholarship AI selects 120 of 500 Group A applicants and 60 of 500 Group B applicants for human review. Selection-rate ratio = lower group selection rate divided by higher group selection rate. The common trap is to treat the ratio as either a final legal or ethical verdict, or as irrelevant because it is simple. It is neither. It is a screening signal that tells you whether deeper fairness review is necessary. Group A rate 120 selected / 500 applicants = 0.24, or 24%. Start with rates, not raw counts, because group sizes may differ. Group…
5 minTrace a CI Failure Before Asking for a FixAn agent PR passes locally but fails Playwright in CI: Save button not visible on the billing settings page. Five Whys: symptom -> environment difference -> patch assumption -> controllable cause The common trap is to rerun CI or increase a timeout before checking whether the failure reveals a real viewport, data, order, or environment assumption. Why 1 Why did CI fail? The Save button was not visible when the test tried to click it. Start with the observable failure, not a theory. Why 2 Why was it hidden? The new billing banner pushed the button below the fold. Connect…
5 minTurn Agent Output into a Verified PatchAn agent PR fixes disabled Save feedback in settings but also changes validation timing. PDCA review: Plan criteria -> Do verification -> Check drift -> Act on the next patch The common trap is reviewing the agent's final summary instead of comparing the diff to the original acceptance criteria. Plan Acceptance: show why Save is disabled, preserve validation rules, add one disabled-state test. Restating the plan gives review a standard before opinions start. Do Inspect changed files, run npm test settings-form, and manually reproduce disabled Save with missing tax ID. Verification should be narrow enough to run now and relevant…
5 minTurn a Vague Request into an Agent-Ready BriefA teammate asks: Make onboarding better before tomorrow's customer demo. SMART agent brief: Specific -> Measurable -> Achievable -> Relevant -> Time-bound The common trap is asking for improvement without naming the behavior, scope, and verification signal, which invites broad polish instead of a reviewable patch. Specific Name the exact behavior and surface: OnboardingChecklist.tsx should explain why incomplete profile steps are disabled. Specific does not mean long. It means the agent knows where to act and what behavior should change. Measurable Define evidence: existing onboarding tests pass and add one test for disabled tooltip copy. The test is the review…
5 minBuild an Escalation NoteLeo sees a quiet enterprise ticket: "API latency after migration." No angry language, no all-caps, no refund demand. But the account has a launch tomorrow and three failed workarounds. By the time the customer writes "VP looped in," escalation is already late. Escalation: Escalate when authority is missing, not only when anger is present. The common shortcut is to trust the AI artifact because it is coherent. Coherence is not the same as customer-specific truth, verified ownership, or a safe promise. Before AI draft: "This is fixed now. Thanks for your patience." After Verified reply: "The fix is not complete…
5 minRewrite a Summary for HandoffNora takes over a chat at minute 27. The customer writes, "I already explained this twice." The AI summary says "customer has login problem," but omits the SSO domain, the error code, and the fact that reset email already failed. Summarize: A good summary lets the next agent act in the first 30 seconds. The common shortcut is to trust the AI artifact because it is coherent. Coherence is not the same as customer-specific truth, verified ownership, or a safe promise. Before AI draft: "This is fixed now. Thanks for your patience." After Verified reply: "The fix is not complete…
5 minTurn a Draft Into a Safe ReplyMaya has 19 refund tickets in the queue and the AI draft sounds polished: "Your refund has been processed." The order history only shows "refund requested." One careless click creates a false promise, a reopened ticket, and a chargeback threat. Draft Replies: Fluency earns attention; verified facts earn the send. The common shortcut is to trust the AI artifact because it is coherent. Coherence is not the same as customer-specific truth, verified ownership, or a safe promise. Before AI summary: "Customer has billing issue. Sent article." After Structured note: "Invoice doubled after 12-seat renewal; customer disputes quantity; article sent but…
5 minWorked Example: Build an Error-Analysis TableTwenty-eight support-copilot failures are real but unstructured, and the team is arguing prompt versus retrieval without a common pattern view. Error-analysis table: task -> domain -> failure type -> likely layer -> recommended next test The common trap is to tag failures with loose labels like bad answer or confusing response. Those labels describe frustration but do not help the analyst distinguish unsupported citations from stale retrieval, wrong workflow steps, or missing escalation cues. Define useful columns Create columns for workflow task, knowledge domain, failure type, likely layer, and what evidence would test that layer. These columns force the analysis…
6 minWorked Example: Rewrite an AI Memo in Pyramid FormA sales-assistant pilot memo is full of examples and caveats but does not clearly tell the CRO what to do next. Pyramid structure for AI analysis: recommendation -> grouped reasons -> evidence -> limit that changes scope The common trap is to lead with examples and caveats because the evidence feels messy. That forces the executive to infer the answer. Another trap is to list reasons that overlap, such as accuracy, trust, and reliability, without defining the difference between them. Write the answer first State the decision recommendation in one line: keep draft-mode use for outbound email; do not expand…
6 minWorked Example: Run a Premortem on an AI Rollout Analysis PlanA rollout analysis plan for an AI meeting-summary tool looks strong on pilot averages but may miss adoption, trust, privacy, and workflow-boundary failures. Premortem for AI analysis: assume failure -> generate plausible causes -> convert causes into plan changes and checkpoints The common trap is to run a premortem as a brainstorming ritual and then keep the original plan intact. Another trap is to list vague fears like "users may resist AI" instead of naming segments, conditions, and measurements that could fail specifically. Assume the failure State the scenario: six weeks after launch, the rollout is being called a failure…
6 minBuild a Rubric-Based AI Feedback LoopFatima needs AI feedback to support the project rubric rather than produce generic encouragement. Constructive alignment: outcome, criterion, evidence, and revision must point to the same target The common trap is asking for broad feedback. AI then comments on style, detail, and tone even when the learning outcome is evidence quality. Outcome State the target: "Students justify a design choice with relevant evidence." The outcome tells the AI which learning performance matters and filters out unrelated advice. Criterion Select one rubric criterion: "Evidence supports the design claim with data or observation." One criterion keeps cognitive load manageable and makes feedback…
5 minBuild an AI Study Coach PromptDerek needs students to use AI to study cell transport without drifting into passive summaries or copied answers. Compact Gagne sequence: objective -> recall -> guided practice -> feedback -> transfer The common shortcut is asking AI to "explain the chapter" and mistaking a clear explanation for student practice. Objective Write: "You are my study coach for cell transport. The goal is that I can decide whether a scenario uses diffusion, osmosis, or active transport." The objective tells the AI and the student what performance matters. Without it, the chat may become a general review. Recall Add: "Before explaining, ask…
5 minCreate an AI Worked-Example PairOwen needs students to learn how to cite and explain evidence in analytical paragraphs. Worked example fading: full model -> reasoning labels -> missing step -> independent transfer The shortcut is generating many finished examples. More examples without reasoning can increase copying rather than skill acquisition. Model answer Prompt AI for one paragraph that makes a claim, embeds evidence, and explains how the evidence supports the claim. A single strong model focuses attention. The teacher can verify quality before students see it. Annotate Ask AI to label each decision: claim, evidence choice, integration phrase, explanation, and concluding link. Labels make…
5 minWorked Example: Build A Tiny Eval SetYour support team uses AI to draft refund replies. The recurring miss: drafts sound helpful but sometimes imply approval before policy and manager review. Tiny eval set: repeated task -> representative examples -> observable pass criteria -> rerun after changes The common shortcut is testing only one easy example, then assuming the workflow is reliable. Choose one task Scope the eval to refund reply drafts, not every support workflow. A narrow eval is easier to run and easier to improve. Pick five examples Use one simple approval, one denial, one missing-order case, one policy exception, and one past failure. Representative…
6 minWorked Example: Score Two AI SummariesYou have two AI summaries of the same meeting. The source says conversions fell after a pricing page change, but paid traffic also increased and the team has not segmented results yet. Summary scorecard: coverage, faithfulness, usefulness The polished summary blames pricing as the cause because it makes a cleaner story. Coverage Check whether each summary includes both facts: pricing page changed and traffic mix changed. A summary that omits traffic mix hides an important alternative explanation. Faithfulness Mark any added causal claim that the source did not prove. Blaming pricing may be plausible, but the source does not establish…
6 minWorked Example: Turn A Miss Into A ChecklistAI wrote, "All Pro customers have access to audit exports." In reality, audit exports require a compliance add-on. Miss-to-checklist: failed claim -> missing context -> evidence source -> reviewer action The tempting fix is to tell people to be careful, which does not change the review behavior. Failed claim The universal claim was: all Pro customers have audit exports. Universal words raise the evidence bar. Missing context The answer ignored add-ons and account configuration. Plan tier alone did not determine feature access. Evidence source The checker should verify the current feature matrix or account entitlements. A general help article is…
6 minBuild a Leakage-Safe Preprocessing FlowA model pipeline performs imputation, scaling, and feature selection before creating train and validation splits. Leakage-safe sequence: split first, fit preprocessing on train, transform validation/test, then evaluate once. The common trap is treating preprocessing as harmless cleanup. If it learns statistics or choices from all rows, it can leak evaluation information. Split first Create train and validation sets using the same time or grouping logic that deployment will face. The split defines the boundary between learning data and evaluation data. Build it before learned transformations. Fit on train only Fit imputers, scalers, encoders, vectorizers, and feature selectors using only training…
5 minDraft a Model Card Limitation SectionThe team needs a limitation section for a model card before a high-stakes pilot expands. Model-card limitation: evaluated scope, weak slice, unsupported use, required control. The common trap is writing a vague limitation that sounds responsible but does not change user behavior. Evaluated scope State the data and population actually tested: full-time engineering candidates in the US and UK, 2025 applications, recruiter-reviewed labels. This prevents readers from assuming evidence exists for populations or periods never evaluated. Weak slice Name the observed gap: lower agreement for contractor and internship profiles because historical labels are sparse. A limitation should be tied to…
5 minTurn a Business Ask Into a Model BriefThe marketplace GM wants AI to identify sellers who need help, but the intended action is ambiguous. CRISP-DM model brief: decision, target, unit, window, metric, deployment. The common shortcut is to define seller risk broadly, train on whatever outcome is easiest, and discover later that operations cannot act on the output. Decision Ask: what will ops do differently if the model works? Answer: prioritize coaching calls for sellers likely to miss fulfillment SLA. The action defines which outcome matters and prevents mixing coaching, fraud, and churn into one vague target. Target and unit Target: probability of missing SLA in the…
5 minRewrite a Thin AI Prompt Into a Teaching PromptElena's prompt, "Make a lesson on fractions," produces a polished but generic lesson that misses her actual target: comparing unlike fractions with visual models. Backward-designed prompt: target -> learner context -> constraints -> output -> check The common trap is asking AI for a complete lesson before naming the evidence of learning. The model fills the blank with familiar activities, and the teacher loses time adapting a generic plan back toward the real target. Target Replace "fractions" with "compare 3/4 and 5/8 using area models." The target tells AI what student thinking must be visible. A narrower target reduces generic…
5 minTurn AI Output Into Retrieval PracticeAn AI-generated study guide is accurate and organized, but students only reread it. The instructor needs study activity that produces recall and transfer. Retrieval sequence: recall -> distinguish -> correct -> transfer The common trap is mistaking fluent AI summaries for learning. Students feel prepared because the material is familiar, but they have not practiced producing the knowledge under closed-note conditions. Recall Convert each heading into a closed-note prompt: "Without looking, explain reinforcement in your own words." Keep the answer short enough to attempt. The first move creates memory pull instead of rereading. Distinguish Ask AI for two near cases…
5 minCreate a Student-Safe AI Tutoring ScriptA default AI helper solves algebra problems too completely. Hannah needs a tutor prompt that supports practice without giving away the learning work. Cognitive apprenticeship tutor script: diagnose -> hint -> wait -> check -> reflect The common trap is telling students to use AI for help without defining what help means. The tool then becomes a solution engine, and students can copy expert-looking steps before they can produce the reasoning themselves. Diagnose Start the script with: "Ask what I tried and what step confused me before giving help." Diagnosis keeps the tutor from answering the wrong problem and makes…
5 min