It has been a while since I last wrote about agent engineering. After attending Build with Gemini, I wrote about how Google Cloud was preparing for a world of AI agents. Since then, I have spent more time building agents than writing about them. That earlier note considered how Google was preparing to operate agents in organizations; this one asks how such platforms might change a developer’s work and questions.
Looking back, building agents often felt like crafting each piece by hand. Beyond designing the workflow, I had to work through the foundations: managing sessions, saving conversation history, and recovering state. I enjoyed the work and learned a great deal. Yet each new agent brought versions of the same supporting problems back again.
When I returned to Google’s agent platform, what surprised me most was the Sessions API. I could create and retrieve sessions, append messages and tool calls as events, and manage the state a conversation needed. I had spent months that year working through the distinctions between sessions, state, and event streams, and figuring out how to store and deliver them without sacrificing performance. After all that work, I was surprised by how much session persistence I could delegate through an API. Streaming those events live to a user’s screen still takes its own design.
I had used Memory Bank before. Coming back to it, I found that I could work with natural-language memories through the API and use structured profiles to generate and retrieve predefined attributes separately. I also liked that the evaluation tools brought test cases, traces, and grading criteria into one workflow. Being able to give an agent functions I wrote as tools mattered to me as well. I could write what the task called for and increasingly assemble the common capabilities from reusable building blocks.
The governance features stood out too. I’d like to write separately about how Agent Gateway manages the connections between agents and their tools.
Assembling blocks does not automatically produce a good agent. A team still has to choose the components, decide what information and permissions to grant, and determine how to detect and recover from failures in real work. If two agents use different combinations of the same blocks, we need experiments to understand which works better and whether the difference persists.
As some infrastructure receded into the background, a different question came forward: is an agent that can remember necessarily an agent that remembers the right things?
(A naming aside: Google Cloud’s Vertex AI became Gemini Enterprise Agent Platform and is now called Gemini platform on some official pages. Keeping up with the names can be a small project of its own.)
My background includes data science and machine learning, and I have since expanded my work into generative AI and agents. During much of 2026, the work in front of me looked increasingly like software engineering: connecting tools, orchestrating calls, designing backends, and managing state. I enjoyed it. Building the agent’s architecture and connecting capabilities to a real task were some of the most interesting parts.
But I also spent considerable time building the machinery around those capabilities. The recent experience made me wonder what happens when more of that machinery becomes available as a service. My hypothesis is that the scarcity may gradually shift: from the effort required to assemble common agent infrastructure toward the effort required to understand, measure, and improve agent behavior.
Agent infrastructure may become easier to provision. Agent behavior does not automatically become easier to understand. As agents become easier to build, the ability to understand and govern their behavior may become more important.
Two different things we call building an agent
An agent in a demonstration can be a model, a prompt, and a few tools. An agent used repeatedly by real people needs much more. It needs identity, conversation history, session state, event records, access controls, backend integration, monitoring, and a way to handle failures. If it acts on an external system, it also needs a recovery strategy when a network request succeeds but the confirmation is lost.
Session management made this distinction tangible for me. Working with several databases meant making decisions about how users, conversations, and state should be stored and recovered. It taught me a great deal about software architecture. The knowledge is useful regardless of which platform I use next.
At the same time, I kept encountering variations of the same surrounding problem. Every hour spent rebuilding a session service was an hour unavailable for asking whether an agent chose an appropriate tool, recalled the right preference, or completed its task reliably.
This is not a complaint about engineering. It is an observation about where engineering effort goes. Building an agent’s behavior and building the infrastructure that allows it to operate are related, but distinct, problems. Teams need both. The question is which parts they must implement themselves and which parts they can obtain elsewhere.
The distinction reminded me of an earlier change in cloud computing.
The serverless moment
When AWS introduced Lambda in 2014, it gave developers a way to run code without provisioning and managing servers directly. Serverless did not make servers disappear. It moved part of the operational work to a platform and changed the boundary of responsibility.
I think agent engineering may be approaching an analogous moment. With supported ADK and managed-session integration, a developer can delegate parts of session persistence rather than construct and operate the entire storage mechanism independently. Memory, runtime, and evaluation infrastructure are also becoming available as managed capabilities. Google is the example that brought this shift into focus for me; the underlying question is broader than any one vendor. AWS documents separate AgentCore Runtime and Memory services.
A conceptual distinction. Actual support and responsibilities vary by product, configuration, and operating environment.
The distinctions still matter. A session organizes an interaction. An event records something that happened. State contains values relevant to an application or execution. Memory preserves selected information that can be useful later, potentially across sessions. A runtime provides an environment in which the agent executes. Storing events and streaming events to a client are different jobs; a durable record alone does not guarantee reliable real-time delivery.
The building-block analogy has limits. Today’s agent components are not as standardized or interchangeable as actual toy bricks: platforms differ in interfaces and constraints, and assembling and operating them still requires engineering.
I call the change a serverless moment of agent engineering: an analogy, not an official category or a claim that every layer is now standardized. The attraction is economic as well as technical. Reusing common infrastructure can reduce the initial work of building an agent and the incremental effort of trying another configuration. It may give a team room to invest more in domain capability, evaluation, and experimentation.
That is a possibility, not an automatic outcome. A team may spend the saved time shipping more features instead. Managed fees, tokens, retrieval, evaluation runs, and integration may increase overall expenditure. Lower implementation effort does not prove lower total cost or better business outcomes.
There is another trade-off. A managed platform can make it easier to run an experiment while making parts of the system harder to inspect or control. If a memory extraction component changes behind an API, or if a model identifier does not reveal every operational change, we may have excellent experimental infrastructure but imperfect control over the treatment. The platform helps us measure; it does not remove our obligation to understand what can be measured.
Even with the same building blocks, outcomes may change with the choice of model, tools, and memory. When teams spend less effort rebuilding common infrastructure, they may have more room to ask which configuration works, whether an improvement is real, and whether it holds for another user or task. These are questions I recognize from data science. Memory offers a first example.
When remembering becomes a design problem
Imagine a research assistant that works with the same person over several conversations. In the first session, the user says:
“Please write my investment research in English.”
Later, the user adds:
“From now on, write analyses of Korean companies in Korean.”
What should the agent remember? Both statements matter. The second is a conditional exception, not necessarily a replacement for the first.
A profile containing only preferred_output_language: str invites a difficult choice. Storing “English” misses the exception. Replacing it with “Korean” may incorrectly change the default for every future report. More fields could encode the distinction, but each additional field adds schema complexity and creates another opportunity for an extraction error. Natural-language memory can preserve the nuance, but the agent still has to retrieve the right fact and interpret it in context. A hybrid could store the default as a field and the exception in natural language, while introducing a new question: what happens when the two conflict?
“Write my investment research in English.”
“Write analyses of Korean companies in Korean.”
preferred_language = KoreanThe exception’s condition and English default may be lost.
The relevant memory still needs to be retrieved and interpreted.
A fictional illustration, not a measured comparison of memory architectures.
These are fictional examples, not experimental results. They illustrate why “more memory” or “more structured memory” is not necessarily better. A useful memory must be accurate, relevant, current, appropriately scoped, and worth the context it consumes.
Google Cloud Memory Bank illustrates a managed service that can support natural-language memories and structured profiles. Storage and retrieval are available, but the developer still decides what information is worth remembering and how to represent it.
Technical note: profile retrieval and schema changes
The profile documentation describes natural-language and structured memories coexisting.
RetrieveMemoriesreturns natural-language memories by default; structured profiles must be explicitly requested. Adding or updating a schema does not automatically backfill profiles from earlier memories. A memory scope also does not replace application-level authentication and authorization.
I used to think first about where to store user information. Once storage and retrieval could be managed, deciding what the agent should remember began to look like the harder question. Which facts deserve a field? What should remain flexible? When should a preference be updated, invalidated, or forgotten? How do we avoid turning a single exceptional request into a permanent rule? And how do we know that retrieving a memory improved the task rather than merely adding plausible-looking context?
The questions remind me of feature engineering. Both concern the selection and representation of information supplied to a model. Yet an agent’s context is more dynamic than a fixed feature vector: an action can change the environment, a response can change the user’s next request, and a new memory can affect future actions. The system helps create the inputs it will later receive.
The memory infrastructure can be managed. Deciding what to remember—and determining whether it helped—remains an architectural and scientific problem.
A platform can measure; it cannot decide what matters
The same distinction appears in evaluation. While building agents, I often found it difficult to answer a basic question: is the new version actually better, or did it simply look better in the cases I happened to try? Across different enterprise tasks, I have not found a single evaluation standard that answers this automatically.
I recently encountered Google Cloud’s agent evaluation tools. I have not yet used them extensively enough to claim measured improvements, but I found the direction promising. The documentation describes evaluation cases, traces, built-in and custom raters, simulated users, and simulated tool behavior. Google announced general availability for agent and model evaluations in July 2026; the status and availability of each subfeature still require separate verification.
Such tools can provide a place to run experiments, record trajectories, and compare configurations. But an evaluation platform cannot decide whether the test cases represent real work, whether a grader is trustworthy, or whether an apparently good response caused a harmful action elsewhere. Those judgments belong to the team.
Traditional software tests still matter. An agent should pass deterministic checks for permission boundaries, calculations, and API contracts. But passing those checks does not establish that it will consistently choose the right tools or act sensibly when the environment changes.
Suppose the research assistant applies a user’s language preference correctly once. Is that enough to say the system works well?
Whether that answer is right is a question of correctness. Whether repeated attempts succeed concerns consistency; whether performance holds when a request or tool environment changes concerns robustness. Generalization asks about new users and tasks. Reproducibility asks whether a documented procedure yields a similar conclusion when repeated, even if individual responses differ. We must also consider whether failures are predictable and whether their consequences are bounded.
In Towards a Science of AI Agent Reliability, Rabanser and colleagues examine consistency, robustness, predictability, and safety rather than relying on a single accuracy score. Their evaluation covered 15 models across two benchmarks; its findings are evidence from those settings, not a universal result for every agent.
Repeated execution provides a simple intuition. Some tasks allow several attempts so long as one result works; others require reliable handling of every customer request. Whether a person can review and recover from failure also matters. Anthropic distinguishes pass@k, the probability of at least one success in k attempts, from pass^k, the probability that all k attempts succeed. Suppose a particular task has a 95% chance of success on every independent attempt, with that probability held constant. The probability of 20 successes in 20 attempts is 0.95²⁰, approximately 35.8%.
What happens when a task is repeated?
Adjust the per-run success rate and number of executions. This illustrates a requirement that every run succeeds.
All-success and at-least-one-failure probabilities assume independent executions with a constant success rate. This is not measured agent performance or a real-world risk forecast. Expected failures do not require independence when each run has the same marginal failure probability.
This is a mathematical example, not an observed agent performance. Real attempts can share failure causes, and tasks vary in difficulty. Repeating one task 20 times is also not automatically equivalent to running 20 different tasks. The example’s value is that it exposes the question hidden by an average: what level of repeated success does the work actually require?
A research assistant that produces a flawed draft may cost review time. An agent that exposes another customer’s information or places an incorrect order can create a very different problem. Two agents with similar success rates can therefore have very different operational value. We should look at the nature and severity of failures, the ability to detect and recover from them, and the safeguards around side effects—not just a single average score.
A useful conceptual cost lens is:
Practical cost = execution cost + review cost + failure and recovery cost
This is a way to organize a discussion, not an accounting standard or an estimated model. It points to an important distinction: the cheapest run is not always the cheapest successful business outcome. And when an agent says “done,” wherever feasible we should check the actual state of the external system rather than grade the statement alone.
What I mean by the return of data science
Of course, data science never disappeared. Forecasting, recommendation, causal inference, experimentation, and risk modeling continued throughout the generative AI boom. Nor am I claiming that data scientist headcount, compensation, or the use of any particular job title will necessarily rise. Those are separate labor-market questions.
By return, I mean a change in what comes to the foreground of agent development. In the early work of making an agent useful, the visible problems are often integration and orchestration. As more common infrastructure becomes reusable, teams may have more opportunity—and more pressure—to answer questions about evidence: which change helped, for whom, under what conditions, and at what cost?
These are familiar data science questions. They require hypotheses, controlled comparisons, uncertainty estimates, error analysis, and a willingness to revise a conclusion when new evidence appears. They also require software engineers who can build observable systems, domain experts who can define success, and security specialists who can establish boundaries. The role boundaries are likely to overlap.
Traditional data science has never been limited to isolated predictive models. Recommender systems, online experiments, causal studies, and reinforcement learning already deal with feedback and complex environments. The difference is one of emphasis and configuration: in many agent applications, the unit being evaluated is a system composed of a foundation model, instructions, tools, memory, orchestration, state, and an external environment.
| A data science question | A related agent question |
|---|---|
| What information should a model receive? | Which memories and context should the agent receive? |
| Is the new model better than the old one? | Did a prompt, tool, or memory configuration improve the outcome? |
| Does performance hold on new data? | Does it hold for new users and tasks? |
| Under what conditions do errors occur? | Which tools, states, and environments contribute to failures? |
| Can the result be checked again? | Does the improvement reproduce as models and environments change? |
These are conceptual parallels, not exact equivalents. An outcome depends on interactions among the model, instructions, tools, memory, orchestration, state, and environment. A trace can reveal the path taken without explaining every internal cause.
I use Agent Science as a working phrase for applying scientific methods to that system. I am not proposing that nobody has studied agents scientifically before. The phrase is useful because it asks us to treat the agent not only as software we ship, but also as behavior we investigate.
What would an experiment look like?
- 01Hypothesis
Structured memory may preserve explicit preferences
- 02Configuration
No memory · natural language · structured · hybrid
- 03Execution
Apply the same scenarios and new tasks
- 04Observation
Outcomes · failures · latency · cost
- 05Analysis
Under which conditions does a difference appear?
- 06Next hypothesis
Revise the conditions and test again
Repeat to refine the hypothesis and configuration
An experimental design illustration, not observed results.
Return to the fictional research assistant. Suppose we want to understand which kind of persistent memory helps it apply user preferences across sessions. We could compare four configurations:
| Group | Persistent memory |
|---|---|
| A | None |
| B | Natural-language only |
| C | Structured profile only |
| D | Structured and natural-language hybrid |
Each group would first encounter the same past conversations. Group A would retain no persistent memory. In a new evaluation session, all groups would receive the same current-session history, while the prior transcript would not be supplied directly. The same scenarios could include a changed preference or a conditional exception.
We would then check whether the assistant completed the task and applied the relevant preference. Repeated-run consistency, failure types, latency, and cost would matter too. Structured profiles might help with predefined attributes; natural language might retain missing nuance; a hybrid could help or add noise and expense. There is no predetermined winner.
For illustration, 100 scenarios run five times across four configurations would require 2,000 agent executions. That is a budget example, not a power calculation. Repeated runs on the same task may be correlated, and each run can contain multiple model and tool calls.
If extraction and retrieval pipelines change along with the schema, a system comparison cannot attribute any difference to the schema alone. Understanding the cause requires additional controlled experiments, protected evaluation cases, and trustworthy grading. This is a proposed study, not an experiment I have performed. The point is to ask under which conditions a memory helps—and then test the answer.
Abstraction changes the work; it does not eliminate it
An attractive managed-service diagram can make the remaining work look smaller than it is. Persisted state does not guarantee that an external action can safely resume after a crash. A memory service cannot guarantee that a fact is true or that the right user is authorized to access it. An evaluation service cannot rescue a rubric that measures the wrong outcome.
Vendor dependence, portability, data retention, permissions, auditability, distributed failures, duplicate side effects, retries, model drift, and human oversight remain design problems. Some organizations will need more direct control than a managed platform provides. The earlier articles in this series on session isolation and idempotency and retries remain relevant even when a platform manages part of the storage.
This is why I do not see the serverless moment as the end of agent engineering. It changes the work and, potentially, creates room for another kind of engineering to become more visible: designing systems that can be evaluated, challenged, and improved.
From building agents to understanding them
For much of 2026, I learned how to build agents and the systems around them. I enjoyed that work, and I expect the engineering lessons to remain useful.
Now I find myself returning to questions that feel familiar from data science. What should we measure? Which change caused an improvement? Can the result be reproduced? Does it survive a new user or a changed environment? What happens when the agent fails, and what does a successful outcome really cost?
The subject has changed. We are increasingly studying systems that can remember, call tools, affect an environment, and alter the context of their next decision. The scientific methods we bring to them must adapt to those properties.
The important question is no longer only whether we can build an agent. It is whether we can explain, measure, and improve the way that agent behaves.
Going forward, I want to spend as much attention on understanding when the agents I build succeed and fail as I do on building the next one.
For me, 2026 was largely about learning how to build agents. I suspect 2027 will increasingly be about learning how to understand them.
Discussion
Discussion
Have a question, correction, counterexample, or another interpretation?