Unit 8 of 10 · about 4 hours · explain

Simpler and alternative decompositions, and ten-times load, privacy and dependency variations

A working agent is not automatically the right product architecture. The defense must show what its complexity buys and which changed constraint would make a simpler design preferable.

You'll be able to

  • Defend the integrated system against a simpler non-agentic workflow and two alternative decompositions.
  • Rework the design for ten-times load, stricter privacy and a failed dependency without expanding model authority.
  • Challenge case-study architecture and capacity claims using explicit assumptions and your own measured boundary.

Covers

Simpler workflow and two alternative architecture decompositionsTen-times load, stricter privacy and dependency-failure design variations
1

Read

In this order, only the parts listed

0 of 3 done

  1. Enterprise RAG decomposition to challengeAI Product Architecture Case Studies

    Case study 8.31: Capacity Estimation; High-Level Architecture; Trade-offs; Scaling and Failure Modes; Follow-up Questions (page read 2026-10-18)

    Use architecture hypotheses, not the vendor numbers or asserted bottlenecks. Retain the capacity unit's correction to the per-tenant indexing example. A private generator does not make shared embeddings, indexes, traces or review traffic private.

  2. Coding-agent decomposition to challengeAI Product Architecture Case Studies

    Case study 8.32: Requirements; Capacity Estimation; High-Level Architecture; Trade-offs; Scaling and Failure Modes (page read 2026-10-18)

    Skip market figures, model rankings, vendor speed claims and the fleet-sizing exercise. Challenge rather than adopt the claims that client-only retrieval has zero privacy surface and human diff approval gives zero silent bad edits. Neither follows from the architecture.

  3. Where autonomy earns its costDurable Tool-Using Workflow

    Milestone E: matched deterministic, routed and agentic paths; Design-defense questions; Milestone F: tasks that must remain deterministic or unautomated

2

Focus on

  • Compare a deterministic baseline with bounded model use on identical tasks. Removing an agent may preserve the product outcome while eliminating loops, mutable memory and tool-selection risk.
  • Distinguish autonomy from deployment decomposition. Compare a collocated application with explicit modules and a queue-backed worker design with isolated retrieval and effect workers; name each state owner and extra failure boundary.
  • Ten-times load is a changed offered workload, not a promise of ten-times hardware or throughput. Identify the constrained stage using demand and measurements; preserve admission and task-quality checks.
  • For stricter privacy, follow all derived data and operator paths. For dependency failure, name what can safely degrade, abstain or escalate without stale authorization or duplicate effects.
Common mistakes · 3
  • Copying a case study's prediction that the reranker or vector index fails first. Workload, implementation and resource allocation determine the bottleneck.
  • Making the model fallback less restricted to preserve availability. Privacy and effect authority remain constraints during outages.
  • Calling a local index risk-free. Plugins, prompt contents, exports and human review still create exposure paths.
3

Try it yourself

Closed-book, before checking anything

Recompute both case-study capacity tables, marking unsupported rows instead of filling gaps with guessed prices. In case study 8.32, one million repositories at 50 MB each is 50 TB in decimal units; 10,000 workers reserving 2 GB each need 20 TB of memory before overhead. Closed-book, draw your simpler workflow and two alternative decompositions. Apply ten-times offered load, a rule that no tenant content or derived embeddings leave the machine, and loss of the model dependency. For each variation state the first failing contract, safe degraded outcome and evidence that would change your choice.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.Must ten-times request load require ten-times model capacity?Answer

    Not necessarily. Task mix, admission, cache correctness, model calls per task and output length change demand. Derive demand under stated assumptions and measure the limiting resource.

  2. 2.Does splitting retrieval and execution into services make effects safer?Answer

    Only if the boundary enforces useful isolation and identity contracts. It also adds delivery, retry and state-ownership failure modes; process count alone proves nothing.

  3. 3.When should the deterministic baseline replace the agent?Answer

    When it meets the task and safety contract at acceptable cost and the agent's measured benefit does not justify its added failure surface or review burden.

