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
Approvals: on more than one replica, an approval step can refuse a live restored run (terminal ring entry outranks the restore) #39122
area:workflowApprovals and automation — the work that runs without a person driving itbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpm:queueReady for the PM dispatch looppriority:p3
Follow-up from #38985 phase 2 (PR #39064), nit N1 of contract review 7338436183, routed by seat ruling 7338495013.
What happens
Since PR #39064 an approval step refuses to open a request when getRun answers a terminal status and a step logged after the run's completedAt. One read can refuse a live restored run, and it takes three things at once:
more than one replica;
a stranded run whose failed resume was itself a fan-out with a late step;
the restore taken on a different replica than the one that ran that resume.
On the replica that ran the resume, the in-memory ring's last entry for the run is the terminal one; getRun answers it without asking the store, and that entry's step array kept growing with the late branch. So after the restore on another replica, the resume landing on this one reads "ended, with a late step" and refuses.
Root cause
The engine's rule that a terminal ring entry is never outranked (packages/services/service-automation), outside #39064's diff. It already misreads such a run for every other reader of getRun, not only the approval step.
Status
Derived by reading, not measured. No cell covers it; a measurement needs a two-replica harness (or two engine instances over one store).
area:workflowApprovals and automation — the work that runs without a person driving itbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpm:queueReady for the PM dispatch looppriority:p3
Activity
objectstack-fleet commentedon Dec 2, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
First touch · 2026-12-02T11:05Z
定级:
area:workflow · Bug · p3 · 多副本下审批步骤可能拒绝一个已恢复的活运行(需三条件同时成立)· 读码area:data改area:workflow;补domain:server、类型 Bug,进pm:queue。根因在 service-automation 的环形缓存规则。