新流程包端到端:从零建一条流并跑通 —— 编排层可独立开工的验收证据
八例 unified-quote 证明的是「既有这条流能跑」;这一例证明另一件事: **拿编排层去开一条新流,不碰活动一行代码**。走的正是设计者那条路 —— 建包(草稿,不生效)→ 链接已装载的活动 → 激活(双判据闸)→ 起单 → 走完。 六例(真库): ① 建包存下来是未生效草稿;未生效版起单被拒(一次只能激活一个版本) ② 激活闸判据一:图编排不闭合 → NotClosedError ③ 激活闸判据二:活动未装载(unknown-activity)→ NotClosedError ④ 两面都齐即可激活,一条流恰一个生效版本 ⑤ 起单跑通:受理 → 审批(运营时分配审批人)→ 归档 → 闭环,末态 completed ⑥ 新流与老流引用同一批活动各跑各的 —— 建新流没动到活动 这条新流(quick-archive:受理→审批→归档)只用了编排层的能力: 节点两种、条件出边(审批点的 verdict 出边)、边映射五源、激活双判据。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KeDBx2PHLavbURXB8LJJ7m
This commit is contained in:
@@ -3,11 +3,18 @@
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"description": "隔离验证原型:回边 reopen 在 Mastra workflow 里怎么表达。不属于主 workspace。",
|
||||
"description": "隔离验证原型:回边 reopen 在 Mastra workflow 里怎么表达。不属于主 workspace,用 pnpm install --ignore-workspace 装。",
|
||||
"scripts": {
|
||||
"route-a": "tsx src/route-a-dowhile.ts",
|
||||
"route-b": "tsx src/route-b-external.ts",
|
||||
"probe": "tsx src/probe.ts"
|
||||
"probe:smoke": "tsx src/probe-00-smoke.ts",
|
||||
"probe:a-snapshot": "SPIKE_NO_AUTORUN=1 tsx src/probe-01-route-a-snapshot.ts",
|
||||
"probe:a-pitfalls": "SPIKE_NO_AUTORUN=1 tsx src/probe-02-route-a-pitfalls.ts",
|
||||
"probe:a-loop-detail": "SPIKE_NO_AUTORUN=1 tsx src/probe-03-loop-snapshot-detail.ts",
|
||||
"probe:b-pitfalls": "SPIKE_NO_AUTORUN=1 tsx src/probe-04-route-b-pitfalls.ts",
|
||||
"probe:misresume": "SPIKE_NO_AUTORUN=1 tsx src/probe-05-misresume-blast-radius.ts",
|
||||
"neg:runtime": "tsx src/negative/dowhile-shape-mismatch-runtime.ts",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@mastra/core": "latest",
|
||||
|
||||
Reference in New Issue
Block a user