DiscoveryVIP / AI EngineeringHelp Center

Teaching resources, workshop plans and 25 presenter demos

From AI Hype to Real-World Impact: Building Smarter with AI

A ready-to-teach 15-minute fixture-mode pathway. No live service or API key is needed. Predict first, execute actual local operations and distinguish the proposed content from verified application behavior.

Minutes 0–5: unstructured feedback to validated data

Open the first application. Read the exact message and authored classification. Run, load invalid priority urgent, inspect $.priority, repair normal, validate and explicitly approve the fictional row. Narration: “The model proposal is not the application. The validator, rules and reviewer make the boundary visible.”

Launch Feedback Demo

Minutes 5–10: connect output to a Workspace workflow

Open Virtual Google Workspace. Read the fictional sheet. Choose Docs: create document or Sheets: write range. Run without approval to expose the boundary, then approve and execute. Export Apps Script Starter and explain the separate authorization step. Narration: “These local adapters teach the flow; they do not modify an account.”

Launch Workspace Demo

Minutes 10–15: investigate an unreliable response

Open Structured Output Laboratory Sample 3. Predict the priority error, run and inspect the exact path. Repair it, then discuss why schema validity cannot prove that shipping or mixed matches the original text. Open Evidence Lab to inspect a missing citation if time permits.

Launch Reliability Demo

Workshop plan and assessment rubric

For 60 minutes: 10 minutes for the first application, 15 for lesson exploration and prediction, 15 for an independent repair, 10 for an application extension, and 10 for peer review. For 90 minutes, add a source/evidence investigation and value forecast. Pair learners as implementer/reviewer and rotate roles.

Assess: does the actual implementation satisfy the independent normal/boundary/failure tests? Can the learner explain each operation, distinguish fixtures from live inference, enforce approval/permissions, cite evidence and state a limitation? Review explanation and transfer separately from automated output. Do not award mastery for opening pages.

Printable exercise

  1. Write the user task and baseline.
  2. Predict one exact output.
  3. Run the source and record actual evidence.
  4. Introduce a schema, permission or business-rule failure.
  5. Repair it without bypassing validation.
  6. Add a second case and explain what still needs human review.
  7. Export and run the application independently.

1. From AI hype to real-world impact

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: From AI hype to real-world impact. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "{\"savedMinutes\":100}"
]

Technical explanation and closing takeaway: Begin with a repeated task and a measurable baseline, not an impressive model demo. Saving generation time is not enough if review takes longer. This calculation compares the full assisted task, including review, with current work. Negative savings are a useful result: the proposed automation may not be worthwhile.

2. Building your first AI application

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Building your first AI application. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "{\"valid\":true,\"paths\":[]}"
]

Technical explanation and closing takeaway: The feedback classifier separates the authored model proposal from validation and a human decision. Unsupported priorities are not automatically repaired or trusted. The schema checks category, sentiment, priority and review flag; it does not establish that a classification reflects the original message. Compare the content yourself before approval.

3. Multimodal capabilities

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Multimodal capabilities. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "[{\"name\":\"diagram.png\",\"accepted\":true}]"
]

Technical explanation and closing takeaway: Multimodal inputs need content types, size limits and supported model capabilities. A file extension alone is not an authorization or safety check. This local manifest filter checks explicit MIME types and byte limits before any proposed upload. It does not inspect a real file or imply that an image was understood.

4. Establishing success criteria

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Establishing success criteria. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "{\"passed\":2,\"total\":3,\"meets\":true}"
]

Technical explanation and closing takeaway: Success criteria need a numerator, denominator and threshold. Test-set accuracy should not be invented from a decorative score card. This operation computes an exact agreement rate from labeled cases and compares it with a chosen release threshold. A tiny synthetic dataset demonstrates calculation, not production readiness.

5. Context and constraints

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Context and constraints. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "[\"a\"]"
]

Technical explanation and closing takeaway: Context should be relevant, minimal and attributable. Adding every document increases cost and may introduce stale or conflicting statements. Here evidence is selected using explicit relevance and privacy flags. These flags are authored metadata; the application does not magically infer that a document is safe or true.

