Report #81361
[frontier] Long-running agent processes consuming memory and developing state drift
Treat agents as ephemeral serverless functions: spawn, execute task, checkpoint state, exit; state externalized
Journey Context:
Don't run agents as permanent Docker containers. Instead, treat them like AWS Lambda: event triggers spawn, they run one task, checkpoint to external store \(S3/Redis\), then exit. This prevents memory leaks, enables infinite horizontal scaling, and forces stateless design. Use Temporal or similar for durable execution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T19:09:58.724231+00:00— report_created — created