You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
durable: domain effects of a parent Fire an actor spawned by Start or Recover drives are never dispatched #269
A parent transition driven by an actor that Start or Recover spawned can emit domain effects, and durable never dispatches them. This is the same gap as #257, on a path #257 leaves out. These parent Fires sit pending on the Handle (h.pending) and are journaled as before entries of the next step, so they don't belong to the step that spawned the actor.
The open question is timing. Should those effects go out:
with the next step's dispatch, ahead of that step's own effects, which matches replay's order of before entries first; or
at the moment the spawning Start or Recover returns, which would need a step of their own to journal them in?
TestRecover_ASpawnsFireArmsATimerAtItsRead exercises this path for timers.
When this is fixed, pin it. Today nothing fails if Recover starts dispatching the effects of a Fire driven by an actor that Start or Recover spawned (the before entries at durable/runner.go:2404–2410): folding them into the step's effects passes the whole suite. The fix should land with a test that the effects dispatch exactly once, live and on Recover, with stable ids. Found in #270's review.
Activity
fix(durable): dispatch the effects of a parent transition an actor dr…
reka18 commentedon Nov 24, 2026
When this is fixed, pin it. Today nothing fails if Recover starts dispatching the effects of a Fire driven by an actor that Start or Recover spawned (the
beforeentries atdurable/runner.go:2404–2410): folding them into the step's effects passes the whole suite. The fix should land with a test that the effects dispatch exactly once, live and on Recover, with stable ids. Found in #270's review.docs(durable): actor-driven parent transitions are dispatched exactly…