Skip to main content
Public lesson library

Decision tree lessons

Follow a decision through its consequences. Pause at each choice, consider what changes, and compare the possible paths before choosing your next move.

Lesson previews

Release a prompt change like a small software change

Release pressure A shared prompt used by Sales and Support needs an update to produce shorter summaries. The prompt is copied into 14 workflows, so one edit can have many side effects. Delivery control DORA lens for prompt releases Treat prompt changes as small operational releases: define scope, monitor failure, and recover quickly. Paste live Fast, invisible, hard to recover. Change speed with lower failure cost. A prompt release is healthy when failures are visible and recovery is fast. 01 Scope 02 Guardrail 03 Recover Who changes? The shorter-summary prompt touches Sales deal recaps and Support escalations.

5 min
Walk the lab-tour boundary

Visitor proxemics A customer group enters a prototype lab while engineers are working at benches. The host must create access without letting the tour invade active work territory. Without spatial guidance, visitors follow curiosity and engineers become boundary guards. Tour frame Mark, ask, narrate Give visitors a clear place to stand, ask before crossing work territory, and use narration to maintain immediacy from a safe distance. Shortcut Let visitors gather naturally around the interesting bench. Visitors feel included and the working territory stays intact. Safety-sensitive spaces need explicit temporary territories. 01 Boundary 02 Distance 03 Questions Set the boundary mark

5 min
Walk the room choice for a hard 1:1

Sensitive 1:1 Leah needs to discuss missed deadlines with Mateo. She wants privacy, but she also wants the room to avoid a disciplinary feel. The room will either support candor or make Mateo spend energy managing exposure. Proxemics sequence Privacy -> control -> immediacy Choose the space first, then the power geometry, then the warmth cues. Shortcut Pick the quietest room and start talking. A room that holds the conversation without trapping the person. The strongest setup gives the other person enough control to stay present. 01 Room 02 Seat 03 Artifact Choose the room privacy first

5 min
Build challenger safety in planning

Planning pressure The plan looks aligned, but the room knows the staffing math is brittle. If challenge comes too late, it becomes a side conversation instead of a design input. Meeting design Normalize challenge -> focus challenge -> close with owner Challenger safety is not accidental. It needs a visible invitation, a narrow object, and a clear close. Shortcut Any objections? The room learns to challenge without chaos. Good challenge needs both permission and boundaries. 01 Invite 02 Focus 03 Close Invite the challenge Permission

6 min
Repair safety after a public shutdown

Chilled room One dismissive line has changed what the team expects will happen if they challenge. The repair must reach the whole room, not just the interrupted person. Repair sequence Acknowledge -> reopen -> change the norm Apology matters, but visible norm repair is what restores team learning. Shortcut Private apology only The team sees a different future rule, not just regret. Repair is credible when it changes both the content path and the social path. 01 Own it 02 Reopen 03 Reset Own the shutdown Public acknowledgment

6 min
Run the retro after a failed release

Post-release pressure The room is tired, defensive, and tempted by blame because the outage is fresh. Structure is what keeps urgency from collapsing into finger-pointing. Retro sequence Impact -> timeline -> conditions -> repair owners The strongest retrospective keeps truth speakable and still ends with accountable follow-up. Shortcut Start by asking who messed up The team learns honestly and still changes the work. Blameless does not mean vague. It means factual learning before personal judgment. 01 Open 02 Map 03 Close Open the retro Tone set

6 min
Turn a weekly report into a reliable script

Thursday report Rina has three CSVs, one approved manual report, and one unclear cleanup rule that could change revenue totals. The first script will become the new standard if nobody tests the assumptions. PDCA for scripts Plan, Do, Check, Act Use the first automation as a small improvement experiment. Prove the logic on a safe slice before scaling it. Shortcut Code the whole report and hope differences are small. A script that earns trust before it writes the live report. Small tested loops beat broad unverified automation. 01 Plan 02 Do 03 Check 04 Now you try

5 min
Give the scheduled job an owner

Vacation test Maya is out, the churn export is late, and three teams are guessing who can fix or approve it. A scheduled script without ownership becomes hidden operational risk. RACI for automation Responsible, Accountable, Consulted, Informed Separate the person who runs the job from the person accountable for the business meaning of the output. Shortcut The person who wrote it owns everything. A job that can survive vacations, handoffs, and incidents. Production automation needs operational ownership, not just working code. 01 Alert 02 Definition 03 Handoff 04 Now you try

