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
Agent scope: customer-success renewal helper. Functions: read account notes, draft renewal offers, update CRM next step, and email customers. Launch constraint: first control must be chosen today. Use FMEA to prioritize failure modes by consequence, likelihood, and detectability, then place controls where failure would hurt most. The novice trap is to rate the agent by the model task label, such as 'drafting,' instead of the downstream effect of the tool permission, such as sending a wrong offer to a customer. List functions Functions: read notes, draft offer, update CRM, email customer. FMEA starts from functions because failure modes are losses…
6 minFind The Cause Chain, Not The CulpritIncident: a policy assistant invented a bereavement-leave exception and a manager repeated it to an employee. The same assistant answers roughly 1,200 policy questions each month. Use root-cause analysis to identify contributing conditions that can be changed, not a single culprit to blame. The common trap is stopping at 'the model hallucinated.' That label describes the symptom but does not explain why the wrong answer was available, trusted, and repeated. Define the problem Wrong policy exception was communicated to one employee; potential class is HR policy answers involving exceptions. A precise problem statement prevents the review from expanding into every…
6 minBuild The First 30-Minute BriefAt 10:00, an AI renewal assistant generated emails with a 30 percent discount instead of the approved 10 percent discount. Known: 74 customer drafts were created, 19 were sent, and 6 were opened. Unknown: whether any customer accepted the wrong number. Use SBAR to separate current fact, relevant context, judgment with uncertainty, and the specific recommendation needed now. The novice trap is to write a narrative that mixes suspected root cause, impact, and requests in one paragraph. That makes leaders argue the story instead of deciding the next action. Situation One sentence: 'The AI renewal assistant sent 19 customer emails…
6 minDesign a read-only docs connectorThe team asks to connect the assistant to all company documents so support reps can answer policy questions faster. Workflow -> source of truth -> access mode -> success metric Starting with all documents creates scope risk and makes answer quality harder to evaluate. Name the workflow Support reps need answers to approved policy questions during customer conversations. A specific workflow prevents the connector from becoming a general search promise. Pick the source Use the approved support-policy folder, not old decks, chat threads, or draft docs. The assistant should retrieve from the place that owns truth. Set access mode Start…
5 minReview an MCP tool before enabling itA proposed MCP tool called send_customer_update can send a message to a customer from the helpdesk. Purpose -> schema -> scope -> confirmation A useful-sounding tool can hide vague inputs, broad reach, or customer-impacting actions. Purpose The tool supports approved follow-up messages for open support tickets only. Purpose limits when the tool should appear and who should use it. Schema Require account_id, ticket_id, message_preview, and cited source note. Specific inputs reduce ambiguity and make confirmations meaningful. Scope Allow messages only on assigned tickets; block billing, permissions, and attachments. Scope keeps the tool aligned with the workflow. Confirmation Show recipient, account,…
6 minTurn a pasted report into a tool workflowA customer success manager exports a churn-risk spreadsheet every Friday, removes some columns manually, pastes it into AI, and asks for a summary. Repeated AI task -> field minimization -> read-only tool -> review loop Manual exports become stale, include unnecessary fields, and depend on one person's cleanup habits. Capture the repeated question Which accounts need attention before the next renewal meeting? The workflow begins with the decision the report supports. Minimize fields Use health score, renewal date, open blockers, account owner, and last executive touch. Fields outside the decision stay out of the connector workflow. Use read-only retrieval Query…
5 minInstrument A RAG TraceA RAG assistant cites an old policy, but the only trace span is POST /chat. The team cannot tell whether retrieval, prompt assembly, model generation, or policy checks failed. Instrument the answer path as a sequence of named spans with stable attributes. The common shortcut is to log raw prompts and final answers while skipping retrieval and policy metadata. That creates privacy risk and still leaves diagnosis weak. Before Single span: POST /chat, 4.8s, status=200. Raw log: 'answered policy question.' No prompt version, retrieval collection, document freshness, model route, or policy decision. After Trace spans: build_prompt, retrieve_docs, rerank_docs, generate_answer, policy_check.…
5 minUse DMAIC For AI Quality DriftThe renewal-risk summarizer feels worse, but uptime and model errors are normal. Leaders need to know whether quality drift is real and what to fix. DMAIC turns fuzzy quality decline into a measured process improvement loop. The common trap is to rewrite the prompt immediately because prompt text is visible and editable. That can hide data or retrieval causes. Before Complaint: 'Summaries are worse.' Action: prompt rewrite. Result: no clear proof of improvement and no way to know if drift returns. After Defect: renewal blocker present in CRM notes but absent from summary. Baseline defect rate: 14 percent in sampled…
5 minTurn A Postmortem Into A MonitorThe AI expense auditor approved claims that required receipts even when OCR failed to extract receipt evidence. The postmortem found the gap, but the first action item is vague: 'improve OCR monitoring.' A postmortem finding becomes useful when it turns into a measurable signal with an owner and action. The common trap is writing broad action items that sound responsible but cannot fire, route, or prevent a recurrence. Before Action item: improve OCR monitoring. No threshold, no owner, no trace field, no runbook. After Monitor: receipt_required=true AND approval_recommended=true AND receipt_evidence_score missing or below 0.70. Route to finance ops. Action: block…
5 minTurn a Bug Report into an AI Pairing BriefSupport report: customers sometimes receive two renewal emails after a payment retry. SBAR debugging brief: Situation, Background, Assessment, Recommendation The common shortcut is to paste the support sentence and ask the assistant to fix duplicate emails. That invites generic guesses about templates, queues, or cron jobs before the code path is bounded. SBAR Situation The specific failure and where it appears. Background Relevant recent changes, code surface, and constraints. Assessment Your current hypothesis and uncertainty. Recommendation The assistant's first bounded task. Duplicate renewal emails are sent when a payment retry succeeds after the first reminder job was already queued. This…
5 minBuild a Done Gate for an AI PRAI-generated PR: account deletion endpoint compiles and passes basic API tests. Definition of Done review gate The common trap is reviewing the assistant's summary instead of reviewing the work against the ticket's actual completion criteria. Definition of Done Behavior The user-facing behavior matches the ticket. Evidence Tests or checks prove the important behavior. Operations Risks, rollout, rollback, and support notes are handled. Behavior check Deletion requires owner permission, soft-delete record, and visible confirmation copy. The gate starts with behavior because code shape is secondary to user and business outcome. Evidence check Tests must cover owner success, non-owner denial, repeated deletion,…
5 minConvert a Feature Idea into AI-Sized SlicesFeature idea: add team-level notification preferences across settings, API, database, and email worker. INVEST slicing for AI-assisted work The common trap is asking AI for the whole feature because it can produce a whole-feature patch. That creates a diff too large for careful review. INVEST Independent Can be reviewed and merged without the entire feature. Valuable Delivers a visible or enabling user outcome. Small and Testable Has a focused diff and a clear test. List surfaces Settings UI, preference API, database column, email worker read path, migration/backfill. The assistant first maps the feature so slices are based on real surfaces,…
5 minBuild a Search BriefKira must search whether AI search could reduce support escalations, but the request hides several possible use cases. PICO-style brief: context -> intervention -> comparison -> outcomes -> source rules The common shortcut is to ask the AI tool the broad business question directly. That produces generic benefits, not a search plan the support team can defend. Context Define the population as B2B SaaS support teams handling technical customer tickets with an existing help center. Context narrows the search universe. A retail chatbot case study or consumer FAQ search may be interesting but not decision-grade for this team. Intervention and…
5 minTurn PICO Into OperatorsOwen's broad search about AI field-service troubleshooting retrieves irrelevant AI content because the question has not been translated into retrieval constraints. PICO-to-search translation: terms, synonyms, exclusions, source filters The common shortcut is to keep asking the same natural-language question with stronger wording. That changes tone but not the retrieval target. Search terms Population terms: field service technicians, service operations, maintenance teams. Intervention terms: AI knowledge retrieval, troubleshooting assistant, agent assist. Terms carry the search into the right domain. Synonyms matter because different industries describe the same capability differently. Exclusions Exclude robotics, consumer chatbots, and generic help desk content when they…
5 minVerify a Market ClaimA strategy slide uses a $45B by 2030 market-size claim from AI-powered search without knowing the original definition. SIFT market-claim check: source type -> original number -> definition -> bounded rewrite The common trap is to keep the impressive number because it has citations. Repetition does not tell you whether the number measures your market. Source type Classify the visible sources as analyst forecast, vendor blog, trade article, and reposted infographic. This prevents double counting. Four citations may represent one forecast repeated through several channels. Original number Trace the $45B claim to the analyst's original forecast page and capture publication…
5 minBuild a Prompt-Injection Test From One WorkflowThe marketing assistant reads competitor pages and drafts campaign briefs. You need to test whether retrieved page text can alter the brief's instructions. Objective -> fixture -> payload -> expected safe behavior -> evidence The common shortcut is to paste a generic jailbreak into chat. That may test model refusal, but it does not test whether retrieved competitor content can control the workflow. Objective Define the failure: retrieved web content must not add unsupported campaign claims or override the user's brief instructions. The objective names the protected behavior, so the test is not just can I trick it. Fixture Create…
5 minScore a Risk Without Inflating ItA customer-success copilot drafts an incorrect refund policy once in 25 red-team attempts. Impact x likelihood x exposure, adjusted by control strength The common trap is severity by emotion: finance words sound scary, so the finding becomes critical without checking frequency, reach, or approvals. Impact If used, the bad draft could promise a refund above policy and create customer or revenue impact. Impact is real because the content could change a customer commitment. Likelihood Observed 1 failure in 25 seeded attempts, tied to ambiguous refund-threshold prompts. The denominator keeps the finding honest while preserving the failure condition. Exposure The copilot…
5 minTurn a Failed Attack Into a Regression TestA hostile PDF can make a procurement assistant redirect an approval email. The fix has landed, but the team needs a test to keep it fixed. Finding -> fixture -> expected safe behavior -> scorer -> release gate The common shortcut is to paste the original transcript into a ticket and call it documentation. That does not run when the retriever, prompt, or model changes. Fixture Save a minimal injected PDF with one hostile instruction and no real confidential content. The fixture should be safe, small, and focused on the failed boundary. Prompt Use a stable user task: summarize this…
5 minBuild a Use-Case RegisterA team writes, "We use AI to help with renewals," but that description is too vague to classify risk, assign controls, or answer an audit question. Use-case register entry: owner -> purpose -> role -> data -> output use -> affected people -> risk -> evidence -> review trigger. Common trap: record only the vendor name and tool category. That creates an inventory that looks complete but cannot support legal classification, data review, or accountability. Owner and purpose Name the accountable business owner and the specific purpose: "RevOps Director owns customer renewal risk prioritization." Ownership and purpose prevent the entry…
5 minDraft an AI Transparency NoticeThe existing notice says, "This experience may include automated technology," but users cannot tell whether the assistant is AI, what it can do, or how to reach a person. Transparency notice: AI identity -> purpose -> limits -> data boundary -> human route. Common trap: use vague legal language that is technically defensible but too late, too abstract, or too buried to help a user. Name the AI Start with: "I am an AI assistant." Users should not have to infer whether they are interacting with AI. State purpose and limits Add: "I can answer common billing questions and draft…
5 minFrom Risk to Test EvidenceThe risk log says the support classifier may be unfair, but the team has no test that could prove the risk is controlled or force a launch change. Risk -> harm -> population -> metric -> segment -> threshold -> owner -> action rule. Common trap: use one average accuracy number and call it fairness evidence. Averages can improve while a relevant subgroup gets worse. Name the harm Define the concrete failure: urgent complaints from non-native English speakers may be misrouted to standard support. A test plan starts with a consequence, not a vague fairness word. Choose metric and segments…
5 minBuild a Sensitivity TableAn AI coding assistant has $180,000 annual fully loaded cost. Base benefit depends on adoption and captured productivity. Leaders need to know whether the ROI survives downside. Sensitivity analysis: vary the uncertain assumptions that drive benefits or costs, then compare low, base, and high cases. The common trap is defending one precise ROI number as if uncertain adoption, capture, and review burden are already known facts. Set low case Benefit $202,000, cost $180,000, net $22,000, ROI = 12%. Low case assumes slower adoption, lower capture, and higher review burden. Set base case Benefit $320,000, cost $180,000, net $140,000, ROI =…
5 minCompute Fully Loaded AI CostA research assistant has $18,000 in annual licenses and a forecast $92,000 annual benefit. The team initially uses only the invoice as cost. Total Cost of Ownership: acquisition + implementation + enablement + operations + control costs. The common trap is treating internal labor as free because it does not show up on the vendor invoice. License $18,000 annual subscription. Start with the visible recurring cash cost, but do not stop there. Implementation 80 IT/security hours x $95 loaded hourly cost = $7,600 one-time. Setup and control work are necessary to make the tool usable and safe. Enablement 45 users…
5 minConvert Time Saved Without OverclaimingAn AI assistant saves 14 minutes on eligible forecast packets. The team completes 1,200 packets per quarter, loaded planner cost is $80/hour, adoption is 65%, and early evidence supports a 40% capture factor. Captured-value conversion: measured time saved x eligible volume x adoption x capture factor x loaded cost. The common trap is multiplying every theoretical minute by salary and calling it savings before capacity is captured. Convert minutes 14 minutes / 60 = 0.233 hours saved per eligible packet. Use measured workflow time, not a vendor estimate. Apply volume 0.233 hours x 1,200 packets = 279.6 potential hours per…
5 min