hub.gazar.dev · cheat sheet← all cheat sheets

Week 6 · Capstone

Production LLM system design checklist.

The whole course on one page: the seven-section design document, the system on a page, the reviewer's hard questions, the common gaps, and a pre-ship checklist. Bring it to any design review.

The seven sections System on a page Hard questions Common gaps Pre-ship checklist Durable habits
01

The seven-section design document

Each section answers exactly one question. Six of the seven you already wrote, as your five projects.

SectionAnswersFrom
Problem & scopewhat does this do, for whom, at what bar?goals
Boundarywhat is code, what is model?S2
Context & retrievalwhat does the model see?P1
Cost, latency, reliabilitywhat are the ceilings, and how does it fail safely?P2
Architecture & securitywhich pattern, and how is it defended?P3
Evals & observabilityhow do you know it works, and stays working?P4
Trade-offs & riskswhat did you choose against, and what remains?all
02

The whole system on one page

A reviewer should grasp it in thirty seconds. If it does not fit on a page, you do not fully understand it yet.

flowchart LR
  IN["Request"] --> CODE["Code shell
auth, rules"] CODE --> RET["Retrieve + rank"] RET --> M{"Model core"} M --> GUARD["Validate + guardrails"] GUARD --> ACT["Action / answer"] TR[("Traces to evals to dashboards")] -.-> M TR -.-> GUARD classDef code fill:#D6F5E3,stroke:#1F2937,color:#0E1726; classDef model fill:#EEE6FF,stroke:#1F2937,color:#0E1726; classDef ops fill:#DCEBFE,stroke:#1F2937,color:#0E1726; class CODE,GUARD,ACT code; class M model; class TR ops;
03

Pre-answer the reviewer's hard questions

"Why not just an agent?"

Answer with the three gates and where your task landed.

"What's your worst failure?"

Name it, show the fallback ladder and the runbook entry.

"What happens under injection?"

The trust boundary and least-privilege tools.

"Whose tools are those?"

Name every imported MCP server, and say how it is pinned and reviewed.

"What if it dies mid-run?"

Checkpoints, idempotency keys, and which steps are safe to replay.

"How do you know it works?"

The eval pass-rate and the online sampling.

04

Four gaps the clinic always finds

1

No number

"Fast and cheap" with no ceiling. Add the budget.

2

Sections don't connect

The architecture ignores the context design.

3

Security bolted on

Injection mentioned but tools still over-privileged.

4

No way to know

A beautiful design with no evals. A hope, not a system.

05

Pre-ship checklist

Do not ship until every box is honestly ticked.

06

Four habits that outlast any model release

1

Start simple

Workflow before agent, smallest fuzzy job. The reflex that ages well.

2

Put a number on it

Budgets and evals turn opinions into decisions.

3

Assume hostility + failure

Untrusted input, flaky model. Design for both by default.

4

Feed the flywheel

Every failure becomes a test. Compounding beats clever.

The whole course in one line: not another demo, a system that holds.