@uipath/skills 1.200.0 → 1.201.0-preview.433

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 (205) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.cursor-plugin/plugin.json +32 -0
  4. package/CODEOWNERS +25 -4
  5. package/README.md +1 -0
  6. package/assets/skill-status.json +8 -0
  7. package/assets/uip-catalog-snapshot.json +113 -41
  8. package/assets/uipath-icon.png +0 -0
  9. package/commands/install-permissions.md +1 -0
  10. package/package.json +3 -2
  11. package/skills/uipath-admin/SKILL.md +1 -1
  12. package/skills/uipath-admin/references/authorization/permission-catalog.md +61 -1
  13. package/skills/uipath-admin/references/authorization/role-management.md +3 -1
  14. package/skills/uipath-admin/references/diagnose/references/failure-modes.md +29 -4
  15. package/skills/uipath-admin/references/diagnose/references/troubleshooting-guide.md +13 -0
  16. package/skills/uipath-agents/SKILL.md +1 -0
  17. package/skills/uipath-agents/references/coded/capabilities/context-grounding.md +3 -3
  18. package/skills/uipath-agents/references/coded/capabilities/guardrails/guardrails-recommend.md +6 -1
  19. package/skills/uipath-agents/references/coded/capabilities/guardrails/guardrails.md +89 -1
  20. package/skills/uipath-agents/references/coded/embedding-in-flows.md +17 -1
  21. package/skills/uipath-agents/references/coded/frameworks/llamaindex-integration.md +64 -2
  22. package/skills/uipath-agents/references/coded/lifecycle/deployment.md +3 -0
  23. package/skills/uipath-agents/references/coded/lifecycle/environment-variables.md +90 -0
  24. package/skills/uipath-agents/references/coded/lifecycle/file-sync.md +3 -1
  25. package/skills/uipath-agents/references/coded/quickstart.md +10 -6
  26. package/skills/uipath-agents/references/lowcode/capabilities/guardrails/guardrails-recommend.md +20 -5
  27. package/skills/uipath-agents/references/lowcode/capabilities/guardrails/guardrails.md +13 -0
  28. package/skills/uipath-agents/references/lowcode/capabilities/inline-in-flow/inline-in-flow.md +1 -3
  29. package/skills/uipath-api-workflow/references/operating-published-workflows.md +17 -6
  30. package/skills/uipath-automationhub/SKILL.md +58 -0
  31. package/skills/uipath-automationhub/references/api-endpoints.md +140 -0
  32. package/skills/uipath-automationhub/references/get-process.md +69 -0
  33. package/skills/uipath-automationhub/references/publish-process.md +171 -0
  34. package/skills/uipath-coded-apps/SKILL.md +24 -11
  35. package/skills/uipath-coded-apps/references/commands-reference.md +29 -29
  36. package/skills/uipath-coded-apps/references/create-action-app.md +4 -0
  37. package/skills/uipath-coded-apps/references/create-web-app.md +10 -0
  38. package/skills/uipath-coded-apps/references/debug.md +16 -0
  39. package/skills/uipath-coded-apps/references/oauth-client-setup.md +3 -1
  40. package/skills/uipath-coded-apps/references/oauth-scopes.md +39 -4
  41. package/skills/uipath-coded-apps/references/pack-publish-deploy.md +37 -21
  42. package/skills/uipath-coded-apps/references/sdk/conversational-agent.md +2 -0
  43. package/skills/uipath-coded-apps/references/sdk/data-fabric.md +2 -0
  44. package/skills/uipath-coded-apps/references/sdk/orchestrator.md +2 -0
  45. package/skills/uipath-coded-apps/references/widgets/conversational-agent-chat.md +90 -0
  46. package/skills/uipath-coded-apps/references/widgets/datatable.md +97 -0
  47. package/skills/uipath-coded-apps/references/widgets/external-auth.md +97 -0
  48. package/skills/uipath-coded-apps/references/widgets/multi-file-upload.md +98 -0
  49. package/skills/uipath-coded-apps/references/widgets/pdf-viewer.md +122 -0
  50. package/skills/uipath-coded-apps/references/widgets/validation-station.md +1 -1
  51. package/skills/uipath-functions/SKILL.md +11 -0
  52. package/skills/uipath-insights/SKILL.md +52 -247
  53. package/skills/uipath-insights/references/filter-discovery-guide.md +106 -0
  54. package/skills/uipath-insights/references/investigation-playbook-guide.md +24 -16
  55. package/skills/uipath-insights/references/jobs-commands-guide.md +196 -53
  56. package/skills/uipath-ixp/SKILL.md +10 -4
  57. package/skills/uipath-ixp/references/cli-reference.md +59 -5
  58. package/skills/uipath-ixp/references/label-documents-guide.md +12 -5
  59. package/skills/uipath-maestro-bpmn/SKILL.md +27 -9
  60. package/skills/uipath-maestro-bpmn/references/diagnose/references/failure-modes.md +6 -3
  61. package/skills/uipath-maestro-bpmn/references/operate/CAPABILITY.md +1 -1
  62. package/skills/uipath-maestro-bpmn/references/operate/references/ship.md +9 -3
  63. package/skills/uipath-maestro-bpmn/references/registry-workflow.md +1 -1
  64. package/skills/uipath-maestro-bpmn/references/shared/local-metadata-regeneration-guide.md +18 -11
  65. package/skills/uipath-maestro-bpmn/references/structural-bpmn.md +13 -7
  66. package/skills/uipath-maestro-case/SKILL.md +138 -170
  67. package/skills/uipath-maestro-case/references/bindings-and-expressions.md +14 -1
  68. package/skills/uipath-maestro-case/references/bindings-v2-sync.md +25 -1
  69. package/skills/uipath-maestro-case/references/brownfield.md +7 -3
  70. package/skills/uipath-maestro-case/references/case-commands.md +63 -8
  71. package/skills/uipath-maestro-case/references/case-editing-operations.md +11 -8
  72. package/skills/uipath-maestro-case/references/case-schema.md +5 -3
  73. package/skills/uipath-maestro-case/references/case-spec-input-details.md +4 -0
  74. package/skills/uipath-maestro-case/references/connector-integration.md +3 -1
  75. package/skills/uipath-maestro-case/references/connector-trigger-impl.md +236 -0
  76. package/skills/uipath-maestro-case/references/connector-trigger-planning.md +300 -0
  77. package/skills/uipath-maestro-case/references/entry-points-sync.md +2 -0
  78. package/skills/uipath-maestro-case/references/evals/evals.json +33 -40
  79. package/skills/uipath-maestro-case/references/implementation.md +58 -13
  80. package/skills/uipath-maestro-case/references/phased-execution.md +87 -20
  81. package/skills/uipath-maestro-case/references/placeholder-tasks.md +3 -1
  82. package/skills/uipath-maestro-case/references/planning.md +26 -16
  83. package/skills/uipath-maestro-case/references/plugins/case/impl-json.md +2 -5
  84. package/skills/uipath-maestro-case/references/plugins/case/planning.md +3 -1
  85. package/skills/uipath-maestro-case/references/plugins/conditions/case-exit-conditions/impl-json.md +3 -1
  86. package/skills/uipath-maestro-case/references/plugins/conditions/case-exit-conditions/planning.md +5 -3
  87. package/skills/uipath-maestro-case/references/plugins/conditions/stage-entry-conditions/impl-json.md +4 -2
  88. package/skills/uipath-maestro-case/references/plugins/conditions/stage-entry-conditions/planning.md +6 -4
  89. package/skills/uipath-maestro-case/references/plugins/conditions/stage-exit-conditions/impl-json.md +6 -4
  90. package/skills/uipath-maestro-case/references/plugins/conditions/stage-exit-conditions/planning.md +6 -4
  91. package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/impl-json.md +42 -3
  92. package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/planning.md +6 -4
  93. package/skills/uipath-maestro-case/references/plugins/logging/impl-json.md +50 -32
  94. package/skills/uipath-maestro-case/references/plugins/sla/impl-json.md +2 -4
  95. package/skills/uipath-maestro-case/references/plugins/sla/planning.md +3 -1
  96. package/skills/uipath-maestro-case/references/plugins/stages/impl-json.md +1 -4
  97. package/skills/uipath-maestro-case/references/plugins/stages/planning.md +2 -0
  98. package/skills/uipath-maestro-case/references/plugins/tasks/action/impl-json.md +2 -0
  99. package/skills/uipath-maestro-case/references/plugins/tasks/action/planning.md +2 -0
  100. package/skills/uipath-maestro-case/references/plugins/tasks/agent/impl-json.md +2 -0
  101. package/skills/uipath-maestro-case/references/plugins/tasks/agent/planning.md +2 -0
  102. package/skills/uipath-maestro-case/references/plugins/tasks/api-workflow/impl-json.md +2 -0
  103. package/skills/uipath-maestro-case/references/plugins/tasks/api-workflow/planning.md +5 -3
  104. package/skills/uipath-maestro-case/references/plugins/tasks/case-management/impl-json.md +2 -0
  105. package/skills/uipath-maestro-case/references/plugins/tasks/case-management/planning.md +2 -0
  106. package/skills/uipath-maestro-case/references/plugins/tasks/connector-activity/impl-json.md +43 -13
  107. package/skills/uipath-maestro-case/references/plugins/tasks/connector-activity/planning.md +4 -2
  108. package/skills/uipath-maestro-case/references/plugins/tasks/connector-trigger/impl-json.md +10 -7
  109. package/skills/uipath-maestro-case/references/plugins/tasks/connector-trigger/planning.md +5 -3
  110. package/skills/uipath-maestro-case/references/plugins/tasks/create-inline-common.md +3 -1
  111. package/skills/uipath-maestro-case/references/plugins/tasks/process/impl-json.md +2 -0
  112. package/skills/uipath-maestro-case/references/plugins/tasks/process/planning.md +2 -0
  113. package/skills/uipath-maestro-case/references/plugins/tasks/rpa/impl-json.md +2 -0
  114. package/skills/uipath-maestro-case/references/plugins/tasks/rpa/planning.md +2 -0
  115. package/skills/uipath-maestro-case/references/plugins/tasks/wait-for-timer/impl-json.md +2 -0
  116. package/skills/uipath-maestro-case/references/plugins/tasks/wait-for-timer/planning.md +2 -0
  117. package/skills/uipath-maestro-case/references/plugins/triggers/event/impl-json.md +9 -6
  118. package/skills/uipath-maestro-case/references/plugins/triggers/event/planning.md +5 -3
  119. package/skills/uipath-maestro-case/references/plugins/triggers/manual/impl-json.md +1 -4
  120. package/skills/uipath-maestro-case/references/plugins/triggers/manual/planning.md +2 -0
  121. package/skills/uipath-maestro-case/references/plugins/triggers/timer/impl-json.md +1 -4
  122. package/skills/uipath-maestro-case/references/plugins/triggers/timer/planning.md +2 -0
  123. package/skills/uipath-maestro-case/references/plugins/variables/bindings/impl-json.md +3 -1
  124. package/skills/uipath-maestro-case/references/plugins/variables/global-vars/impl-json.md +40 -2
  125. package/skills/uipath-maestro-case/references/plugins/variables/global-vars/planning.md +12 -2
  126. package/skills/uipath-maestro-case/references/plugins/variables/io-binding/impl-json.md +8 -6
  127. package/skills/uipath-maestro-case/references/plugins/variables/io-binding/planning.md +17 -3
  128. package/skills/uipath-maestro-case/references/registry-discovery.md +9 -5
  129. package/skills/uipath-maestro-case/references/sla-response-shapes.md +3 -1
  130. package/skills/uipath-maestro-case/references/troubleshooting-guide.md +2 -0
  131. package/skills/uipath-maestro-case/scripts/audit_plan.py +231 -0
  132. package/skills/uipath-maestro-flow/references/author/CAPABILITY.md +8 -4
  133. package/skills/uipath-maestro-flow/references/author/references/editing-operations-cli.md +5 -3
  134. package/skills/uipath-maestro-flow/references/author/references/editing-operations-json.md +14 -4
  135. package/skills/uipath-maestro-flow/references/author/references/editing-operations.md +3 -3
  136. package/skills/uipath-maestro-flow/references/author/references/greenfield.md +12 -3
  137. package/skills/uipath-maestro-flow/references/author/references/planning-arch.md +17 -13
  138. package/skills/uipath-maestro-flow/references/author/references/planning-impl.md +1 -1
  139. package/skills/uipath-maestro-flow/references/author/references/plugins/agent/impl.md +49 -4
  140. package/skills/uipath-maestro-flow/references/author/references/plugins/connector/impl.md +59 -17
  141. package/skills/uipath-maestro-flow/references/author/references/plugins/connector-trigger/impl.md +3 -3
  142. package/skills/uipath-maestro-flow/references/author/references/plugins/http/impl-connector.md +3 -1
  143. package/skills/uipath-maestro-flow/references/author/references/plugins/http/impl-manual.md +3 -1
  144. package/skills/uipath-maestro-flow/references/author/references/plugins/http/impl.md +5 -2
  145. package/skills/uipath-maestro-flow/references/author/references/plugins/inline-agent/impl.md +31 -16
  146. package/skills/uipath-maestro-flow/references/author/references/plugins/ixp/impl.md +13 -4
  147. package/skills/uipath-maestro-flow/references/author/references/plugins/loop/impl.md +185 -25
  148. package/skills/uipath-maestro-flow/references/author/references/plugins/loop/planning.md +18 -10
  149. package/skills/uipath-maestro-flow/references/author/references/plugins/rpa/impl.md +9 -3
  150. package/skills/uipath-maestro-flow/references/author/references/plugins/terminate/impl.md +6 -3
  151. package/skills/uipath-maestro-flow/references/diagnose/references/failure-modes.md +68 -0
  152. package/skills/uipath-maestro-flow/references/shared/cli-commands.md +2 -1
  153. package/skills/uipath-maestro-flow/references/shared/file-format.md +36 -9
  154. package/skills/uipath-maestro-flow/references/shared/node-output-wiring.md +1 -1
  155. package/skills/uipath-maestro-flow/references/shared/ux-narration-and-todos.md +1 -1
  156. package/skills/uipath-maestro-flow/references/shared/variables-and-expressions.md +77 -20
  157. package/skills/uipath-planner/SKILL.md +30 -12
  158. package/skills/{uipath-maestro-case/assets/templates/sdd-template-examples.md → uipath-planner/assets/templates/case-sdd-examples.md} +18 -32
  159. package/skills/uipath-planner/assets/templates/case-sdd-template.md +289 -309
  160. package/skills/uipath-planner/references/case-design-lane-guide.md +288 -0
  161. package/skills/uipath-planner/references/multi-skill-patterns-guide.md +1 -1
  162. package/skills/uipath-planner/references/package-selection-guide.md +2 -2
  163. package/skills/uipath-planner/references/pdd-driven-lane-guide.md +5 -1
  164. package/skills/uipath-planner/references/product-selection-guide.md +2 -2
  165. package/skills/uipath-planner/references/sdd-generation-guide.md +16 -15
  166. package/skills/uipath-planner/scripts/audit_sdd.py +437 -0
  167. package/skills/uipath-platform/SKILL.md +7 -2
  168. package/skills/uipath-platform/references/data-fabric/choice-sets.md +1 -1
  169. package/skills/uipath-platform/references/data-fabric/data-fabric.md +1 -1
  170. package/skills/uipath-platform/references/data-fabric/entity-schema.md +37 -21
  171. package/skills/uipath-platform/references/data-fabric/file-attachments.md +1 -1
  172. package/skills/uipath-platform/references/guardrails/byo-configurations.md +205 -0
  173. package/skills/uipath-platform/references/traces/feedback.md +4 -2
  174. package/skills/uipath-platform/references/uip-commands.md +2 -2
  175. package/skills/uipath-review/SKILL.md +55 -52
  176. package/skills/uipath-review/references/agents/agent-grading-rubric.md +62 -40
  177. package/skills/uipath-review/references/agents/agents-coded-rules.md +7 -1
  178. package/skills/uipath-review/references/agents/agents-lowcode-rules.md +21 -2
  179. package/skills/uipath-review/references/agents/guardrails/coded-guardrails-review.md +78 -13
  180. package/skills/uipath-review/references/agents/guardrails/guardrails-review.md +11 -4
  181. package/skills/uipath-review/references/architecture-assessment-guide.md +1 -1
  182. package/skills/uipath-review/references/review-workflow-guide.md +19 -10
  183. package/skills/uipath-review/references/rule-catalog-workflow.md +6 -6
  184. package/skills/uipath-review/references/rule-format.md +1 -1
  185. package/skills/uipath-rpa/SKILL.md +1 -1
  186. package/skills/uipath-solution/SKILL.md +4 -4
  187. package/skills/uipath-solution/references/solution-overview.md +7 -2
  188. package/skills/uipath-tasks/SKILL.md +27 -1
  189. package/skills/uipath-tasks/references/task-catalogs.md +79 -0
  190. package/skills/uipath-tasks/references/task-data.md +45 -0
  191. package/skills/uipath-tasks/references/task-metadata.md +69 -0
  192. package/skills/uipath-test/SKILL.md +3 -3
  193. package/skills/uipath-test/references/test-result-report-guide.md +16 -1
  194. package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/ambiguous-selector.md +1 -1
  195. package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/scope-container-wrong-page.md +1 -1
  196. package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/verify-execution-failure.md +2 -2
  197. package/skills/uipath-troubleshoot/references/products/agents/playbooks/guardrail-violation.md +12 -0
  198. package/version-manifest.json +2 -2
  199. package/skills/uipath-maestro-case/assets/templates/sdd-template.md +0 -667
  200. package/skills/uipath-maestro-case/references/connector-trigger-common.md +0 -511
  201. package/skills/uipath-maestro-case/references/phase-0-interview.md +0 -279
  202. package/skills/uipath-maestro-case/references/sdd-generation-rules.md +0 -1026
  203. package/skills/uipath-review/references/agents/agent-common-issues.md +0 -401
  204. package/skills/uipath-review/references/agents/agent-review-checklist.md +0 -379
  205. /package/skills/{uipath-maestro-case → uipath-planner}/assets/templates/sdd-viewer.html +0 -0
