TEXTBOOK·ENGINEERING AI AGENTSPreviousCHAPTER 14 OF 15NextContents
14PROACTIVE AGENTS + OPEN PROBLEMS

Proactive agents

A system that waits to be asked is easier to build and easier to trust. Initiative has to be earned by a model of when interruption is welcome.

14.1The interruption decision

A proactive agent differs from a reactive one in a single structural respect: no request arrives to tell it what the user wants. A reactive agent receives an instruction and executes against it, and any error it makes is an error of execution. A proactive agent must first decide whether the user wants anything at all, and only then decide what. The hardest part of the engineering problem moves away from capability and toward a decision under uncertainty. An agent that can draft a perfect message but drafts it at the wrong moment, on the wrong evidence, is worse than an agent that does nothing.

Horvitz formalised this decision in 1999 in a paper about a scheduling assistant that watched incoming mail and offered to create calendar entries. The framework survives essentially unchanged because it assumes nothing about the inference machinery producing the belief. Let the agent hold belief p that the user has some goal it could serve. Four outcomes follow from acting or refraining against whether the goal was real, and each carries a utility.

The two correct outcomes are the ones designers think about and the least interesting. The two errors carry the design content. Acting when the user did not want it is a false positive; staying silent when help would have been welcome is a false negative. Setting the expected utility of acting equal to the expected utility of silence gives a threshold above which action is preferred, and that threshold is a ratio of regrets: the regret of an unwanted interruption over the sum of both regrets. Equal regrets put the threshold at one half. As the cost of a false positive grows relative to a missed opportunity, the threshold climbs toward certainty.

For proactive agents the two errors are not close to symmetric. A false negative is invisible — the user does the task manually and never learns assistance was available, at a cost of one unhelped moment. A false positive is visible by construction, since the only way the user learns of it is by being interrupted. It spends attention, which is the scarcest resource the system touches, and it degrades the user's model of the agent cumulatively.

That cumulative term breaks the per-decision framing. Each unwanted interruption is evidence to the user that the agent misunderstands them, and users aggregate this evidence across interactions. Someone interrupted wrongly four times does not evaluate the fifth suggestion on its merits; they evaluate it against a prior that the agent is noisy. A sufficiently strong prior causes them to disable the feature, and disabling is absorbing — every future correct suggestion is forfeited. A single false positive therefore carries a small probability of losing the agent's entire future value, which makes its effective cost a function of the history of prior false positives.

Horvitz's response was to reject the binary framing. Rather than one threshold separating silence from action, the system used two, partitioning the probability line into three regions: do nothing, ask, or act. The middle band is where a well-designed proactive agent should spend most of its time, for two compounding reasons. Asking transforms the risk profile, because an autonomous action has unbounded downside while a question costs a moment of attention and a dismissal. And the answer is a labelled example — when the agent acts correctly on its own it learns almost nothing, since user silence is ambiguous between approval and inattention, but an accept or reject is clean supervision attached to the context that produced the belief.

One assumption is routinely violated in deployed systems. The utility table treats interruption cost as constant, when it varies by a large factor with the user's focus state. Interrupting someone reading an article costs little; interrupting the same person twenty minutes into debugging costs the working state they have assembled, which takes minutes to rebuild. Worse, focus state correlates with the evidence the agent uses to form its belief: sustained engagement produces exactly the dense coherent observation stream from which high confidence is derived. An agent that models the belief carefully and treats interruption cost as fixed will concentrate its interruptions on the moments when they are most expensive.

p* = Δ_fp / (Δ_fp + Δ_fn)
The threshold is a ratio of regrets. Equal regrets give one half; a false positive ten times as costly gives about 0.91.
p*_ask < p*_act silence · ask · act
The two-threshold policy. Asking sits far below acting because its downside is bounded.
OUTCOMEVISIBLE TO USERMAGNITUDE
Act, goal heldYesPositive, bounded by task value
Act, no goalYes, unavoidablyNegative: attention plus cumulative trust loss
Silent, goal heldNoSmall negative, one unhelped moment
Silent, no goalNoZero, the baseline

