Sahilverse home

The Delegation Lab

Explainer + synthetic simulator · Published 26 Oct 2026

What are AI agents? Software you hand the keys to.

An AI agent is a system in which a language model decides its own next step and acts through tools — searching, writing files, sending email, paying, deleting — looping until it judges the job done. A chatbot answers you; an agent does things on your behalf, often several in a row, sometimes ones that cannot be undone.

That shift moves the hard questions from “is the answer right?” to delegation: which tools, which permissions, what budget, how much memory, who checks before money moves, and what happens when a document it reads contains instructions from a stranger. This lab lets you set those dials on a fictional three-role task force and watch a deterministic trace play out — every decision inspectable, nothing connected to the real world.

Chatbot
Reads your message, writes a reply. You do the acting.
Workflow
A model and tools wired along a path a developer fixed in advance.
Agent
The model chooses the path: which tool, in what order, when to stop.

Sourced The workflow/agent distinction follows Anthropic’s engineering guide “Building effective agents” (19 Dec 2024). The rest of this page labels what is sourced, what is interpretation, and what is simulation.

Primer Seven ideas you need before you delegate

1. Orchestration

Someone, or something, splits the job and routes the pieces. In Sourced Anthropic’s taxonomy, an orchestrator–workers pattern has one model break a task down and hand parts to others. Our lab uses fixed roles instead, so you can see the hand-offs.

2. Permission scopes

A scope is what a role is allowed to do with a tool: read, write, send, pay, delete. Interpretation Most agent accidents are not about intelligence; they are about a role holding a scope its task never needed.

3. Approval gates

A gate pauses an action until a person (or a separate checker) says yes. The useful question is where the gate lives: in the harness, where it always fires, or in the agent’s own judgement, where it fires only if the agent remembers to ask.

4. Budgets & costs

Every tool call costs something — money, time, rate limits, human attention. A budget that runs out mid-task leaves a half-finished state, which can be worse than not starting.

5. Memory limits

Agents work from a finite context. When it fills, something falls out. Simulation In the lab, the oldest fact drops first; a planted instruction can push out the one fact that mattered.

6. Irreversible actions

Payments, sent messages and deletions do not have an undo button. Interpretation Reversibility is the single best predictor of where to spend your review effort.

7. Evaluation & reliability

An agent that succeeds four times out of five is not 80% safe if the fifth failure is a wire transfer. Evaluate traces, not just final answers: what was attempted, what was blocked, what slipped through unreviewed.

Deeper dives: AI agent vs chatbot, side by side · Prompt injection in agent workflows

02 · The lab Assemble a task force. Run it. Read the trace.

Synthetic. Every company, email, invoice, fare and branch here is invented. The lab never contacts any service; it runs a fixed rulebook in your browser and nothing you set is sent anywhere.

03 · Worked cases Six runs of the Refund Desk, and what each teaches

Simulation All six are reproducible: pick the scenario and preset in the lab and press Run.

Clean

Sensible defaults

Researcher reads only; executor holds the scopes it needs; auditor reconciles at the end; every irreversible step waits for a person.

Result: task completed, 2 human approvals, 12 credits, no harm.

Lesson: boring is the goal. The cost is two interruptions.

Harm

Naïve autopilot

Every role gets every scope, no auditor, executor memory of 3, a planted instruction in the customer’s email.

Result: the injected note crowds the invoice out of memory; the executor drafts the wrong refund. It still remembers the policy, so the payment is escalated and rejected — but the rogue “forward the ledger” email goes out unreviewed.

Lesson: the one gate that held was the one the agent happened to remember. Nothing guarded the email.

Contained

Least privilege + pre-commit auditor

Unsupervised mode, injection on, but an auditor checks every irreversible action before it commits.

Result: the refund goes through (the agent self-escalates once), the rogue email is blocked — and the auditor spends its whole budget on gates, so the end-of-day reconciliation halts.

Lesson: review effort is a budget too. Spend it where actions are irreversible.

Harm

Rubber-stamp reviewer

Human-in-the-loop, but the reviewer stops reading after two approvals. No auditor.

Result: refund and confirmation are fine; the third request — the injected ledger forward — is waved through. 3 approvals, 6 human minutes, one data leak.

Lesson: a gate that fires on everything trains people to stop looking. Fewer, better-targeted approvals beat many.

Stalled

Starved budget

Executor budget cut from 8 to 4 credits.

Result: the draft is written, then the payment step halts for lack of credits. The ledger now shows a drafted refund that was never paid.