5 min
Trace a broken morning run

7:12 a.m. The scheduled replenishment run failed with KeyError: sku, and 46 purchase orders are missing. A code-only patch may get today moving while leaving tomorrow's failure untouched. RCA for automation Symptom -> cause -> corrective action Use the stack trace to start the investigation, then keep moving upstream until the process cause is visible. Shortcut Patch the column name and move on. Failures become visible before they create bad operations work. Fix the controllable cause, not only the visible exception. 01 Symptom 02 Evidence 03 Prevention 04 Now you try

5 min
Debug by reading the traceback path

decision trail consequence cards before-after panel The pressure Elena is changing a Python script while someone waits for the output. One shortcut would finish the ticket, but the wrong shortcut will create a recurring bug. Small Python shortcuts become maintenance debt quickly. Python decision model Name the shape, then code the move Decide what data you hold before choosing syntax. Readable Python follows the data shape and makes failures visible. 01 Shape 02 Move 03 Fresh try A KeyError appears during a live dashboard refresh. The traceback points at totals[region]. What do you inspect first?

5 min
Pick the right loop for the job

decision trail consequence cards before-after panel The pressure Hannah is changing a Python script while someone waits for the output. One shortcut would finish the ticket, but the wrong shortcut will create a recurring bug. Small Python shortcuts become maintenance debt quickly. Python decision model Name the shape, then code the move Decide what data you hold before choosing syntax. Readable Python follows the data shape and makes failures visible. 01 Shape 02 Move 03 Fresh try A report labels every row with a status and sometimes needs the row number. The body only needs each row. Which loop is…

5 min
Refactor a script into one honest function

decision trail consequence cards before-after panel The pressure Sam is changing a Python script while someone waits for the output. One shortcut would finish the ticket, but the wrong shortcut will create a recurring bug. Small Python shortcuts become maintenance debt quickly. Python decision model Name the shape, then code the move Decide what data you hold before choosing syntax. Readable Python follows the data shape and makes failures visible. 01 Shape 02 Move 03 Fresh try Three blocks calculate discounts with slightly different variable names. Before extracting the function, what do you identify?

5 min
Triage a backlog fairly

The backlog There are 140 tickets, 12 agents, and three competing pressures: customer impact, arrival order, and executive noise. The queue needs priority without losing legitimacy. Triage rule Impact -> Visibility -> FIFO remainder Use priority only where impact justifies it, then preserve arrival order for the rest. Noise wins Whoever escalates loudest goes first Urgent work moves without teaching customers to shout. A priority queue without a visible rule becomes perceived favoritism. 01 Rule 02 Update 03 Exception Decision 1 Payment failures block revenue. Password resets are high volume but usually low risk.

5 min
Walk the lobby flow

The lobby opens At 9:14, 22 people are present, but only 11 have been properly checked in. The rest are waiting near doors, asking other customers, or hovering near the clerk. Your decisions should reduce both confusion and service-time waste. Service flow Enter -> Wait -> Handoff Queue flow improves when each stage has a clear customer action, visible staff action, and evidence that the place in line is protected. Crowd Customers self-organize and ask staff for help The line feels fairer and each service interaction starts cleaner. The queue should tell customers what to do next before staff have…

5 min
Triage a Suspected Hallucination

Decision Walk An AI answer sounds credible, but one sentence could change a customer commitment. Use a claim-by-claim check before you accept or forward it. Evidence chain Claim, Source, Context, Decision A grounded answer should survive a simple path: isolate the claim, open the source, read the surrounding context, and decide what the answer can safely say. Claim Start with the exact sentence that could change the decision. Decision Do not evaluate the whole answer at once. Evaluate the highest-impact claim first. Find the risky sentence The answer says enterprise customers can export audit logs for 180 days. What do…

5 min
Build Your First RAG Workflow

Decision Walk You want a useful internal assistant without connecting the entire company drive on day one. Launch quality comes from scope, not ambition. Launch path Scope, Prepare, Cite, Review A first RAG workflow should constrain the question type, clean the source set, force citations, and define review thresholds. Scope Begin with one question family and one approved source collection. Launch Make the system useful for a narrow job before expanding its source universe. Pick one job Teams ask HR dozens of questions. Some are about benefits, some about performance, some about legal risk. What should your first RAG assistant…

5 min
Set the Source-of-Truth Boundary

