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
feat(showcase): actually exercise the per-group (会签) approval demo
`showcase_expense_signoff` is the only flow authoring `behavior: 'per_group'`
(manager group ← position `manager`, finance group ← position `auditor`), but
nothing ever opened a request against it, so #3358 §1 "Per-group sign-off (会签)"
had nothing to look at:
* the approval demo seed launched only the `unanimous` invoice flow and the
`quorum` committee flow; and
* nobody held `auditor`, so even if it had fired, the finance group would
have resolved to an empty slate.
Give the finance group a real holder and launch the flow:
* add an `Ada Auditor (demo)` persona holding ONLY `auditor`. It has to be a
*different* user from the admin — with one user in both groups a single
decision satisfies both tallies at once and "one approval per group" is
never observable.
* launch `showcase_expense_signoff` on EXP-2001 ($1,500), deliberately UNDER
the $5,000 committee threshold so the quorum flow does not also open a
request on the same record and blur the two demos.
Generalises the two single-purpose helpers (`ensurePhoneDemoUser` →
`ensureDemoUser` returning the id; `assignAdminPositions` → `assignPositions`)
and corrects a comment that labelled the `unanimous` invoice flow as 会签.
Verified on a wiped dev DB — the request opens with the slate resolved across
both groups, not collapsed onto one user:
process_name = flow:showcase_expense_signoff
behavior = per_group, minApprovals = 1
approvers = [position manager @group manager,
position auditor @group finance]
pending_approvers = <admin>, usr_showcase_auditor_demo
status = pending
Boot log stays at 0 ERROR; the other two demos are unchanged (3 pending
requests now: unanimous, quorum, per_group). `tsc --noEmit` passes.
From the #3358 §1 evidence pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments