What if @pi.dev durable agent but the storage and tools are just your Rails app...
You get the best of both worlds – the agent behaviour and resiliency of Pi, the conventions and tooling of Rails.
Design doc: https://s3.brnbw.com/design-g67aK9Vtm8.html Repo: https://github.com/mikker/durable_agent