bpmax-cli 0.2.1-beta.5 → 0.2.1-beta.50

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 (152) hide show
  1. package/README.md +13 -5
  2. package/dist/bin.js +25216 -12623
  3. package/dist/bin.js.map +1 -1
  4. package/package.json +10 -5
  5. package/scripts/run-source-cli.mjs +121 -0
  6. package/skills/bpmax-ai-taskbook/SKILL.md +2 -0
  7. package/skills/bpmax-api-platform-editor/SKILL.md +24 -31
  8. package/skills/bpmax-api-platform-editor/agents/openai.yaml +2 -2
  9. package/skills/bpmax-api-platform-editor/references/platform-api-map.md +2 -2
  10. package/skills/bpmax-api-platform-editor/references/runtime-workflow.md +3 -3
  11. package/skills/bpmax-approval-matrix/SKILL.md +54 -2
  12. package/skills/bpmax-blueprint-doc-workflow/SKILL.md +87 -0
  13. package/skills/bpmax-blueprint-doc-workflow/agents/openai.yaml +4 -0
  14. package/skills/bpmax-blueprint-doc-workflow/references/blueprint-structure.md +60 -0
  15. package/skills/bpmax-blueprint-doc-workflow/references/per-flow-required-structure.md +98 -0
  16. package/skills/bpmax-blueprint-doc-workflow/references/sample-forbidden-term.xml +12 -0
  17. package/skills/bpmax-blueprint-doc-workflow/references/sample-mermaid-codeblock.xml +12 -0
  18. package/skills/bpmax-blueprint-doc-workflow/references/sample-missing-boundary.xml +10 -0
  19. package/skills/bpmax-blueprint-doc-workflow/references/sample-missing-whiteboard.xml +10 -0
  20. package/skills/bpmax-blueprint-doc-workflow/references/sample-pass.xml +55 -0
  21. package/skills/bpmax-blueprint-doc-workflow/scripts/lint_blueprint_doc.py +257 -0
  22. package/skills/bpmax-bug-reporting/SKILL.md +72 -0
  23. package/skills/bpmax-builder-shared/SKILL.md +1 -0
  24. package/skills/bpmax-builder-shared/configuration-impact-review.md +76 -0
  25. package/skills/bpmax-builder-shared/template_script_hard_rules.py +3 -1
  26. package/skills/bpmax-builder-shared/tests/test_template_script_hard_rules.py +16 -0
  27. package/skills/bpmax-cli/SKILL.md +43 -0
  28. package/skills/bpmax-config-latest/SKILL.md +4 -0
  29. package/skills/bpmax-console-template-editor/SKILL.md +112 -523
  30. package/skills/bpmax-console-template-editor/agents/openai.yaml +2 -2
  31. package/skills/bpmax-console-template-editor/references/full-detail-guide.md +45 -0
  32. package/skills/bpmax-console-template-editor/references/local-temp-workflow.md +13 -12
  33. package/skills/bpmax-console-template-editor/scripts/console_template_editor_common.py +299 -78
  34. package/skills/bpmax-console-template-editor/tests/test_console_template_editor.py +344 -30
  35. package/skills/bpmax-dataset-field-template-editor/SKILL.md +127 -594
  36. package/skills/bpmax-dataset-field-template-editor/references/full-detail-guide.md +570 -0
  37. package/skills/bpmax-dataset-field-template-editor/references/runtime-verified-field-page-shape.md +1 -1
  38. package/skills/bpmax-dataset-field-template-editor/scripts/dataset_field_editor_common.py +11 -77
  39. package/skills/bpmax-dataset-field-template-editor/scripts/export_dataset_field.py +4 -57
  40. package/skills/bpmax-dataset-field-template-editor/scripts/init_create_dataset_field.py +2 -0
  41. package/skills/bpmax-dataset-field-template-editor/scripts/inspect_dataset_field_runtime.py +4 -78
  42. package/skills/bpmax-dataset-field-template-editor/scripts/submit_dataset_field.py +3 -89
  43. package/skills/bpmax-dataset-field-template-editor/tests/test_dataset_field_editor.py +14 -0
  44. package/skills/bpmax-dataset-field-template-editor/tests/test_init_create_dataset_field.py +2 -0
  45. package/skills/bpmax-dataset-template-editor/SKILL.md +116 -778
  46. package/skills/bpmax-dataset-template-editor/references/full-detail-guide.md +753 -0
  47. package/skills/bpmax-dataset-template-editor/references/ui-to-backend-field-map.md +1 -0
  48. package/skills/bpmax-dataset-template-editor/references/work-file-to-submit-mapping.md +2 -2
  49. package/skills/bpmax-dataset-template-editor/scripts/basic_table_audit.py +8 -1
  50. package/skills/bpmax-dataset-template-editor/scripts/dataset_editor_common.py +9 -90
  51. package/skills/bpmax-dataset-template-editor/scripts/export_dataset.py +8 -1
  52. package/skills/bpmax-dataset-template-editor/scripts/resolve_dataset.py +8 -1
  53. package/skills/bpmax-dataset-template-editor/scripts/submit_dataset.py +1 -2
  54. package/skills/bpmax-dataset-template-editor/scripts/verify_dataset_list.py +8 -1
  55. package/skills/bpmax-dataset-template-editor/scripts/verify_publish_health.py +8 -1
  56. package/skills/bpmax-dataset-template-editor/tests/test_dataset_editor.py +6 -40
  57. package/skills/bpmax-e2e-flow-config-orchestrator/SKILL.md +18 -4
  58. package/skills/bpmax-e2e-flow-config-orchestrator/agents/openai.yaml +2 -2
  59. package/skills/bpmax-e2e-flow-config-orchestrator/references/orchestration-matrix.md +13 -9
  60. package/skills/bpmax-e2e-flow-test-operator/SKILL.md +150 -546
  61. package/skills/bpmax-e2e-flow-test-operator/agents/openai.yaml +2 -3
  62. package/skills/bpmax-e2e-flow-test-operator/references/ai-test-suite.md +136 -13
  63. package/skills/bpmax-e2e-flow-test-operator/references/browser-action-dsl.md +85 -0
  64. package/skills/bpmax-e2e-flow-test-operator/references/browser-only-checkpoints.md +6 -5
  65. package/skills/bpmax-e2e-flow-test-operator/references/full-detail-guide.md +576 -0
  66. package/skills/bpmax-e2e-flow-test-operator/references/minimal-test-loop.md +2 -0
  67. package/skills/bpmax-e2e-flow-test-operator/references/negative-sale-api-matrix.md +4 -4
  68. package/skills/bpmax-e2e-flow-test-operator/references/profile-schema.md +1 -1
  69. package/skills/bpmax-e2e-flow-test-operator/references/state-schema.md +3 -1
  70. package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_doc.py +7 -5
  71. package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_state.py +2 -2
  72. package/skills/bpmax-e2e-flow-test-operator/scripts/flow_runner.py +5 -1
  73. package/skills/bpmax-e2e-flow-test-operator/tests/test_negative_sale_api_tools.py +71 -0
  74. package/skills/bpmax-filter-template-editor/SKILL.md +114 -551
  75. package/skills/bpmax-filter-template-editor/references/experience-coverage-matrix.md +18 -18
  76. package/skills/bpmax-filter-template-editor/references/filter-content-schema.md +21 -0
  77. package/skills/bpmax-filter-template-editor/references/filter-request-shape.md +29 -26
  78. package/skills/bpmax-filter-template-editor/references/filter-runtime-patterns.md +19 -2
  79. package/skills/bpmax-filter-template-editor/references/full-detail-guide.md +56 -0
  80. package/skills/bpmax-filter-template-editor/references/runtime-verified-filter-page-shape.md +10 -9
  81. package/skills/bpmax-filter-template-editor/scripts/filter_template_editor_common.py +7 -57
  82. package/skills/bpmax-filter-template-editor/tests/test_filter_template_editor.py +4 -48
  83. package/skills/bpmax-flow/SKILL.md +2 -0
  84. package/skills/bpmax-flow-detail-template-editor/SKILL.md +53 -0
  85. package/skills/bpmax-flow-template-editor/SKILL.md +120 -1084
  86. package/skills/bpmax-flow-template-editor/agents/openai.yaml +2 -2
  87. package/skills/bpmax-flow-template-editor/references/diff-strategy.md +3 -3
  88. package/skills/bpmax-flow-template-editor/references/editor-runtime-vs-draft.md +9 -9
  89. package/skills/bpmax-flow-template-editor/references/flow-template-api-workflow.md +2 -1
  90. package/skills/bpmax-flow-template-editor/references/full-detail-guide.md +1157 -0
  91. package/skills/bpmax-flow-template-editor/references/local-temp-workflow.md +1 -1
  92. package/skills/bpmax-flow-template-editor/references/project-create-runtime-gotchas.md +17 -0
  93. package/skills/bpmax-flow-template-editor/references/requirement-to-node-mapping.md +8 -3
  94. package/skills/bpmax-flow-template-editor/references/runtime-verified-flow-detail-shape.md +7 -7
  95. package/skills/bpmax-flow-template-editor/references/runtime-verified-meta-fields.md +2 -2
  96. package/skills/bpmax-flow-template-editor/references/runtime-verified-node-fields.md +8 -2
  97. package/skills/bpmax-flow-template-editor/references/save-draft-request-shape.md +7 -23
  98. package/skills/bpmax-flow-template-editor/references/work-file-to-submit-mapping.md +1 -1
  99. package/skills/bpmax-flow-template-editor/tests/test_flow_template_editor.py +19 -75
  100. package/skills/bpmax-form-template-editor/SKILL.md +133 -1104
  101. package/skills/bpmax-form-template-editor/agents/openai.yaml +2 -2
  102. package/skills/bpmax-form-template-editor/references/dynamic-field-state.md +167 -0
  103. package/skills/bpmax-form-template-editor/references/form-template-api-workflow.md +51 -51
  104. package/skills/bpmax-form-template-editor/references/full-detail-guide.md +1115 -0
  105. package/skills/bpmax-form-template-editor/references/local-temp-workflow.md +4 -4
  106. package/skills/bpmax-form-template-editor/references/payload-checklist.md +3 -1
  107. package/skills/bpmax-form-template-editor/references/sub-form-patterns.md +6 -0
  108. package/skills/bpmax-form-template-editor/scripts/form_template_editor_common.py +8 -0
  109. package/skills/bpmax-form-template-editor/tests/test_form_template_editor.py +42 -19
  110. package/skills/bpmax-functional-test-design/LICENSE.upstream +24 -0
  111. package/skills/bpmax-functional-test-design/SKILL.md +80 -0
  112. package/skills/bpmax-functional-test-design/agents/openai.yaml +4 -0
  113. package/skills/bpmax-functional-test-design/references/bpmax-test-suite-output.md +95 -0
  114. package/skills/bpmax-functional-test-design/references/decision-table-testing.md +50 -0
  115. package/skills/bpmax-functional-test-design/references/domain-testing.md +43 -0
  116. package/skills/bpmax-functional-test-design/references/state-transition-testing.md +47 -0
  117. package/skills/bpmax-functional-test-design/references/technique-selection.md +38 -0
  118. package/skills/bpmax-functional-test-design/references/use-case-testing.md +55 -0
  119. package/skills/bpmax-group-model-editor/SKILL.md +24 -0
  120. package/skills/bpmax-list-template-editor/SKILL.md +119 -466
  121. package/skills/bpmax-list-template-editor/agents/openai.yaml +2 -2
  122. package/skills/bpmax-list-template-editor/references/content-config-shape.md +16 -4
  123. package/skills/bpmax-list-template-editor/references/full-detail-guide.md +458 -0
  124. package/skills/bpmax-list-template-editor/references/list-template-api-workflow.md +6 -9
  125. package/skills/bpmax-list-template-editor/references/local-temp-workflow.md +1 -1
  126. package/skills/bpmax-list-template-editor/references/special-formats.md +5 -2
  127. package/skills/bpmax-list-template-editor/scripts/list_template_editor_common.py +9 -78
  128. package/skills/bpmax-memory-protocol/SKILL.md +7 -6
  129. package/skills/bpmax-nav-config-editor/SKILL.md +13 -17
  130. package/skills/bpmax-nav-config-editor/agents/openai.yaml +2 -2
  131. package/skills/bpmax-nav-config-editor/references/api-workflow.md +2 -2
  132. package/skills/bpmax-nav-config-editor/references/runtime-probing.md +11 -12
  133. package/skills/bpmax-plugin-config/SKILL.md +20 -4
  134. package/skills/bpmax-project/SKILL.md +37 -1
  135. package/skills/bpmax-project-detail-template-editor/SKILL.md +13 -39
  136. package/skills/bpmax-project-detail-template-editor/agents/openai.yaml +2 -2
  137. package/skills/bpmax-role-editor/SKILL.md +7 -30
  138. package/skills/bpmax-shared/SKILL.md +19 -9
  139. package/skills/bpmax-team-editor/SKILL.md +27 -0
  140. package/skills/bpmax-ui-ux-audit/LICENSE.upstream +23 -0
  141. package/skills/bpmax-ui-ux-audit/SKILL.md +42 -0
  142. package/skills/bpmax-ui-ux-audit/agents/openai.yaml +4 -0
  143. package/skills/bpmax-ui-ux-audit/references/audit-framework.md +39 -0
  144. package/skills/bpmax-ui-ux-audit/references/bpmax-ux-findings.md +56 -0
  145. package/skills/bpmax-user/SKILL.md +33 -1
  146. package/skills/bpmax-user-mock-operator/SKILL.md +20 -48
  147. package/skills/bpmax-user-mock-operator/agents/openai.yaml +2 -2
  148. package/skills/bpmax-user-model-editor/SKILL.md +24 -0
  149. package/skills/form-control-library/references/form-template-submit-schema.md +1 -1
  150. package/skills/bpmax-user-mock-operator/scripts/switch_user_identity.py +0 -37
  151. package/skills/bpmax-user-mock-operator/scripts/user_mock_operator_common.py +0 -136
  152. package/skills/bpmax-user-mock-operator/tests/test_user_mock_operator.py +0 -138