14.2Building the user model

The framework above assumes a belief is available. Producing it is the harder problem, because the evidence is unstructured, continuous, and arrives without labels. The General User Models architecture, presented at UIST in 2025, is the reference design. Its premise is that a user model should not be a fixed schema of preference fields but an open-ended set of natural-language propositions inferred from whatever the user does, with no predefined ontology of what is worth recording.

A proposition is a statement about the user paired with a confidence score and a reasoning trace linking it to the observations that produced it. In the deployed system, screen transcription ran on an open vision model and proposition generation on an open language model, hosted on local hardware. That choice belongs to the privacy argument rather than the performance one, and the final lesson returns to it.

Four operations define the architecture, and the third is the one most systems omit. Propose reads new observations and emits confidence-weighted propositions. Retrieve answers the query the rest of the system needs — given the current context, which stored propositions are relevant — using lexical search with reranking, a decay favouring recent evidence, and a diversity term so the returned set is not several restatements of one belief. Revise merges and recalibrates when new evidence arrives. Audit screens inferences for appropriateness before they are surfaced.

Revision separates a user model from a log. A system that only appends accumulates contradictions with no resolution mechanism; every stale belief remains at full strength, and average accuracy decays monotonically. From the user's side, a model that cannot lower its confidence cannot be corrected, and a model that cannot be corrected cannot reasonably be trusted with autonomous action. Systems that skip revision are frequently the ones whose users report that the assistant became stuck on an old assumption.

The evaluation numbers set realistic expectations for anything built on this. In a controlled study over email data with eighteen participants, propositions were rated 76.15 per cent accurate across all confidence levels, with a Brier score of 0.17. Restricted to the highest-confidence band, user-rated accuracy reached 100 per cent. In a five-day deployment with five participants on live computer use, accuracy was 0.79 with a Brier score of 0.28 — accurate and still reasonably calibrated, though calibration degrades noticeably outside the controlled setting.

The direction of the residual error is more informative than its size. These errors skewed toward underconfidence: propositions carried lower confidence than their measured accuracy justified. Underconfidence is the correct direction to err. Against a fixed threshold, understated confidence raises the effective bar, so the agent acts less often than the calculation prescribes, and the resulting errors are additional false negatives — invisible and bounded. Overconfidence by the same margin would admit actions whose true probability sits below the threshold, converting the error into false positives, which are visible and cumulative.

The proactive assistant built on this model runs a four-stage pipeline. Candidate generation queries for propositions suggesting an unmet need. Utility filtering scores each candidate against the cost of surfacing it. Rate limiting passes survivors through a token bucket capping delivery at roughly one suggestion per minute. Sandboxed execution runs whatever work the suggestion requires in isolation, so a suggestion the user never accepts leaves no trace in their real files or mailbox.

The rate limiter looks redundant beside the utility filter, and understanding why it is not is the architectural lesson here. The filter evaluates candidates independently, but the cost of surfacing one depends on how many others compete for the same attention window. Ten independently excellent suggestions arriving in one minute are collectively worse than the best one arriving alone, because attention is shared across all of them. A per-item decision has no access to that shared budget, and no improvement to the per-item scorer will fix it, because the information required is not in the item.

Across the deployment, a quarter of suggestions were rated strong or excellent, and two of five participants asked to keep using the system afterwards. A one-in-four rate sounds unimpressive until compared against the alternative of no suggestion at all, and until noting that the token bucket bounds the denominator.

BS = (1/N) Σ (cᵢ − yᵢ)²
Brier score: mean squared error of stated confidence against outcome. A system always saying one half scores 0.25.
SETTINGNACCURACYBRIER
Controlled, email data1876.15% across all propositions0.17
Controlled, highest confidence band18100%—
Deployed, five-day study50.790.28
Suggestion quality525% strong or excellent—
Privacy audit—7 of 180 propositions flagged—

14.3Next-action prediction and mixed initiative

The architecture above models what is true of the user. A proactive agent frequently needs something narrower: what the user is about to do. Recent work formalises this as next-action prediction, forecasting subsequent behaviour from a sequence of interactions including screen state, clicks, and sensor data.

The dataset construction is instructive independent of the modelling result, because it identifies where supervision comes from. The authors annotated naturalistic computer use with vision-language models, producing over 360,000 labelled actions from a month of continuous usage across twenty users, roughly 1,800 hours of screen time. The labels are machine-generated from raw traces rather than hand-annotated, which is the only approach that scales to this volume, and it means label quality is bounded by the annotator model.

The headline improvements are large in relative terms — some 79 per cent over zero-shot prompting — but the absolute numbers are what matter for engineering. About 17 per cent of predicted trajectories achieved strong alignment with what the user actually did. Filtering to high-confidence predictions raised this to roughly a quarter.

Read plainly, the current state of the art gets about one trajectory in six substantially right, and one in four when confident. Any proactive system designed on the assumption that next-action prediction is reliable rests on a false premise. The correct reading is not that the technique fails but that it produces a weak signal with a usable confidence ordering, which is precisely the input the decision framework is built to consume. A belief around a quarter is not a licence to act; it is a candidate for the ask band.

Distinguishing what is predictable from what is not clarifies where to invest. Short-horizon mechanical continuations are comparatively easy — the next application in an established sequence, the next field in a form. Routine at fixed times is easy because the base rate carries the signal. What resists prediction is anything driven by information the agent cannot observe: a phone call that reorders the day, a decision made away from the machine, the moment a user abandons an approach because it feels wrong. Accuracy also falls sharply with horizon, since each additional step multiplies the branching.

The most consequential distinction is between two questions that systems routinely conflate. Predicting what the user will do is a modelling problem returning a distribution over actions. Deciding whether to intervene is a decision problem returning silence, a question, or an action. Intervention value scales with the effort the agent saves, not with the confidence of the prediction. Confidently predicting that someone is about to open their mail client is a poor intervention target, because the action is cheap for them to perform. A less certain prediction that they are about to spend twenty minutes assembling a report from six sources is a strong one.

These pieces arrange along a spectrum defined by who holds control. In a reactive system the user initiates and the agent executes. In a suggestive system the agent proposes and the user disposes. In a mixed-initiative system either party may take the next turn, with the agent sometimes acting and sometimes deferring based on confidence and reversibility. In a fully proactive system the agent acts and informs the user afterwards, if at all. The useful designs cluster in the middle two positions: the reactive end wastes the model's inferential capacity, and the fully autonomous end requires a level of reliability the measured numbers do not support.

SIGNALPREDICTABILITYWHY
Next application in an established sequenceHighStrong local structure, short horizon
Next field in a partially filled formHighConstrained action space
Recurring routine at a fixed timeHighThe base rate carries the signal
Which of several open tasks resumesModerateDepends on unobserved priority
A trajectory over ten or more actionsLow, about one in sixBranching compounds per step
Action caused by an off-screen eventNear zeroThe causal input is not observable

14.4Privacy, trust, and staged autonomy

An agent that observes everything a user does accumulates knowledge no single application has previously held. The question this raises is not whether it may collect the information, since the user installed the observers deliberately, but where the resulting inferences may legitimately appear. Contextual integrity is the right analytical tool, and it is more precise than the notions of private and public data that most systems encode.

Contextual integrity holds that information flows are governed by norms attached to the context in which the information was shared, not by properties of the information itself. Medical information shared with a physician flows appropriately within that context; the same information appearing in a work document violates the norms of its disclosure, even though nothing about the fact changed. A system built on a sensitivity classifier cannot represent this, because the same fact is appropriate in one destination and inappropriate in another.

This matters specifically for proactive agents because of how they acquire information. The model learns everything legitimately — the user consented to the capture, and the inference engine merely read what was on screen. The failure occurs downstream, when the agent draws on a proposition inferred in one setting to make a suggestion in another, because the retrieval module ranked it relevant to the current context. Relevance and appropriateness are different predicates, and a retriever optimises the first. A system with no separate check will surface contextually inappropriate information precisely when it is most topically relevant.

