@uipath/skills 1.207.0-preview.2320 → 1.207.0-preview.2325

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 (23) hide show
  1. package/package.json +1 -1
  2. package/skills/uipath-planner/assets/templates/agent-sdd-template.md +3 -3
  3. package/skills/uipath-planner/assets/templates/api-workflow-sdd-template.md +3 -3
  4. package/skills/uipath-planner/assets/templates/bpmn-sdd-template.md +5 -4
  5. package/skills/uipath-planner/assets/templates/case-sdd-task-details-template.md +1 -1
  6. package/skills/uipath-planner/assets/templates/case-sdd-template.md +10 -7
  7. package/skills/uipath-planner/assets/templates/coded-app-sdd-template.md +3 -3
  8. package/skills/uipath-planner/assets/templates/flow-sdd-template.md +8 -4
  9. package/skills/uipath-planner/assets/templates/rpa-sdd-template.md +7 -4
  10. package/skills/uipath-planner/references/author/genome-from-sdd-guide.md +3 -2
  11. package/skills/uipath-planner/references/design/case-product-guide.md +16 -4
  12. package/skills/uipath-planner/references/design/case-review-and-conformance-guide.md +44 -8
  13. package/skills/uipath-planner/references/design/scope-recommendation-guide.md +3 -1
  14. package/skills/uipath-planner/references/design/sdd-writing-guide.md +7 -6
  15. package/skills/uipath-planner/references/edit/edit-guide.md +1 -1
  16. package/skills/uipath-planner/references/shared/genome-format-guide.md +2 -2
  17. package/skills/uipath-planner/references/shared/product-selection-guide.md +1 -1
  18. package/skills/uipath-planner/references/shared/sdd-from-genome-guide.md +1 -1
  19. package/skills/uipath-planner/scripts/case-draft-parity.mjs +133 -0
  20. package/skills/uipath-planner/scripts/case-sdd-check.mjs +319 -0
  21. package/skills/uipath-planner/scripts/check-genome.mjs +50 -6
  22. package/skills/uipath-planner/scripts/scope-check.mjs +38 -0
  23. package/version-manifest.json +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/skills",
3
- "version": "1.207.0-preview.2320",
3
+ "version": "1.207.0-preview.2325",
4
4
  "description": "UiPath agent skills for Claude Code, Codex, Cursor, GitHub Copilot, OpenCode, UiPath Autopilot, Kiro, Windsurf, Antigravity and Devin — RPA, UI automation, UI testing, coded agents/apps/workflows, and troubleshooting. Distributed as the UiPath Claude Code plugin.",
5
5
  "author": {
6
6
  "name": "UiPath"
@@ -23,11 +23,11 @@
23
23
  | **Execution autonomy** | <autonomous \| interactive> |
24
24
  | **Delivery model** | <cloud \| automation-suite <VERSION_IF_KNOWN> \| standalone \| unspecified> |
25
25
  | **SDD scope** | <single-product \| solution> |
26
- | **Solution root SDD** | <PATH_TO_SOLUTION_ROOT_SDD — solution scope only; omit all four solution rows for single-product> |
26
+ | **Project list section** | §9 Project Structure + §3 Tools |
27
+ | **Solution root SDD** | <PATH_TO_SOLUTION_ROOT_SDD — solution scope only; for single-product omit this row and the three below it (Solution ID, Project SDD role, Independently executable) — every other row stays> |
27
28
  | **Solution ID** | <SOLUTION_NAME_KEBAB> |
28
29
  | **Project SDD role** | child |
29
30
  | **Independently executable** | no — built only through the Solution root |
30
- | **Project list section** | §9 Project Structure + §3 Tools |
31
31
  | **Generated by** | uipath-planner |
32
32
  | **Generation date** | <YYYY-MM-DD> |
33
33
  | **Template validation** | <pending \| passed — set to passed when the template check passes, whatever the Status> |
@@ -62,7 +62,7 @@ Constraint Gate outcome. See scope-recommendation-guide.md → Summary block for
62
62
 
63
63
  **Recommendation:** <SINGLE_PRODUCT | SOLUTION(<PRODUCT_1>, ...)>
64
64
  **Delivery model:** <cloud | automation-suite <version-if-known> | standalone | unspecified — assumed cloud [SME REVIEW]>
65
- **Blocked by platform:** <PRODUCT → ALTERNATIVE_APPLIED (matrix | user exclusion), ... | none>
65
+ **Blocked by platform:** <PRODUCT → ALTERNATIVE_APPLIED (matrix | user exclusion), ... — every product the source signals that the gate blocks, the picked design's or not (on Automation Suite older than 2.2510.2 the line always names Maestro — Flow, BPMN and Case — with the alternative the design applies, even when no Maestro project was ever a candidate) | none>
66
66
  **Need profile:** <ONE_LINE_CORE_NEED_AND_TARGET_KPI>
67
67
 
68
68
  ---
@@ -23,11 +23,11 @@
23
23
  | **Execution autonomy** | <autonomous \| interactive> |
24
24
  | **Delivery model** | <cloud \| automation-suite <VERSION_IF_KNOWN> \| standalone \| unspecified> |
25
25
  | **SDD scope** | <single-product \| solution> |
26
- | **Solution root SDD** | <PATH_TO_SOLUTION_ROOT_SDD — solution scope only; omit all four solution rows for single-product> |
26
+ | **Project list section** | §10 Project Structure + §5 Connectors |
27
+ | **Solution root SDD** | <PATH_TO_SOLUTION_ROOT_SDD — solution scope only; for single-product omit this row and the three below it (Solution ID, Project SDD role, Independently executable) — every other row stays> |
27
28
  | **Solution ID** | <SOLUTION_NAME_KEBAB> |
28
29
  | **Project SDD role** | child |
29
30
  | **Independently executable** | no — built only through the Solution root |
30
- | **Project list section** | §10 Project Structure + §5 Connectors |
31
31
  | **Generated by** | uipath-planner |
32
32
  | **Generation date** | <YYYY-MM-DD> |
33
33
  | **Template validation** | <pending \| passed — set to passed when the template check passes, whatever the Status> |
@@ -62,7 +62,7 @@ Constraint Gate outcome. See scope-recommendation-guide.md → Summary block for
62
62
 
63
63
  **Recommendation:** <SINGLE_PRODUCT | SOLUTION(<PRODUCT_1>, ...)>
64
64
  **Delivery model:** <cloud | automation-suite <version-if-known> | standalone | unspecified — assumed cloud [SME REVIEW]>
65
- **Blocked by platform:** <PRODUCT → ALTERNATIVE_APPLIED (matrix | user exclusion), ... | none>
65
+ **Blocked by platform:** <PRODUCT → ALTERNATIVE_APPLIED (matrix | user exclusion), ... — every product the source signals that the gate blocks, the picked design's or not (on Automation Suite older than 2.2510.2 the line always names Maestro — Flow, BPMN and Case — with the alternative the design applies, even when no Maestro project was ever a candidate) | none>
66
66
  **Need profile:** <ONE_LINE_CORE_NEED_AND_TARGET_KPI>
67
67
 
68
68
  ---
@@ -23,11 +23,11 @@
23
23
  | **Execution autonomy** | <autonomous \| interactive> |
24
24
  | **Delivery model** | <cloud \| automation-suite <VERSION_IF_KNOWN> \| standalone \| unspecified> |
25
25
  | **SDD scope** | <single-product \| solution> |
26
- | **Solution root SDD** | <PATH_TO_SOLUTION_ROOT_SDD — solution scope only; omit all four solution rows for single-product> |
26
+ | **Project list section** | §4 Activities Inventory + §9 Integrated Components |
27
+ | **Solution root SDD** | <PATH_TO_SOLUTION_ROOT_SDD — solution scope only; for single-product omit this row and the three below it (Solution ID, Project SDD role, Independently executable) — every other row stays> |
27
28
  | **Solution ID** | <SOLUTION_NAME_KEBAB> |
28
29
  | **Project SDD role** | child |
29
30
  | **Independently executable** | no — built only through the Solution root |
30
- | **Project list section** | §4 Activities Inventory + §9 Integrated Components |
31
31
  | **Generated by** | uipath-planner |
32
32
  | **Generation date** | <YYYY-MM-DD> |
33
33
  | **Template validation** | <pending \| passed — set to passed when the template check passes, whatever the Status> |
@@ -49,7 +49,8 @@ Non-RPA scope: Platform constraints, Scope and the product row.
49
49
  |---|---|---|---|
50
50
  | 1 | **Platform constraints** (Constraint Gate) | <DELIVERY_MODEL; BLOCKED_PRODUCTS_OR_NONE> | <REASON> |
51
51
  | 2 | **Scope** (Level 1) | <SINGLE_PRODUCT_OR_SOLUTION_COMPOSITION> | <REASON> |
52
- | 3 | **Process trigger (start event)** | <MANUAL_START \| TIMER_START \| MESSAGE_START> | <REASON_FROM_PDD> |
52
+ | 3 | **Maestro engine** (Flow vs BPMN) | <BPMN \| Flow> — structures: <EACH_ROW_5_STRUCTURE_THE_PROCESS_NEEDS \| none> | <two or more → BPMN; none → Flow; exactly one → Flow, BPMN offered (product-selection-guide.md § Maestro disambiguation)> |
53
+ | 4 | **Process trigger (start event)** | <MANUAL_START \| TIMER_START \| MESSAGE_START> | <REASON_FROM_PDD> |
53
54
 
54
55
  ---
55
56
 
@@ -62,7 +63,7 @@ Constraint Gate outcome. See scope-recommendation-guide.md → Summary block for
62
63
 
63
64
  **Recommendation:** <SINGLE_PRODUCT | SOLUTION(<PRODUCT_1>, ...)>
64
65
  **Delivery model:** <cloud | automation-suite <version-if-known> | standalone | unspecified — assumed cloud [SME REVIEW]>
65
- **Blocked by platform:** <PRODUCT → ALTERNATIVE_APPLIED (matrix | user exclusion), ... | none>
66
+ **Blocked by platform:** <PRODUCT → ALTERNATIVE_APPLIED (matrix | user exclusion), ... — every product the source signals that the gate blocks, the picked design's or not (on Automation Suite older than 2.2510.2 the line always names Maestro — Flow, BPMN and Case — with the alternative the design applies, even when no Maestro project was ever a candidate) | none>
66
67
  **Need profile:** <ONE_LINE_CORE_NEED_AND_TARGET_KPI>
67
68
 
68
69
  ---
@@ -10,7 +10,7 @@ requires. Cell rules are complete where they stand, as in the main template. -->
10
10
  **Action App ID:** <actionAppId or <UNRESOLVED>>
11
11
  **Deployment Folder:** <folder path or <UNRESOLVED>>
12
12
  **actionType:** <dispatch code or —>
13
- **Recipient:** <Role:name \| User:uuid \| UserGroup:uuid \| Email:addr \| Expression:=vars.id — typed prefix only; none known → drop the cell + high review item>
13
+ **Recipient:** <Role:name \| User:uuid \| UserGroup:uuid \| Email:addr \| Expression:=vars.id — typed prefix only; the task's Tasks row names a persona → `Role:<that Persona>`, never `—`; no persona and no other identity known → drop the cell + high review item> <!-- `Role:` names THIS task's Persona (its Tasks-table row), never a role copied from another task's block. A Persona cell IS the assignment: a human task whose row names a persona is never left `—`. -->
14
14
  **Priority:** <Low \| Medium \| High \| Critical> · **Task Title:** <one-line Action Center prompt> · **Labels:** <csv or —>
15
15
 
16
16
  **Input Schema:**
@@ -35,11 +35,11 @@ the cell is optional, note the provenance, and move on. -->
35
35
  | **Execution autonomy** | <autonomous \| interactive — carry the draft's value when finalizing> |
36
36
  | **Delivery model** | <cloud \| automation-suite <VERSION_IF_KNOWN> \| standalone \| unspecified> |
37
37
  | **SDD scope** | <single-product \| solution> |
38
- | **Solution root SDD** | <PATH_TO_SOLUTION_ROOT_SDD — solution scope only; omit all four solution rows for single-product> |
38
+ | **Project list section** | §2: Stages & Tasks + §4: Integrations |
39
+ | **Solution root SDD** | <PATH_TO_SOLUTION_ROOT_SDD — solution scope only; for single-product omit this row and the three below it (Solution ID, Project SDD role, Independently executable) — every other row stays> |
39
40
  | **Solution ID** | <SOLUTION_NAME_KEBAB> |
40
41
  | **Project SDD role** | child |
41
42
  | **Independently executable** | no — built only through the Solution root |
42
- | **Project list section** | §2: Stages & Tasks + §4: Integrations |
43
43
  | **Generated by** | uipath-planner |
44
44
  | **Generation date** | <YYYY-MM-DD> |
45
45
  | **Template validation** | <pending \| passed — set to passed when the template check passes, whatever the Status. A ROW of this table, never an HTML comment or a bold line: `uipath-maestro-case` and the eval harness both read it here> |
@@ -74,7 +74,7 @@ Durable copy of the Phase 1 Recommended Scope summary and platform constraint ou
74
74
 
75
75
  **Recommendation:** <SINGLE_PRODUCT | SOLUTION(<PRODUCT_1>, ...)>
76
76
  **Delivery model:** <cloud | automation-suite <version-if-known> | standalone | unspecified — assumed cloud [SME REVIEW]>
77
- **Blocked by platform:** <PRODUCT → ALTERNATIVE_APPLIED (matrix | user exclusion), ... | none>
77
+ **Blocked by platform:** <PRODUCT → ALTERNATIVE_APPLIED (matrix | user exclusion), ... — every product the source signals that the gate blocks, the picked design's or not (on Automation Suite older than 2.2510.2 the line always names Maestro — Flow, BPMN and Case — with the alternative the design applies, even when no Maestro project was ever a candidate) | none>
78
78
  **Need profile:** <ONE_LINE_CORE_NEED_AND_TARGET_KPI>
79
79
 
80
80
  ---
@@ -329,12 +329,12 @@ the exact stage display name — never the case name. -->
329
329
 
330
330
  | # | Task Name | Type | Activation Mode | Starts When | Required | Run Only Once | Persona | SLA |
331
331
  |---|-----------|------|-----------------|-------------|----------|---------------|---------|-----|
332
- | 1 | <TASK_NAME> | <action \| process \| agent \| rpa \| api-workflow \| function \| business-rule \| wait-for-timer \| wait-for-connector \| execute-connector-activity \| http-request \| script \| flow-process \| document-extraction \| external-agent \| external-workflow \| case-management> | <sequential \| parallel \| parallel-after-predecessor \| event-triggered \| adhoc \| fan-in \| conditional-gate> | <stage enters, sequential group, after tasks, connector event, etc.> | <Yes \| No> | <Yes \| No> | <persona or —> | <count unit or —> |
332
+ | 1 | <TASK_NAME> | <action \| process \| agent \| rpa \| api-workflow \| function \| business-rule \| wait-for-timer \| wait-for-connector \| execute-connector-activity \| http-request \| script \| flow-process \| document-extraction \| external-agent \| external-workflow \| case-management> | <sequential \| parallel \| parallel-after-predecessor \| event-triggered \| adhoc \| fan-in \| conditional-gate> | <first of the sequential run, after <TASK>, stage enters (parallel only), connector event, etc.> | <Yes \| No> | <Yes \| No> | <persona or —> | <count unit or —> |
333
333
 
334
334
  ##### Task <N>.<M>: <TASK_NAME>
335
335
 
336
336
  **Type:** <exact task type from schema>
337
- **Activation Mode:** <sequential \| parallel \| parallel-after-predecessor \| event-triggered \| adhoc \| fan-in \| conditional-gate>
337
+ **Activation Mode:** <sequential (one after another) \| parallel (starts when the stage enters, nothing before it) \| parallel-after-predecessor (starts together with its siblings after one task completes — "after X" is never plain parallel) \| event-triggered \| adhoc \| fan-in \| conditional-gate>
338
338
  **Design Rationale:** <Why this task type fits the actor/work and why this activation mode fits.>
339
339
  **Description:** <What this task does and why it exists in the case plan.>
340
340
 
@@ -342,7 +342,9 @@ the exact stage display name — never the case name. -->
342
342
 
343
343
  | WHEN | IF | Display Name |
344
344
  |------|-----|--------------|
345
- | <current-stage-entered \| selected-tasks-completed("TaskA", "TaskB") \| wait-for-connector \| api-event("<Business Event Name>") \| adhoc \| runs-sequentially> | <conditionExpression or —> | <label or —> |
345
+ | <runs-sequentially (Activation Mode sequential or parallel-after-predecessor — the first task of the run too) \| current-stage-entered (Activation Mode parallel only) \| selected-tasks-completed("TaskA", "TaskB") \| wait-for-connector \| api-event("<Business Event Name>") \| adhoc> | <conditionExpression or —> | <label or —> |
346
+
347
+ <!-- The WHEN follows the Activation Mode (case-product-guide.md § Sequencing & activation): `sequential` and `parallel-after-predecessor` → `runs-sequentially`, on the FIRST task of the run too (never `current-stage-entered`, though it starts when the stage enters); `parallel` → `current-stage-entered`. -->
346
348
 
347
349
  **Task envelope**
348
350
 
@@ -388,7 +390,8 @@ the exact stage display name — never the case name. -->
388
390
  is required (at most 500 characters) and ships as the role's description. A condition on the
389
391
  persona ("loans > $5M only") is not a permission: write it in Notes and encode it as a guarded
390
392
  cell on the owning task (checklist rule 32). A cell convert cannot map is reported as a
391
- `case-role` Unresolved item, never guessed at. -->
393
+ `case-role` Unresolved item, never guessed at. Trimming a persona's Permissions to these keys
394
+ never moves its tasks: each action task's Recipient stays the task's own Persona. -->
392
395
 
393
396
  | Persona | Scope | Stages | Permissions | Description | Notes |
394
397
  |---------|-------|--------|-------------|-------------|-------|
@@ -23,11 +23,11 @@
23
23
  | **Execution autonomy** | <autonomous \| interactive> |
24
24
  | **Delivery model** | <cloud \| automation-suite <VERSION_IF_KNOWN> \| standalone \| unspecified> |
25
25
  | **SDD scope** | <single-product \| solution> |
26
- | **Solution root SDD** | <PATH_TO_SOLUTION_ROOT_SDD — solution scope only; omit all four solution rows for single-product> |
26
+ | **Project list section** | §10 Project Structure + §9 Integrated Components |
27
+ | **Solution root SDD** | <PATH_TO_SOLUTION_ROOT_SDD — solution scope only; for single-product omit this row and the three below it (Solution ID, Project SDD role, Independently executable) — every other row stays> |
27
28
  | **Solution ID** | <SOLUTION_NAME_KEBAB> |
28
29
  | **Project SDD role** | child |
29
30
  | **Independently executable** | no — built only through the Solution root |
30
- | **Project list section** | §10 Project Structure + §9 Integrated Components |
31
31
  | **Generated by** | uipath-planner |
32
32
  | **Generation date** | <YYYY-MM-DD> |
33
33
  | **Template validation** | <pending \| passed — set to passed when the template check passes, whatever the Status> |
@@ -62,7 +62,7 @@ Constraint Gate outcome. See scope-recommendation-guide.md → Summary block for
62
62
 
63
63
  **Recommendation:** <SINGLE_PRODUCT | SOLUTION(<PRODUCT_1>, ...)>
64
64
  **Delivery model:** <cloud | automation-suite <version-if-known> | standalone | unspecified — assumed cloud [SME REVIEW]>
65
- **Blocked by platform:** <PRODUCT → ALTERNATIVE_APPLIED (matrix | user exclusion), ... | none>
65
+ **Blocked by platform:** <PRODUCT → ALTERNATIVE_APPLIED (matrix | user exclusion), ... — every product the source signals that the gate blocks, the picked design's or not (on Automation Suite older than 2.2510.2 the line always names Maestro — Flow, BPMN and Case — with the alternative the design applies, even when no Maestro project was ever a candidate) | none>
66
66
  **Need profile:** <ONE_LINE_CORE_NEED_AND_TARGET_KPI>
67
67
 
68
68
  ---
@@ -2,6 +2,9 @@
2
2
 
3
3
  > **Template:** Maestro Flow — orchestrates multiple automation types (RPA, agents, apps, API workflows, HITL).
4
4
  > **Phase 2 sections:** §3, §4, §5, §7, §9. **Phase 3 sections:** all others.
5
+ <!-- Template check before filling: list the BPMN structures the process needs — a fork that rejoins
6
+ (both checks must finish), a per-activity timeout, a wait for a message or event, a per-item
7
+ multi-instance loop, a subprocess. Two or more → this is the wrong template: use bpmn-sdd-template.md. -->
5
8
 
6
9
  ---
7
10
 
@@ -23,11 +26,11 @@
23
26
  | **Execution autonomy** | <autonomous \| interactive> |
24
27
  | **Delivery model** | <cloud \| automation-suite <VERSION_IF_KNOWN> \| standalone \| unspecified> |
25
28
  | **SDD scope** | <single-product \| solution> |
26
- | **Solution root SDD** | <PATH_TO_SOLUTION_ROOT_SDD — solution scope only; omit all four solution rows for single-product> |
29
+ | **Project list section** | §3 Nodes Inventory + §7 Integrated Components |
30
+ | **Solution root SDD** | <PATH_TO_SOLUTION_ROOT_SDD — solution scope only; for single-product omit this row and the three below it (Solution ID, Project SDD role, Independently executable) — every other row stays> |
27
31
  | **Solution ID** | <SOLUTION_NAME_KEBAB> |
28
32
  | **Project SDD role** | child |
29
33
  | **Independently executable** | no — built only through the Solution root |
30
- | **Project list section** | §3 Nodes Inventory + §7 Integrated Components |
31
34
  | **Generated by** | uipath-planner |
32
35
  | **Generation date** | <YYYY-MM-DD> |
33
36
  | **Template validation** | <pending \| passed — set to passed when the template check passes, whatever the Status> |
@@ -49,7 +52,8 @@ Non-RPA scope: Platform constraints, Scope and the product row.
49
52
  |---|---|---|---|
50
53
  | 1 | **Platform constraints** (Constraint Gate) | <DELIVERY_MODEL; BLOCKED_PRODUCTS_OR_NONE> | <REASON> |
51
54
  | 2 | **Scope** (Level 1) | <SINGLE_PRODUCT_OR_SOLUTION_COMPOSITION> | <REASON> |
52
- | 3 | **Flow trigger type** | <MANUAL_OR_SCHEDULED_OR_EVENT_OR_HTTP> | <REASON_FROM_PDD> |
55
+ | 3 | **Maestro engine** (Flow vs BPMN) | <BPMN \| Flow> — structures: <EACH_ROW_5_STRUCTURE_THE_PROCESS_NEEDS \| none> | <two or more → BPMN; none → Flow; exactly one → Flow, BPMN offered (product-selection-guide.md § Maestro disambiguation)> |
56
+ | 4 | **Flow trigger type** | <MANUAL_OR_SCHEDULED_OR_EVENT_OR_HTTP> | <REASON_FROM_PDD> |
53
57
 
54
58
  ---
55
59
 
@@ -62,7 +66,7 @@ Constraint Gate outcome. See scope-recommendation-guide.md → Summary block for
62
66
 
63
67
  **Recommendation:** <SINGLE_PRODUCT | SOLUTION(<PRODUCT_1>, ...)>
64
68
  **Delivery model:** <cloud | automation-suite <version-if-known> | standalone | unspecified — assumed cloud [SME REVIEW]>
65
- **Blocked by platform:** <PRODUCT → ALTERNATIVE_APPLIED (matrix | user exclusion), ... | none>
69
+ **Blocked by platform:** <PRODUCT → ALTERNATIVE_APPLIED (matrix | user exclusion), ... — every product the source signals that the gate blocks, the picked design's or not (on Automation Suite older than 2.2510.2 the line always names Maestro — Flow, BPMN and Case — with the alternative the design applies, even when no Maestro project was ever a candidate) | none>
66
70
  **Need profile:** <ONE_LINE_CORE_NEED_AND_TARGET_KPI>
67
71
 
68
72
  ---
@@ -24,11 +24,11 @@
24
24
  | **Execution autonomy** | <autonomous \| interactive> |
25
25
  | **Delivery model** | <cloud \| automation-suite <VERSION_IF_KNOWN> \| standalone \| unspecified> |
26
26
  | **SDD scope** | <single-product \| solution> |
27
- | **Solution root SDD** | <PATH_TO_SOLUTION_ROOT_SDD — solution scope only; omit all four solution rows for single-product> |
27
+ | **Project list section** | <§11 \| §10 + §11 \| Project Inventory> |
28
+ | **Solution root SDD** | <PATH_TO_SOLUTION_ROOT_SDD — solution scope only; for single-product omit this row and the three below it (Solution ID, Project SDD role, Independently executable) — every other row stays> |
28
29
  | **Solution ID** | <SOLUTION_NAME_KEBAB> |
29
30
  | **Project SDD role** | child |
30
31
  | **Independently executable** | no — built only through the Solution root |
31
- | **Project list section** | <§11 \| §10 + §11 \| Project Inventory> |
32
32
  | **Generated by** | uipath-planner |
33
33
  | **Generation date** | <YYYY-MM-DD> |
34
34
  | **Template validation** | <pending \| passed — set to passed when the template check passes, whatever the Status> |
@@ -52,6 +52,7 @@ See sdd-writing-guide.md Step 2 item 3 for the format spec.
52
52
  | 3 | **RPA sub-type** (Level 1.5) | <PROCESS_OR_LIBRARY_OR_TEST_AUTOMATION> | <REASON> |
53
53
  | 4 | **Authoring mode** (Level 2) | <XAML_OR_CODED_OR_HYBRID> | <REASON> |
54
54
  | 5 | **Framework** | <REFRAMEWORK_OR_SEQUENCE> | <REASON> |
55
+ | 6 | **Attendance / Initiation** (§11 Project Mode Decision) | <ATTENDED_OR_UNATTENDED> / <MANUAL_OR_SCHEDULED_OR_QUEUE_TRIGGER_OR_EVENT_OR_API> | <REASON — two separate answers: who runs it, and what starts it> |
55
56
 
56
57
  ---
57
58
 
@@ -64,7 +65,7 @@ Constraint Gate outcome. See scope-recommendation-guide.md → Summary block for
64
65
 
65
66
  **Recommendation:** <SINGLE_PRODUCT | SOLUTION(<PRODUCT_1>, ...)>
66
67
  **Delivery model:** <cloud | automation-suite <version-if-known> | standalone | unspecified — assumed cloud [SME REVIEW]>
67
- **Blocked by platform:** <PRODUCT → ALTERNATIVE_APPLIED (matrix | user exclusion), ... | none>
68
+ **Blocked by platform:** <PRODUCT → ALTERNATIVE_APPLIED (matrix | user exclusion), ... — every product the source signals that the gate blocks, the picked design's or not (on Automation Suite older than 2.2510.2 the line always names Maestro — Flow, BPMN and Case — with the alternative the design applies, even when no Maestro project was ever a candidate) | none>
68
69
  **Need profile:** <ONE_LINE_CORE_NEED_AND_TARGET_KPI>
69
70
 
70
71
  ---
@@ -468,7 +469,9 @@ Sub-type reference:
468
469
 
469
470
  ### Project Mode Decision
470
471
 
471
- <!-- INDEPENDENT dimensions per project — never let one choice silently decide another.
472
+ <!-- Write this table with its ten columns as they stand, one row per project — never a
473
+ Decision / Selected mode / Reason table, which drops Attendance and Initiation.
474
+ INDEPENDENT dimensions per project — never let one choice silently decide another.
472
475
  Sources: Type ← Level 1.5 · Compatibility ← PDD/§16 (Cross-platform when no desktop-UI or Windows-only
473
476
  dependency exists — headless/web/API work; Windows otherwise; legacy only when unavoidable) ·
474
477
  Authoring ← §13 / Level 2 · Attendance + Initiation ← §16 Robot & Runtime (keep §16 Trigger row aligned) ·
@@ -21,11 +21,12 @@ These rows add to the rows of [author-guide.md § Read Plan](author-guide.md) th
21
21
  2. **Read `Execution autonomy` from the Planner Handoff.** It decides how the genome is finished:
22
22
  - **`autonomous`** — no follow-up rounds ([author-guide.md](author-guide.md) Step 6): every gap is written with `*[Inferred]*`, or carried as a Configuration Question with its default. After the review ([author-guide.md](author-guide.md) Step 8), the edits are offered in the closing summary, and the run does not wait for them.
23
23
  - **`interactive`, or no row** — [author-guide.md](author-guide.md) Steps 6 and 8 as written.
24
- 3. **The SDD's products and projects are the genome's.** Every resource the SDD's integrated-components tables mark for the build to create (an IXP model, an agent, an API workflow, a function, a custom connector) is a component of its own; a resource that already exists is a Platform Dependency. Its project list sets the level ([author-guide.md](author-guide.md) Step 2) and the Build With / Components rows; Steps 3–5 never re-select a product the SDD placed. Its delivery model holds for every row. Two projects that are the producer and the consumer of one flow — a dispatcher that adds items to a queue and a performer that works them — are one `uipath-rpa` component: they are the split the SDD chose for that flow ([skill-mapping-guide.md](../shared/skill-mapping-guide.md) rule 3), recorded as item 4 states, never two components. An RPA Master Project is therefore one `uipath-rpa` component: the flows are the ones [transactional-shape-guide.md](../shared/transactional-shape-guide.md) rule 12 finds — a hand-off of the same item to its next stage stays one flow unless a person decides between the stages — and each flow's `Decided:` line names the split and, when the SDD names the sub-projects, their chain in hand-off order under the SDD's project names ([transactional-shape-guide.md](../shared/transactional-shape-guide.md) rule 8: `B, one PO — the SDD §10: Dispatcher → DUPerformer → OutputPerformer`), and the process genome's Deployment lists the SDD's project names, so nothing the SDD decided is lost.
24
+ 3. **The SDD's products and projects are the genome's.** Every resource the SDD's integrated-components tables mark for the build to create (an IXP model, an agent, an API workflow, a function, a custom connector) is a component of its own; a resource that already exists is a Platform Dependency. Its project list sets the level ([author-guide.md](author-guide.md) Step 2) and the Build With / Components rows, counted as the sub-item below says; Steps 3–5 never re-select a product the SDD placed. Its delivery model holds for every row.
25
+ - **A dispatcher and a performer are ONE component.** Two projects that are the producer and the consumer of one flow — a dispatcher that adds items to a queue and a performer that works them — are one `uipath-rpa` component: they are the split the SDD chose for that flow ([skill-mapping-guide.md](../shared/skill-mapping-guide.md) rule 3), recorded as item 4 states, never two components. An SDD whose only projects are such a pair gets a component genome, not a process genome. An RPA Master Project is therefore one `uipath-rpa` component: the flows are the ones [transactional-shape-guide.md](../shared/transactional-shape-guide.md) rule 12 finds — a hand-off of the same item to its next stage stays one flow unless a person decides between the stages — and each flow's `Decided:` line names the split and, when the SDD names the sub-projects, their chain in hand-off order under the SDD's project names ([transactional-shape-guide.md](../shared/transactional-shape-guide.md) rule 8: `B, one PO — the SDD §10: Dispatcher → DUPerformer → OutputPerformer`), and the process genome's Deployment lists the SDD's project names, so nothing the SDD decided is lost.
25
26
  - **A Case Management SDD** (its first section is `## Section 1: Case Definition`) is one component whose Build With is `uipath-maestro-case`. Its Interface names that SDD's path, relative to the genome, as the component's build input: `uipath-genome` hands the SDD to `uipath-maestro-case`, which builds the case from it. The genome restates the case as the SDD designed it and never redesigns it. Standalone, it is a component genome named after the SDD — unless its Section 4 marks resources the build creates (a new agent, API workflow, function or IXP model): each is a component of its own, so the genome is a process genome named after the SDD, the case component beside them. A solution child is one component of the solution's process genome.
26
27
  4. **The SDD's decisions are recorded, not reopened.** The split it chose is each flow's `Decided:` line with the SDD section as its source ([transactional-shape-guide.md](../shared/transactional-shape-guide.md) rule 8): a single project with no queue is A; a dispatcher and a performer project is B; one project that fills and works its own queue is C. The implementation mode, the package versions and the queue design go into the sections that hold them (Build With rationale, Configuration Questions defaults, a process genome's Deployment), so `uipath-genome` takes them as answered. The delivery model stays in the SDD: the genome names no platform.
27
28
  5. **Gaps carry over, marker and all, once.** Every `[SME REVIEW]` or `[DEFAULT]` item of the SDD that touches a section, but a default this item makes a Configuration Question or a fact, is written once — in the one genome file and section its decision lives in, across a process genome and its components — as `*[Inferred: D<n>]*` followed by the item's text with its marker verbatim — `*[Inferred: D<n>]* (SDD [SME REVIEW]: <note>)`, `*[Inferred: D<n>]* (SDD [DEFAULT]: <note>)` — and is an Open Decisions entry ([genome-format-guide.md § Open Decisions](../shared/genome-format-guide.md)): an item of the SDD's Action Required keeps its id when the SDD's items all land in one genome file, and otherwise takes the next number in the file it lands in, matched by what it asks ([open-questions-guide.md](../shared/open-questions-guide.md) Writing Rule 1); any other point takes the next number. [author-guide.md](author-guide.md) Step 6 asks nothing the SDD already left to an SME. Other sections that depend on it name the genome section that holds it. An item that touches no genome section (an SDD-only deployment or test-environment detail) stays in the SDD. An SDD default an operator sets per environment (a host, mailbox, folder, cap, a schedule's time zone) becomes a Configuration Question with that default, never an entry as well: an SDD item of that kind keeps its id as an entry that reads `withdrawn: asked as Configuration Question <n>`, and its mark names the question (`*[Inferred: CQ<n>]* (SDD [SME REVIEW]: <note>)`); one the design fixed (a timeout, an attempt count) is a fact in its step ([genome-format-guide.md](../shared/genome-format-guide.md) § Configuration Questions).
28
- 6. **Apart from the `Genome` handoff row (item 7) and its Action Required section, written again from the genome ([sdd-from-genome-guide.md](../shared/sdd-from-genome-guide.md) item 6), the SDD is never edited.** A contradiction between the SDD and what the genome needs is named when edits are offered ([author-guide.md](author-guide.md) Step 8). Before offering edits, compare the genome with the SDD — every skill the SDD routes work to is in Build With or Components, every resource it names is in Platform Dependencies, and every error behaviour, split and integration agrees — and fix the genome wherever it disagrees.
29
+ 6. **Apart from the `Genome` handoff row (item 7) and its Action Required section, written again from the genome ([sdd-from-genome-guide.md](../shared/sdd-from-genome-guide.md) item 6), the SDD is never edited; for a solution, these two edits go to the root SDD alone and every child SDD is left byte for byte.** A contradiction between the SDD and what the genome needs is named when edits are offered ([author-guide.md](author-guide.md) Step 8). Before offering edits, compare the genome with the SDD — every skill the SDD routes work to is in Build With or Components, every resource it names is in Platform Dependencies, and every error behaviour, split and integration agrees — and fix the genome wherever it disagrees.
29
30
  7. **Name the genome after the SDD and record it in one handoff.**
30
31
  - **A single-product SDD:** `<PROCESS_NAME_KEBAB>-genome.md` beside the SDD.
31
32
  - **A solution SDD** (a root `<SOLUTION_NAME_KEBAB>-solution-sdd.md` and its child SDDs): ONE genome for the whole solution, named after the root — `<SOLUTION_NAME_KEBAB>-genome.md` beside the root SDD. It is a process genome with its component genomes in `<SOLUTION_NAME_KEBAB>-genome/` when Step 2 counts two or more projects, and a component genome otherwise ([genome-format-guide.md § File Naming and Location](../shared/genome-format-guide.md)). Never write one genome per child SDD.
@@ -160,7 +160,7 @@ The case, each stage, and each task move through gates driven by **rules** in di
160
160
  - `wait-for-user` + `Marks Stage Complete: Yes` is legal and canonical for user-routed completion.
161
161
  - `return-to-origin` is completion-only, and its lane is always interrupting.
162
162
 
163
- **`wait-for-user` ↔ `user-selected-stage` pairing.** Validate enforces the pair both ways: a `wait-for-user` exit with no `user-selected-stage` entry anywhere fails with `Stage rule '<name>' has no possible stage options.`; a `user-selected-stage` entry with no `wait-for-user` exit fails with `Stage entry rule '<name>' will never be met.`. `user-selected-stage` is picker exposure — a user choosing the next stage — never deterministic routing. Deterministic rejection, approval, send-back, and SLA routing use decision facts plus guarded entries instead.
163
+ **`wait-for-user` ↔ `user-selected-stage` pairing.** `wait-for-user` is an Exit Type, never a WHEN. Validate enforces the pair both ways: an exit row with Exit Type `wait-for-user` and no `user-selected-stage` entry anywhere fails with `Stage rule '<name>' has no possible stage options.`; a `user-selected-stage` entry with no `wait-for-user` exit fails with `Stage entry rule '<name>' will never be met.`. `user-selected-stage` is picker exposure — a user choosing the next stage — never deterministic routing. Deterministic rejection, approval, send-back, and SLA routing use decision facts plus guarded entries instead.
164
164
 
165
165
  #### Repairing a `user-selected-stage` lane
166
166
 
@@ -172,7 +172,15 @@ Diagnose first; the two repairs are opposites.
172
172
  | Entry is automatic from a decision, event, or SLA | The picker rule itself | Decision-routed |
173
173
  | Nothing either way | Assume person-launched — re-keying on an unstated fact invents a business rule | Person-launched |
174
174
 
175
- **Person-launched.** Give every eligible upstream primary stage a completing exit row `| required-tasks-completed | — | wait-for-user | Yes |` (WHEN, IF, Exit Type, Marks Stage Complete — `wait-for-user` is the Exit Type, never a WHEN) ("any active case" means every primary stage). This REPLACES that stage's existing `required-tasks-completed | exit-only | Yes` row — never a second completion row, never a `Marks Stage Complete: No` row. Add no event, SLA, or decision trigger.
175
+ **Person-launched.** Give every eligible upstream primary stage ("any active case" means every primary stage) this completing exit row. It REPLACES that stage's existing `required-tasks-completed | — | exit-only | Yes` row — one completion row per stage, never a second one, never a `Marks Stage Complete: No` row. Add no event, SLA, or decision trigger.
176
+
177
+ ```markdown
178
+ | WHEN | IF | Exit Type | Marks Stage Complete | Display Name |
179
+ |------|-----|-----------|---------------------|--------------|
180
+ | required-tasks-completed | — | wait-for-user | Yes | — |
181
+ ```
182
+
183
+ The WHEN stays `required-tasks-completed`; only the Exit Type changes. `wait-for-user` is never a WHEN value — `| wait-for-user | — | wait-for-user | Yes |` fails validation.
176
184
 
177
185
  **Decision-routed.** All four edits, or the branch dual-fires or deadlocks:
178
186
 
@@ -190,10 +198,14 @@ Entry shape follows the lane's trigger source:
190
198
  | Lane trigger | Entry shape |
191
199
  |---|---|
192
200
  | A person launches it | `user-selected-stage`, paired with an upstream `wait-for-user` exit |
193
- | External / global event | ONE `wait-for-connector` entry on the destination lane — never duplicated per origin stage |
201
+ | External / global event | ONE `wait-for-connector` entry on the destination lane, `**Interrupting:** Yes` — never duplicated per origin stage, and no origin stage carries an exit row on that event: the interrupting entry leaves whatever stage is active |
194
202
  | SLA response | ONE `sla-status-change` entry row per SLA the lane answers ([Layer 4](case-data-and-time-guide.md#layer-4--time-slas--escalations)) — five phase SLAs into one lane are five rows on that lane, never one WHEN cell joined with `OR` |
195
203
  | Decision / signal divert | The origin stage carries a gated diverting exit — `Marks Stage Complete: No`, WHEN `selected-tasks-completed("<decider task>")`, `IF` on the signal, exit target → the lane — and the origin's completion exit carries the exact inverse `IF`. The lane enters via `selected-stage-exited("<origin>")` + the same `IF`. |
196
204
 
205
+ **Reachability walk — every write, a draft included.** Before the write ends, list each secondary lane with the row that enters it and, for a decision divert, the origin's gated exit: `<lane> ← <entry row> ← <origin exit row>`. A lane with no entry row, or a decision value the design names (reject, decline, withdraw, hold) with no `IF` on that value in an origin exit and a lane entry, is a gap: write the rows now — a reviewer of the draft routes a case only along rows that exist.
206
+
207
+ **A role chosen by a value is the task's Recipient — every write, a draft included.** "Over $5M the Credit Analyst does it, otherwise the Underwriter" is ONE task whose `**Recipient:**` is `=js:vars.<amount> > 5000000 ? "Role:<role above>" : "Role:<role at or below>"` (numeral written out, high side first). A Business Rules row, a Personas note or an entry `IF` (which skips the task on the other side) is not that encoding.
208
+
197
209
  Omitting the diverting exit makes a decision path dual-fire (ungated completion → the next stage AND the lane both enter) or deadlock (gated completion with no alternative exit). Only a `selected-stage-exited` lane entry needs a diverting exit; a `selected-stage-completed("<origin>")` + `IF` lane keys off the origin's normal completion — guard only.
198
210
 
199
211
  Two lanes with identical entry rules (same rule, selectors, and expression) are ambiguous routing — give each a distinct selector or guard. This is a design requirement; validate does not reject the duplicate.
@@ -204,7 +216,7 @@ Task-entry mode is exclusive — one mode, one rule, never combined:
204
216
 
205
217
  | Described timing | Activation Mode token | Entry rule |
206
218
  |---|---|---|
207
- | Ordered run (`then`, `after`, `before`, a dependency) | `sequential` | One `runs-sequentially` row — on EVERY task in the run, including the first |
219
+ | Ordered run (`then`, `after`, `before`, a dependency) | `sequential` | One `runs-sequentially` row — on EVERY task in the run, including the first: it starts when the stage enters, yet its rule is `runs-sequentially`, never `current-stage-entered` |
208
220
  | Independent, starts with the stage | `parallel` | `current-stage-entered` |
209
221
  | Independent siblings after one predecessor | `parallel-after-predecessor` | `runs-sequentially`; the siblings share the next task set |
210
222
  | External callback | `event-triggered` | `wait-for-connector` (or `sla-status-change` for an SLA-started task) |
@@ -36,12 +36,20 @@ When a design was handed over by `uipath-maestro-case` ([sdd-writing-guide.md](s
36
36
 
37
37
  ## Finalizing a Case Draft
38
38
 
39
- A case draft resumed by [sdd-writing-guide.md](sdd-writing-guide.md) Step 2 item 6 keeps every business element; these repairs are the only changes it makes on the way to the final SDD, beside the template's § Validation footer:
39
+ A case draft resumed by [sdd-writing-guide.md](sdd-writing-guide.md) Step 2 item 6 keeps every business element; these repairs are the only changes it makes on the way to the final SDD, beside the template's § Validation footer.
40
+
41
+ Start the final as a copy of the draft (`cp <NAME>.draft.md <NAME>.md`, the draft kept), then upgrade it in place, block by block, with file edits. Never rebuild it by writing ranges of draft lines in chunks: a chunk boundary inside a table silently drops the rows after it. After every scripted rewrite, and before the checklist walk, run
42
+
43
+ ```bash
44
+ node "<SKILL_DIR>/scripts/case-draft-parity.mjs" "<NAME>.draft.md" "<NAME>.md"
45
+ ```
46
+
47
+ (`<SKILL_DIR>` is the folder holding planner's `SKILL.md`). It compares the stages in order with their kinds, the tasks under each stage, the Case Variables rows and every `=js:` expression, finds every comparator + amount policy (repair 3) without its `=js:` cell, and checks each Tasks table row's cell count and each `Role:` Recipient against its task's Persona; each `FAIL:` line is a defect your edits introduced — repair it in place from the draft and run it again until it prints `OK`. Then run `node "<SKILL_DIR>/scripts/case-sdd-check.mjs" "<NAME>.md"` the same way: it finds the template markers a stage or task block lost (`**Design Rationale:**`, `**Activation Mode:**`, `**Entry Condition:**`, `**Task envelope**`), a `**Type:**` outside the task types, and an SLA Response Map row that breaks the template's cell rules. Repairs:
40
48
 
41
49
  1. `user-selected-stage` repair per [case-product-guide.md](case-product-guide.md) § Repairing a `user-selected-stage` lane; wording such as "any active case" means every primary stage.
42
50
  2. Every `=js:` expression in the draft appears verbatim in the output, inside the same owning task or stage block, with its field names, variable references, and output mapping intact — an equivalent-looking shorthand that drops an input, predicate, or intermediate field is a failure, not a simplification.
43
51
  3. Threshold-policy conversion — MANDATORY scan, not optional polish. Scan the draft (descriptions, personas table, rationale) for comparator + amount phrases: `>`, `<`, `≥`, `≤`, `over`, `above`, `under`, `below`, `at least`, `more/less than` next to an amount (`$5M`, `100000`, `L4`). EVERY such policy must also appear in an executable cell of the owning task or stage in the final — prose-only is a render failure:
44
- - A personas row whose draft scope reads `StageX (amount > $N only)` renders in the final as Stages `StageX` and Notes `amount > $N only` — the Stages cell holds exact stage names only, since convert turns it into the role's stage ids — and REQUIRES a matching guarded expression inside a StageX task block, phrased on the HIGH side and assigning the exception role: an owner/recipient cell or entry-condition IF cell containing `=js:vars.amount > N000000 ? "Role:SomeRole" : "Role:DefaultRole"` — the numeral written out (`5000000`, not `$5M`), the role and attribute on the same line. The expression lives in a table cell (Inputs/owner/recipient/WHEN/IF); an `=js:` fragment inside `**Design Rationale:**` or `**Description:**` prose is NOT an encoding and fails the gate.
52
+ - A personas row whose draft scope reads `StageX (amount > $N only)` renders in the final as Stages `StageX` and Notes `amount > $N only` — the Stages cell holds exact stage names only, since convert turns it into the role's stage ids — and REQUIRES a matching guarded expression inside a StageX task block, phrased on the HIGH side and assigning the exception role: the task's `**Recipient:**` cell (the policy picks WHO does the task, so never an entry-condition IF, which skips the task on the other side) containing `=js:vars.amount > N000000 ? "Role:SomeRole" : "Role:DefaultRole"` — the numeral written out (`5000000`, not `$5M`), the role and attribute on the same line. The expression lives in a table cell (Inputs/owner/recipient/WHEN/IF); an `=js:` fragment inside `**Design Rationale:**` or `**Description:**` prose is NOT an encoding and fails the gate.
45
53
  - Reuse an existing variable that carries the attribute; the conversion never adds or renames a task or variable.
46
54
  - Persona prose and Design Rationale alone are not final.
47
55
  4. Secondary-stage task headings normalize to `##### Task S{secondaryStageIndex}.{taskIndex}: {Task Name}`; never keep draft letter prefixes (`R.1`, `W.1`, `CC.1`, `ESC.1`).
@@ -85,6 +93,12 @@ names only what to LOOK AT.
85
93
  `**Connector:**` / `**Trigger / Event:**`; execute-connector-activity / external-agent / external-workflow:
86
94
  `**Connector:**` / `**Operation:**`; wait-for-timer: `**Timer:**` / `**Duration:**`; case-management:
87
95
  `**Child Case:**`; http-request: `**Method:**` / `**URL:**`; script: a ```` ```js ```` fenced function body; document-extraction: `**IXP Deployment:**` / `**Model Name:**`; process / agent / rpa / api-workflow / function / business-rule / flow-process: `**Resolved Resource:**`.
96
+ The `**Activation Mode:**` value, and the Tasks table's Activation Mode cell, is one template literal
97
+ written verbatim — `sequential`, `parallel`, `parallel-after-predecessor`, `event-triggered`, `adhoc`,
98
+ `fan-in`, `conditional-gate`; `Parallel after predecessor` or `Sequential: stage start` is a FAIL. A task that
99
+ starts after another task is never `parallel` — siblings after one task are `parallel-after-predecessor`. The
100
+ Tasks table keeps the template's nine columns. `runs-sequentially` is written bare, never with an
101
+ argument (`runs-sequentially("Collect Fees")` is a FAIL).
88
102
  7. No literal `\n` escape inside block content; `<UNRESOLVED>` is never backtick-wrapped; none of the
89
103
  skill-internal terms (groupOperator, savedFilterTrees, io-binding, auto-mint, originalVar,
90
104
  inputOutputs[]) appears anywhere in the body.
@@ -103,6 +117,10 @@ names only what to LOOK AT.
103
117
  display name; arg 2 is an SLA Title that target declares (the `SLA Title` row of Case Metadata for
104
118
  root; `**SLA Title:**` under the stage's `#### Stage SLA`); every SLA Response Map row whose response is not
105
119
  `notify-only` has its `sla-status-change` row, and every `sla-status-change` row has its Map row.
120
+ A breach entry is the 2-arg form; arg 3, when present, is a display name from that target's SLA table
121
+ (its At-Risk or Breach Escalation Display Name) — a status word (`Breached`, `At-Risk`) is a FAIL. Each
122
+ `#### Stage SLA` holds the template's `**SLA Title:**` line and its `| SLA | Unit | At-Risk | … |` table,
123
+ never `**Duration:**` / `**Breach Response:**` bullet lines.
106
124
  14. Every `selected-stage-completed("X")` / `selected-stage-exited("X")` names a declared stage; every
107
125
  `selected-tasks-completed("T")` names a declared, non-`adhoc` task in the SAME stage.
108
126
  15. No stage's entry row references its own stage.
@@ -115,7 +133,11 @@ names only what to LOOK AT.
115
133
  outside the Buttons tables.
116
134
  Recipients, entry tables
117
135
  20. Every `**Recipient:**` is `—`, `<UNRESOLVED>`, an `=` expression, or carries a typed prefix
118
- (`Role:` / `User:` / `UserGroup:` / `Email:` / `Expression:`).
136
+ (`Role:` / `User:` / `UserGroup:` / `Email:` / `Expression:`), and a `Role:` names the task's own
137
+ Persona from its Tasks-table row. Answer it as a list, one line per action task: `<task> — Persona
138
+ <cell> — Recipient <value>`; any line where the two differ is a FAIL. Recipients written by a script
139
+ are read back this way before the item can PASS — a script that read the wrong column writes one
140
+ role, or a cell value such as `Role:Yes`, into every task.
119
141
  21. Every task `**Entry Condition:**` table, every `#### Stage Entry Conditions` table and every
120
142
  `#### Stage Exit Conditions` table has at least one body row.
121
143
  Structure
@@ -123,7 +145,8 @@ names only what to LOOK AT.
123
145
  23. Case Triggers has at least one row.
124
146
  24. Case Exit Conditions has at least one row with Marks Case Complete `Yes`, and no two rows identical in
125
147
  (WHEN, IF, THEN, Marks).
126
- 25. A `wait-for-user` exit exists if and only if a `user-selected-stage` entry exists.
148
+ 25. An exit row with Exit Type `wait-for-user` exists if and only if a `user-selected-stage` entry exists;
149
+ no WHEN cell holds `wait-for-user`.
127
150
  26. `required-stages-completed` used → some stage declares `**Required for Case Completion:** Yes`;
128
151
  `required-tasks-completed` on a stage → some task envelope in that stage has Required `Yes`.
129
152
  Precedence & liveness
@@ -133,13 +156,23 @@ names only what to LOOK AT.
133
156
  row (Marks `Yes`, IF set) — the exit always wins and the stage never completes.
134
157
  29. The Case-Level SLA and every stage SLA expressed in minutes lie within 15–1000, and no stage SLA
135
158
  exceeds the case-level SLA.
136
- Draft parity (finalizing a draft only)
137
- 30. The ordered stage and task inventory equals the draft's — names verbatim, only letter prefixes renumbered.
159
+ Mechanical gate — the template markers, the task types and the SLA Response Map rows PASS only after `case-sdd-check.mjs` prints `OK`; quote that line
160
+ Draft parity (finalizing a draft only) — items 20, 30, 31 and 32 PASS only after `case-draft-parity.mjs` prints `OK`; quote that line
161
+ 30. The ordered stage and task inventory equals the draft's — names verbatim, only letter prefixes renumbered —
162
+ and every Case Variables row of the draft is in the final with its name and type; count the rows in both.
163
+ Every stage keeps its draft kind: a draft primary stage (`### Stage <N>:`) stays `**Stage Kind:** primary`
164
+ with its completion exit, a secondary stays secondary; list `<stage> — draft kind — final kind`.
165
+ Every task keeps its draft start point: a draft task gated on `selected-tasks-completed("X")` still starts
166
+ after X — siblings after X become `parallel-after-predecessor` with `runs-sequentially`, a lone follower
167
+ `sequential` — never `parallel` / `current-stage-entered`; list `<task> — draft WHEN — final WHEN`.
138
168
  31. Every `=js:` expression in the draft appears verbatim in the final, inside the same owning block.
139
169
  32. Every comparator + amount policy in the draft (`>`, `<`, `≥`, `≤`, or the draft language's words for
140
170
  over / under / at least / more than / less than, next to an amount) is encoded in an executable cell
141
- (owner / recipient / WHEN / IF / Inputs) of the owning task or stage, on the same side of the
142
- comparison — prose in Design Rationale or Description does not count.
171
+ (owner / recipient / WHEN / IF / Inputs) of the owning task or stage — a policy that picks a role goes in
172
+ the `**Recipient:**`, never an entry IF that skips the task — the same policy, with a role that
173
+ applies on one side only written on the high side (`=js:vars.amount > 5000000 ? "Role:<EXCEPTION_ROLE>"
174
+ : "Role:<DEFAULT_ROLE>"`) — prose in Design Rationale, Description, Personas or Notes does not count. The
175
+ PASS quote is the `=js:` cell itself; a quote without `=js:` is a FAIL, whatever it says.
143
176
  33. The draft file still exists beside the final, unrenamed.
144
177
  Modelling completeness
145
178
  34. Every task's `Persona` cell names exactly ONE role — never an either/or (`Underwriter or Credit
@@ -164,3 +197,6 @@ names only what to LOOK AT.
164
197
  declared event is quoted by ≥1 cell. `api-event` stands only in Stage Entry, Stage Exit, Task Entry
165
198
  and Case Exit tables — never in Case Triggers, and never in a task's Entry Conditions that also hold
166
199
  `runs-sequentially`. A Payload cell is a JSON Schema object in one code span, or `—`.
200
+ An event that enters an interrupting secondary stage from any point ("at any point", "any active case")
201
+ is that lane's ONE entry row and no primary stage's exit row: the same `api-event` WHEN in two or more
202
+ primary-stage Stage Exit tables is a FAIL — delete those rows; the interrupting entry leaves the stage.
@@ -87,7 +87,7 @@ Emit this block as the Phase 1 summary content:
87
87
  ## Recommended Scope
88
88
  **Recommendation:** <SINGLE_PRODUCT | SOLUTION(<PRODUCT_1>, <PRODUCT_2>, ...)>
89
89
  **Delivery model:** <cloud | automation-suite <version-if-known> | standalone | unspecified — assumed cloud [SME REVIEW]>
90
- **Blocked by platform:** <PRODUCT → ALTERNATIVE_APPLIED (matrix | user exclusion), ... | none>
90
+ **Blocked by platform:** <PRODUCT → ALTERNATIVE_APPLIED (matrix | user exclusion), ... — every product the source signals that the gate blocks, the picked design's or not (on Automation Suite older than 2.2510.2 the line always names Maestro — Flow, BPMN and Case — with the alternative the design applies, even when no Maestro project was ever a candidate) | none>
91
91
  **Need profile:** <ONE_LINE_CORE_NEED_AND_TARGET_KPI — from design-guide.md Step 3.5>
92
92
  **Reasoning:**
93
93
  - <NEED_FACTOR — determinism / input structure / integration surface / coordination shape / volume / risk / trigger> → <PRODUCT>
@@ -104,6 +104,8 @@ Emit this block as the Phase 1 summary content:
104
104
  **Boundaries named:** <BOUNDARY_PER_SPLIT_PER_RPA_PROCESS_PROJECT_OR_N/A>
105
105
  ```
106
106
 
107
+ **`Blocked by platform:` names every gated product the source signals**, by its matrix name — not only the one the design would have picked. A PDD with a dashboard, an approval orchestration, and an AS 2024.10 constraint lists Coded Apps AND Maestro (Flow / BPMN), each with its alternative. Dropping a blocked product from this line hides the gate outcome; `none` only when no signaled product is blocked. `node "<SKILL_DIR>/scripts/scope-check.mjs" "<SDD_PATH>"` fails an SDD on Automation Suite older than 2.2510.2 whose line does not name Maestro.
108
+
107
109
  **Durable home.** This block is conversation output at the Phase 1 checkpoint, but the `## Recommended Scope` lines (`Recommendation:`, `Delivery model:`, `Blocked by platform:`) must also survive into the SDD — every template hosts a `## Recommended Scope` section between `## Decisions Made` and `## Action Required`, emitted in BOTH execution modes ([sdd-writing-guide.md](sdd-writing-guide.md) Step 2 item 3). Autonomous mode skips the checkpoint presentation, so the SDD copy is the only durable record of the Constraint Gate outcome.
108
110
 
109
111
  ### Confirmation question
@@ -19,7 +19,7 @@ Phase 3 of `design` writes the full SDD to disk incrementally, resolves the SME
19
19
 
20
20
  **Write the file to disk now, before generating any Phase 3 section.** This is an action, not advice: Step 1 does not begin until a file write has created the SDD file (Step 2 item 7 resolves the path and the Solution-scope file set). Do NOT hold the entire SDD in context and write only at the very end.
21
21
 
22
- **A lighter request keeps the template's shape.** A request that limits effort — a draft (`*.draft.md`), a first pass, "a version to review", "keep it compact", "just the outline", "don't polish or validate it yet" — sets how much detail each block carries, never which blocks exist. Write every heading, table and per-item block the product template defines, one block per item it inventories (each project, step, stage, task, gateway, integration), and every trigger, entry, exit and business rule as the executable condition the template asks for; missing detail is shorter prose or an `[SME REVIEW]` marker inside its block. Never merge per-item blocks into one summary table, drop a section because it is thin (one with nothing to record says so), or leave a rule only in prose: every later step — finalize, the template check, the genome — adds detail to the structure the SDD already has and cannot rebuild a structure it never had.
22
+ **A lighter request keeps the template's shape.** A request that limits effort — a draft (`*.draft.md`), a first pass, "a version to review", "keep it compact", "just the outline", "don't polish or validate it yet" — sets how much detail each block carries, never which blocks exist. Write every heading, table and per-item block the product template defines, one block per item it inventories (each project, step, stage, task, gateway, integration), and every trigger, entry, exit and business rule as the executable condition the template asks for; missing detail is shorter prose or an `[SME REVIEW]` marker inside its block. Never merge per-item blocks into one summary table, drop a section because it is thin (one with nothing to record says so), or leave a rule only in prose: every later step — finalize, the template check, the genome — adds detail to the structure the SDD already has and cannot rebuild a structure it never had. A Case Management draft is checked before the turn ends: `node "<SKILL_DIR>/scripts/case-sdd-check.mjs" --draft "<NAME>.draft.md"` prints `OK` — its first line `# SDD — <Case Name>` (never `# SDD Draft — …` or `# <Name> — Solution Design Draft`), `## Section 1: Case Definition` with its `### Case Variables`, `## Section 2: Stages & Tasks`, and a `### Stage <N>: <Name>` block for every primary stage the source names, a `### Secondary Stage: <Name>` block per lane; repair each `FAIL:` line in place and run it again.
23
23
 
24
24
  **First, run the collision check — the skeleton write is the write that can clobber.** Before writing anything, apply the re-run handling in Step 2 item 6: if a target file already exists, resolve it with that structured question (keep / regenerate / resume / write as `-v2-`) and honour the answer here. "Keep the existing SDD and stop" ends `design` with no write at all; "Resume generation" patches the existing draft instead of overwriting it. Only "Regenerate" and the no-file-exists case write a fresh skeleton. Item 6 then has nothing left to ask. A caller's `existing-output: replace` is the answer "Regenerate": ask nothing ([caller-request-guide.md](caller-request-guide.md)).
25
25
 
@@ -114,11 +114,12 @@ This step runs in BOTH Autonomous and Interactive modes — it is a hard blocker
114
114
  - Each "One-sentence reason" is ≤ 20 words and cites the PDD signal or process characteristic that drove the pick.
115
115
  - Add one row for every further decision a guide sends to Decisions Made (a departure from a project shape the PDD names, a source-precedence override).
116
116
  - Row 1 always appears, even when nothing was blocked (`cloud; no products blocked`) — the reviewer must see which platform the architecture assumes.
117
- - For Solution scope, rows 3-5 repeat per RPA project (use a sub-table or one row per project — keep concise).
118
- - For non-RPA scopes (e.g., Single-product Agent), rows 3-5 are replaced by the template's own product row (framework choice, app type, trigger) — never `N/A` rows.
117
+ - RPA scope also carries row 6, **Attendance / Initiation**: who runs the process and what starts it, two answers, copied to §11 Project Mode Decision's Attendance and Initiation columns.
118
+ - For Solution scope, rows 3-6 repeat per RPA project (use a sub-table or one row per project — keep concise).
119
+ - For non-RPA scopes (e.g., Single-product Agent), rows 3-5 are replaced by the template's own product row (framework choice, app type, trigger) — never `N/A` rows. A Flow or BPMN SDD also carries the **Maestro engine** row: the row-5 structures the process needs, counted ([product-selection-guide.md § Maestro disambiguation](../shared/product-selection-guide.md#maestro-disambiguation--bpmn-vs-flow-vs-case)); two or more on a Flow template means the wrong template — rewrite it on the BPMN template.
119
120
  - The block does NOT replace the per-section detail later in the SDD — the product body still carries the full justification in its architecture, stage/task, framework, or project-structure sections. The block is the **scannable index** of those decisions.
120
121
 
121
- In BOTH modes, also emit the `## Recommended Scope` block directly after `## Decisions Made` (directly after the Planner Handoff header when that block is absent — interactive runs): copy the Phase 1 summary's `Recommendation:`, `Delivery model:`, and `Blocked by platform:` lines (see [scope-recommendation-guide.md → Summary block](scope-recommendation-guide.md#summary-block)). Autonomous mode skips the Phase 1 presentation, so this copy is the only durable record of the Constraint Gate outcome.
122
+ In BOTH modes, also emit the `## Recommended Scope` block directly after `## Decisions Made` (directly after the Planner Handoff header when that block is absent — interactive runs): copy the Phase 1 summary's `Recommendation:`, `Delivery model:`, and `Blocked by platform:` lines (see [scope-recommendation-guide.md → Summary block](scope-recommendation-guide.md#summary-block)). Autonomous mode skips the Phase 1 presentation, so this copy is the only durable record of the Constraint Gate outcome. Then run `node "<SKILL_DIR>/scripts/scope-check.mjs" "<SDD_PATH>"` on every SDD file written; a `FAIL:` line is a defect — fix the `Blocked by platform:` line and rerun until it prints `OK`.
122
123
 
123
124
  4. If any `[SME REVIEW]` items remain, add the `## Action Required — SME Review Items` section after the Planner Handoff header (and after the `## Decisions Made` / `## Recommended Scope` blocks if present) and before the product body, before the Table of Contents in every template. It is written in the item form of [open-questions-guide.md](../shared/open-questions-guide.md), one item per decision, as the template's block shows:
124
125
  - each item is numbered `D1`, `D2`, … in the order of the sections it concerns;
@@ -160,7 +161,7 @@ This step runs in BOTH Autonomous and Interactive modes — it is a hard blocker
160
161
 
161
162
  Minimum required H2 headings per template:
162
163
  - **RPA template:** every H2 its Table of Contents lists; §12 Queue Architecture may be omitted only when the design defines or consumes no Orchestrator queue.
163
- - **Case template:** §1 Case Definition, §2 Stages & Tasks, §3 Personas & App Views, §4 Integrations, plus the unnumbered H2s `## Document History`, `## Planner Handoff`, `## Table of Contents`, `## Non-Functional Requirements`, `## Testing Strategy`, `## Next Steps`. Also verify every modeled stage has a `### Stage ...` or `### Secondary Stage ...` block, every modeled task has a `##### Task ...` detail block, and every task detail block contains the exact marker `**Task envelope**` before its Required / Run Only Once / Skip Condition table. Then walk [case-review-and-conformance-guide.md](case-review-and-conformance-guide.md) § SDD Conformance Checklist against the file (items 30–33 only when finalizing a draft); `Template validation: passed` needs every item PASS.
164
+ - **Case template:** §1 Case Definition, §2 Stages & Tasks, §3 Personas & App Views, §4 Integrations, plus the unnumbered H2s `## Document History`, `## Planner Handoff`, `## Table of Contents`, `## Non-Functional Requirements`, `## Testing Strategy`, `## Next Steps`. Also verify every modeled stage has a `### Stage ...` or `### Secondary Stage ...` block, every modeled task has a `##### Task ...` detail block, and every task detail block contains the exact marker `**Task envelope**` before its Required / Run Only Once / Skip Condition table. Run `node "<SKILL_DIR>/scripts/case-sdd-check.mjs" "<NAME>.md"` on the written file (a `*.draft.md` takes `--draft`); each `FAIL:` line is a defect in the file: repair it in place and run it again until it prints `OK`. Then walk [case-review-and-conformance-guide.md](case-review-and-conformance-guide.md) § SDD Conformance Checklist against the file (items 30–33 only when finalizing a draft); `Template validation: passed` needs every item PASS.
164
165
  - **Other templates:** every H2 the template's Table of Contents lists.
165
166
 
166
167
  The SDD's own Table of Contents then lists exactly the H2 sections the SDD has: an omitted conditional section leaves no entry behind.
@@ -219,7 +220,7 @@ An SDD change — a `design` revise (a `revise:` caller request, a design change
219
220
  `[DEFAULT]` and `[SME REVIEW]` are the entire gap vocabulary of an SDD and a plan ([SKILL.md](../../SKILL.md) Critical Rule 6).
220
221
 
221
222
  1. **The exact string is load-bearing.** The `Action Required — SME Review Items` block, the gap counts, the `Status: ready` flip, the genome's carry-over and every reviewer grepping the file find the items by exact match on `[SME REVIEW]` / `[DEFAULT]`.
222
- 2. **Write the marker verbatim, with nothing else inside the brackets.** The note goes *after* the closing bracket: `| UiPath version | [SME REVIEW] not recorded in the PDD |`. Never fold the note inside (`[SME REVIEW — not recorded]`) and never substitute another word (`[PLACEHOLDER]`, `[TBD]`, `[TODO]`, `<fill in>`, `N/A`, prose like "to be confirmed"). A decorated or renamed marker is invisible to every consumer above — the gap silently disappears.
223
+ 2. **Write the marker verbatim, with nothing else inside the brackets.** The note goes *after* the closing bracket: `| UiPath version | [SME REVIEW] not recorded in the PDD |`. Never fold the note inside (`[SME REVIEW — not recorded]`) and never substitute another word (`[PLACEHOLDER]`, `[TBD]`, `[TODO]`, `<fill in>`, an invented `<UPPER_SNAKE>` token such as `<SME_PROVIDED>`, `N/A`, prose like "to be confirmed"). A sample value nobody supplied (test data, a mailbox) is `[SME REVIEW] <what is needed>` or a plainly fictitious example value — never an angle-bracket token, which reads as an unfilled template slot. A decorated or renamed marker is invisible to every consumer above — the gap silently disappears.
223
224
  3. **Carry markers through byte-for-byte when mapping or copying content out of another document** (a source SDD into a client template, a PDD into an SDD, one SDD section into another). Re-wording a marker you did not author destroys a gap someone else recorded. Add new markers for the gaps *you* find; never edit the ones already there. The one exception is a caller's declared `open-item-marker`, which becomes `[SME REVIEW]` ([caller-request-guide.md](caller-request-guide.md)).
224
225
 
225
226
  ## Design Handed Over by a Build Skill
@@ -24,7 +24,7 @@ On a genome with a `Designed in:` line, a change to what the SDD holds — produ
24
24
 
25
25
  | Request | Update |
26
26
  |---|---|
27
- | "The SDD was revised: update the genome" (after a `design` revise, or from the user) | Read the SDD the `Designed in:` line links whole and redo [genome-from-sdd-guide.md](../author/genome-from-sdd-guide.md) items 3–6 against it: every section whose SDD content changed is rewritten, nothing else is. Then take the fingerprint again, over the root and every child SDD it lists for a solution, and rewrite the `Designed in:` line ([genome-format-guide.md § Design Links](../shared/genome-format-guide.md)). A run that follows a `design` revise, or an unattended request, applies the edit without offering it; the closing summary names the sections changed |
27
+ | "The SDD was revised: update the genome" (after a `design` revise, or from the user) | Read the SDD the `Designed in:` line links whole and redo [genome-from-sdd-guide.md](../author/genome-from-sdd-guide.md) items 3–6 against it: every section whose SDD content changed is rewritten, nothing else is. Then take the fingerprint again with `node "<SKILL_DIR>/scripts/sdd-fingerprint.mjs" "<SDD_PATH>"` (never `sha256sum`: the fingerprint leaves out the `Genome` row and covers every child SDD a solution lists), rewrite the `Designed in:` line ([genome-format-guide.md § Design Links](../shared/genome-format-guide.md)), and run `node "<SKILL_DIR>/scripts/check-genome.mjs" <component|process> "<GENOME_MD>" --profile strict` until it prints `OK` — the edit is not done before. A run that follows a `design` revise, or an unattended request, applies the edit without offering it; the closing summary names the sections changed |
28
28
  | "Findings from `uipath-genome`" (from the build's completion report, or the user forwarding it) | Apply each finding where it points: a genome deviation → the step the source contradicts, written as the build followed it unless the user rules otherwise; a retired skill name → the Build With row, from [skill-mapping-guide.md](../shared/skill-mapping-guide.md); a `Not covered` object to build → [extract-guide.md § Partial Re-extraction](../extract/extract-guide.md) |
29
29
  | "Write the SDD" (a genome with no SDD beside it, or one whose SDD the user wants written again) | The SDD from the genome ([sdd-from-genome-guide.md](../shared/sdd-from-genome-guide.md)); nothing in the genome changes |
30
30
  | "Apply the answers" (the user filled in the SDD's Action Required or the readiness file, answered in a reply or an interview ([interview-guide.md](../interview/interview-guide.md)), or `uipath-genome` sent them back) | [§ Applying the Answers](#applying-the-answers) |