AIAI EngineerJul 21, 2026· 19:20

Your agent architecture has a half-life of 6 months — Dan Farrelly, CTO, Inngest

Dan Farrelly, CTO and co-founder of Inngest, argues that agent architectures have a half-life of six months because teams couple execution, context, and compute layers together, causing rapid obsolescence when models, frameworks, or patterns change. He presents a mental model of three discrete layers: execution (the brain, for flow, state, durability, retries), context (models, prompts, tools, memory, the layer that changes most), and compute (sandboxes, runtimes, browsers, the hands). Farrelly contends that execution is the stable layer that can last years if properly decoupled, and that it must provide resumability via external durable state, flexible invocation patterns (crons, events, human-in-the-loop), and full session observability beyond LLM calls. He warns against using sandboxes for durability since they are ephemeral and stateless, and instead advises letting execution give sandboxes their context and sequence. Covering emerging trends like background agents and autonomous loops, he emphasizes that these long-running, asynchronous systems require orchestration-aware execution to track failures, debug, and score outcomes. The episode centers on building a harness that…

  1. 0:00Intro
  2. 1:29Half-life
  3. 2:45Three layers
  4. 4:31Decouple
  5. 6:07Execution layer
  6. 9:37Sandboxes
  7. 11:34Next architectures
  8. 13:05Code example
  9. 15:22Measuring
  10. 16:37Inngest platform
  11. 18:25Wrap-up

Powered by PodHood

Transcript

Intro0:00

Dan Farrelly0:13

Going good? Oops, myright. There we go. Allright, hello everyone. Allright, just checking voice. Allright, good. Allright, well, uh, my name's Dan, and I'm here to talk to you about how your agent architecture has a half-life of 6 months.

But first, who am I? I'm Dan, I'm the CTO and co-founder at Inngest, and why should you listen to me? Well, first, I lead an amazing team over at Inngest. We— we build a system that reliably executes anything from, uh, agents to workflows to context pipelines, whatever you want.

I'm deep-building AI infra every day, and on top of that, I'm also building agents. I'm not just pontificating up here in theory about how you should build them.

So, speaking of building agents, if you've been building agents for more than 6 months, you've likely rewritten something, maybe more than once. A new model, a new framework or framework version, a new tool calling standard, a new pattern— suddenly your architecture doesn't fit.

Half-life1:29

Dan Farrelly1:29

It's not a complaint, it's just the reality,right? Things move faster than ever. You can see if you've been to any of the— the sessions or keynotes. So,

I want you to think about what you shipped 6 months ago, and how much of it still runs the— or way that you originally wrote it. Some parts of your code likely survived, but did they survive by accident, or did you design it that way?

Did they survive by design?

How did you actually architect your agent? Did you architect it at all? It's okay. Uh, did you use a framework? Did you custom-roll something? Was the architecture an intentional design that you really thought through, or just kind of evolved into what you have now?

These are all various ways of where people are these days. So, a lot of folks have talked about harness architecture, building harnesses. Mostly, I think a lot of people draw diagrams and they talk about specific components. Draw just nice lines that look very similar, like, you know, kind of simple.

But I want to talk about the conceptual layers when you're building a system like this. This is maybe the mental model, not specific components. So, in my opinion, there are 3 discrete layers. First, the execution layer. I think of this as the brain.

Three layers2:45

Dan Farrelly3:04

It's where flow, state, durability, retries happen. Then there's the context layer. This is the knowledge,right? This is models, prompts, tools, memory. This is the layer that changes the most. And then there's compute. There are, uh, this is the hands,right?

This is sandboxes, runtimes, browsers that you're automating. And I think these layers are important to consider for the following reason: it's your half-life. And what is half-life,right? It's a scientific term, and it's a scientific term for the time that it takes for your— for something to decay by half.

And I think that your architecture has a half-life also. So prompts last weeks if you're lucky, maybe, maybe a single week. The models that you use months, again, if you're lucky. Uh, but I think that execution can last years if you do itright.

So the problem is that I think that most teams couple everything together, and what happens then is that one layer's half-life kind of leaks and drags the other components down. You're building— it's technical debt by another name. So, my thesis is: think in layers.

Decouple them. So let's talk about what I mean.

Decouple4:31

Dan Farrelly4:37

Teams run into a lot of issues with the approaches that they choose. You might choose a framework, it might feel super magical to get going. You might grab a prebuilt harness from one of the frontier labs or wherever, and— or you might custom-roll the entire system yourself, and it might take months or weeks or whatever.

But I think in a lot of these situations, the abstractions either are not there at all, or they're too high-level, or the layers merge. You know, like orchestration is buried deep inside the chain or inside the framework, and you don't know what the heck's happening.

Uh, state might be kept in a sandbox. Uh, retries get tangled with prompts, the prompt logic. And what's hard is you can't re- you can't, like, swap any of these things out without rewriting almost everything. So I think you need to embrace the change, know that things are going to change, know that things are moving fast.

But I think also with that is, I want to focus on a layer that I think is the stable layer here, where you can invest and think about, get your abstractionsright, so you don't need to rewrite a large component every 6 months.

So I'm talking about the execution layer. I don't think enough people talk about this, and I define it as, uh, the execution layer as being the system responsible for running your code reliably, managing how, when, or whether each piece of work completes.

That's independent of the infrastructure that it's on.

Execution layer6:07

Dan Farrelly6:12

So what does this look like in an agent architecture? So, the execution layer manages the full life cycle. You know, plan, call a model, run code, invoke a sub-agent, loop, retry, coordinate. You can swap the model, swap the context, swap the sandbox.

The execution layer should be able to remain the same. It's just the— the fundamentals. And that's how you, I think, decouple and you build the system that can evolve for change. So let's talk about what the execution layer has to do.

First, resumability. Your execution layer must enable your system to pick up after failures without restarting from the beginning. You know, agents are handling longer-running tasks than ever before, so they must be able to resume when an LLM call fails, a tool call fails, everything flakes out, we all know.

So if you have a failed request, step 38, you should be able to retry, wait, continue onwards instead of having to go from the beginning, and you're going to lose tokens, cost, time, work that your agent might have completed.

So for this— this to work, a 3-hour run cannot hold state in memory or in disk. The state must live outside of the work. So this means that the state must be durable and external. So without it, you might cobble together maybe some manual checkpointing.

You might come up with a system that has, like, a log-based approach where you're going to be, like, hydrating the state back if you have to pick up where you left off. But I think a lot of those abstractions start leaking into the other layers of your harness,right?

It gets harder to change. So next, a key aspect of the execution layer is that it must enable you to combine a— combine a lot of invocation patterns. You're going to need crons, you're going to need to trigger things with events, you're going to need APIs, human-in-the-loop.

Sub-agents or di— or dynamic workflows also must be possible. And you're going to need to be able to invoke these things synchronously, asynchronously, delaying invocation. And I think the key here is that flexible execution and orchestration primitives will enable you to build the pattern or the system, the architecture that you actually need.

So if not, I think, again, your harness logic starts absorbing other concepts like queues, workers, polling, backoff, scheduling, and now you end up with kind of a mess, bad abstractions. So lastly, execution needs to provide observability across your entire session.

Not just the LLM calls and the tool calls, but database errors, permissions issues, uh, triggers, performance. So the full session trace across your entire run is essential. So if you can't see the entirety of a trace from the trigger through the whole stack, it's really hard to debug it, let alone improve your agent and keep evolving it.

Sandboxes9:37

Dan Farrelly9:37

So what about sandboxes? Sandboxes are so hot. So agents need sandboxes. We've kind of, like, settled upon that at this point in time. They need to execute code, they need to browse, they need to manipulate files, they might work on disk.

But a sandbox is ephemeral and stateless by design. So using it for durability, snapshots or something, and state, I think is an anti-pattern. I think it's a difficult thing where the state gets lost and you're kind of trying to peel— pull the pieces back together.

So I think when you have the execution layer separate, the execution layer is what gives the sandbox its context, its sequence, its durability. So I think of the sandbox as the hands and the execution as the brain. So, so what's next?

Right, what are the next 6 months of architectures that you're going to need to handle? So if you're paying attention, you're joining a lot of these sessions, you'll see what architectures are emerging and what each approach brings new engineering requirements.

You know, you have background agents, dynamic workflows, autonomous loops, agent factories, whatever you want to call it, all these emerging trends that we're seeing the last couple days. They're all long-running, they're asynchronous, they're delegated. That means that you need to be able to observe them all, uh, down to the core,right?

They need to be inspectable by human and by an agent. So the patterns, as you see, they— as these things emerge, they must be mixed and combined together. So what does this all have in common? I think that execution is fundamental to building any of these systems.

So let's just take one example here: background agents,right? They're not request-response. There's no person just waiting there for— for the— the chatbot to respond. So it might run for minutes or hours. It's going to have maybe hundreds of calls, uh, tool— you know, maybe 200 tool calls.

Next architectures11:34

Dan Farrelly11:53

You're going to probably guarantee to have at least one failure in that. So you can't even debug your background agent that's running asynchronously without theright infrastructure, without the observability, without everything that's going on in that process or multiple processes.

And another example that we have is loop architectures,right? And I think we're talking about slash loop commands and whatnot and coding agents, but I think where we're taking this is, how are you building, um, actual systems in your products that employ these— these— these approaches?

So, like, what is a loop,right? A loop is a system that basically just runs continuously or on a schedule, and it's assessing the state of the system against the— the goals that you set or the criteria that you set, and determines what to do next.

So you're going to need crons, sub-agent, delegation, the history needs to be inspectable, and of course it needs to be reliable because you don't know when things are running or how the system is continuously continuing to evolve. So the frameworks of 3 months ago, we're not designed to handle this,right?

Code example13:05

Dan Farrelly13:05

Like, you're going to need to design these systems yourself. So I think you're going to need a proper execution layer. So let's look at just some examples of code. It's small on here, but in general, let's just look at how you might put it together.

In your loop, you're going to need some sort of cron. Maybe that cron here is some sort of health check system, runs every 30 minutes, pulls down some key high-level system metrics, and it looks. You pass it to an LLM, you say, "Is this healthy?

Is this looking okay? Should we do more?" And is it— is it healthy or not? What should we do? And if it isn't healthy, maybe you just invoke a— a triage agent that goes and looks at that individual service and goes and digs more.

This is pretty simple looking,right? And now you have this triage agent itself. You've just triggered it. This should maybe pull some more context, pull some detailed metrics. This is just context. And then you're passing to the LLM to start that investigation.

Put it in a loop, you're calling some tools, trying to get to the root cause. This may run for a minute, this may run for multiple minutes. It needs to spin up a sandbox, uh, maybe clone code, maybe analyze commits.

It's going to be doing a lot of work here, and you don't know when this is going to run. It might run, it might not. How do you know? How do you observe that system later? And then to complete the loop, there you may have a reviewer function,right?

Like, are we— is the system actually performing as expected,right? Like, it's going to run every week and look at the history of what just happened and evaluate how the triage system is working. Do we need to adjust the prompts?

Do we need to do better metrics? Does this have the data that it needs? Is it doing anything at all? Is it overreacting? So it needs to be execution-aware. And I think it needs to be execution-aware or orchestration-aware because it needs to be able to pull the logs of the system and understand, allright, what was executed, what did this agent choose to execute, what sub-agents did it fan out, what, uh, workflows did it call upon.

And then it needs to be able to analyze that and understand what happened, come back to you, either make the change itself or tell you, "This is where we performed or underperformed. This is what we can do, how we can improve the system overall."

So this completes this improving loop. It's three functions. It's pretty simple by design, and it's flexible to iterate on. I know things get always a lot more complex into production, but when I think about— when I think you think about the layers this way, it makes things a little bit— a little bit easier to think about building such a complex system that feels like it's, you know, something that you might not be able to reachright yet.

Measuring15:22

Dan Farrelly15:45

So in the spirit of the reviewing functions, what do you think about measuring your agent, how your agent is performing? You know, I think what's interesting is this execution layer sits between what your user's input is and what's happening throughout the system.

So user feedback, actions, uh, and the results of the sessions all flow through this execution layer. And I think this makes it, uh, an ideal place because it becomes the hub for observability, and it allows you to be able to score and understand what your agent is doing.

So to iterate on your application, you kind of need all this data connected, and it needs to be aware of how your code is actually executing,right? So I think the— the linking of this is— is extremely important. So this is what we built Ingest for.

Inngest platform16:37

Dan Farrelly16:37

We're durable execution for AI agents. We're the execution layer. You can plug in any context layer, bring a model, framework, tool, any compute layer, bring whatever sandbox you want, bring whatever browser you want. You get durable steps, small primitives,right?

Uh, event triggers, scheduling, agent-to-agent coordination, full session traces, no infer to manage.

And I think, like I just mentioned with scores, we also think that that— that the middle of the execution layer, when your agent is running, is a key place to instrument and score your agents. When you have access to the data that you need that's all flowing through there, or you've just executed something, it's a perfect place to run something after and defer some scoring for with the whole trace information, maybe the inputs and the outputs.

So again, that's just execution, orchestration, delayed tasks, defers. Um, and since there's also data flowing through, you can also wait for additional events and attach them to the sessions that you're building and understand, "Did this u— did this actually work?"right?

If you're— if you're running this triage, um, was this triage successful? Did it result in an action by the engineering team? Then that means it probably was a positive result. Instead of a thumbs-up, thumbs-down, it's like, "Did we open the PR?"right?

If it's a research agent, "Was this research saved? Was it a good report?" That is these— these things that are events that you should be able to attach. And when you have a system that can connect all these pieces, I think it's really makes doing a lot of those things, uh, like creating outcome-based scores a lot easier.

Wrap-up18:25

Dan Farrelly18:25

So to wrap up, build your harness. I want you to understand the layers of the architecture. We have to embrace the fast pace— pace of change. And I think if you can get your execution layerright and think about theright primitives, everything else can quickly evolve around it.

And the next 6 months, the next 3 months will all be a lot easier for you, especially as everything continues to change. You all are here. So thanks for listening. I'm Dan. Um, come find me at the Ingest booth.

We'reright on the other side of this wall. We're very bright and orange. So thanks, everyone. Appreciate it.