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: recall admits the org-admin override actor and resumes the reject edge without the owning flow's decision admission (follow-up of objectstack#39126) #39145
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
packages/plugins/plugin-approvals/src/approval-service.ts: the recall override arm, around :9767-9768.
decision-admission.ts: the ApprovalDecisionVerb set.
Acceptance
Per the ruling, a recall either reaches the owning flow's admission (verb recall, or the override arm only), or the exception is stated in the contract's jsdoc.
#39126 (ruling record 7344644972, option A; PR #39143, merged 2026-12-02, +828/−0) gave the service that owns a flow a declared check that the approvals service asks before it records a decision. It is asked for approve, reject and revise. Recall is not asked, and the contract says so. The contract review of PR #39143 (record 7347782447, ③) did not accept the dev's reason for leaving recall out ("the submitter's withdrawal") because recall also admits the organization-administrator override and a system context, and it asked for a card. This is that card. It also carries the review's should-fix: a dated addendum on ADR-0019 naming the admission seam.
Governing text
packages/spec/src/contracts/approval-service.ts (ApprovalDecisionAdmission jsdoc): "⛔ IApprovalService.recall is not asked — a recall is a withdrawal, not a decision, and it reaches a pending request through the submitter, a system context and the administrator override alike." Same file, ApprovalDecisionVerb: Extract<ApprovalActionKind, 'approve' | 'reject' | 'revise'>, "Spelled as the ApprovalActionKind each one records". recall is already an ApprovalActionKind.
ADR-0019 (docs/adr/0019-approval-as-flow-node.md), "What must NOT be lost": "Approve / reject / recall ... remain required capabilities of the Approval node". Addendum 2026-07-28 (automation: signal.output reopens the reserved-variable forgery #3853 closed on inputs #3879): the service marker "answers 'the owning service authorized this decision'". ADR-0019 has no text on the admission seam (git show origin/main:docs/adr/0019-approval-as-flow-node.md | grep -n -i admission → 0 hits) and no text on who may veto a recall.
AGENTS.md Prime Directive 13 and 14: docs/adr/** is a governed surface; an addendum lands only by its tier. PD#13 needs a new ADR only when a recorded decision is reversed; no option reverses one.
Protocol statement
No metadata protocol change under any option (Metadata-protocol: none): no Zod schema, no authorable key, no wire shape. Options A and B widen a TypeScript contract in @objectstack/spec/contracts (ApprovalDecisionVerb gains recall). That is a behaviour change for an already registered check: it starts receiving a verb it was not written for. One registrant exists (cloud). Option C changes nothing.
Premises, re-checked on origin/main
Recall asks no admission. Holds. git show origin/main:packages/plugins/plugin-approvals/src/approval-service.ts | grep -n "decisionAdmissions.admit" → two hits, in decideNode (7897) and sendBack (9429); none in recall (8734).
The override arm reaches a pending recall. Holds, but the card's line reference has moved: the arm is at 8770-8771 now (overrideAdmits), not 9767-9768.
Recall resumes the reject edge. Holds for pending (branchLabel: APPROVAL_BRANCH_LABELS.reject, output: { decision: 'recall' }). On returned the run is cancelled instead and no flow node runs.
"Error, but the record is written, as in objectstack-ai/cloud#4639." Partly moved. Recall does not answer 500. It tolerates the failed resume by ruling ([Decision] Must a resume failure reach the CALLER in a shape it can act on? — the family question triage reserved, now that its instance cards have each measured their own half and stopped at the same contract #16472) and answers 200 with resumed: false and resumeFailure. What is left: the request reads recalled, the run is stranded at the owning flow's refusal, and the subject is unchanged. Cloud pins exactly this in apps/cloud/test/marketplace-review-flow-isolated.test.ts ("a withdrawal by someone who is not a platform administrator does not reject the version": version still pending, run error contains "not made by a platform administrator"), and cloud's design doc §6.7 names this card as the owner.
Not on the card: the submitter's own recall has the same end state on cloud, on new requests too. Cloud's finalize step honours a resume only when the review step's decision equals the branch's decision (reject); a recall carries recall, so it refuses whoever recalled, a platform administrator included. Read on code (packages/service-cloud/src/marketplace-review-flow.ts, madeHere), not measured; whether a publisher is offered the recall button on a review request was not measured either.
The card's Acceptance alternative "the exception is stated in the contract's jsdoc" is already true on origin/main (premise from the governing text above, also in both CHANGELOGs: "A recall is not asked"). Option C therefore needs no framework code.
One registrant: git grep -n registerDecisionAdmission origin/main -- packages content docs shows only the service, the contract and the guide; cloud registers one check for its review flow.
The concrete problem
A service can now say "this person may not approve, reject or send back this step" and have nothing recorded. It cannot say the same about a withdrawal. A withdrawal ends the step as surely as a rejection does: it writes the audit row, sets the request terminal, clears the approvers and runs the owning flow's reject branch. A flow whose rule is about who may end the review therefore still meets one record it could not refuse.
Options
What is done
What the customer sees
Effort
A. Every recall is asked, verb recall
recall asks the admission after its own refusals and before its audit row, for the submitter, a system context and the override alike; the check gets viaOverride and context and narrows as it likes
A flow that does not allow a withdrawal answers "not allowed" with its own message; nothing is written, the request stays pending. Flows with no registered check behave as today
Framework lane, 1 PR, small: one union member, one call, jsdoc, tests, changeset. Precedent PR #39143 (+828/−0) built the whole seam; this adds one verb to it. Plus 1 cloud PR to adopt, plus the ADR addendum PR
B. Only the override recall is asked
Same call, guarded by the override arm
An administrator's recall can be refused cleanly; a submitter's recall on the same flow still leaves a recalled request and a stranded run
Same PR count as A; no precedent for an arm-conditional ask
C. Neither
Nothing in the framework (the exception is already stated). Cloud makes its reject branch tolerate recall
Recall always succeeds; a flow can clean up after it but can never forbid it
0 framework code PRs, 1 cloud PR, plus the ADR addendum PR
Business reading: A is "the process owner decides whether a request can be withdrawn, and by whom". B is "the owner may stop an administrator from withdrawing on someone's behalf, but never the applicant". C is "anyone the engine lets withdraw can always withdraw; the process only reacts".
A subsumes B: under A a check that wants B's rule returns admit when viaOverride is false.
Four axes
os-decision-facets
① Long-term soundness: A shrinks special cases. The contract becomes "every act by a person that ends a pending step asks the owner first" with no listed exception. B adds a conditional ("asked on this arm only") that every future reader must remember. C keeps a named hole in a seam that is two days old. End state in two years: the owning service is the single authority on who ends its step, through every door. Mainstream reference: Salesforce approval processes carry a per-process "allow submitters to recall" setting and separate recall actions, so recallability belongs to the process, not to the engine. Reading: A.
② Real pull: one consumer (cloud marketplace review), the same one that pulled #39126. The shape is reproduced in cloud's isolated suite; there is no production report. Reach is rare: pre-#4299 requests for the override arm, plus any submitter recall (read on code). Low pull, not zero.
③ Preventing AI mistakes: A is a loud refusal before any write. Today the miss is quiet: a 200 answer, a recalled request, a stranded run that only an operator reading resumeFailure or the run log sees. A also removes a trap for the next service author, who reads "every decision is asked" and writes a rule that recall walks around. Cost: the closed verb set grows by one, and a check that throws now blocks a withdrawal (fail closed, request still pending, recoverable).
④ Startup focus: A and B add one permanent verb to a public contract. C adds nothing. The verb already exists as an action kind, so no new vocabulary is minted.
Prior rulings read: recall admission, recall decision admission, #12775, #16472, record 7344644972 → 6 and 63 search hits, none ruling this question; ADR-0019 D-none (no text on recall admission); thread: none
Recommendation
A: every recall passes the check, as verb recall.
Not B: it buys the same code for half the coverage and leaves the submitter path (premise 6) with the defect the card describes. It also hard-codes into the platform a judgment (the applicant's withdrawal can never be vetoed) that mainstream platforms leave to the process.
Not C: it is the cheapest and is a defensible reading of ADR-0019 (the flow handles recall on its reject branch), but it keeps "refused only after the record" alive on one door, which is the defect ruling 7344644972 was made to remove.
Self-check: on ① alone the answer is A; do ②③④ flip it: no. ② is low and ④ counts one verb against A, so they bear on timing only: this is p3 and can wait behind anything in flight. Effort: A is one small framework PR more than C; the readings on ① are not close, so the difference does not bear on the letter.
Confidence gaps, stated and not used to change the letter:
Premise 6 is read on code. A cloud test with the submitter recalling would settle it in minutes.
Whether the returned-window recall should be asked too. It cancels the run and no owning node executes, so the defect shape cannot arise there. Default proposed below: ask it as well, so the rule is "every recall"; the contract reviewer may narrow it.
The name ApprovalDecisionVerb now covers a withdrawal. The jsdoc has to say so; a rename is not proposed.
After the ruling
If A:
Framework card (this one), one PR: recall joins ApprovalDecisionVerb; recall calls the admission after assertLatestForRun and before the audit-row insert, with viaOverride true only when the override arm admitted a non-submitter; the "not asked" sentences in the contract jsdoc, the guide paragraph and the changeset text are replaced. Tests: a check that refuses recall (403, nothing written, request pending, run parked) for submitter, override and system context; a check that admits it; a flow with no check unchanged.
Cloud card, filed with the ruling at this card's priority: the review check answers recall explicitly, since the present verb-blind check would admit a platform administrator's recall that finalize then still refuses; the pinned test and design doc §6.7 are updated at the pin round.
ADR-0019 addendum, separate add-only PR on the governed path, landed by its tier: dated, naming the admission seam, ruling record 7344644972 and this card's ruling, and stating that recall is asked.
If B: as A, with the call guarded and the jsdoc stating the submitter and system arms are not asked. If C: close this card on the existing jsdoc; cloud takes a card to make its reject branch complete on recall; the ADR addendum states the exception.
The ADR addendum is owed under every option. It needs no separate ruling beyond the tier's landing rule; only its last sentence depends on the letter.
objectstack-ai/cloud#4639 (closed), objectstack-ai/cloud#5376, objectstack-ai/cloud#4299: the consumer.
Delta from the card's existing analysis: none existed. The card carried a 速读 and no recommendation. Against the card's facts: the code reference moved (premise 2); the symptom is a 200 with a stranded run, not a 500 (premise 4); the override reach is limited to older requests (premise 5); the submitter path shows the same end state on cloud (premise 6, read on code); the "state the exception" acceptance is already met on origin/main (premise 7).
Ruling: letter A · maintainer 「39526 三个都做。其他都接受你的建议」 · 2026-12-05T22:58Z
Maintainer ruling recorded: every recall asks the owning flow's decision admission, as a new verb recall, for the submitter, a system context and the override alike, after its own refusals and before its audit row.
Provenance
Who: the maintainer (hotlong). Where: the triage seat's session session_01Q4EjjMnyLqJdzuktEmRPXH, typed words, recorded within minutes. Words, verbatim: 「39526 三个都做。其他都接受你的建议」
What he answered: triage's Chinese walk-through of the nine open decisions, which put this card's recommendation to him as: 「所有撤回都要先过流程自己的检查(新增撤回动作)+ 相关架构决定文档补一条说明;排在 39155 之后」
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-02T14:07Z
定级:
area:workflow · Bug · p3 · 组织管理员越权撤回待审申请时绕过拥有流程的决定检查 · 读码(PR #39143 合同审阅)area:workflow、domain:server、类型 Bug;状态保持needs-user-decision,待维护者裁定撤回是否走检查。objectstack-fleet commentedon Dec 5, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Decision analysis at tier, re-run before presenting · 2026-12-05T22:31Z
维护者速读
Analysis
Served-tier:
CONTRACT_REVIEW_TIERAnalysed-by:
subagent of session_01Q4EjjMnyLqJdzuktEmRPXHRead at: objectstack
origin/maine37358096d; cloudorigin/main704ae41ec.Background
#39126 (ruling record 7344644972, option A; PR #39143, merged 2026-12-02, +828/−0) gave the service that owns a flow a declared check that the approvals service asks before it records a decision. It is asked for
approve,rejectandrevise. Recall is not asked, and the contract says so. The contract review of PR #39143 (record 7347782447, ③) did not accept the dev's reason for leaving recall out ("the submitter's withdrawal") because recall also admits the organization-administrator override and a system context, and it asked for a card. This is that card. It also carries the review's should-fix: a dated addendum on ADR-0019 naming the admission seam.Governing text
packages/spec/src/contracts/approval-service.ts(ApprovalDecisionAdmissionjsdoc): "⛔IApprovalService.recallis not asked — a recall is a withdrawal, not a decision, and it reaches a pending request through the submitter, a system context and the administrator override alike." Same file,ApprovalDecisionVerb:Extract<ApprovalActionKind, 'approve' | 'reject' | 'revise'>, "Spelled as theApprovalActionKindeach one records".recallis already anApprovalActionKind.IApprovalService.recall: "Finalises it asrecalledand resumes the owning flow run down therejectbranch withoutput.decision = 'recall'", and onpending: "the submitter, a system context, or a Approval routed to an empty position permanently locks the record (no admin override, no recovery) #3424 override actor".docs/adr/0019-approval-as-flow-node.md), "What must NOT be lost": "Approve / reject / recall ... remain required capabilities of the Approval node". Addendum 2026-07-28 (automation:signal.outputreopens the reserved-variable forgery #3853 closed oninputs#3879): the service marker "answers 'the owning service authorized this decision'". ADR-0019 has no text on the admission seam (git show origin/main:docs/adr/0019-approval-as-flow-node.md | grep -n -i admission→ 0 hits) and no text on who may veto a recall.decideNodeonly. Nothing ruled covers recall. [Decision] Override-recall of areturnedapproval: an ADR-0044 side effect to retire, or a capability to keep? The gate, the prose and the viewer flag disagree three ways #12775 (ruling 2026-09-02) scoped the override recall topending; [Decision] Must a resume failure reach the CALLER in a shape it can act on? — the family question triage reserved, now that its instance cards have each measured their own half and stopped at the same contract #16472 family ruling (option A) keeps recall's no-throw on a failed resume. Neither is touched by any option here: the admission runs before the first write, the no-throw is about the resume after it.docs/adr/**is a governed surface; an addendum lands only by its tier. PD#13 needs a new ADR only when a recorded decision is reversed; no option reverses one.Protocol statement
No metadata protocol change under any option (
Metadata-protocol: none): no Zod schema, no authorable key, no wire shape. Options A and B widen a TypeScript contract in@objectstack/spec/contracts(ApprovalDecisionVerbgainsrecall). That is a behaviour change for an already registered check: it starts receiving a verb it was not written for. One registrant exists (cloud). Option C changes nothing.Premises, re-checked on
origin/maingit show origin/main:packages/plugins/plugin-approvals/src/approval-service.ts | grep -n "decisionAdmissions.admit"→ two hits, indecideNode(7897) andsendBack(9429); none inrecall(8734).overrideAdmits), not 9767-9768.pending(branchLabel: APPROVAL_BRANCH_LABELS.reject,output: { decision: 'recall' }). Onreturnedthe run is cancelled instead and no flow node runs.resumed: falseandresumeFailure. What is left: the request readsrecalled, the run is stranded at the owning flow's refusal, and the subject is unchanged. Cloud pins exactly this inapps/cloud/test/marketplace-review-flow-isolated.test.ts("a withdrawal by someone who is not a platform administrator does not reject the version": version still pending, run error contains "not made by a platform administrator"), and cloud's design doc §6.7 names this card as the owner.isOverrideActorcloses the tenant arm on a slate holding the platform administrators' slot, so on cloud only requests opened before objectstack-ai/cloud#4299 are reachable by an organization administrator. Same population as 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.reject); a recall carriesrecall, so it refuses whoever recalled, a platform administrator included. Read on code (packages/service-cloud/src/marketplace-review-flow.ts,madeHere), not measured; whether a publisher is offered the recall button on a review request was not measured either.origin/main(premise from the governing text above, also in both CHANGELOGs: "A recall is not asked"). Option C therefore needs no framework code.git grep -n registerDecisionAdmission origin/main -- packages content docsshows only the service, the contract and the guide; cloud registers one check for its review flow.The concrete problem
A service can now say "this person may not approve, reject or send back this step" and have nothing recorded. It cannot say the same about a withdrawal. A withdrawal ends the step as surely as a rejection does: it writes the audit row, sets the request terminal, clears the approvers and runs the owning flow's reject branch. A flow whose rule is about who may end the review therefore still meets one record it could not refuse.
Options
recallrecallasks the admission after its own refusals and before its audit row, for the submitter, a system context and the override alike; the check getsviaOverrideandcontextand narrows as it likesrecallBusiness reading: A is "the process owner decides whether a request can be withdrawn, and by whom". B is "the owner may stop an administrator from withdrawing on someone's behalf, but never the applicant". C is "anyone the engine lets withdraw can always withdraw; the process only reacts".
A subsumes B: under A a check that wants B's rule returns admit when
viaOverrideis false.Four axes
os-decision-facets
① Long-term soundness: A shrinks special cases. The contract becomes "every act by a person that ends a pending step asks the owner first" with no listed exception. B adds a conditional ("asked on this arm only") that every future reader must remember. C keeps a named hole in a seam that is two days old. End state in two years: the owning service is the single authority on who ends its step, through every door. Mainstream reference: Salesforce approval processes carry a per-process "allow submitters to recall" setting and separate recall actions, so recallability belongs to the process, not to the engine. Reading: A.
② Real pull: one consumer (cloud marketplace review), the same one that pulled #39126. The shape is reproduced in cloud's isolated suite; there is no production report. Reach is rare: pre-#4299 requests for the override arm, plus any submitter recall (read on code). Low pull, not zero.
③ Preventing AI mistakes: A is a loud refusal before any write. Today the miss is quiet: a 200 answer, a recalled request, a stranded run that only an operator reading
resumeFailureor the run log sees. A also removes a trap for the next service author, who reads "every decision is asked" and writes a rule that recall walks around. Cost: the closed verb set grows by one, and a check that throws now blocks a withdrawal (fail closed, request still pending, recoverable).④ Startup focus: A and B add one permanent verb to a public contract. C adds nothing. The verb already exists as an action kind, so no new vocabulary is minted.
Prior rulings read:
recall admission,recall decision admission, #12775, #16472, record 7344644972 → 6 and 63 search hits, none ruling this question; ADR-0019 D-none (no text on recall admission); thread: noneRecommendation
A: every recall passes the check, as verb
recall.Self-check: on ① alone the answer is A; do ②③④ flip it: no. ② is low and ④ counts one verb against A, so they bear on timing only: this is p3 and can wait behind anything in flight. Effort: A is one small framework PR more than C; the readings on ① are not close, so the difference does not bear on the letter.
Confidence gaps, stated and not used to change the letter:
returned-window recall should be asked too. It cancels the run and no owning node executes, so the defect shape cannot arise there. Default proposed below: ask it as well, so the rule is "every recall"; the contract reviewer may narrow it.patch; whether this ispatchorminoris the contract review's call.ApprovalDecisionVerbnow covers a withdrawal. The jsdoc has to say so; a rename is not proposed.After the ruling
If A:
recalljoinsApprovalDecisionVerb;recallcalls the admission afterassertLatestForRunand before the audit-row insert, withviaOverridetrue only when the override arm admitted a non-submitter; the "not asked" sentences in the contract jsdoc, the guide paragraph and the changeset text are replaced. Tests: a check that refusesrecall(403, nothing written, request pending, run parked) for submitter, override and system context; a check that admits it; a flow with no check unchanged.recallexplicitly, since the present verb-blind check would admit a platform administrator's recall that finalize then still refuses; the pinned test and design doc §6.7 are updated at the pin round.If B: as A, with the call guarded and the jsdoc stating the submitter and system arms are not asked. If C: close this card on the existing jsdoc; cloud takes a card to make its reject branch complete on
recall; the ADR addendum states the exception.The ADR addendum is owed under every option. It needs no separate ruling beyond the tier's landing rule; only its last sentence depends on the letter.
Related cards and PRs
returnedapproval: an ADR-0044 side effect to retire, or a capability to keep? The gate, the prose and the viewer flag disagree three ways #12775: override recall scoped topending. [Decision] Must a resume failure reach the CALLER in a shape it can act on? — the family question triage reserved, now that its instance cards have each measured their own half and stopped at the same contract #16472: recall's no-throw.Delta from the card's existing analysis: none existed. The card carried a 速读 and no recommendation. Against the card's facts: the code reference moved (premise 2); the symptom is a 200 with a stranded run, not a 500 (premise 4); the override reach is limited to older requests (premise 5); the submitter path shows the same end state on cloud (premise 6, read on code); the "state the exception" acceptance is already met on
origin/main(premise 7).objectstack-fleet commentedon Dec 5, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Ruling: letter A · maintainer 「39526 三个都做。其他都接受你的建议」 · 2026-12-05T22:58Z
Maintainer ruling recorded: every recall asks the owning flow's decision admission, as a new verb
recall, for the submitter, a system context and the override alike, after its own refusals and before its audit row.Provenance
hotlong). Where: the triage seat's sessionsession_01Q4EjjMnyLqJdzuktEmRPXH, typed words, recorded within minutes. Words, verbatim: 「39526 三个都做。其他都接受你的建议」Next
recallexplicitly) and the ADR-0019 add-only addendum card, at this card's priority.needs-user-decisionoff,pm:queueon: this card is now the build card.