Repository navigation
Description
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhKEbEnW8pwZRgK2gJ
Follow-up from #38985 phase 2 (PR #39064), escalated by contract review 7338436183 (③, "an approval step inside a child run of a parent that already failed … escalated to the seat for a follow-up card") and routed by seat ruling 7338495013.
What happens
PR #39064 makes an approval step refuse to open a request when its own run has already ended and has logged a step after that end (a late fan-out branch). The check reads $runId, the step's own run. A step inside a child run (a subflow body or a map item) whose parent run has already failed reads the child's run, which is live or has no entry, so the step opens a request as it did before #39064: the approver is notified and the record goes pending for a run tree that can never resume, until the dead-run sweep recalls it (every 5 minutes by default, never on a host with no job service).
The shape: a parent flow fans out; one branch fails and ends the parent run; another branch is inside a subflow (or map) whose child run reaches an approval step after that.
Status
- Derived by reading, not measured. No cell covers it. The first step is a measurement on the real engine (the fix(plugin-approvals): an approval step opens no request on a run another branch already ended #39064 test file
approval-node-ended-run-38985.test.tshas the harness). - Fail-open today: no wrong refusal and no new outcome versus
main; the cost is the orphan request and notice until the sweep, the same class approvals: after one branch of a top-level fan-out fails, the other branch still opens an approval step, leaving a pending request and a pending record on a failed run that nothing reconciles #38985 closed for top-level runs. - A fix would read the root run (
automation.rootRunOf(context), already passed toabandonAtRefusedStepsince fix(plugin-approvals): an approval step opens no request on a run another branch already ended #39064) as well as the step's own run.
Rulings that govern
- 7329430078 (maintainer): a failed fan-out ends abandoned, never approved.
- 7338495013 / 7338562363 (seat): the refusal puts the record back to
recalledon every object, throughabandonAtRefusedStep.
Cited record: 7338436183. Related: N7 in 7342528286 (a parent that routes a child's failure down a fault edge and goes on).
Activity
objectstack-fleet commentedon Dec 2, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
First touch · 2026-12-02T11:04Z
定级:
area:workflow · Bug · p3 · 父运行已失败时子运行里的审批步骤仍开出请求(孤儿请求待清扫)· 读码,未实测area:data改area:workflow;补domain:server、类型 Bug,进pm:queue。先在真引擎上实测。