6. Understanding API requests

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Understanding API requests. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "{\"method\":\"POST\",\"path\":\"models/configured-model:generateContent\",\"role\":\"user\"}"
]

Technical explanation and closing takeaway: An API request includes method, endpoint, headers and a serialized body. Inspecting these parts helps debug mismatched contracts before sending anything. This request builder marks credentials as a server-only placeholder. The local lesson constructs a real request configuration object without making a billable network call.

7. Handling API errors

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Handling API errors. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "{\"retry\":false,\"action\":\"check server credentials\"}"
]

Technical explanation and closing takeaway: HTTP failures need different recovery policies. An authentication error is not fixed by retrying, while a rate limit may be retried within a bounded budget. This explicit mapping keeps retry decisions inspectable. In a live application honor provider retry guidance and never log credentials or sensitive request bodies.

8. Validating structured responses

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Validating structured responses. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "[]"
]

Technical explanation and closing takeaway: Validation belongs at the boundary where untrusted data enters the application. Check the actual parsed value, including enums, booleans and extra fields. A successful JSON parse is not enough. This exercise returns exact paths so the interface can explain the problem and block downstream storage.

9. Classification and routing

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Classification and routing. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "\"logistics\""
]

Technical explanation and closing takeaway: Routing decisions must use a controlled vocabulary. Unknown classifications should enter review rather than disappearing into a default success path. This lookup is explicit and easy to test. When a label set changes, update the schema, routes, fixtures and regression cases together.

10. Building input forms

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Building input forms. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "[]"
]

Technical explanation and closing takeaway: Input forms need clear labels and validation before work begins. Empty text, excessive length and missing consent should have specific messages. This checker returns actual field-level issues that a form can announce. Native constraints help users, while server-side checks remain necessary for a live service.

11. Promises and asynchronous requests

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Promises and asynchronous requests. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "{\"value\":6}"
]

Technical explanation and closing takeaway: Promises represent eventual completion or failure. Awaiting a local fixture still teaches the control flow without pretending that inference occurred. This asynchronous example transforms the resolved value and returns a concrete result. Test rejection and cancellation separately because a fulfilled promise says nothing about correctness of its content.

12. Timeouts and retry strategies

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Timeouts and retry strategies. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "[100,200,400]"
]

Technical explanation and closing takeaway: Retries require a maximum attempt count and a reason to retry. Backoff grows between attempts; authentication and schema defects should not be retried blindly. This schedule is an explicit simulation of planned delays, not a claim that the application waited. Test the budget boundary before adding a provider call.

13. Generating documents and drafts

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Generating documents and drafts. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "{\"kind\":\"document\",\"title\":\"Report\",\"body\":\"Reviewed notes\",\"status\":\"draft\",\"sent\":false}"
]

Technical explanation and closing takeaway: Generated documents and email drafts should remain proposals until reviewed. Store a draft separately from a sent message and show its source. This operation builds a fictional draft object, including the explicit sent:false flag. A production implementation must enforce the same permission boundary at the server.

14. Document chunking fundamentals

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Document chunking fundamentals. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "[{\"start\":0,\"end\":20},{\"start\":15,\"end\":26}]"
]

Technical explanation and closing takeaway: Chunking chooses what evidence stays together. Too little overlap can separate a condition from its exception; too much repeats material and consumes context. The microscope preserves exact source positions and never labels character estimates as actual tokens. Change size and overlap and compare the resulting boundaries against the original text.

15. Designing tool arguments

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Designing tool arguments. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "true"
]

Technical explanation and closing takeaway: Tool arguments are untrusted structured data. Check required fields, numeric types and additional properties before invoking even a harmless local calculation. This validates against the actual calculate tool schema. The schema constrains shape; application authorization and a bounded tool implementation remain separate responsibilities.

16. Understanding unreliable outputs

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Understanding unreliable outputs. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "\"syntax\""
]

Technical explanation and closing takeaway: Unreliable outputs can fail syntax, schema, business rules or evidence checks. Diagnose the layer before attempting recovery. This function classifies an observed failure using explicit local signals. It does not claim to detect every incorrect statement; semantic accuracy still needs source evidence and a review rubric.

