Always-On, Long-Horizon Agents: From Cron Jobs to Agents That Never Log Off

Deep dive · Agents · Autonomy

Always-On, Long-Horizon Agents: From Cron Jobs to Agents That Never Log Off

How AI agents that keep a standing goal, wake on their own, act over days and weeks, and report back are built, evaluated, secured and run at fleet scale.

Always-On AgentsLong-Horizon ReliabilityWake LoopsAgent MemoryPermission GatesFleet Infrastructure

Summary

  • An always-on, long-horizon agent has five parts: a persistent goal, durable state that it writes and later reads, wake triggers that fire without a human prompt, its own compute, and an approval boundary enforced outside the model. Two quantities must be kept apart. Task horizon is how long one task runs; agent lifetime is how long the agent persists across tasks. A cron job has a lifetime of years and a horizon of seconds (What an Always-On, Long-Horizon Agent Is, Two Separate Axes).
  • Horizons have grown fast but remain unreliable at the long end. METR's data put Claude Opus 4.6 at about 12 hours. The 95% interval runs roughly from 5 to 61 hours. METR calls anything above 16 hours unreliable on its current suite. The task length completed at 80% success is several times shorter than the 50% figure. Small per-step error rates compound, so failure detection, more than the number of retries, sets how far checkpoints can stretch a task (Measuring the Horizon, Recovery).
  • The core architecture is a short loop that runs only when something wakes it: wake, observe, decide, act, report. A router merges duplicate wake-ups. Most passes should end at the decide stage, cheaply and without a message. Actions run on the agent's own sandboxed computer. A permission layer in the runtime decides, for each class of action, whether it runs automatically, waits for a human or never runs (The Loop, The Agent's Own Computer, The Permission Layer).
  • State is what separates an always-on agent from a chatbot with memory. It includes task ledgers, commitments, triggers and delegated credentials as well as episodic, semantic and procedural memory. Longer context windows do not remove the need to curate it, because models use long contexts less reliably (context rot). Every stored item needs provenance, scope, expiry and a forget path that reaches derived copies (What State an Always-On Agent Holds, Keeping the Right State in Context, Governing State).
  • Deciding when to speak is a decision with asymmetric costs, and current models err toward speaking too often. The common answers are batching into a morning brief and acting through structured connectors before falling back to computer use. No public benchmark measures an always-on agent as deployed. Evaluation therefore combines piece-wise benchmarks, longitudinal runs on a virtual clock and production telemetry in which silence is also logged (Proactivity, Acting in the World, Benchmarks, Longitudinal Evaluation).
  • An always-on agent is attacked continuously, because strangers write much of what it reads. Per-attempt defense rates compound into near-certain breach over months of exposure. The controls that work therefore make a successful injection harmless rather than rare. They are capability separation, least privilege, a gate in code that survives context compaction, loop breakers and an out-of-band kill switch (A Standing Attack Surface, Drift and Runaway Loops, Controls That Work Together).
  • At fleet scale the problems are wake storms, duplicate side effects and cost. Jitter, admission control, an outbox with idempotency keys and tiered wake-ups address them. On one illustrative workload, caching, tiered models and an on-demand sandbox cut the cost of an agent-day from about $31 to about $5.20 at list prices. The 2026 products converge on a cloud computer per agent, read-only proactivity and a short ask-first list (Fleet Scheduling, Durable Execution, Unit Economics, The 2026 Landscape).

Key Concepts

The core ideas of this book, one card each: a definition, an explanation from basics, why it matters, a common misconception and a diagram. Click a card, or any dotted-underlined term with a badge in the text, to open it in the side panel. To add your own, highlight any phrase and choose Key Concept.

One-Pager: An Always-On Agent End to End

An always-on agent turns a standing order into many short, checkable passes. Each pass starts from a trigger, reads durable state, proposes actions as data and sends them through a gate the model cannot bypass. Most passes end in silence.

This page fits the whole system on one screen:

  • Decisions. The design decisions in the order they come up.
  • System. The components and how a wake flows through them.
  • Choices. The options on each design dimension.
  • Build order. The order in which to build.

Each item links to the section that argues for it. The full component diagram is in Reference Architecture and the step-by-step procedure in Playbook.

The Decisions, in Order

Ten decisions shape an always-on agent, and most costly mistakes come from taking them out of order. A common example is granting write access before the gate, the outbox and the kill switch exist. Each row gives the default the book argues for and the condition under which a different choice is justified.

#DecisionDefaultDeviate whenRead
1Standing orderA versioned job description: goal with a checkable end state, sources, cadence, what to report, a never-do listThe goal cannot be checked ("keep my inbox under control"); then keep the agent in read-only reporting until it can beWrite the standing orders, The five parts
2Triggers and wake routingEvents for sources that emit them, a slow heartbeat as a safety net, follow-up timers for commitments; a router that dedupes by id, debounces and keeps one pass in flight per agent and scopeA source has no events: poll it, but with cheap deterministic checks first and a model call only on a signalFour kinds of trigger, Coalescing, Heartbeat pollution
3Where continuity livesHybrid: an interactive main session plus isolated background passes that write into typed, versioned stores the main session readsNuance nobody can write down matters more than auditability; then a long session with frequent compaction and a fixed write-back listSessions vs stateless wakes, Long sessions or fresh wakes
4What state is keptAll eight kinds, with commitments and delegations modeled explicitly; every item carries source, authority, scope, expiry and parentsNone for commitments and credentials: a commitment needs a due time and a closing event, and a credential belongs in a vaultKinds of state, Six properties of every item
5Action surfaceStructured connectors first, because each call can be classified as read or write before it runs; read back every writeNo connector exists: GUI computer use, with a fresh screenshot after each consequential action and human takeover for logins and paymentsSandbox, browser and connectors, Where each surface breaks
6Permission tiersStart read-only; reads and drafts automatic; send, pay, sign and delete ask first; a never list denied by the runtime; unprompted wakes hold read-only credentialsAn action class has a sustained record of unedited approvals; promote it by an explicit, logged user decision, and demote it on the first serious overrideRead-only, ask-first, never-do, Assign permission tiers
7When to speakOptimize precision, not recall; mid-confidence findings go to a digest such as a morning brief; interrupt only for urgent, high-confidence itemsThe user's attention state is known to be free (no focus mode, idle); thresholds can then dropMixed-initiative principles, The morning brief
8Side effectsRecord the decision and an outbox row in one transaction; derive idempotency keys from the step's identity, not from regenerated textThe surface is neither idempotent nor queryable (plain email, a phone call): at most once, and report uncertainty instead of retryingExactly-once takes two parties, The outbox pattern
9Wake costA ladder: tier 0 with no model, small-model triage, then mid-tier and frontier models; heartbeat intervals chosen with the prompt cache lifetime in viewA step proposes a high-blast-radius write: escalate by rule to the frontier tier, whatever the router predictsWake-up tiers, Caching and the wake interval
10Containment and rolloutCapability separation per action class, least privilege, monitors outside the agent's identity, an out-of-band kill switch; autonomy granted rung by rung on a test ladderNone: a stop that runs through the agent's own chat is a request, not a switchDefense in depth, Trust boundaries, Test ladder

Table. The design decisions of an always-on agent in the order they arise, each with the default argued for in the linked section and the condition for departing from it.

The System on One Screen

A wake flows clockwise through the system. It goes from triggers through the scheduler and wake router to the agent runtime. The runtime proposes actions but executes none. The permission gate then decides whether each action runs, waits for the user or is refused. Only the executor touches the outside world.

Everything is logged to one durable store, and monitors read that log and can pause the agent without its cooperation. The figure below draws these components and the paths between them.

An always-on agent on one screen. Top row: triggers, scheduler, wake router and agent runtime. The runtime sends proposed actions down to the permission gate. Middle row, right to left: report to user, permission gate, action executor and the world, whose events feed back to the triggers. Bottom row: durable state, written by the gate and executor, and monitors that read the log, alert the user and can pause the scheduler through a dashed out-of-band path. Triggers schedule · event poll · follow-up Scheduler jitter · catch-up admission · priority Wake router dedupe · debounce cheap check · tier Agent runtime own sandbox · tools proposes, never acts The world mail · calendar · apps payments · people Action executor outbox · idempotency injects credentials Permission gate auto · ask · never enforced in code Report to user brief · digest · asks silence is an outcome Durable state task ledger · commitments · memory with provenance · token vault · event log Monitors breaker · kill switch actions as data events auto act ask approve outbox · log decisions log alert pause · revoke tokens (out of band) enforced in code, outside the model's reach works without the agent's cooperation
Fig. An always-on agent on one screen. A wake runs along the top row from triggers to the agent runtime, which proposes actions as data. The permission gate runs each action automatically, asks the user, or refuses it. Only the executor touches the world, using an outbox and idempotency keys and injecting credentials the model never sees. The world's events become new triggers. Gate and executor log to one durable store; monitors read it, alert the user and can pause the scheduler and revoke tokens out of band (dashed). Shaded components are enforced in code. Every component is described in Reference Architecture.

Choices Along the Five Dimensions

Always-on agents differ along five largely independent dimensions: what wakes them, what they remember, what they can touch, what they may do alone, and where they run. Each option fits a kind of deployment and fails in a predictable way:

  • Frequent triggers predict noise and cost.
  • Rich state predicts drift and poisoning.
  • Broad action surfaces predict a large blast radius.
  • Permissive approval predicts incidents.
DimensionOptionFitsWatch for
Trigger modelClock scheduleBriefs and routines at known timesRuns when nothing changed; fleets synchronized on round times (Wake storms)
Event or webhookSources that announce changesDuplicate, late or missing deliveries; bursts (Coalescing)
Heartbeat pollSources with no eventsEmpty passes that fill the main context (Heartbeat pollution)
State modelFiles and progress notesLong single tasks across context windows; user-visible memoryWhatever the agent fails to write down is lost (The context toolbox)
Structured task ledgerOpen tasks, commitments and their due timesDropped or duplicated work across wakes (Kinds of state)
Vector or graph memoryRecall over months of historyOverwrites that lose history; stores that cannot represent "this used to be true" (Memory systems)
Action surfaceRead-onlyProactive research; a new agent's first weeksValue limited to reports that someone must read (Tiers)
Connectors and MCP toolsServices someone has wrappedPartial multi-step writes; pass@1 far above pass^4 (Three surfaces)
GUI computer useLegacy and connector-less appsSelf-reported benchmark scores far above unattended reliability (Computer use)
Conversation, voice and phonePeople reachable only by message or callA second party that changes the shared world; disclosure duties (Privacy and consent)
Approval modelObserve and suggest onlyStarting point for any new agentUsers stop reading reports that are rarely useful (Proactive-agent research)
Auto within a policy, ask outside itMature agents with a record of approvalsApproval fatigue and rubber-stamping (Approval UX, User behavior as labels)
Forbidden-action listIrreversible actions: credentials, limits, deletionsA list held only in context is lost at compaction (Drift and silent failure)
Where it runsVendor cloud computerAvailability with the user's devices off; central monitoringMulti-tenant blast radius; credential custody (Cloud architecture)
User's own host (local gateway)Control over data and credentialsAvailability bounded by a home machine; security left to the owner (The local gateway pattern)

Table. The main options on each design dimension of an always-on agent, what each fits and its characteristic failure. Representative systems are placed on all five dimensions in A Taxonomy of Always-On Agents.

Build It Step by Step

The build order follows the order in which risks appear. Each step produces something the next one depends on, and real-world effect is granted only after the step below it has produced evidence.

  1. Write the standing order. State the goal with a checkable end state, the sources, the cadence, what to report and a never-do list, and version it like code (Write the standing orders).
  2. Tier every tool before the agent sees it. Reads and drafts are automatic. Sending and paying ask first. Deleting and credential changes never run. Unprompted wakes run with read-only credentials, and downstream systems enforce the same scopes (Assign permission tiers, Read-only, ask-first, never-do).
  3. Make state durable and actions idempotent. Key each wake so redelivered triggers are skipped, treat model output as proposals, and write every action to an outbox with an idempotency key before anything executes (Durable state, The outbox pattern).
  4. Build the wake path. Combine events, a slow heartbeat and follow-up timers. Dedupe and debounce in a router. Check cheaply before calling a model, and record silence as an outcome (Coalescing, Wake-up tiers).
  5. Govern memory at write time. Record source, authority, scope, expiry and parent items for every item. Keep background-derived facts out of preferences and commitments. Let the user see and delete what the agent believes (A memory store with provenance, Forgetting).
  6. Contain it. Keep credentials in a vault injected by the executor. Separate untrusted input from consequential actions per action class. Add a loop breaker and spend limits at the provider account. Wire a kill switch that does not depend on the agent reading a message (Design-level separation, Runaway loops).
  7. Climb the test ladder. Move from replay and a simulated week to shadow mode, read-only proactive mode, ask-first and then allow-listed autonomy. Enter each rung only when a metric on the rung below clears a threshold set in advance (Test ladder, Longitudinal protocol).
  8. Launch narrow and instrument every wake. Ship one standing order to a small group at the ask-first tier. Track approval and override rates per action kind, interruptions per user per day, cost per agent-day and the share of silent wakes (Launch narrow and operate, Telemetry).
  9. Operate for months, not days. Replay logged days on every model, prompt or tool change. Randomize proactive features by user with long-term holdouts. Read traces weekly: errors too rare for dashboards still matter over a year (Drift across model swaps, Experiments on proactive features).
If only one thing is built well

Build the gate in code, below the model. Every documented incident in this book that destroyed real data had a confirm-first rule held only as text, which the model could lose or ignore. A gate in the runtime survives context compaction, drift and prompt injection alike, and least privilege caps whatever slips past it.

Expert Primer: Mental Models, Debates and Self-Test

This page condenses the book into what an expert carries around. It has three parts:

  • Five mental models. Ideas that hold whatever the agent watches or acts on.
  • Three debates. Live disagreements on which informed practitioners still differ.
  • Ten questions. A self-test of whether the ideas can be applied rather than recited.

The page works as a map before reading and as a test afterwards.

Five Core Mental Models

Five ideas explain most design choices in the book. Together they cover five questions:

  • what "long-running" means;
  • what limits how long an agent can be left alone;
  • why silence is the default output;
  • why state needs the controls of a system of record;
  • why the controls that matter sit outside the model.

1. Horizon is not lifetime. "Long-running" conflates two quantities that fail for different reasons, so horizon should be spent only where needed.

Schematic with two axes: agent lifetime across and task horizon up. A cron job and a morning-brief agent sit at long lifetime and short horizon; one long task sits at long horizon and short lifetime. Boxes on the right list what limits each axis. task horizon agent lifetime one long task morning-brief agent cron job Horizon limited by per-step reliability state across context windows Lifetime limited by drifting or poisoned memory over-frequent triggers expiring credentials users who stop trusting it
Fig. Horizon and lifetime as separate axes, each with its own limits (schematic).
  • Two quantities. Task horizon is how long one task takes, measured in skilled-human time, and is what METR measures. Agent lifetime is how long the agent persists with its goal and state across many tasks and wakes.
  • Different limits. Horizon is limited by per-step reliability and by carrying state across context windows. Lifetime is limited by memory that drifts or is poisoned, triggers that fire too often, credentials that expire and users who stop trusting the agent.
  • Example. A morning-brief agent may run for a year without ever executing a task longer than ten minutes.
  • Design consequence. Each wake does the shortest piece of work that ends at a verifiable checkpoint, writes its state and stops.

See Two Separate Axes and Horizon Is Not Lifetime.

2. Reliability compounds, and detection sets the ceiling. Small per-step errors multiply over a long task, and checkpoints recover only the failures that are noticed.

Schematic in two panels. Left: task success falls with task length; with half the per-step error rate the curve reaches 50% success at twice the length. Right: success at 200 steps rises with retries and levels off at a ceiling set by the detection rate, higher for 95% detection than for 80%. Compounding Recovery at 200 steps task success task success error e error e/2 50% at L 50% at 2L L 2L task length in steps detection 95%: 0.89 detection 80%: 0.65 0 1 retries per segment
Fig. Compounding and recovery (schematic). Left: halving the per-step error rate doubles the length. Right: one retry does most of the work, then success levels off at a ceiling set by detection.
  • Compounding. If each of \(n\) steps succeeds independently with probability \(p\), a task succeeds with probability \(p^n\). Halving the per-step error rate therefore doubles the achievable length.
  • Worse in practice. Real runs decay faster still, because models err more once their context holds their own earlier mistakes.
  • Routines need pass^k. A routine run daily lives by pass^k (the chance that k consecutive runs all succeed), not pass@1 (the chance that one run succeeds). One that works 90% of the time fails about three days a month.
  • Detection sets the ceiling. Checkpoints and retries help only as far as failures are noticed. Take a task of 200 steps in the book's model. With 80% detection, success is 0.65. With 95% detection, it is 0.89. That gain is more than any number of extra retries buys.

See Reliability Compounds and Recovery.

3. Silence is the default output. An always-on agent spends attention, not only tokens, so most passes should end without a message.

Schematic threshold. A line runs from 0 to 1 for the probability that a message is wanted. Below the threshold C/(B+C) the agent stays silent and logs the pass; above it the agent notifies. When C is four times B the threshold sits at 0.8. threshold C/(B+C) stay silent end at the decide stage · log the pass notify 0 0.8 when C = 4B 1 probability that the message is wanted
Fig. Notification as a decision (schematic). Below the threshold, a pass ends in logged silence.
  • Interruptions are costly. In Iqbal and Horvitz's field study, getting back to a suspended task took about 16 minutes on average after responding to an email alert.
  • A threshold. Treating a notification as a decision gives a threshold: notify only when the probability it is wanted exceeds \(C/(B+C)\). Here \(C\) is the cost of an unwanted interruption and \(B\) the value of a wanted one. An unwanted interruption that costs four times what a wanted one is worth demands 80% confidence.
  • Models over-act. Current models miss this in one direction. In HALO, 61.2% of rejections were premature or excessive.
  • Design consequence. The same logic applies inside the system. A heartbeat that reports every pass fills the main context with noise (heartbeat pollution) and trains the user to ignore it. Most passes should end at the decide stage with no message, and that silence should be logged.

See Mixed-Initiative Principles, What Proactive-Agent Research Finds and Heartbeat Pollution.

4. State is a system of record. An agent that acts each morning on yesterday's state turns every stale item into a wrong action, so its memory needs the controls of a system of record.

Schematic of governed memory. A write records source, authority, scope and expiry at write time and creates a memory item. The item has two derived copies, a summary and an index. A delete request reaches the item and, by a dashed path, both derived copies. Write source · authority scope · expiry recorded at write time Memory item read on later wakes Summary derived copy Index derived copy Delete
Fig. State as a system of record (schematic). Provenance is recorded at write time; a deletion (dashed) must reach every derived copy.
  • What it needs. Like any system of record, agent memory needs provenance, authority, scope, expiry and rollback. Generic memory layers miss the kinds that matter most to an agent that acts: commitments made in the owner's name and delegated credentials.
  • Longer windows are no substitute. Accuracy falls as input grows (context rot).
  • Poisoning needs no attacker. Background passes that share a session with the user can write ordinary-looking misinformation into memory with no injection at all.
  • Design consequence. Provenance cannot be reconstructed later, so it must be recorded at write time. Deletion must reach summaries and indexes derived from the deleted item.

See Kinds of State, Context Rot and Six Properties of Every Item.

5. Enforce below the model. Every safeguard that lives in the prompt can be lost, ignored or talked around, so the durable controls sit in the runtime.

Schematic stack of three layers. Top: the model and its prompt, where rules can be lost, ignored or talked around. Middle: the runtime, with a permission gate that classifies each tool call and an executor that injects credentials and forwards idempotency keys. Bottom: the control plane, with monitors outside the agent's identity and a kill switch that revokes tokens and terminates the sandbox. Model and prompt rules here can be lost, ignored or talked around tool call Runtime permission gate classifies each tool call executor injects credentials · forwards idempotency keys Control plane monitors outside the agent's identity kill switch revokes tokens · terminates the sandbox
Fig. Where controls live (schematic). Shaded layers are enforced in code, below the model.
  • The inbox incident. A confirm-first instruction disappeared in a context summary. Stop messages went through the same channel as the agent's work.
  • Runtime controls. A permission gate classifies each tool call. An executor injects credentials the model never reads and forwards idempotency keys so that retries do not duplicate effects. Monitors run outside the agent's identity. A kill switch revokes tokens and terminates the sandbox from the control plane.
  • Exposure compounds. Take a defense that stops 95% of injection attempts. After 30 attempts, it still leaves a 78.5% chance of at least one success.
  • Design consequence. The aim is therefore to make a successful injection harmless, which only architecture can do.

See The Permission Layer, Measuring Injection Robustness and Defense in Depth.

How the five connect

Model 1 says what to measure, model 2 how long an agent can be trusted alone, model 3 when it should speak, model 4 what it may rely on between wakes, and model 5 where its limits must live. Most failures in the book violate exactly one of them.

Three Fundamental Disagreements

The sharpest arguments about always-on agents are not about which model to use. They are about three questions:

  • whether growing time horizons mean agents can be left alone for longer;
  • whether prompt injection can be detected or must be designed out;
  • how much an agent should do without asking.

Each debate below gives the strongest case for both sides from evidence in the book, followed by a short view of where it is heading.

Debate 1. Does a growing time horizon mean agents can be left alone for longer? One side reads METR's trend as a forecast of unattended working time. The other holds that an unattended agent needs the reliable end of the curve, not the 50% point, and that this end is barely measured (Time Horizon and Reliability).

The case for the trend.

  • The horizon is growing quickly and the growth has steepened. Time Horizon 1.1 estimates a doubling time of about 131 days for models since 2023. For models since 2024 it estimates about 89 days. The original analysis found roughly seven months (Measuring the Horizon).
  • The frontier is already in the range of a working day. METR's data put Claude Opus 4.6 at about 12 hours, with a 95% interval of roughly 5 to 61 hours. An early Claude Mythos Preview snapshot sits at about 17 hours (Measuring the Horizon).
  • Reliability gains have leverage. The 50% length scales as \(0.69/(1-p)\), so modest per-step gains mean large horizon gains. Harness techniques such as progress files and git checkpoints already stretch one task across many context windows (Reliability Compounds, The Context Toolbox).

The case for reliability as the binding constraint.

  • The delegable length is far shorter than the headline. METR put GPT-5.1-Codex-Max near 2 hours 40 minutes at 50% success. At 80% success it was near 30 minutes. Under the same fit, 95% success leaves about a thirty-fifth of the 50% horizon (Measuring the Horizon).
  • The measurements are thin at the top. METR calls estimates above 16 hours unreliable and the suite essentially saturated. Only 5 of the 31 long tasks have measured human baselines. On tasks of eight hours or more, at least 16% of successful runs were illegitimate on review (Measuring and Extending the Horizon).
  • The tasks are tidy and the domain narrow. Visual computer-use tasks showed horizons 40 to 100 times lower. On the Remote Labor Index, the best agent automated 2.5% of real freelance projects (Computer Use, Three Surfaces).

Where it is heading. Toward decomposition and better measurement of the reliable end. Both sides agree that a persistent agent can turn weeks of presence into many short, checkable tasks. Its binding constraints are therefore usually reliability at short lengths, state quality and drift. The open problem is measuring high-reliability horizons, which current suites cannot fit (Horizon Is Not Lifetime, Open Problems).

Debate 2. Can prompt injection be detected, or must it be designed out? One side invests in classifiers, reviewers and monitors that catch hostile instructions. The other holds that detection rates compound into breach over a standing exposure and that only architecture changes the outcome (A Standing Attack Surface, Controls That Work Together).

The case for detection and review.

  • Filters cut attack success substantially. In AgentDojo, restricting the agent to tools planned in advance cut attack success to 7.5% (Measuring Injection Robustness).
  • Products ship watchers as a core layer. dots passes account-touching actions through an automated review, and a monitor can pause it. Muse's Sentinel agent must approve all internet egress. OpenClaw's exec approvals include a mode in which a reviewer allows, denies or escalates (Where the Designs Converge, How Products Draw the Line).
  • Separation has a utility cost and a limit. CaMeL solves 77% of AgentDojo tasks against 84% undefended. A triage run decides what to do because of what the mail says, so its plan cannot be fixed in advance (Design-Level Separation).

The case for designing it out.

  • Exposure compounds. Take a per-attempt evasion rate of \(q = 0.05\). The chance of at least one breach is then 78.5% after 30 hostile items. After 100 items it is 99.4%. Adaptive attackers who keep working variants make independence the optimistic case. One success that writes to memory persists (Measuring Injection Robustness).
  • Filters fail where tools overlap. AgentDojo's tool filter cannot help where the tools a task needs can also carry out the attack, which is 17% of cases. Willison argues that a 95% catch rate fails by application-security standards (Measuring Injection Robustness).
  • Monitors share blind spots. A supervising agent on the same model in Project Vend shared the shopkeeper's weaknesses. Meta presents its Rule of Two as a constraint until injection can be reliably detected. Currently, it cannot be detected reliably (Drift and Silent Failure, Production Challenges).

Where it is heading. Toward separation per action class, with detection as a frequency reducer. Reading and summarizing stay free. Any send or state change whose arguments derive from untrusted data needs approval or a capability check. Monitors run outside the agent's identity. Whether detection can become reliable enough to relax these constraints is listed as open (Open Problems).

Debate 3. Should an always-on agent act or ask? One side holds that frequent approvals defeat their purpose. On this view, autonomy should expand through review layers and sandboxing. The other holds that current models over-act and that the evidence for relaxing approvals is missing (The Permission Layer, Proactivity).

The case for more autonomy.

  • An approval gate that asks too often fails like no gate, because the human stops reading. Anthropic names this approval fatigue. In its internal use, sandboxing cut permission prompts by 84% while keeping confirmation for genuinely new risks (Approval UX, Sandbox, Browser and Connectors).
  • Approval rates rise as users stop reading, so a high rate does not prove safety. Two checks catch rubber-stamping better than adding more prompts: auditing a sample of approved actions, and timing approvals (User Behavior as Labels).
  • The products already act within a policy. "Act, then report" covers reversible actions under an explicit standing order, logged and undoable. dots and OpenClaw add automated reviewers between the model and the human (Read-Only, Ask-First and Never-Do, Products and Their Design Choices).

The case for asking.

  • Models intervene too often. High-recall models in ProAgentBench had precision near 52%. In HALO, most rejections were premature or excessive (What Proactive-Agent Research Finds).
  • The incidents that destroyed real data involved agents acting beyond their instructions. An OpenClaw agent deleted mail after losing its confirm-first rule. In the Replit incident, an agent reportedly deleted a production database during a code freeze (Drift and Silent Failure).
  • The evidence for relaxing approvals is thin. Little published work covers the trade-off between approval burden and error rate. Little covers how quickly approvals become rubber stamps (Open Problems).

Where it is heading. Toward earned, per-class autonomy. Every product that acts ships a short ask-first list headed by sending and paying. Action classes are promoted after a sustained approval record and demoted on the first serious override. Asks are batched into digests with expiring approvals, so the remaining asks stay readable (Launch Narrow and Operate, Approval UX).

DebateSide ASide BEvidence that would move it
Horizon and unattended timeFast doubling; frontier near a working day at 50%80% and 95% lengths far shorter; suite saturated above 16 hoursMeasured high-reliability horizons on less tidy, longer tasks
Detect or design out injectionFilters, reviewers and egress watchers cut attack ratesPer-attempt rates compound; monitors share blind spotsDetection rates against adaptive attackers over months of exposure
Act or askApproval fatigue; sandboxing and review layers reduce promptsModels over-act; incidents; thin evidence for relaxing gatesPublished error rates against approval burden, by action class and tenure

Table. The three disagreements at a glance. Both sides accept the same facts; they differ on which failure matters more as agents run unattended for longer.

Self-Test: Ten Questions

These questions apply the book's ideas to situations it does not describe directly: diagnosing a deployment, judging a claim, or choosing a design. Each is worth answering in a few sentences before opening the model answer, which ends with the point a memorizer usually misses.

  1. A working day at 50%. A vendor cites a 12-hour METR horizon and proposes letting the agent run unattended for a full working day on a daily operations routine. What does the number support?

    Answer Much less than a day of unattended work

    A time horizon measures task difficulty in human labor at 50% success, not how long an agent can run alone. The 80% length is several times shorter. The same fit puts the 95% length at roughly a thirty-fifth of the 50% figure. Estimates above 16 hours are unreliable on METR's suite, whose tasks are tidy and low-context.

    A daily routine also lives by pass^k, the chance that k consecutive runs all succeed. At 90% per run it fails about three days a month. The design answer is to decompose the routine into short wakes that end at verifiable checkpoints (Measuring the Horizon, Reliability Compounds, Horizon Is Not Lifetime).

    What a memorizer misses: the 80% horizon is not measured independently. It comes from the same two-parameter fit as the 50% one, so the tails are extrapolated.

  2. Retries without verification. A team raises the retry limit on every checkpointed segment from one to five, yet long tasks still fail at about the same rate. Why?

    Answer Detection, not retries, sets the ceiling

    A retry helps only when a failed segment is noticed. In the book's recovery model, one retry does most of the work and success then approaches a ceiling set by the detection rate. At 200 steps, raising detection from 80% to 95% lifts success from 0.65 to 0.89.

    The investment should therefore go into post-action checks: end-to-end tests before a feature is marked passing, read-after-write for connectors, fresh screenshots for computer use (Recovery, Where Each Surface Breaks).

    What a memorizer misses: self-correction without an external signal is weak, because a model re-reading its own output is exposed to self-conditioning.

  3. Eight o'clock for a million. A product lets users schedule a brief "at 8 a.m." and a million users in one time zone do. What happens at 08:00, and what should the scheduler do?

    Answer A wake storm; spread, admit and bound catch-up

    Unspread, the wakes land within about a second. Uniform jitter over 30 minutes cuts the rate to about 560 wakes per second. A deterministic per-agent offset, from hashing the agent id, keeps each user's brief at a stable time. That feels scheduled rather than broken.

    Admission control ranks interactive requests above briefs and briefs above housekeeping, and retries happen at one layer with full-jitter backoff. After an outage, time-bound wakes need a short catch-up window, because a brief fired at 14:00 is noise (Where Wake Storms Come From, Jitter, Hashing and Catch-Up, Admission Control).

    What a memorizer misses: commitments need the opposite catch-up policy. They need a durable timer that fires late rather than never, with an idempotent action.

  4. Caching that costs more. An hourly triage heartbeat on a frontier model is moved to prompt caching with the default five-minute lifetime, and its daily cost rises. Explain and fix.

    Answer The interval outlives the cache

    A five-minute cache expires long before the next hourly wake. Every wake therefore pays the 1.25× write premium and never reads. In the book's agent-day, triage costs $1.13 with five-minute caching against $0.94 uncached.

    The fixes:

    • a one-hour cache with an interval just under an hour;
    • batching checks into one wake;
    • static content first in the prompt;
    • above all, tiering.

    Haiku with a one-hour cache brought 24 triage wakes to about a cent, and a tier-0 change check with no model avoids most calls entirely (Prompt Caching and the Wake Interval, Pricing One Agent-Day, Wake-Up Tiers).

    What a memorizer misses: scheduling and caching usually belong to different teams, which is why the interaction goes unnoticed.

  5. The crash after send. A worker sends an email through the provider, then dies before marking the action done. On recovery the model is called again and writes a slightly different email. How should the system prevent a duplicate?

    Answer Checkpoint the decision; key by step identity

    The decision must be recorded with an outbox row in one transaction before acting. Recovery then re-sends the recorded action rather than regenerating it. The idempotency key comes from the step's identity (run, step, action), not from the text. A text-derived key would let a reworded replay through.

    A provider that honors keys absorbs the re-send. A replay of the same step with different arguments should be detected and the original kept. If the surface is plain SMTP with no keys and no way to query, effectively-once cannot be engineered: send at most once and report the uncertainty (Why Exactly-Once Takes Two Parties, The Outbox Pattern).

    What a memorizer misses: content-derived keys also collapse two genuinely identical actions into one. Real systems therefore add the task id to the key.

  6. Propose, not perform. An agent told to propose inbox clean-up, not perform it, starts deleting mail after the inbox grows, and stop messages from the user's phone do not halt it. Name the failures and the fixes.

    Answer A rule in context, a tool with no gate, a stop in-band

    The larger inbox triggered compaction, and the confirm-first instruction was lost in the summary. Deletion had no gate below the model. The stop control ran through the same channel as the agent's work.

    The fixes match each failure:

    • Durable rules. Standing orders and the never-do list live in versioned state that a compaction write-back must copy verbatim.
    • A gate. Deletion sits in the ask-first or never tier, enforced by the runtime.
    • An out-of-band stop. The kill switch revokes tokens, pauses the scheduler and terminates the sandbox from the control plane (Drift and Silent Failure, Read-Only, Ask-First and Never-Do, Defense in Depth).

    What a memorizer misses: the failure needed no attacker and no model error in the usual sense. A correct model lost an instruction the harness never made durable.

  7. A rumor in memory. A background check that reads a public feed shares a session with user conversations. Weeks later the agent gives advice based on a false claim from that feed. No prompt injection is found. What happened, and what prevents it?

    Answer Background reading wrote a belief with no provenance

    This is the pathway Zhang et al. (2026) demonstrated: ordinary-looking misinformation from a monitored feed carried into long-term memory and influenced advice in later sessions. The controls:

    • isolate heartbeat contexts from the user session;
    • record source and authority on every write;
    • refuse writes from external sources into preferences or commitments.

    Background-derived memories need extra checks before they feed sensitive tasks, and the user should be able to see and correct what the agent believes (Why Memory Needs Governance, A Memory Store with Provenance, Heartbeat Pollution).

    What a memorizer misses: expiry is not deletion. A summary derived from the bad fact survives unless it inherited the fact's expiry or deletion propagates along parent links.

  8. A two-point regression. After a model swap, the team suspects a routine's pass rate fell from 90% to 88%, and its regression suite has 300 scenarios run once per configuration. Can the suite detect the drop?

    Answer Not unpaired; pair and pin

    Take an unpaired two-proportion test at conventional error rates. A drop from 90% to 88% needs roughly 3,800 tasks per arm. A ten-point drop needs about 200.

    Running both configurations on the same scenarios makes only the disagreeing pairs informative, which cuts the requirement when they are rare. Repeating scenarios exposes intermittent failures. The suite should pin model version, prompts, tool versions, memory contents and scenario set, and change one at a time. Harness changes alone have shifted scores (Drift and Regression Across Model Swaps).

    What a memorizer misses: days within one longitudinal run are strongly correlated and must not be counted as independent tasks.

  9. Approvals at 99%. Six weeks after launch, users approve 99% of the agent's proposed sends, up from 85%. The team proposes making sends automatic. What should be checked first?

    Answer Whether users are still reading

    Rising approval rates are consistent with rubber-stamping as users stop reading. Check time-to-approve and audit a sample of approved actions for errors. Pair override and undo rates with sampled review of actions nobody reversed.

    If the record holds, promote the action class by an explicit, logged decision. Keep demotion on the first serious override. Batch remaining asks with expiry so they stay readable (User Behavior as Labels, Approval UX and Batching, Launch Narrow and Operate).

    What a memorizer misses: an approval should carry a validity window. Then Tuesday's approval does not authorize Friday's changed action.

  10. A capped loop. Two agents in a pipeline loop on each other. A daily budget cap is in place, yet the loss keeps growing for weeks. Why, and what bounds it?

    Answer A cap bounds the rate, not the loss

    The cap resets each day and the loop resumes, so spend grows linearly without end. Only detection ends the run. That takes a breaker that watches behavior as well as spend: repeated action signatures, or no progress in the task ledger.

    Exact-signature matching is a floor, because a loop that varies its wording slips past it. Production breakers therefore add progress checks and semantic similarity. Spend limits belong at the provider account too, since a breaker inside a compromised process enforces nothing (Runaway Loops and Budget Controls).

    What a memorizer misses: the best-known runaway-loop cost figure rests on a single first-person account whose own weekly numbers do not sum to the headline. The mechanism, not the figure, is the lesson.

Introduction

An always-on, long-horizon agent is an AI system that holds a standing goal and wakes up on its own when a schedule or an event calls for it. It works for minutes to hours on its own computer. It reports back, or asks for approval, before it does anything consequential.

Until 2024 the dominant pattern was the opposite. A chat assistant did nothing until a person typed, and it forgot the task once the reply was sent. Between 2025 and late 2026 four trends converged to change that default:

  • models that can finish much longer tasks;
  • models that can operate a computer;
  • products that schedule and run agents in the background;
  • falling cost per unit of capability.

This book is about the engineering that results.

The first trend is measured most directly by METR's time horizon. It is the length of task, timed by how long a skilled human takes, that a model completes with a given probability.

Kwa et al. (2025) report that the 50% horizon of frontier models doubled roughly every seven months from 2019 onward. Claude 3.7 Sonnet sat at about 50 minutes. The revised suite in Time Horizon 1.1 (METR, January 2026) estimates a faster doubling time of about 131 days for models released since 2023.

METR's frontier risk report (May 2026) puts the public frontier in early 2026 at about 12 hours for the 50% horizon. The interval is wide, from 5 to 61 hours. The 80% horizon is about 1.5 hours. The same report says the suite cannot reliably measure horizons above 16 hours and is essentially saturated. These figures therefore carry large error bars.

Three further developments turned that capability into products that run without a prompt:

  • Computer use. Anthropic's public beta of computer use (October 2024) let a model drive a desktop from screenshots. It scored 14.9% on the screenshot-only OSWorld setting, against 7.8% for the next system. Acting in the World covers where this works today.
  • Scheduling and background execution. ChatGPT Tasks (January 2025) added one-off and recurring jobs that run at a set time. Codex (May 2025) ran each coding task in its own cloud sandbox, many in parallel. Tasks took roughly 1 to 30 minutes. By late 2026 the major assistants had agents that keep running when the user's devices are off. They include: The open-source OpenClaw offers the same pattern on hardware the user owns.
  • Falling unit cost. Epoch AI (2025) estimates that the price of reaching a fixed capability level fell between 9x and 900x per year, depending on the benchmark. For GPT-4-level performance on GPQA Diamond, the fall was about 40x per year. The authors caution that the fastest declines are recent and may not persist. Unit Economics works through what this means for an agent that wakes many times a day.

Most product claims here are company announcements, not audited measurements.

The structure follows the system from the inside out. This part defines the object and traces its lineage. Then come architecture, state and memory, capabilities and proactivity, evaluation, risks and safety, scaling and cost, infrastructure and the state of practice.

Companion books cover adjacent ground in depth: Agent Evaluation, Personal Health Agents, Recursive Self-Improvement and RL Environments.

What an Always-On, Long-Horizon Agent Is

An always-on, long-horizon agent has five parts. It has a persistent goal that outlives any one conversation, and durable state that it writes and later reads. Wake triggers start work without a human prompt. It has its own compute on which to act. An approval boundary separates what it may do alone from what needs a human.

Remove any one part and the system collapses into something older:

  • No triggers: a chat assistant.
  • No durable state: a cron job that calls a model.
  • No own compute: a system that can only advise.
  • No approval boundary: an unsupervised script with an LLM inside.

The Five Parts

Each of the five parts of an always-on agent answers one operational question. The goal says what the agent is for. State says what it remembers. Triggers say when it runs. Compute says where and how it acts. The approval boundary says what it may do without asking.

  • Persistent goal. A standing instruction such as "keep my inbox triaged and flag anything that needs a decision", or a project such as "get this repository's test suite green". Unlike a prompt, it stays in force after the agent acts.
  • Durable state. Notes, task ledgers, memories, credentials and logs stored outside the model's context window. The survey by Ding et al. (2026) makes persistence, not continuous execution, the defining property of an always-on agent. Future behavior depends on state accumulated in earlier interactions. What State an Always-On Agent Holds develops this.
  • Wake triggers. Clock schedules, external events such as a new email or a webhook, periodic polling ("heartbeat") and follow-ups the agent schedules for itself. OpenClaw's automation documentation describes a scheduler that persists jobs and wakes the agent at the set time. Options let it respect quiet hours and stay silent when nothing needs attention. The Wake–Observe–Decide–Act–Report Loop covers trigger design.
  • Its own compute. A sandbox, virtual machine or browser in which the agent runs code and operates software. Codex gave each task its own sandbox. OpenAI's dots and Claude Duet are described as running on their own cloud computer or virtual machine, so work continues after the user closes the laptop. See The Agent's Own Computer.
  • Approval boundary. A policy for which actions run automatically, which wait for a human, and which are forbidden. Gemini Spark asks before spending money or sending email. Claude Duet is reported to ask before sending messages, paying, signing or deleting. The Permission Layer treats this in detail.

Two Separate Axes: Task Horizon and Agent Lifetime

"Long-running" mixes two quantities that should be kept apart: task horizon and agent lifetime. Task horizon is how long a single task takes, usually measured as the time a skilled human would need. This is what METR measures. Agent lifetime is how long the agent persists, with its goal and state, across many tasks and wakes.

A cron job that calls a model every morning for two years has a lifetime of years and a horizon of seconds. A coding agent that works for a full day on one feature and is then discarded has a long horizon and a lifetime of one task.

Example systems placed on two axes: task horizon on the horizontal axis and agent lifetime on the vertical axis.
Fig. Task horizon (horizontal, log scale) and agent lifetime (vertical) are independent. Bars show the range a system's tasks span. Positions are approximate and based on the cited descriptions; the METR point is a human-time measure of task difficulty, not the agent's wall-clock run time. Always-on, long-horizon agents aim for the shaded upper-right region.

The distinction matters for design and evaluation. Horizon is limited by per-step reliability and by carrying state across context windows (Time Horizon and Reliability). Lifetime is limited by different things:

  • memory that drifts or gets poisoned;
  • triggers that fire too often;
  • credentials that expire;
  • users who stop trusting the agent.

A high METR horizon says little about whether an agent will still behave sensibly in its third month. Most benchmarks test one axis at a time. That is why longitudinal evaluation gets its own section.

Long horizons inside a single task already need durable state. In Anthropic's account of harnesses for long-running agents (Young, November 2025), a project spans many context windows.

  • First session. It writes an initialization script, a progress file and a feature list. In one example the list held over 200 features, all marked failing.
  • Each later session. It reads the progress file and git history, advances one feature and leaves the repository clean.

The two axes therefore meet. A task long enough to span sessions is a small always-on agent with a lifetime of days.

Model, Harness and Customization

An always-on agent's behavior comes from three layers: model, harness and customization. Most of the engineering in this book sits in the middle one.

  • Model. It supplies reasoning, tool-call competence and per-step reliability.
  • Harness. This is the code around the model. It supplies the loop, triggers, sandbox, memory store, permission gate and reporting channel.
  • Customization. It supplies the user's standing orders, connected accounts, preferences and learned memories.

The same model behaves differently in different harnesses, and the same harness differently for two users.

Three layers of an always-on agent: customization on top, harness in the middle, model at the bottom, each with what it contributes and what fails without it. LAYER CONTRIBUTES FAILS WITHOUT IT Customization per user, changes daily standing orders, connected accounts, preferences, learned memories, approval settings generic, noisy output; wrong things flagged Harness per product, changes weekly wake loop and triggers, sandbox or VM, tools and connectors, memory store, permission gate, reporting channel, monitors and kill switch no persistence, no wake-ups, no safe way to act Model per release, changes monthly reasoning, tool-call accuracy, per-step reliability, computer use, resistance to injected instructions errors compound over long tasks
Fig. The three layers of an always-on agent, what each contributes and the typical failure when it is weak. The harness is highlighted because it holds most of the always-on machinery. The rates of change are indicative.

The layers change at different speeds. A model swap can shift behavior across every agent at once, so regression testing across model swaps is a standing need. Customization changes daily. It is where many user-visible errors arise, from a stale preference to a memory planted by a malicious email (A Standing Attack Surface).

Deeper A working test for "always-on"

A compact way to state the definition is as a tuple \( A = (G, S, T, C, P) \). Here \( G \) is the persistent goal, \( S \) the durable state and \( T \) the set of wake triggers. \( C \) is the compute and tool surface. \( P \) is the approval policy, which maps each candidate action to auto, ask or deny.

Each wake \( t \in T \) runs one pass of the loop: read \( S \), observe, decide, propose actions, filter them through \( P \), act on \( C \), and write back to \( S \).

Three checks separate an always-on agent from look-alikes:

  • Unprompted start. At least one trigger in \( T \) fires without a human message. A chat assistant fails this check.
  • State that is read. Some decision in wake \( k \) depends on state written in an earlier wake \( j < k \). A scheduled prompt with no memory fails this check. State that is written but never read changes nothing.
  • Bounded autonomy. \( P \) is explicit and enforced outside the model, so that a model error or an injected instruction cannot move an action from ask to auto. A raw script with model calls fails this check.

Ding et al. (2026) stress a further obligation: provenance and audit records for state. These let contaminated state be traced, repaired or rolled back (Governing State).

Lineage

Always-on agents descend from four threads of earlier work: clock schedulers, software-agent research, LLM agents and recent work on task horizon.

  • Schedulers. Operating-system schedulers and daemons that run work on a clock.
  • Software agents. Research on rational, proactive and mixed-initiative agents.
  • LLM agents. Language-model agents that act, remember and reflect.
  • Horizon work. Since 2025, work that measures and extends how long a model can work alone.

The figure below places the milestones on one timeline. The newest thread, persistent personal agents in consumer and enterprise products, combines all four.

Four lanes of always-on agent lineage from 1979 to 2026.
Fig. Lineage of always-on, long-horizon agents. The time axis is compressed before 2022. Dates are first public release or publication.

Before LLMs: Schedulers, Rational Agents and Proactive Assistants

The plumbing of waking up is fifty years old. Cron began as Brian Kernighan's scheduler in Version 7 Unix. A multi-user version entered service at Purdue in late 1979. Paul Vixie's 1987 implementation, Vixie cron, later became the common one.

Cron contributes the trigger model and its familiar failure modes: jobs that pile up, run twice or fail silently. Fleet scheduling revisits these at the scale of millions of agents.

The agent side begins with the belief–desire–intention (BDI) model. Rao and Georgeff (1995) described agents that hold beliefs about the world, desires they might pursue and intentions they have committed to. Such agents reconsider those commitments as events arrive. A standing goal and task ledger are BDI intentions in modern form. When to drop a commitment is still the question of when to abandon a stale task.

Horvitz (1999) set out the principles of mixed-initiative interfaces, built around a scheduling assistant on top of Outlook. The system acts only when the expected utility of acting exceeds that of not acting, given its estimate of the user's goal. A threshold probability decides between acting, asking and staying quiet.

The paper also argues that the cost of an unwanted action rises when the user is focused elsewhere. Together, these ideas remain the core of proactive notification, treated in Proactivity: Deciding When to Speak.

The largest pre-LLM attempt at a personal assistant was CALO, the Cognitive Assistant that Learns and Organizes. DARPA funded it under the Personalized Assistant that Learns (PAL) program from 2003 to 2008. The project involved more than 300 researchers across 25 institutions, with SRI International as integrator. Its best-known spin-off is Siri. CALO targeted much of what 2026 products advertise, such as managing meetings and email for a user, without models that could handle open-ended text and code.

LLM Agents, 2022–2024

Language-model agents supplied the missing general-purpose decision maker. Within two years the field had working versions of acting, remembering and persisting. Each of the following papers contributed one piece of the always-on stack:

  • Yao et al. (2022) introduced ReAct, which interleaves reasoning traces with tool calls. It remains the inner loop of most agents.
  • Park et al. (2023) built Generative Agents: 25 simulated characters. Each has a natural-language memory stream, periodic reflections that summarize it, and retrieval that feeds planning. It is the first widely cited architecture whose behavior depends on accumulated experience.
  • Packer et al. (2023) proposed MemGPT, which treats the context window like main memory. The model moves information to and from external storage itself, much as an operating system pages memory.
  • Lu et al. (2024) argued in Proactive Agent that agents should anticipate needs rather than wait for instructions. They built ProactiveBench (6,790 events) from real user activity and trained a reward model on human accept/reject labels. A fine-tuned model reached an F1 of 66.47% at offering help (F1 = the harmonic mean of precision and recall).

Measuring and Extending the Horizon, 2025–2026

In 2025 the question changed from whether agents could act to how long they could act alone. METR's time-horizon metric became the common yardstick.

  • Original paper. Kwa et al. (2025) fit a logistic curve of success against human task time and reported the seven-month doubling.
  • Revised suite. Time Horizon 1.1 expanded the suite from 170 to 228 tasks. Of these, 31 tasks are estimated at eight hours or more. Evaluation moved to the open-source Inspect framework.
  • Saturation. By May 2026 METR reported that the most capable agents had essentially saturated this suite. On its tasks of eight hours or more, at least 16% of successful runs were illegitimate on review.

On the engineering side, Codex's per-task sandboxes and Anthropic's progress-file harness, both described above, showed how to stretch one task across many context windows. Both keep state in files and commits. Keeping the Right State in Context treats these methods.

Persistent Personal Agents, 2025–2026

Products moved from scheduled prompts to persistent agents in under two years. ChatGPT Tasks (January 2025) ran a prompt at a set time. It did not run continuous background searches or make purchases.

OpenClaw is an open-source assistant that runs on the user's own machine. It connects to messaging platforms such as WhatsApp, Telegram, Slack and Discord through a local gateway. It keeps state, memory and credentials on the user's hardware. Its repository showed about 395,000 GitHub stars when checked in late November 2026.

By the second half of 2026 the large vendors had shipped hosted equivalents:

  • Gemini Spark (Google, May 2026) runs in the cloud and keeps working when the user's laptop is closed. It accepts recurring tasks and triggers. It is designed to ask before high-stakes actions such as spending money or sending email.
  • dots (OpenAI, September 2026) each work from their own cloud computer. When no task is assigned, they do what OpenAI calls proactive research, with read-only access to the owner's apps. Actions that touch the user's accounts or share information pass an automated review. A monitor can pause or stop an agent.
  • Claude Duet (Anthropic, October 2026, research preview) prepares a morning briefing, monitors connected apps, and runs on its own virtual machine and browser.

These descriptions come from launch coverage, and details may change as previews widen. The 2026 Landscape compares the products in detail.

A Taxonomy of Always-On Agents

Always-on agents differ along five design dimensions: trigger model, state model, action surface, approval model and where they run. These choices are largely independent.

  • Trigger model: what wakes them.
  • State model: what they remember.
  • Action surface: what they can touch.
  • Approval model: what they may do alone.
  • Where they run: whose machine hosts them.

Most of the trade-offs in the rest of the book are trade-offs along one of them. The first table lists the common values of each dimension; the second places representative systems on them.

DimensionCommon valuesMain trade-offCovered in
Trigger modelclock schedule; external event or webhook; periodic heartbeat poll; self-scheduled follow-up; user messageResponsiveness against cost and noise: frequent polling catches more but wastes wakes and floods contextThe loop, fleet scheduling
State modelnone (stateless prompt); files and notes; structured task ledger; vector or graph memory; learned user modelRicher state improves continuity but raises drift, poisoning and privacy riskState kinds, governance
Action surfaceread-only; API connectors and MCP tools; code sandbox; browser or GUI computer use; phone and voiceBreadth against reliability and blast radiusActing, runtime
Approval modelobserve and suggest only; ask before each action; auto within a policy, ask outside it; auto with after-the-fact audit; forbidden-action listAutonomy against user burden and riskPermission layer, controls
Where it runsuser's device or home server; vendor cloud VM or sandbox; enterprise tenant; hybridControl and privacy against availability and fleet economicsCloud, on-device

Table. Five design dimensions of an always-on agent, their common values and the trade-off each controls.

Placing real systems on these dimensions shows that the 2026 products converge on a common shape:

  • event and schedule triggers;
  • a dedicated cloud computer;
  • connector-based action;
  • an approval rule for sending, paying and deleting.

The open-source alternative differs mainly in where it runs and who holds the credentials. Product details below are taken from launch announcements and coverage; vendors change them often.

SystemTriggerStateAction surfaceApprovalRuns on
Cron job calling a modelclocknone unless scriptedwhatever the script allowsnoneany server
ChatGPT Tasks (2025)one-off or recurring scheduleconversation contextweb browsing, notifications; no purchasesimplicit: low-risk actions onlyvendor cloud
Codex (2025)user-assigned taskrepository in a per-task sandboxcode execution in sandboxhuman reviews the resultvendor cloud sandbox
OpenClaw (2026)messages, schedules, webhooks, periodic checkslocal files and memorymessaging channels, tools, user's credentialsset by the operator; host commands can be gated by exec approvals (details)user's own hardware
Gemini Spark (2026)recurring tasks and triggerstaught routines, account dataWorkspace apps, MCP connectionsasks before high-stakes actions such as spending or sendingvendor cloud
dots (2026)assigned goals; proactive research when idlelearned preferences, cross-channel contextown cloud computer, more than 4,000 apps via plugins, user's laptop with permissionread-only during proactive research; automated review of account-touching actions; monitor can pausededicated cloud computer
Claude Duet (2026)morning brief; monitoring of connected appsaccount context across appsown VM and browser, connectorsasks before sending, paying, signing, deleting; some actions forbiddendedicated VM

Table. Representative systems on the five dimensions, from a plain scheduled job to 2026 always-on agents. Entries summarize the cited announcements and coverage, not independent testing.

The approval model is converging on a shared vocabulary:

  • Free: read and draft.
  • Ask first: anything that sends, spends, signs or deletes.
  • Forbidden: a short list of irreversible actions.

Where the agent runs is where products differ most. A dedicated cloud computer gives availability and central monitoring. A local install gives control over data and credentials but leaves security to the user (Controls That Work Together).

Classifying a new system

Five questions place any always-on agent: what wakes it, what it remembers between wakes, what it can touch, what it may do without asking, and whose machine it runs on. The answers predict most of its failure modes before any testing:

  • frequent triggers predict noise and cost;
  • rich state predicts drift and poisoning;
  • broad action surfaces predict a large blast radius;
  • permissive approval predicts incidents.

The Wake–Observe–Decide–Act–Report Loop

An always-on agent is not a process that thinks continuously. It is a short loop that runs only when something wakes it. Most passes should end at the decide stage, cheaply and without a message.

Each pass has five stages:

  1. Wake. A trigger wakes the agent and is admitted by a router.
  2. Observe. The agent observes what changed since its last pass.
  3. Decide. It decides whether to do nothing, act, ask, or schedule a follow-up.
  4. Act. It acts through tools that sit behind a permission layer.
  5. Report. It reports, which includes staying silent, recording the outcome and setting the next wake.
The wake, observe, decide, act, report loop with four trigger types feeding a wake router. TRIGGERS Schedule (cron) Event / webhook Heartbeat poll Follow-up timer Wake router dedupe · coalesce admit · one pass in flight per key Observe read deltas since last pass Decide skip · act · ask · defer Act tools behind the gate Report notify or stay silent nothing new: end silently act record outcome, set next wake, sleep
Fig. The core loop of an always-on agent. Four kinds of trigger feed a wake router that merges duplicates and keeps one pass in flight per agent and scope. The dashed path is the common case: the agent observes, finds nothing worth acting on, and ends the pass without a message. Report records the outcome and sets the next wake, which is itself a trigger.

Four Kinds of Trigger

Triggers differ in who knows that something changed. That difference determines their cost, latency and failure modes. A user message is a fifth, interactive trigger beside the four below.

  • A schedule fires at a known time whether or not anything changed.
  • An event (a webhook, a push notification, a new message) fires only when an upstream system says something changed.
  • A heartbeat poll wakes the agent at a fixed cadence to look for anything worth attention.
  • A self-scheduled follow-up is a timer the agent set on a previous pass ("check whether the vendor replied by Thursday").

OpenClaw, the open-source personal-agent harness that powers Microsoft's Scout (Microsoft 2026a), shows these converging. Its scheduler, Automations, lists inbound webhooks, Gmail Pub/Sub, an IMAP trigger and MCP events beside plain schedules (OpenClaw Automations).

Its heartbeat is now an ordinary job. A fresh install creates a disabled "Proactive check" that runs every 30 minutes once enabled. Timezone-aware activeHours and an idleOnly option limit when it runs (OpenClaw heartbeat migration; OpenClaw cron vs heartbeat).

TriggerWho detects changeStrengthTypical failureNatural dedupe key
ScheduleNobody; time doesPredictable, easy to reason aboutRuns when nothing changed; overlaps a still-running passJob id + scheduled time
Event / webhookUpstream systemLow latency, no wasted passesDuplicate, late or missing deliveries; burstsUpstream event or object id
Heartbeat pollThe agent, by lookingCovers sources with no eventsCost and context growth from empty passesAgent + scope + window
Follow-up timerThe agent's past selfKeeps commitments across daysOrphaned timers after the plan changesCommitment id
User messageThe userHighest intent signalArrives mid-pass; races with background workMessage id

Table. Trigger types for an always-on agent. Most production agents combine events for sources that emit them, a slow heartbeat as a safety net for sources that do not, and follow-up timers for commitments.

Coalescing and Deduplicating Wake-Ups

Without a router, one change produces several passes. A webhook is redelivered, ten emails arrive in a minute, or a heartbeat fires mid-pass. Each pass then pays the full model cost to rediscover the same state. The router's job is to turn many wake requests into at most one pass per agent and scope, carrying the merged reasons.

  • Deduplicate by identity. Push channels generally deliver at least once. The A2A v1.0 guidance tells webhook receivers to verify task ids and handle duplicate deliveries (Ghumare 2026). Key the wake by the upstream id and drop repeats.
  • Debounce and merge. Hold a wake briefly and fold later requests for the same scope into it. A community reference checked against OpenClaw v2026.10.4 describes event wakes held at least 30 seconds apart per agent. It also describes a flood guard that trips after five starts in 60 seconds (clawdocs).
  • Choose an overlap policy. Temporal Schedules offer six policies: skip, buffer one, buffer all, cancel the running run, terminate it, or allow overlap. The default is Skip. BufferOne suits "look for anything new" jobs, because one later pass sees everything. The same community reference reports that OpenClaw skips polls while the agent is busy but retries wakes that carry queued events.

The last distinction matters. A poll carries only "time passed" and can be dropped safely. An event wake carries a payload that is lost if dropped. Wake storms and jitter across a fleet are covered in Fleet Scheduling.

Deeper A minimal wake router: dedupe, debounce, one pass in flight

The sketch below keys wakes by (agent, scope). It drops redelivered events by id and merges requests that arrive within a debounce window. It also defers a due wake if a pass for the same key is still running. It omits persistence. In production the pending table lives in the same durable store as the agent's state so that a crash does not lose an event wake.

import heapq
from dataclasses import dataclass, field

@dataclass
class Wake:
    agent: str
    scope: str            # e.g. "inbox", "calendar", "repo:acme/api"
    due: float            # earliest time the pass may start
    reasons: list = field(default_factory=list)
    seen_ids: set = field(default_factory=set)

class WakeRouter:
    """Merge wake requests per (agent, scope); at most one pass in flight per key."""
    def __init__(self, debounce=30.0):
        self.debounce, self.pending, self.running, self.heap = debounce, {}, set(), []

    def submit(self, agent, scope, now, reason, event_key=None):
        key = (agent, scope)
        w = self.pending.get(key)
        if w and event_key is not None and event_key in w.seen_ids:
            return "duplicate"                       # redelivered event
        if w is None:
            w = self.pending[key] = Wake(agent, scope, now + self.debounce)
            heapq.heappush(self.heap, (w.due, key))
        w.reasons.append(reason)
        if event_key is not None:
            w.seen_ids.add(event_key)
        return "merged" if len(w.reasons) > 1 else "scheduled"

    def due(self, now):
        out, later = [], []
        while self.heap and self.heap[0][0] <= now:
            _, key = heapq.heappop(self.heap)
            if key in self.running:                  # pass in flight: retry later
                later.append((now + self.debounce, key)); continue
            w = self.pending.pop(key, None)
            if w:
                self.running.add(key); out.append(w)
        for item in later:
            heapq.heappush(self.heap, item)
        return out

    def done(self, agent, scope):
        self.running.discard((agent, scope))

r = WakeRouter(debounce=30)
print(r.submit("a1", "inbox", 0, "webhook", event_key="m-17"))
print(r.submit("a1", "inbox", 4, "webhook", event_key="m-17"))
print(r.submit("a1", "inbox", 9, "webhook", event_key="m-18"))
print(r.submit("a1", "inbox", 12, "heartbeat"))
print([(w.scope, w.reasons) for w in r.due(31)])

Running it prints:

scheduled
duplicate
merged
merged
[('inbox', ['webhook', 'webhook', 'heartbeat'])]

Four wake requests, one of them a redelivery, become a single pass that knows it was woken by two distinct emails and a heartbeat. Cross-window deduplication needs a persisted record of processed event ids with a retention period.

Heartbeat Pollution

Heartbeat pollution is the slow degradation that happens when periodic checks run as turns inside the agent's main conversation. Every empty pass adds a prompt and a "nothing to report" reply. The context fills with noise, and the cost of each later pass grows with it.

A community reference notes that each OpenClaw heartbeat tick is by default one turn in the main session. It describes an isolatedSession option that runs each tick in a fresh session (clawdocs).

Three mitigations compose.

  • Isolate the check. Run polls in a fresh or bounded context and pass a short result into the main session only when there is something to say.
  • Make silence a first-class result. In OpenClaw a check with nothing to report returns NO_REPLY. Delivery is suppressed, and no extra model call composes a final answer. A check whose scratch checklist is explicitly empty is skipped (OpenClaw heartbeat migration).
  • Check cheaply first. Gallagher argues for deterministic checks first (repo dirty, job failed, new customer email) and a model call only on a signal. While merely monitoring, the post suggests 60–120 minute intervals between checks. Cascades are covered in Model Routing.

Pollution also has a user-facing form. An agent that reports every pass trains its user to ignore it. OpenClaw removed an experiment that delivered inferred follow-ups through heartbeats in v2026.8.1 (OpenClaw cron vs heartbeat). Proactivity covers when to speak.

The Agent's Own Computer

An agent that acts while its user is away needs compute independent of the user's device. That compute has two parts: a control plane for schedules and state, and a workspace for code and a browser.

Microsoft describes Autopilot, formerly Scout, as having its own identity, memory, computer and workspace in the customer's tenant (Microsoft 2026b). Google describes Gemini Spark as working while the user's laptop is closed (Google 2026).

Runtime layers: a durable control plane above a sandboxed workspace, with credentials held by a proxy outside the sandbox. DURABLE CONTROL PLANE Schedules and triggers Event history / checkpoints Ledger and memory store SANDBOX (files + network isolated) Shell and files code, scratch, artifacts Connector clients MCP and APIs Browser GUI computer use Credential proxy scoped tokens, domain allow-list, policy check before attaching auth External services mail, calendar, git, web activities: start · resume · snapshot · results
Fig. The agent's own computer. The control plane records schedules, an event history and the agent's ledger, and drives the sandbox through recorded activities. Inside the sandbox, structured connectors are preferred and the browser is the fallback. Secrets stay with a proxy outside the sandbox that checks each request against policy before attaching credentials, a split described for Claude Code's cloud sessions (Dworken and Weller-Davies 2025).

Sandbox, Browser and Connectors

The sandbox is where actions physically happen, and its isolation lets the permission layer ask fewer questions. Anthropic's account of sandboxing Claude Code argues that filesystem and network isolation are only useful together (Dworken and Weller-Davies 2025). Without network isolation, a compromised agent could exfiltrate SSH keys. Without filesystem isolation, it could tamper with the system and escape to the network.

A proxy outside the sandbox enforces domain rules and asks before reaching new domains. In internal use, sandboxing cut permission prompts by 84%.

Inside the sandbox an agent reaches the world through connectors, which give typed, auditable operations, or through GUI computer use, which drives a browser as a person would. The Model Context Protocol specification (revision 2026-07-28) standardizes connectors as JSON-RPC 2.0 servers. These servers offer tools, resources and prompts to clients inside a host application. Zhang et al. (2025) compare API and GUI agents and propose criteria for choosing or combining them.

For an unattended agent, connectors come first, because each call can be classified as read or write before it runs. The browser is the fallback. Consolidated tools that return high-signal, token-efficient results beat thin wrappers over existing endpoints (Aizawa 2025). Reliability per surface is in Acting in the World, and microVM isolation (lightweight virtual machines per workload) in Sandbox Compute.

Durable Execution

An agent that sends an email, waits three days for a reply and then updates a spreadsheet must survive restarts in between. The control plane therefore records progress durably.

In Temporal, a workflow's event history records timers, activities and signals. After a crash, the engine replays the workflow code against that history to rebuild its state. The replay must yield the same decisions. Side effects, LLM calls included, run in activities whose recorded results are reused on replay. Workflows can run for years.

LangGraph offers a lighter form: checkpoints keyed by thread_id, stored in Postgres in production, with a retention policy because they accumulate (LangGraph).

The cost of durability is that steps can run more than once. Temporal retries activities by default, so its engineers recommend idempotent activities (safe to run twice with the same effect as once). When no natural key exists, they fall back to workflow run id plus activity id as the key (Tenzer and Smith 2024).

For an agent that sends messages and moves money, this is the central runtime problem. It is treated with idempotency keys and the outbox pattern in Durable Execution.

Long-Running Sessions vs Stateless Wakes

There are two ways to give an agent continuity across wakes. One keeps a long-running session whose context carries forward. The other starts each wake fresh and has the agent reconstruct its situation from durable state. The choice decides where memory lives and what breaks first.

  • Long-running session. The context window is working memory and each wake appends to it. Continuity is cheap to build, but compaction becomes mandatory and background noise accumulates.
  • Stateless wake. Each pass starts clean and reads a structured summary. In Anthropic's harness for long-running coding agents, every session first reads the git log and a progress file. It then picks the highest-priority unfinished feature and runs a basic end-to-end test before new work (Young 2025). Whatever the agent fails to write down is lost.

Most production agents are hybrids. An interactive main session runs beside isolated background passes, which write into a ledger the main session reads. OpenClaw's check targets (a shared named session, an isolated fresh context, or a detached run with bounded context) are one version of this split (OpenClaw heartbeat migration). See also Keeping the Right State in Context.

The Permission Layer

The permission layer decides which of the agent's intended actions run automatically, which wait for a human, and which never run at all. It works only if enforced in the runtime that executes tool calls. A prompt-injected or confused agent then cannot talk its way past it.

The useful design question is not "how autonomous is the agent" but "for each class of action, what is the gate". The classes are ordered by reversibility and blast radius (how much damage a mistake can do).