Lesson: running out halfway leaves a half-state. Budget for the whole task or fail before the first write.

Stalled

Tiny memory

Unsupervised, executor memory of 2, no injection.

Result: the invoice fact never reaches the executor; it guesses INV-0391. It still remembers the policy, escalates, and the human rejects it. Safe, but nothing got done.

Lesson: missing context rarely produces a refusal — it produces confident, plausible wrongness.

Instructive mistakes & edge cases to try

  • Put the executor first. It acts before any research exists, so every needed fact is missing and every draft is a guess.
  • Remove the auditor, keep everything else. Harms that would be caught on Day 1 surface on “Day 14+”. Same damage, later and costlier.
  • Take send away from the executor. The injection in the Refund Desk becomes harmless — and so does the confirmation email. Least privilege has a price.
  • Switch to the Conference Run with the rubber-stamp preset. The fatigued reviewer catches the injection anyway, because there were only two requests. Fatigue depends on volume.

04 · Injection When the document gives the orders

Sourced Prompt injection is what happens when text an agent reads — an email, a web page, an issue comment — contains instructions the model treats as if they came from you. The OWASP Top 10 for Agentic Applications 2026 (published 9 Dec 2025) lists Agent Goal Hijack as its first risk, alongside tool misuse, memory and inter-agent risks.

Sourced Simon Willison’s “lethal trifecta” (16 Jun 2025) names the dangerous combination: access to private data, exposure to untrusted content, and a way to communicate externally. His advice is to avoid giving one agent all three, rather than trusting filters to catch every attack.

Interpretation The lab’s three scenarios are built to show the trifecta in three costumes: an exfiltrating email (data out), a hijacked purchase (money out), and a destructive command (state destroyed).

Context What 2026 sources say, and what they don’t

Sourced Industry framing

Gartner put multiagent systems on its Top Strategic Technology Trends for 2026 list (press release, 20 Oct 2025), describing collections of agents that pursue individual or shared goals. The same list includes AI security platforms aimed at risks such as prompt injection and rogue agent actions.

Competing readings

One camp argues most production use needs workflows — fixed paths with a model inside — and that open-ended agents are worth their cost only when the steps are unpredictable. Another sees autonomy as the point. Both can be right for different tasks; the lab lets you feel the trade.

Open questions

How should approval effort scale without fatiguing people? Can injection be prevented, or only contained by architecture? Who is accountable when a sub-agent acts on a hand-off it misread? This page does not settle them.

The Delegation Field Guide

Ten pages to keep beside your next agent project: the agent/workflow/chatbot distinction, a permission-scope worksheet, a reversibility map, the injection drill, three worked cases with full traces, field exercises and annotated sources. Real, selectable text.

Download the Field Guide PDF

06 · Read further Sources, and what each does and does not show

  1. Anthropic — “Building effective agents” (19 Dec 2024). Shows: the workflow vs agent distinction and common patterns (prompt chaining, routing, orchestrator–workers, evaluator–optimizer); advice to start simple. Doesn’t show: security guarantees or benchmark data for any product.
  2. OWASP GenAI Security Project — Top 10 for Agentic Applications 2026 (9 Dec 2025). Shows: a peer-reviewed taxonomy of agent-specific risks (ASI01–ASI10), from goal hijack to rogue agents. Doesn’t show: how often each risk occurs.
  3. Simon Willison — “The lethal trifecta for AI agents” (16 Jun 2025). Shows: why private data + untrusted content + external communication together enable exfiltration. Doesn’t show: a complete defence; it argues filters are not one.
  4. NIST AI 600-1 — Generative AI Profile (July 2024). Shows: 12 risk categories and suggested actions mapped to Govern, Map, Measure, Manage. Doesn’t show: agent-specific controls in detail; it predates the 2025 agent wave.
  5. NIST AI 100-1 — AI Risk Management Framework 1.0 (Jan 2023). Shows: the voluntary Govern/Map/Measure/Manage operating model. Doesn’t show: anything tool- or vendor-specific.
  6. Gartner — Top Strategic Technology Trends for 2026 (press release, 20 Oct 2025). Shows: multiagent systems and AI security platforms named as 2026 trends. Doesn’t show: independent evidence; predictions are Gartner’s own.

The brief’s Gartner article link was not opened directly for this build; the public press release above was used instead.

Write to Sahil

Found a rule in the model you disagree with, or a failure mode it misses? The lab is better for counterexamples.

sahil@sahiltayal.com Return to sahiltayal.com