Repository navigation
Open
Labels
area:workflowApprovals and automation — the work that runs without a person driving itdomain:devxDomain lane — seat card indexed by label:pm:seatpm:queueReady for the PM dispatch looppriority:p3
Description
qa#1 · os-justin · session_01QSeKYpxQpmErd1ixfkgbYh
Filing gate: the maintainer's word in the verification seat's session on 2026-11-18. Asked about three product questions from round 2, analysed against the code and prior rulings, the maintainer answered, verbatim: 「三个问题 同意」. This card is the execution of the first answer. No new ruling: ruling 6377731715 on #25496 (letter B for #25446, "default off") stands.
Why
- What the runner saw: a probe beside
approvals.account-app-entry(QA run QA run · priority:P0 (24/24) · f02f4f63 · 2026-11-17 · 22 PASS / 2 PARTIAL / 0 FAIL / 0 BLOCKED / 0 NOT-RUN #34803, private note) found that a submitter can approve their own invoice sign-off request on the stock showcase. - Why that is not a platform gap: the per-step key
excludeSubmitterexists and is enforced. It is declared atpackages/spec/src/automation/approval.zod.ts(docblock around lines 1073–1117, "off by default, and ABSENT when off") and enforced at open, decide, reassign and escalate inpackages/plugins/plugin-approvals/src/approval-service.ts.showcase_invoice_signoff(examples/app-showcase/src/automation/flows/index.ts) does not declare it, so the platform did what the metadata said. - The actual gap is documentation:
grep -rn excludeSubmitter examples/finds nothing. The capability is demonstrated nowhere, and no checklist item asserts it.
Scope
- Showcase: declare
excludeSubmitter: trueon one approval flow that fits segregation of duties (an invoice or payment sign-off).- The seeded dev admin holds every approver position (
seed-approval-demo.ts), so with the submitter excluded that path goes toadmin_rescueor the node'sonEmptyApprovers. - Make the demo data still show a working path, and say which in the flow's comment.
- Note:
excludeSubmitterbesideonEmptyApprovers: 'auto_approve'is refused at parse ([Decision] An approval step with excludeSubmitter and onEmptyApprovers auto_approve would auto-approve a self-submitted request: refuse the pair at publish (A), override at runtime (B), or allow it (C)? #25635, ruling 6386627950).
- The seeded dev admin holds every approver position (
- Checklist: add or extend an item in
docs/qa/platform-checklist/areas/approvals.json. When the step declares the key, the submitter's own decision is refused (403) and the route never silently passes. When it does not declare it, self-approval is allowed by design (the default-off ruling).
Not in scope
- Changing the default.
- The same person listed twice in
pending_approverswhen they hold two position specs. That is per-spec by design (approvals: an expression approver that yields the same user id twice opens two co_sign slots for one person — the slate is not deduped #28684). A display-level dedupe would be its own small UI card if wanted.
QA-source: #34803 · approvals.account-app-entry · observed beside the clauses
Metadata
Metadata
Assignees
Labels
area:workflowApprovals and automation — the work that runs without a person driving itdomain:devxDomain lane — seat card indexed by label:pm:seatpm:queueReady for the PM dispatch looppriority:p3
Activity
objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch (R1208, 01:5xZ): p2 · domain:devx →
pm:queue.Theme: performance and security (segregation of duties in approvals), as QA coverage.
excludeSubmitterexists and is enforced, but no showcase flow declares it and no checklist item proves a declared step refuses self-approval. It is coverage for a security rule, not a platform gap, so p2.objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY
Ruling-ref: maintainer 14:43Z 「立一张专题卡,开始执行」 and 15:56Z 「domain 和优先级 不是已经定了吗?为什么现在不能改卡」 · regrade v3 under epic #35205
Grade: p3 (was p2) · area:workflow · Task · showcase follow-up that blocks no running work