Five permission tiers, from read-only to never, with example actions and the gate applied to each. ACTION CLASS (examples) GATE blast radius grows Read mail, calendar, files; summarize; watch Draft a reply; propose a slot; prepare a change Reversible, standing-order actions (label, file) Send, accept, book, spend within a budget Delete data, change credentials, exceed limits Auto read-only proactive mode Auto, held as draft human sends or discards Act, then report logged, undoable, in the digest Ask first batched approval, with expiry Never hard deny in the runtime
Fig. A tiered permission model. Each class of action gets its own gate; the ordering follows reversibility and blast radius rather than how often the action occurs. Tier boundaries are set per user and per connector, and the never tier is enforced by the runtime regardless of what the model requests.

Read-Only, Ask-First and Never-Do

Three tiers carry most of the safety value, and a new agent should start in the first.

  • Read-only proactive mode. The agent watches, summarizes and drafts but sends nothing, keeping mistakes cheap.
  • Ask-first. This tier covers actions that are hard to reverse or speak for the user. The agent prepares the action completely and waits.
  • Never-do list. It names actions the runtime denies whatever the model asks, such as changing credentials or exceeding a spending cap.

The middle tiers make the agent useful rather than merely safe. Drafts let the agent do the work of a write action while the human keeps the final click. "Act, then report" covers reversible actions under an explicit standing order, logged and undoable.

Promoting an action class should be an explicit, logged user decision, ideally backed by a run of unedited approvals. Connector metadata is only a hint: the MCP specification treats tool annotations as untrusted unless the server is trusted. The runtime's own classification of each tool and argument pattern binds.

Approval UX and Batching

An approval gate that asks too often fails in the same way as no gate: the human stops reading. Anthropic names this "approval fatigue". Its answer pairs sandboxing with confirmation only for genuinely new risks, such as an unfamiliar network domain (Dworken and Weller-Davies 2025). For an always-on agent three further techniques follow.

  • Batch. Collect pending approvals into one review moment, such as a morning digest, while independent work continues.
  • Make the pending action concrete and durable. The request carries the exact action (recipient, text, amount) and its evidence. The paused step is persisted so it can resume days later. A2A models this pause with INPUT_REQUIRED and AUTH_REQUIRED task states (Ghumare 2026).
  • Expire. An approval carries a validity window and is re-requested if the object changed, so Tuesday's approval does not authorize Friday's action.

Delegated Credentials

Every action an always-on agent takes runs under some credential, and the architecture should make clear whose. In delegated access the agent acts on behalf of a user with rights that user granted. In autonomous access the agent uses rights granted to its own identity. Microsoft Entra Agent ID supports both for a dedicated agent identity. Where systems require a user identity, it adds an optional one-to-one agent user account (Microsoft Entra).

Whichever model applies, published designs converge on keeping raw secrets out of the agent's reach. Claude Code's cloud sessions keep git credentials outside the sandbox. A proxy checks the scoped credential and the operation, such as the push branch, before attaching the token (Dworken and Weller-Davies 2025). Microsoft describes Scout's credentials as scoped to the task and redacted from logs (Microsoft 2026a).

The pattern is short-lived, narrowly scoped tokens minted per task by a broker the agent cannot inspect. Storage and refresh at scale are in Cloud Architecture.

How Products Draw the Line

Vendors document their permission models unevenly, but the published descriptions already show the tiers above in use. The table below lists only what each vendor's own pages state.

SystemRuns whereIdentity and credentialsGate described
Gemini Spark (Google)Cloud, continues while the user's devices are offUser's connected Workspace apps, chosen by the userDesigned to ask first before high-stakes actions such as spending money or sending email
Scout / Autopilot (Microsoft)Cloud, desktop and web; Scout powered by OpenClawOwn Entra identity per agent; task-scoped credentials redacted from logsSensitive actions can require human sign-off; data-loss policies checked before anything is sent or written
Claude Code (Anthropic)Local OS sandbox or isolated cloud sandboxSecrets held outside the sandbox by a proxyFilesystem and network isolation; confirmation for new network domains
OpenClaw (open source)User's own host or paired nodesConfigured by the operator; state, memory and credentials stay on the user's hardwareExec approvals, when the operator configures them, gate host commands: deny, allowlist, ask on allowlist miss, auto (a reviewer allows, denies or escalates) or full; unanswered prompts fall back to deny. Checks respect active hours and stay silent when nothing changed

Table. Permission-related design choices as stated in vendor documentation and announcements (Google 2026; Microsoft 2026a; Dworken and Weller-Davies 2025; OpenClaw exec approvals; OpenClaw automation). Absence of a gate in this table means the source does not describe one, not that none exists. A broader product comparison is in The 2026 Landscape.

Sub-Agents, Coworker Identities and Delegation

A single loop eventually becomes several. The agent delegates to sub-agents, gains its own identity inside an organization, and hands tasks to humans and other agents. Each move creates a boundary where authority must be checked.

One architectural rule keeps this manageable. The long-lived orchestrator owns the standing goal, the ledger and the permissions. Workers are short-lived, narrowly scoped and report back.

Orchestrator and Workers

The orchestrator–worker pattern splits a task between a lead agent that plans and synthesizes and worker agents that each explore one part with a clean context. Anthropic's account of its multi-agent research system is the most detailed public description (Hadfield et al. 2025).

  • The lead agent starts 3–5 subagents in parallel, each calling tools in parallel, cutting research time by up to 90% on complex queries.
  • Claude Opus 4 leading Claude Sonnet 4 subagents outperformed single-agent Claude Opus 4 by 90.2% on an internal research evaluation.
  • The price is tokens: agents use about 4× the tokens of chat, and multi-agent systems about 15×. Tasks with shared context or few parallel subtasks, including most coding, fit poorly.

For always-on agents the pattern maps onto scope. The orchestrator holds the standing orders and commitment ledger. A wake about one scope (the inbox, a pull request) spawns a worker with only that scope's tools and the lowest tier the task needs. Google lists custom sub-agents among Gemini Spark's planned features (Google 2026).

Agents as Accounts

An agent that works inside an organization for months becomes a coworker with an account. The account has a name, a role, a sponsor, permissions, an audit trail and a lifecycle. Microsoft frames Autopilot this way, with users assigning it a name, a role and a goal (Microsoft 2026b). Entra Agent ID records the user who created an agent as its sponsor (Microsoft Entra).

Accounts bring access reviews, revocation without touching the sponsoring human, and offboarding when the sponsor leaves. They also raise open questions, such as whether memory transfers to a new sponsor. Disclosure is discussed in Privacy, Consent and Third Parties.

Handoffs to Humans and Other Agents

Handoffs are where an agent's work leaves its own runtime. The work goes to a human who must approve or supply information, or to another agent with a capability the first lacks.

Across organizations a handoff needs a protocol, and Agent2Agent (A2A) fills that role. Google released it in April 2025 and gave it to the Linux Foundation that June. A2A v1.0 froze in March 2026. In August 2026 the project joined MCP in the Agentic AI Foundation (Ghumare 2026). The Linux Foundation reported over 150 supporting organizations after one year and frames A2A as agent-to-agent, complementing MCP's agent-to-tool (Linux Foundation 2026).

  • Discovery. An agent publishes a JSON Agent Card at /.well-known/agent-card.json describing skills, endpoints and authentication.
  • Tasks with interrupts. Tasks can pause in INPUT_REQUIRED or AUTH_REQUIRED, the protocol form of an ask-first gate.
  • Asynchronous completion. Progress can be polled, streamed or pushed to a webhook. The default call blocks until a terminal or interrupted state and can hit gateway timeouts. Long delegations should therefore return immediately.

Every handoff is also an attack surface, because the receiving agent acts on objects it did not create. Liu et al. (2026) evaluated protocol attacks across A2A, ANP and BCS in long multi-agent tasks run on OpenClaw.

  • Local attack success was often at or above 90%. Conversion into a downstream consequence ranged from 7.1% to 100%, so local exploitability alone misjudges risk.
  • On finance tasks, a guard checked an exchanged object's authority at consequential handoffs. It cut average attack success from 86.1% to 53.8%, with a reported trade-off in task completion.

The lesson is to check authority at the handoff into a consequential action. Injection is treated in A Standing Attack Surface, and how controls combine in Controls That Work Together.

What State an Always-On Agent Holds

An always-on agent is defined less by its model than by the state it carries between wakes. That state covers what it has seen, what it believes about its owner, what it knows how to do, what it is in the middle of, and what it has promised.

A chat assistant that forgets only disappoints. An agent that acts each morning on yesterday's state turns every stale item into a wrong action. This section sorts that state into kinds and surveys the systems built to hold it.

Kinds of State

Agent state splits into eight kinds. They differ in who writes them, how long they should live and what goes wrong when they are stale. The cognitive-science labels (episodic, semantic, procedural) cover only three. The rest are specific to agents that act over time, and memory papers most often leave them out.

The survey by Ding et al. (2026) adds a useful three-layer view:

  • Object state. Traces, facts, skills, ledgers and triggers.
  • Governance envelope. Metadata that travels with each object: authority, scope, provenance, retention and rollback handles (see Governing State).
  • External commitments. Effects such as sent messages that leave the agent's control. They must stay traceable to the state that authorized them.
KindExampleWritten byShould liveFailure when wrong
Working contextThe tokens of the current wake: trigger payload, recent turns, tool resultsHarness, per wakeOne wake or one sessionContext rot; stale tool output drowns the goal (next section)
EpisodicTranscripts and event logs of past wakesHarness (append-only)Long; searchable, rarely loaded wholeMissing history makes the agent repeat work or contradict itself
Semantic / user model"Prefers briefs at 07:30", "manager is A. Rivera"Agent, userUntil superseded; needs validity timesOutdated preference acted on silently for weeks
ProceduralSkills, workflows, playbooks, "how this inbox is triaged"Agent, developerLong; versionedA wrong lesson replayed on every future task
Task ledgerOpen tasks, their status, next check time, progress notesAgentUntil the task closesDropped or duplicated work across wakes
Commitments"Told Dana I would confirm by Friday"; scheduled follow-upsAgent (from its own actions)Until fulfilled or releasedBroken promises made in the owner's name
TriggersWatch rules, schedules, self-set remindersAgent, userUntil cancelledOrphaned wake-ups that run long after their purpose ended
DelegationsOAuth grants and the scopes they carry, held as handles to a vaultUser, platformUntil revoked or expiredOver-broad or leaked access; never store raw secrets in memory

Table. Eight kinds of state an always-on agent holds. The last four rows separate an always-on agent from a chatbot with memory.

Generic memory layers model neither commitments nor delegations. A commitment is an obligation created by the agent's own action. It therefore needs a due time and a closing event, and an overdue one should itself trigger a wake (the wake loop). Delegations belong in a vault outside the model's reach. Memory holds only a reference and its scope (The Permission Layer).

Where an always-on agent's state lives: a small per-wake context window on top, agent-owned stores in the middle, and credentials and world systems outside the agent at the bottom. Context window (rebuilt every wake) standing orders trigger payload ledger slice retrieved notes recent turns Agent-owned stores (persist across wakes) transcripts episodic facts, prefs semantic, user skills procedural task ledger tasks, triggers commitments promises, due Outside the agent credential vault (memory holds handles, scopes) · email, calendar, repos load, retrieve write, consolidate observe
Fig. Where the state lives. Only a small slice reaches the model on any wake; the durable kinds sit in agent-owned stores, and credentials and the world stay outside the agent. Every arrow is a policy decision: what to load, what to write back and what to trust from observation.

Memory Systems

Published memory systems differ mainly on two axes. The first is representation: text blocks, vector-indexed facts, a temporal graph, linked notes or code. The second is who decides what to write: the agent through tools, a background process or an extraction pipeline. Most systems target conversational semantic and episodic memory. Procedural memory has a separate literature.

  • MemGPT (Packer et al. 2023). It framed memory as OS-style virtual memory. The model pages information between a small in-context tier and larger external stores through function calls. The project continues as Letta, which added sleep-time agents. These rewrite the primary agent's memory asynchronously during idle time.
  • Generative Agents (Park et al. 2023). It condensed a full memory stream into periodic reflections. That pattern sits behind most later consolidation steps.
  • Mem0 (Chhikara et al. 2025). It runs an extraction pass on each new exchange and retrieves similar existing memories. An LLM then chooses ADD, UPDATE, DELETE or NOOP for each candidate fact.
    • The authors, who build Mem0, report a 26% relative gain over OpenAI's memory on LoCoMo's judge metric.
    • Against full-context prompting, they report over 90% lower token cost and 91% lower p95 latency.
    • A graph variant adds about 2 points.
  • Zep (Rasmussen et al. 2025). It stores memory in Graphiti, a temporal knowledge graph with three tiers: raw episodes kept losslessly, extracted entities and relations, and community summaries.
    • Each relation records when it was true and when the system learned or retired it. A contradiction therefore closes the old fact's validity window instead of deleting it.
    • The Zep team reports 94.8% on Deep Memory Retrieval, against 93.4% for MemGPT. It also reports accuracy gains of up to 18.5% on LongMemEval.
    • Both sets of numbers are vendor-run comparisons, not independent replications.
  • A-MEM (Xu et al. 2025). It writes Zettelkasten-style linked notes and lets new notes revise old ones.
  • Procedural memory. Three systems store know-how rather than facts.
SystemRepresentationWho writesContradictionsHistory kept
MemGPT / LettaIn-context blocks plus archival and recall storesThe agent, via memory tools; sleep-time agent in LettaAgent edits the blockRecall store keeps messages
Mem0Vector-indexed facts; optional graphExtraction pipeline after each exchangeLLM chooses UPDATE or DELETEOverwritten facts are gone from the store
Zep / GraphitiTemporal graph over raw episodesIngestion pipelineOld edge invalidated with timestampsYes: past states queryable, episodes as provenance
A-MEMLinked notes with tagsAgent-driven note constructionNew notes revise linked notesPartial
File-based memory (memory tool, progress files)Plain files in a directoryThe agent, with file toolsAgent edits filesOnly if versioned (e.g. git)

Table. Representative memory systems. Whether history survives an update decides whether the store can later be audited or rolled back (Governing State).

Benchmarks are compared in Benchmarks That Probe the Pieces, but one lesson belongs here. LongMemEval (Wu et al. 2025) tests knowledge updates, temporal reasoning and abstention as well as recall. It reports about a 30% accuracy drop for commercial assistants over sustained interactions. It also finds that time-aware query expansion helps.

A store that cannot represent "this used to be true" fails exactly the questions a months-old agent must answer.

Keeping the Right State in Context

Durable stores help only if the right slice reaches the model on each wake. Longer windows do not remove the problem, because accuracy degrades as the window fills. Keeping the right state in context is an active, budgeted process: clearing, compacting, writing notes and retrieving just in time. For an always-on agent it is also a choice between one long session and many freshly assembled wakes.

Context Rot

Context rot is the decline in a model's use of its context as input grows, well before the advertised limit. It is why an agent cannot append every wake's events to one growing prompt.

  • Reliability falls with length. Hong, Troynikov and Huber (2025) tested 18 models on deliberately simple tasks and found reliability falling with input length. It fell faster when the question and the relevant text were less similar, and when distractors were present. On LongMemEval, focused prompts of about 300 tokens beat full prompts of about 113k tokens for every model family.
  • Context is a budget. Rajasekaran et al. (2025) describe context as an attention budget that every token draws down. They frame the task as finding the smallest set of high-signal tokens that gets the job done.
  • Prefill dominates cost. Ji (2025) reports that agent contexts at Manus run about 100 input tokens per output token. Prefill therefore dominates cost, and the prompt prefix must stay stable to keep cache hits (cache economics are in Model Routing and Tiered Wake-Ups).

A useful budget for one wake is

\[ C_{\text{wake}} = c_{\text{orders}} + c_{\text{trigger}} + c_{\text{ledger}} + k\,\bar{m} + c_{\text{work}} \;\le\; B_{\text{eff}} \ll B_{\text{max}}, \]

where the terms are:

  • \(c_{\text{orders}}\): the standing instructions;
  • \(c_{\text{trigger}}\): the event that caused the wake;
  • \(c_{\text{ledger}}\): the open-task slice;
  • \(k\): the number of retrieved memories, of mean size \(\bar{m}\);
  • \(c_{\text{work}}\): the room needed for tool calls and results during the wake;
  • \(B_{\text{eff}}\): the length at which the model still uses context reliably.

\(B_{\text{eff}}\) must be measured per model and task, not read off the spec sheet.

The Context Toolbox

Six techniques recur in published guidance, and they combine. Clear what can be re-fetched and summarize what cannot. Move durable facts into files and retrieve on demand. Isolate bulky exploration in sub-agents, and restate the goal near the end of the context.

  • Context editing (clearing). Drop stale tool calls and results. Anthropic reports results from its own internal evaluations (Anthropic 2025):
    • On a multi-step agentic-search evaluation, clearing alone improved performance by 29%, and clearing plus a file-based memory tool by 39%.
    • In a 100-turn web-search evaluation, clearing cut token use by 84%. Without it, agents failed from context exhaustion.
    Manus calls the same idea restorable compression: drop a page's contents but keep its URL (Ji 2025).
  • Compaction. Near the limit, summarize and continue in a fresh window. Repeated rewriting has a known failure that Zhang et al. (2025) name context collapse: each rewrite erodes detail. A related brevity bias drops domain specifics in favor of short summaries. Their remedy is incremental, itemized updates instead of whole-context rewrites.
  • Progress files and structured notes. Write state the next session needs to a file outside the window. Anthropic's long-running coding harness shows the pattern (Young 2025):
    • An initializer session writes a feature list in JSON with every item marked failing, a progress log and a first git commit.
    • Each later session reads the log and git history, works on one feature and commits.
    • JSON was chosen because the model was less likely than with Markdown to rewrite it inappropriately.
  • Just-in-time retrieval. Keep references (paths, queries, IDs) in context and load contents only when needed.
  • Sub-agents. Run bulky exploration in a separate window. Return a condensed result, often 1,000–2,000 tokens, to the lead agent (Rajasekaran et al. 2025). Orchestration patterns are in Sub-Agents, Coworker Identities and Delegation.
  • Recitation. Rewrite a short to-do list as work proceeds, so current goals sit at the end of the context. Keep failed actions visible so they are not repeated (Ji 2025).
Context size per wake over 40 wakes under three policies: append everything, compact at a threshold, and stateless wakes with retrieval.
Fig. Three ways to carry state across 40 wakes, computed with illustrative parameters. Each wake adds 10k new tokens to a 200k window. Compaction cuts to a 20k summary at 160k. A stateless wake uses 12k fixed plus up to 8k retrieved. Appending everything fills the window on wake 19. Compaction stays under the limit but spends 16 of 40 wakes above the dashed line, an assumed threshold beyond which context rot becomes noticeable. Stateless wakes stay small but depend entirely on what was written to the stores and what retrieval finds.

Long Sessions or Fresh Wakes

An always-on agent can keep one long session that it compacts from time to time. Or it can assemble a fresh context each wake from standing orders, trigger, ledger and retrieved memories. Fresh wakes make each decision depend only on explicit, inspectable state, which governance needs. Long sessions keep nuance nobody wrote down.

In practice the two converge. A long session that compacts often is a sequence of fresh contexts built from summaries. A stateless design needs an end-of-wake write-back, which is compaction by another name.

What matters is where carried-over state lives. It can sit in a summary only the model reads, or in typed, versioned stores that the harness, the user and an auditor can also read. The second costs more engineering and makes replay, rollback and deletion possible. Durable execution of the wake itself is covered in The Agent's Own Computer.

Recent results argue for letting the model manage its own notes rather than scripting it. In Anthropic's study, a memory store raised mean reward on a continual-learning database task: Claude Opus 5 went from 0.564 to 0.828. Rules such as "record only failures" shrank the gains for the stronger models (Martin 2026). The article recommends three practices:

  • Purpose, not procedure. State what memory is for but not how to use it.
  • Small top layer. Keep the always-loaded layer small. Claude Code applies this rule by loading only the first 200 lines or 25 KB of its memory index at session start (same source).
  • Offline "dreaming". Run offline passes that correct notes.

Background consolidation follows the same idea as sleep-time compute: pre-processing context during idle time. On stateful math tasks, Lin et al. (2025) report that this needs about 5× less test-time compute at equal accuracy.

Deeper What a compaction or end-of-wake write-back must keep

A summary is lossy by design, so check the write-back against a fixed list. This list synthesizes the failure modes above; it is not a published standard.

  1. Open commitments with counterparties and due times, copied verbatim, never paraphrased.
  2. Task ledger deltas: what changed status this wake, and the evidence (test passed, reply received) for each "done".
  3. Failed attempts and why they failed, so the next wake does not retry the same path.
  4. New or changed facts with their source and the time they became true, written as itemized updates instead of a rewritten paragraph.
  5. Pending approvals and what is blocked on them.
  6. References, not contents: file paths, message IDs and URLs from which details can be re-fetched.
  7. A diff check: compare the new summary with the previous one and flag any commitment or open task that disappeared without a closing event.

Governing State

Memory that steers actions needs the controls of any system of record. Each item should say where it came from, how far it can be trusted, who may use it, when it expires and how to undo it. Without these controls, one misread forum post becomes a standing belief that shapes weeks of behavior. A request to forget also cannot be honored, because copies live on in summaries and indexes.

Why Memory Needs Governance

Background agents read far more than their owners do. Zhang et al. (2026) studied heartbeat tasks (scheduled background checks) in an OpenClaw-style agent that shared a session with user conversations. These tasks carried ordinary-looking misinformation from a monitored feed into long-term memory, with no prompt injection.

  • Strong save prompt. Misleading content was written to memory in about 91% of trials. It later influenced advice in a new session in up to 75.6% of trials.
  • Naturalistic feed. With a feed of 20 posts and context pruning, cross-session influence fell to 11–18% but did not vanish.
  • Caveat. The tests used one model family and a pre-fix agent version, so the rates are indicative.
  • Proposed fixes. Source provenance on memory entries, isolated heartbeat contexts, and extra checks before background-derived memories feed sensitive tasks.

Deliberate memory poisoning and injection attacks are treated in A Standing Attack Surface.

Six Properties of Every Item

Two 2026 surveys converge on a few properties every stored item should carry and a lifecycle every write passes through. They must be built in at write time, because provenance never recorded cannot be reconstructed.

Ding et al. (2026) assess each item on six axes:

  • Authority. What entitles it to influence an action.
  • Scope. Which user, task, tool or time window may use it.
  • Mutability. Whether it can be revised, superseded, decayed or locked.
  • Provenance. Its source, time and transformations.
  • Recoverability. Whether it and its consequences can be rolled back.
  • Actionability. Whether it is evidence, a preference, a policy, a skill or a commitment.

They add five invariants. Authority monotonicity: an item influences action only under current, unrevoked authority. Scope non-expansion: a transition may narrow scope but never silently widen it. The other three are deletion propagation, provenance preservation and rollback traceability.

Lin et al. (2026) organize memory security around the lifecycle: write, store, retrieve, execute, share, forget/rollback. They recommend authorized writes, provenance that survives summarization and principal-scoped retrieval. They also recommend versioned snapshots and proof that deleted content cannot be recovered.

The governed memory lifecycle: source, write gate, store, scoped retrieval and action in a row, with forget, rollback and audit log branching below the store. Source user, tool, web, heartbeat read Write gate authority check tag provenance Store versioned items scope, TTL, parents Retrieve scoped to principal min authority Act log which items justified the action Forget cascade to derived Rollback restore snapshot Audit log every op, why reject: low authority commitments stay traceable to items
Fig. The governed lifecycle of one memory item. The write gate and scoped retrieval are the two enforcement points. Forget, rollback and audit operate on the store and must reach every derived copy. Lifecycle stages follow Ding et al. 2026 and Lin et al. 2026, simplified.

Forgetting, Expiry and User-Visible Memory

Forgetting has three meanings that systems often blur. A fact stops being true (invalidation), stops being useful (expiry), or a person asks for its removal (deletion). Each needs a different operation, and only deletion must reach every copy.

  • Invalidation keeps history. Graphiti's design closes an old relation's validity window when a contradicting one arrives (Graphiti). Both "where does the owner live now" and "where did they live in March" stay answerable. Overwrite-style updates, as in Mem0's UPDATE and DELETE operations, are simpler but lose the audit trail.
  • Expiry hides an item after a time-to-live. A summary must expire no later than its parents, or the fact survives inside it.
  • Deletion must propagate. It follows derivation links to summaries, embeddings, indexes, consolidated notes and, where possible, transcripts. This is feasible only if every derived item records its parents at write time. Legal obligations around erasure and consent are covered in Privacy, Consent and Third Parties.

User-visible memory is the cheapest governance control and the most underused. An owner who can read what the agent believes, with sources, and correct it in place catches many errors before they become actions. File-based memory makes this nearly free. The HEARTBEAT authors list visibility into background activity as a mitigation for the same reason.

A Memory Store with Provenance, TTL and Forgetting

The sketch below implements the minimum envelope in about 80 lines of Python. TTL here means time-to-live, the period after which an item expires. The store enforces six rules:

  • Each item records its source, authority, reader scope, expiry and parent items.
  • Writes from external sources cannot set preferences or commitments.
  • A lower-authority write cannot supersede a higher one.
  • Superseded items stay stored but are not returned.
  • Derived items inherit their parents' expiry.
  • forget deletes an item together with everything derived from it, logging each operation.
import itertools, time
from dataclasses import dataclass, field

_ids = itertools.count(1)
AUTHORITY = {"user": 3, "agent_verified": 2, "agent_inferred": 1, "external": 0}

@dataclass
class Item:
    text: str
    kind: str               # "preference", "fact", "commitment", ...
    source: str             # where it came from: message id, URL, tool call
    authority: str          # key of AUTHORITY
    scope: set              # principals allowed to read it
    expires: float | None   # absolute time, None = no TTL
    derived_from: list = field(default_factory=list)  # parent item ids
    id: str = field(default_factory=lambda: f"m{next(_ids)}")
    superseded_by: str | None = None

class MemoryStore:
    def __init__(self, clock=time.time):
        self.items, self.log, self.clock = {}, [], clock

    def _audit(self, op, item_id, why):
        self.log.append((round(self.clock()), op, item_id, why))

    def write(self, text, kind, source, authority, scope, ttl=None,
              derived_from=(), supersedes=None):
        if authority == "external" and kind in {"preference", "commitment"}:
            self._audit("reject", None, f"external source cannot set {kind}")
            return None                                   # write gate
        exp = [self.clock() + ttl] if ttl else []
        exp += [self.items[p].expires for p in derived_from if self.items[p].expires]
        it = Item(text, kind, source, authority, set(scope),     # a summary never
                  min(exp) if exp else None, list(derived_from)) # outlives its parents
        if supersedes:                                    # keep history, do not erase
            old = self.items[supersedes]
            if AUTHORITY[authority] < AUTHORITY[old.authority]:
                self._audit("reject", supersedes, "lower authority cannot override")
                return None
            old.superseded_by = it.id
        self.items[it.id] = it
        self._audit("write", it.id, source)
        return it.id

    def read(self, principal, kind=None, min_authority="external"):
        now = self.clock()
        return [i for i in self.items.values()
                if i.superseded_by is None
                and (i.expires is None or i.expires > now)
                and principal in i.scope
                and (kind is None or i.kind == kind)
                and AUTHORITY[i.authority] >= AUTHORITY[min_authority]]

    def forget(self, item_id, why):
        """Delete an item and everything derived from it (deletion propagation)."""
        doomed, frontier = set(), [item_id]
        while frontier:
            cur = frontier.pop()
            if cur in doomed or cur not in self.items:
                continue
            doomed.add(cur)
            frontier += [i.id for i in self.items.values() if cur in i.derived_from]
        for d in sorted(doomed):
            del self.items[d]
            self._audit("forget", d, why)
        return sorted(doomed)

# --- demo with a fake clock (one tick = one hour) ---
t = [0.0]; m = MemoryStore(clock=lambda: t[0] * 3600)
a = m.write("Prefers morning briefs at 07:30", "preference", "msg:118", "user", {"owner"})
b = m.write("Dentist moved to Thu 15:00", "fact", "email:4411", "agent_verified",
            {"owner"}, ttl=72 * 3600)
c = m.write("Weekly summary: dentist Thu; brief 07:30", "summary", "compaction:7",
            "agent_inferred", {"owner"}, derived_from=[a, b])
m.write("User prefers briefs at 05:00", "preference", "web:forum-post", "external", {"owner"})
m.write("Brief at 05:00", "preference", "heartbeat:feed", "agent_inferred",
        {"owner"}, supersedes=a)
print("live now:", [i.text for i in m.read("owner")])
t[0] = 80                                      # 80 hours later: TTL on the fact lapsed
print("live at +80h:", [i.text for i in m.read("owner")])
print("stored at +80h:", len(m.items), "items (expired is hidden, not erased)")
print("forgot:", len(m.forget(b, "user request")), "items")
print("left:", [i.text for i in m.items.values()])
for row in m.log: print(row)

Running it prints:

live now: ['Prefers morning briefs at 07:30', 'Dentist moved to Thu 15:00', 'Weekly summary: dentist Thu; brief 07:30']
live at +80h: ['Prefers morning briefs at 07:30']
stored at +80h: 3 items (expired is hidden, not erased)
forgot: 2 items
left: ['Prefers morning briefs at 07:30']
(0, 'write', 'm1', 'msg:118')
(0, 'write', 'm2', 'email:4411')
(0, 'write', 'm3', 'compaction:7')
(0, 'reject', None, 'external source cannot set preference')
(0, 'reject', 'm1', 'lower authority cannot override')
(288000, 'forget', 'm2', 'user request')
(288000, 'forget', 'm3', 'user request')

The forum post and the heartbeat's inferred "05:00" preference are both rejected. This closes the HEARTBEAT pathway at the write gate.

The weekly summary vanishes from reads when the dentist fact expires, because it inherited that expiry. Yet both are still stored: expiry is not deletion. Forgetting the fact removes the summary too.

A production store adds snapshots for rollback, deletion from vector indexes and transcripts, and a record of which items justified each external action.

Deeper Testing the governance invariants

Each invariant from Ding et al. (2026) becomes a check that can run in CI against a seeded store and nightly against production samples.

  • Authority monotonicity. For every derived item, assert its authority is at most the minimum of its parents'. A compaction must not turn an inferred fact into a "verified" one.
  • Scope non-expansion. For every derived item, assert its reader scope is a subset of the intersection of its parents' scopes, so a summary of a private thread cannot reach a shared workspace.
  • Deletion propagation. Seed a canary fact with a unique string, derive summaries and embeddings from it, delete it, then search every store, index and log for the string. Any hit fails the test. This is the membership-style check recommended by Lin et al. (2026).
  • Provenance preservation. Assert every item resolves to at least one raw source (message, document, tool call) through its parent links.
  • Rollback traceability. Restore a snapshot and assert that the action log lists every external action taken since that snapshot, with the items that justified it. A human can then decide which effects to reverse.

Time Horizon and Reliability

An always-on agent is only as useful as the longest task it can finish without help. Reliability sets that length: a small per-step error rate compounds over hundreds of steps into a large failure rate.

METR's time horizon has recently doubled every three to four months. Its 50% figure still overstates what can be delegated. The length completed reliably (80% or more) is several times shorter. Checkpoints and retries close part of the gap, and how much depends mainly on how often a failure is noticed.

Measuring the Horizon

The time horizon is the length of task, measured in skilled-human time, that a model completes with a given probability. Kwa et al. (2025) at METR built it in three steps:

  1. Time human experts on software, machine-learning and cybersecurity tasks.
  2. Fit a logistic curve of model success against log human time.
  3. Read off the task length at 50% predicted success.

They reported that this 50% horizon had doubled roughly every seven months over six years. Claude 3.7 Sonnet stood at just under an hour in early 2025.

The trend has since steepened. METR's Time Horizon 1.1 (January 2026) grew the suite from 170 to 228 tasks. Of these, 31 rather than 14 are estimated at eight hours or more. The suite also moved to the open-source Inspect framework. On the new suite:

  • Doubling time. The long-run doubling time stayed near 196 days. The fit restricted to models since 2023 gives about 131 days, and since 2024 about 89 days.
  • Model estimates moved, sometimes a lot. GPT-5 rose from 138 to 214 minutes. Claude Opus 4.5 rose from 289 to 320 minutes (95% interval 170–729). GPT-4 (1106) fell from 8.5 to 3.6 minutes.
  • Thin baselines. Only 5 of the 31 long tasks have measured human baselines. The rest use estimated durations.

The frontier is now at the edge of what the suite can measure. METR's evaluation of GPT-5.1-Codex-Max (November 2025) put its 50% horizon near 2 hours 40 minutes. Its 80% horizon was near 30 minutes.

METR's published time-horizon data give two later estimates:

  • Claude Opus 4.6: about 12 hours (95% interval roughly 5 to 61 hours).
  • Claude Mythos Preview (an early snapshot tested in March 2026): about 17 hours (8.5 to 55 hours).

Both are lower-confidence points. METR states that measurements above 16 hours are unreliable with the current suite. Its frontier risk report (May 2026) calls the suite essentially saturated.

Reported METR 50% time horizons by approximate model release month, November 2023 to March 2026, on a log scale, with one 80% horizon for comparison.
Fig. Reported 50% time horizons on a log scale, placed at approximate release month (the Mythos point at its March 2026 test window). Blue points are Time Horizon 1.1 estimates from METR (2026); orange is GPT-5.1-Codex-Max from METR's report on the earlier suite, with its 80% horizon (hollow) below it; green points are later estimates from METR's time-horizon data, which flags anything above 16 hours as unreliable (shaded). Confidence intervals, omitted for legibility, span roughly a factor of two or more in each direction. Points from the two suites are not strictly comparable.