You're done when

You can defend each design choice against all three variations, with named state owners, safe degraded outcomes and a measurable reversal condition rather than vendor claims.

Only when you can do this without notes.

Leads to

Notes

Resources · 2 for this unit, 8 more in the section
  • Durable Tool-Using WorkflowRoadmap-Final · required

    Close Milestones B, D, E and F and the correctness requirements: crash-window replay, approval bound to the exact effect, fencing, ambiguous outcomes surfaced instead of claimed exactly-once, the matched deterministic, routed and agentic comparison, and clean reproduction. Finish the existing system rather than rebuilding it; delegation stays optional.

  • AI Product Architecture Case StudiesEngineering Handbook · support

    Pick two of case studies 8.30 to 8.33 (ChatGPT, Enterprise RAG, Coding Agent, Perplexity Search; slugs chatgpt-conversational-ai, enterprise-rag, coding-agent, perplexity-ai-search), reconstruct each decomposition, identify its hidden assumptions and compare it with yours. Recompute the capacity tables before trusting a number: several are wrong (8.31's per-tenant index cost, 8.33's daily query volume).

Also in this section

  • AI Engineering and Agentic Systems CheckpointRoadmap-Final · primary

    Execute the complete checkpoint now: explain ownership, derive budgets and contracts, pass versioned evaluation, prove tenant isolation and replay safety, red-team the system, measure the joint frontier, then reconstruct and modify a production-like application.

  • Evidence-Grounded Retrieval SystemRoadmap-Final · required

    Close the deferred clauses: Milestones B (instrumentation), D (injected failure attribution), E (paired optimization) and F (blinded query and delete campaign with a clean rebuild), the correctness requirements and the rubric. Index rollback and an honest negative result are this track's additions, not project headings.

  • LLM (command-line tool and library), pinnedSimon Willison · required

    At commit 2465dfc (version 0.36), trace the path from llm.cli:cli through the OpenAI-compatible adapter in llm/default_plugins/openai_models.py to llm/models.py, llm/logs.py and llm/migrations.py. Run tests/test_openai_endpoint.py, test_migrate.py, test_pause_resume.py and test_tools.py on CPU, point llm openai endpoint at your local server, then make one bounded, tested change such as versioned usage normalization or a tool-chain budget, with a migration and a secret-free replay fixture.

  • AI and ML System Design HandbookEngineering Handbook · reference

    Part 9 chapters 0 to 8 are overview-depth architecture notes for serving, RAG, vector search, agents, evaluation, LLMOps, cost and safety. Use them as a checklist for omissions in the integrated design; serving (00, 02) belongs to the Inference track.

  • Managing Incidents and Incident ResponseGoogle SRE · support

    Read SRE book Chapter 14 (elements of incident management, when to declare an incident) and Workbook Chapter 9 Incident Response with its case studies. Write the incident procedure for the integrated system and run it once against an injected fault.

  • AI Agents in Depth - Integration ReviewBojie Li · support

    Use 5.1.4 harness engineering, 7.9 and 7.10 and Chapter 9 (9.3.2 safety boundaries for continual evolution, Experiment 9-6 canary and rollback) as a final review. The offline chapter9/harness-safety-gate tests (no API key) show a release gate that rejects a seeded bad candidate.

  • The Hitchhiker's Guide to Agentic AI - ProductionHaggai Roitman · support

    Use v3 Chapter 27 (27.5 testing, 27.6 observability, 27.7 deployment) and 28.7 human-in-the-loop UI to audit the integrated system. Verify claims against official documentation.

  • AI Engineering Handbook - AI Product EngineeringHandbook Academy · support

    Use Part 11 to connect evaluation and system evidence to product decisions, feedback and iteration. Finish with a decision memo that distinguishes model capability, orchestration, retrieval, tool, evaluator and user-experience effects.