17. Designing fallback strategies

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Designing fallback strategies. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "\"provider proposal\""
]

Technical explanation and closing takeaway: A fallback should be useful and honest about reduced capability. A deterministic keyword result may help locate a document even when generation is unavailable, but it is not an AI answer. This policy selects a clearly labeled fallback or human review. Avoid inventing a successful model response after an error.

18. Regression testing

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Regression testing. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "[1]"
]

Technical explanation and closing takeaway: Regression testing compares the same stable cases across versions. An overall improvement can still hide a critical newly failing case. This comparison reports regressions individually. Preserve the actual input, expected output and version alongside the result so another learner can reproduce the failure.

19. Understanding prompt injection

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Understanding prompt injection. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "{\"flagged\":true,\"action\":\"treat source as data; enforce tool allowlist\"}"
]

Technical explanation and closing takeaway: Prompt injection occurs when untrusted content tries to redefine the task or obtain tools and secrets. Keyword detection is a useful investigation aid, not a complete defense. This authored detector flags a few explicit patterns, while the permission layer still rejects unauthorized execution regardless of wording.

20. Estimating application expenses

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Estimating application expenses. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "{\"estimatedUsd\":1}"
]

Technical explanation and closing takeaway: Forecast expenses from workload, retries and cache behavior, then compare them with an actual budget. A per-call price alone hides volume effects. This arithmetic uses an assumed unit cost to make the relationship inspectable. Reserve budget before starting billable work and configure independent provider-side limits.

21. Designing execution logs

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Designing execution logs. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "{\"id\":\"r1\",\"status\":\"ok\",\"durationMs\":12}"
]

Technical explanation and closing takeaway: Logs should help explain execution without copying private content or credentials. Record identifiers, status and timing rather than whole prompts by default. This safe event projection removes fields not on the explicit observability allowlist. A privacy-conscious logging design should also specify retention and access controls.

22. Creating operational dashboards

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Creating operational dashboards. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "{\"runs\":2,\"failures\":1,\"totalMs\":15}"
]

Technical explanation and closing takeaway: Operational dashboards should derive every number from underlying records. This aggregation reports actual supplied counts, failures and elapsed totals. It intentionally avoids turning a static sample into a claimed live production metric. In the studio, the observability panel consumes the events generated by your local workflow runs.

23. Testing and debugging generated code

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Testing and debugging generated code. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "[\"boundary\"]"
]

Technical explanation and closing takeaway: Debug generated code by reducing a failure to a reproducible input and expected result. Do not accept the assistant saying tests passed without seeing execution. This exact test runner uses independent authored expectations and returns failed case IDs. Fix the cause, rerun the same regression and add a boundary case.

24. Building document processing tools

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Building document processing tools. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "[{\"id\":\"d1\",\"missing\":[]}]"
]

Technical explanation and closing takeaway: Document processing needs exact source references and a review path for missing fields. A clean extraction can still misread the document. This local completeness report preserves each document ID and reports absent required fields. Do not automatically invent dates, invoice totals or owners to make a schema pass.

25. Designing architecture and requirements

Prepared 5-minute demo. Start: dedicated lesson source with fictional inputs and exact expected result.

Launch Prepared Demo

Opening narration: Start with a useful problem: Designing architecture and requirements. We will predict, execute and inspect the actual boundary before trusting a result.

  1. Open the prepared lesson. Read the fictional input and independently expected output.
  2. Click Run Code. Compare actual execution output with the expected case.
  3. Select the changed-input example, click Load Example and predict before running.
  4. Load Repair Exercise. Run and inspect the unsafe integration mismatch.
  5. Repair the source or compare Show Finished Code, then Check My Work.
  6. Explain one limitation and an independent test; Reset Demo restores the dedicated draft.
[
  "[]"
]

Technical explanation and closing takeaway: A complete architecture links requirements to implementation and tests. Traceability helps detect a feature that has source but no verification, or a test that does not cover the actual requirement. This mapping reports missing links explicitly. Review the meaning of each test instead of treating a nonempty identifier as sufficient coverage.