Decision Walk Your AI assistant answers pricing questions. It can see docs, old decks, and CRM notes. Without a source boundary, retrieval can mix authority with noise. Grounding boundary Include, Exclude, Escalate A source boundary names the documents that count, the material that does not count, and the cases that need a human or a more authoritative record. Include Name the approved sources that count as evidence for this use case. Escalate The model should not decide source authority on its own. Name authority Pricing details appear in a public pricing page, discount matrix, sales decks, and old launch notes.…

5 min
Debug a Hallucinated Policy Answer

Policy failure The HR bot says the home-office monitor allowance is 400 dollars. The current policy says 250 dollars, and employees are already filing claims from the wrong answer. A polished answer is not enough. You need to locate whether the failure was generation, retrieval, or stale source data. Claim -> context -> corpus Walk backward from the claim A RAG hallucination is easiest to debug by following the answer claim back through the retrieved context and then into the source collection. Bad shortcut Rewrite the prompt immediately The fix lands in the layer that failed first. Do not fix…

5 min
Offline, Shadow, or Online Eval

Release choice The new retriever improves offline answer relevance by 6 points, but it will answer prospect questions about live contract clauses. The question is not whether the model improved. The question is what evidence is enough before real users see it. Risk-controlled exposure Offline -> shadow -> online Evaluation stages should increase realism and exposure only when the previous stage has reduced the biggest uncertainty. Shortcut Ship because offline average improved Risk rises only after evidence rises. Do not let online users become your first realistic eval set for high-impact answers. 01 Risk 02 Evidence 03 Exposure Classify the…

5 min
Build a Regression Gate

Silent break The system passed last month's legal eval, but a new embedding model now misses indemnity exceptions. The average answer score still looks fine. Regression gates exist because averages rarely protect the cases people remember. Critical-slice gating Protect known-important behavior A release gate is a compact suite of cases that must keep passing whenever the RAG stack changes. Shortcut Run a general average and ship The gate catches regressions where they matter. Use gates to protect lessons you have already paid to learn. 01 Slices 02 Rules 03 Action Pick cases You can include 40 cases in the first…

5 min
Model form status before fields

Contradictory UI A signup form can show success and error together because separate booleans stayed true after different requests. The user sees inconsistency; the code sees invalid state combinations. Declarative form state Model visible statuses, then render from that model Start with what the UI can legitimately show, not with a boolean for every message. Flags isLoading, isSuccess, isError, isDisabled The UI cannot show states the model does not allow. Represent mutually exclusive UI states with one mutually exclusive state value. 01 States 02 Transition 03 Render Now you try A password reset form can be idle, submitting, succeeded, or…

5 min
Debug stale state with the snapshot model

Stale update A '+3' button calls setCount(count + 1) three times. QA expects +3 and gets +1. The bug is not arithmetic. It is a mismatch with React's state snapshot model. State snapshots Render gives a snapshot; updater functions compose queued changes Handlers see the state from the render that created them. Updater functions tell React how to transform the latest queued value. Set value setCount(count + 1) three times The handler expresses the intended transformation instead of a stale target value. When next state depends on previous state, give React a function, not a stale value. 01 Symptom 02…

5 min
Walk a feature through Thinking in React

Feature pressure You need a searchable inventory table by lunch: filter text, in-stock toggle, grouped product rows, and an empty state. The fastest-looking first step can create the most expensive rewrite if state lands in the wrong place. Thinking in React Hierarchy -> Static UI -> Minimal State -> Owner -> Callbacks The sequence separates design structure from interactive behavior so each decision has evidence. Shortcut Start with useState and handlers Interactivity lands where the data flow already makes sense. React is easiest when the tree and the data model are clear before state appears. 01 Boundary 02 State 03…

5 min
Walk the corridor conversation

Corridor moment After a tense planning meeting, Jordan leaves three minutes early and stands by the window. Their posture is closed, but you do not know whether the cue is anger, overwhelm, embarrassment, or a scheduling issue. A short check-in can repair trust only if it lowers the cost of honesty. Observe → Permission → Confirm The light-touch accuracy walk You are not trying to extract a feeling. You are creating a low-pressure path for the person to correct or confirm what the cue might mean. Ambush “Why did you leave?” The other person stays in control of depth and…

5 min

Skill catalogue | Browse the library

Put it into practice

Choose your next learning habit.

Contact us