Unit 9 of 10 · about 5 hours · implement

A tested real-code extension, optionally multimodal

The final contribution must survive an application you did not design. Finish the seam selected earlier rather than replacing the codebase or adding a second feature.

You'll be able to

  • Implement one bounded real-code change behind a tested compatibility and reversal path.
  • Demonstrate the changed path through an ordinary command or library request, not only a test helper.
  • Validate a consequential evaluation, reliability or operations outcome while preserving authority and evidence.

Covers

Tested extension to evaluation, retrieval, reliability, control or operationsBounded multimodal or voice extension
1

Read

In this order, only the parts listed

0 of 3 done

  1. LLM 0.36: implement at the selected seamLLM (command-line tool and library), pinned

    Commit 2465dfc: set_usage, log_to_db, _BaseChainResponse, ChainResponse.responses and AsyncChainResponse.responses; follow the chosen path into llm/default_plugins/openai_models.py and llm/migrations.py

    Read only the seam selected in A bounded change hypothesis with contract, integration and migration tests. Reuse the reconstruction unit's dependency pins and four-file baseline; do not introduce a framework rewrite.

  2. Ordinary endpoint behavior and optional attachment boundaryLLM (command-line tool and library), pinned

    test_endpoint_chat_completions_does_not_log_or_leak_default_key; optional test_endpoint_chat_completions_attachment; docs/other-models.md, Run against an endpoint without configuring it

    Multimodal is optional and never needed to pass. The attachment test uses a mocked response and checks image-request serialization, not image decoding or visual understanding. A CPU fake endpoint is sufficient for the required extension.

  3. Consequential extension gateAI Engineering and Agentic Systems Checkpoint

    Pass condition: tested modification and consequential improvement with preserved authority, isolation, bounded autonomy, safety, human control and recovery

2

Focus on

  • Complete one mechanism: for example, versioned usage provenance that prevents an incomplete response from being reported as a fully accounted task. Bind the improvement to a changed operational decision.
  • Exercise sync, async and streaming paths only where the change claims support. Explicitly reject or mark unsupported paths rather than silently changing their semantics.
  • Keep replay fixtures synthetic and all effect tools harmless. If you also smoke-test your local model, use a fitting checkpoint such as Qwen/Qwen3-0.6B behind your existing server and record its revision and server version; generated wording is not an exact target.
  • An optional image input adds modality, size, content identity, authorization and retention checks. It must not broaden tool capabilities or make text-only completion depend on a vision model.
Common mistakes · 3
  • Improving an isolated helper that no ordinary request reaches. Keep path-activation evidence from the real command or library entry point.
  • Introducing logging into the direct endpoint command to demonstrate persistence. Its no-prompt-logging contract must remain intact; use the intended logged path for storage changes.
  • Calling serialization success a multimodal capability result. A mocked image response never establishes what a vision model understood.
3

Try it yourself

Closed-book, before checking anything

Implement the chosen patch from your saved hypothesis, making the purposeful failing assertion pass. Through an ordinary LLM command or library call, send a synthetic response fixture that exercises the changed path and retain the resulting application event or stored record. Run the four-file baseline plus your contract, integration, adversarial, migration, rollback and replay tests. Compare the old and new behavior on held-out fixtures using an independent oracle. Show the actual changed release, accounting or reliability decision; a new field alone is not the outcome.
4

Quiz yourself

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

0 got · 0 missed

  1. 1.Can an accounting or evaluation change satisfy the extension gate?Answer

    Yes, if it reaches the real application path and measurably improves a consequential decision or reliability outcome, with tested semantics and bounded overhead. Merely adding a dashboard field is insufficient.

  2. 2.The patch passes its own tests but breaks an old reader after candidate writes. Is it finished?Answer

    No. Restore the declared compatibility contract or narrow the supported reversal boundary with a safe migration procedure and evidence.

  3. 3.What is the CPU route if no model fits or no vision model is available?Answer

    Use the deterministic fake model and mocked endpoint fixtures for required contracts and the extension. Skip the optional multimodal capability experiment rather than treating a text model as a vision model.

You're done when

The real entry point reaches the patch, the baseline and new protection tests pass, reversal works at the declared boundary, and held-out evidence supports a consequential improvement or clearly records why the candidate must be rejected.

Only when you can do this without notes.

Leads to

Notes

Resources · 2 for this unit, 8 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.

  • 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.

Also in this section

  • 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.

  • 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-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.