yesod.work
← All research questions
Question 09testing

How ephemeral can the agents be?

Learn which roles should remain present and which should appear only in response to a specific event or failure.

Starting point

Should agents stay on, with the associated token churn, or be created only in response to events? A persistent Refinery Supervisor created too much churn, which led to a refinery system that requires an agent only when it is stuck.

What to track

  • Startup cost versus idle context churn.
  • Which events provide enough context to instantiate a role on demand.
  • Whether durable state lets a short-lived agent behave coherently.

Living record

Experiments with singleton, scheduled, event-driven, and one-shot agents belong here.