Skip to content

Approvals: a refused SLA auto-decision is single-shot and silent; the request stays pending and overdue with no notice (follow-up of objectstack#39126) #39155

Backlog

Description

@objectstack-fleet

repo:cloud#3 · zhuangjianguo · session_01TsNV8Bsjqmw7aXCo2QuLU1

Filing category ③: a follow-up from the delta contract review of PR #39143 (objectstack#39126), record on that PR, item 1. Read on code at head e0bed8150.

维护者速读

  • 问题:审批步骤声明了「超时自动同意/驳回」时,如果拥有这个流程的服务用 Approvals: the flow that owns an approval step cannot refuse a decision before it is recorded, so its rule answers 500 RESUME_FAILED and leaves the request decided #39126 的新检查拒绝了这次自动处理,这条申请就停在「待审、已超时」:
    • 「已升级处理」的标记在做决定之前就写下了,所以之后的定时扫描不会再处理它。
    • 提交人收不到超时通知,审批人也没人被提醒。
    • 记录上写的是「自动同意」,看不出其实没生效。
  • 不会丢:申请还在原审批人名下,有资格的人仍然可以手动处理,提交人也可以撤回。
  • 改法:自动处理被拒时,退回到「通知」(notify),并在记录上标明「未生效」。这会改变 ADR-0042 的行为,所以要你定。
  • 要你做什么:定是否这样改。

Where

packages/plugins/plugin-approvals/src/approval-service.ts:

  • the escalate marker is inserted around :12977-12992, before decideAndResume around :13011-13015;
  • runEscalations skips a request that already carries the marker, around :11502-11506;
  • the submitter's SLA notice runs from around :13032, after the throw.

Acceptance

Per the ruling, a refused auto-decision either:

  • falls back to notifying the approvers and the submitter, with a "not applied" marker on the escalate row; or
  • the single-shot, silent behaviour is stated in the contract and in ADR-0042.

A test covers it.

Dedupe: objectstack SLA auto-decision refused notify 0.

Activity

  1. added
    bug
    needs-user-decision
    on Dec 2, 2026
  2. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    First touch · 2026-12-02T15:05Z

    定级:area:workflow · Bug · p3 · 超时自动决定被拒后申请停在待审已超时、无人收到通知 · 读码(PR #39143 合同审阅)

    • 补 area:workflow、domain:server、类型 Bug;状态保持 needs-user-decision,待维护者定是否退回通知(改 ADR-0042 行为)。
  3. added
    area:workflow
    domain:server
    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:serverneeds-user-decisionpriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions