bpmax-cli 0.1.44-beta.2 → 0.1.44-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +49 -0
  2. package/dist/bin.js +10732 -5047
  3. package/dist/bin.js.map +1 -1
  4. package/package.json +1 -1
  5. package/skills/bpmax-ai-taskbook/SKILL.md +207 -0
  6. package/skills/bpmax-approval-matrix/SKILL.md +87 -0
  7. package/skills/bpmax-cli/SKILL.md +3 -0
  8. package/skills/bpmax-dataset-field-template-editor/SKILL.md +5 -2
  9. package/skills/bpmax-dataset-template-editor/SKILL.md +2 -2
  10. package/skills/bpmax-dataset-template-editor/references/pre-process-script-example-catalog.md +8 -8
  11. package/skills/bpmax-e2e-flow-config-orchestrator/SKILL.md +53 -1
  12. package/skills/bpmax-e2e-flow-config-orchestrator/references/orchestration-matrix.md +4 -1
  13. package/skills/bpmax-e2e-flow-test-operator/SKILL.md +106 -3
  14. package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale.json +4 -4
  15. package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_final_v2.json +4 -4
  16. package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_main.json +4 -4
  17. package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_region.json +4 -4
  18. package/skills/bpmax-e2e-flow-test-operator/references/ai-test-suite.md +333 -0
  19. package/skills/bpmax-e2e-flow-test-operator/references/browser-only-checkpoints.md +8 -0
  20. package/skills/bpmax-e2e-flow-test-operator/references/filter-field-discovery.md +2 -2
  21. package/skills/bpmax-e2e-flow-test-operator/references/minimal-test-loop.md +9 -4
  22. package/skills/bpmax-e2e-flow-test-operator/references/negative-sale-api-matrix.md +3 -3
  23. package/skills/bpmax-e2e-flow-test-operator/references/profile-schema.md +6 -4
  24. package/skills/bpmax-e2e-flow-test-operator/references/state-schema.md +25 -0
  25. package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_doc.py +26 -0
  26. package/skills/bpmax-e2e-flow-test-operator/scripts/flow_test_profile.py +11 -11
  27. package/skills/bpmax-flow-template-editor/SKILL.md +52 -11
  28. package/skills/bpmax-flow-template-editor/references/flow-template-api-workflow.md +17 -2
  29. package/skills/bpmax-flow-template-editor/references/lessons-from-price-plan-flow.md +3 -3
  30. package/skills/bpmax-flow-template-editor/references/matrix-flow-form-nav-collaboration.md +9 -4
  31. package/skills/bpmax-flow-template-editor/references/project-create-runtime-gotchas.md +54 -2
  32. package/skills/bpmax-flow-template-editor/references/script-review-hard-rules.md +3 -0
  33. package/skills/bpmax-form-template-editor/SKILL.md +51 -14
  34. package/skills/bpmax-form-template-editor/references/form-template-api-workflow.md +15 -5
  35. package/skills/bpmax-form-template-editor/references/local-temp-workflow.md +1 -1
  36. package/skills/bpmax-form-template-editor/scripts/export_form_template.py +2 -0
  37. package/skills/bpmax-form-template-editor/scripts/form_template_editor_common.py +17 -0
  38. package/skills/bpmax-form-template-editor/tests/test_form_template_editor.py +6 -17
  39. package/skills/bpmax-list-template-editor/SKILL.md +10 -0
  40. package/skills/bpmax-list-template-editor/references/content-config-shape.md +17 -0
  41. package/skills/bpmax-list-template-editor/references/list-template-api-workflow.md +9 -4
  42. package/skills/bpmax-list-template-editor/references/runtime-verified-workflow.md +17 -10
  43. package/skills/bpmax-list-template-editor/references/special-formats.md +17 -0
  44. package/skills/bpmax-nav-config-editor/SKILL.md +3 -2
  45. package/skills/bpmax-nav-config-editor/references/api-workflow.md +6 -4
  46. package/skills/bpmax-nav-config-editor/references/path-mapping-rules.md +5 -0
  47. package/skills/bpmax-plugin-config/SKILL.md +42 -0
  48. package/skills/bpmax-project/SKILL.md +16 -1
  49. package/skills/bpmax-project-detail-template-editor/SKILL.md +26 -0
  50. package/skills/bpmax-project-detail-template-editor/references/module-catalog-and-config-notes.md +73 -0
  51. package/skills/bpmax-role-editor/SKILL.md +1 -1
  52. package/skills/bpmax-user-mock-operator/SKILL.md +106 -0
  53. package/skills/bpmax-user-mock-operator/agents/openai.yaml +4 -0
  54. package/skills/bpmax-user-mock-operator/scripts/switch_user_identity.py +37 -0
  55. package/skills/bpmax-user-mock-operator/scripts/user_mock_operator_common.py +136 -0
  56. package/skills/bpmax-user-mock-operator/tests/test_user_mock_operator.py +138 -0
  57. package/skills/bpmax-workspace-editor/SKILL.md +78 -0
  58. package/skills/bpmax-workspace-editor/agents/openai.yaml +4 -0
  59. package/skills/form-control-library/references/form-controls.md +37 -37
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpmax-cli",
3
- "version": "0.1.44-beta.2",
3
+ "version": "0.1.44-beta.21",
4
4
  "description": "CLI for BPMAX environments with multi-profile config and local login callback flow",
5
5
  "type": "module",