@@ -1,15 +1,16 @@
1
- # Solution Design Document — <PROCESS_NAME>
1
+ # SDD — <CASE_NAME>
2
2
 
3
- > **Template:** Case Management — organizes work into stages with tasks, SLA rules, and escalation.
4
- > **Phase 2 sections:** §3, §4, §7, §13, §14, §15. **Phase 3 sections:** all others.
3
+ > Case Definition Blueprint for <CASE_NAME>.
4
+
5
+ <!-- Template instruction: render the case body in the downstream uipath-maestro-case `sdd.md` shape. Do not emit the legacy planner-only case architecture table format. -->
5
6
 
6
7
  ---
7
8
 
8
9
  ## Document History
9
10
 
10
- | Date | Version | Author | Role | Comments |
11
- |---|---|---|---|---|
12
- | <DATE> | 1.0 | <AUTHOR> | Generated by AI Agent | Initial SDD generated from PDD |
11
+ | Version | Date | Author | Change |
12
+ |---|---|---|---|
13
+ | 1.0 | <YYYY-MM-DD> | uipath-planner | Initial case design |
13
14
 
14
15
  ---
15
16
 
@@ -27,35 +28,46 @@
27
28
  | **Solution ID** | <SOLUTION_NAME_KEBAB> |
28
29
  | **Project SDD role** | child |
