Production Integration and Extension
The final stage combines contracts, evidence, retrieval, durable effects, bounded autonomy, security and operations in one production-like system. Mastery requires reconstructing unfamiliar code, making a consequential change and defending both positive and negative evidence.
Section 8 of 8 · 10 units · about 46 hours
By the end you can Pass the full Roadmap-Final checkpoint with one production-like integrated system, a tested real-code modification, clean replay, a validated capacity or risk prediction, adversarial and rollback evidence, simpler alternatives, residual risk and an honest negative result.
Units
- End-to-end architecture and ownership of every versioned artifact4h
- Identity, state-effect and evaluation-operations paths through the whole system5h
- Reconstructing an unfamiliar AI application from code, configuration and traces5h
- Capacity, cost and risk models, and validating one prediction5h
- A bounded change hypothesis with contract, integration and migration tests5h
- Adversarial, crash, outage and rollback tests with secret-free replay5h
- A controlled system change measured on task, safety, latency, cost and human outcomes4h
- Simpler and alternative decompositions, and ten-times load, privacy and dependency variations4h
- A tested real-code extension, optionally multimodal5h
- Negative evidence, residual risk and clean independent reproduction4h
Build it
Mini project · about 18 to 24 hours
A tested production change with a skeptical evidence defense
Complete agentlab by auditing its end-to-end boundaries and extending pinned LLM code in extension/. Connect the patch to a consequential accounting, evaluation or reliability decision, then defend its measured outcome and limitations with synthetic CPU fixtures, no paid APIs and a clean reproduction package.
- 1Audit identity/trust, state/effect and evaluation/operations paths against the checkpoint and project contracts. Retain artifact owners, immutable versions, promotion/deletion rules and compatible reversal maps. Before model trials, require seeded revoked-context and changed-approval variants to fail release gates; check denials against independently persisted fake-recipient state.
- 2Reconstruct pinned LLM in
extension/againsttest_openai_endpoint.py,test_migrate.py,test_pause_resume.pyandtest_tools.py. Retain source-to-trace maps, absent product controls and baseline output. Predeclare a bounded change, falsifier, losing regime and capacity/cost prediction; create independent missing-usage, malformed-output, partial-stream and old-data fixtures with a purposeful baseline failure. - 3Implement the patch through an ordinary command or library request. Check supported sync, async and streaming paths against independent fixtures; retain activation and changed-decision evidence. Run upstream and contract/integration tests, plus fresh/populated migration, repeated-upgrade, old-reader-after-write and rollback matrices; preserve unknown usage and endpoint no-logging/key-isolation contracts.
- 4Compose inherited attack and fault matrices across normal, overload, outage, bad-release and human-escalation regimes. Retain poisoning-to-tool, approval-revocation, kill-around-intent/effect/outcome and index-reversal traces against current permissions, deletion and persisted-recipient oracles. Replay synthetic records offline without effect dispatch; exercise incident mitigation, handoff, rollback and post-recovery verification.
- 5Repeat paired baseline/candidate trials with held-out tasks, grader and budgets fixed; control route, cache, context and tools. Validate the preserved prediction and explain residuals. Retain stagewise task/safety/security, tails, cost, recovery and failure records, clustered uncertainty, and scripted operator review-time, correction and handoff outcomes labeled simulated.
- 6Defend the change against the deterministic workflow, collocated modules and isolated queue-backed retrieval/effect workers. Apply ten-times offered load, stricter content/embedding privacy and model-dependency loss to the capacity and privacy-risk models; retain first-failing contracts, safe degraded outcomes, unsupported case-study claims and evidence-linked reversal conditions.
- 7Package base commit, patch, dependency lock, synthetic manifests, commands and checksums. From a clean CPU environment, rebuild the index, rerun protection tests and regenerate
reports/from item records. Retain claim links, honest negative optimization evidence, ambiguity and residual risks; request independent reproduction or mark pending.
What you hand in
- Architecture, path audits, artifact ownership and reversal maps, validated prediction, privacy-risk model and alternative-design defense in
reports/. - Pinned
extension/patch, source-to-trace reconstruction, upstream results and independent contract, migration, rollback, adversarial and replay regressions. - Repeated matched regime records, operator simulation, incident timelines and a claim-linked decision preserving consequential improvement evidence and an honest negative result.
- Clean CPU reproduction bundle with synthetic fixtures, index rebuild, report regeneration and explicit independent-review status.
How to check it
- Self-grade with the rubric below
- LLM pinned endpoint, migration, pause-resume and tool tests
Run the named files with the section's pinned dependencies; retain baseline and patched results separately from your cross-component and rollback tests.
How it's graded
Integrated boundary correctness
Pass: Independent recipient and permission fixtures validate path audits, exact approval, current revocation, compatible artifact reversal and release-gate denials. Composed fault traces preserve effect counts or explicit ambiguity; secret-free replay reproduces transitions without live effects.
Great: Adaptive attack carry-overs and crash boundaries survive outage and rollback together; incident decisions identify the first failed join and recovery verifies permissions, deletion, task outcomes and pending effects rather than endpoint health alone.
Real change protection
Pass: Pinned public tests pass; independent candidate fixtures fail purposefully before repair. Ordinary-entry-point evidence proves the changed decision, while migration and rollback matrices check preserved history, unknown usage, old readers, key isolation and no logging.
Great: Unsupported paths fail explicitly. Held-out evidence links the mechanism to a changed operational decision with bounded overhead, whether it supports the improvement or records why the candidate must be rejected.
Measurement and design judgment
Pass: Matched repeated regime trials retain failures, clustered uncertainty and simulated operator outcomes. Independent resource accounting validates the predeclared prediction; residuals and privacy risks inform simpler alternatives, changed-load defenses and an evidence-linked keep/reject/inconclusive decision.
Great: Controls distinguish mechanism from route, cache and budget changes; collocated and queue-backed designs expose ownership and failure trade-offs. An honest losing optimization, not a seeded defect, bounds the claimed improvement and reversal conditions.
Reproduction and honest limits
Pass: A clean CPU run reapplies the patch, rebuilds the index and regenerates claims from checksummed item records. Exact fixture and verifier outcomes pass; timing remains new evidence, with independent reproduction passed or explicitly pending.
Great: Another reader reproduces without undocumented state; objections strengthen claim-to-artifact links. Negative findings, attack coverage, unresolved effects and residual risks remain visible, and replay, fresh generation and simulated user impact are never conflated.
Resources
- AI Engineering and Agentic Systems CheckpointRoadmap-Final
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
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.
- Durable Tool-Using WorkflowRoadmap-Final
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.
- LLM (command-line tool and library), pinnedSimon Willison
At commit 2465dfc (version 0.36), trace the path from
llm.cli:clithrough the OpenAI-compatible adapter inllm/default_plugins/openai_models.pytollm/models.py,llm/logs.pyandllm/migrations.py. Runtests/test_openai_endpoint.py,test_migrate.py,test_pause_resume.pyandtest_tools.pyon CPU, pointllm openai endpointat 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 Product Architecture Case StudiesEngineering Handbook
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). - Managing Incidents and Incident ResponseGoogle SRE
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
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-gatetests (no API key) show a release gate that rejects a seeded bad candidate. - The Hitchhiker's Guide to Agentic AI - ProductionHaggai Roitman
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
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.
- AI and ML System Design HandbookEngineering Handbook
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.