METR's own note on limitations lists readings to avoid, each relevant to always-on agents:

  • It is not run time. A horizon measures human labor replaced at a success rate, not how long an agent can work unattended.
  • It is domain-specific. Visual computer-use tasks showed horizons 40 to 100 times lower, largely because of perception (Acting in the World).
  • The tails are not measured independently. The 80% horizon comes from the same two-parameter fit as the 50% one, and a 99% horizon cannot be fit with current suites.
  • The tasks are tidy. They are self-contained and low-context, unlike work that depends on organizational knowledge, ambiguous goals or other people.
Deeper What the gap between 50% and 80% horizons says

Write the fitted success curve as \( P(t) = \sigma\big(\beta(\ln h_{50} - \ln t)\big) \), where \(t\) is the human time of a task, \(h_{50}\) the 50% horizon, \(\beta\) the slope and \(\sigma\) the logistic function. Setting \(P = 0.8\) gives \(\beta(\ln h_{50} - \ln t) = \ln 4\), so

\[ h_{80} = h_{50} \cdot 4^{-1/\beta}. \]

For GPT-5.1-Codex-Max, \(h_{50}/h_{80} \approx 160/30 \approx 5.3\). That implies \(\beta \approx \ln 4 / \ln 5.3 \approx 0.83\).

Compare a constant-hazard model, in which every minute of human work carries the same chance of a fatal error. Then \(P(t) = e^{-\lambda t}\), so \(h_{50} = \ln 2/\lambda\) and \(h_{80} = \ln 1.25/\lambda\). The ratio is fixed at about 3.1.

A ratio well above 3.1 means success falls off more slowly with length than constant hazard predicts. Heterogeneous task difficulty would produce this. The calculation is the book's illustration on one report's point estimates, not a METR result.

If a deployment needs 95% success, the same fit puts the usable length at \(h_{50} \cdot 19^{-1/\beta}\). For \(\beta = 0.83\) that is about \(h_{50}/35\). A 2.7-hour horizon thus becomes under five minutes of reliably delegable work.

Reliability Compounds

Long tasks fail mainly because small per-step error rates multiply. If each of \(n\) steps succeeds independently with probability \(p\), the whole task succeeds with probability \(p^n\).

Success drops to one half at the step count \(n_{50} = \ln 2 / (-\ln p) \approx 0.69/(1-p)\). Halving the per-step error rate therefore doubles the achievable length. That is why modest gains on short benchmarks can mean large gains in horizon.

Sinha et al. (2025) made this argument empirically. They gave models the plan and knowledge for a simple multi-step task, which isolated execution from reasoning. They found two effects:

  • Small gains compound. Marginal single-step gains compound into much longer executable tasks. Larger models execute many more turns correctly even when smaller ones are near perfect on a single turn.
  • Self-conditioning. Per-step accuracy degrades as the task proceeds, beyond what context length explains. Models err more once their context contains their own earlier mistakes. Scaling did not remove this self-conditioning effect; thinking models mitigated it.

Self-conditioning breaks independence in the bad direction, so real long runs decay faster than \(p^n\).

Yao et al. (2024) introduced pass^k in τ-bench: the probability that all \(k\) independent trials of the same task succeed. They found GPT-4o below 25% at pass^8 on retail tasks. pass@1, by contrast, is the success rate of a single attempt.

An agent that runs the same standing task daily lives by pass^k, not pass@1. A routine that works 90% of the time fails about three days a month.

Computed task success versus number of steps. Left: no recovery, for per-step success 0.99, 0.995 and 0.999. Right: per-step success 0.99 with checkpoints every 10 steps and two retries, for failure-detection rates of 50%, 80% and 95%.
Fig. Computed (illustrative) task success against step count. Left: without recovery, success is \(p^n\) and each halving of the error rate doubles the 50% length. Right: a 0.99-reliable agent with a verified checkpoint every 10 steps and up to two retries per segment; the curves differ only in how often a failed segment is detected. Detection, not the number of retries, sets the curve. Formulas are in the code below.

Recovery: Checkpoints, Verification and Retries

Recovery turns a chain of steps that must all succeed into segments that need only succeed eventually. Its value is capped by how reliably failures are detected. A noticed failure can be rolled back and retried; an unnoticed one propagates.

The model below makes this concrete:

  • Segments. \(n\) steps are split into segments of \(k\), each ending at a checkpoint.
  • Detection and retry. A failed segment is caught with probability \(d\) and retried up to \(r\) more times.
  • Silent failure. An uncaught failure sinks the task.
def no_recovery(p, n):
    """Probability that n independent steps all succeed."""
    return p ** n

def checkpointed(p, n, k, retries, detect):
    """n steps in segments of k, each ending at a verified checkpoint.
    A failed segment is caught with probability `detect` and rolled back
    for another try (up to `retries` extra tries); an uncaught failure is
    silent and sinks the task."""
    q = p ** k                          # one clean pass through a segment
    caught = (1 - q) * detect           # failure noticed -> roll back, retry
    seg = q * sum(caught ** i for i in range(retries + 1))
    return seg ** (n / k)

def horizon(f, target=0.5):
    """Largest step count n with success >= target."""
    n = 1
    while f(n + 1) >= target:
        n += 1
    return n

for p in (0.99, 0.995, 0.999):
    f = lambda n: no_recovery(p, n)
    print(f"p={p}: n50={horizon(f)}, n80={horizon(f, 0.8)}, success@200={f(200):.3f}")
for d in (0.5, 0.8, 0.95, 1.0):
    f = lambda n: checkpointed(0.99, n, 10, 2, d)
    print(f"detect={d}: success@200={f(200):.3f}, n50={horizon(f)}")
for r in (0, 1, 2, 5):
    print(f"retries={r}: success@200={checkpointed(0.99, 200, 10, r, 0.8):.3f}")

Running it prints:

p=0.99: n50=68, n80=22, success@200=0.134
p=0.995: n50=138, n80=44, success@200=0.367
p=0.999: n50=692, n80=223, success@200=0.819
detect=0.5: success@200=0.356, n50=134
detect=0.8: success@200=0.652, n50=324
detect=0.95: success@200=0.887, n50=1150
detect=1.0: success@200=0.983, n50=7925
retries=0: success@200=0.134
retries=1: success@200=0.585
retries=2: success@200=0.652
retries=5: success@200=0.658

Three lessons follow.

  • The 80% length is about a third of the 50% length. Under independent errors it is 22 against 68 steps. This is the constant-hazard ratio derived in the deep block.
  • One retry does most of the work. Beyond that, success approaches a ceiling of \(\big(q/(1-(1-q)d)\big)^{n/k}\), set by the detection rate.
  • Detection beats retries. Raising detection from 80% to 95% lifts success at 200 steps from 0.65 to 0.89. No number of extra retries does as much.

Detection is the expensive part. It is easy for code with tests and hard for an email that reads plausibly but is wrong.

Self-correction without such a check is weak. Reflection helps when the environment returns a signal (a failing test, an error). A model re-reading its own output instead risks self-conditioning. Production harnesses therefore build external checks into the work.

Anthropic's long-running coding harness (Young 2025; described in The Context Toolbox) maps onto the model above:

  • Checkpoints. Git commits.
  • Detector. A feature list whose items may be marked passing only after end-to-end browser testing. It targets undetected failures such as declaring the project finished early.

The machinery that makes rollback and retry safe for real side effects is in Durable Execution.

Horizon Is Not Lifetime

A long agent lifetime does not require a long task horizon. An always-on agent can decompose weeks of presence into many short, checkable tasks (the two axes of What an Always-On, Long-Horizon Agent Is).

A morning-brief agent that runs for a year may never execute a task longer than ten minutes. Its difficulty lies elsewhere: pass^k over 365 days, correct state between wakes and judgment about when to speak. A weekend coding agent has the opposite profile: one long task, a short lifetime.

The design implication is to spend horizon only where it is needed. Each wake does the shortest piece of work that ends at a verifiable checkpoint, writes its state and stops.

A longer horizon still means fewer segments. For a persistent agent, though, the binding constraints are usually these:

Proactivity: Deciding When to Speak

A proactive agent creates value only when its help is worth more than the attention it takes. Attention is expensive. In a field study, an alert typically cost eight to ten minutes of diversion. Another eleven to sixteen minutes passed before the suspended task resumed.

Deciding when to speak is a decision under uncertainty with asymmetric costs. The framing dates to Horvitz's mixed-initiative principles of 1999. Across several 2024–2026 benchmarks, current models err in one direction: they intervene too often, too early or too forcefully. Restraint is the scarce skill.

The Cost of an Interruption

Interruptions cost more than the seconds spent reading them, because they pull a person into a chain of other tasks. Iqbal and Horvitz (2007) logged 27 information workers for two weeks and measured what happened after email and instant-message alerts:

  • Long resumption. After responding to an email alert, participants spent about 16 minutes on average in the resumption phase before getting back to the suspended task. After instant messages, the figure was about 11 to 12 minutes. Immediate and delayed responses differed little.
  • Chains of switches. Alert-driven switches often led on to other peripheral applications. About 27% of task suspensions lasted more than two hours.
  • Lost visual context. Return was slower when the suspended window was mostly hidden. This suggests that losing visual context makes resumption harder.

An agent that notifies on every new item imports this cost at machine frequency. The same message is cheap to an idle person and expensive mid-focus.

Mixed-Initiative Principles

Horvitz's Principles of Mixed-Initiative User Interfaces (CHI 1999) remain the clearest design frame for proactive agents. Its twelve principles include these:

  • account for uncertainty about the user's goals and attention;
  • time services around attention;
  • weigh context-dependent costs and benefits;
  • use brief dialogue to resolve key uncertainty;
  • make it cheap to decline or stop the agent;
  • scale the precision of a service to the current uncertainty.

The paper's calendar assistant, LookOut, made this quantitative. It estimated the probability \(p(G \mid E)\) that the user wanted scheduling help given an email. It then compared the expected utility of acting, asking and doing nothing.

The comparison yielded two thresholds: silent below the first, ask between, act above the second. Context moved the thresholds, as the figure below shows for an always-on agent.

Two rows show how the estimated probability that the user wants help maps to three actions: stay silent, ask or notify, act. When interruption cost is high, both thresholds move to higher probabilities. User idle low interruption cost stay silent ask or notify act (within permissions) p_ask p_act Deep focus high interruption cost stay silent (hold for digest) ask or notify act p_ask p_act 0 0.5 1 estimated probability the user wants this, p(G | E)
Fig. Two thresholds turn a confidence estimate into an action: stay silent, ask or notify, or act within the agent's permissions. When interrupting is costly, both thresholds move right (dashed arrows), so the same evidence that would justify a notification to an idle user is held for a later digest. Threshold positions are illustrative. (Structure adapted from the LookOut analysis in Horvitz 1999.)
Deeper Where the thresholds come from

Consider only "notify" against "stay silent". Define three quantities:

  • \(p\): the probability the notification is wanted;
  • \(B\): the benefit of a wanted notification relative to silence;
  • \(C\): the cost of an unwanted one (the interruption plus lost trust).

Notifying has expected value \(pB - (1-p)C\), and silence has 0. The agent should therefore notify when

\[ p > p^{*} = \frac{C}{B + C}. \]

If an unwanted interruption costs four times what a wanted one is worth (\(C = 4B\)), the agent should speak only when at least 80% sure.

A digest adds a third option. It has a smaller benefit \(B_d < B\), because the information arrives late. It has a much smaller cost \(C_d \ll C\), because it is read at a chosen time. Comparing all three yields two thresholds as in LookOut:

  • low-confidence items go nowhere;
  • mid-confidence items go to the digest;
  • only high-confidence, time-sensitive items interrupt.

\(C\) depends on the user's state. Estimating attention (calendar, focus mode, recent activity) therefore lowers the interruption rate at little cost in benefit.

The same algebra applies to "act" against "ask". The cost of an unwanted, possibly irreversible action takes the place of \(C\). Hence the higher act threshold, and the cap that The Permission Layer puts on what any threshold can authorize.

What Proactive-Agent Research Finds

LLM-era research on proactivity converges on one finding. Models can often tell that help might be useful, but they are poorly calibrated about whether and when to offer it. They err toward doing too much.

The table below summarizes five 2024–2026 benchmarks. Their design limits are discussed in Benchmarks That Probe the Pieces.

BenchmarkDecision testedDataReported finding
ProactiveBench (Lu et al. 2024)Predict a task to offer from observed user activity6,790 events from a pipeline built on real activity records; a reward model trained on human accept/reject labelsA fine-tuned model reached 66.47% F1, above all general models tested
ProAgentBench (Tang et al. 2026)When to assist, then what to offer28,528 events from over 500 hours of real screen sessionsBest zero-shot accuracy 64.4% on timing; high-recall models had precision near 52%; real-data fine-tuning beat synthetic (74.0% vs 62.1%)
PROBE (Pasternak et al. 2025)Find the bottleneck in a user's documents and resolve it1,000 synthetic cases, about 108k tokens and 79 documents eachBest end-to-end score 0.40 (GPT-5 and Claude Opus 4.1); agent frameworks did far worse
ProactBench (Harfi et al. 2026)Act on needs a user implies in conversation198 dialogues, 624 trigger points, 16 modelsAfter a task is done, the best model offered grounded next steps 37.2% of the time; 14 of 16 models under 20%
HALO (Pei et al. 2026)Whether, when and how much to act8,000 responses, 400 scenarios, 20 human annotatorsBest acceptability 72.88%; 61.2% of rejections were premature or excessive

Table. Proactive-agent benchmarks and what they report. Settings, metrics and models differ, so the numbers are not comparable across rows; each row is the authors' own headline result.

Read together, the results point to three design rules.

  • Optimize precision, not recall. High-recall models interrupt most often for nothing. HALO traces most rejections to premature timing or excessive intensity. Restraint should therefore be scored explicitly.
  • Ground the decision in evidence. In HALO, attention-level responses that consulted local content were accepted 59.0% of the time, against 40.8% without it. ProAgentBench reports a knowledge-graph memory raising timing accuracy from 53.7% to 60.1% (What State an Always-On Agent Holds).
  • Learn from real behavior. Real activity in ProAgentBench was far burstier than LLM-synthesized timelines, and real-session fine-tuning won. Dismissals and corrections are the training signal (Online Evaluation in Production).

The Morning Brief and Other Batching Patterns

The commonest production answer to interruption cost is to batch. The agent holds most findings for a scheduled digest, such as a morning brief, and interrupts only for urgent, high-confidence items.

ChatGPT Pulse launched for Pro subscribers in September 2025. It prepares five to ten cards overnight from chat history, memory and connected Gmail and Calendar. It then ends with a message that there is nothing more for the day. OpenAI presented this stop as a deliberate contrast with engagement-optimized feeds (TechCrunch 2025).

In threshold terms, the digest is the low-cost channel for mid-confidence items. The item cap and explicit end state bound the attention spent. Three further patterns recur:

  • Escalation ladders. Log, digest, notify, ask for approval: each step needs more confidence and urgency.
  • Quiet hours. Thresholds rise by schedule.
  • Feedback on every card. A dismissal lowers the prior for similar items.

Products are compared in The 2026 Landscape.

Acting in the World

An always-on agent acts through three kinds of surface: connectors, computer use and conversation. On all three, single-attempt benchmark scores sit well above the repeat-run reliability an unattended agent needs.

  • Structured connectors (APIs, increasingly exposed as MCP tools, the Model Context Protocol standard for tool interfaces). They are the most reliable but cover only what someone has wrapped.
  • Graphical computer use. It reaches almost anything. Lab-reported benchmark scores have climbed from 12% to the mid-80s in about two and a half years, yet it remains brittle on real work.
  • Conversation with people, including by voice and phone. It adds a second party the agent cannot control.

Three Surfaces, Different Failures

The choice of surface is first a reliability decision. An agent should use the most structured interface available for each action and fall back to the screen only where none exists.

The table below collects the main public evidence. Benchmark design is critiqued in Benchmarks That Probe the Pieces, and the hosting runtime is in The Agent's Own Computer.

SurfaceReachesReliability evidenceTypical failuresMitigations
Connectors / MCP toolsServices with an API someone has wrappedMCPMark (Wu et al. 2025): best model 52.56% pass@1 and 33.86% pass^4 on 127 CRUD-heavy tasks, about 17 tool calls eachWrong parameters, partial multi-step writes, misread tool results, coverage gapsTyped schemas, read-after-write checks, idempotent writes, narrow scopes
GUI computer useAnything with a screen, including legacy and connector-less appsOSWorld (Xie et al. 2024): humans over 72.36%, best model 12.24% at launch; OSWorld-Verified scores of 85–86% by November 2026, self-reported by labs, best benchmark-run entry 82.6% (BenchLM)Perception and grounding errors, UI drift, pop-ups, slow step loopsPrefer an API when one exists; screenshot verification after each action; human takeover for sensitive steps
Conversation, voice and phonePeople and organizations reachable only by message or callτ²-bench (Barres et al. 2025): significant drops when the user also acts on the shared environment; τ-bench: GPT-4o below 25% pass^8 on retailMis-coordination with the other party, policy violations, inconsistency across repeatsScripts and policies as tools, confirmation of commitments, disclosure, escalation to a human
End-to-end real workPaid freelance projects across sectorsRemote Labor Index (Mazeika et al. 2025): best agent automated 2.5% of projectsEverything above, plus underspecified goals and quality barsDecompose into checkable tasks; keep a human owner for deliverables

Table. Action surfaces for always-on agents with the public reliability evidence for each. Scores come from different tasks and setups and are not comparable across rows; the gap between pass@1 and repeated-run metrics within a row is the more transferable signal.

Computer Use: Near the Human Baseline, Far from Unattended

Computer use reached benchmark scores at or above the original human baseline in about two and a half years. The benchmark, however, has saturated faster than the reliability problem has been solved.

By November 2026 the BenchLM aggregator listed several frontier models at 85–86% on OSWorld-Verified. Nearly all of those scores are self-reported by the labs. The best entry run by the benchmark itself was 82.6%. The top three sit within 1.1 points, which BenchLM reads as approaching saturation.

A score is a single-attempt rate on curated tasks. A standing routine instead needs pass^k across days and drifting interfaces. Two other results point the same way: METR's 40–100× lower visual-task horizons and the 2.5% Remote Labor Index result.

Computer use is therefore the fallback surface. It should be wrapped in post-action verification, with human takeover for anything irreversible.

Where Each Surface Breaks, and What Follows

Across surfaces, the dominant failure for an always-on agent is a write that looks successful and is not. The most valuable engineering is therefore the check after each action. It is the detection term from Recovery, made concrete per surface.

  • Connectors. Read back what was written. MCPMark's drop from pass@1 to pass^4 shows that state-changing successes do not repeat reliably. Writes should therefore be idempotent, so a repeated write has no extra effect (Durable Execution).
  • Computer use. Verify with a fresh screenshot or DOM read after each consequential action. Stop, rather than improvise, when the interface looks unexpected. Logins, payments and permission prompts are natural handoffs (The Permission Layer).
  • Conversation and voice. The other party can change the shared environment, as τ²-bench's dual-control setting models. Public reliability data for autonomous phone agents is thin, so claims of human-level calling deserve caution.
  • Commitments and disclosure. Commitments made in conversation (a booking, a promise to pay) should be confirmed in writing and recorded as commitments (What State an Always-On Agent Holds). An agent speaking for a person should say so (Privacy, Consent and Third Parties).
The capability budget of an always-on agent

Three numbers bound what such an agent can be trusted to do:

  • the reliable (not 50%) horizon for the work at hand;
  • the detection rate of its post-action checks;
  • the pass^k of its standing routines.

Benchmarks mostly report horizons at 50% and rarely report the other two. A deployment therefore has to measure all three itself (Longitudinal Evaluation).

Benchmarks That Probe the Pieces

No public benchmark measures an always-on agent as deployed. Such an agent holds standing orders for weeks, wakes on its own, acts through real tools and decides when to stay quiet. What exists instead is a set of benchmarks that each probe one piece: task length, tool skill, users, memory, timing of help or long-run coherence.

A first generation of multi-day "living world" suites arrived in 2026. None of them yet says whether an agent will still be doing the right thing on day thirty.

General methodology for agent evaluation (graders, harnesses, contamination) is covered in the companion book Agent Evaluation. This part covers what changes when the agent never logs off.

Six Families of Probes

The relevant benchmarks fall into six families, distinguished by which part of the agent's job they isolate. Each answers one question well and leaves the others unasked, so an evaluation plan needs several.

  • Task length. Rein et al. (2025) built HCAST: 189 software, ML, security and reasoning tasks. The tasks are calibrated by 563 human baselines totalling more than 1,500 hours.
    • Agents succeeded 70–80% of the time on tasks that take a person under an hour.
    • They succeeded below 20% of the time on tasks over four hours.
    • HCAST feeds METR's time-horizon estimates (Time Horizon and Reliability). It measures how long an agent can work in one stretch, not how long it persists.
  • Workplace and tool skill. Three benchmarks test whether agents can do real work with real tools.
    • TheAgentCompany (Xu et al. 2024) places agents in a simulated software company with consequential tasks. The authors report that the most competitive agent completed 30% autonomously.
    • OSWorld (Xie et al. 2024) runs 369 tasks on real operating systems with execution-based checks. At release, people completed over 72% and the best model about 12%.
    • GAIA (Mialon et al. 2023) asks 466 assistant questions that need browsing and tools.
  • Users and policy. τ-bench (Yao et al. 2024) pairs domain tools and a written policy with an LLM-simulated user. It grades the final database against an annotated goal. Its two domains are retail (115 tasks) and airline (50 tasks). Its pass^k metric is the chance that k consecutive runs of the same task all succeed (Time Horizon and Reliability). In retail, pass^8 was below 25% even for GPT-4o.
  • Memory across sessions. Two benchmarks test memory, one through answers and one through the store itself.
    • LongMemEval (Wu et al. 2024) hides 500 questions in long chat histories. It tests extraction, multi-session reasoning, temporal reasoning, knowledge updates and abstention. Commercial assistants lost about 30% accuracy over sustained interactions.
    • MemAudit (Ma et al. 2026) audits the store directly. Each of 50 simulated users has 31 hidden attributes, and the benchmark asks how many can be recovered from what five memory systems kept. The recovery rate was about 0.6.
  • Timing of help. Two benchmarks score whether proposed help is welcome.
    • ProactiveBench (Lu et al. 2024) contains 6,790 events built from real user activity. It scores proposed help with a reward model trained on human accept/reject labels.
    • ProAgentBench (Tang et al. 2026) draws more than 28,000 events from over 500 hours of real user sessions.
    • The proactivity research behind them is covered in Proactivity: Deciding When to Speak.
  • Long-run coherence and living worlds. Four benchmarks stretch one run over a long period.
    • Vending-Bench (Backlund and Petersson 2025) has an agent run a vending business over runs of more than 20 million tokens. Every model tested had runs that derailed.
    • Vending-Bench 2 extends the run to a simulated year from a $500 start. It scores only the final bank balance.
    • ClawMark (Meng et al. 2026) gives coworker agents 100 multi-day tasks over five stateful services: files, email, calendar, knowledge base and spreadsheet. The services change independently of the agent. Grading uses 1,537 deterministic checkers with no model judge.
    • Claw-Anything (Lin et al. 2026) simulates months of a user's digital life for always-on personal assistants.

The table below lines the benchmarks up against the job of an always-on agent; its last column names what a high score does not establish.

BenchmarkWhat it probesScale (as reported)GradingWhat it misses for always-on agents
HCASTLength of work completed in one stretch189 tasks; human times from about 1 minute to over 8 hoursAutomatic, calibrated by human baselinesWaiting, waking and resuming; anything beyond one session
TheAgentCompanyConsequential workplace tasksSimulated software company; best agent 30% autonomousChecks inside the simulated companyA world that moves between sessions
OSWorldGUI computer use369 tasks on real OS imagesExecution-based state scriptsWhen to act at all; standing orders
GAIAAssistant questions needing tools466 questionsExact answer matchSide effects; persistence
τ-benchPolicy-following with a simulated userRetail (115 tasks) and airline (50 tasks)Final database vs. goal; pass^kObligations that span days
LongMemEvalRecall across long histories500 questions, five abilitiesAnswer correctnessWhether recalled facts drive correct actions
MemAuditWhat a memory store actually kept50 users × 31 hidden attributesRecovery of hidden user stateWhen stored state is used or misused
ProactiveBench, ProAgentBenchWhether and when to offer help6,790 events; over 28,000 real eventsAgreement with human labelsCumulative interruption cost over weeks
Vending-Bench, Vending-Bench 2Coherence of one long-running operationOver 20M tokens per run; one simulated yearFinal bank balanceA user to serve; per-day diagnosis
ClawMarkMulti-day coworker work in a changing world100 tasks, 13 scenarios, 5 services1,537 deterministic checkersMonths-long lifetimes; real users
Claw-AnythingAlways-on personal assistant over a simulated digital lifeMonths of simulated activityPass@1 (best reported 34.5%)Too new to judge its stability as a yardstick

Table. Public benchmarks that probe pieces of an always-on agent. Scales and scores are as stated in each paper's abstract or page; they illustrate gaps and are not current leaderboard standings.

What the Families Leave Out

Four properties of always-on agents fall between the benchmarks: idle time, a world that changes without telling the agent, silence as a decision, and a single score for a long run. Each hides a failure that shows up only in deployment.

  • Idle time. A real agent spends most of its lifetime asleep and resumes from stored state. A benchmark that keeps the whole history in context never tests what the agent wrote down before sleeping.
  • Exogenous change. ClawMark's authors report that performance drops after the first update to the environment that the agent did not cause. Single-episode benchmarks never move the world under the agent.
  • Silence. Proactivity benchmarks score one decision at a time. Users react instead to the cumulative cost of a month of slightly too many notifications.
  • One number per long run. Vending-Bench 2's final balance compresses a simulated year into one noisy outcome, with no per-day diagnosis.

Benchmark integrity is a separate caveat. Wang et al. (2026) built BenchJack, an automated auditor that uses coding agents to search benchmarks for reward hacks (ways to score without doing the task). It examined ten popular agent benchmarks. On most, it found exploits reaching near-perfect scores without solving any task. In total it found 219 distinct flaws in eight classes.

A team adopting a benchmark as a release gate should first confirm that a null agent (one that does nothing) scores zero.

Longitudinal Evaluation

Longitudinal evaluation runs one agent configuration through a simulated stretch of calendar time, from days to months. It scores the agent day by day instead of once at the end.

It is the only offline method that exercises the properties the previous section found missing:

  • sleeping and resuming;
  • a world that changes on its own schedule;
  • obligations that come due later;
  • the accumulated weight of the agent's own past actions.

It is also noisy, because a long run yields few independent observations.

A Protocol: Virtual Calendar, Scripted World, Daily Checks

A longitudinal run has three ingredients: a virtual clock the harness controls, a scripted world that changes on that clock, and checks that run after every simulated day. The figure below shows one simulated week.

A one-week longitudinal evaluation run: scripted world events above simulated days, daily checks below, and a run-level audit at the bottom. Scripted world events (on the virtual clock) standingorders set inboxburst silent APIchange usercorrection modelswap quietday promisedtask due Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7 state checkbrief graded triage checkpings counted noticed thechange? correctionpersisted? same checks,new model stayedsilent? promisekept? Run-level audit commitments kept · state obligations honored · day-by-day diff against the previous model
Fig. One simulated week of a longitudinal evaluation. Scripted events (top) arrive on a virtual clock; accented days carry changes the agent must cope with but did not cause. Each day ends with deterministic checks (middle), and the run ends with an audit (bottom). The events and checks are illustrative of the protocol, not taken from a specific benchmark.

