What a personal agent is
What separates a personal agent from a chatbot, the vocabulary the book uses, why a result counts only when something other than the agent checks it, what commercial agents share and how they have failed, and what a first system leaves out.
- Say what separates a personal agent from a chatbot, using four properties: it acts, it remembers, it speaks first and it holds its owner's accounts.
- Use the book's vocabulary exactly: model, tool, tool call, step, turn, owner, channel, connector, gate, routine.
- Explain why an agent's own report that a task is done is not evidence, and define task completion and trusted completion.
- Name the elements that commercial personal agents share, and classify their public failures by cause.
- Say what a first system should deliberately leave out, and why leaving it out makes the rest easier to get right.
- Week
- 1 of 14
- Before it
- Nothing: this is the first unit. Its theory uses Definitions 1 to 4, 6, 8 and 9 and Property 1 of the model, which Chapter 2 then meets in code.
- Read first
- [Anthropic 2024a]; [Kapoor et al. 2024].
- Laboratory
- None; this unit frames the course
- Problem set
- 1
1.1The problem: an assistant that only talks
Suppose you write to an assistant in a chat app: "Find a time next week for lunch with Sam and send him an invite."
A chatbot answers with advice. It might say: open your calendar, look for a free hour around noon, create an event and add Sam as a guest. Every word may be correct, and you still have to do the errand yourself. The chatbot has no way to see your calendar and no way to change it.
What you wanted was different. You wanted the program to look at next week, notice that Wednesday at 12:30 is free, propose it, and then create the event with Sam invited. You also wanted it to ask you once before it emailed Sam, because an invitation goes to another person and cannot be taken back. And if Sam accepts two days later, you would like to be told without having to ask.
That second program is a personal agent. This chapter defines it, fixes the words the rest of the book uses, and sets out what it means for such a program to work. The capabilities that make the errand possible also make harm possible: a program that can send Sam an invitation can send anyone anything.
1.2Four properties of a personal agent
- Chatbot
- A program that answers messages with text. It changes nothing in the world except what appears on your screen.
- Agent
- A program in which a language model repeatedly chooses an action, sees the result and chooses again, until the task is finished or it gives up.
- Personal agent
- An agent that works for one person, its owner, inside that person's own accounts, and that keeps working across days rather than within a single conversation.
Four properties separate a personal agent from a chatbot. Each one adds a capability, and each one adds a way to go wrong.
It acts
An agent produces actions: a search, a calendar entry, an email, a click on a web page, through tools (defined below). Once a program can act, "should this action happen?" needs an answer that does not depend only on the program's own judgement. That answer is the gate (Chapter 8).
It remembers
A chatbot conversation starts empty. A personal agent should know, on Thursday, that you told it on Monday you do not eat meat, or that a task was left half done. That requires memory that outlives a conversation and survives a restart of the program (Chapter 5). Memory is also a risk: anything saved is shown to the model again later, so a false or planted "fact" keeps doing damage.
It speaks first
A personal agent can send a reminder at nine o'clock, run a morning summary of the news, or tell you that a reply you were waiting for has arrived, without a message from you (Chapter 6). Work that starts with nobody watching cannot be approved in the moment, so it must be restricted to what is safe unattended.
It holds the owner's accounts
To do errands, the agent needs the keys to your mail, your calendar and the sites you use: the most valuable access you have. Handling sign-ins and secrets is therefore a central design problem (Chapter 10).
| Property | What it needs | The new risk |
|---|---|---|
| Acts | Tools the model can request | An action nobody wanted: a sent email, a deleted file |
| Remembers | A store that outlives the conversation | A wrong or planted fact that is believed in every later conversation |
| Speaks first | A scheduler and something that watches for events | Work, and spending, that happens while nobody is looking |
| Holds accounts | Connections to the owner's services and saved sign-ins | Everything the owner can do, a misled program can attempt |
1.3The vocabulary of the book
The following words are used loosely elsewhere and exactly here. Later chapters rely on these meanings.
- Model
- The language model: a program, usually run by a vendor and reached over the network, that takes text in and produces text out. In this book it is the part that reads, writes and chooses. It does nothing else.
- Tool
- One action the model may choose: search the web, list the calendar, send an email. Each tool has a name, a description and a stated shape for its inputs.
- Tool call
- The model's request to use a tool with particular inputs. The model does not perform the action. It writes the request; ordinary code decides whether to perform it, performs it, and hands back the result.
- Step
- One call to the model. A task usually takes several steps: one to ask for a search, another to read the results and answer.
- Turn
- Everything that happens between one message from the owner and the agent's reply. A turn is made of one or more steps.
- Owner
- The one person the agent works for. Only the owner's messages are acted on; anyone else's are dropped.
- Channel
- The place the conversation happens, such as a private chat in Telegram or WhatsApp (Chapter 16).
- Connector
- A set of tools that reach one outside service, such as a mail account, through that service's official interface.
- Gate
- Code that sits between the model's tool calls and the tools themselves. For each call it decides to allow it, to ask the owner, or to refuse it.
- Routine
- A task the agent runs by itself on a schedule, with nobody watching, such as a morning summary. A reminder is simpler: a fixed message sent at a set time.
- Shell
- The ordinary, predictable program wrapped around the model. It receives messages, runs the loop, holds the gate and keeps the log. (This has nothing to do with a command-line shell.)
The definition of a tool call matters most for safety. Because the model only asks and code acts, there is always a moment between the asking and the doing where a rule can be enforced. Most of the safety measures in later chapters live there.
1.4The design space
The clearest way to see what a personal agent must contain is to look at products that already exist. This book measures itself against three commercial products, Instinct, Muse and Grok Bot, as they stood at the time of writing, from documentation, press and the makers' own writing, not from testing them side by side. Each claim carries a grade saying how it is known (explained under "What counts as working", below).
Three products, one design
Instinct is a personal agent you text or phone. Secondary Its channels are iMessage, WhatsApp, phone calls and an email address of its own for each user (TechCrunch). Its internals are known only from its founders and investors, with no engineering write-up to check them against.
Muse is Meta's personal agent. Secondary It sends email, books travel, fills in forms and shops with approval for each purchase (TechCrunch). Maker's claim In its maker's unaudited account of its security design, a separate program outside the agent is the only thing that can permit an action (Meta's post).
Grok Bot is xAI's agent product. Verified Its documentation describes Bots that work on a persistent cloud computer, use connected apps or a browser, ask for approval with cards, and can run a saved task on a schedule (xAI documentation).
Set side by side, the three are one design. Six elements appear in all of them:
- One conversation in front of everything, useful before any account is connected.
- A coordinating agent that hands narrower jobs to narrower workers.
- A persistent computer with a browser that stays signed in between tasks.
- Connectors first, screens second: official interfaces where they exist, operating the web page where they do not.
- Background work: routines and check-ins the agent starts itself.
- Approval before sending, paying or deleting, with the person taking over for bot checks and passkeys.
Where products of this kind have failed
The public failures teach more than the features. Secondary Instinct was reported to have sent an email without asking; to have followed instructions planted in an email it was reading; to have gone on summarising an inbox three hours after the user disconnected it; and to have taken a sign-up code out of a user's mail to finish a booking (TechCrunch). Muse was blocked by a large retailer and drew complaints about invented details and about too many approval prompts. Grok Bot's users report running out of their weekly allowance days early.
- Prompt injection
- Text placed where an agent will read it, such as a web page, an email or a calendar invitation, written to look like instructions. A model cannot reliably tell its owner's instructions apart from instructions inside the material it was asked to read. Chapter 9 treats it in full.
Sort the failures by cause and a pattern appears.
| Failure | Cause | The boundary that should have held |
|---|---|---|
| Sent an email without asking | No gate on sending | Code that holds every send until the owner agrees |
| Obeyed instructions in an email | Prompt injection meeting a missing gate | The same gate: a fooled model can request, not perform |
| Kept reading an inbox after disconnect | Disconnect not wired to deletion | Code that stops access and removes copies when the owner disconnects |
| Used a sign-up code from the owner's mail | A secret was visible to the model | Codes removed before the model reads mail |
| Too many approval prompts | A gate that asks about everything | Narrow rules: ask about what changes something, not about reading |
| Allowance exhausted early | Background work is expensive | Budgets counted and enforced from the first day |
None of these is the model being too unintelligent for the task. Each is a boundary that should have held whatever the model decided, and did not. The design response is the principle this book rests on: the model proposes, code grants. The model may request any action; whether the action happens is decided by code the model cannot alter. Chapter 2 states it in full.
OpenInstinct, an independent open-source imitation of Instinct by a different company, shows the opposite arrangement. Verified Its approvals are enforced by written instructions to the model; no code stops the send or the purchase (repository). An instruction can be argued away by a page the model reads; code cannot be.
Why this design and not the obvious alternatives
Three simpler designs suggest themselves. A chatbot that explains the steps is safe because it does nothing, and useless for the same reason. An agent told in its instructions never to send without asking (the OpenInstinct arrangement) works until the model reads something that persuades it otherwise. An agent that asks about every action is safe on paper, but an owner asked twenty times a day learns to tap Yes without reading; Muse's users complained of exactly this.
The design this book follows takes a fourth path. Reading is allowed without a question. Anything that changes the world outside the agent's own files is held by code, and the owner is shown a description built by code from the call's real inputs, not written by the model. The figure traces it for the lunch errand.
The book's system talks to its owner in Telegram first, with WhatsApp added later (Chapter 16). Verified Telegram lets a bot stream a reply as it is written and attach buttons to a message, which is how an approval is answered. The cost is reach: a Telegram bot cannot message someone who has not started a chat with it, and cannot place a phone call.
1.5Where the definition lives in the code
The boundaries that go with the four properties are each held by a few lines of code. The first is the start of the function in odysseus/conversation.py that handles every incoming message:
# 1. Who may speak. Anyone but the owner gets no reply at all.
if user_id != self._s.owner_id:
self._journal.write("dropped", user_id=user_id)
return
The check compares the sender's numeric id, which the channel supplies and the sender cannot choose, with the one id in the settings. A stranger gets no reply, not even a refusal, and no model is called, so a stranger cannot spend the owner's money. Without this check, anyone who learned the bot's name could use the owner's accounts.
The second is the opening of odysseus/gate.py, which states the gate's three answers:
For every tool call the gate gives one of three answers:
allow it happens
ask it is held; the owner is shown exactly what will happen and taps a
button; it happens only on "Approve"
refuse it does not happen
The model can request anything. It cannot grant anything.
This is "it acts" with its boundary attached. The same file refuses any tool for which no rule exists, so a tool added by mistake does not run by default.
The third is from odysseus/tools.py, and concerns speaking first:
ALLOWED_TOOLS = frozenset({SEARCH_TOOL, *MEMORY_TOOLS, *SCHEDULE_TOOLS})
ROUTINE_TOOLS = frozenset({SEARCH_TOOL, _name("recall")})
A conversation may search, use its memory and schedule things. A routine, with nobody watching, may search the web and its saved notes (and, once accounts are connected, read mail, calendar and other services, with each call checked to be a read) and write nothing.
The fourth is a sentence from the model's standing instructions in odysseus/agent.py:
If asked for one of those, say plainly that it is not built yet. Do not
pretend, and do not describe steps as done that you have not done.
A model asked for something it has no tool for may describe doing it anyway. The instruction lowers the chance and guarantees nothing, which is why the checks below never rely on what the model says it did.
1.6Worked example: one errand, and how to score it
Take the lunch errand through the system, then ask how anyone would know it had worked.
- The owner writes: "Find a time next week for lunch with Sam and send him an invite." The shell checks the sender is the owner, checks today's budget is not used up, and starts a task.
- The model, given the message and a list of tools, requests
calendar_listfor next week. The gate's rule for reading the calendar is allow. Code fetches the events and returns them to the model. - The model finds Wednesday 12:30 free and requests
calendar_createwith Sam as a guest. Creating an event with guests emails them, so the gate's rule is ask. The gate builds the question from the inputs and posts it in the chat with Approve and Decline buttons. The task waits. - The owner taps Approve. Code creates the event with exactly the inputs that were shown and returns the result. The model writes: "Done: lunch with Sam, Wednesday 12:30 to 13:30, invitation sent."
The reply in step 4 is the agent's belief, not a measurement. To score the errand, something other than the agent checks the end state: is there one event on Wednesday at 12:30, is Sam its only guest, was it created only after the question was shown, and was nothing else changed?
Now score a small invented suite of 20 errands. Checked afterwards, 17 reached the right end state, but in 3 of those the agent sent something without the question being shown. Task completion is 17 of 20 (85%); trusted completion is 14 of 20 (70%). Both terms are defined in the next section.
1.7What counts as working
An agent that finishes a task says so. An agent that fails a task quite often says so too, in the same confident words. The model's own report is therefore not a measurement.
- Task completion
- The share of tasks whose outcome is correct when checked by something other than the agent: a person, a second program, or the state of the account afterwards.
- Trusted completion
- The share of tasks that were completed and in which the agent stayed inside the owner's rules: it asked where it should have asked, touched nothing it was not meant to, and leaked nothing.
Trusted completion, the stricter of the two, is the measure this book uses. The reported failures above are almost all failures of its second part.
Grading the evidence
Things someone measured, things a company said about itself, and things that merely sound right look alike on the page. Every claim in this book therefore carries one of four grades.
| Grade | Meaning |
|---|---|
| Verified | Read in the vendor's own documentation, pricing page or source, or measured by us with the method stated. |
| Secondary | Reported by the press, a comparison site, or a vendor writing about a rival. |
| Maker's claim | Stated by a company about its own product with no independent check, including benchmarks it ran on itself. |
| Not tested | Planned, designed or written, but never run by us. |
Numbers come with their sample ("9 of 10", not "90%"), and a run that happened once is reported as once, not as a rate.
How high is the bar?
One public test of commercial assistants exists. A company called micro1 gave 20 tasks to six assistants and had experts mark each attempt. Secondary Read as trusted completion, the results were 65% for Instinct and for Grok Bot, 55% for Muse, and 80% for the best assistant tested. The authors describe the sample as small and the ranking as not definitive, and accounts of the results disagree about which assistants were tested. With 20 tasks, two tasks are ten percentage points, so the figures indicate the bar roughly; they are not a target.
1.8What a first system leaves out
The book's system deliberately leaves out things the reference products do:
- Payments. A wrong payment is the hardest action to undo, and it needs card handling that is a security problem of its own.
- Phone calls. A call speaks for the owner in real time, where no approval question can be put between a sentence and the person hearing it.
- Group chats. Other people's messages arrive beside the owner's, and "act only on the owner" becomes much harder to keep.
- Speaking to third parties, inside the owner's conversations or to other people's agents, where the owner has not read the words first.
Each of these adds a way to cause harm that the simpler system does not have. Each can be added to a working system later. None of them can make a broken system work. The rule is to wait until the simpler system has a stable, independently checked score. Chapter 2 describes the minimal core everything else is built on.
1.9The theory
This section restates the chapter in the terms of the model, whose definitions Chapter 2 meets again in code.
Each of the four properties removes one restriction that keeps a chatbot harmless. By Definition 1 a model's action is either text or a tool call, and by Definition 2 a call's effect on the world σ falls in one or more of six classes. A chatbot is a program whose model is offered no tools, so every run leaves σ′ = σ apart from text on the owner's screen. A personal agent acts: calls with add, change, send and destroy effects become possible. It remembers: a call with a persist effect writes something that will be placed in the context of a later run. It speaks first: some runs are unattended in the sense of Definition 3, so for them an ask from the gate has nobody to answer it. It holds the owner's accounts: σ includes the owner's mail, calendar and sites, and everyone who writes there is an outsider S of Definition 4 whose words can reach the context.
Success is a function of the world, not of the reply. Let an errand suite have cases i = 1…n, each run k times, as in Definition 9. For run j of case i let cij = 1 if a check other than the agent finds the right end state, and rij = 1 if the run kept the owner's rules. Task completion scores yij = cij; trusted completion scores yij = cij · rij. Since c · r ≤ c, trusted completion never exceeds task completion, for any agent; the gap is the share of runs that finished by breaking a rule. The agent's closing reply is the last action aₙ of the run, drawn from M(cₙ), and nothing in Definition 1 ties it to σ. A score read from the reply measures the model's text; the errand is measured from the world after the run, or from the journal (Definition 8).
Let E be a set of effect classes, and suppose that every call with an effect in E gets ask or refuse from the gate, whatever T. If Property 1 holds, then for every model and every run, no call with an effect in E executes unless the owner answered yes to a question built from that call.
Argument. Take an executed call with an effect in E. By hypothesis the gate did not allow it, so by Property 1 it executed only because the owner said yes to q(τ, x). The argument never looks at M. So for such a program the count of runs that "sent without the question being shown" is zero by construction, and one observed run of that kind is a fault in the program or in the classification of a call, not a measurement of the model.
The hypothesis can fail in two ways. It fails wholesale in the OpenInstinct arrangement, where approvals are instructions to the model and no code mediates: a count of unasked sends there measures how often the model was persuaded. The invented suite in the worked example, with 3 sends that skipped the question, describes an assistant of that kind. It fails for particular calls in this program, by decision: a browser run signed in to nothing can submit a public form unasked (Chapter 8), a send that no rule asks about; and a reply in a mail thread whose approval the owner widened for the day goes without a question of its own, on the strength of the owner's earlier tap on another call.
The chapter's other numbers are measurements, with the limits it states: 563 of 581 runs, in a stand-in world, on the builders' errands; a do-nothing agent at 8 of 40 on the first checks and 0 after; the micro1 figures on 20 tasks, where one task is five points. The do-nothing score measures the checks, not an agent: it is the rate at which they accept a run that did nothing. The six shared elements and the sorting of failures by cause have no formal statement; they are a reading of public reports.
| Claim in this chapter | Kind | How it is known |
|---|---|---|
| A stranger's message causes no model call | Property | Argued from the first lines of conversation.py; tested in tests/test_slice.py |
| A mail send runs only after the owner's tap | Property | Property 1 with a rule that always asks; tested with stand-ins |
| Trusted completion never exceeds task completion | Follows from the definitions | c · r ≤ c |
| The errand suite passed 563 of 581 runs | Measurement | One run of the suite, in a stand-in world, on the builders' errands |
| A do-nothing agent scores zero | Measurement of the checks | Repeated whenever errands are added; it once scored 8 of 40 |
| The system is as good as a commercial product | Neither | No trusted-completion score exists on real accounts |
1.10What goes wrong
Believing the agent's report. Counting a task as done because the agent said so. Every check must look at the world (the calendar, the sent mail, the gate's log), never at the reply.
Believing a test the builder wrote. A check written by the same person who wrote the code shares that person's assumptions. The evaluation in Chapter 17 found that an agent that does nothing at all and replies with nothing scored 8 out of 40 on the first version of its checks. Verified After the checks were tightened (a reply is required; a declined send must first have reached the approval question) the do-nothing agent scores 0, and that run is repeated whenever errands are added.
The same holds for tests with a stand-in. Chapter 2 tells how a full set of passing tests hid a wrong belief about how the model library reports cost, a belief that only a run against the real library revealed.
Forgetting the cost. A system for one person escapes the problem of scale but should still count its own spending from the first day, and stop when a limit is reached (Chapter 20).
1.11How to test it
A test of a personal agent must check behaviour at the boundaries, not the quality of its prose:
- A message from anyone but the owner produces no reply and no model call.
- A tool not on the list of permitted tools is refused by code, whatever the model asks.
- An action with consequences reaches the owner as a question before it happens, and does not happen when declined.
- An agent that does nothing scores zero.
- The outcome of each errand is read from the state of the world afterwards, not from the reply.
The repository's tests cover the first three. tests/test_slice.py (28 tests, all passing) checks that a stranger's message gets no reply and no model call, and that the tool policy refuses a shell command, a file write, a mail send and a web fetch. tests/test_gate.py and tests/test_apps.py check that a send is held until the owner taps Approve, that it does not happen when declined, and that a planted instruction cannot cause a send without a tap. These tests use stand-ins for the model and the mail service, so they show the code does what its authors intended, no more.
The last two need an evaluation against tasks. An errand suite has been run (Chapter 17, Chapter 19): Verified in its latest run, one run of the suite, 563 of 581 runs passed, against a stand-in mail and calendar, with errands and checks written by the builders. That is weak evidence of competence and is not comparable with the micro1 figures, which come from real accounts.
Verified The owner check, the refusal of unlisted tools and the routine's read-only tool set exist in the code and are covered by passing tests. The holding of a send until the owner approves is covered by passing tests with stand-ins. An errand suite in a stand-in world passed 563 of 581 runs in its latest run, and an agent that does nothing scores zero on it.
Secondary What is said here about the three commercial products' behaviour and failures comes from press and documentation, not from our own use of them.
Not tested No trusted-completion score exists for the book's system on its owner's real accounts and real errands. Until one does, no sentence in this book says the system is as good as, or better than, any product it is compared with.
1.12Where this sits in the literature
The aim of a personal agent is old. [Bush 1945] proposed the memex, a personal device for storing and linking one person's records, and [Licklider 1960] described a division of labour in which the computer does the routine work and preparation so that the person can formulate and judge. The four properties of this chapter are that division made concrete, and "it remembers" is the memex's aim. Neither paper had to consider a machine that could be talked into acting for someone else, which is the concern of most of this book.
[Maes 1994] described personal software agents that learn a user's habits in order to handle mail, meetings and filtering, and discussed trust and control. [Myers et al. 2007] describe a deployed assistant from the CALO project that managed a knowledge worker's tasks and time commitments. Both are closer to this program's errands than most later work on language agents, and both treated what the agent knows of its user as something learned. This program learns little of that kind: what it knows of its owner is what its memory store holds, and when it acts unasked is set by fixed rules. [Horvitz 1999] proposed that an assistant choose between acting, asking and waiting by weighing expected costs and benefits under uncertainty about the user's goals. The design here keeps the three choices and drops the weighing, for the reason Chapter 8 gives: the estimate would come from a model that may just have read an outsider's text. Whether a weighing can be built that what the agent reads cannot steer is not settled.
The definition of an agent used here, a model that repeatedly chooses an action, sees the result and chooses again, matches the distinction drawn by [Anthropic 2024a] between workflows, whose steps are fixed in code, and agents, whose steps the model chooses; the first exercise turns on it. That account also recommends the simplest structure that works, which is the reasoning behind the list of things a first system leaves out. [Sumers et al. 2023] offer a fuller vocabulary, describing a language agent by its memory, its action space and its decision procedure. The four properties fit it: acting and holding accounts enlarge the action space, remembering is a memory module, and speaking first changes when the decision procedure runs. What that framework does not single out is who decides whether a chosen action executes, which is the distinction this book rests on.
The failures in the chapter's table share the mechanism that [Greshake et al. 2023] named indirect prompt injection: instructions that arrive in data a tool returned, not from the user, shown to work against real applications. The chapter's answer is a boundary in code, not a better model.
On what counts as working, published practice is ahead of this program. [Yao et al. 2024] score agents that converse with a simulated user while calling tools under written policy rules, and measure consistency over repeated trials. That is close to trusted completion with a measure of reliability attached, on a benchmark others can rerun; this program's suite is written and checked by its builders, and no such measure exists on its owner's real accounts. [Kapoor et al. 2024] argue that agent evaluations should report cost beside accuracy and hold out tasks against overfitting. Trusted completion as defined here has no cost term, and the chapter's suite is not described as having a held-out part. How to measure trusted completion on one person's real accounts, repeatedly and without that person marking every attempt, is not settled by any work cited here, and is the subject of the open problems below.
- A personal agent differs from a chatbot in four ways: it acts, it remembers, it speaks first and it holds its owner's accounts. Each adds a capability and a risk.
- The model only requests actions; code performs them. That gap is where most safety measures live.
- Commercial personal agents share six elements: one conversation, a coordinating agent, a persistent signed-in computer, connectors before screens, background work, and approval.
- Their reported failures are of boundaries and cost, not model ability: hence "the model proposes, code grants".
- A result counts only when something other than the agent checked it. Trusted completion counts tasks that were done and done within the owner's rules.
- A first system leaves out payments, calls, group chats and speaking to third parties, because each adds harm and none fixes what is broken.
Review
- A program reads your inbox every morning and sends you a summary, following a fixed sequence with no model choosing what to do next. Is it an agent by this chapter's definition? Is it a routine?
- In the lunch errand, why must the approval question be built by code from the tool call's inputs, and not written by the model? Describe an attack that works if the model writes it.
- An assistant attempts 30 errands. Checked afterwards, 24 are correct. In 4 of those 24 it read a file it was not asked to read, and in 2 different ones of the 24 it deleted an email without asking. Compute its task completion and trusted completion, and say which of the six reported failure causes each violation resembles.
- Take the four properties of a personal agent and, for each, write one check that an automated test could make on the state of the world after a task. Which property is hardest to test this way, and why?
- Extend
ROUTINE_TOOLSin your head to includeremember, so routines can save facts. Using the definition of prompt injection, describe how a web page read by a morning routine could change what the agent believes in every later conversation. - Choose one capability the first system leaves out. Design the boundary that would make it safe enough to add: what code holds, what the owner is shown, and what could still go wrong.
Analysis
- Using Definitions 1 and 2, argue that a chatbot offered no tools leaves σ′ = σ in every run, apart from text shown to the owner. Then give a counterexample: a chatbot whose text alone, once displayed by a chat client, carries information to a principal other than the owner, at an invented address such as
collect.example. Say which assumption about the channel your first argument needed, and to which effect class of Definition 2 the counterexample belongs. - An errand suite has 20 errands, each run 4 times. In 12 errands every run completes the task within the owner's rules. In 5 errands every run completes the task, but exactly one of the four breaks a rule. In the remaining 3 errands two runs complete the task, both breaking a rule, and two do not complete it. (a) Compute task completion Ȳ and trusted completion Ȳ as defined in the theory section. (b) Compute pass4 for trusted completion. (c) If every run succeeded independently with probability equal to your trusted Ȳ, what would pass4 be? Explain from Definition 9 why it differs from (b).
- Prove the property "a skipped question is a fault of the program" from Property 1. Then, inside a simulated world with invented sites, describe a run of this program in which information reaches a stranger with no question asked, and name the hypothesis of the property that fails for that call. Finally, describe a run of the OpenInstinct arrangement in which a send happens unasked, and explain why there an observed violation measures the model, while here it would refute the program.
- The micro1 test reports 80% for the best assistant and 65% for another, on the same 20 tasks. (a) Construct per-task outcomes consistent with these totals in which every task the weaker assistant passed was also passed by the stronger, and compute the paired difference Δ and the number of tasks on which the two disagree. (b) Do the same with the overlap as small as the totals allow. (c) Using the noise floor of Definition 9, say what further information you would need before calling either assistant better, and why the two percentages alone cannot supply it.
Design
- A new requirement arrives: the agent should phone
bistro.exampleand book a table for the owner. Sort the call's effects by Definition 2. Say whether any question q can be put between a sentence the agent speaks and the person who hears it, and design what can be held by code instead (what is decided before the call, what the agent may say, what ends the call). State what your design guarantees whatever the model does, and what it gives up compared with an owner who phones themselves. - You are shown an assistant in which the model saves any fact it chooses to memory, routines may send email but only to the owner's own address, and approval questions are written by the model and shown with Approve and Decline buttons. For each of the four properties of a personal agent, say what this design guarantees against a model that has read a planted instruction, and what it does not. Then change the fewest things needed for Property 1 to say something useful about it.
Reading
- [Anthropic 2024a]. In about four hundred words: what it claims about workflows, agents and the simplest structure that works; why that matters for this chapter's decision to leave out payments, phone calls, group chats and speaking to third parties until a simpler system has a stable score; where you were not convinced; and what you would measure or build next to test whether an agent is needed for the lunch errand at all.
- [Kapoor et al. 2024]. In about four hundred words: what it claims about how agents should be evaluated; why it matters for this chapter's choice of trusted completion as the book's measure; where you were not convinced; and what you would add to trusted completion, or to the suite behind it, so that it met their recommendations. Say what a score on your amended measure could show that 563 of 581 cannot.
Open
- (Hard, open) Design an evaluation of trusted completion on one owner's real accounts that can be repeated monthly without the owner marking every attempt. What must a person check, what can a program check, and how do you stop the errands drifting towards what the builders already handle well?
- The second part of trusted completion, "stayed inside the owner's rules", assumes the rules are known. An owner's rules are partly unstated: nobody writes down that a lunch invitation should not mention a medical appointment. Propose a way to elicit enough of one owner's unstated rules that a program can check them, and a way to tell whether it worked. Progress would be an automatic check whose agreement with the owner's own judgement, measured by κ on runs held out from its construction, is high enough to replace the owner on most runs; say what level you would accept and why.