This repository helps AI PMs understand how production generative AI systems are assembled, where they fail, and which evidence is needed before changing the architecture. Participants learn to map an AI system from user request to response, distinguish model problems from application problems, and turn symptoms into testable hypotheses and prioritized product decisions.
The project maps a generative AI system, traces a visible failure through its layers, and turns verified evidence into a prioritized recovery plan.
%%{init: {"theme":"base","themeVariables":{"fontFamily":"Arial","primaryTextColor":"#172033","lineColor":"#64748B"},"flowchart":{"curve":"basis","nodeSpacing":36,"rankSpacing":52}}}%%
flowchart LR
Goal[Diagnose and recover<br/>a generative AI system]
subgraph Map["<b>1. Map the Whole System</b>"]
direction TB
Request[User request<br/>and expected outcome]
Layers[Trace the end-to-end<br/>request path]
Knowledge[Knowledge, model<br/>and data flow]
Tools[Tools, actions<br/>and permissions]
Boundaries[Tools, permissions<br/>and trust boundaries]
Request --> Layers
Layers --> Knowledge
Layers --> Tools
Knowledge --> Boundaries
Tools --> Boundaries
end
subgraph Diagnose["<b>2. Diagnose the Failure Systematically</b>"]
direction TB
Symptom[Observed symptom]
Hypotheses[Competing architectural<br/>hypotheses]
Traces[Logs, traces<br/>and system state]
Tests[Targeted tests<br/>and controlled probes]
Cause[Supported root cause<br/>or bounded uncertainty]
Symptom --> Hypotheses
Hypotheses --> Traces
Hypotheses --> Tests
Traces --> Cause
Tests --> Cause
end
subgraph Recover["<b>3. Prioritize Recovery and Governance</b>"]
direction TB
Controls[Evaluation, observability,<br/>security and oversight]
Fixes[Rank fixes by impact,<br/>risk and reversibility]
Output[Recovery recommendation<br/>and evidence plan]
Controls --> Fixes --> Output
end
Goal --> Map --> Diagnose --> Recover
classDef goal fill:#172033,color:#FFFFFF,stroke:#172033,stroke-width:2px;
classDef input fill:#FFFFFF,color:#172033,stroke:#4677A8,stroke-width:1.5px;
classDef work fill:#FFFFFF,color:#172033,stroke:#3B8A5A,stroke-width:1.5px;
classDef output fill:#FFFFFF,color:#172033,stroke:#B77A1F,stroke-width:1.5px;
class Goal goal;
class Request,Layers,Knowledge,Tools,Boundaries input;
class Symptom,Hypotheses,Traces,Tests,Cause work;
class Controls,Fixes,Output output;
style Map fill:#F5F9FD,stroke:#9BB8D2,stroke-width:1.5px;
style Diagnose fill:#F4FAF6,stroke:#9DC8AD,stroke-width:1.5px;
style Recover fill:#FFFAEF,stroke:#D7B66B,stroke-width:1.5px;
By the end of this repository, you should be able to:
The modules build on each other in order.
| File / Folder | Description |
|---|---|
| 01 - Anatomy of a GenAI System | Follow a request through the product, orchestration, knowledge, model, and operational layers. |
| 02 - Context, Retrieval, Memory, and Adaptation | Decide what information belongs in prompts, RAG, memory, tools, or model adaptation. |
| 03 - Tools, Workflows, and Trust Boundaries | Understand how integrations increase capability, permissions, and failure impact. |
| 04 - Diagnose Failures Systematically | Move from user-visible symptoms to competing hypotheses, tests, and root causes. |
| 05 - Evaluation, Observability, and Governance | Design the evidence and controls required to operate an AI system responsibly. |
| 06 - Session Handout | Diagnose one GenAI system failure and defend a prioritized recovery plan. |
Worked example: an internal policy assistant that gives outdated answers
(synthetic case). See submission/.
| File | Description |
|---|---|
| 01 - System Map | Request flow, data flow, components and trust boundaries. |
| 02 - Diagnostic Register | Frozen facts, evidence, ranked hypotheses and AI challenge note. |
| 03 - Recovery Plan | Prioritized actions, proof of recovery, rollback conditions. |
| 04 - Three-Slide Summary | Decision summary (.pptx, .html). |
| 05 - Reflection | Answers to the reflection questions. |
| 06 - Presenting Script | Three-minute talking points for the slides. |
| File / Folder | Description |
|---|---|
| assets | Local diagrams and sourced illustrations used throughout the lessons. |
| templates | Reusable system-map, diagnosis, and recommendation templates. |
| LICENSE | MIT license for the repository. |
No Python environment or coding is required.
Start with a human system map and first diagnosis. An LLM can explain unfamiliar terms, generate alternative hypotheses, challenge assumptions, and improve the clarity of a recommendation. It cannot inspect unavailable logs, confirm the real architecture, prove a root cause, or authorize a production change. Never enter sensitive data, credentials, private conversations, or personal data into an unapproved tool.