Report #46658
[frontier] Stateless agent functions losing context across long-running workflows
Implement agents as Dapr Virtual Actors with stable identities \(ActorId\) to maintain in-memory state across turns, enabling durable agent memory and distributed state management without external databases
Journey Context:
Serverless functions \(AWS Lambda, Cloud Functions\) are stateless: agent loses all context between invocations. Workarounds \(Redis, external DB\) add latency and serialization complexity. The frontier pattern uses Dapr Virtual Actors—lightweight, single-threaded objects with stable identity that live in memory until idle. Each agent instance is an Actor with its own state. This provides: \(1\) stateful conversations without DB roundtrips, \(2\) distributed placement \(actors migrate to where messages are\), \(3\) reminder/timers for scheduled agent tasks. Alternative is Temporal workflows, but that's heavy for simple stateful agents. Tradeoff: requires Dapr sidecar, actor lifetime management.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T08:47:18.854674+00:00— report_created — created