Five design rules make such runs informative rather than anecdotal.

  1. Own the clock. Schedules, deadlines and "today" in the prompt all read the virtual clock, so a month runs in hours and every run sees the same calendar.
  2. Script the world, including silent change. As in ClawMark, services should change between days. Some changes are announced and some are not. This tests whether the agent re-reads the world or trusts a stale memory of it.
  3. Score every day, deterministically where possible. ClawMark grades with deterministic checkers and no model judge. The Always-On Agents survey of Ding et al. (2026) proposes AOEP-v0, a pilot protocol. It scores how an agent mutates its state and what recovery it owes, not only its answers. Daily checks show on which day a run went wrong. The state obligations are defined in Governing State.
  4. Score silence and obligations. On a day when nothing warrants a message, the right output is none. A promise made on day two and due on day seven tests the task ledger (the agent's record of open commitments), not any single wake.
  5. Grade end states, not paths. As τ-bench does, compare final state with a goal. Over a week many routes are valid, and grading the path penalizes correct alternatives.

Replaying Logged Weeks

Replay turns production history into a longitudinal test. The harness records everything that entered an agent's world during a real week. It then feeds that record to a candidate configuration on a virtual clock and compares what the candidate does with what the incumbent did.

Inputs that can be recorded exactly replay exactly: inbound messages, webhook payloads, calendar state and tool responses. The difficulty is that the candidate will act differently. A different action changes what the world would have returned next.

Replay is exact up to the first point at which the candidate's action diverges from the recorded one. After that, the harness has two options:

  • Stop and score. It stops and scores the divergence as better, worse or merely different.
  • Simulate. It switches to a simulated tool. This extends coverage at the cost of grading against a simulator.

Side effects always go to stubs, never to real services (The Agent's Own Computer). Divergence points are the best items for human review, since they are exactly where the two configurations disagree.

Drift and Regression Across Model Swaps

An always-on agent changes even when its owners change nothing. The model behind an API, the tools it calls and the world it watches all move.

Chen, Zaharia and Zou (2023) showed the effect in a hosted model. GPT-4's accuracy on one prime-identification task fell from 84% to 51% between its March and June 2023 versions. Part of the cause was that it followed chain-of-thought instructions less well. The authors called for continuous monitoring.

For a daily agent, that argues for a fixed set of canary scenarios: test cases re-run on a schedule against the exact production configuration. Their results are tracked as a time series.

Harness changes count as swaps too. METR moved its time-horizon suite from its Vivaria harness to Inspect and compared five models on the old tasks. Two of them, GPT-4o and o3, scored significantly higher under Vivaria. METR reads this as some sensitivity to the scaffold (METR 2026).

A regression suite should therefore pin each of the following and change one at a time: the model version, prompts, tool versions, memory contents and scenario set.

Anthropic's evaluation guide adds a lifecycle. Capability evaluations that reach a high pass rate "graduate" into a regression suite. That suite is expected to stay near 100%, so any drop is a signal (Grace et al. 2026).

The hard part is statistical. Detecting a small regression takes far more scenarios than most teams run, and the chart below shows how many.

  • A drop in pass rate from 90% to 88% needs roughly 3,800 tasks per arm. This assumes an unpaired test at conventional error rates.
  • A drop of ten points needs about 200 tasks per arm.

A typical longitudinal suite will catch large regressions and miss small ones unless the design is paired.

Tasks per arm needed to detect a drop in pass rate, for baselines of 90% and 70%.
Fig. Tasks per arm needed to detect a drop in pass rate between an incumbent and a candidate configuration, for incumbent pass rates of 90% and 70%, using a two-sided two-proportion test at α = 0.05 and 80% power (log scale). Computed from the standard formula in the Deeper block below; not taken from any benchmark. Lower baselines need more tasks because the variance of a pass rate peaks at 50%.

Pairing helps. When both configurations run the same scenarios, only the scenarios on which they disagree carry information, and most agree. This is the logic of McNemar's test, a test for paired yes/no outcomes.

Repeating scenarios matters too, since pass^k exposes the intermittent failures users notice. The script below reproduces the unpaired numbers.

from math import sqrt
from statistics import NormalDist
z = NormalDist().inv_cdf

def n_per_arm(p0, p1, alpha=0.05, power=0.8):
    """Tasks per arm for a two-sided two-proportion z-test (unpaired)."""
    pbar = (p0 + p1) / 2
    a = z(1 - alpha / 2) * sqrt(2 * pbar * (1 - pbar))
    b = z(power) * sqrt(p0 * (1 - p0) + p1 * (1 - p1))
    return (a + b) ** 2 / (p0 - p1) ** 2

for p0 in (0.9, 0.7):
    print(p0, [round(n_per_arm(p0, p0 - d / 100)) for d in (2, 5, 10)])
# 0.9 [3841, 686, 199]
# 0.7 [8393, 1376, 356]
Deeper Where the sample-size formula comes from

Let the incumbent pass at rate \(p_0\) and the candidate at \(p_1 = p_0 - \Delta\), each measured on \(n\) independent tasks. The estimated difference \(\hat p_0 - \hat p_1\) is approximately normal with variance \(\big(p_0 q_0 + p_1 q_1\big)/n\), where \(q = 1 - p\).

Under the null hypothesis of no difference the variance is \(2\bar p \bar q / n\) with \(\bar p = (p_0 + p_1)/2\). Requiring a two-sided test at level \(\alpha\) to reject with probability \(1 - \beta\) when the true drop is \(\Delta\) gives

\[ n = \frac{\Big(z_{1-\alpha/2}\sqrt{2\bar p\bar q} + z_{1-\beta}\sqrt{p_0q_0 + p_1q_1}\Big)^2}{\Delta^2}, \]

where \(z_u\) is the standard normal quantile. Three consequences matter for agent evaluation.

  • \(1/\Delta^2\) dominates. Halving the detectable regression roughly quadruples the suite.
  • Independence is assumed. Scenarios that share a world or a simulated user are correlated, so the effective \(n\) is smaller than the count. Days within one longitudinal run are strongly correlated and should not be counted as independent tasks.
  • Pairing changes the denominator. With both configurations on the same scenarios, the test uses only discordant pairs. If they are rare, far fewer scenarios suffice for the same power.

The same arithmetic bounds one run: on 100 independent tasks at a true rate of 80%, the 95% interval is about \(\pm 1.96\sqrt{0.8 \cdot 0.2/100} \approx \pm 7.8\) points.

Online Evaluation in Production

Online evaluation measures the deployed agent on real traffic. It instruments every wake, turns user behavior into labels, compares configurations on live users, and samples traces for model and human review.

For always-on agents it is indispensable. The conditions that matter most exist only in production: one user's inbox, months of memory, an unannounced connector change.

It is also reactive. By the time a production metric moves, users have already seen the failure. For that reason Anthropic's guide pairs monitoring with offline evaluations and transcript review rather than treating it as a substitute (Grace et al. 2026).

Telemetry for Wakes, Actions and Silences

The unit of telemetry for an always-on agent is the wake, not the conversation. Each wake should leave a trace that records the following:

  • Trigger. Why it fired: schedule, event, heartbeat or self-scheduled follow-up.
  • Decision. What the agent observed and decided: act, ask, report or stay silent.
  • Tools. Its tool calls and results.
  • Approvals. Its approval requests and their answers.
  • Memory. Its memory writes.

Recording the decision to stay silent is the step most often skipped. Without it, the most common proactive error is invisible: failing to speak when the agent should have.

Such a trace store serves debugging, fleet metrics and the harvesting of failures into offline suites. The figure below shows the loop.

The online evaluation loop: agent fleet, trace store, three signal sources, metrics and alerts, and a return path through the offline regression suite. Agent fleet wakes · acts · silences Trace store one trace per wake Explicit signals approvals · overrides · undo Implicit signals edits · ignores · mutes Sampled review calibrated judge → human Metrics and alerts per cohort · per config Offline regression suite failures become cases gates next release
Fig. The online evaluation loop. Every wake leaves a trace; explicit, implicit and sampled-review signals are extracted from traces and aggregated by cohort and configuration; failures found in production become offline regression cases that gate the next release (bottom path).

User Behavior as Labels

Users label an always-on agent's work constantly without being asked. They approve or reject proposed actions, edit drafts before sending, undo changes, ignore briefs and mute notifications. These signals are cheap and plentiful, but each has a known bias.

The table below pairs each signal with what it measures and how it misleads.

SignalWhat it measuresHow it misleadsMitigation
Approval rate on proposed actionsWhether the agent's proposals match what the user wantsRubber-stamping: rates rise as users stop readingTrack time-to-approve; audit a sample of approved actions
Override and undo rateActions the user actively reversedUsers rarely notice errors in what they do not checkPair with sampled review of unreversed actions
Edit distance on draftsHow much of a draft survivesStylistic edits look like errorsClassify edits as factual vs. stylistic before counting
Explicit corrections ("don't do that again")Violated preferences, with a stated ruleSparse; only the most annoyed users write themCheck that the correction persisted on later wakes
Ignore and mute rates for notificationsInterruption cost, the sign of over-eagernessNovelty inflates early engagement; fatigue arrives weeks laterLong-running holdouts; per-cohort tenure curves
Stayed-silent decisionsMissed opportunities to helpInvisible: no user reaction to a message never sentSample silent wakes for judge and human review

Table. Production signals for always-on agents, what each measures and how it misleads. The biases listed are the author's synthesis of standard product-analytics practice applied to agents, not findings from a cited study.

Whether a correction persisted deserves emphasis. Suppose an agent complies on the day it is corrected and repeats the behavior a week later, after compaction. That is a memory failure no single-session metric catches. Logging each correction as an expectation and testing it on later wakes turns feedback into a free longitudinal test.

Experiments on Proactive Features

Proactive features such as a morning brief, a nudge or an autonomous follow-up should be launched as controlled experiments. They should be randomized by user rather than by wake, and observed for weeks rather than days.

Randomizing by wake mixes both arms in one user's experience. That contaminates the quantity that matters: tolerance for interruption. Short experiments mostly measure novelty.

  • Canary by population. Google's SRE workbook defines canarying as a partial, time-limited deployment evaluated against the rest of the service as control. It warns that whole-service metrics hide a defective canary. A 20% error rate on 5% of traffic shows up as about 1% overall (Google SRE Workbook).
  • No before/after comparisons. The workbook also advises against them, because time-of-day and day-of-week effects confound them. This is a real risk for fleets whose wakes cluster at the top of the hour.
  • Peeking. Stopping when a daily dashboard first looks significant inflates false positives. Johari, Pekelis and Walsh (2015) developed always-valid p-values and confidence intervals. These remain correct at any stopping time.
  • Long-term holdouts. A small group that never receives the proactive feature measures the cumulative effect of months of nudges, including fatigue and churn that a two-week test cannot see.

Judge-Based Monitoring

Model judges extend review to a sample of production traces that no human team could read in full. They work only if their verdicts are calibrated against people and they are allowed to abstain.

A judge reads a random sample of wakes against a rubric and flags the rest for human review. The rubric asks, for example, whether the agent followed its standing orders, whether the brief was accurate and whether it should have stayed silent.

Anthropic's guide notes that model graders are flexible but non-deterministic. They must be calibrated against human judgment, and teams should read transcripts before trusting any score (Grace et al. 2026).

Selective judging makes that calibration operational. Jung, Brahman and Choi (2024) estimate a judge's confidence and accept its verdict only above a threshold set on human-labeled data. Verdicts below the threshold are escalated. On a Chatbot Arena subset, a cascade starting from a small model guaranteed over 80% human agreement. At that level it still covered nearly 80% of cases. For a fleet, the escalated fraction is the human review queue.

Long-running deployments also produce behavior that no rubric anticipated. In Anthropic's month-long Project Vend, an agent ran a small office shop. It invented a conversation with a nonexistent person, then claimed it would deliver products in person, before returning to normal operation.

Anthropic said it was unclear why this happened. It read the episode as a sign of how unpredictable models can be in long-context settings (Anthropic 2025).

Rubric judges catch failures someone thought to write down. Open-ended review, which asks whether anything in a trace is surprising, finds the rest. It feeds the analysis in Drift, Blast Radius and Runaway Loops.

A Standing Attack Surface

An always-on agent is attacked continuously rather than occasionally. The content it reads on every wake (inbox, calendar invites, web pages, shared documents, tool descriptions) is written partly by strangers.

An agent that triages mail every hour meets such text dozens of times a day, unwatched. All the while it holds credentials that can send, pay and delete. The risk is the product of exposure, privilege and time.

Greshake et al. (2023) named the root weakness: LLM-integrated applications blur the line between data and instructions. They demonstrated indirect prompt injection against Bing's GPT-4-powered chat. In this attack, anyone who can publish text the application later retrieves can steer the model.

Reddy and Gujral (2025) describe the pattern in production as EchoLeak (CVE-2025-32711), a zero-click injection in Microsoft 365 Copilot. One crafted email could trigger unauthenticated data exfiltration. The attack chained bypasses of a cross-prompt-injection classifier, link redaction, auto-fetched images and a permitted proxy. For an agent that wakes on new mail, "zero-click" (no user action needed) is the normal operating mode.

Where Hostile Instructions Enter

Hostile instructions reach a persistent agent through five channels, and only the first resembles classic prompt injection. The figure below places them around the agent's two stores of state: the context assembled for one wake, and memory that survives across wakes.

Five channels through which hostile instructions reach an always-on agent, and four kinds of effect they aim at. Inbound channels Agent Effects sought Mail, messages, invitesindirect injection Web pages, documentsindirect injection Tool and MCP descriptionstool poisoning, rug pull Skills and pluginssupply chain Gateway and channelsspoofing, runtime exploits Context for this wake instructions and data mixed Persistent memory notes, preferences, allowlists Exfiltrate datasend, link, image fetch Spend or transferpurchases, payments Destroy or alterdelete, overwrite Persistplant future instructions write recall a poisoned memory is recalled on every later wake, long after the source is gone
Fig. The attack surface of an always-on agent. Content channels feed the context of one wake; skills and runtime flaws can reach persistent memory or configuration directly. The downward "write" arrow is what turns a one-off injection into a standing compromise.
  1. Content channels. Mail, messages, invites, web pages and shared files: text the agent must read to do its job, and the classic indirect-injection path.
  2. Tool and connector descriptions. Invariant Labs (2025) introduced tool poisoning for the Model Context Protocol (MCP). Tool poisoning hides instructions in a tool's description, visible to the model but not the user. In their demonstration, an innocuous add tool told the model to read ~/.ssh/id_rsa and pass it out through a spare parameter. Two variants matter for long-lived agents:
    • Rug pull. A server changes a description after the user approved it.
    • Shadowing. One server's description rewrites how the agent uses another, trusted server's tool.
  3. Skills and plugins. Instruction packages that run with the agent's privileges are a software supply chain. The evidence so far:
    • Malicious payloads. Unit 42 analyzed OpenClaw's ClawHub marketplace (Seetharam et al. 2026). It relays a Bitdefender estimate that about 17% of skills analyzed in the marketplace's first weeks carried malicious payloads.
    • Scanner evasion. The same analysis documents five skills, analyzed between February and May 2026, that passed the detection tools then in use. One padded a README with about 22 MB of filler to exceed scanner size limits.
    • Leaked secrets. Snyk separately reported that 283 of nearly 4,000 skills (about 7.1%) had agents pass secrets through the model's context in plaintext. The secrets included API keys, passwords and card numbers (The Register 2026).
  4. Gateways and channel identity. Suwansathit et al. (2026) analyzed 470 security advisories filed against OpenClaw in about ten weeks. Their findings:
    • The gateway WebSocket and channel-input interfaces each accounted for about a quarter of advisories.
    • Thirteen allowlist bypasses came from using mutable display names as authorization keys.
    • Three advisories chained into unauthenticated remote code execution.
  5. Persistent memory. Covered next: it makes every other channel lasting.

Memory Poisoning and Persistence

Memory poisoning is specific to persistent agents. An instruction written into memory keeps acting on every later wake, after the message that carried it is gone. Write governance is in Governing State.

Dong et al. (2025) show that an attacker does not need write access to the memory store. Their MINJA attack interacts with the agent only through ordinary queries:

  • Bridging records. Crafted queries induce the agent to store records with "bridging" reasoning steps. These steps link a future victim's query to malicious reasoning.
  • Progressive shortening. The guiding prompt is removed over time. The stored record then looks like ordinary experience and is retrieved for a later user's related question.
  • Results. The authors tested a medical-records agent, a web-shopping agent and a question-answering agent. They report an average injection success rate of 98.2% and an average attack success rate of 76.8%.

The OpenClaw advisory study finds the same pattern in a real runtime. Each of the following advisory types let one compromise outlast the session that caused it:

  • poisoning session history or skill instruction files;
  • rewriting stored approval state;
  • injecting container bind mounts.

Every place an agent keeps state for its future self is a place to leave it instructions.

Measuring Injection Robustness

Injection benchmarks measure how often an attack embedded in tool output succeeds during a benign task. They also measure what a defense costs in utility. They score single episodes, not months of exposure. The wider landscape is in Benchmarks That Probe the Pieces.

  • InjecAgent (Zhan et al. 2024) builds 1,054 test cases from 17 user tools and 62 attacker tools. ReAct-prompted GPT-4 was compromised 24% of the time. Reinforcing the attacker instruction with a "hacking prompt" nearly doubled that rate.
  • AgentDojo (Debenedetti et al. 2024) is a dynamic environment of 97 user tasks and 629 security test cases. It spans workspace, Slack, travel and banking suites. Attacks succeeded against the best agents in under a quarter of cases. A tool filter restricting the agent to tools planned in advance cut attack success to 7.5%. The filter cannot help where the needed tools can also carry out the attack, which is 17% of cases.

Per-episode rates understate the risk of a standing surface. Suppose each attempt independently evades the defenses with probability \(q\). The probability that at least one of \(n\) attempts succeeds is

\[ P_{\text{breach}}(n) = 1 - (1 - q)^{n}, \]

where \(n\) counts hostile items the agent reads over a period. Take a defense that stops 95% of attempts (\(q = 0.05\)):

  • after 30 attempts, the chance of at least one success is 78.5%;
  • after 100 attempts, it is 99.4%;
  • even \(q = 0.01\) gives 63.4% after 100 attempts.

Hence Willison's (2025) point that a 95% catch rate fails by application-security standards. It is also why the controls in Controls That Work Together aim to make a successful injection harmless rather than rare.

Deeper Why independence is the optimistic case

The formula assumes independent draws from a fixed \(q\). Attackers who observe outcomes (a reply arrives, a link is fetched) keep the variants that worked. Attempts therefore become a search.

Suppose a fraction \(f\) of templates evade a classifier almost always. Breach probability then approaches \(1-(1-f)^n\), whatever the average catch rate. One success that writes to memory persists until memory is audited. Benchmark detection rates are therefore upper bounds on a long-lived agent's protection.

VectorHow it reaches an always-on agentPublished evidenceWhat stops it
Indirect injectionRead during routine triage of mail, pages, filesEchoLeak; AgentDojo, InjecAgentCapability separation; no external send without approval
Tool poisoning, rug pull, shadowingConnector metadata loaded on every wakeInvariant LabsPinned, hashed descriptions; per-server data-flow limits
Malicious or leaky skillsInstalled once, run with full agent privilegesUnit 42; Snyk via The RegisterReview and signing; secrets kept out of context
Memory poisoningStored once, recalled on later wakesMINJA; OpenClaw advisory studyProvenance on writes; memory audit and rollback
Runtime and identity flawsExposed gateways, spoofable channel identitiesOpenClaw advisory study; TechRadarOrdinary security engineering: auth, patching, no public exposure

Table. Attack vectors against always-on agents, the evidence for each, and the control that addresses it. Most published evidence comes from one open-source runtime and a handful of products. The relative frequency of vectors in the wild is therefore unknown.

Drift, Blast Radius and Runaway Loops

An always-on agent can do serious harm with no attacker at all, by drifting from its goal, failing silently or looping. Each risk scales with autonomy, privilege and unsupervised time. Each is harder to see than a crash, because the agent keeps producing plausible activity.

Drift and Silent Failure

Long runs expose failure modes that short benchmarks never reach. The compounding arithmetic is in Time Horizon and Reliability. The evidence below shows what the failures look like.

  • Meltdowns in simulation. Backlund and Petersson (2025) ran agents as vending-machine operators for runs of roughly 25 million tokens.
    • One Claude 3.5 Sonnet run misread the failure condition and closed the business. It then tried to contact the FBI over a recurring $2 fee.
    • An o3-mini run typed tool calls as text for about 1,300 messages.
    • Failures did not clearly correlate with the point at which context filled. Variance across runs of one model was large.
  • Goal drift under pressure. Arike et al. (2025) gave agents a goal in the system prompt, then exposed them to competing environmental pressures. All models drifted to some degree. The best, a scaffolded Claude 3.5 Sonnet, held the goal almost perfectly for more than 100,000 tokens. Drift tracked growing pattern-matching as context lengthened.
  • Manipulation in a real deployment. Anthropic ran a second phase of its office shop experiment (Anthropic 2025).
    • Loss-making weeks were largely eliminated after a set of changes: newer models, a supervising "CEO" agent, new tools and procedures.
    • Staff still talked the shopkeeping agent into concessions. They once convinced it a new "CEO" had been elected.
    • A supervising agent on the same model shared its blind spots.
    • Anthropic counts mandatory procedures such as price checks among its most effective changes.

Lost instructions are the most direct production analogue. Willison (2026) republished an account by Summer Yue. Her OpenClaw agent was told to propose, not perform, inbox clean-up. It began deleting mail from her real inbox.

The larger inbox triggered context compaction, the step that summarizes older context to free space. The confirm-first instruction was lost in the summary. Stop messages sent from her phone did not halt the agent, and she had to run to the computer itself. The failure combined three properties:

  • A standing order held only in context (see Keeping the Right State in Context).
  • A destructive tool with no gate below the model.
  • A stop control that ran through the same channel as the agent's own work.

Misreporting makes such failures worse. In the Replit incident, an agent reportedly deleted a production database during a declared code freeze. It told the user a rollback would not work, and the data was then recovered manually (Fortune 2025). Replit announced two fixes: automatic dev/prod database separation and a planning-only mode. Both move the safeguard from the model into the environment.

Runaway Loops and Budget Controls

A runaway loop is one or more agents repeating individually valid actions while spend, messages or side effects accumulate. The mechanism is simple: no step limit, stop condition or cost ceiling.

The best-known account involves two agents in a multi-agent pipeline stuck in a recursive loop for 11 days. The reported cost was about $47,000 (Tech Startups 2025). It rests on a single first-person account by the engineer involved. The weekly costs quoted alongside it sum to about $25,700 over four weeks, not the headline figure. The story is illustrative at best, but the mechanism is not in doubt.

Cumulative spend of a looping agent under three budget policies over eleven days.
Fig. Cumulative spend of a looping agent under three policies, computed for an illustrative burn rate of $25 per hour. A daily budget cap slows the loss but does not stop it, because the loop resumes every day; only a breaker that detects repetition ends the run. Parameters are illustrative, not drawn from any incident.

As the figure above shows, a per-period cap bounds the loss rate, not the loss. Only detection bounds the loss. A breaker should therefore watch behavior (repetition, lack of progress) as well as spend. A minimal version, run inside the agent loop before each tool call, is below.

import hashlib, json
from collections import deque

class CircuitBreaker:
    """Halt a run on spend, step count, or a repeating action pattern."""
    def __init__(self, max_usd=5.0, max_steps=200, window=12, max_repeats=3):
        self.max_usd, self.max_steps = max_usd, max_steps
        self.window, self.max_repeats = deque(maxlen=window), max_repeats
        self.usd, self.steps, self.tripped = 0.0, 0, None

    def allow(self, tool, args, cost_usd):
        if self.tripped:
            return False
        self.steps += 1
        self.usd += cost_usd
        sig = hashlib.sha256((tool + json.dumps(args, sort_keys=True)).encode()).hexdigest()[:12]
        self.window.append(sig)
        n = self.window.count(sig)
        if self.usd > self.max_usd:
            self.tripped = f"spend ${self.usd:.2f} > ${self.max_usd:.2f}"
        elif self.steps > self.max_steps:
            self.tripped = f"{self.steps} steps > {self.max_steps}"
        elif n > self.max_repeats:
            self.tripped = f"{tool} repeated {n}x in last {len(self.window)} actions"
        return self.tripped is None

# Two sub-agents stuck asking each other for changes (a ping-pong loop).
cb = CircuitBreaker()
calls = [("send_message", {"to": "verifier", "body": "please clarify scope"}),
         ("send_message", {"to": "analyzer", "body": "please revise analysis"})]
step = 0
while cb.allow(*calls[step % 2], cost_usd=0.04):
    step += 1
print(f"halted after {cb.steps} actions, ${cb.usd:.2f} spent: {cb.tripped}")
# halted after 7 actions, $0.28 spent: send_message repeated 4x in last 7 actions

Exact-signature matching is a floor, because a loop that varies its wording slips past it. Production breakers add progress checks (has the task ledger changed?) and semantic similarity. Spend limits belong at the provider account too, since a breaker inside a compromised process enforces nothing. Safe restarts after a trip are covered in Durable Execution.

Privacy, Consent and Third Parties

An always-on agent concentrates access once spread across apps and people. One process reads the user's mail, calendar and files. It acts in their name toward others who never agreed to deal with software. The risk lies in how much it reads, where that data goes, and whether counterparts know an agent is involved.

  • Breadth of access. Personal agents of the OpenClaw type typically run continuously and connect to email, calendar, files and the command line (TechRadar 2026). One configuration file therefore holds tokens for every service. The same report describes three exposures:
    • an infostealer capturing such a file;
    • Censys counting more than 21,000 publicly exposed instances;
    • a misconfigured database on a third-party platform built on OpenClaw, exposing about 1.5 million agent API keys.
  • Data flow through the model. Secrets and personal data in context can end up in logs, provider retention, memory and summaries, as the Snyk findings above show. Credentials belong in a vault the model never reads.
  • Third parties. People who write to the user or receive the agent's replies never consented to an automated reader. Their messages are also the main injection channel. Retaining less about them serves privacy and security at once.

Disclosure is the clearest regulatory hook. Article 50 of the EU AI Act covers systems that interact directly with people. Providers must design them so that those people are informed they are dealing with an AI system. The exception is when that is obvious to a reasonably well-informed person in context. Per the Act's application schedule, the article applies from 2 August 2026 (AI Act Art. 50).

When an agent sends email, books by phone or negotiates with a vendor, the counterpart usually cannot tell. "Obvious from context" therefore rarely applies. A conservative default labels outbound agent messages and identifies the agent at the start of calls. Jurisdiction-specific rules on bots and automated calls should be checked by counsel rather than assumed.

Platform terms add a constraint. Sites often restrict automated access, and whether a user-delegated agent counts is unsettled. Official APIs and clear identification reduce exposure. Visible, editable memory and per-connector revocation (The Permission Layer, Governing State) are the user-facing side of the same commitments.

Controls That Work Together

No single control makes an always-on agent safe, because the failures above have different causes: hostile input, lost instructions, buggy runtimes, loops. The controls that work are layered so that each catches what the others miss. The most important of them sit outside the model, where a prompt cannot reach them.

Design-Level Separation

The strongest controls change what a compromised model is able to do, rather than trying to detect compromise. Willison's lethal trifecta (private data, untrusted content, external communication) states the idea.

Meta's Agents Rule of Two (October 2025) generalizes it. Within one session, an agent should have at most two of three properties:

  • (A) processing untrustworthy input;
  • (B) access to sensitive systems or private data;
  • (C) the ability to change state or communicate externally.

If it needs all three, it should run under human approval or another reliable check, or split the work across fresh sessions.

An always-on inbox agent has all three by default, which is why architecture matters. Beurer-Kellner et al. (2025) propose six patterns with one common principle. Once an agent has ingested untrusted input, that input must be unable to trigger consequential actions. Two of the patterns:

  • Plan-Then-Execute. The tool calls are fixed before untrusted data is read.
  • Dual LLM. Only a privileged model, which never sees untrusted data, gets tools. A quarantined model parses that data without tools.

Debenedetti et al. (2025) implement the dual pattern as CaMeL:

  • Two models. A privileged model sees only the user's request and writes a program in a restricted Python subset. A quarantined model turns untrusted data into structured values and has no tools.
  • A tracking interpreter. A custom interpreter tags every value with provenance and allowed readers, and tracks data flow. It checks security policies before each tool call. When a policy would be violated, it blocks the call or asks the user.
  • Cost. CaMeL solves 77% of AgentDojo tasks with provable security, against 84% undefended. That is a modest utility cost for a guarantee no classifier offers.

The limit for always-on use is that a triage run decides what to do because of what the mail says. The plan cannot be fixed in advance. Separation therefore works per action class. Reading and summarizing stay free. Any send or state change with arguments derived from untrusted data needs approval.

Defense in Depth

Below design-level separation sit four further layers, each familiar from conventional security and each insufficient alone. The figure below shows them in the order an action meets them.

Defense-in-depth layers between untrusted input and an effect in the world, all writing to one audit log. Untrustedinput 1 Separate dual model,provenancetags 2 Leastprivilege scoped tokens,narrow tools 3 Policygate tiered approval,never-do list 4 Monitor budgets, loopbreaker, judgemodel 5 Killswitch Effectin world Append-only audit log every proposal, decision, approver and effect, stored outside the agent's reach layers 2 to 5 run outside the model; a prompt cannot switch them off
Fig. Defense in depth for an always-on agent, in the order a proposed action meets each layer. Each layer contains failures of the one before it; the audit log makes any failure diagnosable afterwards.
  1. Least privilege. OWASP's entry on excessive agency traces agent harm to excessive functionality, permissions and autonomy. It recommends narrow tools instead of a general shell, minimal OAuth scopes, and authorization enforced downstream rather than by the model. For a standing agent, that means read-only-by-default credentials per connector. Infrastructure the model cannot see refreshes them.
  2. Policy gate. Code below the model sorts actions into tiers (free, notify, ask, never). A lost instruction therefore cannot remove the gate, unlike the text-only gates in the Yue and Replit incidents. Approval UX is treated in The Permission Layer.
  3. Monitors and budgets. Breakers and spend caps catch runaway behavior, and a reviewing model catches some misbehavior. AI control research (Greenblatt et al. 2023) designs such protocols for a possibly adversarial agent. One example is a weaker trusted model scoring and editing a stronger model's outputs. A monitor on the agent's own model may share its blind spots, as the Project Vend supervisor did.
  4. Kill switch. A stop must work out of band. It revokes tokens, pauses the scheduler entry and terminates the sandbox. It runs from a control plane that does not depend on the agent reading a message. A stop sent through the agent's own chat is a request, not a switch.
ControlContainsDoes not containCost to the user
Capability separation (dual model, CaMeL)Injection steering sends and state changesBad judgment on trusted input; runtime exploitsSome utility loss; harder to build
Least privilege, scoped tokensBlast radius of any compromiseMisuse of the permissions that remainMore grants to manage
Tiered approval gate in codeDestructive or external actions, lost instructionsHarm inside the "free" tier; approval fatigueInterruptions, latency
Loop breaker and external spend capsRunaway cost and spamSingle high-impact actionsOccasional false stops
Out-of-band kill switchAnything still running once noticedDamage before anyone noticesNegligible

Table. What each control contains and what it leaves to the others. The entries are the author's synthesis of the incidents and papers cited in this part, not measured effectiveness rates.

Two layers do most of the work:

  • Least privilege caps the damage of every failure mode.
  • A gate in code survives compaction, drift and injection alike.

Detection layers reduce frequency, not exposure. Operational mappings appear in Production Challenges and Solutions.

Fleet Scheduling for Millions of Agents

At fleet scale the scheduler decides whether an always-on product survives its busiest minute. A million agents whose owners each asked for a brief "at 8 a.m." will wake in the same second unless the platform spreads them out.

Distributed cron met these synchronized spikes a decade ago. Its fixes carry over almost unchanged: hashed start times, bounded jitter, catch-up policies, admission control and priority classes. The single-agent loop and its triggers are covered in The Wake–Observe–Decide–Act–Report Loop.

Where Wake Storms Come From

A wake storm is many agents becoming runnable at once. Human calendars make storms the default.

  • Round times. People choose them.
  • Time zones. They align whole populations.
  • External events. A market open, a mass email or the end of an outage releases backlogs together.

Davidovič and Guliani (2015) describe the same pattern in Google's datacenter-wide cron service:

  • Midnight spikes. Teams independently pick midnight, and some jobs fan out to thousands of workers. The combined spikes strain a datacenter: a thundering herd (many clients hitting one resource at once) at the job level.
  • Hashed wildcard. A "?" crontab wildcard lets the system choose the value. It hashes each job's configuration over the allowed range, so launches spread deterministically.
  • Fail closed. Some jobs tolerate a duplicate launch (garbage collection). Some tolerate a skipped one (a five-minute collection job, but not monthly payroll). A duplicate such as a second mass newsletter may be impossible to undo. The service therefore fails closed: it prefers skipping a launch to risking a double launch.

Two worked examples size the problem. If one million agents in one time zone have an 08:00 brief, unspread wakes land within about a second. Uniform jitter over 30 minutes cuts the rate to about \(10^6 / 1800 \approx 560\) wakes per second.

Steady heartbeats are sized with Little's law, \(L = \lambda W\). Here \(L\) is wakes in flight, \(\lambda\) the arrival rate and \(W\) the mean time each wake takes. If the same million agents wake hourly, \(\lambda \approx 278\) wakes per second. A mean wake duration of \(W = 60\) s then puts \(L \approx 16{,}700\) wakes in flight. The fleet is provisioned for that number, not for the agent count.

Storm sourceWhat synchronizes the agentsMain mitigation
Round wall-clock timesUsers pick 08:00 or the top of the hourHashed per-agent offset within a window
Time-zone boundariesA whole region reaches the same local hour togetherOffsets within each zone; capacity follows the sun
Upstream event burstsOne newsletter or market event triggers many inbox or price watchersCoalesce triggers per agent; shed duplicate wakes
Recovery after an outageMissed schedules all become due when the scheduler returnsShort catch-up windows; skip stale time-bound wakes
Retry stormsFailed wakes retry on the same timerRetry at one layer, capped with a token bucket and jitter
Provider rate limitsA 429 response sends every worker into backoff at onceFull-jitter backoff; a global concurrency budget per provider

Table. Common sources of wake storms and the primary mitigation for each.

Jitter, Hashing and Catch-Up

Spreading wakes involves three decisions: each agent's offset, how much randomness to allow, and what to do when a scheduled time has passed. Each is a product choice, because the user sees the result.

  • Deterministic offsets. The Amazon Builders' Library recommends jitter for periodic work. It prefers a consistent per-host offset to a random draw, because repeatable patterns are easier to troubleshoot. Hashing the agent id also gives a stable experience. A brief that always arrives at 08:07 feels scheduled; one that wanders feels broken.
  • Bounded random jitter. Temporal Schedules add a random offset up to a configured maximum, never pushing an action past the next scheduled one.
  • Overlap and catch-up. Temporal's default overlap policy skips a run while the previous one is still running. Its default catch-up window is one year. That suits batch jobs, not briefs. An 08:00 brief fired at 14:00 after an outage is noise, so time-bound wakes need short windows.
  • Late commitments. Commitments such as a rent reminder need the opposite. They need a durable timer that fires late rather than never, with an idempotent action (one that has the same effect if repeated; see Durable Execution).

Google's fail-closed preference carries over. A skipped digest costs little, and a duplicated email costs trust. For actions the user relies on, any skipped run must be reported.

Admission Control and Priority

Wakes are not equally urgent, so a fleet scheduler admits work by class. A user waiting on an answer outranks a scheduled brief. A scheduled brief outranks deferrable housekeeping such as memory consolidation. Under overload the lowest class is deferred or shed, so the highest meets its latency target.

Retries are how overload gets worse. The Builders' Library gives an example of compounding: three retries at each of five layers. Together they multiply database load 243-fold. It recommends retrying at one layer, capped by a local token bucket (a refilling allowance of retries). Per-tenant buckets between wake workers and the model gateway keep one tenant's storm from starving others.

Brooker (2015) compared backoff variants in simulation. "Full jitter" backoff draws each sleep uniformly from the whole capped backoff range. Among the variants he compared, it did the least total work.

Provider pricing now mirrors these classes, so deferral becomes savings.

  • OpenAI background requests. OpenAI's API pricing page (read 2026-11-29) discounts eligible background requests on the models it names. Rates are 30% below standard for a two-hour completion window. They are 40% below for an eight-hour window.
  • Anthropic Batch. Anthropic's pricing page (read the same day) gives a 50% Batch discount on input and output tokens.
  • Consumer plans. These degrade instead. The GPT-5 system card says that once usage limits are reached, a mini version of each model handles the remaining queries.
Fleet wake path: triggers, durable timers, spreading, admission control, priority queues, wake workers, model router and agent runtime. Trigger sources Durable timer store Spread + coalesce Admission control schedules · webhooks heartbeats self-set follow-ups next-fire index catch-up window overlap policy hashed offset bounded jitter one wake per agent per-tenant buckets retry budget defer · shed admitted Priority queues P0 user waiting P1 time-bound P2 deferrable Wake workers Model router Agent runtime concurrency ≈ λ·W lease + heartbeat tier 0–3 ladder batch for P2 sandbox · tools permission gate
Fig. The path a wake takes through a fleet. The top row decides when an agent becomes runnable, admission control and the queues decide whether and in what order, and the bottom row runs it with the cheapest sufficient model (see Model Routing).

Durable Execution

An always-on agent will crash mid-action. Machines are preempted, deployments restart workers, and provider calls time out without saying whether they took effect.

The goal is effectively once behavior: each intended side effect happens one time despite crashes, retries and replays. No executor can promise this alone. It comes from pairing at-least-once execution with idempotent or deduplicated effects. Workflow engines are introduced in The Agent's Own Computer. This section covers side-effect semantics.

Why Exactly-Once Takes Two Parties

An executor cannot tell whether a timed-out call reached the provider. It must either retry and risk a duplicate, or stop and risk never acting. Durable-execution platforms make that choice explicit, and well-behaved providers supply the other half.

  • Temporal. According to Temporal's guidance, activities (the steps that perform side effects) retry without limit by default, which gives at-least-once execution. Setting one maximum attempt gives at-most-once, which may mean zero runs. Keys should be a business identifier, or the workflow run id joined with the activity id.
  • AWS Lambda durable functions. The Lambda documentation gives steps at-least-once semantics. Completed steps replay from checkpoints, but an interrupted step may run again.
  • The provider's side. Stripe's idempotent requests are the reference design for the other party. The server saves the first response to a key, even a 500 error, and replays it for retries. It rejects a reused key with different parameters, and may prune keys after 24 hours.

Language-model agents add a hazard: the decision itself is non-deterministic. If replay calls the model again after a crash, it may write a slightly different email. A key derived from that content would then let a duplicate through.

The decision must therefore be checkpointed before acting. The key must be derived from the step's identity (run, step, action), not from regenerated text. Stripe's parameter check suggests a second guard: detect a replay of the same step with different arguments, and keep the original.

The Outbox Pattern for Agent Actions

The transactional outbox closes the gap between recording a decision and performing it. Writing to the agent's database and calling an external API are two writes. A crash between them leaves them out of step.

The AWS prescriptive guide describes the fix. Write the state change and an outbox row in one local transaction, and let a separate dispatcher deliver the outbox. The dispatcher delivers at least once, so consumers must be idempotent.

The sketch below applies the pattern to an agent's action ledger. The propose function records the decision and the pending effect atomically. The dispatch function sends unacknowledged rows with their keys. The run simulates three faults: a replayed decision, a reworded replay, and a worker that dies after sending but before acknowledging.

import hashlib, json, sqlite3

db = sqlite3.connect(":memory:")
db.executescript("""
CREATE TABLE ledger (key TEXT PRIMARY KEY, step TEXT, args TEXT, state TEXT);
CREATE TABLE outbox (key TEXT PRIMARY KEY, action TEXT, args TEXT, sent INTEGER DEFAULT 0);
""")

def idem_key(run_id, step, action):
    """Derived from the step's identity, not from model output, so a replay maps to the same key."""
    return hashlib.sha256(f"{run_id}:{step}:{action}".encode()).hexdigest()[:16]

def propose(run_id, step, action, args):
    """Record the decision and the pending side effect in ONE local transaction."""
    key, blob = idem_key(run_id, step, action), json.dumps(args, sort_keys=True)
    with db:  # both rows commit, or neither does
        row = db.execute("SELECT args FROM ledger WHERE key=?", (key,)).fetchone()
        if row and row[0] != blob:
            return key, "conflict: replay produced different args; original kept"
        db.execute("INSERT OR IGNORE INTO ledger VALUES (?,?,?,?)", (key, step, blob, "decided"))
        db.execute("INSERT OR IGNORE INTO outbox (key, action, args) VALUES (?,?,?)", (key, action, blob))
    return key, "recorded" if not row else "duplicate ignored"

class EmailAPI:
    """Stand-in for a provider that honours an Idempotency-Key header."""
    def __init__(self): self.saved, self.delivered = {}, []
    def send(self, key, args):
        if key in self.saved: return self.saved[key]            # retry: replay saved response
        self.delivered.append(args["subject"]); self.saved[key] = f"msg-{len(self.delivered)}"
        return self.saved[key]

def dispatch(api, crash_after_send=False):
    for key, action, args in db.execute("SELECT key, action, args FROM outbox WHERE sent=0").fetchall():
        resp = api.send(key, json.loads(args))
        if crash_after_send: raise RuntimeError(f"worker died after send, before ack ({resp})")
        with db:
            db.execute("UPDATE outbox SET sent=1 WHERE key=?", (key,))
            db.execute("UPDATE ledger SET state='done' WHERE key=?", (key,))

api = EmailAPI()
print(propose("run-42", "step-3", "send_email", {"to": "landlord", "subject": "Rent receipt"}))
print(propose("run-42", "step-3", "send_email", {"to": "landlord", "subject": "Rent receipt"}))
print(propose("run-42", "step-3", "send_email", {"to": "landlord", "subject": "Receipt for rent"}))
try:
    dispatch(api, crash_after_send=True)
except RuntimeError as e:
    print("crash:", e)
dispatch(api)                                     # recovery pass re-sends the unacked row
print("delivered:", api.delivered, "| ledger:", db.execute("SELECT step, state FROM ledger").fetchall())

Output (Python 3, run for this book):

('05ec8d9704d1d773', 'recorded')
('05ec8d9704d1d773', 'duplicate ignored')
('05ec8d9704d1d773', 'conflict: replay produced different args; original kept')
crash: worker died after send, before ack (msg-1)
delivered: ['Rent receipt'] | ledger: [('step-3', 'done')]

The recovery pass re-sent the row, and the provider's key check absorbed it, so one email went out. The reworded replay was caught instead of becoming a second message. The demo relies on a provider that honours keys. Many real action surfaces do not, as the table below shows.

Side-effect classExampleSafe retry strategy
Read-onlySearch the inbox, fetch a pageRetry freely, with backoff and a budget
Naturally idempotentSet a calendar event's status, upsert a noteRetry; the last write wins
Idempotent API with keyPayments with an idempotency keyRetry with the same key, derived from the step's identity
Not idempotent, but queryableCreate a ticket in a tracker without key supportBefore retrying, query for an object tagged with the key
Not idempotent, not queryablePlain SMTP send, phone call, physical order by formAt most once; on uncertainty, report to the user instead of retrying

Table. Side effects grouped by what makes a retry safe. In the last row, effectively-once cannot be engineered; the agent can only surface the uncertainty.

Long waits need the same care. An approval arriving three days later, or a follow-up timer the agent set itself, must survive restarts as durable state, not as a sleeping process. The log of timers and outbox rows doubles as the audit trail that Controls That Work Together relies on.

Model Routing and Tiered Wake-Ups

Most wakes of an always-on agent find nothing worth doing. The cheapest design therefore answers "is there anything to do?" with the cheapest reliable mechanism, and keeps frontier models for the few wakes that need them. Routing research and prompt-caching economics decide whether a frequent wake costs a fraction of a cent or many cents.

A Ladder of Wake-Up Tiers

A tiered wake runs the cheapest check first and escalates only when that check cannot settle the question. Four rungs cover most designs, and the figure below arranges them left to right.

  • Tier 0, no model. A cursor, hash or ETag (an HTTP version tag) comparison. If nothing changed, sleep with zero tokens.
  • Tier 1, small-model triage. A small model checks the change against standing orders: nothing, a note, or a task.
  • Tier 2, mid-tier model. Routine drafting, summarizing and filing.
  • Tier 3, frontier model. Hard or ambiguous steps and high-blast-radius writes (writes whose errors spread widest), then the permission layer.
Tiered wake-up ladder with an exit to sleep or report under each tier. Tier 0 · no model Tier 1 · small Tier 2 · mid Tier 3 · frontier cursor · hash · ETag changed anything? triage vs orders none · note · task routine tasks draft · file · summarize hard or risky steps then permission gate changed task escalate unchanged nothing / note done done or refused sleep 0 tokens sleep or log note cheapest tokens report mid-tier tokens report or ask frontier tokens
Fig. A tiered wake-up ladder. Each rung settles the wake (downward) or escalates (rightward); the goal is that most wakes leave at tier 0 or 1.

What Routing Research Says

Routing research shows large savings at chosen operating points and a stubborn gap to an ideal router. That sets realistic expectations for a wake ladder.

Moslem and Kelleher (2026) separate the two main designs in a survey. A router makes one decision per query. A cascade runs models in sequence and escalates when a quality estimate judges the answer insufficient.

  • FrugalGPT. Chen et al. (2023) report that FrugalGPT, a learned cascade, matched the best single model (GPT-4) at up to 98% lower cost on their own evaluation tasks.
  • RouteLLM. Ong et al. (2024) trained RouteLLM routers on preference data to pick a strong or weak model. They report cost cut by over 2× in some of their benchmark settings, without loss of response quality.
  • LLMRouterBench. Li et al. (2026) built LLMRouterBench: over 400K instances drawn from 21 datasets, covering 33 models. By their measurements many methods perform alike. Several do not reliably beat the best single model in the performance-cost setting. The top methods cut cost by up to 31.7% while matching it.
  • Routing plateau. Lu et al. (2026) report a "routing plateau". The top 15 routers on RouterBench fall within 0.23 percentage points of one another. Across five benchmarks, the best trails an oracle (a perfect router) by 10 to 30 points. Most of the gap is on hard queries. Their explanation is that routers learn which models are strong in general, not which will get a given query right.

None of these studies evaluates agent wakes, and the survey judges systematic evaluation of routing still immature. Elbakoury et al. (2026) label the order-of-magnitude saving in their title illustrative: a modeled example rather than a measurement. Their one measured experiment, a cascade on GSM8K, reports about 2.2× lower reconstructed API cost at similar accuracy.

The plateau still teaches something. If per-query correctness is hard to predict, an agent router should use structural signals it can trust: trigger type, tools involved, and whether a write is proposed. It should escalate uncertain or write-bearing steps by rule. The GPT-5 system card describes a product router using similar signals: conversation type, complexity, tool needs and explicit intent.

Deeper Expected cost of a cascade and when escalation pays

Let a wake pass through tiers \(1, \dots, K\) with per-call cost \(c_k\), and let \(e_k\) be the fraction of wakes that tier \(k\) escalates. If every escalated wake has already paid for the lower tiers, the expected cost per wake is

\[ \mathbb{E}[C] = c_1 + e_1 c_2 + e_1 e_2 c_3 + \dots = \sum_{k=1}^{K} c_k \prod_{jA direct router that sends a fraction \(q_k\) of wakes straight to tier \(k\) pays \(\sum_k q_k c_k\) plus the router's own cost. It beats a cascade when the router is accurate. A cascade is safer when correctness is hard to predict, as the plateau suggests.

  • Escalation is worth paying for when the expected loss from a wrong low-tier answer exceeds the extra cost: \(p_{\text{err},k}\cdot L > c_{k+1}\), where \(L\) is the cost of a bad action or a missed one. \(L\) is small for notes and large for payments or messages.
  • Tier 0 dominates the sum. With \(c_0 \approx 0\) and a tier-0 pass-through rate \(e_0\), every later term is multiplied by \(e_0\). Halving \(e_0\), for example with push events instead of polling, halves the heartbeat model bill.
  • Latency adds up too. Sequential tiers add latency, so P0 work can skip to the tier its trigger implies.

Prompt Caching and the Wake Interval

Prompt caching can make the stable part of each wake nearly free: the system prompt, standing orders and tool schemas. This works only if the wake interval fits inside the cache lifetime. Otherwise caching costs more than not caching. The interaction is easy to miss, because scheduling and caching usually belong to different teams.

Anthropic's prompt caching documentation (read 2026-11-29) sets out the mechanics:

  • Writes. A cache write costs 1.25× base input for a five-minute lifetime. A one-hour lifetime costs 2×.
  • Reads. Reads cost 0.1× on most models. They cost 0.05× on Opus 5.5 and Sonnet 5.5.
  • Refresh and minimum size. Each read refreshes the lifetime for free. Opus 5.5, Sonnet 5.5 and Haiku 5.5 cache prompts from 512 tokens.

An hourly heartbeat with a five-minute cache misses every time, so it pays the write premium on every wake. With a one-hour cache and an interval just under an hour, it hits after the first write. In Unit Economics, hourly frontier triage costs more with five-minute caching than with none.

Three habits follow:

  • Match the period to the cache. Set heartbeat periods with the cache lifetime in view.
  • Batch checks. Batch checks into one wake.
  • Static content first. Put static content first in the prompt, so the cached prefix survives.

Harnesses are moving this way. OpenClaw's documentation folds heartbeat checks into ordinary scheduled jobs, with active-hours and idle-only settings. A check can return no reply when nothing needs attention. Server-side prefix caching is covered in Serving for Bursty, Long-Context Workloads.

Unit Economics

The cost of an always-on agent is best stated per agent-day: tokens for all wakes and tasks, plus sandbox compute. Storage is not priced here.

One illustrative workload was computed from list prices read on 2026-11-29. Built naively, it costs about $31 a day. With caching, tiered models and an on-demand sandbox, it costs about $5.20.

The order of savings matters more than the totals. Caching comes first, then tiering, then the sandbox meter. After those, frontier escalations dominate.

Pricing One Agent-Day

An agent-day is priced by multiplying each wake's tokens by its model's list prices and adding sandbox hours. The prices below are cited; the workload is an assumption resembling a busy personal agent.

Item (USD)Base input / MTokCache write 5 min / 1 hCache readOutput / MTok
Claude Opus 5.54.005.00 / 8.000.2020.00
Claude Sonnet 5.52.002.50 / 4.000.1010.00
Claude Haiku 5.5 (prompts ≤ 100K)0.100.125 / 0.200.010.50
E2B sandbox, 2 vCPU + 4 GiB$0.000014/s per vCPU + $0.0000045/s per GiB; the default 2 vCPU + 4 GiB ≈ $0.1656 per wall-clock hour

Table. Price inputs, read on 2026-11-29 from the Claude pricing page and the E2B pricing page. Re-run against current pages before use.

The workload has three parts:

  • Triage. 24 hourly triage wakes. Each has an 8,000-token stable prefix and 1,000 fresh tokens. Each produces 150 output tokens.
  • Routine tasks. Three tasks of 30 turns each. Every turn carries 40,000 tokens of context and produces 800 output tokens.
  • Hard task. One task of 40 turns. Every turn carries 60,000 tokens of context and produces 1,000 output tokens.

Turns within a task are seconds apart. The first turn writes the five-minute cache. On every later turn, 90% of the context is a cache hit and the new 10% is written.

Three configurations are compared:

  • Configuration A. The frontier model everywhere, with no caching and a 24-hour sandbox.
  • Configuration B. A with five-minute caching added.
  • Configuration C. Haiku for triage with a one-hour cache, Sonnet for routine tasks, Opus only for the hard task, and a two-hour sandbox.
P = {  # USD per million tokens: base input, 5m write, 1h write, cache read, output
    "opus":   dict(inp=4.00, w5=5.00,  w1h=8.00, rd=0.20, out=20.00),
    "sonnet": dict(inp=2.00, w5=2.50,  w1h=4.00, rd=0.10, out=10.00),
    "haiku":  dict(inp=0.10, w5=0.125, w1h=0.20, rd=0.01, out=0.50)}
E2B_HOUR = 2 * 0.0504 + 4 * 0.0162            # 2 vCPU + 4 GiB, wall-clock

def call(m, prefix, fresh, out, cache):
    p = P[m]
    if cache is None:       cost = (prefix + fresh) * p["inp"]
    elif cache == "miss5":  cost = prefix * p["w5"] + fresh * p["inp"]
    elif cache == "miss1h": cost = prefix * p["w1h"] + fresh * p["inp"]
    else:                   cost = prefix * p["rd"] + fresh * p["w5"]   # hit
    return (cost + out * p["out"]) / 1e6

def task(m, turns, ctx, out, cached):
    if not cached: return turns * call(m, ctx, 0, out, None)
    first = call(m, ctx, 0, out, "miss5")        # turn 1 writes the cache
    return first + (turns - 1) * call(m, 0.9 * ctx, 0.1 * ctx, out, "hit")

def day(c):
    tri = 24 * call(c["tri"], 8000, 1000, 150, c["tri_cache"])
    if c["tri_cache"] == "hit":   # first wake of the day writes the 1h cache
        tri += call(c["tri"], 8000, 1000, 0, "miss1h") - call(c["tri"], 8000, 1000, 0, "hit")
    return dict(triage=tri,
                tasks=3 * task(c["sub"], 30, 40000, 800, c["cached"]),
                escalation=task(c["hard"], 40, 60000, 1000, c["cached"]),
                sandbox=c["box_hours"] * E2B_HOUR)

configs = {
 "A frontier everywhere, no cache, box 24h": dict(tri="opus", tri_cache=None, sub="opus", hard="opus", cached=False, box_hours=24),
 "B frontier everywhere, cached, box 24h":   dict(tri="opus", tri_cache="miss5", sub="opus", hard="opus", cached=True, box_hours=24),
 "C tiered + 1h cache, box on demand":       dict(tri="haiku", tri_cache="hit", sub="sonnet", hard="opus", cached=True, box_hours=2)}
for name, c in configs.items():
    d = day(c); tot = sum(d.values())
    print(f"{name:44s} " + "  ".join(f"{k}={v:6.2f}" for k, v in d.items()) + f"  total=${tot:6.2f}/day  ${tot*30:7.0f}/month")

Output (Python 3, run for this book):

A frontier everywhere, no cache, box 24h     triage=  0.94  tasks= 15.84  escalation= 10.40  sandbox=  3.97  total=$ 31.15/day  $    935/month
B frontier everywhere, cached, box 24h       triage=  1.13  tasks=  4.41  escalation=  2.69  sandbox=  3.97  total=$ 12.20/day  $    366/month
C tiered + 1h cache, box on demand           triage=  0.01  tasks=  2.20  escalation=  2.69  sandbox=  0.33  total=$  5.23/day  $    157/month
Computed cost of one agent-day under three configurations, split into triage, routine tasks, escalation and sandbox.
Fig. Cost of one illustrative agent-day, computed from list prices on the Claude and E2B pricing pages (read 2026-11-29) using the workload and code above. The workload is illustrative; the prices are cited.

Four observations follow:

  • Caching is the first lever. Within-task caching cuts frontier task cost from $15.84 to $4.41 a day.
  • Caching can backfire. Triage under B costs $1.13, more than $0.94 uncached, because hourly wakes always miss a five-minute cache.
  • Tiering makes triage nearly free. Haiku with a one-hour cache brings 24 triage wakes to about a cent. Sonnet halves routine-task cost.
  • The sandbox meter matters as much as the model. A sandbox held all day ($3.97) costs more than B's triage. With the other levers pulled, the frontier escalation ($2.69) is the largest item. The next saving therefore comes from escalating less often, not from cheaper tokens.

How Vendors Price Always-On Work

Vendors meter always-on work by tokens, runtime hours, sandbox resources and latency tier. The meter often moves the bill more than the headline rate, so it belongs in the architecture review.

  • Runtime hours. The Claude pricing page bills code execution at $0.05 per container-hour beyond 1,550 free hours a month. Claude Managed Agents cost $0.08 per session-hour, metered only while a session runs.
  • Sandbox resources and session caps. E2B bills vCPU and RAM per wall-clock second. It caps sessions at one hour (Hobby) or 24 hours (Pro), with persistent sessions on Enterprise. An agent that outlives the cap must checkpoint and resume.
  • Active CPU versus wall clock. Şahin (2026) compares meters for agents that mostly wait. The example is a bursty hour: 2 vCPU doing about 10 core-minutes of work. The article computes $0.166 for that hour on a wall-clock meter, versus $0.017 to $0.106 on active-CPU meters. The edge shrinks as utilization rises.
  • Latency tiers. Two discounts under Admission Control reward a scheduler that labels each wake's deadline. The OpenAI background windows give 30% and 40% off. The Anthropic Batch discount gives 50%.

The long-run trend helps but does not guarantee lower bills. Cottier et al. (2025) at Epoch AI estimated that the price of a fixed capability level fell about 9 to 900 times per year, depending on the milestone. They cautioned that the fastest declines may not persist.

Always-on products spend those savings on more wakes, longer horizons and larger contexts. Spend per agent can therefore grow as token prices fall. The figure to track is cost per completed outcome, measured with the telemetry in Online Evaluation in Production.

Serving for Bursty, Long-Context Workloads

An always-on agent loads inference infrastructure differently from a chat product. It is idle most of the time and wakes in bursts that cluster at the top of the hour and around inbox traffic. Each wake re-reads a long, mostly unchanged context before producing a short decision.

The serving problem is therefore dominated by the prefill of long prompts and by the memory needed to hold their key-value (KV) caches, not by decoding speed. Prefill is the pass that reads the whole prompt before the first output token. Four techniques matter most:

  • paged KV memory;
  • prefix reuse across wakes;
  • prefill/decode separation;
  • tiered cache storage.

The KV Cache as the Agent's Working Memory

For a transformer, the per-token cost that persists across a session is the KV cache. It holds the key and value vectors of every token already processed, for every layer. Its size per token is fixed by the architecture. A long-lived agent with a long context therefore pays for it in accelerator memory for as long as its cache is kept warm.

For a model with \(L\) layers, \(h_{kv}\) key-value heads of dimension \(d\) and \(b\) bytes per element, the cache for a context of \(n\) tokens is

\[ M_{\text{KV}}(n) = 2 \cdot L \cdot h_{kv} \cdot d \cdot b \cdot n, \]

where the factor 2 counts keys and values. Grouped-query attention keeps \(h_{kv}\) small.

Two published configurations make the numbers concrete. The Llama 3.1 70B configuration lists 80 layers and 8 KV heads. Its hidden size of 8,192 over 64 attention heads gives \(d=128\). It uses bfloat16 weights and a 131,072-token position limit. The Llama 3.2 3B configuration lists 28 layers, 8 KV heads and \(d=128\).

The formula gives 320 KiB per token for the 70B model and 112 KiB per token for the 3B model, as the figure below plots.

KV cache size in GiB against context length for Llama 3.1 70B and Llama 3.2 3B in bfloat16, computed from their published configurations.
Fig. KV cache per session against context length, computed with the formula above from the published configurations of Llama 3.1 70B and Llama 3.2 3B (bfloat16, no cache quantization). The horizontal axis is logarithmic. At the full 128k-token window one 70B session holds 40 GiB of cache, about a third of the model's own bfloat16 weights (roughly 130 GiB, off the scale).

The arithmetic explains the central tension. Take a thousand dormant agents on the 70B model, each with a 32k-token context. Keeping them warm would need about 10 TiB of KV memory, far more than the accelerators that serve them can hold. The serving stack must decide, wake by wake, whether a cache is kept, moved to cheaper memory or recomputed.

Keeping the Right State in Context covers the complementary lever on the agent side: keeping \(n\) small through compaction.

Deeper Sizing KV memory for a fleet

The calculation is simple enough to keep in a capacity-planning notebook. The function below reproduces the figure's numbers. The fleet estimate assumes every warm agent holds its whole context. That is an upper bound, because sessions sharing a prefix share its blocks (see Prefix Reuse Across Wakes).

def kv_bytes(layers, kv_heads, head_dim, tokens, bytes_per_elem=2):
    """Keys and values for every layer and token (bf16 by default)."""
    return 2 * layers * kv_heads * head_dim * bytes_per_elem * tokens

GiB = 2**30
llama70b = dict(layers=80, kv_heads=8, head_dim=128)   # published config
llama3b  = dict(layers=28, kv_heads=8, head_dim=128)

for name, cfg in [("70B", llama70b), ("3B", llama3b)]:
    per_tok = kv_bytes(tokens=1, **cfg) / 1024
    full = kv_bytes(tokens=131072, **cfg) / GiB
    print(f"{name}: {per_tok:.0f} KiB/token, {full:.1f} GiB at 128k")

warm_agents, ctx = 1000, 32768
fleet = warm_agents * kv_bytes(tokens=ctx, **llama70b) / GiB
print(f"{warm_agents} warm 70B agents at {ctx} tokens: {fleet:,.0f} GiB")
# 70B: 320 KiB/token, 40.0 GiB at 128k
# 3B: 112 KiB/token, 14.0 GiB at 128k
# 1000 warm 70B agents at 32768 tokens: 10,000 GiB

An 8-bit cache halves every number, which does not change the conclusion.

Prefix Reuse Across Wakes

Most of what an agent sends on each wake is identical to what it sent on the previous wake. The largest serving saving therefore comes from reusing the KV cache of a shared prefix instead of recomputing it. Reuse needs block-level sharing of cache memory and a lookup that finds the longest cached prefix.

Kwon et al. (2023) supplied the first with PagedAttention, the basis of vLLM.

  • Paged blocks. The KV cache is stored in fixed-size blocks addressed through a block table. The design borrows paging from operating-system virtual memory, so a growing sequence never needs a contiguous allocation.
  • Reported gain. The authors report 2–4× higher throughput than earlier systems such as FasterTransformer and Orca at the same latency. Gains are larger for longer sequences.

Zheng et al. (2024) supplied the second with RadixAttention in SGLang.

  • Radix tree. Cached prefixes are kept in a radix tree, so any new request reuses the longest matching path.
  • Eviction. When memory runs short, least-recently-used leaves are evicted.
  • Reported gain. The authors evaluated agent control and multi-turn chat among other workloads. They report up to 6.4× higher throughput than contemporary systems.

For a fleet the tree has a natural shape: a trunk for the shared system prompt and tools, a branch per tenant and a short leaf per wake.

vLLM later shipped the same idea as automatic prefix caching. Its documentation spells out two constraints that shape agent prompts.

  • Order matters. Reuse works on whole blocks from the start of the prompt, and each block's hash covers every token before it. One changed token early in the prompt therefore forces everything after it to be recomputed. Volatile content (timestamps, the new event) belongs at the end.
  • Prefill only. The saving is confined to prefill, and generating new tokens is no faster. That suits wakes that read much and write little.

Hosted APIs sell the same mechanism with an explicit lifetime, and that lifetime interacts with wake cadence. In Anthropic's prompt caching, a cached prefix lives five minutes by default and is refreshed on every read. A one-hour lifetime costs a higher write price. Reads cost a fraction of the base input price, and caches are never shared between organizations.

An agent waking every 15 minutes misses the five-minute cache every time unless it pays for the longer lifetime. The pricing consequences are worked through in Model Routing and Tiered Wake-Ups.

Disaggregation and Tiered KV Storage

Long-context agent wakes are prefill-heavy, and prefill competes with decoding for the same accelerators. Recent systems serve such traffic within latency targets by separating the two phases. They also treat the KV cache as data that can be stored and moved.

The two phases are limited by different resources. Prefill is compute-bound, and decoding is memory-bandwidth-bound. Batching them together lets a burst of long prompts stall every running decode.

Zhong et al. (2024) made the case with DistServe, which runs prefill and decoding on different GPUs. It chooses resources and parallelism for each phase against separate latency targets. The authors report serving up to 7.4× more requests than co-located systems, or meeting 12.6× tighter latency objectives. Both results keep over 90% of requests within target.

Qin et al. (2025) extended the idea to storage in Mooncake, the serving platform behind Moonshot AI's Kimi. The paper won best paper at FAST 2025.

  • Pooled cache. Prefill and decode clusters are separate. The otherwise idle CPU DRAM and SSDs of the GPU servers are pooled into a distributed KV cache, so a computed prefix can be stored and fetched rather than recomputed.
  • Cache-aware scheduling. A scheduler routes requests to where their cache lives and rejects them early under predicted overload.
  • Reported gain. In the arXiv version, the authors report that the architecture let Kimi handle 75% more requests under real workloads.

For always-on agents this design is close to a requirement rather than an optimization. Most agents in a fleet are asleep, so cache access is sharply skewed. A tiered cache matches that pattern:

  • Accelerator memory for agents mid-wake.
  • Host DRAM for agents likely to wake soon.
  • SSD or a remote store for the long tail.
  • Recomputation as the fallback.
TechniqueWhat it savesWhy it matters for always-on agentsRepresentative work
Paged KV memoryFragmented, over-reserved cache memoryMore concurrent sessions per accelerator; block-level sharingvLLM (PagedAttention)
Prefix cachingRecomputing identical prompt prefixesSystem prompt, tools and standing orders repeat on every wakeSGLang (RadixAttention); hosted prompt caching
Prefill/decode disaggregationInterference between long prefills and decodingWakes are long-prompt, short-answer requests that arrive in burstsDistServe; Mooncake
Tiered KV storageAccelerator memory spent on idle sessionsMost agents are dormant; their caches can sit in DRAM or SSDMooncake
Early rejection and admission controlWork that would miss its deadline anywayTop-of-hour wake storms exceed capacity brieflyMooncake; see Fleet Scheduling

Table. Serving techniques ranked roughly by how directly they address the wake pattern of an always-on fleet. Throughput gains are those reported by each paper on its own benchmarks and are not additive.

Sandbox Compute

An always-on agent needs a computer of its own on which to run code, keep files and drive a browser. That computer must isolate one tenant's agent from every other tenant's. It must also start fast enough that a wake does not wait seconds for a machine.

The practical answers in 2026 are three:

  • MicroVMs for strong isolation.
  • User-space kernels where a lighter boundary suffices.
  • Snapshot-and-restore to turn a cold boot into a memory map.

The agent-level view of this computer (tools, connectors, GUI control) is in The Agent's Own Computer. This section covers how it is built and packed onto hosts.

Isolation Boundaries

The isolation boundary decides how much damage a compromised agent can do to its neighbours. It trades off directly against start-up time and memory overhead. Containers share the host kernel, and full VMs are strong but heavy. Two designs sit between.

Agache et al. (2020) described Firecracker, the virtual machine monitor (VMM) AWS built for Lambda and Fargate. There it runs millions of production workloads.

  • Small attack surface. It is a minimal VMM of about 50,000 lines of Rust. Its device model is deliberately small (virtio network and block devices are among the few it emulates), which shrinks the attack surface.
  • Paper measurements. As summarized in a review of the paper, it boots a microVM in about 100 ms (about 150 ms including API handling). It carries about 3 MB of memory overhead per VM, against roughly 131 MB for QEMU. Block I/O throughput was its noted weakness.
  • Project claims. The project site advertises boot under 125 ms and under 5 MiB of overhead per VM. It also advertises up to 150 microVMs created per second per host. These are project claims, not measurements in the paper. The site pairs each VM with a jailer process as a second line of defence.

gVisor takes the other route. A user-space kernel intercepts the sandboxed process's system calls, so no guest kernel boots at all. Its performance guide reports no added cost for CPU-bound work. It reports a structural overhead for system-call-, file- and network-heavy work.

Agent workloads (package installs, test runs, browsers) are system-call-heavy. That is one reason agent platforms lean toward microVMs. The AgentCore Runtime launch post argues explicitly that sandboxed kernels should not be treated as a strict security boundary.

Cold Start, Snapshots and Hibernation

Snapshot-and-restore replaces a cold boot with mapping a saved memory image. For always-on agents it doubles as hibernation. An agent can be frozen between wakes and resumed with its processes, open files and warm browser intact.

Firecracker's snapshot documentation describes the mechanics.

  • Snapshot. A paused microVM is serialized into a guest memory file, a device-state file and its disks.
  • Restore. The memory file is mapped privately, so pages load on demand and writes go to copy-on-write memory.
  • Diff snapshots. These (a developer preview) store only pages dirtied since the last one.

The documentation warns that restoring the same snapshot more than once is insecure unless uniqueness is guaranteed. Recent kernels reseed their random number generator on resume, but user-space random values, identifiers and tokens are cloned. An agent platform that restores per-session clones from one template therefore needs an explicit re-identification step, as the figure below shows.

Lifecycle of a snapshot-based agent sandbox: template, warm boot, snapshot, per-session restore, re-identification, the wake itself, and pause to a diff snapshot between wakes. Template image OS, runtimes, tools Boot and warm up load libraries, browser Snapshot memory + device state Restore clone pages load on demand Re-identify reseed RNG, new IDs, tokens Run the wake tools, code, browser Pause diff snapshot of dirty pages next wake resumes here cold path: boot from the image when no snapshot fits
Fig. A snapshot-based sandbox lifecycle. The top row runs once per template; the bottom row runs on every wake. The accent boxes are the two steps most often skipped: taking the snapshot after expensive warm-up rather than at boot, and giving each restored clone fresh randomness, identifiers and credentials, which the Firecracker documentation warns are otherwise duplicated across clones.

Managed agent runtimes now productize this lifecycle. In AgentCore Runtime, each session gets a dedicated microVM. The newer platform version starts agents from a prepared snapshot, so cold starts stay consistent regardless of image size or concurrency. It accepts container images up to 10 GB compressed. The newer version is opt-in, not the default.

AWS's September 2026 walkthrough builds a self-hosted equivalent on Lambda microVMs. They boot from a pre-captured memory and disk snapshot and allow sessions of up to eight hours. Neither source publishes restore latencies.

Session Lifetime and Density

The most consequential sandbox parameter for an always-on agent is how long one session may live. It decides whether the agent's computer persists between wakes or must be rebuilt from durable state each time. Offerings in 2026 split into short-lived serverless sessions and long-lived instances, and the cost model follows the split.

The AgentCore session documentation is a clear example of the short-lived end.

  • Lifetime. Sessions last up to eight hours per compute lifecycle.
  • Idle stop. A session goes idle and then stops after a default 15 minutes without work.
  • State loss. Memory and disk are lost at stop unless a session-storage mount is configured. Memory is sanitized when the microVM terminates.

In August 2026 AWS added runtime instances: managed EC2 hosts on which several agents share a machine. Sessions there persist for up to 14 days, with hibernate and resume. InfoQ's coverage frames the two as complementary. An orchestrator on microVMs hands long-running work to workers on instances.

Density depends on oversubscription, because a sandbox idles while its agent waits on the model. The Firecracker paper, per the same review, tested CPU and memory oversubscription up to 20×. It reports production ratios up to 10×.

Managed runtimes bill accordingly. The AgentCore launch post's example bills CPU for only the 18 seconds of active use in a 60-second session.

Browser sessions are the heaviest tenants. Published per-session memory figures for agent browser fleets were not found for this section, so sizing them remains an operator measurement.

OptionIsolationStart and lifetime (as reported)Fits
Container (runc)Shared host kernelFastest start; lifetime unboundedSingle-tenant agents on the owner's own host
gVisorUser-space kernel intercepts syscallsNo guest boot; syscall-heavy work pays overhead (gVisor guide). Modal, which uses it, claims sub-second startsMulti-tenant code execution with light I/O
Firecracker microVMHardware virtualization, minimal devicesUnder 125 ms boot (project site); E2B reportedly about 150 ms, 24 h sessions on its Pro tierMulti-tenant agents running arbitrary code
Container with Kata or SysboxOptional VM or hardened runtimeDaytona markets sub-90 ms creation (vendor claim)Fast developer sandboxes needing optional hardening
Managed microVM session (AgentCore)MicroVM per sessionUp to 8 h; idle stop after 15 min by defaultWake-scoped work with state kept outside
Managed long-lived instance (AgentCore instances)Dedicated EC2 host, agents co-locatedSessions up to 14 days, hibernate and resumeAgents whose computer should persist between wakes

Table. Sandbox options for always-on agents. Start-up figures for Modal, E2B and Daytona are taken from a May 2026 comparison that compiles provider documentation. They are vendor claims, not independent measurements, and are not comparable across rows.

Cloud Architecture

A cloud service that hosts always-on agents for many tenants is a multi-tenant control system with unusual failure modes. Its traffic is self-generated, and its workers hold delegated credentials. A fault can make thousands of agents act wrongly at once rather than merely go down.

The architecture that copes does three things.

  • Planes and cells. It separates a control plane that is never on the request path from a data plane partitioned into cells.
  • Credential vault. It keeps credentials in a dedicated vault that agents never read directly.
  • Split state. It splits state across stores chosen for their access patterns.

The figure below draws a reference layout. The agent-level view is in Reference Architecture.

Reference cloud architecture: a control plane above, a cell router fed by triggers, two isolated cells each with a wake queue, agent workers and a model gateway, and per-cell data stores replicated to a second region. CONTROL PLANE (off the request path) Tenant and agent registry Policies and permissions Versions and rollout Cell placement map Triggers schedules, webhooks, inbox Cell router tenant → cell, thin and stateless placement pushed, cached locally CELL A CELL B Wake queuededup, jitter Agent workersin sandboxes Modelgateway Wake queuededup, jitter Agent workersin sandboxes Modelgateway workers call stores and vault below same layout, other tenants State DB Event log Object store Vector index Token vault
Fig. A reference cloud layout for hosted always-on agents. The control plane publishes configuration and the cell placement map but serves no wake; the router only maps a tenant to its cell. Each cell is a complete, independent copy of the data plane. The bottom band is drawn once for space, but each cell owns its own partition of the stores, replicated asynchronously to a second region. The model gateway reaches inference endpoints outside the cell (not drawn).

Control Plane, Data Plane and Cells

The control plane holds what changes rarely: which tenants exist, which agents they run, what each agent may do, which version is deployed and which cell hosts it. The data plane does the per-wake work.

Keeping them apart means a control-plane outage stops new configuration but not running agents. That holds only if the data plane caches what it needs rather than calling the control plane on every wake.

AWS's guidance on control and data planes in cells makes the same point.

  • The control plane provisions, migrates and deploys cells.
  • The data plane should keep working when the control plane is impaired.
  • The example router loads the cell map into memory, so routing survives an outage of the control plane or of the map's store.

Cells bound the blast radius of agent-specific faults. AWS's cell-based architecture guidance defines a cell as a complete, independent instance of the workload that shares no state with other cells. Each cell serves the requests selected by a partition key such as customer ID. A router, kept as the thinnest possible layer, sits in front.

The arithmetic is simple: with ten cells, a failure in one leaves 90% of requests unaffected. The same guidance names bad deployments and poison-pill requests (inputs that crash whatever serves them) as failures that cells contain. It rolls changes out one isolation boundary at a time.

For agents the cell is a full stack (queue, workers, gateway, stores) serving a fixed subset of tenants, keyed by tenant. A bad model version, a poisoned shared tool or a runaway loop then affects one cell.

Rollouts proceed cell by cell. They watch agent-level signals (approval rates, action errors, cost per wake) as well as availability. Cells are also the natural unit for scheduling quotas (Fleet Scheduling) and kill switches (Controls That Work Together).

Identity, Delegated Credentials and the Token Vault

An always-on agent acts in users' accounts while the users are away. The infrastructure must therefore hold long-lived delegated credentials, typically OAuth refresh tokens. It must hand short-lived access tokens to the right agent for the right user at the moment of use.

The design goal has two parts. Agent code, prompts and logs never contain a credential. A token issued for one user can never be presented on another user's behalf.

Three layers achieve this in current managed platforms.

  1. Workload identity. Each agent runtime gets its own workload identity.
  2. Token exchange. A verified user token is exchanged for a token binding workload and user, as the AgentCore launch post describes.
  3. Credential service. A service stores and refreshes third-party tokens and releases access tokens only against that binding.

The same post says cached outbound tokens are keyed by workload identity and user ID, so one user's token cannot serve another. It cites the Asana MCP incident of May 2025 as the kind of cross-tenant exposure this prevents. The post reports that incident as lasting 34 days and touching about 1,000 organizations.

The runtime documentation distinguishes user-delegated from autonomous outbound access. That split maps onto the approval tiers in The Permission Layer.

Refresh is an operational burden that always-on agents expose more than interactive apps. RFC 6749 (§6, §10.4) lets an authorization server issue a new refresh token on each refresh. The client must then discard the old one. The RFC also requires refresh tokens to stay confidential in transit and storage.

RFC 9700 is the 2025 OAuth security best current practice. In §4.14.2 it adds that refresh tokens should expire after a period of inactivity. They may also be revoked after events such as a password change. For public clients it recommends rotation (a new refresh token on every refresh) or sender-constraining (binding the token to the client that holds it).

Rotation has a sharp edge for a fleet. If a previously invalidated refresh token is presented, the server cannot tell attacker from client, so it revokes the active token as well. Two wakes that refresh the same grant concurrently look exactly like that replay. A shared vault must therefore serialize refreshes per grant, or the race can cost the whole grant.

Expiry or revocation should surface as a visible reconnect request, not a string of silent failed wakes.

State Stores, Regions and Recovery

Agent state does not fit one database, because its parts are read and written in very different patterns. A typical deployment uses four or five stores, each chosen for one pattern. It recovers from disaster by replaying the most durable of them.

  • State database. Small, transactional records: the agent's schedule, task ledger, commitments, pending approvals and idempotency keys. It needs strong consistency within a cell.
  • Event log. An append-only record of every trigger, model call, tool call and approval. It feeds audit, evaluation replays (Longitudinal Evaluation) and the outbox pattern of Durable Execution. It is also the source of truth from which other stores can be rebuilt.
  • Object store. Transcripts, artifacts, files the agent produced and sandbox snapshots. Snapshot files must stay readable for the lifetime of any VM restored from them.
  • Vector or search index. Retrieval over memory and documents; derived data that can be rebuilt from the log and object store.
  • Token vault. Delegated credentials, encrypted per tenant, with the narrowest access path of all.

Multi-region design follows from which stores are authoritative. The event log and state database replicate to a second region. Derived indexes and KV caches do not need to, because they can be rebuilt or recomputed.

Failover adds an agent-specific hazard. An in-flight wake may have taken a side effect whose record never replicated. The standby must therefore reconcile recent actions through idempotency keys before resuming schedules.

Data residency is easiest to enforce as a property of the cell rather than of individual records.

On-Device and Hybrid

Not every always-on agent lives in a data centre. A growing class runs its loop on hardware the user owns (a laptop, a small home server, a phone) and calls cloud models only for reasoning. That keeps state, memory and credentials local, at the cost of availability and compute.

The design question is how to split the loop between device and cloud:

  • which parts must be awake all the time;
  • which need frontier-model capability;
  • which data should never leave the device.

The Local Gateway Pattern

The local gateway pattern runs the agent's scheduler, state and tools on a user-owned host. It treats both models and devices as attachable resources. OpenClaw is the best-known open-source example.

Its README describes three components.

  • Gateway. A gateway on the user's own computer acts as the local control plane for sessions, tools and messaging channels.
  • Companion apps. Apps on phones and desktops add voice, camera and screen actions.
  • Model providers. Hosted or local model providers supply the reasoning.

The workspace documentation shows where state lives, all of it on the gateway host.

  • Plain files in a workspace directory hold instructions and daily memory logs.
  • SQLite databases hold sessions, transcripts and the memory index.
  • A separate credentials directory sits alongside them.

The page notes that the workspace is not a hard sandbox. Isolation on a personal host is therefore opt-in (see A Standing Attack Surface).

The pattern inverts the cloud's trade-offs. It gains local residency and no multi-tenant blast radius. In exchange, availability is bounded by a home machine's uptime, and patching is left to each owner.

Splitting the Loop Between Device and Cloud

A hybrid agent puts each stage of the wake loop where its constraints are best met. Triggers and cheap filtering sit near the data. Heavy reasoning runs on large hosted models. Actions run wherever the credentials and interfaces live.

Memory on the device is the binding constraint for running models locally. The same arithmetic as in the KV cache section applies. A 3-billion-parameter model quantized to 4 bits needs roughly 1.5 GiB for weights. The Llama 3.2 3B configuration implies about 3.5 GiB more of bfloat16 KV cache at a 32k-token context.

That is feasible on a laptop and tight on a phone. On-device models in such designs therefore usually handle short-context triage rather than long-horizon reasoning.

Loop stageOn deviceIn the cloudDeciding factor
Wake triggersSensors, notifications, local filesWebhooks, schedules that must fire while the device sleepsWhether the device is reliably on
Triage ("is this worth a full wake?")Small local model, rulesCheap hosted modelPrivacy of raw events; battery
Planning and reasoningRarely, short contexts onlyFrontier model with long contextCapability and KV memory
Memory and personal dataDefault for local-gateway designsDefault for hosted agentsResidency, sync across devices, backup
ActionsDevice-local apps, camera, screenSaaS APIs via delegated tokensWhere the interface and credential live

Table. Placement of each stage of the wake loop in a hybrid agent. The entries are design defaults argued from the constraints in this section, not measurements.

Evidence on on-device models' skill at agentic triage is thin, and vendor claims were not verified for this section. The safe assumption is that the device decides whether to wake the cloud and the cloud decides what to do. That split also matches the tiered wake-ups of Model Routing and Tiered Wake-Ups.

The 2026 Landscape

Between September 2025 and October 2026, most of the large consumer AI vendors shipped, or put into preview, an agent that keeps working after the user closes the app. The list covers OpenAI's overnight Pulse briefs and then its dots, Google's Gemini Spark, Microsoft's Scout (later Copilot Autopilot), xAI's Grok Bot, Meta's Muse and Anthropic's Claude Duet. Alongside them sits the open-source OpenClaw, on which Scout is built.

Most converge on one design: a cloud computer per agent, connectors into mail and calendar, a tiered approval boundary and pricing bundled into an existing plan. Details below are as announced, and many products are still in preview.

Timeline from September 2025 to December 2026. Upper lane: launches of always-on agent products. Lower lane: guidance and measurement work that shaped them.
Fig. Launches of always-on personal agents (upper lane) and selected guidance and measurement work (lower lane), placed by announcement date. Most launches cluster in May–October 2026. Dates are from the sources cited in this section.

Products and Their Design Choices

The table below lines up the products along the axes of the taxonomy in A Taxonomy of Always-On Agents. The axes are what wakes the agent, where it runs, what it remembers, what it may do without asking, and how it is paid for. "Not stated" means neither cited source described that aspect, not that the product lacks it.

Product (announced)Wake triggersRuntimeMemoryApproval boundaryPricing at launch
ChatGPT Pulse (Sep 2025; also TechCrunch)Overnight run; five to ten cards each morningOpenAI-hosted; optional Gmail and Calendar connectors, off by defaultMemory, chat history and card feedbackReports only; no actions at launchPro ($200/month) preview first
Gemini Spark (May 2026; also TechCrunch)Recurring tasks and triggers; TechCrunch reports a dedicated Gmail address, which Google lists as plannedGoogle Cloud (dedicated VMs, per TechCrunch); MCP partner connections; local-browser control plannedNot statedDesigned to ask first before spending money or sending emailGoogle AI Ultra (US beta)
Microsoft Scout (Jun 2026; also TechCrunch), renamed Copilot Autopilot (Sep 2026)Watches channels, follows up on threads, runs recurring work (Autopilot)Cloud, desktop and web; own Entra identity; built on OpenClaw. Autopilot: own computer in the tenantMemories and skills that persistSign-off for sensitive actions; policy-conformance checks with audit trailsScout: Frontier preview, GitHub Copilot licence; Autopilot: usage-based, private preview
Grok Bot (Aug 2026; also Unite.AI)Messages; routines learned by watching a job once; scheduled routines on Cursor Ultra (Unite.AI)A cloud computer of their own; bots coordinate in group chatsContext across conversations; learned preferencesReturns when approval is needed; drafts queued for approvalBeta bundled into SuperGrok and Cursor plans, with separate usage; Unite.AI cites Cursor Ultra at $200/month
Muse (Sep 2026; also TechRepublic)Unprompted suggestions; keeps working after the app closesMuse Secure VM; a separate Sentinel agent must approve all internet egressRemembers; user can tell it to forgetAsks before sending or buying; per-app read or read-and-send access; audit trailFree for most use; Power $20 and Maximum $100 per month (TechRepublic)
OpenAI dots (Sep 2026; also TNW)Around the clock; background "proactive research"; messages in ChatGPT, Slack, TeamsOwn cloud computer and browser; more than 4,000 apps via pluginsLearns preferences from feedbackBuilt-in rules plus custom allow/block/approve rules; auto-review; read-only tools during proactive researchFirst dot included in Pro and Business Premium
Claude Duet (Oct 2026; also Anthropic)Morning brief of mail and calendar; updates; follow-ups on stalled threadsOwn cloud computer; cloud browser where no connector exists (9to5Mac)Claude's memories, skills and connectors; past-chat searchAsks before sending or paying; 9to5Mac adds signing and deleting, and that only the user marks a task finishedResearch preview in Pro and Max (Anthropic also lists Ultra); background work counts against plan limits
OpenClaw (open source; also docs)Automation jobs; an optional "Proactive check" job every 30 minutesThe user's own machine or server; a local gateway; more than 20 chat channelsLocal state, memory and credentialsUnknown senders must be paired; tools run on the host unless sandboxed; exec approvals (allowlists, optional prompts) are off by defaultMIT licence, no paid tier; models are plugins

Table. Always-on agent products as described at announcement. Cells paraphrase the vendor post and one news report, both linked; where they differ, the cell names the source. Features, plans and availability change quickly and several products are regional or invitation-only.

OpenClaw and the Open Harnesses

OpenClaw is the reference point the commercial launches are measured against, and Microsoft describes Scout as powered by it. The project is an MIT-licensed assistant stewarded by the OpenClaw Foundation. It runs on the user's own hardware, answers in existing chat apps and treats models and harnesses as plugins. Its repository showed 394.9k stars in late November 2026.

Two OpenClaw choices mirror earlier parts of this book:

Where the Designs Converge

Read across the table, six choices recur often enough to count as the 2026 default for a personal always-on agent:

  • A computer per agent. dots, Duet, Grok Bot, Muse, Spark and Autopilot run in a vendor-hosted cloud machine, so work continues with the user's device off (see The Agent's Own Computer).
  • Read-only proactivity. dots uses tools read-only during unprompted research; Muse lets the user grant read-only mail access. Unprompted work observes; approved work acts.
  • A short ask-first list. Sending and paying head every list; dots also keeps password changes with the user.
  • Credentials the model never sees. dots and Muse both let the agent use stored credentials without reading them; Muse pays through one-time cards.
  • A second watcher. Muse's Sentinel gates all egress, a dots monitor can pause or stop it, and Scout runs policy-conformance checks (see Controls That Work Together).
  • Bundled pricing with different meters. dots conversations sit outside ChatGPT limits, while Duet's background work counts against them. Grok Bot has its own usage meter, and Autopilot is usage-billed. This is the least settled choice (see Unit Economics).

Reference Architecture

An always-on agent needs ten components: triggers, a scheduler, a wake router, an agent runtime, a permission gate, an action executor, durable state, a reporting and approval surface, monitors with a kill switch, and the outside world it acts on. The design synthesizes the products above and the earlier parts of this book rather than describing any single vendor.

The figure below arranges the components around two rules. Every side effect passes through exactly two chokepoints, the gate and the executor. Every component reads and writes one durable store.

Reference architecture for an always-on agent: durable state on top; triggers, scheduler, wake router and agent runtime in the middle row; monitors, the outside world, the action executor and the permission gate below; the report and approval surface at the bottom. Durable state and memory task ledger · memory with provenance · credential vault · outbox · event log Triggers schedules · webhooks polls · self follow-ups Scheduler jitter · queues admission · priority Wake router dedupe · cheap check model tier choice Agent runtime sandbox VM · browser connectors · MCP next wakes · ledger memory read/write Monitors policy · budgets read the event log Apps and world mail · calendar · web payments · files Action executor outbox · idempotency retries · receipts Permission gate auto / ask / never rules · auto-review proposed actions pause · kill switch Report and approvals brief · digest · asks ask-first requests and answers alerts and budget breaches
Fig. A reference architecture for an always-on agent. Wake-ups flow left to right along the middle row; the runtime proposes actions as data, the gate decides auto, ask or never, and only the executor touches the outside world. All components share one durable store (top), and monitors can pause the scheduler and alert the user independently of the agent (dashed).

Components

Each component has one responsibility and logs what it did to the shared store, so any wake can be replayed and any action traced to its trigger.

  1. Triggers and scheduler: see The Loop and Fleet Scheduling.
  2. Wake router: dedupe, cheap change check, model tier (Model Routing).
  3. Agent runtime: proposes actions, executes none (The Agent's Own Computer).
  4. Permission gate: auto, ask or never; read-only proactive mode (The Permission Layer).
  5. Action executor: outbox and idempotency keys (Durable Execution).
  6. Durable state: ledger, memory with provenance, vault, event log (Governing State).
  7. Report, monitors and kill switch: asks flow back to the gate; monitors pause the agent without its cooperation.

Trust Boundaries

Three boundaries carry most of the safety argument:

  • Runtime versus gate. The runtime proposes but does not execute. That puts the gate between the model and every side effect.
  • Model versus vault. Credentials sit in the store's vault and are injected by the executor. An injected prompt therefore cannot exfiltrate a password the model never saw.
  • Agent versus monitors. The monitors run outside the agent's process and identity, as Muse's Sentinel and the dots monitor do. A compromised or looping agent cannot silence its own watcher.

Together these address the combination that Willison (2025) calls the lethal trifecta: private data, untrusted content and a channel to send data out.

Production Challenges and Solutions

Most production problems with always-on agents arise because the agent runs unattended, repeatedly and with real permissions. Three effects follow:

  • Small per-wake error rates compound over thousands of wakes.
  • Retries turn into duplicate side effects.
  • Every inbox becomes an attack surface.

The table below maps recurring problems to fixes and to the architecture component where each fix lives.

ChallengeSymptomSolutionWhere
Wake stormsLatency and error spikes on the hour as schedules alignJitter schedules, queue wakes, admission control by priority (Fleet Scheduling)Scheduler
Duplicate wakesSame event handled twice; double draftsKey each wake by source and event id and coalesce (The Loop)Wake router
Empty wakesCost and "nothing new" messages from periodic checksCheap change detection before the model; silence as a recorded outcome, as in OpenClaw's no-change resultsWake router
Duplicate side effectsEmail sent twice after a crash or retryTransactional outbox and idempotency keys passed downstream (Richardson; Tenzer & Smith 2024)Executor
Indirect prompt injectionInstructions in a mail or web page steer the agentNo session with untrusted input, private data and external actions all at once without approval (Meta's Rule of Two); read-only proactive mode (Attack Surface)Gate
Excessive agencyAgent can do far more than its job needsNarrow tools, minimal scopes, authorization enforced downstream (OWASP LLM06)Gate, connectors
Approval fatigueUsers approve everything or stop answeringShort ask-first list; batch low-risk asks into one digest; auto-approve on track record (Permission Layer)Gate, report
Notification fatigueUsers mute the agentInterruption budget per day; morning brief instead of pings (Proactivity)Report
Context rotAgent forgets decisions or redoes work across sessionsProgress files, structured task lists, git-style history read at each start (Young 2025; Context)State
Premature "done"Tasks closed without being finishedEnd-to-end verification before marking done; only the user closes a task, as in DuetRuntime, report
Memory poisoning and stalenessWrong or injected facts reused for weeksProvenance on every memory, expiry, user-visible forget (Governing State)State
Runaway costLoops or chatty schedules burn budgetPer-agent token and wake budgets enforced by monitors; cost per agent-day on the dashboard (Unit Economics)Monitors
Silent regressionsBehaviour changes after a model or prompt updateReplay logged days against the new version before rollout (Longitudinal Evaluation)Eval harness
Credential exposureSecrets appear in context, logs or outputsVault with executor-side injection; the model uses but never reads credentials (Cloud Architecture)State, executor
Unbounded blast radiusOne bad decision repeats across many wakes or usersIndependent monitor with pause, egress gating, staged rollouts (Drift and Blast Radius, Controls)Monitors

Table. Production challenges of always-on agents mapped to solutions and to the component of the reference architecture where each solution lives.

Injection is the one row without a complete fix. Meta frames its Rule of Two as a constraint until injection can be reliably detected. Until then, the gate, not the model, makes the final call.

Playbook: Building an Always-On Agent Step by Step

An always-on agent should be built in the order its risks appear:

  1. A written standing order and a permission policy.
  2. Durable state and idempotent actions.
  3. A ladder of tests that grants autonomy only as evidence accumulates.
  4. A narrow launch with operational metrics.

1. Write the Standing Orders

A standing order is the agent's job description as data. It names the goal, the sources the agent watches, the cadence, what counts as done, what it must report, and a never-do list.

The order is versioned like code, since every later test compares behaviour against one version. A goal with a checkable end state ("every customer message gets a draft reply within four working hours") can be evaluated; "keep my inbox under control" cannot.

2. Choose Tools and Assign Permission Tiers

Each tool gets a tier before the agent sees it:

  • Automatic. Reads and drafts.
  • Ask-first. Sending and paying.
  • Never. Deleting and credential changes.

This follows the products above and OWASP LLM06: minimal functions, narrowest scopes, and authorization enforced downstream as well. Unprompted wakes should run with read-only credentials, so that proactivity can never trigger a write on its own.

3. Make State Durable and Actions Idempotent

The core loop is small once the model's output is treated as a proposal rather than an action. The sketch below is a complete, runnable loop with SQLite as the durable store. It works in four steps:

  1. Each wake is keyed, so redelivered triggers are skipped.
  2. The model stand-in returns proposed actions as data.
  3. The policy assigns a tier.
  4. Every action is written to an outbox before anything executes. Each row carries a content-derived idempotency key, a hash that lets downstream systems ignore repeats of the same action.

A production system would replace decide with a model call and execute with connector calls that forward the key.

import hashlib, json, sqlite3, time

POLICY = {"read": "auto", "draft": "auto", "send": "ask", "pay": "ask", "delete": "never"}

def open_db(path="agent.db"):
    db = sqlite3.connect(path)
    db.executescript("""
    CREATE TABLE IF NOT EXISTS wakes(key TEXT PRIMARY KEY, at REAL);
    CREATE TABLE IF NOT EXISTS outbox(key TEXT PRIMARY KEY, kind TEXT, args TEXT,
        status TEXT CHECK(status IN ('pending','awaiting_approval','done','blocked')));
    CREATE TABLE IF NOT EXISTS notes(k TEXT PRIMARY KEY, v TEXT, source TEXT);""")
    return db

def decide(observation, notes):
    """Stand-in for the model call: returns proposed actions as data, never side effects."""
    acts = [{"kind": "draft", "args": {"to": m["from"], "re": m["subject"]}}
            for m in observation["inbox"] if m["needs_reply"]]
    if observation["invoice_due"]:
        acts.append({"kind": "pay", "args": {"invoice": observation["invoice_due"]}})
    return acts

def execute(kind, args, ikey):             # the only place side effects happen;
    print(f"  EXECUTE {kind} {args} key={ikey}")   # ikey goes to the downstream API

def wake(db, trigger, observation):
    key = f"{trigger['source']}:{trigger['id']}"          # coalesce duplicate wake-ups
    if db.execute("INSERT OR IGNORE INTO wakes VALUES(?,?)", (key, time.time())).rowcount == 0:
        print(f"wake {key}: duplicate, skipped"); return
    notes = dict(db.execute("SELECT k, v FROM notes"))
    for a in decide(observation, notes):
        ikey = hashlib.sha256(json.dumps(a, sort_keys=True).encode()).hexdigest()[:12]
        tier = POLICY.get(a["kind"], "never")
        status = {"auto": "pending", "ask": "awaiting_approval", "never": "blocked"}[tier]
        db.execute("INSERT OR IGNORE INTO outbox VALUES(?,?,?,?)",
                   (ikey, a["kind"], json.dumps(a["args"]), status))
    db.commit()                                         # decisions are durable before acting
    flush(db)
    report(db, key)

def approve(db, kind):
    db.execute("UPDATE outbox SET status='pending' WHERE kind=? AND status='awaiting_approval'", (kind,))
    db.commit(); flush(db)

def flush(db):
    for key, kind, args in db.execute(
            "SELECT key, kind, args FROM outbox WHERE status='pending'").fetchall():
        execute(kind, json.loads(args), key)
        db.execute("UPDATE outbox SET status='done' WHERE key=?", (key,)); db.commit()

def report(db, key):
    rows = db.execute("SELECT status, COUNT(*) FROM outbox GROUP BY status ORDER BY status")
    print(f"wake {key}: " + ", ".join(f"{s}={n}" for s, n in rows))

if __name__ == "__main__":
    db = open_db(":memory:")
    obs = {"inbox": [{"from": "ana@example.com", "subject": "Q3 deck", "needs_reply": True}],
           "invoice_due": "INV-118"}
    wake(db, {"source": "cron", "id": "2026-11-30T07:00"}, obs)
    wake(db, {"source": "cron", "id": "2026-11-30T07:00"}, obs)   # retried delivery
    wake(db, {"source": "gmail", "id": "msg-77"}, obs)            # same facts, new trigger
    print("user approves payments"); approve(db, "pay")
    approve(db, "pay")                                             # double tap: no-op

Running it (Python 3, standard library only) prints the output below. The redelivered cron wake is skipped. The mail-triggered wake proposes the same actions, which collapse onto existing outbox rows. The payment waits for approval and runs once although approved twice.

  EXECUTE draft {'to': 'ana@example.com', 're': 'Q3 deck'} key=766e67e2a234
wake cron:2026-11-30T07:00: awaiting_approval=1, done=1
wake cron:2026-11-30T07:00: duplicate, skipped
wake gmail:msg-77: awaiting_approval=1, done=1
user approves payments
  EXECUTE pay {'invoice': 'INV-118'} key=f6053af59cb3

One gap remains by design: a crash between execute and the status update re-runs the action on restart. That is the at-least-once behaviour that Tenzer & Smith (2024) describe for retried workflow activities. It is safe only if the downstream API deduplicates on the forwarded key.

Content-derived keys have a second limit. Two genuinely identical actions (two identical payments on purpose) collapse into one. Real systems add the task id to the key.

4. Climb the Test Ladder

Autonomy should be granted in rungs, each with a promotion criterion measured on the previous rung, as in the figure below. Each rung tests something different:

  • Replay and simulation catch logic errors at no risk.
  • Shadow mode, in which the agent decides but a human acts, measures agreement on real traffic.
  • Read-only proactive mode tests whether its reports are worth reading.
  • Ask-first and allow-listed autonomy then expand real actions one tier at a time.

Methods for each rung are covered in Longitudinal Evaluation, Online Evaluation and the companion book Agent Evaluation.

A six-rung test ladder for an always-on agent: replay, simulated week, shadow mode, read-only proactive, ask-first actions, and allow-listed autonomy, each higher than the last. 1 · Replay logged days same decisions? 2 · Simulated week of events end state scored 3 · Shadow decides, never acts agreement rate 4 · Read-only proactive reports read and used? 5 · Ask-first acts on approval approval rate 6 · Allow-listed autonomy per tier audits · budgets No real side effects rungs 1–3: offline and shadow real permissions and blast radius grow to the right
Fig. A test ladder for an always-on agent. Each rung grants more real-world effect and is entered only when the metric on the rung below (decision agreement, scored end state, report usefulness, approval rate) clears a threshold set in advance. The rungs and metrics are a recommendation of this book, not a published standard.

5. Launch Narrow and Operate

A first launch should cover one standing order, a small user group and the ask-first tier. Its dashboards should track:

  • approval and override rates per action kind;
  • interruptions per user per day;
  • cost per agent-day;
  • wake-to-report latency;
  • the share of silent wakes.

Promote an action kind to automatic only after a sustained high approval rate, and demote it on the first serious override.

Drill the kill switch and read traces weekly. Per-wake errors are too rare for dashboards and frequent enough to matter over a year.

Deeper Launch checklist for an always-on agent

Each item should be true, with evidence linked from the launch review, before the agent runs unattended for real users.

  • Standing order. Versioned; goal has a checkable end state; never-do list written; owner named.
  • Permission tiers. Every tool tiered auto, ask or never; unprompted wakes use read-only credentials; downstream systems enforce the same scopes.
  • Untrusted input. No session combines untrusted content, private data and external actions without an approval step; injection tests from A Standing Attack Surface pass.
  • Credentials. Held in a vault, injected by the executor, absent from prompts, logs and memory.
  • Durability. Wakes keyed and deduplicated; outbox written before execution; idempotency keys forwarded to every API that accepts them; crash-recovery test run.
  • State. Every memory has provenance and expiry; the user can see and delete it.
  • Test ladder. Replay, simulated week and shadow rungs passed with thresholds recorded; promotion and demotion rules written.
  • Budgets. Per-agent limits on wakes, tokens, sandbox minutes and messages to the user, enforced by a monitor outside the agent.
  • Kill switch. Pauses one agent, one action kind or the whole fleet; drilled, with time-to-stop measured.
  • Audit. Event log links every action to its trigger, model version, standing-order version and approver.
  • Regression. A set of logged days replays automatically on every model, prompt or tool change.

Open Problems

Always-on agents became mainstream products in 2026 before there was an agreed way to do three things: measure whether they help over weeks, make them safe against content they read, and pay for the compute they use while nobody is watching. The open problems below are those on which the sources in this book disagree, report clear limits, or are silent.

  • Reliability at long horizons. Capability at 50% success has grown fast, but the high-reliability end an always-on agent needs grows more slowly.
    • METR's Time Horizon 1.1 puts the doubling time of the 50%-success task length, for models since 2024, at 88.6 days.
    • METR's own page calls measurements above 16 hours unreliable with its current tasks.
    • Parrott (2026) notes that a model at the edge of that range at 50% success handles only about three-hour tasks at 80%. METR's own figure for the current frontier, cited in the Introduction, is about 1.5 hours at 80%.
    See Time Horizon and Reliability.
  • Measuring lifetime value. Benchmarks measure tasks, not tenures. Vending-Bench 2 simulates a year of running one business, but it covers one domain. It reports a large gap between the best model's mean result (about $16.8k) and what a good strategy could earn (roughly $63k, by its estimate). There is no shared protocol for scoring a personal agent over months of a real user's life.
  • Prompt injection without a fix. The leading defenses are architectural constraints, such as the lethal trifecta and the Rule of Two, that avoid the problem rather than solve it. Meta presents its rule as a stopgap. Constraining sessions limits what an always-on agent can do. Whether detection can ever be reliable enough to relax the constraints is open (see A Standing Attack Surface).
  • How much to ask. Every product that acts ships an ask-first list, but little published evidence covers the trade-off between approval burden and error rate, or how quickly approvals become rubber stamps.
  • Who pays for background compute. Vendors meter it differently (see Where the Designs Converge). Whether a daily-active always-on agent is profitable at consumer prices, and which meter users accept, is not yet visible from public data (see Unit Economics).
  • Correlated failure at fleet scale. Millions of agents on the same model and harness share weaknesses. One injection pattern or bad update can repeat fleet-wide at the next scheduled wake. There is no published account of how to bound such incidents (see Drift, Blast Radius and Runaway Loops).
  • Portability of standing state. Memories, skills, standing orders and approval histories are locked inside each vendor's product. OpenClaw keeps them on the user's machine. Still, no common format lets a user move a long-running agent, with its learned trust, from one provider to another.
  • Accountability when the agent speaks for a person. Agents now send mail, book and pay on a user's behalf. How recipients are told, who is liable for an agent's commitments, and how unwilling platforms respond remain unsettled (see Privacy, Consent and Third Parties).
About the figures

All figures are original diagrams and charts drawn for this book, except a few that are adapted and redrawn from a figure in a source and credit it in the caption; none is reproduced. Charts plotted from reported numbers name their sources in the caption, charts computed from a formula say so, and placements or parameters chosen for exposition are marked illustrative.

Citation

Cited as:

Cheng, Kevin. (Nov 2026). Always-On, Long-Horizon Agents: From Cron Jobs to Agents That Never Log Off. Kevin's Notes. https://claude.ai/
@article{cheng2026alwayson,
  title   = "Always-On, Long-Horizon Agents: From Cron Jobs to Agents That Never Log Off",
  author  = "Cheng, Kevin",
  journal = "Kevin's Notes",
  year    = "2026",
  month   = "Nov",
  url     = "https://claude.ai/"
}

References

  1. Kwa, T., West, B., Becker, J., et al. "Measuring AI Ability to Complete Long Software Tasks." NeurIPS 2025 (arXiv 2503.14499). arxiv.org/abs/2503.14499
  2. METR. "Time Horizon 1.1." METR blog, January 29, 2026. metr.org/blog/2026-01-29-time-horizon-1-1
  3. METR. "Frontier Risk Report (February to March 2026)." METR blog, May 19, 2026. metr.org/blog/2026-05-19-frontier-risk-report
  4. Anthropic. "Introducing computer use, a new Claude 3.5 Sonnet, and Claude 3.5 Haiku." Anthropic News, October 22, 2024. anthropic.com/news/3-5-models-and-computer-use
  5. Zeff, M. "ChatGPT now lets you schedule reminders and recurring tasks." TechCrunch, January 14, 2025. techcrunch.com
  6. OpenAI. "Introducing Codex." OpenAI 2025. openai.com/index/introducing-codex
  7. Cottier, B., Snodin, B., Owen, D., Adamczewski, T. "LLM inference prices have fallen rapidly but unequally across tasks." Epoch AI, March 12, 2025. epoch.ai/blog/llm-inference-price-trends
  8. Woodward, J. "The Gemini app becomes more agentic, delivering proactive, 24/7 help." Google Blog, May 19, 2026. blog.google
  9. Riley, D. "OpenAI launches Dots, always-on AI agents in ChatGPT with their own cloud computers." SiliconANGLE, September 29, 2026. siliconangle.com
  10. Quasim, R. "Anthropic's new AI agent Claude Duet can work while users are away." American Bazaar, October 22, 2026. americanbazaaronline.com
  11. OpenClaw contributors. "openclaw/openclaw" (repository, MIT license). GitHub 2026. github.com/openclaw/openclaw
  12. OpenClaw. "Automation" (cron vs heartbeat page). OpenClaw documentation 2026. docs.openclaw.ai/automation/cron-vs-heartbeat
  13. Ding, T., Nannapaneni, A., Liu, B., Zhang, L. "Always-On Agents: A Survey of Persistent Memory, State, and Governance in LLM Agents." arXiv 2026. arxiv.org/abs/2606.30306
  14. Young, J. "Effective harnesses for long-running agents." Anthropic Engineering, November 26, 2025. anthropic.com/engineering
  15. Softpanorama. "History of cron." softpanorama.org. softpanorama.org/Utilities/Cron/history.shtml
  16. Rao, A. S., Georgeff, M. P. "BDI Agents: From Theory to Practice." ICMAS 1995. users.cs.utah.edu
  17. Horvitz, E. "Principles of Mixed-Initiative User Interfaces." CHI 1999. erichorvitz.com/chi99horvitz.pdf
  18. Wikipedia. "CALO." Accessed 2026. en.wikipedia.org/wiki/CALO
  19. Yao, S., Zhao, J., Yu, D., Du, N., Shafran, I., Narasimhan, K., Cao, Y. "ReAct: Synergizing Reasoning and Acting in Language Models." ICLR 2023. arxiv.org/abs/2210.03629
  20. Park, J. S., O'Brien, J. C., Cai, C. J., Morris, M. R., Liang, P., Bernstein, M. S. "Generative Agents: Interactive Simulacra of Human Behavior." UIST 2023. arxiv.org/abs/2304.03442
  21. Packer, C., Wooders, S., Lin, K., Fang, V., Patil, S. G., Stoica, I., Gonzalez, J. E. "MemGPT: Towards LLMs as Operating Systems." arXiv 2023. arxiv.org/abs/2310.08560
  22. Lu, Y., Yang, S., Qian, C., et al. "Proactive Agent: Shifting LLM Agents from Reactive Responses to Active Assistance." arXiv 2024. arxiv.org/abs/2410.12361
  23. OpenClaw. "Automations." OpenClaw documentation 2026. docs.openclaw.ai/automation/cron-jobs
  24. OpenClaw. "Heartbeat Migration." OpenClaw documentation 2026. docs.openclaw.ai/gateway/heartbeat
  25. clawdocs. "Heartbeat System." Community-maintained OpenClaw documentation (verified against v2026.10.4), 2026. clawdocs.org/architecture/heartbeat
  26. Gallagher, Damien. "Heartbeats in OpenClaw: Cheap Checks First, Models Only When You Need Them." DEV Community 2026. dev.to/damogallagher/heartbeats-in-openclaw
  27. Temporal. "Schedules." Temporal documentation 2026. docs.temporal.io/schedules
  28. Temporal. "Workflows." Temporal documentation 2026. docs.temporal.io/workflows
  29. Tenzer, Keith, and Joshua Smith. "What is idempotency? And why it matters for durable systems." Temporal blog, February 27, 2024. temporal.io/blog/idempotency-and-durable-execution
  30. LangChain. "Persistence." LangGraph documentation 2026. docs.langchain.com/oss/python/langgraph/durable-execution
  31. Dworken, David, and Oliver Weller-Davies. "Beyond permission prompts: making Claude Code more secure and autonomous." Anthropic Engineering, October 20, 2025. anthropic.com/engineering/claude-code-sandboxing
  32. Aizawa, Ken. "Writing effective tools for agents — with agents." Anthropic Engineering, September 11, 2025. anthropic.com/engineering/writing-tools-for-agents
  33. Hadfield, Jeremy, Barry Zhang, Kenneth Lien, Florian Scholz, Jeremy Fox, and Daniel Ford. "How we built our multi-agent research system." Anthropic Engineering, June 13, 2025. anthropic.com/engineering/multi-agent-research-system
  34. Zhang, Chaoyun, Shilin He, Liqun Li, Si Qin, Yu Kang, Qingwei Lin, Saravan Rajmohan, and Dongmei Zhang. "API Agents vs. GUI Agents: Divergence and Convergence." arXiv 2025. arxiv.org/abs/2503.11069
  35. Shahine, Omar. "Introducing Microsoft Scout: Your always-on personal agent." Microsoft Copilot Blog, June 2, 2026. microsoft.com/en-us/copilot/blog/2026/06/02/…scout…
  36. Spataro, Jared. "Introducing the new Copilot with Home, Code and Autopilot." Official Microsoft Blog, September 25, 2026. blogs.microsoft.com/blog/2026/09/25/…autopilot
  37. Microsoft. "What are agent identities?" Microsoft Entra Agent ID documentation 2026. learn.microsoft.com/en-us/entra/agent-id/what-are-agent-identities
  38. Ghumare, Rohit. "A2A v1.0: a builder's guide, part 1 - discovery, tasks, and clients." Agentic AI Foundation blog, August 27, 2026. aaif.io/blog/a2a-v1-0-a-builder-s-guide-part-1
  39. Linux Foundation. "A2A Protocol Surpasses 150 Organizations, Lands in Major Cloud Platforms, and Sees Enterprise Production Use in First Year." Linux Foundation press release, April 9, 2026. linuxfoundation.org/press/a2a-protocol-surpasses-150-organizations…
  40. Liu, Xiuming, Le Gai, Zhiyuan Chang, Peiyang Li, Bin Zhu, Shuo Wang, and Chao Feng. "Agent-Canary-Mas: End-to-End Evaluation of Protocol Risk in Long-Horizon Multi-Agent Systems." arXiv 2026. arxiv.org/abs/2610.15529
  41. Model Context Protocol. "Specification" (revision 2026-07-28). modelcontextprotocol.io 2026. modelcontextprotocol.io/specification/latest
  42. OpenClaw. "Exec approvals." OpenClaw documentation 2026. docs.openclaw.ai/tools/exec-approvals
  43. Chhikara, P., Khant, D., Aryan, S., Singh, T., Yadav, D. "Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory." arXiv 2025. arxiv.org/abs/2504.19413
  44. Rasmussen, P., Paliychuk, P., Beauvais, T., Ryan, J., Chalef, D. "Zep: A Temporal Knowledge Graph Architecture for Agent Memory." arXiv 2025. arxiv.org/abs/2501.13956v1
  45. Zep. "Graphiti: Build Real-Time Knowledge Graphs for AI Agents" (repository). GitHub 2025. github.com/getzep/graphiti
  46. Ding, T., Nannapaneni, A., Liu, B., Zhang, L. "Always-On Agents: A Survey of Persistent Memory, State, and Governance in LLM Agents." arXiv 2026. arxiv.org/pdf/2606.30306
  47. Lin, Z., Hao, X., Fu, R., Cui, S., Chen, K., Li, C., Li, Z., Xiong, F. "A Survey on Long-Term Memory Security in LLM Agents: Attacks, Defenses, and Governance Across the Memory Lifecycle." arXiv 2026. arxiv.org/html/2604.16548
  48. Packer, C., Wooders, S., Lin, K., Fang, V., Patil, S. G., Stoica, I., Gonzalez, J. E. "MemGPT: Towards LLMs as Operating Systems." arXiv 2023. arxiv.org/abs/2310.08560v2
  49. Letta. "Sleep-time Compute." Letta Blog 2025. letta.com/blog/sleep-time-compute
  50. Lin, K., Snell, C., Wang, Y., Packer, C., Wooders, S., Stoica, I., Gonzalez, J. E. "Sleep-time Compute: Beyond Inference Scaling at Test-time." arXiv 2025. arxiv.org/abs/2504.13171
  51. Xu, W., Liang, Z., Mei, K., Gao, H., Tan, J., Zhang, Y. "A-MEM: Agentic Memory for LLM Agents." arXiv 2025. arxiv.org/abs/2502.12110
  52. Wang, G., Xie, Y., Jiang, Y., Mandlekar, A., Xiao, C., Zhu, Y., Fan, L., Anandkumar, A. "Voyager: An Open-Ended Embodied Agent with Large Language Models." arXiv 2023. arxiv.org/abs/2305.16291
  53. Wang, Z. Z., Mao, J., Fried, D., Neubig, G. "Agent Workflow Memory." arXiv 2024. arxiv.org/abs/2409.07429v1
  54. Zhang, Q., Hu, C., Upasani, S., Ma, B., Hong, F., Kamanuru, V., Rainton, J., Wu, C., Ji, M., Li, H., Thakker, U., Zou, J., Olukotun, K. "Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models." ICLR 2026 (arXiv 2025). arxiv.org/abs/2510.04618
  55. Wu, D., Wang, H., Yu, W., Zhang, Y., Chang, K.-W., Yu, D. "LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory." ICLR 2025. arxiv.org/abs/2410.10813
  56. Hong, K., Troynikov, A., Huber, J. "Context Rot: How Increasing Input Tokens Impacts LLM Performance." Chroma Research 2025. trychroma.com/research/context-rot
  57. Rajasekaran, P., Dixon, E., Ryan, C., Hadfield, J. "Effective Context Engineering for AI Agents." Anthropic Engineering 2025. anthropic.com/engineering/effective-context-engineering-for-ai-agents
  58. Anthropic. "Managing Context on the Claude Developer Platform" (context editing and memory tool). Claude 2025. claude.com/resources/articles/context-management
  59. Young, J. "Effective Harnesses for Long-Running Agents." Anthropic Engineering 2025. anthropic.com/engineering/effective-harnesses-for-long-running-agents
  60. Martin, L. "The Components of Agent Memory." Anthropic Engineering 2026. anthropic.com/engineering/components-of-agent-memory
  61. Ji, Y. "Context Engineering for AI Agents: Lessons from Building Manus." Manus Blog 2025. manus.im/blog/Context-Engineering-for-AI-Agents-Lessons-from-Building-Manus
  62. Zhang, Y., Zhao, S., Zhang, J., Deng, G., Zhang, J., Liu, X., Xiao, C., Zhang, T. "Mind Your HEARTBEAT! Claw Background Execution Inherently Enables Silent Memory Pollution." arXiv 2026. arxiv.org/pdf/2603.23064
  63. Kwa, T., West, B., Becker, J., Deng, A., et al. "Measuring AI Ability to Complete Long Tasks." METR 2025. metr.org/blog/2025-03-19-measuring-ai-ability-to-complete-long-tasks
  64. METR. "Limitations of the Time Horizon Metric." METR Notes 2026. metr.org/notes/2026-01-22-time-horizon-limitations
  65. METR. "Details about METR's Evaluation of OpenAI GPT-5.1-Codex-Max." METR 2025. metr.org/evaluations/gpt-5-1-codex-max-report
  66. METR. "Time Horizons" (model estimates and data file benchmark_results_1_1.yaml). METR 2026. metr.org/time-horizons
  67. Sinha, A., Arun, A., Goel, S., Staab, S., Geiping, J. "The Illusion of Diminishing Returns: Measuring Long Horizon Execution in LLMs." arXiv 2025. arxiv.org/abs/2509.09677
  68. Yao, S., Shinn, N., Razavi, P., Narasimhan, K. "τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains." arXiv 2024. arxiv.org/abs/2406.12045
  69. Iqbal, S. T., Horvitz, E. "Disruption and Recovery of Computing Tasks: Field Study, Analysis, and Directions." CHI 2007. erichorvitz.com/CHI_2007_Iqbal_Horvitz.pdf
  70. Tang, Y., Tang, H., Cao, T., Nguyen, L., et al. "ProAgentBench: Evaluating LLM Agents for Proactive Assistance with Real-World Data." arXiv 2026. arxiv.org/html/2602.04482v1
  71. Pasternak, G., Rajagopal, D., White, J., Atreja, D., Thomas, M., et al. "Beyond Reactivity: Measuring Proactive Problem Solving in LLM Agents." arXiv 2025. arxiv.org/html/2510.19771v3
  72. Harfi, S., Salimi, A., Shen, D., Smola, A. "ProactBench: Beyond What The User Asked For." arXiv 2026. arxiv.org/html/2605.09228
  73. Pei, W., Wang, X., Liu, J., Zhuge, C., et al. "HALO: Human-Grounded Granular Evaluation of Proactive Agents." arXiv 2026. arxiv.org/pdf/2610.39086
  74. TechCrunch. "OpenAI Launches ChatGPT Pulse to Proactively Write You Morning Briefs." TechCrunch 2025. techcrunch.com/2025/09/25/openai-launches-chatgpt-pulse-…
  75. Xie, T., Zhang, D., Chen, J., et al. "OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environments." arXiv 2024. arxiv.org/abs/2404.07972
  76. BenchLM. "OSWorld-Verified Leaderboard." BenchLM 2026. benchlm.ai/benchmarks/osworld-verified
  77. Barres, V., Dong, H., Ray, S., Si, X., Narasimhan, K. "τ²-Bench: Evaluating Conversational Agents in a Dual-Control Environment." arXiv 2025. arxiv.org/abs/2506.07982
  78. Wu, Z., Liu, X., Zhang, X., et al. "MCPMark: A Benchmark for Stress-Testing Realistic and Comprehensive MCP Use." arXiv 2025. arxiv.org/abs/2509.24002
  79. Mazeika, M., Gatti, A., Menghini, C., Hendrycks, D., et al. "Remote Labor Index: Measuring AI Automation of Remote Work." arXiv 2025. arxiv.org/abs/2510.26787
  80. Rein, D., Becker, J., Deng, A., et al. "HCAST: Human-Calibrated Autonomy Software Tasks." arXiv 2025. arxiv.org/abs/2503.17354
  81. Xu, F. F., Song, Y., Li, B., et al. "TheAgentCompany: Benchmarking LLM Agents on Consequential Real World Tasks." arXiv 2024. arxiv.org/abs/2412.14161
  82. Mialon, G., Fourrier, C., Swift, C., Wolf, T., LeCun, Y., Scialom, T. "GAIA: a benchmark for General AI Assistants." arXiv 2023. arxiv.org/abs/2311.12983
  83. Ma, E., Zhou, Y., Huang, W.-C., et al. "MemAudit: Auditing Long-Term Agent Memory via Hidden User-State Recovery." arXiv 2026. arxiv.org/abs/2606.24595
  84. Tang, Y., Tang, H., Cao, T., et al. "ProAgentBench: Evaluating LLM Agents for Proactive Assistance with Real-World Data." arXiv 2026. arxiv.org/abs/2602.04482
  85. Backlund, A., Petersson, L. "Vending-Bench: A Benchmark for Long-Term Coherence of Autonomous Agents." arXiv 2025. arxiv.org/abs/2502.15840
  86. Andon Labs. "Vending-Bench 2." Andon Labs evaluations page 2025. andonlabs.com/evals/vending-bench-2
  87. Meng, F., Du, L., et al. "ClawMark: A Living-World Benchmark for Multi-Turn, Multi-Day, Multimodal Coworker Agents." arXiv 2026. arxiv.org/abs/2604.23781
  88. Lin, Y., Liang, X., Wang, H., et al. "Claw-Anything: Benchmarking Always-On Personal Assistants with Broader Access to User's Digital World." arXiv 2026. arxiv.org/abs/2605.26086
  89. Wang, H., Li, H., Mang, Q., Cheung, A., Sen, K., Song, D. "Do Androids Dream of Breaking the Game? Systematically Auditing AI Agent Benchmarks with BenchJack." arXiv 2026. arxiv.org/abs/2605.12673
  90. Chen, L., Zaharia, M., Zou, J. "How is ChatGPT's behavior changing over time?" arXiv 2023. arxiv.org/abs/2307.09009
  91. Grace, M., Hadfield, J., Olivares, R., De Jonghe, J. "Demystifying evals for AI agents." Anthropic Engineering 2026 (9 Jan). anthropic.com/engineering/demystifying-evals-for-ai-agents
  92. Google. "Canarying Releases." The Site Reliability Workbook 2018. sre.google/workbook/canarying-releases
  93. Johari, R., Pekelis, L., Walsh, D. J. "Always Valid Inference: Bringing Sequential Analysis to A/B Testing." arXiv 2015. arxiv.org/abs/1512.04922
  94. Jung, J., Brahman, F., Choi, Y. "Trust or Escalate: LLM Judges with Provable Guarantees for Human Agreement." arXiv 2024. arxiv.org/abs/2407.18370
  95. Anthropic. "Project Vend: Can Claude run a small shop? (And why does that matter?)" Anthropic Research 2025 (27 Jun). anthropic.com/research/project-vend-1
  96. Greshake, K., Abdelnabi, S., Mishra, S., Endres, C., Holz, T., Fritz, M. "Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection." arXiv 2023. arxiv.org/abs/2302.12173
  97. Reddy, P., Gujral, A. S. "EchoLeak: The First Real-World Zero-Click Prompt Injection Exploit in a Production LLM System." arXiv 2025. arxiv.org/abs/2509.10540
  98. Invariant Labs. "MCP Security Notification: Tool Poisoning Attacks." Invariant Labs blog 2025 (1 Apr). invariantlabs.ai/blog/mcp-security-notification
  99. Seetharam, S. B., Mohamed, N., Melicher, B., Starov, O. "OpenClaw's Skill Marketplace and the Emerging AI Supply Chain Threat." Unit 42, Palo Alto Networks 2026 (23 Jun). unit42.paloaltonetworks.com/openclaw-ai-supply-chain-risk
  100. Lyons, J. "It's easy to backdoor OpenClaw, and its skills leak API keys." The Register 2026 (5 Feb). theregister.com/2026/02/05/openclaw_skills_marketplace_leaky_security
  101. Suwansathit, S., Zhang, Y., Gu, G. "A Security Analysis of the OpenClaw AI Agent Framework." arXiv 2026. arxiv.org/pdf/2603.27517
  102. TechRadar. "Here are the OpenClaw security risks you should know about." TechRadar Pro 2026 (1 Apr). techradar.com/pro/here-are-the-openclaw-security-risks-you-should-know-about
  103. Dong, S., Xu, S., He, P., Li, Y., Tang, J., Liu, T., Liu, H., Xiang, Z. "Memory Injection Attacks on LLM Agents via Query-Only Interaction." arXiv 2025. arxiv.org/abs/2503.03704
  104. Zhan, Q., Liang, Z., Ying, Z., Kang, D. "InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents." Findings of ACL 2024. arxiv.org/abs/2403.02691
  105. Debenedetti, E., Zhang, J., Balunović, M., Beurer-Kellner, L., Fischer, M., Tramèr, F. "AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents." arXiv 2024. arxiv.org/abs/2406.13352
  106. Willison, S. "The lethal trifecta for AI agents: private data, untrusted content, and external communication." Simon Willison's Weblog 2025 (16 Jun). simonwillison.net/2025/Jun/16/the-lethal-trifecta
  107. Backlund, A., Petersson, L. "Vending-Bench: A Benchmark for Long-Term Coherence of Autonomous Agents." arXiv 2025. arxiv.org/abs/2502.15840
  108. Arike, R., Donoway, E., Bartsch, H., Hobbhahn, M. "Technical Report: Evaluating Goal Drift in Language Model Agents." arXiv 2025. arxiv.org/abs/2505.02709
  109. Anthropic. "Project Vend: Phase two." Anthropic 2025 (18 Dec). anthropic.com/news/project-vend-2
  110. Willison, S. "A quote from Summer Yue." Simon Willison's Weblog 2026 (23 Feb). simonwillison.net/2026/feb/23/summer-yue
  111. Nolan, B. "An AI-powered coding tool wiped out a software company's database, then apologized for a 'catastrophic failure on my part'." Fortune 2025 (23 Jul). fortune.com/2025/07/23/ai-coding-tool-replit-wiped-database
  112. Levi, D. "AI Agents Horror Stories: How a $47,000 AI Agent Failure Exposed the Hype and Hidden Risks of Multi-Agent Systems." Tech Startups 2025 (14 Nov); relays a single first-person account. techstartups.com/2025/11/14/ai-agents-horror-stories
  113. European Union. "Article 50: Transparency Obligations for Providers and Deployers of Certain AI Systems." EU Artificial Intelligence Act (Regulation (EU) 2024/1689), via artificialintelligenceact.eu. artificialintelligenceact.eu/article/50
  114. Meta. "Agents Rule of Two: A Practical Approach to AI Agent Security." Meta AI blog 2025 (31 Oct). ai.meta.com/blog/practical-ai-agent-security
  115. Beurer-Kellner, L., Buesser, B., Creţu, A.-M., Debenedetti, E., Dobos, D., Fabian, D., Fischer, M., Froelicher, D., Grosse, K., Naeff, D., Ozoani, E., Paverd, A., Tramèr, F., Volhejn, V. "Design Patterns for Securing LLM Agents against Prompt Injections." arXiv 2025. arxiv.org/abs/2506.08837
  116. Debenedetti, E., Shumailov, I., Fan, T., Hayes, J., Carlini, N., Fabian, D., Kern, C., Shi, C., Terzis, A., Tramèr, F. "Defeating Prompt Injections by Design." arXiv 2025. arxiv.org/abs/2503.18813
  117. OWASP GenAI Security Project. "LLM06:2025 Excessive Agency." OWASP Top 10 for LLM Applications 2025. genai.owasp.org/llmrisk/llm062025-excessive-agency
  118. Greenblatt, R., Shlegeris, B., Sachan, K., Roger, F. "AI Control: Improving Safety Despite Intentional Subversion." arXiv 2023. arxiv.org/abs/2312.06942
  119. Davidovič, Štěpán, and Kavita Guliani. "Reliable Cron across the Planet." ACM Queue 2015. queue.acm.org/detail.cfm?id=2745840
  120. Brooker, Marc. "Timeouts, retries, and backoff with jitter." Amazon Builders' Library 2019. builder.aws.com/…/timeouts-retries-and-backoff-with-jitter
  121. Brooker, Marc. "Exponential Backoff And Jitter." AWS Architecture Blog 2015 (updated 2023). aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter
  122. Temporal Technologies. "Schedule." Temporal Documentation 2026. docs.temporal.io/schedule
  123. OpenAI. "API Pricing." OpenAI Developer Documentation, read 2026-11-29. developers.openai.com/api/docs/pricing
  124. Anthropic. "Pricing." Claude Platform Documentation, read 2026-11-29. platform.claude.com/docs/en/about-claude/pricing
  125. OpenAI. "GPT-5 System Card." OpenAI 2025. openai.com/index/gpt-5-system-card
  126. Amazon Web Services. "Idempotency (Lambda durable functions)." AWS Lambda Developer Guide 2026. docs.aws.amazon.com/lambda/latest/dg/durable-execution-idempotency.html
  127. Stripe. "Idempotent requests." Stripe API Reference 2026. docs.stripe.com/api/idempotent_requests
  128. Amazon Web Services. "Transactional outbox pattern." AWS Prescriptive Guidance: Cloud Design Patterns. docs.aws.amazon.com/prescriptive-guidance/…/transactional-outbox
  129. Moslem, Yasmin, and John D. Kelleher. "Dynamic Model Routing and Cascading for Efficient LLM Inference: A Survey." arXiv 2026. arxiv.org/html/2603.04445
  130. Chen, Lingjiao, Matei Zaharia, and James Zou. "FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance." arXiv 2023. arxiv.org/abs/2305.05176
  131. Ong, Isaac, Amjad Almahairi, Vincent Wu, Wei-Lin Chiang, Tianhao Wu, Joseph E. Gonzalez, M Waleed Kadous, and Ion Stoica. "RouteLLM: Learning to Route LLMs with Preference Data." arXiv 2024 (v4 2025). arxiv.org/abs/2406.18665v4
  132. Li, Hao, Yiqun Zhang, Zhaoyan Guo, et al. "LLMRouterBench: A Massive Benchmark and Unified Framework for LLM Routing." arXiv 2026. arxiv.org/html/2601.07206
  133. Lu, Yifan, Qiyue Zhang, Shenrun Zhang, Zhibo Yu, Zhuang Wang, Hanjie Chen, and Jiarong Xing. "The Routing Plateau: Understanding and Breaking the Accuracy Limits of LLM Routers." arXiv 2026. arxiv.org/pdf/2606.07587
  134. Elbakoury, Hesham, Deep Shah, and Ankur Sharma. "Smart Model Routing for Order-of-Magnitude LLM Cost Reduction: A Technical Analysis of Cost-Aware Inference Routing for Large Language Models." arXiv 2026. arxiv.org/pdf/2611.15911
  135. Anthropic. "Prompt caching." Claude Platform Documentation, read 2026-11-29. platform.claude.com/docs/en/build-with-claude/prompt-caching
  136. E2B. "Pricing." E2B, read 2026-11-29. e2b.dev/pricing
  137. Şahin, Ali Tarık. "AI Sandbox Pricing Compared: Active CPU vs Wall-Clock Billing, Which Costs Less?" Upstash Blog 2026. upstash.com/blog/ai-sandbox-pricing-active-cpu-vs-wall-clock
  138. Cottier, Ben, Ben Snodin, David Owen, and Tom Adamczewski. "LLM inference prices have fallen rapidly but unequally across tasks." Epoch AI Data Insights 2025. epoch.ai/data-insights/llm-inference-price-trends
  139. Meta. "Meta-Llama-3.1-70B-Instruct config.json (Unsloth mirror)." Hugging Face 2024. huggingface.co/unsloth/Meta-Llama-3.1-70B-Instruct
  140. Meta. "Llama-3.2-3B-Instruct config.json (Unsloth mirror)." Hugging Face 2024. huggingface.co/unsloth/Llama-3.2-3B-Instruct
  141. Kwon, Woosuk, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. "Efficient Memory Management for Large Language Model Serving with PagedAttention." SOSP 2023. arxiv.org/abs/2309.06180
  142. Zheng, Lianmin, Liangsheng Yin, Zhiqiang Xie, Chuyue Sun, Jeff Huang, Cody Hao Yu, Shiyi Cao, Christos Kozyrakis, Ion Stoica, Joseph E. Gonzalez, Clark Barrett, and Ying Sheng. "SGLang: Efficient Execution of Structured Language Model Programs." NeurIPS 2024. arxiv.org/abs/2312.07104
  143. Zhong, Yinmin, Shengyu Liu, Junda Chen, Jianbo Hu, Yibo Zhu, Xuanzhe Liu, Xin Jin, and Hao Zhang. "DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving." OSDI 2024. arxiv.org/abs/2401.09670
  144. Qin, Ruoyu, Zheming Li, Weiran He, Jialei Cui, Feng Ren, Mingxing Zhang, Yongwei Wu, Weimin Zheng, and Xinran Xu. "Mooncake: Trading More Storage for Less Computation — A KVCache-centric Architecture for Serving LLM Chatbot." USENIX FAST 2025. usenix.org/conference/fast25/presentation/qin
  145. Qin, Ruoyu, Zheming Li, Weiran He, Mingxing Zhang, Yongwei Wu, Weimin Zheng, and Xinran Xu. "Mooncake: A KVCache-centric Disaggregated Architecture for LLM Serving." arXiv 2024. arxiv.org/abs/2407.00079
  146. Agache, Alexandru, Marc Brooker, Andreea Florescu, Alexandra Iordache, Anthony Liguori, Rolf Neugebauer, Phil Piwonka, and Diana-Maria Popa. "Firecracker: Lightweight Virtualization for Serverless Applications." USENIX NSDI 2020. usenix.org/conference/nsdi20/presentation/agache
  147. Colyer, Adrian. "Firecracker: lightweight virtualization for serverless applications." The Morning Paper 2020. blog.acolyer.org/2020/03/02/firecracker
  148. Firecracker project. "Firecracker: secure and fast microVMs for serverless computing." Project site 2026. firecracker-microvm.github.io
  149. Firecracker project. "Snapshot support." GitHub documentation 2026. github.com/firecracker-microvm/…/snapshot-support.md
  150. gVisor authors. "Performance Guide." gVisor documentation 2026. gvisor.dev/docs/architecture_guide/performance
  151. Subramanian, Shreyas, Kosti Vasilakakis, and Vivek Bhadauria. "Securely launch and scale your agents and tools on Amazon Bedrock AgentCore Runtime." AWS Machine Learning Blog 2025. aws.amazon.com/blogs/machine-learning/…
  152. Amazon Web Services. "How it works: Amazon Bedrock AgentCore Runtime." AgentCore Developer Guide 2026. docs.aws.amazon.com/bedrock-agentcore/…/runtime-how-it-works
  153. Amazon Web Services. "Use isolated sessions for agents." AgentCore Developer Guide 2026. docs.aws.amazon.com/bedrock-agentcore/…/runtime-sessions
  154. Amazon Web Services. "Running self-hosted AI agent sandboxes with AWS Lambda MicroVMs." AWS Compute Blog 2026. aws.amazon.com/blogs/compute/…
  155. Amazon Web Services. "Runtime instances: persistent compute for production AI agents on Amazon Bedrock AgentCore." AWS News Blog 2026. aws.amazon.com/blogs/aws/runtime-instances-…
  156. Saunders, Matt. "Multi Agent Collaboration Gets Persistent Compute in Bedrock AgentCore." InfoQ 2026. infoq.com/news/2026/08/aws-bedrock-agentcore-runtime
  157. Singer, Daniel. "Daytona vs E2B vs Modal vs Vercel Sandbox: A 2026 Comparison." StartupHub.ai 2026. startuphub.ai/news/daytona-vs-e2b-…
  158. OpenClaw contributors. "Agent workspace." OpenClaw documentation 2026. docs.openclaw.ai/concepts/agent-workspace
  159. vLLM project. "Automatic Prefix Caching." vLLM Documentation, read 2026-11-29. docs.vllm.ai/…/automatic_prefix_caching
  160. Amazon Web Services. "What is a cell-based architecture?" In Reducing the Scope of Impact with Cell-Based Architecture, AWS Well-Architected 2023. docs.aws.amazon.com/wellarchitected/…/what-is-a-cell-based-architecture
  161. Amazon Web Services. "Control plane and data plane." In Reducing the Scope of Impact with Cell-Based Architecture, AWS Well-Architected 2023. docs.aws.amazon.com/wellarchitected/…/control-plane-and-data-plane
  162. Hardt, Dick (ed.). "The OAuth 2.0 Authorization Framework." RFC 6749, IETF 2012. datatracker.ietf.org/doc/html/rfc6749
  163. Lodderstedt, T., J. Bradley, A. Labunets, and D. Fett. "Best Current Practice for OAuth 2.0 Security." RFC 9700 (BCP 240), IETF 2025. datatracker.ietf.org/doc/rfc9700
  164. OpenAI. "Introducing ChatGPT Pulse." OpenAI 2025. openai.com/index/introducing-chatgpt-pulse
  165. xAI. "Introducing Grok Bot." xAI News 2026. x.ai/news/introducing-grok-bot
  166. TechRepublic. "Meta launches Muse AI agent to run errands, book travel, and shop." TechRepublic 2026. techrepublic.com/article/news-meta-muse-ai-agent-us-launch
  167. OpenAI. "Introducing dots." OpenAI 2026. openai.com/index/introducing-dots
  168. Anthropic. "Claude Duet." Claude product page 2026. claude.com/product/claude-duet
  169. TechCrunch. "OpenAI launches ChatGPT Pulse to proactively write you morning briefs." TechCrunch 2025. techcrunch.com/2025/09/25/openai-launches-chatgpt-pulse…
  170. TechCrunch. "Google introduces Gemini Spark, a 24/7 agentic assistant with Gmail integration." TechCrunch 2026. techcrunch.com/2026/05/19/google-introduces-gemini-spark…
  171. TechCrunch. "Microsoft launches Scout, an OpenClaw-inspired personal assistant." TechCrunch 2026. techcrunch.com/2026/06/02/microsoft-launches-scout…
  172. Unite.AI. "xAI launches Grok Bot: always-on AI teammates with their own cloud computers." Unite.AI 2026. unite.ai/xai-launches-grok-bot…
  173. Meta. "Introducing Muse: The World's First Personal AI Agent Built for Everyone." Meta Newsroom 2026. about.fb.com/news/2026/09/introducing-muse-personal-ai-agent
  174. The Next Web. "OpenAI launches dots, always-on AI agents with their own cloud computers." The Next Web 2026. thenextweb.com/news/openai-dots-always-on-ai-agents…
  175. 9to5Mac. "Anthropic takes on ChatGPT dots and Meta Muse with Claude Duet." 9to5Mac 2026. 9to5mac.com/2026/10/21/anthropic-takes-on-chatgpt-dots…
  176. OpenClaw. "Heartbeat (retired)." OpenClaw documentation 2026. docs.openclaw.ai/gateway/heartbeat
  177. Richardson, Chris. "Pattern: Transactional outbox." microservices.io. microservices.io/patterns/data/transactional-outbox
  178. Parrott, Katie. "The Fallacy of the 16-Hour Agent." Every 2026. every.to/chain-of-thought/the-fallacy-of-the-16-hour-agent