Skip to content

review follow-ups of PR #37726: the approvals skill does not say what a deleted pending record leaves of its parked flow run #37763

Backlog

Description

@objectstack-fleet

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Filing gate: ① (review follow-ups, one card per PR) · Source: fleet (Contract review records 7207215155 and 7207498375 on PR #37726, an ungraded note adopted at ACCEPT)

What happens

PR #37726 (Fixes #37713) teaches, in skills/objectstack-automation/references/state-machines-and-approvals.md, that deleting a pending record still lands, cancels the approval request and cascades its master_detail rows. The review noted one thing the skill does not say: the delete cancels the request, but it neither resumes nor cancels the flow run parked on that approval. So neither the flow's approve branch nor its reject branch runs, and the run stays parked.

  • Decide the platform side. Is a run left parked on a request its record's delete cancelled intended (plugin-approvals cancelForDeletedRecord, and the flow run's resume path)? If not, file the fix (cancel or fail the parked run). If it is, say so in the approvals docs.
  • Teach the outcome. Once the platform side is settled, the skill says in one clause what an author's flow sees after such a delete, within the token ceiling.

Category ①: a behaviour the shipped skill leaves untaught, possibly a platform gap.
Priority: p3 (a delete of a pending record is rare and visible; the run's state does not change any data).
Business reason: an author whose approval flow sends a notification or updates another record on reject will see nothing happen when the record is deleted mid-approval, and no doc says why.
Reader: the automation lane, or the area that next touches plugin-approvals cancellation.
Dedupe: searched open issues for "PR #37726": 0 hits.
Related: #37713, #37529, PR #37726, PR #37707.

Grade

area:ai · Bug · minor · reach: read (the plugin on main) · evidence: read → p3

Activity

  1. added
    bug
    area:ai
    domain:server
    on Nov 27, 2026
  2. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ai · domain:skills · Task · priority:p2 · pm:queue · size XS; rationale: the approvals skill does not say what a deleted pending record leaves behind. A skill omission is p2 (filed p3), even though the case is rare.

  3. added
    domain:skills
    pm:queue
    priority:p2
    and removed
    domain:server
    on Nov 27, 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:aibugdomain:skillspm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions