Better HN
topnewbestaskshowjobs
Log inSign up

mwfussell

1 karma · joined Mar 12, 2021 (5y ago) · 9 submissions

Submissions

comment 3w ago · link · parent

The failure mode that I see with AI companies: an agent is X steps into a unknown-step plan and the process dies. Queues used to be and can be a solution. durable execution gives you at-least-once per activity, so exactly-once side effects are still your job. What retries don’t give you is position. The retry has to work out what already happened. With an LLM in the loop it gets worse, because re-running a step re-asks the model, and the model may pick a different tool. Your retry becomes a different run with different side effects.

Replaying recorded results for the completed steps is the only way I know to get the same run back. That’s why I think it belongs in the runtime, for the same reason write-ahead logging belongs in the database. Any app could keep its own commit log. Almost none do, because the database does it once and does it properly.

The usual cost applies, and it’s real: replay means orchestration code must be deterministic, so model calls and I/O have to live in activities. Temporal, Restate, and others make the same trade. This isn’t a single-vendor idea.

The article is also upfront about the limits. Durable execution won’t fix a workflow that is deterministically wrong, and it says nothing about whether the work was authorised.

Question for people running agents in production: do you want your agent framework (Langgraph etc) to own this, or the runtime underneath it? And if it’s the framework, how do you handle crashes mid-running today?

Disclosure: I work at Diagrid, which published this.

2.

Durable Execution: The Missing Runtime Primitive for Agents(diagrid.io ↗)

2 points · by mwfussell · 3w ago · 1 comment

3.

The Kubernetes Control Loop Changed the Question(diagrid.io ↗)

2 points · by mwfussell · 1mo ago · discuss

comment 2mo ago · link · parent

Author here. I wrote message loops for Windows 3.0 at the start of my career, so this chapter is memoir as much as history, GetMessage, TranslateMessage, DispatchMessage, and the day you realize the OS owns your control flow, not you.

The reason I wrote it now: this is part 2 of a series arguing that the AI agent loop is the latest member of a family that includes the message loop, the game loop, epoll, and the Kubernetes control loop. Each stage added one capability the previous one lacked, and the ordering is architectural rather than chronological. The agent loop's contribution isn't the loop, it's that the decider inside it is probabilistic now, which changes what you can guarantee about it.

Happy to answer questions about the Windows era (yes, we really did debug WM_PAINT storms by hand) or to defend the thesis in the later chapters, which get more opinionated about what agents still lack.

5.

The Windows message loop: how applications became reactive(diagrid.io ↗)

1 points · by mwfussell · 2mo ago · 1 comment

6.

MCP Gateways Aren't Enough: AI Agents Need Identity, Authorization, and Proof(diagrid.io ↗)

1 points · by mwfussell · 7mo ago · 1 comment

comment 2y ago · link · parent

An alternative for a code based workflow like Temporal are Dapr workflows (https://docs.dapr.io/developing-applications/building-blocks...), where you write a set of code based activities into a graph and these can have fan-in, fan-out, sequential patterns etc. Its all code in several supported languages and because Dapr also has building block APIs for pub/sub, service invocation, secrets as well as connecting to underlying infrastructure you can combine workflow with these APIs to build an overall solution.