@@ -0,0 +1,98 @@
1
+ # Per-Flow Required Structure
2
+
3
+ Every BPMAX blueprint flow chapter must be independently complete. A reader should be able to configure that flow without hunting through other flow chapters for required fields, forms, writeback, or AI rules.
4
+
5
+ ## Required Sections
6
+
7
+ 1. **业务目标与适用场景**
8
+ - Business problem solved.
9
+ - Entry scenarios.
10
+ - Primary roles.
11
+ - Owning BPMAX flow.
12
+
13
+ 2. **流程模板**
14
+ - Process diagram in a Feishu whiteboard.
15
+ - Start node and creation action/form.
16
+ - Main business states and action nodes only.
17
+ - Each node must be a business-meaningful action/state change handled by a human or AI Agent.
18
+ - Apply Occam's razor: keep the workflow minimal and avoid duplicate or low-value intermediate nodes.
19
+ - Do not model pure system automation as separate nodes; place notifications, child-flow creation, data sync, field copy, and background scripts in automation/writeback notes on the related business node.
20
+ - In a main/end-to-end flow, do not expand the internal steps of child flows. Put each child flow in the relevant main-flow node and use a special visual style to show it is a child flow.
21
+ - Branches and returns in natural business language.
22
+ - Related/external flow links when needed.
23
+
24
+ 3. **开始节点与创建表单**
25
+ - Start node name.
26
+ - Creation form name.
27
+ - Creator role.
28
+ - Initial required fields.
29
+ - Draft and submit behavior.
30
+
31
+ 4. **环节配置说明**
32
+ - Use a table with step/state, responsible role, node form, editable fields, transition, automation, completion/writeback.
33
+ - Current-flow nodes must be business states or business actions, not configuration object names.
34
+ - The responsible role must be a human role or AI Agent for every node; system-only work belongs in the automation column.
35
+
36
+ 5. **表单模板**
37
+ - Use a field table with: field, type, required, source, editable role, validation rule.
38
+ - Include attachments, confirmations, signatures, and conditional visibility where relevant.
39
+ - Only include fields that are meaningful for the form user or AI Agent to view, fill, confirm, or edit.
40
+ - Do not include system-only fields in form templates. Examples that belong in data set/writeback notes instead of forms: `当前阶段` with source `系统写入`, `关联选题子流程` project references created automatically, `关联筹备子流程` project references created automatically, read-only child-flow links, internal relationship IDs, and other fields whose editable role is only `系统`.
41
+
42
+ 6. **流程数据集**
43
+ - Data set purpose.
44
+ - Key fields.
45
+ - Status fields.
46
+ - Relationship fields.
47
+ - Writeback targets.
48
+ - Read-only vs editable rules.
49
+ - System-written state fields, child-flow references, parent-flow references, internal relationship IDs, and other read-only linkage fields should be described here, not in the form template section.
50
+
51
+ 7. **列表/筛选/详情/看板入口**
52
+ - Target users.
53
+ - List columns or cards.
54
+ - Filters.
55
+ - Detail page sections.
56
+ - Dashboard or operational view if applicable.
57
+ - Action buttons.
58
+
59
+ 8. **自动化与 AI/agent**
60
+ - Trigger point.
61
+ - Input data.
62
+ - Output draft/suggestion/card/writeback.
63
+ - Human confirmation role.
64
+ - Exception fallback.
65
+ - Audit log requirements.
66
+
67
+ 9. **办结口径与下游联动**
68
+ - Completion criteria.
69
+ - Final status.
70
+ - Written history/status fields.
71
+ - Downstream flows or views affected.
72
+
73
+ 10. **BPMAX 实现边界**
74
+ - Use exactly these labels:
75
+ - `BPMAX 配置可实现`
76
+ - `配置 + 脚本/API/现有插件`
77
+ - `需定制插件/外部服务`
78
+
79
+ ## Diagram Requirements
80
+
81
+ - The final diagram must be a Feishu whiteboard block.
82
+ - Mermaid code block syntax such as `<pre lang="mermaid">` is not allowed in final docs.
83
+ - Prefer `flowchart TD`.
84
+ - Use quoted labels when labels contain punctuation.
85
+ - Avoid Mermaid decision diamonds for business flow blueprints; represent branches with normal state nodes and edge labels.
86
+ - Every flow diagram must include a start node naming the creation action or creation form.
87
+ - Do not draw standalone nodes for pure automation, such as "send notification", "copy field", "sync data set", "create child flow", "write log", or "call API"; attach them as edge labels or automation notes to the nearest human/AI business node.
88
+ - In main-flow diagrams, draw child flows with a special style instead of their internal nodes. Prefer Mermaid subroutine syntax like `B[["改善筹备子流程"]]` or a distinct class such as `class B childFlow`, then define `classDef childFlow fill:#eef6ff,stroke:#2f6fed,stroke-width:2px,stroke-dasharray: 6 3;`.
89
+
90
+ ## Anti-Patterns
91
+
92
+ - “字段同主流程” without restating the fields needed by this flow.
93
+ - “数据集见公共配置” when the data is flow-owned.
94
+ - “AI 自动确认/自动通过/自动结案/自动认证/自动对账” for key business decisions.
95
+ - A workflow section without whiteboard.
96
+ - A diagram that uses configuration objects as main business states.
97
+ - A diagram that turns background automation into separate business nodes.
98
+ - A workflow with redundant confirmation, transfer, or waiting nodes that do not change business state or require human/AI Agent handling.
@@ -0,0 +1,12 @@
1
+ <title>禁止词示例</title>
2
+ <h1>蓝图定位与目标</h1>
3
+ <h1>BPMAX 实施总规则</h1>
4
+ <h1>总体业务架构</h1>
5
+ <h1>公共支撑配置</h1>
6
+ <h1>流程一:主流程</h1>
7
+ <whiteboard type="mermaid">flowchart TD
8
+ A[开始节点:创建申请表单] --&gt; B[处理]</whiteboard>
9
+ <p>业务目标与适用场景。流程模板。开始节点。创建表单。环节配置。表单模板。流程数据集。列表、筛选、详情、看板、入口。自动化 AI 触发 输入 输出 人工确认 异常兜底。办结口径与下游联动。BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。TODO</p>
10
+ <h1>实现边界</h1>
11
+ <p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
12
+ <h1>验收、风险、待确认事项</h1>
@@ -0,0 +1,12 @@
1
+ <title>代码块流程图示例</title>
2
+ <h1>蓝图定位与目标</h1>
3
+ <h1>BPMAX 实施总规则</h1>
4
+ <h1>总体业务架构</h1>
5
+ <h1>公共支撑配置</h1>
6
+ <h1>流程一:主流程</h1>
7
+ <pre lang="mermaid"><code>flowchart TD
8
+ A --&gt; B</code></pre>
9
+ <p>业务目标与适用场景。流程模板。开始节点。创建表单。环节配置。表单模板。流程数据集。列表、筛选、详情、看板、入口。自动化 AI 触发 输入 输出 人工确认 异常兜底。办结口径与下游联动。BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
10
+ <h1>实现边界</h1>
11
+ <p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
12
+ <h1>验收、风险、待确认事项</h1>
@@ -0,0 +1,10 @@
1
+ <title>缺实现边界示例</title>
2
+ <h1>蓝图定位与目标</h1>
3
+ <h1>BPMAX 实施总规则</h1>
4
+ <h1>总体业务架构</h1>
5
+ <h1>公共支撑配置</h1>
6
+ <h1>流程一:主流程</h1>
7
+ <whiteboard type="mermaid">flowchart TD
8
+ A[开始节点:创建申请表单] --&gt; B[处理]</whiteboard>
9
+ <p>业务目标与适用场景。流程模板。开始节点。创建表单。环节配置。表单模板。流程数据集。列表、筛选、详情、看板、入口。自动化 AI 触发 输入 输出 人工确认 异常兜底。办结口径与下游联动。</p>
10
+ <h1>验收、风险、待确认事项</h1>
@@ -0,0 +1,10 @@
1
+ <title>缺流程图示例</title>
2
+ <h1>蓝图定位与目标</h1>
3
+ <h1>BPMAX 实施总规则</h1>
4
+ <h1>总体业务架构</h1>
5
+ <h1>公共支撑配置</h1>
6
+ <h1>流程一:主流程</h1>
7
+ <p>业务目标与适用场景。流程模板。开始节点。创建表单。环节配置。表单模板。流程数据集。列表、筛选、详情、看板、入口。自动化 AI 触发 输入 输出 人工确认 异常兜底。办结口径与下游联动。BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
8
+ <h1>实现边界</h1>
9
+ <p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
10
+ <h1>验收、风险、待确认事项</h1>
@@ -0,0 +1,55 @@
1
+ <title>示例 BPMAX 蓝图方案</title>
2
+ <h1>1. 蓝图定位与目标</h1>
3
+ <p>示例目标。</p>
4
+ <h1>2. BPMAX 实施总规则</h1>
5
+ <p>流程优先,流程图使用飞书画板。</p>
6
+ <h1>3. 总体业务架构</h1>
7
+ <p>主流程与联动流程。</p>
8
+ <h1>4. 公共支撑配置</h1>
9
+ <p>共享组织、用户模型和自动化日志。</p>
10
+ <h1>5. 流程一:主流程</h1>
11
+ <h2>5.1 业务目标与适用场景</h2>
12
+ <p>业务目标与适用场景。</p>
13
+ <h2>5.2 流程模板</h2>
14
+ <whiteboard type="mermaid">flowchart TD
15
+ A[开始节点:创建申请表单] --&gt; B[处理]</whiteboard>
16
+ <p>开始节点:创建申请表单。创建表单由申请人填写。</p>
17
+ <h2>5.3 环节配置说明</h2>
18
+ <table><tr><th>环节</th><th>角色</th></tr><tr><td>处理</td><td>负责人</td></tr></table>
19
+ <h2>5.4 表单模板</h2>
20
+ <table><tr><th>字段</th><th>类型</th></tr><tr><td>名称</td><td>文本</td></tr></table>
21
+ <h2>5.5 流程数据集</h2>
22
+ <p>流程数据集包含状态、关联字段和写回规则。</p>
23
+ <h2>5.6 列表/筛选/详情/看板入口</h2>
24
+ <p>列表、筛选、详情、看板、入口。</p>
25
+ <h2>5.7 自动化与 AI/agent</h2>
26
+ <p>AI 触发、输入、输出、人工确认、异常兜底。</p>
27
+ <h2>5.8 办结口径与下游联动</h2>
28
+ <p>办结后归档并下游联动。</p>
29
+ <h2>5.9 BPMAX 实现边界</h2>
30
+ <p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
31
+ <h1>6. 流程二:辅助流程</h1>
32
+ <h2>6.1 业务目标与适用场景</h2>
33
+ <p>业务目标与适用场景。</p>
34
+ <h2>6.2 流程模板</h2>
35
+ <whiteboard type="mermaid">flowchart TD
36
+ A[开始节点:创建辅助表单] --&gt; B[办结]</whiteboard>
37
+ <p>开始节点:创建辅助表单。创建表单由管理员填写。</p>
38
+ <h2>6.3 环节配置说明</h2>
39
+ <table><tr><th>环节</th><th>角色</th></tr><tr><td>办结</td><td>管理员</td></tr></table>
40
+ <h2>6.4 表单模板</h2>
41
+ <table><tr><th>字段</th><th>类型</th></tr><tr><td>名称</td><td>文本</td></tr></table>
42
+ <h2>6.5 流程数据集</h2>
43
+ <p>流程数据集包含状态和写回规则。</p>
44
+ <h2>6.6 列表/筛选/详情/看板入口</h2>
45
+ <p>列表、筛选、详情、看板、入口。</p>
46
+ <h2>6.7 自动化与 AI/agent</h2>
47
+ <p>AI 触发、输入、输出、人工确认、异常兜底。</p>
48
+ <h2>6.8 办结口径与下游联动</h2>
49
+ <p>办结口径和下游联动。</p>
50
+ <h2>6.9 BPMAX 实现边界</h2>
51
+ <p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
52
+ <h1>7. BPMAX 可配置能力与需定制能力边界</h1>
53
+ <p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
54
+ <h1>8. 一期验收路径、风险与待确认事项</h1>
55
+ <p>验收、风险、待确认。</p>
@@ -0,0 +1,257 @@
1
+ #!/usr/bin/env python3
2
+ """Lint BPMAX blueprint Feishu Docx fetch output or XML.
3
+
4
+ The checker is intentionally structural. It does not try to prove business
5
+ correctness; it blocks the recurring blueprint failures that make a document
6
+ unusable for BPMAX implementation.
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ import argparse
12
+ import json
13
+ import re
14
+ import sys
15
+ from dataclasses import dataclass, field
16
+ from pathlib import Path
17
+ from typing import Iterable
18
+
19
+
20
+ DEFAULT_FORBID_TERMS = ["TODO", "待补充", "略", "后续完善", "代码块流程图"]
21
+ DEFAULT_REQUIRED_TERMS = [
22
+ "BPMAX 配置可实现",
23
+ "配置 + 脚本/API/现有插件",
24
+ "需定制插件/外部服务",
25
+ ]
26
+ CORE_CHAPTER_TERMS = [
27
+ "蓝图定位与目标",
28
+ "BPMAX 实施总规则",
29
+ "总体业务架构",
30
+ "公共支撑配置",
31
+ "实现边界",
32
+ ]
33
+ ACCEPTANCE_TERMS = ["验收", "风险", "待确认"]
34
+ FLOW_REQUIRED_TERMS = {
35
+ "业务目标与适用场景": ["业务目标与适用场景"],
36
+ "流程模板": ["流程模板"],
37
+ "开始节点": ["开始节点", "开始:", "创建"],
38
+ "创建表单": ["创建表单", "创建环节", "创建申请", "创建或导入", "初始表单"],
39
+ "环节配置": ["环节配置", "环节", "节点配置"],
40
+ "表单模板": ["表单模板", "字段"],
41
+ "流程数据集": ["流程数据集", "数据集", "写回"],
42
+ "视图入口": ["列表", "筛选", "详情", "看板", "入口", "视图"],
43
+ "自动化与 AI/agent": ["自动化", "AI", "agent", "Agent"],
44
+ "办结口径与下游联动": ["办结", "下游联动", "归档", "完成条件"],
45
+ "BPMAX 实现边界": DEFAULT_REQUIRED_TERMS,
46
+ }
47
+ AI_REQUIRED_TERMS = ["触发", "输入", "输出", "人工确认", "异常兜底"]
48
+ AI_FORBIDDEN_PATTERNS = [
49
+ r"AI[^。;\n]{0,30}自动(?:最终)?确认",
50
+ r"AI[^。;\n]{0,30}自动通过",
51
+ r"AI[^。;\n]{0,30}自动结案",
52
+ r"AI[^。;\n]{0,30}自动认证",
53
+ r"AI[^。;\n]{0,30}自动对账",
54
+ ]
55
+
56
+
57
+ @dataclass
58
+ class Finding:
59
+ level: str
60
+ code: str
61
+ message: str
62
+ flow: str | None = None
63
+
64
+
65
+ @dataclass
66
+ class FlowSection:
67
+ title: str
68
+ content: str
69
+ whiteboards: int = 0
70
+ mermaid_code_blocks: int = 0
71
+ missing: list[str] = field(default_factory=list)
72
+
73
+
74
+ def read_content(path: Path) -> str:
75
+ raw = path.read_text(encoding="utf-8")
76
+ stripped = raw.lstrip()
77
+ if stripped.startswith("{"):
78
+ data = json.loads(raw)
79
+ try:
80
+ return data["data"]["document"]["content"]
81
+ except KeyError as exc:
82
+ raise SystemExit(f"JSON input does not look like lark-cli docs +fetch output: missing {exc}") from exc
83
+ return raw
84
+
85
+
86
+ def plain_text(xml: str) -> str:
87
+ text = re.sub(r"<[^>]+>", " ", xml)
88
+ text = text.replace("&lt;", "<").replace("&gt;", ">").replace("&amp;", "&")
89
+ return re.sub(r"\s+", " ", text)
90
+
91
+
92
+ def has_any(text: str, terms: Iterable[str]) -> bool:
93
+ return any(term in text for term in terms)
94
+
95
+
96
+ def contains_forbidden_term(text: str, term: str) -> bool:
97
+ if term == "略":
98
+ return bool(re.search(r"(?<![\u4e00-\u9fffA-Za-z0-9])略(?![\u4e00-\u9fffA-Za-z0-9])", text))
99
+ return term in text
100
+
101
+
102
+ def has_ai_final_decision_violation(text: str, pattern: str) -> bool:
103
+ for match in re.finditer(pattern, text):
104
+ snippet = match.group(0)
105
+ if any(negation in snippet for negation in ["不自动", "不能", "不得", "不会", "不可", "不直接"]):
106
+ continue
107
+ return True
108
+ return False
109
+
110
+
111
+ def extract_title(xml: str) -> str:
112
+ match = re.search(r"<title(?:\s[^>]*)?>(.*?)</title>", xml, re.S)
113
+ return plain_text(match.group(1)).strip() if match else ""
114
+
115
+
116
+ def extract_flows(xml: str) -> list[FlowSection]:
117
+ heading_re = re.compile(r"<h([1-3])[^>]*>(.*?)</h\1>", re.S)
118
+ matches = list(heading_re.finditer(xml))
119
+ flow_matches = []
120
+ for match in matches:
121
+ title = plain_text(match.group(2)).strip()
122
+ if re.search(r"流程[一二三四五六七八九十\d]+[::]", title):
123
+ flow_matches.append((match, title))
124
+
125
+ flows = []
126
+ for index, (match, title) in enumerate(flow_matches):
127
+ start = match.start()
128
+ end = flow_matches[index + 1][0].start() if index + 1 < len(flow_matches) else len(xml)
129
+ content = xml[start:end]
130
+ flows.append(
131
+ FlowSection(
132
+ title=title,
133
+ content=content,
134
+ whiteboards=len(re.findall(r"<whiteboard\b", content)),
135
+ mermaid_code_blocks=len(re.findall(r"<pre[^>]*lang=[\"']mermaid[\"']", content, re.I)),
136
+ )
137
+ )
138
+ return flows
139
+
140
+
141
+ def add_error(findings: list[Finding], code: str, message: str, flow: str | None = None) -> None:
142
+ findings.append(Finding("error", code, message, flow))
143
+
144
+
145
+ def lint(xml: str, require_terms: list[str], forbid_terms: list[str]) -> tuple[list[Finding], list[FlowSection]]:
146
+ findings: list[Finding] = []
147
+ text = plain_text(xml)
148
+
149
+ if not extract_title(xml):
150
+ add_error(findings, "DOC_TITLE_MISSING", "Document must contain a <title> block.")
151
+
152
+ for term in CORE_CHAPTER_TERMS:
153
+ if term not in text:
154
+ add_error(findings, "DOC_CORE_CHAPTER_MISSING", f"Missing core blueprint chapter term: {term}")
155
+ if not any(term in text for term in ACCEPTANCE_TERMS):
156
+ add_error(findings, "DOC_ACCEPTANCE_MISSING", "Missing acceptance/risk/confirmation chapter wording.")
157
+
158
+ for term in require_terms:
159
+ if term not in text:
160
+ add_error(findings, "REQUIRED_TERM_MISSING", f"Required term not found: {term}")
161
+
162
+ for term in forbid_terms:
163
+ if contains_forbidden_term(text, term):
164
+ add_error(findings, "FORBIDDEN_TERM_PRESENT", f"Forbidden term found: {term}")
165
+
166
+ for pattern in AI_FORBIDDEN_PATTERNS:
167
+ if has_ai_final_decision_violation(text, pattern):
168
+ add_error(findings, "AI_AUTO_FINAL_DECISION", f"AI final-decision wording matched pattern: {pattern}")
169
+
170
+ if re.search(r"<pre[^>]*lang=[\"']mermaid[\"']", xml, re.I):
171
+ add_error(findings, "MERMAID_CODE_BLOCK", "Final blueprint must use whiteboard blocks, not Mermaid code blocks.")
172
+
173
+ flows = extract_flows(xml)
174
+ if not flows:
175
+ add_error(findings, "FLOW_SECTION_MISSING", "No flow sections matching 流程X: were found.")
176
+
177
+ for flow in flows:
178
+ flow_text = plain_text(flow.content)
179
+ if flow.whiteboards < 1:
180
+ add_error(findings, "FLOW_WHITEBOARD_MISSING", "Flow section has no <whiteboard> diagram.", flow.title)
181
+ flow.missing.append("whiteboard")
182
+ if flow.mermaid_code_blocks:
183
+ add_error(findings, "FLOW_MERMAID_CODE_BLOCK", "Flow section contains Mermaid code block.", flow.title)
184
+ flow.missing.append("no mermaid code block")
185
+
186
+ for label, terms in FLOW_REQUIRED_TERMS.items():
187
+ if not has_any(flow_text, terms):
188
+ add_error(findings, "FLOW_REQUIRED_CONTENT_MISSING", f"Missing per-flow content: {label}", flow.title)
189
+ flow.missing.append(label)
190
+
191
+ if "AI" in flow_text or "agent" in flow_text or "Agent" in flow_text:
192
+ for term in AI_REQUIRED_TERMS:
193
+ if term not in flow_text:
194
+ add_error(findings, "FLOW_AI_DETAIL_MISSING", f"AI/agent section missing term: {term}", flow.title)
195
+ flow.missing.append(f"AI {term}")
196
+
197
+ return findings, flows
198
+
199
+
200
+ def build_report(findings: list[Finding], flows: list[FlowSection], source: Path) -> dict:
201
+ errors = [f for f in findings if f.level == "error"]
202
+ return {
203
+ "ok": not errors,
204
+ "source": str(source),
205
+ "error_count": len(errors),
206
+ "flow_count": len(flows),
207
+ "flows": [
208
+ {
209
+ "title": flow.title,
210
+ "whiteboards": flow.whiteboards,
211
+ "mermaid_code_blocks": flow.mermaid_code_blocks,
212
+ "missing": flow.missing,
213
+ }
214
+ for flow in flows
215
+ ],
216
+ "findings": [finding.__dict__ for finding in findings],
217
+ }
218
+
219
+
220
+ def main() -> int:
221
+ parser = argparse.ArgumentParser(description="Lint BPMAX blueprint Feishu Docx content.")
222
+ parser.add_argument("--source", required=True, help="Path to lark-cli fetch JSON output or XML content.")
223
+ parser.add_argument("--json-report", help="Optional path to write a JSON lint report.")
224
+ parser.add_argument("--require-term", action="append", default=[], help="Additional required term. Repeatable.")
225
+ parser.add_argument("--forbid-term", action="append", default=[], help="Additional forbidden term. Repeatable.")
226
+ args = parser.parse_args()
227
+
228
+ source = Path(args.source)
229
+ xml = read_content(source)
230
+ require_terms = DEFAULT_REQUIRED_TERMS + args.require_term
231
+ forbid_terms = DEFAULT_FORBID_TERMS + args.forbid_term
232
+ findings, flows = lint(xml, require_terms, forbid_terms)
233
+ report = build_report(findings, flows, source)
234
+
235
+ if args.json_report:
236
+ Path(args.json_report).write_text(json.dumps(report, ensure_ascii=False, indent=2), encoding="utf-8")
237
+
238
+ status = "PASS" if report["ok"] else "FAIL"
239
+ print(f"BPMAX blueprint lint: {status}")
240
+ print(f"Source: {source}")
241
+ print(f"Flows: {report['flow_count']}")
242
+ for flow in report["flows"]:
243
+ missing = ", ".join(flow["missing"]) if flow["missing"] else "none"
244
+ print(f"- {flow['title']}: whiteboards={flow['whiteboards']}, missing={missing}")
245
+ if report["findings"]:
246
+ print("Findings:")
247
+ for finding in report["findings"]:
248
+ prefix = f"[{finding['level']}] {finding['code']}"
249
+ if finding.get("flow"):
250
+ prefix += f" ({finding['flow']})"
251
+ print(f"- {prefix}: {finding['message']}")
252
+
253
+ return 0 if report["ok"] else 1
254
+
255
+
256
+ if __name__ == "__main__":
257
+ sys.exit(main())
@@ -0,0 +1,72 @@
1
+ ---
2
+ name: bpmax-bug-reporting
3
+ version: 1.0.0
4
+ description: Use when a stable bpmax-cli bug, regression, unsafe default, misleading diagnostic, missing lint, or skill/CLI mismatch should be proactively reported to the bpmax-cli GitLab issue tracker.
5
+ metadata:
6
+ requires:
7
+ bins: ["bpmax-cli"]
8
+ ---
9
+
10
+ # BPMAX Bug Reporting
11
+
12
+ Use this skill to proactively report bpmax-cli defects that are stable, reproducible, and actionable. The default target is the `bpmax/bpmax-cli` GitLab project through `bpmax-cli issue report`.
13
+
14
+ ## Trigger
15
+
16
+ Report proactively when current work exposes one of these bpmax-cli-owned problems:
17
+
18
+ - A reproducible CLI crash, regression, wrong exit status, or misleading JSON/error output.
19
+ - A missing or bypassable lint rule that allowed unsafe config, test, skill, or credential behavior.
20
+ - A typed capability, skill instruction, or generated command that disagrees with the implemented CLI surface.
21
+ - A dangerous default that can leak credentials, submit unintended writes, or hide failed verification.
22
+ - A repeated agent workflow failure where the root cause belongs in bpmax-cli or bundled skills, not in customer config.
23
+
24
+ Do not report proactively for customer business configuration issues, temporary environment instability, missing user authorization, one-off dirty-worktree effects, or unverified guesses.
25
+
26
+ ## Draft
27
+
28
+ Write a short Markdown draft first. It must include these sections:
29
+
30
+ ```markdown
31
+ ## 现象
32
+ ## 复现
33
+ ## 期望行为
34
+ ## 实际行为
35
+ ## 影响范围
36
+ ## 已验证排除项
37
+ ## 建议修复方向
38
+ ```
39
+
40
+ Keep the draft actionable. Summarize logs and payloads; do not paste large raw responses. Never include API Key, Authorization, token, password, cookie, verification code, SMS code, phone number, or full raw payloads.
41
+
42
+ ## Lint Gate
43
+
44
+ Run the built-in lint before dry-run or submission:
45
+
46
+ ```bash
47
+ bpmax-cli issue lint --title "<标题>" --description-file <draft.md> --format json
48
+ ```
49
+
50
+ The lint must return `ok: true`. If it fails, fix the draft instead of creating a low-quality issue.
51
+
52
+ ## Dry Run Gate
53
+
54
+ After lint passes, inspect the payload with dry-run:
55
+
56
+ ```bash
57
+ bpmax-cli issue report --title "<标题>" --description-file <draft.md> --label bug --dry-run --format json
58
+ ```
59
+
60
+ Check that the title, description, labels, project, assignee, and confidentiality flag are correct. Confirm that the dry-run output contains no sensitive material.
61
+
62
+ ## Submit
63
+
64
+ Submit only after lint and dry-run are clean:
65
+
66
+ ```bash
67
+ bpmax-cli issue report --title "<标题>" --description-file <draft.md> --label bug --format json
68
+ ```
69
+
70
+ The GitLab token must come from `GITLAB_TOKEN`, `GL_TOKEN`, `PRIVATE_TOKEN`, or a variable named by `--token-env`; never put token text in a command, skill, memory, issue body, test fixture, or source code.
71
+
72
+ After creation, return the GitLab issue URL from `issue.web_url` and mention the lint/dry-run evidence used.
@@ -32,6 +32,7 @@ description: "BPMAX 配置类 skill 的共享规则和脚本库。用于复用
32
32
  - `skill_audit.py`:配置类 skill 静态审计。
33
33
  - `runtime-script-site-matrix.md`:运行时脚本站点矩阵说明。
34
34
  - `runtime-script-template-catalog.md`:模板脚本分类参考。
35
+ - `configuration-impact-review.md`:字段、稳定 key、类型、权限、脚本、来源或模板绑定变化后的跨配置影响审查和下一步建议。
35
36
 
36
37
  ## 验证
37
38
 
@@ -0,0 +1,76 @@
1
+ # 配置变更影响审查
2
+
3
+ 配置对象自己的 lint、build、submit、verify 通过,只能证明该对象配置合法且写入一致,不能证明所有下游引用仍然兼容。字段、模板绑定、数据来源、脚本值形态或页面入口发生变化时,必须补做影响审查。
4
+
5
+ ## 标准命令
6
+
7
+ 使用导出时保存的 raw 基线和修改后的 work 文件运行:
8
+
9
+ ```bash
10
+ bpmax-cli config <domain> impact \
11
+ --raw <raw-file> \
12
+ --work <work-file> \
13
+ --out <impact-report.json> \
14
+ --profile <profile> \
15
+ --format json
16
+ ```
17
+
18
+ 新建配置没有 raw 基线时省略 `--raw`,CLI 会按空基线分析新增标识和潜在引用。
19
+
20
+ CLI 会从当前 BPMAX 配置目录向下扫描 `think_*` 配置,输出:
21
+
22
+ - `changed_identifiers`:新增、删除、改名、类型变化、可见性/可编辑性等行为变化的稳定标识。
23
+ - `references_found`:本地配置镜像中命中的数据集字段、数据集、流程、页面模板、配置脚本等引用。
24
+ - `required_collateral_candidates`:高风险变化命中现有引用时,需要逐项确认的联动修改候选。
25
+ - `recommended_next_steps`:建议继续检查或修改的配置面。
26
+ - `unverified_surfaces`:本地扫描不能证明的线上脚本、插件运行态、真实页面或 E2E 面。
27
+
28
+ `references_found` 只证明“发现引用”,不证明引用一定需要修改;`unverified_surfaces` 也不等于缺陷。Agent 必须结合字段值形态、业务语义和运行态判断,不能机械批量改写。
29
+
30
+ ## 必须执行的变化
31
+
32
+ 以下变化必须在 build 前运行 impact,并把报告纳入 work diff 确认:
33
+
34
+ - 字段或业务 key 新增、删除、改名。
35
+ - 字段类型、值结构、选项值、默认值变化。
36
+ - 隐藏、只读、必填、字段权限、动态条件变化。
37
+ - lambda、校验、联动、查询、格式化或提交脚本变化。
38
+ - 数据集字段来源、关联字段、mapping、`custom_key` 变化。
39
+ - 表单、列表、筛选、详情、看板、导航或环节模板绑定变化。
40
+ - 流程节点、条件路由、owner、抄送、模板引用变化。
41
+
42
+ 纯文案、间距、布局、列宽等确认不改变稳定标识和值语义的展示修改,可以产生 `impact_status=no_identifier_changes`,但仍要保留报告作为“未发生标识变化”的证据。
43
+
44
+ ## 范围与确认
45
+
46
+ 影响报告必须转换为以下交付分类:
47
+
48
+ - `checked-and-compatible`:已检查且无需修改,说明判断依据。
49
+ - `required-collateral`:不修改会导致读取错误、值形态不兼容、页面缺列、条件失效或运行时报错;逐项解释并等待用户确认。
50
+ - `recommended-next-step`:不阻断当前对象提交,但建议后续优化或重新验证。
51
+ - `unverified`:本地配置无法证明,必须依靠线上 readback、真实页面、插件状态或 E2E 验证。
52
+
53
+ 不得因为报告发现引用就擅自修改其它对象,也不得在存在未确认的 `required-collateral` 时继续 build/submit。
54
+
55
+ ## 常见关联面
56
+
57
+ 表单字段变化至少检查:
58
+
59
+ - 数据集字段的 `source_field`、字段类型和返回值形态。
60
+ - 数据集字段关联、处理脚本和 ES mapping。
61
+ - 列表列、筛选器、项目详情、环节详情和看板模块。
62
+ - 流程条件、节点脚本、消息脚本和表单运行时脚本。
63
+ - 正式测试用例、测试数据和真实页面回归。
64
+
65
+ 数据集或数据集字段变化至少检查页面模板、查询脚本、发布/刷新状态和样本数据。流程或模板绑定变化至少检查导航入口、创建页、列表/详情页、节点页面和完整 E2E 链路。
66
+
67
+ ## 最终输出
68
+
69
+ 配置任务结束时必须说明:
70
+
71
+ 1. 改了哪些稳定标识或行为。
72
+ 2. 扫描了哪些配置目录和对象。
73
+ 3. 哪些引用已确认兼容。
74
+ 4. 哪些联动修改已完成或等待确认。
75
+ 5. 哪些面仍未验证。
76
+ 6. 建议用户下一步继续修改或测试什么。
@@ -49,7 +49,9 @@ INVENTORY_AGG_BLOCK_MESSAGE = (
49
49
  SQL_JOIN_PATTERN = re.compile(r"\bselect\b[\s\S]{0,800}\bjoin\b", re.IGNORECASE)
50
50
  ES_QUERY_PATTERN = re.compile(r"raw-es-search|ctx\.\$esQuery", re.IGNORECASE)
51
51
  PROJECT_LIST_PATTERN = re.compile(r"/bpmax/project/list|ESProjectList|esProjectList")
52
- USER_SCOPE_PROJECT_LIST_ALLOW_PATTERN = re.compile(r"bpmax-allow-user-scope-project-list\s*:")
52
+ USER_SCOPE_PROJECT_LIST_ALLOW_PATTERN = re.compile(
53
+ r"bpmax-allow-user-scope-project-list[ \t]*:[ \t]*[^\s\r\n][^\r\n]{2,}"
54
+ )
53
55
  ES_SIZE_PATTERN = re.compile(r"\bsize\s*:\s*(\d{3,})\b")
54
56
  SCRIPT_MATCH_PATTERN = re.compile(r"\.(?:find|filter|some)\s*\(|\.includes\s*\(")
55
57
  FRONTEND_COUNTING_PATTERN = re.compile(r"\b(?:inventoryQty|currentInventory|currentStock|total_count|count)\s*(?:\+\+|\+=\s*1)")
@@ -112,6 +112,22 @@ class TemplateScriptHardRulesTests(unittest.TestCase):
112
112
  self.assertTrue(report["ok"])
113
113
  self.assertEqual(report["findings"], [])
114
114
 
115
+ def test_rejects_empty_user_scope_project_list_waiver(self) -> None:
116
+ report = scan_named_script_surfaces(
117
+ [
118
+ {
119
+ "path": "fields.selector.lambda",
120
+ "script": (
121
+ "// bpmax-allow-user-scope-project-list:\n"
122
+ "return ctx.$axios.post('/bpmax/project/list?page=1', { flow_type: 'flow716' });"
123
+ ),
124
+ }
125
+ ]
126
+ )
127
+
128
+ self.assertFalse(report["ok"])
129
+ self.assertTrue(any(item["rule"] == "project_list_forbidden" for item in report["findings"]))
130
+
115
131
  def test_blocks_root_user_es_project_list_helper(self) -> None:
116
132
  report = scan_named_script_surfaces(
117
133
  [