Unit 2 of 10 · about 5 hours · explain, implement
Identity, state-effect and evaluation-operations paths through the whole system
Component tests can all pass while an identity disappears between components. These path audits test the joins, where model proposals meet real permissions and durable effects.
You'll be able to
- Follow tenant and user identity through retrieval, context, memory, effects and diagnostic records.
- Implement cross-component checks for revocation, exact-effect approval and ambiguous outcomes.
- Connect offline evidence to release gates, production signals and a safe reversal decision.
Covers
Read
In this order, only the parts listed
0 of 3 done
- Permission and evidence pathEvidence-Grounded Retrieval System
Architecture constraints; Milestones B, D and F; Correctness requirements
- Effect and recovery pathDurable Tool-Using Workflow
Architecture constraints; Milestones B and D; Correctness requirements
- Evaluation and operations pathAI Engineering and Agentic Systems Checkpoint
Implement and test; Debug and measure; Pass condition
Focus on
- Carry principal, tenant, resource and policy identities through every boundary. A model-supplied tenant field is a request to validate, not authenticated identity.
- Follow intent, authorization, exact-effect approval, dispatch, remote outcome and durable outcome separately. A transport timeout can leave the remote outcome unknown.
- Join task records to the evaluation dataset, grader, release decision and runtime signals. A passing model response is not evidence of a correct final state.
- The Systems unit on safe migration and revocation supplies the compatibility rule. Apply current revocations when reading old context, memory, indexes and replay records.
Common mistakes · 3
- Checking access only at ingestion. A cached answer, old memory or queued tool request can outlive the permission that originally allowed it.
- Treating an approval as permission for any later version of an action. Bind it to the exact effect and invalidate it on relevant change.
- Counting policy denials as model failures or HTTP success as task success. Preserve distinct outcomes before aggregation.
Try it yourself
Closed-book, before checking anything
agentlab task: identity and trust, state and effects, evaluation and operations. With fakes, revoke access after retrieval but before context reuse, then change an effect after approval. Both must be denied before exposure or execution. Retain the denial point, selected policy version and terminal state; confirm the release gate rejects a seeded variant that omits either check.Quiz yourself
Answer first, then mark it. Missed ones go to Review.
0 got · 0 missed
1.Retrieval was authorized before a permission change. May the old context be reused?Answer
Only after revalidation under the current access and deletion contract. An earlier allow decision is not a permanent grant.
2.The tool timed out after dispatch. Which final state is justified?Answer
Unknown until reconciliation establishes the effect's outcome. Preserve the logical effect identity and escalate if the declared tool contract cannot resolve it.
3.What joins a release regression to its cause?Answer
Task-level records linking actual artifact versions, stage outcomes, grader identity and runtime attempts to the release. An aggregate alone cannot identify the first failed boundary.
You're done when
Each path has a checked boundary at every handoff, and the revoked-context and changed-effect fixtures fail at the intended boundary without exposure or execution.
Only when you can do this without notes.
Leads to
Notes
Resources · 3 for this unit, 7 more in the 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.
- 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.
Also in this section
- LLM (command-line tool and library), pinnedSimon Willison · required
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 · 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). - 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-gatetests (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.