6
6
  "bin": {
@@ -0,0 +1,207 @@
1
+ ---
2
+ name: "bpmax-ai-taskbook"
3
+ description: "Use when BPMAX configuration work needs an AI implementation taskbook, AI任务方案, 任务书, 任务拆解, subagent dispatch prompts, progress CSV, or object-lock review before editing flows, templates, datasets, roles, navigation, workspaces, or E2E assets."
4
+ ---
5
+
6
+ # BPMAX AI Taskbook
7
+
8
+ ## Core Rule
9
+
10
+ Use a taskbook before dispatching broad BPMAX implementation work. The taskbook is a local planning and safety gate; it is not a BPMAX configuration write path.
11
+
12
+ ## When To Use
13
+
14
+ - The user asks for an AI task plan, taskbook, implementation task table, subagent split, or progress tracking.
15
+ - 用户要求 AI任务方案、任务书、任务拆解、实施任务表、subagent 分工、进度表或 P0/P1 review。
16
+ - The work spans multiple BPMAX objects such as flow, form, dataset, list, filter, detail, dashboard, role, navigation, workspace, or E2E cases.
17
+ - The work may use subagents or parallel review.
18
+ - A new flow/app/workspace may be created and the real platform-generated ID must be fed back into later tasks.
19
+ - The user asks for P0/P1 review before commit or before continuing configuration.
20
+
21
+ Do not use this for a single narrow read-only query, one-field edit, or pure CLI auth/setup task.
22
+
23
+ ## Config Skill / Capability Basis Gate
24
+
25
+ Taskbooks are not free-form work breakdowns. Before writing each configuration task, read or explicitly reference the relevant BPMAX configuration skill and the typed CLI adapter surface:
26
+
27
+ ```bash
28
+ bpmax-cli config adapters --format json
29
+ ```
30
+
31
+ Each task that touches a BPMAX configuration object must include all of these in `required_skills`, `object_lock`, `evidence`, or `notes`:
32
+
33
+ - the matching configuration skill, such as `bpmax-flow-template-editor`, `bpmax-form-template-editor`, `bpmax-list-template-editor`, `bpmax-dataset-field-template-editor`, `bpmax-nav-config-editor`, or `bpmax-workspace-editor`
34
+ - the typed CLI domain commands used for that object, for example `bpmax-cli config form-template lint/build/submit/verify`
35
+ - the object lock for that exact domain, such as `form-template:<id>`, `list-template:<id>`, `dataset-field:<id>`, `nav-config:<workspace>`, or `workspace-flow:<workspace>`
36
+ - write tasks must mention the `bpmax-cli config adapters --format json` capability/adapter check
37
+ - readonly tasks may use export/readback evidence only, but must still cite the relevant skill and object scope
38
+ - domain-specific constraints from the skill, for example:
39
+ - flow-template: `project_after_create_path`, code-mode `message_template`, `matrix_owner`, publish/readback behavior
40
+ - form-template: field schema, `raw.value`, `layout`, `sub_form`, `form-template inspect`
41
+ - list-template: operation column, detail/view action, guarded delete action, icon match, query safety, browser list-page proof
42
+ - project-detail-template: default detail template resolution and runtime detail-page proof
43
+ - dataset-field: `source_table`, `source_field`, `source_fk` / source mapping
44
+ - nav-config: PC/H5 entries, shortcut entry, browser proof that the entry opens the target page
45
+
46
+ If any task lacks the matching skill/capability basis, `bpmax-cli taskbook lint` / `lint-prompt` must fail and the taskbook must be revised before dispatch.
47
+
48
+ ## Compact Fix Taskbook
49
+
50
+ When a test run finds one configuration defect and the user only needs a repair taskbook, use this compact template instead of the full implementation template. It is still linted before execution, but it should stay short:
51
+
52
+ ```markdown
53
+ # BPMAX 配置缺陷修复任务书
54
+
55
+ ## 目标与边界
56
+ - defect: <one-sentence defect>
57
+ - workspace: <workspace>
58
+ - flow_type: <flow_type or none>
59
+ - requested_fix: <exact requested fix>
60
+ - out_of_scope: <what must not be touched>
61
+
62
+ ## 对象锁表
63
+ | lock | mode | reason |
64
+ | --- | --- | --- |
65
+ | <domain>:<numeric_id_or_flow_type> | exclusive-write | <why this object must change> |
66
+
67
+ ## 停机点
68
+ - capability 缺失即停止。
69
+ - latest/readback 基线漂移即停止。
70
+ - lint 或浏览器回归失败即停止。
71
+
72
+ ## 验收门禁
73
+ - typed CLI lint/build/submit/verify 通过。
74
+ - 浏览器真实页面回归通过,或明确标记未执行原因。
75
+ - 若涉及列表,必须检查操作列、查看/详情、删除可见性、icon、查询安全。
76
+ - 若涉及导航,必须检查入口可见并能打开目标页面。
77
+
78
+ ## 进度 CSV
79
+ task_id,status,evidence,next
80
+ T01,未开始,,
81
+ ```
82
+
83
+ Use compact taskbooks for “测试发现一个配置缺陷,需要形成修复任务书”, “只修一个列表/详情/表单 lint 问题”, or “P1 小修复需要对象锁和验收门禁”. Use the full template when work spans multiple objects, new flow/app/workspace creation, approval matrix lifecycle, or subagent parallel execution.
84
+
85
+ ## Commands
86
+
87
+ Create the taskbook:
88
+
89
+ ```bash
90
+ bpmax-cli taskbook init --out .codex/tmp/TASKBOOK.md
91
+ ```
92
+
93
+ Lint the taskbook before execution:
94
+
95
+ ```bash
96
+ bpmax-cli taskbook lint --source .codex/tmp/TASKBOOK.md
97
+ ```
98
+
99
+ For taskbooks that do not create or edit flows, keep the same content gates but skip the generated `flow_type` rule:
100
+
101
+ ```bash
102
+ bpmax-cli taskbook lint --source .codex/tmp/TASKBOOK.md --allow-generated-flow-type-missing
103
+ ```
104
+
105
+ Lint each subagent or handoff prompt before dispatch:
106
+
107
+ ```bash
108
+ bpmax-cli taskbook lint-prompt --prompt-source .codex/tmp/TASK_PROMPT.md
109
+ ```
110
+
111
+ Initialize progress tracking:
112
+
113
+ ```bash
114
+ bpmax-cli taskbook progress init --source .codex/tmp/TASKBOOK.md --out .codex/tmp/taskbook-progress.csv
115
+ ```
116
+
117
+ ## Required Content
118
+
119
+ The taskbook must include:
120
+
121
+ - `目标与边界`
122
+ - `并行拆解硬规则`
123
+ - `阶段总览`
124
+ - `对象锁表`
125
+ - `AI 最小任务单元`
126
+ - `验收门禁`
127
+ - `导航入口策略`
128
+ - `列表 lint`
129
+ - `停机点`
130
+ - `进度 CSV`
131
+ - `配置 Skill / Capability 依据表`
132
+
133
+ Every AI task row must include:
134
+
135
+ - `business_goal`: concrete business outcome, not just a technical object name.
136
+ - `required_skills`: concrete BPMAX skills such as `bpmax-flow-template-editor`, `bpmax-form-template-editor`, `bpmax-list-template-editor`, `bpmax-nav-config-editor`, `bpmax-e2e-flow-test-operator`, or `bpmax-memory-protocol`.
137
+ - `object_lock`: one lock per mutable BPMAX object, for example `flow:<flow_type>`, `form-template:<id>`, `dataset:<id>`, `list-template:<id>`, `nav-config:<workspace>`, `workspace:<key>`, or `new-flow:<name>`.
138
+ - `subagent_mode`: one of `none`, `readonly`, `draft-only`, or `exclusive-write`.
139
+ - `dependencies`: upstream task IDs required before execution.
140
+ - `evidence`: expected proof such as readback hash, browser screenshot, test report, or lint result.
141
+ - For configuration write tasks, `evidence` or `notes` must include `bpmax-cli config adapters --format json`, the matching typed CLI lint/build/submit/verify commands, and the domain-specific constraints from the relevant skill.
142
+
143
+ ## Object Lock Rules
144
+
145
+ - Duplicate object locks must not be edited in parallel.
146
+ - Read-only tasks may run in parallel, but must not save, publish, or submit payloads.
147
+ - UUID values are forbidden in BPMAX configuration taskbooks and subagent prompts. BPMAX 配置 ID 只能使用平台返回的数字 ID 或 `flow<number>`;新建前只能使用 `new-flow:<name>` 这种逻辑锁。
148
+ - Do not use UUIDs for form-template, dataset, dataset-field, page-template, role, workspace, flow_type, temporary ids, object locks, or examples.
149
+ - Approval matrix work must use separate tasks and object locks for: creating the matrix app, creating matrix rule records, filling real approver users, and connecting business flow `matrix_owner` / `cc_matrix`. Do not mark "matrix created" complete until both app configuration and rule data are verified.
150
+ - Navigation work must use a separate `nav-config:<workspace>` lock when it changes PC/H5 navigation or shortcuts.
151
+ - List-template work must include a lint and runtime evidence item: operation column, view/detail action, guarded delete action, matching icons, query safety, and browser list-page verification.
152
+ - Form-template work must include field schema/order evidence when forms or subforms change; use `bpmax-cli config form-template inspect --field <key>` when raw value order or rendered order is part of the risk.
153
+ - Dataset-field work must include source mapping evidence (`source_table`, `source_field`, `source_fk`) before submit.
154
+ - New flows must use `new-flow:<name>` until BPMAX returns a real `flow<number>`.
155
+ - After creation, replace the lock with `flow:<generated flow_type>` before dependent write tasks continue.
156
+ - Publishing, final sync, and cross-object integration must be single-threaded.
157
+
158
+ ## Navigation And List Gates
159
+
160
+ - Every full flow-configuration taskbook must explicitly declare one navigation strategy:
161
+ - `nav-config:included` when this work creates or updates the menu/shortcut entry.
162
+ - `nav-config:skipped:<reason>` when no navigation entry is required.
163
+ - `nav-config:deferred:<reason>` when navigation is intentionally left for a later task.
164
+ - If navigation is included, add an AI task or acceptance item using `bpmax-nav-config-editor`, `nav-config:<workspace>`, typed `bpmax-cli config nav-config ...`, readback evidence, and browser proof that the entry opens the target list/create/detail page.
165
+ - If list configuration is included, add an AI task or acceptance item using `bpmax-list-template-editor`, typed `bpmax-cli config list-template lint/build/submit/verify`, lint evidence, and browser proof that the real list page renders data, opens detail, and enforces delete visibility correctly.
166
+ - Do not mark a full process configuration complete when list lint or required navigation verification is missing.
167
+
168
+ ## Prompt Gate
169
+
170
+ Before dispatching any subagent prompt, run `lint-prompt`. The prompt must explicitly include:
171
+
172
+ - `业务目标场景`
173
+ - `required_skills`
174
+ - `对象锁`
175
+ - `subagent_mode`
176
+ - `允许操作`
177
+ - `不得修改`
178
+ - `输入依赖`
179
+ - `输出物`
180
+ - `验收方式`
181
+ - `导航入口策略`
182
+ - `列表 lint`
183
+ - `进度 CSV`
184
+
185
+ If `lint-prompt` fails, revise the prompt. Do not dispatch a vague prompt and rely on the subagent to infer scope.
186
+
187
+ ## Execution Gate
188
+
189
+ Only after taskbook lint and prompt lint pass:
190
+
191
+ 1. Run the latest configuration sync required by the target workspace.
192
+ 2. Execute tasks according to object locks and dependencies.
193
+ 3. Use typed `bpmax-cli config ...` commands for all BPMAX writes.
194
+ 4. Update the progress CSV after each task.
195
+ 5. Stop on capability gaps, baseline drift, object-lock conflict, failed lint, or failed browser/runtime verification.
196
+
197
+ 不得把 taskbook 当作 BPMAX 配置写入命令。Taskbook commands are local file gates; they do not write BPMAX configuration and do not replace typed adapters.
198
+
199
+ ## Memory
200
+
201
+ Start non-trivial taskbooks by consulting `bpmax-memory-protocol` or:
202
+
203
+ ```bash
204
+ bpmax-cli memory search --scope all --query "<workspace> <flow_type> taskbook implementation plan" --format json
205
+ ```
206
+
207
+ After verified completion, write only reusable `decision`, `task_learning`, `anti_pattern`, or `session_state` memory. Do not write API keys, passwords, cookies, tokens, verification codes, phone numbers, full payloads, or large raw API responses.
@@ -0,0 +1,87 @@
1
+ ---
2
+ name: "bpmax-approval-matrix"
3
+ description: "Use when BPMAX work involves approval matrix, role matrix, department matrix, matrix_owner, cc_matrix, matrix rule records, approver mapping, seed rules, or connecting a business flow to matrix-based owners or CC users."
4
+ ---
5
+
6
+ # BPMAX Approval Matrix
7
+
8
+ ## Core Boundary
9
+
10
+ 审批矩阵不是一个单一配置项。必须把生命周期拆成四段:
11
+
12
+ 1. 创建矩阵应用:矩阵流程、表单、列表、筛选器、工作区绑定和导航入口。
13
+ 2. 创建矩阵规则记录:在线上矩阵流程中创建项目记录。
14
+ 3. 填充真实审批人:规则记录里的用户字段必须是真实用户对象或用户 ID,不得是示例文本、空值或本地占位。
15
+ 4. 主流程接入矩阵:业务流程节点配置 `matrix_owner` 或 `cc_matrix`,并验证命中规则后能返回审批人。
16
+
17
+ 只有第 1 段完成时,不能宣称“审批矩阵已可用”。
18
+
19
+ ## Required Skills
20
+
21
+ - 先用 `bpmax-ai-taskbook` 拆任务和对象锁。
22
+ - 矩阵应用配置用 `bpmax-e2e-flow-config-orchestrator`、`bpmax-flow-template-editor`、`bpmax-form-template-editor`、`bpmax-list-template-editor`、`bpmax-filter-template-editor`。
23
+ - 规则记录创建用 `bpmax-project`,默认走 `bpmax-cli project create --json ...` 的安全引导或 handoff。
24
+ - 浏览器验证用 `bpmax-e2e-flow-test-operator`。
25
+
26
+ ## Hard Rules
27
+
28
+ - UUID 禁止用于任何矩阵配置 ID、规则记录 ID、表单模板 ID、数据集 ID、页面模板 ID 或临时 object lock。
29
+ - 矩阵流程必须是 `category = "matrix"`。
30
+ - 矩阵录入表单挂在 `flow.data.meta.form_template`,不是普通节点 `node.form_template`。
31
+ - `flow-app create` 只创建矩阵应用配置,不会创建矩阵规则记录。
32
+ - `seed-rules.json` 只是本地规则种子,不代表线上已有规则数据。
33
+ - seed 缺少真实审批人用户值时,不允许进入主流程接入验收。
34
+ - `workspace-flow` 是全量替换接口;提交前必须重新 export 当前绑定并 merge,不能复用旧 dry-run payload。
35
+
36
+ ## Minimal Workflow
37
+
38
+ 1. Baseline:
39
+
40
+ ```bash
41
+ bpmax-cli config latest pull <env> --profile <profile> --format json
42
+ bpmax-cli taskbook lint --source .codex/tmp/TASKBOOK.md
43
+ ```
44
+
45
+ 2. Matrix app:
46
+
47
+ ```bash
48
+ bpmax-cli config flow-app create --workspace <workspace> --form-work <matrix-form-work> --flow-work <matrix-flow-work> --name "<matrix name>"
49
+ bpmax-cli config flow-app create --workspace <workspace> --form-work <matrix-form-work> --flow-work <matrix-flow-work> --name "<matrix name>" --confirm "create flow-app <matrix name> in <workspace>"
50
+ ```
51
+
52
+ 3. Matrix rule records:
53
+
54
+ ```bash
55
+ bpmax-cli matrix seed <matrix_flow_type> --profile <profile> --rules @seed-rules.json --approver-field <owner_field> --format json
56
+ bpmax-cli project create --profile <profile> --flow-type <matrix_flow_type> --json '{"form":{...}}' --format json
57
+ ```
58
+
59
+ `matrix seed` 只做本地校验和输出 `project create` checklist,不写线上项目记录。If CLI returns `handoff: true`, use the returned page link. Do not force `--no-interactive` unless the form is proven safe for direct create.
60
+
61
+ 4. Business flow consumption:
62
+
63
+ - Owner: set `node.auto_range_type = "matrix"` and configure `node.matrix_owner.flow` plus `node.matrix_owner.script`.
64
+ - CC: set `node.cc_type = "matrix"` and configure `node.cc_matrix.flow` plus `node.cc_matrix.script`.
65
+ - Scripts must return user objects, user IDs, or arrays of them.
66
+
67
+ 5. Verification:
68
+
69
+ - Matrix app is visible in the target workspace.
70
+ - Matrix rule project exists online with real approver fields.
71
+ - Business flow create/submit reaches the matrix-owned step.
72
+ - Runtime owner/CC resolves to the expected user.
73
+ - If owner resolution is unclear, run the read-only diagnostic first:
74
+
75
+ ```bash
76
+ bpmax-cli matrix owner-resolve --profile <profile> --flow-type <business_flow_type> --node <node_id> --project-id <project_id> --format json
77
+ ```
78
+
79
+ The diagnostic only reports node-side `matrix_owner` config paths and project form context. It does not create matrix rule records and does not replace browser/runtime E2E verification.
80
+
81
+ ## Stop Conditions
82
+
83
+ - Any required ID is UUID-shaped.
84
+ - Matrix app exists but no rule records exist.
85
+ - Rule records exist but approver fields are empty or not real BPMAX users.
86
+ - `project create --no-interactive` returns 500; switch to CLI handoff diagnostics instead of raw API.
87
+ - Business flow `matrix_owner.flow` points to a flow that is not `category = "matrix"`.
@@ -41,11 +41,14 @@ bpmax-cli init --agent <agent> --channel feishu --url "<BPMAX_URL>" --name local
41
41
  - 刷新配置库、同步最新配置、latest pull:读 `../bpmax-config-latest/SKILL.md`
42
42
  - 流程列表、流程选项、流程详情:读 `../bpmax-flow/SKILL.md`
43
43
  - 项目列表、项目详情、我的待办、最小创建:读 `../bpmax-project/SKILL.md`
44
+ - 审批矩阵、矩阵规则 seed、matrix_owner / cc_matrix:读 `../bpmax-approval-matrix/SKILL.md`
44
45
  - 环节推进、审批通过/拒绝、完成 step:读 `../bpmax-project/SKILL.md`,必须使用 `step context/actions/requirements/submit` 的安全链路
45
46
  - 系统内页面 URL 生成:先读 `../bpmax-shared/SKILL.md` 的“系统内 URL 生成”
46
47
  - 本地 schema manifest:读 `../bpmax-schema/SKILL.md`
47
48
  - 服务端能力白名单:先用 `capabilities status/refresh` 查看当前 profile 已授权 capability,不要绕过白名单手写 raw API
48
49
  - BPMAX Business Skills 查询、同步、安装、更新、卸载:读 `../bpmax-business-skill/SKILL.md`
50
+ - AI 任务方案、任务书、任务拆解、subagent 分工、实施任务表、进度 CSV:读 `../bpmax-ai-taskbook/SKILL.md`
51
+ - 审批矩阵、角色矩阵、矩阵规则记录、`matrix_owner`、`cc_matrix`、规则 seed、审批人映射:读 `../bpmax-approval-matrix/SKILL.md`
49
52
 
50
53
  ## 规则
51
54
 
@@ -7,7 +7,7 @@ description: "用于在 BPMAX 的数据集字段页面中创建、编辑、复
7
7
 
8
8
  ## 写入路径硬约束
9
9
  - 执行前必须先运行 `bpmax-cli config adapters --format json` 核对 `dataset-field`;只有 `build_status` 和 `submit_status` 都是 `supported` 时才允许进入 build/submit。当前 typed CLI 通过 huanpingtong `/api/data_set_field*` 代理访问 bpmax-server `/data-set-field*` 运行态接口;若 adapter 显示 `blocked`,只能导出、编辑 work、lint 和形成变更建议,不得提交。
10
- - 当前 bpmax-cli typed adapter 支持已有数据集字段的 `dataset-field export/lint/build/submit/verify`,提交路径为 huanpingtong `/api/data_set_field/:id` 代理到 bpmax-server `/data-set-field/:id`。新建和删除仍未纳入 typed adapter,不得把旧脚本、raw API、页面 fetch 当作替代提交路径。
10
+ - 当前 bpmax-cli typed adapter 支持数据集字段的 `dataset-field export/lint/build/submit/create/delete/verify`,编辑提交路径为 huanpingtong `/api/data_set_field/:id`,新建提交路径为 huanpingtong `/api/data_set_field`,删除路径为 huanpingtong `/api/data_set_field/:id`,均代理到 bpmax-server 运行态接口。不得把旧脚本、raw API、页面 fetch 当作替代提交路径。
11
11
  - 旧来源脚本 `scripts/submit*.py` 只保留为结构参考,默认会硬失败;不得用它们直调 BPMAX API。
12
12
  - 不得用 `bpmax-cli api POST/PUT/DELETE /data_set_field*` 或其它 raw API 绕过 typed config submit。
13
13
 
@@ -238,6 +238,8 @@ PYTHON_BIN=./venv/bin/python
238
238
  - `meta/create__<flow_type>__<key>.json`:本地创建状态机
239
239
  - `diffs/create__<flow_type>__<key>.work.diff.txt`:种子 vs 工作副本差异摘要
240
240
  - `artifact-id` 默认按 `create__<flow_type>__<key>` 生成;如有冲突可以手动传 `--artifact-id` 覆盖。
241
+ - 新建字段的 `meta` 必须明确写入 `domain: "dataset-field"` 与 `mode: "create"`;如果本地脚本或手工 work 缺这两个字段,先补齐再 build,不要让 build 阶段靠猜测进入创建模式。
242
+ - 创建 payload 必须同时保留后端需要的来源字段:`source_table/source_field/source_fk`,并由 CLI 兼容补齐 `sourceTable/sourceField/sourceFk`;任一来源表字段为空时,不得真实 submit。
241
243
 
242
244
  ### 3.5 优先检索现有字段模板
243
245
  - 只要需求涉及“新建字段”“批量加字段”“从业务含义生成字段”,先在当前已激活配置仓库检索 `think_data_set_field`。
@@ -327,6 +329,7 @@ PYTHON_BIN=./venv/bin/python
327
329
  - `source_relation_filter`
328
330
  - `relation_flow`
329
331
  - `post_script`
332
+ - 创建提交体的 meta 仍必须是 `domain: "dataset-field"` 与 `mode: "create"`;不要把编辑态 meta 复用到创建态,否则 CLI 会走错误的提交语义。
330
333
  - 创建模式下若 `flow_key` 为空,依然必须直接省略,不要传空字符串。
331
334
  - `advanced` 字段按“显式存在才发”处理:
332
335
  - `work.advanced` 不存在:不在提交体里写 `sourceComputed` / `matchRule` / `matchLogic`
@@ -400,7 +403,7 @@ return JSON.parse(ctx.value);
400
403
  - `classify`
401
404
 
402
405
  ### 7. 提交与回读
403
- - 当前版本 `dataset-field` adapter 支持编辑已有字段。新建、复制、删除或批量生成字段仍只能形成 work 文件、lint 结果、变更建议和待适配 payload 设计;typed CLI 未覆盖的创建动作不得改用旧脚本直提。
406
+ - 当前版本 `dataset-field` adapter 支持编辑、新建和删除单个字段。复制或批量生成字段必须拆分成可审查的单字段 work 文件、lint 结果和 submit payload,再通过 typed CLI 的 create/submit/delete 路径逐项执行;尚未提供批量快捷命令时,不得改用旧脚本直提。
404
407
 
405
408
  - 旧 `submit_dataset_field.py` 只保留为结构参考,默认会硬失败;不得用它直写线上字段配置。
406
409
  - 只有满足以下条件才允许真正执行提交请求:
@@ -7,7 +7,7 @@ description: "用于在 BPMAX 的数据集页面中创建、编辑、发布、
7
7
 
8
8
  ## 写入路径硬约束
9
9
  - 执行前必须先运行 `bpmax-cli config adapters --format json` 核对 `dataset`;只有 `build_status` 和 `submit_status` 都是 `supported` 时才允许进入 build/submit。当前 typed CLI 通过 huanpingtong `/api/data_set*` 代理访问 bpmax-server `/data-set*` 运行态接口;若 adapter 显示 `blocked`,只能导出、编辑 work、lint 和形成变更建议,不得提交。
10
- - 当前 bpmax-cli typed adapter 支持已有数据集的 `dataset export/lint/build/submit/verify`,提交路径为 huanpingtong `/api/data_set/relationFields/:id` 代理到 bpmax-server `/data-set/relationFields/:id`。新建、发布、暂停、取消刷新和索引刷新仍未纳入 typed adapter,不得把旧脚本、raw API、页面 fetch 当作替代提交路径。
10
+ - 当前 bpmax-cli typed adapter 支持数据集的 `dataset export/lint/build/submit/verify`,编辑提交路径为 huanpingtong `/api/data_set/relationFields/:id`,新建提交路径为 huanpingtong `/api/data_set`,均代理到 bpmax-server 运行态接口。发布、暂停、取消刷新和索引刷新仍未纳入 typed adapter,不得把旧脚本、raw API、页面 fetch 当作替代提交路径。
11
11
  - 旧来源脚本 `scripts/submit*.py` 只保留为结构参考,默认会硬失败;不得用它们直调 BPMAX API。
12
12
  - 不得用 `bpmax-cli api POST/PUT/DELETE /data_set*` 或其它 raw API 绕过 typed config submit。
13
13
 
@@ -501,7 +501,7 @@ export BPMAX_BASE_URL='https://<your-bpmax-host>'
501
501
  - 如果没有变化,优先改走“新建正确数据集 + 迁移引用”的方案
502
502
 
503
503
  ### 6. 提交方式
504
- - 当前版本只允许通过 typed CLI 编辑已有 dataset 配置。`bpmax-cli config dataset submit` 使用 `/api/data_set/relationFields/:id` 更新数据集基础信息和字段关联;页面同域 `fetch`、页面 `$axios`、终端 `curl` 只能用于读取、抓契约或验证,不能作为提交主路径。
504
+ - 当前版本只允许通过 typed CLI 创建或编辑 dataset 配置。`bpmax-cli config dataset submit` 在 `mode=create` 时使用 `/api/data_set` 新建,在编辑时使用 `/api/data_set/relationFields/:id` 更新数据集基础信息和字段关联;页面同域 `fetch`、页面 `$axios`、终端 `curl` 只能用于读取、抓契约或验证,不能作为提交主路径。
505
505
  - 默认本地闭环顺序:
506
506
  1. `export_dataset.py`
507
507
  2. 必要时 `basic_table_audit.py` / `scan_custom_key_references.py`
@@ -9,7 +9,7 @@
9
9
  - 项目选择器或弹窗选择场景,不适合继续沿用默认列表组合逻辑。
10
10
  - 代表样例:
11
11
  - `business_policy` 数据集,`flow143372620`
12
- - [sysconfig-example 样例](../../../../think_data_set/uuid'11e6cc59-cc73-4b30-a60e-a19e2319d77b___is_del'0/data_set.pre_process_script)
12
+ - [sysconfig-example 样例](../../../../think_data_set/<local-mirror-data-set-dir>/data_set.pre_process_script)
13
13
  - 做法:
14
14
  - 检查 `ctx.clientPayload.query.is_project_select`
15
15
  - 直接用 `ctx.clientFormatQuery` 重写 `ctx.body.query`
@@ -19,7 +19,7 @@
19
19
  - 默认 `__all_owner_ids` 不符合业务,想改成关注人、跟进人等视角。
20
20
  - 代表样例:
21
21
  - `matrix` 数据集,`flow938235363`
22
- - [sysconfig-example 样例](../../../../think_data_set/uuid'f29b5603-e33f-477d-835d-04958c3496d6___is_del'0/data_set.pre_process_script)
22
+ - [sysconfig-example 样例](../../../../think_data_set/<local-mirror-data-set-dir>/data_set.pre_process_script)
23
23
  - 做法:
24
24
  - 定位默认 `bool.should` 里的 `match.__all_owner_ids`
25
25
  - 替换成 `nested followUser.id = 当前用户`
@@ -29,7 +29,7 @@
29
29
  - 不同角色看不同问题、任务、项目集合。
30
30
  - 代表样例:
31
31
  - `BPMAX 问题管理(flow138055947)` 的 `IssueManagement`
32
- - [sysconfig-cltxtest 样例](../../../../../sysconfig-cltxtest/think_data_set/uuid'f3f12a09-9496-4d26-9a61-1ceb36a4b6bf___is_del'0/data_set.pre_process_script)
32
+ - [sysconfig-cltxtest 样例](../../../../../sysconfig-cltxtest/think_data_set/<local-mirror-data-set-dir>/data_set.pre_process_script)
33
33
  - 做法:
34
34
  - `pm` 角色先查 `BPMAX 项目立项(flow160679070)` 的 `matrix`
35
35
  - 把命中的项目 id 塞回问题列表的 `project_id`
@@ -40,7 +40,7 @@
40
40
  - 非管理员只能看自己任务,且列表默认排序需要稳定。
41
41
  - 代表样例:
42
42
  - `BPMAX 项目执行任务(flow671032636)` 的 `plan_task`
43
- - [sysconfig-cltxtest 样例](../../../../../sysconfig-cltxtest/think_data_set/uuid'dd4105ee-85b1-4cad-8d4e-7a5216f196b2___is_del'0/data_set.pre_process_script)
43
+ - [sysconfig-cltxtest 样例](../../../../../sysconfig-cltxtest/think_data_set/<local-mirror-data-set-dir>/data_set.pre_process_script)
44
44
  - 做法:
45
45
  - 非管理员追加 `__owner_id = 当前用户`
46
46
  - 无自定义排序时,按业务状态脚本排序,再按更新时间倒序
@@ -50,7 +50,7 @@
50
50
  - 权限写在元数据或主数据里,不在角色点位上。
51
51
  - 代表样例:
52
52
  - `采购申请(flow71669656)`
53
- - [sysconfig-xingmai 样例](../../../../../sysconfig-xingmai/think_data_set/uuid'2384c6c4-33b0-46b7-b7de-c76f7019edb4___is_del'0/data_set.pre_process_script)
53
+ - [sysconfig-xingmai 样例](../../../../../sysconfig-xingmai/think_data_set/<local-mirror-data-set-dir>/data_set.pre_process_script)
54
54
  - 做法:
55
55
  - 先查 `采购大类-采购类别元数据(flow558104702)` 的 `procurement_info`
56
56
  - 根据采购员身份判断当前人负责哪些产品线
@@ -61,7 +61,7 @@
61
61
  - 当前用户要映射到 OA / 飞书 / 导入人姓名等多套身份字段。
62
62
  - 代表样例:
63
63
  - `合同审批(flow48198545)`
64
- - [sysconfig-xingmai 样例](../../../../../sysconfig-xingmai/think_data_set/uuid'a999c45f-57de-4298-8cfc-717af4caa312___is_del'0/data_set.pre_process_script)
64
+ - [sysconfig-xingmai 样例](../../../../../sysconfig-xingmai/think_data_set/<local-mirror-data-set-dir>/data_set.pre_process_script)
65
65
  - 做法:
66
66
  - 先用 SQL 查 `think_platform_user`
67
67
  - 再把 `feishu_user_id`、`contract_owner_id`、`import_data_owner_names` 追加到 `should`
@@ -71,7 +71,7 @@
71
71
  - 前端筛的是“月份”,ES 存的是起止区间。
72
72
  - 代表样例:
73
73
  - `营销项目预算申请(flow168700401)` 的 `yx_budget`
74
- - [sysconfig-xingmai 样例](../../../../../sysconfig-xingmai/think_data_set/uuid'05d60d70-1c7c-4cd6-bf37-3615a59c2e90___is_del'0/data_set.pre_process_script)
74
+ - [sysconfig-xingmai 样例](../../../../../sysconfig-xingmai/think_data_set/<local-mirror-data-set-dir>/data_set.pre_process_script)
75
75
  - 做法:
76
76
  - 把 `budget_month=YYYY-MM` 改写成 `budget_start_month <= 月份 <= budget_end_month`
77
77
  - 再叠加 `budget_owner_id = 当前用户`
@@ -81,7 +81,7 @@
81
81
  - 数据权限不变,但列表必须稳定排序。
82
82
  - 代表样例:
83
83
  - `质量阀交付物模板(flow381001006)`
84
- - [sysconfig-cltxtest 样例](../../../../../sysconfig-cltxtest/think_data_set/uuid'663cc61e-9559-4c5e-b50a-e046848f86d4___is_del'0/data_set.pre_process_script)
84
+ - [sysconfig-cltxtest 样例](../../../../../sysconfig-cltxtest/think_data_set/<local-mirror-data-set-dir>/data_set.pre_process_script)
85
85
  - 做法:
86
86
  - 只改 `ctx.body.sort`
87
87
  - 不碰查询条件
@@ -11,6 +11,8 @@ description: "用于按 BPMAX 完整流程配置需求先调研、再出计划
11
11
  - 只有用户明确要求的 `requested`,或为闭合需求不可避免的 `required-collateral`,才允许进入 work / submit / 线上 payload / 状态变更。
12
12
  - `required-collateral` 必须逐项解释“不改会坏/会失真/会不闭合”的原因并取得确认;`out-of-scope` 一律不得提交或顺手混入。
13
13
  - 不得以历史脏配置、顺手修复、统一风格、编辑器自动补字段、方便调试为理由修改需求外配置。
14
+ - 所有远端写入必须走 `bpmax-cli config ...` typed adapter。没有相关流程且用户要求创建时,优先评估 `config flow-app create`;如果当前 profile 缺 `config.flow_app.create`、`config.form_template.create`、`config.flow_template.create` 或 `config.workspace_flow.submit`,必须停止并要求补授权/升级 CLI,不得改用 raw API、页面 fetch 或旧 submit 脚本。
15
+ - 大型、多对象、需要 subagent 或需要 P0/P1 review 的配置任务,必须先进入 [$bpmax-ai-taskbook](../bpmax-ai-taskbook/SKILL.md),生成并 lint AI 任务书,再开始分发执行;不得直接口头拆任务后写配置。
14
16
 
15
17
  ## 何时使用
16
18
  - 用户要做一整套 BPMAX 流程相关配置,而不是单改某一个模板。
@@ -31,7 +33,17 @@ description: "用于按 BPMAX 完整流程配置需求先调研、再出计划
31
33
  - 不直接开始执行。先把流程需求讲清楚,再把本次要做的配置面讲清楚,再看是否还缺高影响信息。
32
34
  - 浏览器实时页面、实时接口返回、当前页面真实请求骨架优先级高于本地 `think_*` 配置镜像;本地仓库只作为候选检索和结构参考。
33
35
  - 每完成一个配置面,默认先做该页面的浏览器侧回读验收,再进入下一面;不要把上一步的陈旧草稿或本地镜像误当成当前线上事实继续往下串。
34
- - 新建主流程时必须先通过平台创建流程壳,拿到 `flow<number>` 格式的真实 `flow_type` 后再继续配置;不得把业务名、测试 marker 或语义 key 拼成 `flow_type`。语义标识只能放在 `testMarker`、配置备注、测试 profile 或 metadata 中。
36
+ - 新建主流程时必须通过 typed CLI 让平台创建流程壳,拿到 `flow<number>` 格式的真实 `flow_type` 后再继续配置;不得把业务名、测试 marker 或语义 key 拼成 `flow_type`。语义标识只能放在 `testMarker`、配置备注、测试 profile 或 metadata 中。
37
+ - “没有相关流程,需要创建新表单、新流程并绑定到工作区”时,默认首选端到端 typed 命令:
38
+
39
+ ```bash
40
+ bpmax-cli config flow-app create --workspace <workspace> --form-work <form-work-file> --flow-work <flow-work-file> --name <name>
41
+ bpmax-cli config flow-app create --workspace <workspace> --form-work <form-work-file> --flow-work <flow-work-file> --name <name> --confirm "create flow-app <name> in <workspace>"
42
+ ```
43
+
44
+ - `flow-app create` 的 dry-run 必须展示完整 operation plan:创建表单、发布表单、创建流程壳、绑定 `data.meta.form_template=<published_id>`、保存/发布流程、绑定工作区、回读验证。缺任何关键步骤都不得确认执行。
45
+ - `flow-app create` 的 flow work 必须预置表单驱动发起默认基线:隐藏 `project.name` / `project.brief` / `project.plan_end_time`,启用 `meta.use_template_project_name = true`,并提供非空 `meta.project_name_template`。这是 typed CLI 写入前 gate,不是可选建议。
46
+ - 工作区绑定必须走 `PUT /workspace/workspace_flow` typed adapter,并在 `/workspace/by_key?key=<workspace>` 回读中确认新 `(flow_type, flow_key)` 存在。回读失败时不能宣布创建成功。
35
47
  - 若用户选择“完整流程配置”,默认依次评估:
36
48
  - 流程
37
49
  - 表单
@@ -41,9 +53,29 @@ description: "用于按 BPMAX 完整流程配置需求先调研、再出计划
41
53
  - 筛选器
42
54
  - 导航
43
55
  - 也就是:`流程 -> 表单 -> 数据集字段 -> 数据集 -> 列表 -> 筛选器 -> 导航`
56
+ - 完整流程配置的配置面完成后,必须再调用 `bpmax-e2e-flow-test-operator` 做真实运行态验收;不能只用配置回读或最终 latest pull 宣布完成。
57
+ - 真实运行态验收至少覆盖:导航入口可见并可点击进入目标页、列表真实数据或明确空态原因、操作列进入详情、筛选器可用、创建页能加载并提交到预期环节。
44
58
  - 计划第一步固定先进入 `bpmax-config-latest` 并执行当前配置环境的 `bpmax-cli config latest pull <env>`;全部配置和验证结束后,最后一步固定再通过 `bpmax-config-latest` 执行一次同一环境的 latest pull。
45
59
  - 若首次同步因本地脏工作区失败,默认下一步尝试追加 `--allow-dirty` 重试;若重试任一步失败,立即停下并向用户说明冲突点,由用户决定是否继续。
46
60
 
61
+ ## AI 任务书门禁
62
+ - 当本次配置跨 2 个以上配置面、会创建新流程/工作区、需要 subagent 并行、或用户明确要求 review P0/P1 时,先调用 [$bpmax-ai-taskbook](../bpmax-ai-taskbook/SKILL.md)。
63
+ - 任务书必须先通过:
64
+
65
+ ```bash
66
+ bpmax-cli taskbook lint --source .codex/tmp/TASKBOOK.md
67
+ ```
68
+
69
+ - 每个 subagent prompt 必须先通过:
70
+
71
+ ```bash
72
+ bpmax-cli taskbook lint-prompt --prompt-source .codex/tmp/TASK_PROMPT.md
73
+ ```
74
+
75
+ - 任务书里必须声明对象锁、`required_skills`、`subagent_mode`、依赖和验收证据;对象锁冲突、prompt lint 失败、或真实 `flow_type` 未回填时不得分发写任务。
76
+ - 完整流程配置的任务书必须声明 `导航入口策略` 和 `列表 lint`:导航使用 `nav-config:included/skipped/deferred`,列表任务必须保留 `bpmax-cli config list-template lint` 结果和真实列表页验收作为证据。
77
+ - `bpmax-cli taskbook progress init --source .codex/tmp/TASKBOOK.md --out .codex/tmp/taskbook-progress.csv` 生成的进度 CSV 是执行状态来源;不得直接改飞书文档当作进度事实。
78
+
47
79
  ## Mem0 协议
48
80
  - 编排开始前先调用 [$bpmax-memory-protocol](../bpmax-memory-protocol/SKILL.md),检索词至少包含:
49
81
  - 业务名 / 流程名
@@ -87,8 +119,14 @@ description: "用于按 BPMAX 完整流程配置需求先调研、再出计划
87
119
  - 列表模板
88
120
  - 筛选器模板
89
121
  - 导航配置
122
+ - 如果配置面超过 2 个,或存在新建/发布/多角色验收,计划中必须加入 `bpmax-ai-taskbook` 前置任务书步骤。
90
123
  - 如果用户说“全部都做”,按完整流程配置处理。
91
124
  - 如果用户只做一部分,只编排对应子 skill,不强行扩展到其他无关面。
125
+ - 如果用户要求“没有就新建”,计划中必须显式写出:
126
+ - 是否先检索并复用已有表单/流程
127
+ - 若没有可复用对象,是否使用 `flow-app create`
128
+ - 目标工作区绑定是否属于本次 `requested` 或 `required-collateral`
129
+ - 是否需要导航入口;没有明确要求菜单入口时,不默认写 nav-config
92
130
 
93
131
  ### 4. 补齐高影响缺口
94
132
  - 根据用户回答,继续判断是否还缺这些高影响信息:
@@ -105,12 +143,15 @@ description: "用于按 BPMAX 完整流程配置需求先调研、再出计划
105
143
  - 第一步:执行 `bpmax-cli config latest pull <env>`
106
144
  - 若失败:尝试追加 `--allow-dirty` 重试;若仍失败则停下问用户
107
145
  - 中间步骤:按本次配置范围组合子 skill
146
+ - 收口步骤:调用 `bpmax-e2e-flow-test-operator` 完成真实浏览器运行态验收
108
147
  - 最后一步:全部配置和验证完成后,再执行一次 `bpmax-cli config latest pull <env>`
109
148
  - 计划中要显式说明:
110
149
  - 哪些配置面属于本次范围
111
150
  - 哪些子 skill 会被调用
151
+ - 是否需要 `bpmax-ai-taskbook`,以及任务书 lint、prompt lint、进度 CSV 的路径
112
152
  - 哪些页面必须先在浏览器中打开
113
153
  - 哪些地方以浏览器实时配置为准
154
+ - 新建场景使用哪个 typed create 命令、确认文本是什么、失败后停止在哪一步
114
155
 
115
156
  ### 6. 计划后的执行编排
116
157
  - 用户切出计划模式并要求继续后,由同一个 skill 按计划推进。
@@ -124,8 +165,15 @@ description: "用于按 BPMAX 完整流程配置需求先调研、再出计划
124
165
  - 导航:[$bpmax-nav-config-editor](../bpmax-nav-config-editor/SKILL.md)
125
166
  - 控件选型:[$form-control-library](../form-control-library/SKILL.md)
126
167
  - 最新配置同步:[$bpmax-config-latest](../bpmax-config-latest/SKILL.md)
168
+ - AI 任务书:[$bpmax-ai-taskbook](../bpmax-ai-taskbook/SKILL.md)
169
+ - 运行态验收:[$bpmax-e2e-flow-test-operator](../bpmax-e2e-flow-test-operator/SKILL.md)
127
170
  - 若流程或表单需求依赖控件能力判断,先用 [$form-control-library](../form-control-library/SKILL.md)。
128
171
  - 若某一步要求浏览器已打开特定页面,而当前页面不对,必须先让用户打开到正确页面,不要盲目继续。
172
+ - `flow-app create` 完成后,必须再执行工作区视角的只读验证:
173
+ - `bpmax-cli flow list --workspace <workspace> --format json`
174
+ - 结果中应能看到新建流程
175
+ - 打开目标工作区创建页确认表单加载
176
+ - 浏览器中表单如果打不开、空白或创建页报错,必须优先检查 Console 和 Network;如果错误指向 `form_template`、控件脚本、字段 schema 或表单模板发布态 ID,优先回到表单模板修复,不要先改流程或导航。
129
177
  - 阶段性完成或被打断时,写一条 `session_state`,保证下轮能从当前编排状态继续。
130
178
 
131
179
  ## 停机点
@@ -134,6 +182,10 @@ description: "用于按 BPMAX 完整流程配置需求先调研、再出计划
134
182
  - 缺少关键浏览器页面,且当前步骤无法脱离页面完成。
135
183
  - 浏览器实时返回与本地镜像或既有假设严重冲突,需要用户确认线上事实为准。
136
184
  - `bpmax-cli config latest pull <env>` 在正常执行和 `--allow-dirty` 重试后仍失败。
185
+ - 新建能力缺失:`config.flow_app.create`、`config.form_template.create`、`config.flow_template.create` 或 `config.workspace_flow.submit` 未授权/未发布到当前 CLI。
186
+ - `flow-app create` 任一步失败,必须停止并输出已创建资源、下一步恢复命令或清理建议;不得继续补 raw API。
187
+ - 工作区绑定回读缺失目标 `(flow_type, flow_key)`。
188
+ - 创建页表单打不开且 Console/Network 指向表单模板错误。
137
189
 
138
190
  ## 输出要求
139
191
  - 在计划阶段,先输出:
@@ -10,7 +10,8 @@
10
10
  6. `bpmax-list-template-editor`
11
11
  7. `bpmax-filter-template-editor`
12
12
  8. `bpmax-nav-config-editor`
13
- 9. `bpmax-config-latest` -> `bpmax-cli config latest pull <env>`
13
+ 9. `bpmax-e2e-flow-test-operator` -> 真实浏览器运行态验收
14
+ 10. `bpmax-config-latest` -> `bpmax-cli config latest pull <env>`
14
15
 
15
16
  ## 范围到 skill 的映射
16
17
  - 流程模板:`bpmax-flow-template-editor`
@@ -20,6 +21,7 @@
20
21
  - 列表模板:`bpmax-list-template-editor`
21
22
  - 筛选器模板:`bpmax-filter-template-editor`
22
23
  - 导航配置:`bpmax-nav-config-editor`
24
+ - 运行态验收:`bpmax-e2e-flow-test-operator`
23
25
  - 控件判断:`form-control-library`
24
26
  - 环境同步:`bpmax-config-latest` -> `bpmax-cli config latest pull <env>`
25
27
 
@@ -58,3 +60,4 @@
58
60
  - 详情回读是否正常
59
61
  - 软删对象是否已排除在业务列表口径之外
60
62
  - 如果上一面仍存在“坏草稿 / 短暂延迟 / 页面与接口不一致”,不要直接推进到下一面。
63
+ - 完整流程配置完成后必须做最终浏览器运行态验收:导航入口可见并点击到目标页、列表真实数据或明确空态原因、操作列进入详情、筛选器可用、创建页能加载并提交到预期环节。