Skip to main content
Public lesson library

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

Calculate a freshness budget backwards

Backward freshness budgeting: consumer deadline -> publish -> validation -> transform -> source -> buffer Tara works backward from 8:30: dashboard publish needs 5 minutes, validation 7, transform 18, extraction 25, with 5 minutes of buffer. After one week, extraction variance consumes the buffer on four days. She moves the source pull earlier and adds a budget alert at 7:55. If extraction is not complete by 7:55 a.m., the pipeline has burned its source budget and should alert the owner.

5 min
Write the incident note from the lineage graph

Revenue numbers are wrong after a Stripe ingestion change. Slack has speculation but no shared incident state. Changed input -> producing run -> impacted outputs -> consumer action -> repair boundary A vague incident note creates parallel debugging and lets consumers keep using suspect data. Name the changed input stripe.balance_transaction.amount changed unit interpretation in the extractor from cents to dollars. The incident starts where the wrong fact entered the lineage graph. Name the producing run Bad output first appears in stripe_ingest run 2026-06-18T02:00Z. Run identity separates this incident from older code and gives repair a starting boundary. Name impacted outputs…

5 min
Build a Completeness Check From a Business Rule

Customer tier is missing in the customer table, but the team has not defined which customers require it or when. DMAIC for completeness: Define population -> Measure denominator -> Analyze exceptions -> Improve capture -> Control drift Counting nulls across the whole table treats prospects, inactive customers, and newly-created accounts as equal defects. Define Required field: customer_tier. Required population: active enterprise customers with signed contracts. Required timing: within one business day of activation. Definition prevents false defects. A prospect without tier may be acceptable; an active enterprise customer without tier is not. Measure Completeness = active enterprise customers with customer_tier…

5 min
Use a Control Chart for Freshness Alerts

A dashboard pipeline completes between 6:12 and 6:47 most days, but the alert threshold is 6:30, creating noisy pages. Control chart thinking: baseline process -> identify normal variation -> watch special-cause signals -> align alerts to user need A threshold inside normal variation creates alert fatigue and hides real drift. Baseline Collect 30 completion times. Center: 6:31. Normal observed range: 6:08 to 6:52. A process cannot be judged by one bad-feeling morning. Baseline first. Compare need Finance needs the dashboard by 8:00. The internal SLO is ready by 7:30 on business days. User need and process behavior are different. Both…

5 min
Run a Mini FMEA on a Status Field

customer_status drives billing, support access, and churn reporting. Canceled customers stayed active for two days. Mini FMEA: failure mode -> effect -> severity -> occurrence -> detectability -> control Fixing the most visible defect first can leave the highest-risk failure mode untouched. List modes Modes: canceled remains active; active marked canceled; invalid status value; CRM and billing status disagree. Failure modes are specific ways the field can fail, not generic complaints that status is wrong. Score risk Canceled remains active: severity 5, occurrence 3, detectability 2. Invalid status value: severity 2, occurrence 4, detectability 5. The invalid value is frequent,…

5 min
Work the growth curve before optimizing

A script checks 100,000 imported customer rows for duplicate IDs by comparing each row with every other row. Complexity estimate: identify n, name the repeated operation, compare the growth shape, then choose a structure that changes the repeated operation. The common trap is to benchmark only the 1,000-row QA file and tune syntax while leaving the pairwise O(n^2) shape intact. Step 1 Name n: the production file has n = 100,000 rows. Complexity analysis starts by naming the input that drives growth. Here it is rows, not columns or files. Step 2 Name the operation: for each row, compare its…

5 min
Why dynamic arrays can append fast after resizing

A dynamic array starts with capacity 4 and currently holds 4 items. The next append triggers a resize before storing the fifth item. Amortized analysis: separate the cost of one expensive resize from the cost spread across a sequence of many appends. The novice move is to call the whole structure slow after seeing one resize spike, or to ignore the spike when a hard latency budget exists. Step 1 Append while capacity remains: store item in the next free slot and increment size. This is the cheap case that happens most of the time when capacity has slack. Step…

5 min
Use the heap invariant for triage

A support system repeatedly needs the highest-urgency conversation from a changing backlog. Priority queue via heap: define priority, keep the most urgent item at the root, and repair the heap after insert or removal. The common trap is full sorting after every change. Sorting answers more than the worker asks for when the worker only needs the next item. Step 1 Define priority: urgency score first, then waiting time as a tiebreaker. Priority queues are only as clear as the priority rule. Ambiguous priority becomes inconsistent triage. Step 2 Insert each conversation into a max-heap so the root is the…

5 min
Write an A3 for a recurring pipeline incident

Inventory freshness missed the 7 a.m. promise on three consecutive Fridays, delaying replenishment decisions for 42 store managers by at least half a day. A3 problem solving: define the gap, show current condition, find root cause, choose countermeasure, and verify follow-up. The common trap is writing incident notes that end at 'rerun succeeded.' That resolves the symptom but teaches the team nothing about why the same failure returned or how the business was affected. Incident note: Job timed out. Rerun succeeded at 10:18 a.m. No further action. A3: Freshness promise missed three Fridays because late vendor files had no pre-cutoff…

5 min
Write a useful data SLO for an executive KPI

The ARR dashboard is critical but has no explicit reliability promise. Stakeholders disagree on when it should be fresh and how accurate it must be. Data SLO = observable indicator + target + time window + owner + response policy. The common trap is writing vague promises such as 'dashboard should be accurate and timely.' That gives everyone confidence until the first miss, then nobody knows whether the system actually failed. ARR dashboard is usually right by morning, and Data will fix issues when someone flags them. ARR dashboard freshness SLO: refreshed by 8:00 a.m. on 98% of business days;…

5 min
Use RICE to turn a messy data backlog into a shortlist

A data team has capacity for two requests: rebuild the revenue KPI, create a territory export, investigate churn drivers, and add five dashboard filters. The manager needs a transparent shortlist. RICE = Reach x Impact x Confidence / Effort, with effort including validation and adoption. The common trap is scoring only the build work. Data requests often carry hidden effort in definition alignment, data quality checks, downstream changes, and stakeholder enablement. Backlog ordered by executive pressure: dashboard filters, churn investigation, territory export, revenue KPI rebuild. Backlog ordered by explicit assumptions: revenue KPI rebuild, churn discovery spike, territory export, dashboard filters…

5 min
Debug A Duplicate Fact Model

fct_orders fails a unique order_id test after payments are joined. Ask why the grain changed, not just why the test failed. The shortcut is to patch the final mart because it is the visible failure. That hides whether the defect is raw data, staging cleanup, join grain, or metric definition. Inspect failing rows Query duplicated order_ids and count payment rows per order. The evidence shows whether duplicates are real orders or join multiplication. Pre-aggregate many side Build int_payments__order_rollup with one row per order before joining. The join now preserves order grain. Prove the contract Keep the unique/not_null test on fct_orders.order_id…

5 min
Make A Macro Worth Having

Four staging models convert cents to dollars with slightly different casts and rounding. A macro is justified when repeated logic has one business meaning and a stable interface. The shortcut is to patch the final mart because it is the visible failure. That hides whether the defect is raw data, staging cleanup, join grain, or metric definition. Find repetition with meaning Compare the four expressions and confirm they all mean monetary cents to decimal dollars. Do not abstract code that only looks similar but means different things. Write small macro Create cents_to_dollars(column_name, scale=2) and quote the string argument in calls.…

5 min
Turn Raw Orders Into A Staging Model

Raw orders has cryptic names, string timestamps, and status codes used by three downstream analyses. One source-shaped staging model creates a stable interface: rename, cast, preserve grain, and test keys. The shortcut is to patch the final mart because it is the visible failure. That hides whether the defect is raw data, staging cleanup, join grain, or metric definition. Declare source Add jaffle_shop.orders under sources: with description and loaded_at field. dbt now has a named raw boundary and a place for freshness. Create stg model Select one row per raw order, rename id to order_id, cast created_at, and standardize status…

5 min
Write a DRILL recommendation note

Asha must turn an AI vendor recommendation into a decision-ready note for the COO. DRILL: Decision, Role, Inputs, Limits, Launch step The common shortcut is pasting the model's preferred vendor into the note, which hides decision rights, source quality, and uncertainty. Decision State the actual call: choose a payroll vendor for the North America rollout. A note without the decision boundary invites people to debate everything. The decision statement focuses the recommendation. Role Write: AI summarized RFP evidence and compared stated risks; the COO owns the final vendor decision. This prevents the AI from inheriting authority and makes the human…

5 min
Run a post-error AI review

A resume-screening assistant missed qualified internal applicants with older job titles. Post-error review: classify, bound, assign, monitor The common trap is deciding the AI is either bad or fine without identifying the failed case class and changing the reliance boundary. Classify Classify the miss as an input and labeling issue: older internal titles did not map to the skills the role required. The cause matters because a model weakness, stale data, bad input, and misuse require different fixes. Bound Create a boundary: internal applicants and title-mismatch cases require human review before rejection. This preserves useful automation for routine cases while…

5 min
Build a focus-ready calendar block

A blank focus block creates decisions inside the block. Deliverable → First action → Boundary → Recovery Calling a calendar event “deep work” can become decorative if it does not specify what attention will produce. Deliverable Name the output the block should leave behind. The deliverable defines success before mood enters. First action Write the first physical step in the calendar note. This removes start friction. Boundary State when messages are checked and what counts as urgent. The rule lowers ambiguity. Recovery Plan a break before fatigue decides for you. Recovery keeps later work from borrowing depleted attention. The block…

5 min
Run a 10-minute shutdown sweep

Tomorrow starts with today’s unclosed loops. Capture → Clarify → Park → Cue Leaving tabs and thoughts open feels efficient, but it makes tomorrow pay the reconstruction cost. Capture List every loose loop without judging it. Capture mode is fast because evaluation waits. Clarify Turn each loop into next action, waiting-for, calendar, reference, or trash. The category tells your brain the loop has a home. Cue Write the exact first action for tomorrow’s focus block. A re-entry cue prevents the morning from becoming rediscovery. Six loose items become four parked actions, one waiting-for, and one clear starting cue. Result The…

5 min
Use WOOP to protect a hard task

A focus goal fails at the predictable obstacle. Wish → Outcome → Obstacle → Plan Motivation alone skips the friction point. WOOP works because it names the cue that usually hijacks attention. Wish State the specific focus result you want. The wish must be concrete enough to aim behavior. Outcome Name why it matters if it works. The outcome supplies value, not pressure. Obstacle Identify the internal obstacle, not just the external excuse. Deep-focus obstacles are often urges, emotions, or ambiguity. Plan Write an if-then response to the obstacle. The plan preloads the better move. The wish becomes an obstacle-specific…

5 min
Worked example: build a known-channel script

You need words that pause a realistic voice or video request without accusing the other person of being fake. Known-channel script: trigger, rule, channel, next step The common trap is to ask the suspicious caller to prove themselves inside the same call. That keeps control with the attacker and makes the exchange personal. Trigger Name the risk category: 'Because this is an urgent banking-detail change...' A trigger is objective. It keeps the conversation away from whether you personally believe the voice or face. Rule Attach the standing policy: '...our rule is to verify outside the request channel...' The rule reduces…

5 min
Worked example: map a deepfake attack chain

A voice clone of a regional VP is used to request a confidential vendor payment while the VP is traveling. Attack-chain map: collect, target, impersonate, pressure, cash out The common trap is to search for a perfect synthetic-media detector. The cheaper stops may be in public exposure, org-chart leakage, payment controls, or assistant workflows. Collect The attacker gathers public podcast audio, conference clips, and LinkedIn travel posts. This is where exposure reduction and executive-profile hygiene help. The final call starts long before the phone rings. Target They identify the VP's assistant and finance analyst from public posts and calendar references.…

5 min
Worked example: SIFT a suspicious executive video

A 22-second repost appears to show a partner CEO saying your integration is dead, and teammates want to warn customers immediately. SIFT: Stop, Investigate the source, Find better coverage, Trace to original context The common trap is to debate visual artifacts while the claim keeps spreading. The first professional question is not 'does this look fake?' but 'where did it come from and what context is missing?' Stop Maya pauses the Slack thread and writes, 'Do not use this externally until we trace the source.' Stopping is an action, not passivity. It prevents amplification while making clear that verification work…

5 min
Build a decision map for color review

Blue Team review produced 143 comments across technical, management, past performance, pricing assumptions, and compliance. The team needs a closure map before Red Team. DACI comment governance: Driver moves the review, Approver closes decisions, Contributors provide facts, Informed stakeholders adapt. Common trap: letting every reviewer edit directly in the volume. The loudest comment wins, compliance comments get treated like style notes, and the same issue reappears in Red Team. Define the decision types Separate comments into style, compliance, technical accuracy, win strategy, pricing impact, and executive escalation. Different comment types need different approvers. This prevents a grammar pass from accidentally…

5 min
Write a risk register entry that drives action

The current register entry says, 'Subcontractor may be late.' It appears in every review but never changes behavior. ISO 31000 action loop: identify the uncertainty, analyze consequence, evaluate urgency, treat it, monitor triggers, and communicate ownership. Common trap: writing risks as worries. A worry says what might go wrong; a risk entry says how the team will know and what it will do. Objective Protect June integration readiness and customer demo confidence. Risk is uncertainty on objectives. Naming the objective prevents generic fear. Cause and consequence If SubK misses two weekly interface drops, lab integration slips and demo margin falls…

5 min

Skill catalogue | Browse the library

Put it into practice

Choose your next learning habit.

Contact us