The reference implementation includes an audit module for this, and in evaluation it flagged seven of a hundred and eighty propositions as violations. That rate of roughly four per cent should be read as a floor rather than a ceiling. It counts only violations the module detected. It was measured over five days with five participants, a window too short for the long-horizon flows where an inference resurfaces months later in a different setting. And the authors note susceptibility to adversarial manipulation, where content authored to be seen by the observer steers what the model infers and later says.

Several architectural decisions follow. Running inference on the user's own hardware means raw screen content never leaves the machine, converting a category of potential violations into an impossibility rather than a policy to enforce. An inspectable and editable store lets the user read what the system believes about them — the natural-language format is what makes this feasible, since a person can evaluate a sentence about themselves but not a learned embedding. Decay bounds how long a stale inference can drive behaviour, making unlearning the default.

The subtlest problem is cascade deletion, and no deployed system handles it well. Propositions are inferred from other propositions. A user who deletes the belief that they are job hunting has not deleted the downstream inferences drawn from it — that they are updating a portfolio, that a particular contact is a referral source. Each has independent evidence and survives the deletion, and collectively they may permit reconstructing the parent. The deletion is honoured literally and defeated in substance. Handling it requires storing the provenance edges between propositions and, on deletion, walking the dependency graph to find descendants whose support drops below threshold.

Trust behaves asymmetrically across all of this, and the asymmetry sets the pace at which autonomy may be extended. It accrues slowly through many correct low-stakes actions, each contributing little because correct behaviour is unsurprising. It collapses quickly through a few wrong actions, particularly ones that are visible, irreversible, or embarrassing. The rates differ by an order of magnitude, and the collapse is closer to a step than a decay. An agent cannot recover from a serious failure by performing well afterwards at the rate it originally built trust, because the user typically stops giving it the opportunity.

The engineering response is a ladder of four rungs, applied per action category rather than globally. At the first the agent observes and acts on nothing. At the second it proposes and waits for confirmation, which is also where the labelled examples come from. At the third it acts without asking, but the action is undoable and surfaced clearly enough to be undone. At the fourth it acts and reports only in a log. Promotion should be earned per category on evidence — volume, acceptance rate, and no recent failures — and demotion should be automatic and faster than promotion, matching how trust actually moves.

One rule sits outside this machinery and admits no exceptions. Irreversible actions never promote past asking, regardless of accumulated evidence. Sending a message, spending money, deleting data, posting publicly — these share the property that no subsequent correct behaviour undoes one wrong instance. The utility framework makes this precise: it assumes a bounded false-positive cost, and irreversibility removes that bound, driving the threshold toward a certainty no measured model attains. The rule is not conservatism pending better models; it is what the numbers imply.

delete(p) ⇒ review { q : p ∈ support(q) }
Cascade deletion. Descendants losing support below threshold must be surfaced for a decision, not silently retained.
irreversible(a) ⇒ level(a) ≤ ASK, for all evidence
The rule with no exception. Irreversibility removes the bound on false-positive cost.
RUNGAGENT BEHAVIOURPROMOTION EVIDENCE
ObserveRecords and infers; acts on nothingThe entry point for every category
AskProposes and waits for confirmationSustained relevance of proposals
Act reversiblyActs undoably and surfaces clearlyHigh acceptance over many asks
Act silentlyActs and writes only to a logVery high non-reversal over many acts
STUDIO 14

Instrument for silent failure

Take a working system and deliberately degrade one component — stale the index, or swap a tool response for a plausible wrong one. Measure how long your existing instrumentation takes to surface it. Then close that gap.

KNOWLEDGE CHECK
READING
PRIMARYTowards Mixed-Initiative User Interfaces
PRACTICEBuilding Effective Agents
PRIMARYHolistic Evaluation of Language Models
SYLLABUSCourse page