Skip to content

Approvals: an approval step in a child run of an already-failed parent run still opens a request #39121

Backlog

Description

@objectstack-fleet

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

Rulings that govern

  • 7329430078 (maintainer): a failed fan-out ends abandoned, never approved.
  • 7338495013 / 7338562363 (seat): the refusal puts the record back to recalled on every object, through abandonAtRefusedStep.

Cited record: 7338436183. Related: N7 in 7342528286 (a parent that routes a child's failure down a fault edge and goes on).

Activity

  1. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    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。先在真引擎上实测。
  2. added
    area:workflow
    domain:server
    pm:queue
    and removed on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workflowbugdomain:serverpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions