Week 13 Self-Paced Module: Agents in Production — A Design Review
CSIC30216 · Fall 2026
Overview
The lecture gave you four design decisions for an agent: when it stops, who approves, what it can touch, and what the user sees when it fails. This module reads three real write-ups from 2026 with those decisions as a lens, plus two more questions: why is it an agent at all, and how do they know it works?
Why This Matters
Agent frameworks and tutorials show the happy path. Engineering write-ups show decisions and their costs, and security disclosures show what happens when a decision was never made. In the two attacks this module covers (Clinejection and “Comment and Control”), nobody had deliberately decided who approves the agent's actions or what it is allowed to touch; in the write-ups from a team that ships agents, those are the first things described. That is the difference between an agent you can trust and one you hope works. Two of the readings come from a company that sells agents, which gives them a reason to sound confident, so notice when they report their own failures and error rates; those are the most useful parts.
Format and Timing
- Framing video (15 slides, posted on E3).
- Required reading — three items: Anthropic's guide to evaluating agents, Snyk's account of the Clinejection attack, and Anthropic's write-up on how it contains its agents, linked below.
- Multiple choice questions (單一選擇題) — four questions on E3.
- Complete by Sunday, December 6, 23:59.
What You'll Learn
- A six-question design review — a lens for reading any description of an agent system: Why an agent? (could the steps be written down in advance?) When does it stop? Who approves what? What can it touch? What does the user see when it fails? How do they know it works? Keep this list next to you while you read; the gaps in each write-up are as interesting as the answers.
- How a team that ships agents tests them — tasks, trials, graders, transcripts and outcomes, where the outcome is the final state of the environment, not what the agent says it did. Capability evals (a hill to climb) versus regression evals (should sit near 100%), and pass@k (at least one of k succeeds) versus pass^k (all k succeed): 75% per trial is only about 42% for three in a row.
- When the suite misses — in April 2026, one line of system prompt and two other overlapping changes made Claude Code worse for days despite reviews and tests. The lesson is not “evals don't work”, but “every prompt change goes through the suite, and you roll out slowly enough to notice”.
- A real prompt-injection attack, read as a design review — in Clinejection, an issue-triage agent that anyone could trigger, with Bash, Write and Edit on a CI runner, read an attacker's issue title as instructions; the result was an unauthorised release on npm for about eight hours. The same pattern hit three vendors' agents in GitHub Actions in April 2026: “the runtime is the blast radius”.
- Contain first, then steer — users approved about 93% of permission prompts, so approval had become a reflex. Containment (sandboxes, credentials kept outside, network denied by default) holds whatever the model decides; instructions, classifiers and human approval are layers on top. Isolation should match the user's capacity for oversight.
- How engineers actually run agents — mostly single agents, watched and limited; the benefit is still hard to measure cleanly; and review capacity, not model capability, is the constraint that matters most. Sometimes a bigger harness earns its cost, but every component “encodes an assumption about what the model can't do on its own”.
Required Materials
- Framing video: posted on E3 under Week 13 Self-Paced Modules.
- Reading: Anthropic Engineering, “Demystifying Evals for AI Agents” (January 9, 2026) — read the definitions, the three types of graders, pass@k vs pass^k, capability vs regression evals, and the advice on how to start and on reading transcripts. Skim the product examples. Notice the difference between a transcript and an outcome, and the “20–50 tasks” starting point: it's within reach for a student team.
- Reading: Snyk, “How ‘Clinejection’ Turned an AI Bot into a Supply Chain Attack” (2026) — read the whole post. While reading, fill in the six-question design review for the triage agent, and mark the earliest point where one design decision would have stopped the chain.
- Reading: Anthropic Engineering, “How We Contain Claude Across Products” (May 25, 2026) — read the introduction, the sections on sandboxing, credentials and network access, and the limitations. Skim the product-by-product details. Notice which defences hold “whatever the model decides”.
- Multiple choice questions: posted on E3 under Week 13 Self-Paced Module Response.
Optional Materials
If you want to go deeper on any of these topics (not required, but helpful if you're curious):
- Anthropic Engineering, “An Update on Recent Claude Code Quality Reports” (April 23, 2026) — the postmortem on three changes, including one prompt line, that evals and reviews did not catch.
- Anthropic Engineering, “How We Built Claude Code Auto Mode” (March 25, 2026) — an automatic checkpoint for risky actions, with its error rates and examples of “overeager” actions.
- Anthropic Engineering, “Harness Design for Long-Running Application Development” (March 24, 2026) — the cost and value of a bigger harness, and why self-evaluation is too generous.
- Stack Overflow, “Agents on a Leash: Agentic AI Remains Mostly Single-Agent and Monitored at Work” (May 27, 2026) — how developers actually use agents at work.