29
30
  | **Independently executable** | no — Lane A derives tasks only via the Solution root |
30
- | **Project list section** | §15 Project Structure + §14 Integrated Components |
31
- | **Tasks file** | `<CASE_NAME_KEBAB>-tasks.md` |
31
+ | **Project list section** | §2: Stages & Tasks + §4: Integrations |
32
+ | **Tasks file** | `tasks/tasks.md` — the build skill's contract; planner Lane A task derivation writes its own `<CASE_NAME_KEBAB>-tasks.md` per §Next Steps |
32
33
  | **Generated by** | uipath-planner |
33
34
  | **Generation date** | <YYYY-MM-DD> |
34
35
  | **Template validation** | <pending \| passed — set to passed with the ready flip> |
35
36
 
36
37
  ---
37
38
 
39
+ ## Table of Contents
40
+
41
+ 1. [Case Definition](#section-1-case-definition) — Metadata, SLA, Triggers, Exit Conditions, Variables
42
+ 2. [Stages & Tasks](#section-2-stages--tasks)
43
+ - [Stage <N>: <STAGE_NAME>](#stage-n-stage_name) — <N> tasks
44
+ - [Secondary Stage: <SECONDARY_STAGE_NAME>](#secondary-stage-secondary_stage_name) — <N> tasks
45
+ 3. [Personas & App Views](#section-3-personas--app-views) — <N> Personas, Process App Views
46
+ 4. [Integrations](#section-4-integrations) — IS Connectors, API Workflows, Agents, Processes & RPA, Child Cases, External Agents
47
+
48
+ ---
49
+
38
50
  <!--
39
51
  EMIT THIS BLOCK ONLY when Execution autonomy: autonomous.
40
52
  Skip entirely in interactive mode (decisions were checkpoint-reviewed).
41
- See sdd-generation-guide.md Phase 3 Step 2 item 3 for the format spec.
42
- Non-RPA scope: rows collapse to scope + product-specific Level-1.5-equivalent.
53
+ Case-specific rows must preserve the stage/task rationale that Section 2 later stores durably.
43
54
  -->
44
55
  ## Decisions Made
45
56
 
46
- > Autonomous mode picked the architectural decisions below without a user checkpoint. Override by rerunning in Interactive mode or by editing the relevant SDD section.
57
+ > Autonomous mode picked the architectural decisions below without a user checkpoint. Override by rerunning in Interactive mode or by editing the relevant Case Definition Blueprint section.
47
58
 
48
59
  | # | Decision | Picked | One-sentence reason |
49
60
  |---|---|---|---|
50
- | 1 | **Scope** (Level 1) | <SINGLE_PRODUCT_OR_SOLUTION_COMPOSITION> | <REASON> |
51
- | 2 | **Stage model** | <NUMBER_OF_STAGES_AND_LINEAR_OR_BRANCHED> | <REASON_FROM_PDD> |
61
+ | 1 | **Scope** (Level 1) | Case Management | <REASON> |
62
+ | 2 | **Stage model** | <PRIMARY_AND_SECONDARY_STAGE_SHAPE> | <WHY_CASE_LIFECYCLE_FITS> |
63
+ | 3 | **Task classification** | <MIX_OF_ACTION_AGENT_PROCESS_RPA_API_CONNECTOR_TIMER_CHILD_CASE> | <WHY_THE_TASK_TYPES_FIT> |
64
+ | 4 | **Resource resolution posture** | <live-resolved \| portable-intent-with-unresolved-identities> | <WHY> |
52
65
 
53
66
  ---
54
67
 
55
68
  <!--
56
69
  EMIT THIS BLOCK ALWAYS (both execution modes).
57
- Durable copy of the Phase 1 Recommended Scope summary — the SDD record of the
58
- Constraint Gate outcome. See product-selection-guide.md → Summary block for the full format.
70
+ Durable copy of the Phase 1 Recommended Scope summary and platform constraint outcome.
59
71
  -->
60
72
  ## Recommended Scope
61
73
 
@@ -68,8 +80,7 @@ Constraint Gate outcome. See product-selection-guide.md → Summary block for th
68
80
 
69
81
  <!--
70
82
  EMIT THIS BLOCK ONLY when at least one [SME REVIEW] item remains after Step 1.5 resolution.
71
- Skip entirely when no review items are open.
72
- See sdd-generation-guide.md Phase 3 Step 2 item 4 for the format spec.
83
+ Skip entirely when no review items are open. Blocking = yes keeps Planner Handoff Status at draft.
73
84
  -->
74
85
  ## Action Required — SME Review Items
75
86
 
@@ -77,370 +88,365 @@ See sdd-generation-guide.md Phase 3 Step 2 item 4 for the format spec.
77
88
  |---|---|---|---|---|---|
78
89
  | 1 | <SECTION> | <ITEM> | <QUESTION> | <DEFAULT> | <yes/no> |
79
90
 
80
- > These items are marked `[SME REVIEW]` in the document. Default-carried items (Blocking = no) do not block task derivation — the automation is built on the recorded defaults, which must be verified before production sign-off. Any Blocking = yes item keeps the handoff at `Status: draft`.
81
-
82
91
  ---
83
92
 
84
- ## Table of Contents
93
+ ## Section 1: Case Definition
85
94
 
86
- 1. Case Overview
87
- 2. Case Lifecycle Diagram
88
- 3. Stages
89
- 4. Tasks Grid
90
- 5. Entry / Exit Conditions
91
- 6. Business Rules
92
- 7. Data Definitions
93
- 8. SLA Rules
94
- 9. Escalations
95
- 10. Exception Handling
96
- 11. Compliance Constraints
97
- 12. Roles & RACI Matrix
98
- 13. Task Type Registry
99
- 14. Integrated Components
100
- 15. Project Structure
101
- 16. Testing Strategy
102
- 17. Next Steps
95
+ **Purpose:** Top-level case configuration — identity, SLA, triggers, exit conditions, and the complete variable inventory.
103
96
 
104
- ---
97
+ ### Case Metadata
105
98
 
106
- ## 1. Case Overview
99
+ | Property | Value |
100
+ |----------|-------|
101
+ | Case Name | <PascalCase name> |
102
+ | Case Description | <2-3 sentence description of what the case manages> |
103
+ | Case Identifier | Type: <constant \| external>. Constant → Prefix: <2-4 char UPPER prefix>. External → Source: <=vars.<In/InOut variable> \| =js:`expression`> |
104
+ | Priority | Choiceset: <comma-separated values> — Default: <value> |
105
+ | Case-Level SLA | <count> <unit: min/h/d/w/m — minutes bounded 15-1000> |
106
+ | SLA Title | <non-empty root-unique SLA rule title, no `:` — omit this row when Case-Level SLA is —> |
107
+ | SLA Type | <time-based \| condition-based> |
108
+ | Case App | <Enabled \| Disabled> |
109
+ | Task-output passing | <Direct \| Shared> |
110
+ | Case Identifier source | <=metadata.ExternalId (platform-generated — default) \| custom> |
107
111
 
108
- | Field | Value |
109
- |---|---|
110
- | **Case name** | <CASE_NAME> |
111
- | **Objective** | <OBJECTIVE> |
112
- | **Case type** | <CASE_TYPE — invoice case, ticket case, claim case, etc.> |
113
- | **Expected volume** | <CASES_PER_DAY> |
114
- | **Typical case duration** | <DURATION_RANGE> |
115
- | **Maximum case duration** | <HARD_MAX_BEFORE_BREACH> |
116
- | **Source PDD** | <PATH_OR_LINK_TO_PDD> |
112
+ ### Case-Level SLA Escalation Rules
117
113
 
118
- ### In Scope
114
+ **Design Rationale:** <Why this target, at-risk threshold, recipients, and breach behavior fit the case requirement; name any interrupting secondary stage entered through `sla-status-change`.>
119
115
 
120
- - <ACTIVITY_1>
116
+ | SLA Status | Threshold | Action | Display Name |
117
+ |------------|-----------|--------|--------------|
118
+ | At-Risk | <percentage>% of SLA duration | Notify: <recipient or group> | <non-empty root-unique escalation title, no `:`> |
119
+ | Breached | 100% of SLA duration | Notify: <recipient or group> | <non-empty root-unique escalation title, no `:`> |
121
120
 
122
- ### Out of Scope
121
+ ### Variable SLA Rules
123
122
 
124
- - <ACTIVITY_1>
123
+ <!-- Include this table only if SLA Type is condition-based. Omit the section body or write `> None.` when not used. -->
125
124
 
126
- ### Assumptions
125
+ | Expression | SLA | Unit |
126
+ |------------|-----|------|
127
+ | <conditionExpression evaluated against case variables> | <count> | <min \| h \| d \| w \| m> |
127
128
 
128
- <!-- Assumptions the design relies on. Verify before build; promote to [SME REVIEW] if unconfirmed. -->
129
+ ### Case Triggers
129
130
 
130
- - <ASSUMPTION_1>
131
- - <ASSUMPTION_2>
132
- - <ASSUMPTION_3>
131
+ <!-- Trigger mapping into variables is declared in Case Variables with sourceTriggers/sourceFields, not here. T01 is reserved for the case file; number runtime triggers from T02.
132
+ `Manual` is author shorthand — a manual trigger has no serviceType in the generated JSON (the on-disk serviceType enum is `None` / `Intsvc.EventTrigger` / `timer`; the SDD's `Intsvc.TimerTrigger` maps to on-disk `timer`; never write `serviceType: "Manual"`).
133
+ Tenant object starts are still event triggers: a case that starts when a tenant case-entity / data-object record is created authors `Intsvc.EventTrigger` with that object name as Source — never downgrade to `Manual` because the object is not provisioned; unresolved event triggers survive as placeholders. -->
133
134
 
134
- ---
135
+ | T# | Trigger Type | Source | Configuration |
136
+ |----|-------------|--------|---------------|
137
+ | T02 | <Manual \| Intsvc.EventTrigger \| Intsvc.TimerTrigger> | <source system, connector, object, or Manual> | <business event, timer cadence, filter intent, or N/A> |
135
138
 
136
- ## 2. Case Lifecycle Diagram
139
+ ### Case Exit Conditions
137
140
 
138
- ```mermaid
139
- flowchart LR
140
- Start([New Case]) --> S1[Stage 1: <STAGE_NAME>]
141
- S1 --> S2[Stage 2: <STAGE_NAME>]
142
- S2 --> Decision{<CONDITION>}
143
- Decision -->|approved| S3[Stage 3: <STAGE_NAME>]
144
- Decision -->|rejected| Closed([Closed — Rejected])
145
- S3 --> Completed([Completed])
146
- ```
141
+ <!-- WHEN + Marks Case Complete pairing is schema-constrained: Marks Case Complete = Yes normally uses `required-stages-completed`; selected-stage rules are for non-completing exits. -->
147
142
 
148
- ---
143
+ | WHEN | IF | THEN | Marks Case Complete | Display Name |
144
+ |------|-----|------|---------------------|--------------|
145
+ | required-stages-completed | — | Case exited | Yes | — |
146
+
147
+ ### Case Variables
149
148
 
150
- ## 3. Stages
149
+ <!--
150
+ Only include In/Out arguments, trigger-payload Variables, and true case-level state read by conditions or reused by multiple consumers.
151
+ Do not mint relay variables for one upstream task output consumed once downstream; bind those directly with `<- "Stage"."Task".out` or `vars.$xref('Stage','Task','out')`.
152
+ Every row must have Category.
153
+ -->
151
154
 
152
- <!-- Stages are BPMN-style phases in the case lifecycle. Each has entry/exit conditions and tasks. -->
155
+ | Name | Category | Type | sourceTriggers | sourceFields | Default | Description |
156
+ |------|----------|------|----------------|--------------|---------|-------------|
157
+ | <camelCase name> | <In \| Out \| Variable> | <string \| integer \| float \| double \| boolean \| datetime \| date \| jsonSchema \| file> | <T02, blank, or CSV only for Variable rows> | <payload path or keyed T-number paths> | <default or blank — see below> | <what this variable represents> |
153
158
 
154
- | # | Stage Name | Purpose | Entry Condition | Exit Condition | SLA |
155
- |---|---|---|---|---|---|
156
- | 1 | <STAGE_NAME> | <PURPOSE> | <ENTRY_CONDITION> | <EXIT_CONDITION> | <SLA_DURATION> |
159
+ > **`Default` is always a string, for every Type.** The downstream `caseplan.json` field is
160
+ > string-typed, and a non-primitive value there is **silently deleted** when the case is serialized to
161
+ > BPMN — the variable is then null at runtime and the first task that reads it fails. Write a
162
+ > `jsonSchema` default as string-encoded JSON in the cell:
163
+ > `{"employeeName":"Test Employee","amount":125.5}` becomes
164
+ > `"{\"employeeName\":\"Test Employee\",\"amount\":125.5}"`. Same for numbers and booleans — `"5"`,
165
+ > `"true"`, not `5` or `true`. Leave the cell blank for no default; `file` defaults must be blank.
157
166
 
158
167
  ---
159
168
 
160
- ## 4. Tasks Grid
169
+ ## Section 2: Stages & Tasks
170
+
171
+ **Purpose:** The case plan. Every stage has entry/exit conditions, optional SLA, and complete task detail blocks. Case has no BPMN-style edges; transitions are expressed by stage entry/exit conditions.
172
+
173
+ **Authoring rules** (owned by the reference files — block shape and cell grammar:
174
+ [render-stages-tasks.md](../../references/case/render-stages-tasks.md); type enum, gates, sequencing:
175
+ [model.md](../../references/case/model.md); task-level SLA surface: [slas.md](../../references/case/slas.md)).
176
+ During draft finalization, do NOT open these links — the draft is the settled design and this template is
177
+ the complete normalization contract; finalization preserves existing display names verbatim.
178
+ Template-local rules:
179
+ - Every stage and task carries a concrete `Design Rationale` and prose `Description`.
180
+ - Secondary stages use `### Secondary Stage: {Name}`, `Stage Kind: secondary`, `Required for Case
181
+ Completion: No`, and every secondary-stage ENTRY ROW carries `Interrupting: Yes` — including
182
+ decision-keyed rows (`selected-stage-completed`/`-exited` + `IF`). The only `Interrupting: No` entry row
183
+ on a secondary stage is a parallel-oversight `sla-status-change` row.
184
+ - Stage-picker repair is a replacement, never a duplicate: when `user-selected-stage` requires picker
185
+ exposure from an origin, replace that origin's `required-tasks-completed | exit-only | Yes` completion
186
+ row with `required-tasks-completed | wait-for-user | Yes`. Keep exactly one `required-tasks-completed`
187
+ row; never add a second `Marks Stage Complete: No` row.
161
188
 
162
- <!-- Tasks are organized as a 2D grid: tasks[lane][index].
163
- Lanes represent parallel execution tracks within a stage.
164
- Index is the sequence within a lane.
165
- Task Type — use the Case skill's lowercase enum EXACTLY (uipath-maestro-case consumes this SDD unchanged):
166
- action (human task — the only task type that may carry an SLA) · process · agent · rpa · api-workflow ·
167
- wait-for-timer · wait-for-connector · execute-connector-activity · case-management.
168
- Never invent uppercase kinds (API_WORKFLOW, HITL, RPA_PROCESS). Every task needs a prose description. -->
189
+ ---
169
190
 
170
- ### Stage: <STAGE_NAME>
191
+ ### Stage <N>: <STAGE_NAME>
171
192
 
172
- | Lane | Index | Task Name | Task Type | Purpose / Description | Inputs | Outputs |
173
- |---|---|---|---|---|---|---|
174
- | 0 | 0 | <TASK_NAME> | <action / process / agent / rpa / api-workflow / wait-for-timer / wait-for-connector / execute-connector-activity / case-management> | <PURPOSE> | <INPUT_FIELDS> | <OUTPUT_FIELDS> |
175
- | 0 | 1 | <TASK_NAME> | <TASK_TYPE> | <PURPOSE> | <INPUT_FIELDS> | <OUTPUT_FIELDS> |
176
- | 1 | 0 | <TASK_NAME> | <TASK_TYPE> | <PURPOSE> | <INPUT_FIELDS> | <OUTPUT_FIELDS> |
193
+ **Type:** Stage
194
+ **Stage Kind:** <primary \| secondary>
195
+ **Design Rationale:** <Why this stage is primary/secondary and why its entry/exit behavior fits.>
196
+ **Description:** <What this stage accomplishes in the case lifecycle.>
197
+ **Required for Case Completion:** <Yes \| No>
198
+ **Interrupting:** <Yes for secondary stages; omit or use No for primary stages>
177
199
 
178
- <!-- Repeat per stage. -->
200
+ #### Stage Entry Conditions
179
201
 
180
- ---
202
+ | WHEN | IF | Interrupting | Display Name |
203
+ |------|-----|-------------|--------------|
204
+ | <case-entered \| selected-stage-completed("StageName") \| selected-stage-exited("StageName") \| user-selected-stage \| wait-for-connector \| sla-status-change("<SLA target>","<SLA Title>") for a breach \| sla-status-change("<SLA target>","<SLA Title>","<At-Risk Escalation Display Name>") for at-risk> | <conditionExpression or —> | <Yes \| No> | <label or —> |
181
205
 
182
- ## 5. Entry / Exit Conditions
206
+ #### Stage Exit Conditions
183
207
 
184
- <!-- Conditions use the Case skill's WHEN + IF format (uipath-maestro-case consumes this SDD unchanged):
185
- WHEN = a rule type from the Case schema — one of: case-entered · selected-stage-completed("Stage") ·
186
- selected-stage-exited("Stage") · selected-tasks-completed("Task",...) · current-stage-entered ·
187
- required-stages-completed · required-tasks-completed · wait-for-connector · adhoc ·
188
- runs-sequentially · user-selected-stage. Never a free-form expression in the WHEN cell.
189
- IF = optional JavaScript conditionExpression over case variables (e.g., applicationStatus == "Approved").
190
- Exit semantics are two separate fields: Exit Type (exit-only / return-to-origin / wait-for-user) AND
191
- Marks Complete (Yes/No). Pairing constraint (schema-enforced):
192
- stage exit Marks Complete: Yes → WHEN must be required-tasks-completed or wait-for-connector;
193
- case exit Marks Complete: Yes → WHEN must be required-stages-completed or wait-for-connector.
194
- No stage skip conditions exist in the schema. SLA only on the case, stages, and `action` tasks. -->
208
+ | WHEN | IF | Exit Type | Marks Stage Complete | Display Name |
209
+ |------|-----|-----------|---------------------|--------------|
210
+ | <required-tasks-completed \| wait-for-connector \| selected-tasks-completed("TaskName")> | <conditionExpression or —> | <exit-only \| return-to-origin \| wait-for-user> | <Yes \| No> | <label or —> |
195
211
 
196
- ### Stage entry conditions
212
+ #### Stage SLA
197
213
 
198
- | Stage | WHEN (rule type) | IF (condition expression) | Notes |
199
- |---|---|---|---|
200
- | <STAGE_NAME> | <RULE_TYPE> | <JS_EXPRESSION_OR_—> | <NOTES> |
214
+ **Design Rationale:** <Why this duration, threshold, recipients, and breach behavior fit.>
215
+ **SLA Type:** <time-based \| condition-based>
216
+ **SLA Title:** <non-empty stage-unique SLA rule title, no `:` — this exact title is what a `sla-status-change("<Stage>","<SLA Title>")` entry row references>
201
217
 
202
- ### Stage exit conditions
218
+ | SLA | Unit | At-Risk | At-Risk Action | At-Risk Escalation Display Name | Breach Action | Breach Escalation Display Name |
219
+ |-----|------|---------|----------------|----------------------------------|---------------|---------------------------------|
220
+ | <count> | <min \| h \| d \| w \| m> | <percentage>% | Notify: <recipient> | <stage-unique title, no `:`> | Notify: <recipient> | <stage-unique title, no `:`> |
203
221
 
204
- | Stage | WHEN (rule type) | IF (condition expression) | Exit Type | Marks Stage Complete | Next Stage |
205
- |---|---|---|---|---|---|
206
- | <STAGE_NAME> | <RULE_TYPE> | <JS_EXPRESSION_OR_—> | <exit-only / return-to-origin / wait-for-user> | <Yes / No> | <TARGET_STAGE_OR_—> |
222
+ ##### Stage Variable SLA Rules
207
223
 
208
- ### Case exit conditions
224
+ <!-- Include only for a condition-based Stage SLA. -->
209
225
 
210
- | WHEN (rule type) | IF (condition expression) | Marks Case Complete | Final Status |
211
- |---|---|---|---|
212
- | <RULE_TYPE — required-stages-completed typical> | <JS_EXPRESSION_OR_—> | <Yes / No> | <COMPLETED / REJECTED / CANCELLED> |
226
+ | Expression | SLA | Unit | Display Name |
227
+ |------------|-----|------|--------------|
228
+ | <conditionExpression evaluated against case variables> | <count> | <min \| h \| d \| w \| m> | <stage-unique title without `:`> |
213
229
 
214
- ### Task entry conditions
230
+ #### Tasks
215
231
 
216
- | Task | WHEN (rule type) | IF (condition expression) |
217
- |---|---|---|
218
- | <TASK_NAME> | <RULE_TYPE> | <JS_EXPRESSION_OR_—> |
232
+ | # | Task Name | Type | Activation Mode | Starts When | Required | Run Only Once | Persona | SLA |
233
+ |---|-----------|------|-----------------|-------------|----------|---------------|---------|-----|
234
+ | 1 | <TASK_NAME> | <action \| process \| agent \| rpa \| api-workflow \| wait-for-timer \| wait-for-connector \| execute-connector-activity \| 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 —> |
219
235
 
220
- ---
236
+ ##### Task <N>.<M>: <TASK_NAME>
221
237
 
222
- ## 6. Business Rules
238
+ **Type:** <exact task type from schema>
239
+ **Activation Mode:** <sequential \| parallel \| parallel-after-predecessor \| event-triggered \| adhoc \| fan-in \| conditional-gate>
240
+ **Design Rationale:** <Why this task type fits the actor/work and why this activation mode fits.>
241
+ **Description:** <What this task does and why it exists in the case plan.>
223
242
 
224
- <!-- Extract every business rule from the PDD. Assign IDs if the PDD does not.
225
- Include the regulatory authority when the rule has a legal or compliance basis.
226
- Rules must reference the task(s) where they are enforced — this links rules to implementation. -->
243
+ **Entry Condition:**
227
244
 
228
- | ID | Rule Name | Trigger Point | Condition | Action | Affected Tasks | Source / Authority |
229
- |---|---|---|---|---|---|---|
230
- | BR-01 | <RULE_NAME> | <STAGE_AND_TASK> | <WHEN_DOES_IT_APPLY> | <WHAT_TO_DO> | <TASK_NAMES_FROM_§4> | <REGULATORY_CITATION_OR_BUSINESS_SOURCE> |
245
+ | WHEN | IF | Display Name |
246
+ |------|-----|--------------|
247
+ | <current-stage-entered \| selected-tasks-completed("TaskA", "TaskB") \| wait-for-connector \| adhoc \| runs-sequentially> | <conditionExpression or —> | <label or —> |
231
248
 
232
- ---
249
+ **Task envelope**
233
250
 
234
- ## 7. Data Definitions
251
+ | Required | Run Only Once | Skip Condition |
252
+ |----------|---------------|----------------|
253
+ | <Yes \| No> | <Yes \| No> | <=js: expression or —> |
235
254
 
236
- <!-- Define the data objects that flow through the case lifecycle.
237
- Use JSON schema style for Case Management (case data is JSON-based).
238
- Keep objects flat — no deep nesting. Max 15 fields per object.
239
- Default to `string` unless the PDD specifies numeric, date, or boolean operations. -->
255
+ ###### Action Task Detail (type: `action`)
240
256
 
241
- ### Case Data Object
257
+ **HITL Implementation:** Action App: <concrete intended deploymentTitle; never <UNRESOLVED>>
258
+ **Action App ID:** <actionAppId or <UNRESOLVED>>
259
+ **Deployment Folder:** <folder path or <UNRESOLVED>>
260
+ **actionType:** <dispatch code or —>
261
+ **Recipient:** <Role:name \| User:uuid \| UserGroup:uuid \| Email:addr \| Expression:=vars.id>
262
+ **Priority:** <Low \| Medium \| High \| Critical> · **Task Title:** <one-line Action Center prompt> · **Labels:** <csv or —>
242
263
 
243
- <!-- The primary case record that persists across all stages. -->
264
+ **Input Schema:**
244
265
 
245
- | Field | Type | Source | Stage Written | Description | Sensitivity |
246
- |---|---|---|---|---|---|
247
- | <FIELD_NAME> | <string / number / boolean / date> | <SOURCE_SYSTEM_OR_STAGE> | <STAGE_NUMBER> | <DESCRIPTION> | <PHI / PII / Internal / Public> |
266
+ | Field | Type | Binding | Required |
267
+ |-------|------|---------|----------|
268
+ | <field name> | <String \| Number \| Boolean \| Date \| ...> | <=vars.X \| =metadata.X \| =js:(...) \| literal> | <Yes \| No> |
248
269
 
249
- ### Supporting Data Objects
270
+ **Output Schema:**
250
271
 
251
- <!-- Secondary objects created or consumed during the case lifecycle (e.g., notification records, compliance forms, care plans). -->
272
+ | Field | Binding / Value |
273
+ |-------|------------------|
274
+ | <schema field name> | -> <case variable> |
275
+ | — | <case variable> = <literal, =js:expression, or =js:vars.X.Y> |
252
276
 
253
- #### <OBJECT_NAME>
277
+ **Actions:**
254
278
 
255
- | Field | Type | Description |
256
- |---|---|---|
257
- | <FIELD_NAME> | <TYPE> | <DESCRIPTION> |
279
+ | Button | Maps To | Behavior |
280
+ |--------|---------|----------|
281
+ | <button label> | <variable = value> | <Complete task \| Complete task and set variables> |
258
282
 
259
- ### Data Flow
283
+ ###### Connector Task Detail (type: `wait-for-connector` or `execute-connector-activity`)
260
284
 
261
- <!-- How data moves between stages and external systems. -->
285
+ **Connector:** <connector name> · **Connector Key:** <connectorKey>
286
+ **Connection:** <connection instance name or Tenant default> · **Connection ID:** <connectionId or <UNRESOLVED>>
287
+ **Activity Type ID:** <activityTypeId or <UNRESOLVED>> · **Service Type:** <Intsvc.WaitForEvent \| Intsvc.ExecuteActivity>
288
+ **Auth Method:** <OAuth2 \| API Key \| Basic \| Service Account \| ...>
289
+ **Account / Endpoint:** <explicit endpoint or —>
290
+ **Operation:** <display/operation name>
291
+ **Trigger / Event:** <trigger display name for wait-for-connector, or —>
262
292
 
263
- | From | To | Data | Trigger | Frequency |
264
- |---|---|---|---|---|
265
- | <SOURCE_STAGE_OR_SYSTEM> | <TARGET_STAGE_OR_SYSTEM> | <DATA_FIELDS> | <EVENT> | <PER_CASE / BATCH / SCHEDULED> |
293
+ **Inputs:**
266
294
 
267
- ---
295
+ | Field | Type | Binding |
296
+ |-------|------|---------|
297
+ | <field name> | <type> | <=vars.X \| =metadata.X \| =js:(...) \| literal> |
268
298
 
269
- ## 8. SLA Rules
299
+ **Outputs:**
270
300
 
271
- | SLA ID | Applies To | Type | Duration / Condition | At-Risk Threshold |
272
- |---|---|---|---|---|
273
- | SLA-01 | <STAGE_OR_CASE> | <TIME_BASED / CONDITION_BASED> | <DURATION_OR_EXPRESSION> | <PERCENTAGE_BEFORE_BREACH> |
301
+ | Field | Binding / Value |
302
+ |-------|------------------|
303
+ | <schema field name> | -> <case variable> |
304
+ | — | <case variable> = <literal, =js:expression, or =js:vars.X.Y> |
274
305
 
275
- ---
306
+ ###### Timer Task Detail (type: `wait-for-timer`)
276
307
 
277
- ## 9. Escalations
308
+ **Timer:** <timeDuration \| timeDate \| timeCycle>
309
+ **Value:** <ISO 8601 expression, date expression, or variable expression>
278
310
 
279
- | Escalation ID | Trigger | Action | Notify |
280
- |---|---|---|---|
281
- | ESC-01 | <SLA_AT_RISK / SLA_BREACHED / CONDITION> | <REASSIGN / ESCALATE / AUTO_RESOLVE> | <ROLE_OR_EMAIL> |
311
+ ###### Child Case Task Detail (type: `case-management`)
282
312
 
283
- ---
313
+ **Child Case:** <concrete intended child-case resource name; never <UNRESOLVED>>
314
+ **Folder Path:** <folder path or <UNRESOLVED>>
315
+ **Resource Identity:** <entityKey or <UNRESOLVED>>
316
+ **Data Passed (parent -> child):**
284
317
 
285
- ## 10. Exception Handling
318
+ | Parent Variable | Child Variable |
319
+ |----------------|----------------|
320
+ | <parent case variable> | <child case variable> |
286
321
 
287
- <!-- Business exceptions are anticipated process-level deviations (incomplete docs, duplicates, out-of-network).
288
- System errors are infrastructure failures (system outage, connector timeout, auth failure).
289
- Separate from §9 Escalations, which cover SLA-triggered actions. -->
322
+ **Wait for Completion:** <Yes \| No>
290
323
 
291
- ### Business Exceptions
324
+ **Data Returned (child -> parent):**
292
325
 
293
- | ID | Exception Name | Trigger Task | Trigger Condition | Resolution | Escalation Path | SLA Impact |
294
- |---|---|---|---|---|---|---|
295
- | BX-01 | <EXCEPTION_NAME> | <TASK_NAME_FROM_§4> | <HOW_TO_DETECT> | <WHAT_TO_DO> | <WHO_TO_ESCALATE_TO> | <SLA_IMPACT_DESCRIPTION> |
326
+ | Child Variable | Parent Variable |
327
+ |----------------|----------------|
328
+ | <child case variable> | <parent case variable> |
296
329
 
297
- **Default handler:** For any unanticipated business exception, <DEFAULT_ACTION>.
330
+ ###### Process / Agent / RPA / API Workflow Task Detail
298
331
 
299
- ### System Errors
332
+ **Resolved Resource:** <concrete intended resource name; never <UNRESOLVED>>
333
+ **Folder Path:** <resolved exact folder path or <UNRESOLVED>>
334
+ **Resource Identity:** <apiWorkflowId / agentId / processOrchestrationId (+version) or <UNRESOLVED>>
335
+ **Binding Sub-Type:** <Api \| Agent \| ProcessOrchestration \| —>
336
+ **Dispatch / Operation:** <selector and value for shared facades, or —>
300
337
 
301
- | ID | Error Name | Trigger Task | Trigger Condition | Retry Policy | Action |
302
- |---|---|---|---|---|---|
303
- | SE-01 | <ERROR_NAME> | <TASK_NAME_FROM_§4> | <HOW_TO_DETECT> | <RETRY_COUNT_AND_BACKOFF> | <WHAT_TO_DO> |
338
+ **Inputs:**
304
339
 
305
- **Default handler:** For any unanticipated system error, <DEFAULT_ACTION>.
340
+ | Field | Type | Binding |
341
+ |-------|------|---------|
342
+ | <input argument name> | <type> | <=vars.X \| =metadata.X \| =js:(...) \| literal \| <- "Stage"."Task".out> |
306
343
 
307
- ---
344
+ **Outputs:**
308
345
 
309
- ## 11. Compliance Constraints
346
+ | Field | Binding / Value |
347
+ |-------|------------------|
348
+ | <output argument name> | -> <case variable> |
349
+ | — | <case variable> = <literal, =js:expression, or =js:vars.X.Y> |
310
350
 
311
- <!-- Regulatory and compliance requirements that constrain implementation decisions.
312
- Only include constraints that directly affect how tasks are built or configured.
313
- Reference the task or stage where each constraint is enforced. -->
351
+ ---
314
352
 
315
- | Regulation / Standard | Applies To | Constraint | Implementation Impact |
316
- |---|---|---|---|
317
- | <REGULATION_NAME> | <STAGE_OR_TASK> | <WHAT_IS_REQUIRED_OR_PROHIBITED> | <HOW_THIS_CONSTRAINS_THE_BUILD> |
353
+ ### Secondary Stage: <SECONDARY_STAGE_NAME>
318
354
 
319
- ### Audit & Traceability Requirements
355
+ **Type:** Stage
356
+ **Stage Kind:** secondary
357
+ **Design Rationale:** <Why this interrupting or return lane belongs outside the primary lifecycle.>
358
+ **Description:** <What exception, rework, SLA, or global-event path this stage handles.>
359
+ **Required for Case Completion:** No
360
+ **Interrupting:** Yes
320
361
 
321
- - <AUDIT_REQUIREMENT_1>
362
+ <!-- Repeat the same Stage Entry Conditions, Stage Exit Conditions, Stage SLA, Tasks, and task detail blocks. Secondary-stage task headings use `##### Task S<K>.<M>: <Task Name>`. -->
322
363
 
323
364
  ---
324
365
 
325
- ## 12. Roles & RACI Matrix
366
+ ## Section 3: Personas & App Views
326
367
 
327
- ### Role Definitions
368
+ **Purpose:** Who interacts with the case and through what interfaces.
328
369
 
329
- | Role | Primary Responsibilities | Key Decisions | Classification |
330
- |---|---|---|---|
331
- | <ROLE_NAME> | <RESPONSIBILITIES> | <DECISIONS> | <INTERNAL / EXTERNAL / REGULATORY> |
370
+ ### Personas
332
371
 
333
- ### RACI Matrix
372
+ | Persona | Stage Scope | Permissions | Description |
373
+ |---------|-------------|-------------|-------------|
374
+ | <persona name> | <comma-separated stage names, or All> | <View, Act, Reassign, etc.> | <description of this persona's role> |
334
375
 
335
- <!-- R = Responsible, A = Accountable, C = Consulted, I = Informed.
336
- Map roles to stages. Use this to configure task assignments and notification targets. -->
376
+ ### Process App Views
337
377
 
338
- | Stage | <ROLE_1> | <ROLE_2> | <ROLE_3> | <ROLE_4> |
339
- |---|---|---|---|---|
340
- | <STAGE_NAME> | <R/A/C/I/—> | <R/A/C/I/—> | <R/A/C/I/—> | <R/A/C/I/—> |
378
+ | App | View | Persona | Purpose | Key Components |
379
+ |-----|------|---------|---------|----------------|
380
+ | <app name> | <Case List \| Case Detail \| Dashboard \| custom> | <persona> | <what this view enables> | <columns, filters, sections, charts> |
341
381
 
342
382
  ---
343
383
 
344
- ## 13. Task Type Registry
384
+ ## Section 4: Integrations
345
385
 
346
- <!-- Each task maps to a taskTypeId from the registry. Registry resolution happens at implementation time;
347
- this section lists the *kinds* of tasks needed so the registry query can target them. -->
386
+ **Purpose:** Complete inventory of intended or deployed resources and external systems the case binds. Portable names must be concrete; identifiers/folders are concrete when resolved and <UNRESOLVED> only when paired with a high review item.
348
387
 
349
- | Task Name (from §4) | Task Type Kind | Implementation |
350
- |---|---|---|
351
- | <TASK_NAME> | RPA | Invokes a Studio RPA process |
352
- | <TASK_NAME> | AGENT | Invokes a UiPath Agent |
353
- | <TASK_NAME> | API_WORKFLOW | Invokes an API Workflow |
354
- | <TASK_NAME> | CONNECTOR_ACTIVITY | Integration Service connector action |
355
- | <TASK_NAME> | CONNECTOR_TRIGGER | Integration Service connector trigger |
356
- | <TASK_NAME> | HITL | Human-in-the-loop approval task |
388
+ ### Integration Service Connectors
357
389
 
358
- ---
390
+ | Connector | Connector Key | System | Connection (ID) | Auth Method | Operations Used | Used By Tasks |
391
+ |-----------|---------------|--------|-----------------|-------------|-----------------|---------------|
392
+ | <connector name> | <connectorKey> | <target system> | <connection name (connectionId)> | <auth method> | <operations> | <task names> |
359
393
 
360
- ## 14. Integrated Components
394
+ #### <Connector Name>
361
395
 
362
- ### RPA Processes Invoked
396
+ **Operations:**
363
397
 
364
- | Process Name | Called From Task | Purpose |
365
- |---|---|---|
366
- | `<PROCESS_NAME>` | <TASK_NAME> | <PURPOSE> |
398
+ | Operation | Activity Type ID | Method | Input Fields | Output Fields |
399
+ |-----------|------------------|--------|-------------|---------------|
400
+ | <operation name> | <activityTypeId or <UNRESOLVED>> | <GET \| POST \| PUT \| DELETE \| PATCH \| EVENT> | <field: type, ...> | <field: type, ...> |
367
401
 
368
- ### Agents Invoked
402
+ ### API Workflows
369
403
 
370
- | Agent Name | Called From Task | Purpose |
371
- |---|---|---|
372
- | `<AGENT_NAME>` | <TASK_NAME> | <PURPOSE> |
404
+ | Workflow | Folder | Resource ID (+version) | Inputs → Outputs | Used By Tasks |
405
+ |----------|--------|------------------------|------------------|---------------|
406
+ | <workflow name> | <folder path or <UNRESOLVED>> | <apiWorkflowId (+version) or <UNRESOLVED>> | <in fields → out fields> | <task names> |
373
407
 
374
- ### API Workflows Invoked
408
+ ### Agents
375
409
 
376
- | API Workflow Name | Called From Task | Purpose |
377
- |---|---|---|
378
- | `<API_WORKFLOW_NAME>` | <TASK_NAME> | <PURPOSE> |
410
+ | Agent | Folder | Resource ID (+version) | Inputs → Outputs (or shared contract) | Used By Tasks |
411
+ |-------|--------|------------------------|----------------------------------------|---------------|
412
+ | <agent name> | <folder path or <UNRESOLVED>> | <agentId (+version) or <UNRESOLVED>> | <contract> | <task names> |
379
413
 
380
- ### Integration Service Connectors
414
+ ### Processes & RPA
381
415
 
382
- | Connector | Called From Task | Operation |
383
- |---|---|---|
384
- | <CONNECTOR_NAME> | <TASK_NAME> | <OPERATION> |
416
+ | Resource | Type | Folder | Resource ID (+version) | Used By Tasks |
417
+ |----------|------|--------|------------------------|---------------|
418
+ | <resource name> | <process \| rpa> | <folder path or <UNRESOLVED>> | <processOrchestrationId (+version) or <UNRESOLVED>> | <task names> |
385
419
 
386
- ### Integration Service Connections
420
+ ### Child Cases
387
421
 
388
- <!-- Every Integration Service connection and how it is provisioned: reuse an existing IS connector, custom-build a connector, or call the system over direct HTTP. Access Method values: `Integration Service — <CONNECTOR_SLUG>`, `Custom connector — <CONNECTOR_SLUG>`, or `Direct HTTP`. Complements the Integration Service Connectors table above (connector + task + operation). -->
422
+ | Child Case | Folder | Resource ID | Identifier Prefix | Wait for Completion | Used By Tasks |
423
+ |------------|--------|-------------|-------------------|---------------------|---------------|
424
+ | <child case name> | <folder path or <UNRESOLVED>> | <entityKey or <UNRESOLVED>> | <2-4 char prefix> | <Yes \| No> | <task names> |
389
425
 
390
- | Connector | System | Access Method | Used By |
391
- |---|---|---|---|
392
- | <CONNECTOR_NAME> | <SYSTEM> | <ACCESS_METHOD> | <TASKS> |
426
+ ### External Agents
427
+
428
+ | Agent | Service Type | Endpoint | Modeled As | Used By Tasks |
429
+ |-------|-------------|----------|------------|---------------|
430
+ | <agent name> | <CrewAI \| Salesforce \| Databricks \| Custom \| ...> | <endpoint URL or reference> | <api-workflow \| execute-connector-activity> | <task names> |
393
431
 
394
432
  ### IXP / Document Understanding Models
395
433
 
396
- <!-- Extraction from semi-structured documents (invoices, forms) consumed by this project. Implementation routes to uipath-ixp; the model is built and published BEFORE its consumers. OPTIONAL subsection — omit entirely when no document extraction is in scope (exempt from the template-superset check). -->
434
+ <!-- Optional. Include only when document extraction is in scope. Lane A routes each model build to `uipath-ixp` before consumer tasks. -->
397
435
 
398
436
  | Model / Project | Called From Task | Document Types | Purpose |
399
437
  |---|---|---|---|
400
- | `<IXP_PROJECT_NAME>` | `<TASK_NAME>` | <DOCUMENT_TYPES> | <PURPOSE> |
438
+ | <IXP_PROJECT_NAME> | <TASK_NAME> | <DOCUMENT_TYPES> | <PURPOSE> |
401
439
 
402
440
  ### Coded Functions
403
441
 
404
- <!-- Atomic deterministic logic in TypeScript, JavaScript, or Python (transform, parse, score, custom-auth API call, IS-connection query) invoked by this project. Implementation routes to uipath-functions; each function is built and published BEFORE its consumers. OPTIONAL subsection — omit entirely when no coded function is in scope (exempt from the template-superset check). -->
442
+ <!-- Optional. Include only when an extracted TypeScript / JavaScript / Python function is justified. Lane A routes each function build to `uipath-functions` before consumer tasks. -->
405
443
 
406
444
  | Function | Called From Task | Input → Output (typed) | Purpose / Dependencies |
407
445
  |---|---|---|---|
408
- | `<FUNCTION_NAME>` | `<TASK_NAME>` | `<INPUT_MODEL>` → `<OUTPUT_MODEL>` | <PURPOSE_AND_DEPENDENCIES> |
409
-
410
- ### HITL Tasks
411
-
412
- <!-- Inline in Case Management — use HITL task type with inline schema (do NOT route to HITL skill; Case Mgmt handles it directly). -->
413
-
414
- | Task Name | Stage | Approval Schema | Who Approves |
415
- |---|---|---|---|
416
- | <TASK_NAME> | <STAGE_NAME> | <SCHEMA_SUMMARY> | <ROLE_OR_USER> |
417
-
418
- ---
419
-
420
- ## 15. Project Structure
421
-
422
- ```text
423
- <CASE_PROJECT_NAME>/
424
- ├── caseplan.json
425
- ├── sdd.md (this file — uipath-maestro-case reads the literal name `sdd.md`; copy the generated SDD here under this exact name)
426
- ├── tasks.md (generated during planning)
427
- ├── registry-resolved.json (audit trail)
428
- └── content/
429
- └── <CASE_NAME>.bpmn (auto-generated)
430
- ```
431
-
432
- ### Solution / Project Breakdown
433
-
434
- <!-- Every buildable project in the solution: its product, source repo, Orchestrator folder, and run mode. One row per project (single row for a single-project solution). -->
435
-
436
- | Project | Product (RPA / API / Agent / …) | GitHub Repository | Folder | Attended / Unattended |
437
- |---|---|---|---|---|
438
- | <PROJECT_NAME> | <PRODUCT> | <GIT_URL_OR_REPO> | <FOLDER_PATH> | <ATTENDED / UNATTENDED / N-A> |
446
+ | <FUNCTION_NAME> | <TASK_NAME> | <INPUT_MODEL> → <OUTPUT_MODEL> | <PURPOSE_AND_DEPENDENCIES> |
439
447
 
440
448
  ### Reusable Components
441
449
 
442
- <!-- Components reused from an existing library vs. new reusable components this build will publish. -->
443
-
444
450
  | Type (reused / new-reusable) | Name | Details |
445
451
  |---|---|---|
446
452
  | reused | <COMPONENT_NAME> | <SOURCE_LIBRARY_AND_VERSION> |
@@ -448,72 +454,46 @@ flowchart LR
448
454
 
449
455
  ### Environments (DEV / UAT / PROD)
450
456
 
451
- <!-- Per-environment Orchestrator/tenant and folder targets. Fill with [SME REVIEW] if the deployment team has not confirmed. -->
452
-
453
457
  | Item | DEV | UAT | PROD | Used By |
454
458
  |---|---|---|---|---|
455
459
  | Orchestrator + Tenant/Service | <URL_OR_TENANT> | <URL_OR_TENANT> | <URL_OR_TENANT> | <PROJECTS_OR_ALL> |
456
460
  | Folder | <FOLDER_PATH> | <FOLDER_PATH> | <FOLDER_PATH> | <PROJECTS_OR_ALL> |
457
461
 
458
- ### Non-Functional Requirements
459
-
460
- <!-- Consolidated NFRs. Compliance and SLA / timeliness have dedicated sections — cross-reference, do not duplicate. Fill each row with the concrete design decision; use [SME REVIEW] where unconfirmed. -->
461
-
462
- | Dimension | Requirement / Design decision |
463
- |---|---|
464
- | **Security** | <credentials in Orchestrator credential / secret assets; least-privilege Integration Service connection scope; do not expose case data in the network trace; PHI / PII handling per §7 Sensitivity> |
465
- | **Performance** | <database vs file storage; webhooks vs polling; avoid license-consuming Windows processes where a headless / cross-platform path exists> |
466
- | **Scalability** | <expected concurrent cases; task-lane parallelism; peak-window sizing> |
467
- | **Availability / Resilience** | <restart / retry behavior on task failure; idempotency of invoked components; timeliness targets in §8 SLA Rules> |
468
- | **Logging & Monitoring** | <log level and sinks; alerting on SLA-at-risk / breach (§9 Escalations); Insights dashboards> |
469
- | **Compliance** | <see §11 Compliance Constraints and its Audit & Traceability Requirements> |
470
-
471
462
  ---
472
463
 
473
- ## 16. Testing Strategy
474
-
475
- ### Canonical Test Case
464
+ ## Non-Functional Requirements
476
465
 
477
- | Field | Value |
466
+ | Dimension | Requirement / Design decision |
478
467
  |---|---|
479
- | <FIELD_NAME> | `<TEST_VALUE>` |
468
+ | Security | <least privilege, credential handling, PII/PHI handling> |
469
+ | Performance | <volume, concurrency, polling/webhook choice> |
470
+ | Scalability | <expected concurrent cases, parallelism, peak sizing> |
471
+ | Availability / Resilience | <restart, retry, idempotency> |
472
+ | Logging & Monitoring | <SLA alerts, Insights, audit events> |
473
+ | Compliance | <regulatory constraints and audit traceability> |
480
474
 
481
- ### Happy Path Assertions
475
+ ## Testing Strategy
482
476
 
483
- 1. <ASSERTION_1>
484
-
485
- ### Exception Test Cases
486
-
487
- | Exception ID | Test Setup | Trigger | Expected Outcome |
488
- |---|---|---|---|
489
- | BX-01 | <HOW_TO_SET_UP> | <WHAT_TRIGGERS_IT> | <EXPECTED_BEHAVIOR> |
490
-
491
- ### SLA Breach Scenarios
492
-
493
- | Scenario | Setup | Expected Escalation |
477
+ | Scenario | Setup | Expected Outcome |
494
478
  |---|---|---|
495
- | <SCENARIO> | <SETUP> | <EXPECTED> |
496
-
497
- ### Acceptance Criteria
498
-
499
- <!-- Derived from PDD KPIs. Each criterion defines a measurable threshold the implementation must meet. -->
500
-
501
- | # | Criterion | Measurement | Threshold |
502
- |---|---|---|---|
503
- | 1 | <CRITERION_NAME> | <HOW_MEASURED> | <PASS_THRESHOLD> |
479
+ | Happy path | <canonical input values> | <case completes with expected variables and outputs> |
480
+ | Exception path | <trigger condition> | <secondary stage / return / terminal outcome> |
481
+ | SLA breach | <timer or condition setup> | <at-risk / breach action fires> |
504
482
 
505
483
  ---
506
484
 
507
- ## 17. Next Steps
485
+ ## Next Steps
486
+
487
+ This SDD uses the downstream Case Definition Blueprint shape. To build the case, Lane A should create a `uipath-maestro-case` task that uses this file as the source `sdd.md` and preserves the Section 1-4 content unchanged.
508
488
 
509
- This SDD captures architecture and decisions. To generate the implementation task list and execute the build, load `uipath-planner` with this SDD path:
489
+ Load `uipath-planner` with this SDD path to derive the task list:
510
490
 
511
491
  > Load `uipath-planner`. SDD path: `<this-file>`.
512
492
 
513
- The planner detects the `## Planner Handoff` header, parses §15 Project Structure and §14 Integrated Components, derives the per-skill task list (routing each task to `uipath-maestro-case`, `uipath-rpa`, `uipath-agents`, `uipath-platform`, etc.), writes `<CASE_NAME_KEBAB>-tasks.md` alongside this SDD, and emits live `TaskCreate` calls. If `Execution autonomy: interactive`, it enters plan mode for task review before execution.
493
+ The planner detects the `## Planner Handoff` header, parses Section 2: Stages & Tasks and Section 4: Integrations, derives the per-skill task list, writes `<CASE_NAME_KEBAB>-tasks.md` alongside this SDD, and emits live `TaskCreate` calls. If `Execution autonomy: interactive`, it enters plan mode for task review before execution.
514
494
 
515
495
  Implementation tasks **do not live in this SDD** — they live in the planner's output.
516
496
 
517
497
  ---
518
498
 
519
- **End of Solution Design Document.**
499
+ **End of Case Definition Blueprint.**