@uipath/skills 1.206.0 → 1.206.1
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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/CODEOWNERS +34 -7
- package/README.md +2 -2
- package/package.json +2 -2
- package/skills/uipath-genome/SKILL.md +35 -88
- package/skills/uipath-genome/references/build-guide.md +61 -0
- package/skills/uipath-genome/references/completion-report-guide.md +93 -0
- package/skills/uipath-genome/references/composite-interactions-guide.md +39 -0
- package/skills/uipath-genome/references/configuration-questions-guide.md +68 -0
- package/skills/uipath-genome/references/execution-guide.md +45 -166
- package/skills/uipath-genome/references/execution-parts-guide.md +84 -17
- package/skills/uipath-genome/references/genome-reading-guide.md +153 -0
- package/skills/uipath-genome/references/live-application-guide.md +23 -9
- package/skills/uipath-genome/references/offline-definition-workarounds-guide.md +4 -4
- package/skills/uipath-genome/references/open-items-guide.md +3 -3
- package/skills/uipath-genome/references/package-doc-errata-guide.md +8 -0
- package/skills/uipath-genome/references/refactor-guide.md +38 -39
- package/skills/uipath-genome/references/selector-matching-guide.md +59 -0
- package/skills/uipath-genome/references/selector-translation-guide.md +13 -66
- package/skills/uipath-genome/references/selector-translation-sap-guide.md +7 -5
- package/skills/uipath-genome/references/selector-translation-web-guide.md +2 -2
- package/skills/uipath-genome/references/source-frameworks-guide.md +21 -0
- package/skills/uipath-genome/references/source-migration-guide.md +48 -19
- package/skills/uipath-genome/references/test-execution-guide.md +8 -7
- package/skills/uipath-genome/references/transactional-execution-guide.md +41 -13
- package/skills/uipath-genome/references/ui-target-migration-guide.md +12 -49
- package/skills/uipath-genome/references/ui-verification-guide.md +9 -1
- package/skills/uipath-maestro-case/SKILL.md +7 -7
- package/skills/uipath-maestro-case/references/evals/evals.json +5 -5
- package/skills/uipath-maestro-case/references/planning.md +5 -5
- package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/planning.md +2 -2
- package/skills/uipath-maestro-case/references/plugins/sla/planning.md +1 -1
- package/skills/uipath-maestro-case/references/registry-discovery.md +3 -3
- package/skills/uipath-planner/SKILL.md +80 -199
- package/skills/uipath-planner/assets/templates/agent-sdd-template.md +17 -17
- package/skills/uipath-planner/assets/templates/api-workflow-sdd-template.md +15 -13
- package/skills/uipath-planner/assets/templates/bpmn-sdd-template.md +19 -19
- package/skills/uipath-planner/assets/templates/case-sdd-task-details-template.md +173 -0
- package/skills/uipath-planner/assets/templates/{case/case-sdd-template.md → case-sdd-template.md} +51 -229
- package/skills/uipath-planner/assets/templates/coded-app-sdd-template.md +16 -14
- package/skills/{uipath-genome → uipath-planner}/assets/templates/component-genome-template.md +9 -5
- package/skills/uipath-planner/assets/templates/flow-sdd-template.md +17 -15
- package/skills/{uipath-genome → uipath-planner}/assets/templates/process-genome-template.md +11 -7
- package/skills/uipath-planner/assets/templates/rpa-sdd-template.md +50 -73
- package/skills/uipath-planner/references/author/author-guide.md +119 -0
- package/skills/uipath-planner/references/author/genome-from-sdd-guide.md +36 -0
- package/skills/uipath-planner/references/author/scenario-proposal-guide.md +30 -0
- package/skills/uipath-planner/references/decompose/decompose-guide.md +223 -0
- package/skills/uipath-planner/references/{asdd-crosswalk-guide.md → design/asdd-crosswalk-guide.md} +6 -4
- package/skills/uipath-planner/references/{business-rules-guide.md → design/business-rules-guide.md} +3 -3
- package/skills/uipath-planner/references/design/caller-request-guide.md +92 -0
- package/skills/uipath-planner/references/design/case-data-and-time-guide.md +292 -0
- package/skills/uipath-planner/references/design/case-product-guide.md +243 -0
- package/skills/uipath-planner/references/design/case-review-and-conformance-guide.md +166 -0
- package/skills/uipath-planner/references/design/design-guide.md +296 -0
- package/skills/uipath-planner/references/{package-selection-guide.md → design/package-selection-guide.md} +16 -13
- package/skills/uipath-planner/references/{rpa-product-guide.md → design/rpa-product-guide.md} +23 -53
- package/skills/uipath-planner/references/design/scope-recommendation-guide.md +134 -0
- package/skills/uipath-planner/references/design/sdd-writing-guide.md +235 -0
- package/skills/uipath-planner/references/design/solution-composition-guide.md +153 -0
- package/skills/uipath-planner/references/edit/edit-guide.md +66 -0
- package/skills/uipath-planner/references/extract/extract-guide.md +230 -0
- package/skills/uipath-planner/references/extract/source-frameworks-guide.md +22 -0
- package/skills/uipath-planner/references/extract/uipath-non-rpa-signals-guide.md +121 -0
- package/skills/uipath-planner/references/extract/uipath-rpa-signals-guide.md +88 -0
- package/skills/uipath-planner/references/extract/uipath-source-guide.md +193 -0
- package/skills/uipath-planner/references/shared/component-placement-guide.md +99 -0
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/defect-verification-guide.md +4 -4
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/extracted-genome-guide.md +15 -14
- package/skills/uipath-planner/references/shared/extraction-parts-guide.md +66 -0
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/genome-format-guide.md +63 -34
- package/skills/uipath-planner/references/{multi-skill-patterns-guide.md → shared/multi-skill-patterns-guide.md} +28 -27
- package/skills/uipath-planner/references/{pdd-analysis-guide.md → shared/pdd-analysis-guide.md} +27 -72
- package/skills/uipath-planner/references/{plan-and-tasks-format.md → shared/plan-and-tasks-format.md} +43 -67
- package/skills/uipath-planner/references/{platform-availability-guide.md → shared/platform-availability-guide.md} +56 -1
- package/skills/uipath-planner/references/shared/product-selection-guide.md +202 -0
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/skill-mapping-guide.md +24 -4
- package/skills/uipath-planner/references/{tenant-library-search-guide.md → shared/tenant-library-search-guide.md} +10 -8
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/transactional-shape-guide.md +39 -8
- package/skills/uipath-planner/scripts/check-genome.mjs +801 -0
- package/skills/uipath-planner/scripts/sdd-fingerprint.mjs +71 -0
- package/skills/uipath-planner/scripts/sdd-to-docx.mjs +87 -0
- package/skills/uipath-test/SKILL.md +3 -3
- package/version-manifest.json +1 -1
- package/skills/uipath-genome/CLAUDE.md +0 -85
- package/skills/uipath-genome/assets/examples/artemis-2-mission-monitor-genome.md +0 -126
- package/skills/uipath-genome/assets/examples/classify-document-and-create-validation-genome.md +0 -117
- package/skills/uipath-genome/assets/examples/invoice-processing-genome/exception-triage-agent-genome.md +0 -96
- package/skills/uipath-genome/assets/examples/invoice-processing-genome/invoice-extraction-genome.md +0 -128
- package/skills/uipath-genome/assets/examples/invoice-processing-genome/invoice-orchestration-genome.md +0 -115
- package/skills/uipath-genome/assets/examples/invoice-processing-genome.md +0 -136
- package/skills/uipath-genome/assets/examples/purchase-requisition-entry-genome.md +0 -224
- package/skills/uipath-genome/assets/examples/salesforce-accounts-and-contacts-genome.md +0 -151
- package/skills/uipath-genome/references/authoring-guide.md +0 -98
- package/skills/uipath-genome/references/editing-guide.md +0 -57
- package/skills/uipath-genome/references/extraction-guide.md +0 -166
- package/skills/uipath-genome/references/extraction-parts-guide.md +0 -45
- package/skills/uipath-genome/references/parts-guide.md +0 -22
- package/skills/uipath-genome/references/uipath-source-guide.md +0 -404
- package/skills/uipath-genome/scripts/check-genome.py +0 -670
- package/skills/uipath-planner/assets/templates/case/sdd-viewer.html +0 -1530
- package/skills/uipath-planner/references/case/case-design-lane-guide.md +0 -327
- package/skills/uipath-planner/references/case/case-design-layers-guide.md +0 -503
- package/skills/uipath-planner/references/case/case-sdd-conformance-checklist.md +0 -123
- package/skills/uipath-planner/references/non-pdd-lane-guide.md +0 -196
- package/skills/uipath-planner/references/pdd-driven-lane-guide.md +0 -210
- package/skills/uipath-planner/references/product-selection-guide.md +0 -673
- package/skills/uipath-planner/references/sdd-generation-guide.md +0 -613
- package/skills/uipath-planner/scripts/docx-extract.ps1 +0 -59
- package/skills/uipath-planner/scripts/docx-extract.sh +0 -54
- package/skills/uipath-planner/scripts/sdd-to-docx.ps1 +0 -74
- package/skills/uipath-planner/scripts/sdd-to-docx.sh +0 -76
- /package/skills/uipath-planner/references/{attended-reauth-pattern-guide.md → design/attended-reauth-pattern-guide.md} +0 -0
package/skills/uipath-planner/references/{rpa-product-guide.md → design/rpa-product-guide.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# RPA Product Guide
|
|
2
2
|
|
|
3
|
-
Load this guide when Level 1 of the [Product Selection Guide](product-selection-guide.md) selects **RPA**, or when a Solution composition at Level 1.75 includes one or more RPA projects.
|
|
3
|
+
Load this guide when Level 1 of the [Product Selection Guide](../shared/product-selection-guide.md) selects **RPA**, or when a Solution composition at Level 1.75 includes one or more RPA projects.
|
|
4
4
|
|
|
5
5
|
This file is the **canonical home** for RPA-specific levels:
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ This file is the **canonical home** for RPA-specific levels:
|
|
|
10
10
|
- **R-07 naming convention** — `<PROCESS_SHORT_NAME_PASCAL>_<ROLE_SUFFIX>`
|
|
11
11
|
- **REFramework guidance** — when to use REFramework vs Sequence
|
|
12
12
|
|
|
13
|
-
Cross-product levels live in the [Product Selection Guide](product-selection-guide.md):
|
|
13
|
+
Cross-product levels live in the [Product Selection Guide](../shared/product-selection-guide.md), [Solution Composition Guide](solution-composition-guide.md) and [Component Placement Guide](../shared/component-placement-guide.md):
|
|
14
14
|
|
|
15
15
|
- Level 1 (primary scope)
|
|
16
16
|
- Level 1.75 (Solution composition)
|
|
@@ -81,7 +81,7 @@ Pick the default from the sub-type signals above:
|
|
|
81
81
|
|
|
82
82
|
### User confirmation
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
In interactive mode, confirm the sub-type via a structured question with the numbered-choice format, even when only one signal set matches (autonomous mode takes the recommended sub-type and records it in Decisions Made):
|
|
85
85
|
|
|
86
86
|
> This RPA project looks like a **<DEFAULT_SUBTYPE>**. Which sub-type should I use?
|
|
87
87
|
>
|
|
@@ -157,7 +157,9 @@ If **fewer than two** are true and the body is >70% UI, recommend XAML. The "cle
|
|
|
157
157
|
|
|
158
158
|
Apply these signals **to every RPA Process project** in the scope. Skip for RPA Library, RPA Test Automation, and non-RPA products — those are always one project each.
|
|
159
159
|
|
|
160
|
-
|
|
160
|
+
**Start from one project; every split earns its boundary.** A sub-project exists only when §10 can name the fact that requires it: (a) **scaling** — the §16 sizing needs a different robot count per stage; (b) **failure isolation** — a stage's retry or replay must not repeat another stage's side effect (a costly re-extraction, a posting, a sent message); (c) **a long wait** — a stage holds an item for hours (a person's validation) while the other stages must keep moving; (d) **ownership or cadence** — another team, schedule or release cycle. The signals below are where to look, counted once per fact (a DU validation wait is one fact, not two signals), never a boundary by themselves. A shape the PDD itself names — its scheduling table lists `X_Dispatcher` and `X_Performer` — is the starting point; departing from it is a Decisions Made row. No boundary → **Single Project** with internal phases.
|
|
161
|
+
|
|
162
|
+
**Reporting is never a reason to split.** A report reads the outcomes the processing stage already records (queue item status and output, a run record); a reporting queue filled only to be read back once a day is a data store, not a hand-off.
|
|
161
163
|
|
|
162
164
|
> Queue design is independent of decomposition: a **Single Project** that is queue-triggered, consumes an existing queue, or self-dispatches still fills §12 Queue Architecture in the RPA template — only a project with no queue involvement omits it.
|
|
163
165
|
|
|
@@ -167,8 +169,7 @@ Walk through the signals — they are *evidence*, not the decision. **2+ matches
|
|
|
167
169
|
| 2 | Transactional processing where items can fail independently and must be retried per item | Queue-based retry requires Performer projects consuming from Orchestrator queues using REFramework |
|
|
168
170
|
| 3 | Document Understanding or AI extraction with human validation (Action Centre) | DU + validation is a distinct processing stage that benefits from its own project and queue |
|
|
169
171
|
| 4 | Different processing speeds per stage (e.g., fast email download vs. slow DU extraction) | Independent projects allow different robot counts per stage for throughput balancing |
|
|
170
|
-
| 5 |
|
|
171
|
-
| 6 | Multiple output channels from a single input (e.g., XML to MQ + files to FTP + report to email) | Separate Performer per output channel avoids coupling unrelated integrations |
|
|
172
|
+
| 5 | Multiple output channels from a single input (e.g., XML to MQ + files to FTP + report to email) | Separate Performer per output channel avoids coupling unrelated integrations |
|
|
172
173
|
|
|
173
174
|
### Common decomposition patterns
|
|
174
175
|
|
|
@@ -177,29 +178,23 @@ Walk through the signals — they are *evidence*, not the decision. **2+ matches
|
|
|
177
178
|
Use when the process collects items from a source (email, folder, spreadsheet, API) and then processes each item transactionally.
|
|
178
179
|
|
|
179
180
|
```text
|
|
180
|
-
[Dispatcher] → Queue → [Performer]
|
|
181
|
+
[Dispatcher] → Queue → [Performer]
|
|
181
182
|
```
|
|
182
183
|
|
|
183
184
|
- **Dispatcher**: collects items, creates queue items with all required data. Runs as a simple sequence (no REFramework).
|
|
184
|
-
- **Performer**: processes one transaction item at a time. Uses **REFramework** for retry, logging, and state management.
|
|
185
|
-
- **Reporting** (optional): reads from a reporting queue, generates reports. Runs on a schedule or after Performer completes.
|
|
185
|
+
- **Performer**: processes one transaction item at a time. Uses **REFramework** for retry, logging, and state management; its end-of-run step writes any report from the items' outcomes.
|
|
186
186
|
|
|
187
|
-
#### Dispatcher / DU Performer
|
|
187
|
+
#### Dispatcher / DU Performer
|
|
188
188
|
|
|
189
|
-
Use when the process
|
|
189
|
+
Use when the process extracts documents with human validation (boundary (c)).
|
|
190
190
|
|
|
191
191
|
```text
|
|
192
|
-
[Dispatcher] → DU Queue → [DU Performer]
|
|
193
|
-
↓ ↓
|
|
194
|
-
Action Centre Reporting Queue
|
|
195
|
-
↓
|
|
196
|
-
[Reporting]
|
|
192
|
+
[Dispatcher] → DU Queue → [DU Performer] ─ Action Center
|
|
197
193
|
```
|
|
198
194
|
|
|
199
195
|
- **Dispatcher**: downloads emails/files, creates queue items.
|
|
200
|
-
- **DU Performer**:
|
|
201
|
-
- **Output Performer
|
|
202
|
-
- **Reporting**: aggregates outcomes from all stages.
|
|
196
|
+
- **DU Performer**: extracts, sends low-confidence items to Action Center, then writes the output. Uses REFramework.
|
|
197
|
+
- A separate **Output Performer** behind an output queue only when boundary (b) holds — the output's retry must not repeat the extraction or the validation.
|
|
203
198
|
|
|
204
199
|
### RPA Process (single-product scope) — narrower project list
|
|
205
200
|
|
|
@@ -208,16 +203,15 @@ When the primary scope is RPA Process (not a Solution), Part A directly produces
|
|
|
208
203
|
| # | Project Name | Role | Framework | Input Queue | Output Queue |
|
|
209
204
|
|---|---|---|---|---|---|
|
|
210
205
|
| 1 | `<NAME>_Dispatcher` | Collect items from source, dispatch to processing queue | Sequence | — | `<QUEUE_1>` |
|
|
211
|
-
| 2 | `<NAME>_Performer` | Process each transaction item | REFramework | `<QUEUE_1>` |
|
|
212
|
-
| 3 | `<NAME>_Reporting` | Generate reports from processing outcomes | Sequence | `<REPORTING_QUEUE>` | — |
|
|
206
|
+
| 2 | `<NAME>_Performer` | Process each transaction item | REFramework | `<QUEUE_1>` | — |
|
|
213
207
|
|
|
214
|
-
Queue definitions for the `<QUEUE_1>`
|
|
208
|
+
Queue definitions for the `<QUEUE_1>` placeholder are authored in §12 of the RPA template (`assets/templates/rpa-sdd-template.md`). §12 is the single source of truth for queue shape — `Queue Definitions` table + one `Queue Item Schema` subsection per queue. Do not invent a different column layout in Part A or Part B.
|
|
215
209
|
|
|
216
|
-
For Solutions, feed the rows produced by Part A into Level 2.5 Part B of [
|
|
210
|
+
For Solutions, feed the rows produced by Part A into Level 2.5 Part B of [solution-composition-guide.md](solution-composition-guide.md#part-b--merge-into-the-final-project-list) to merge with the non-RPA projects.
|
|
217
211
|
|
|
218
212
|
### Sub-project naming convention (rule R-07)
|
|
219
213
|
|
|
220
|
-
Every row
|
|
214
|
+
Every row of a Master Project's project list uses the pattern (a Single Project takes the short name alone):
|
|
221
215
|
|
|
222
216
|
```
|
|
223
217
|
<PROCESS_SHORT_NAME_PASCAL>_<ROLE_SUFFIX>
|
|
@@ -232,7 +226,6 @@ Every row in the project list uses the pattern:
|
|
|
232
226
|
| `_Performer` | Consumes queue items and processes each transactionally (REFramework) |
|
|
233
227
|
| `_DUPerformer` | Performer variant dedicated to Document Understanding extraction + validation |
|
|
234
228
|
| `_OutputPerformer` | Performer variant that consumes validated data and writes to a downstream system (API, file, message bus) |
|
|
235
|
-
| `_Reporting` | Reads a reporting queue and generates reports / dashboards / summary emails |
|
|
236
229
|
| `_SharedUtils` | RPA Library containing reusable workflows called by other projects in the Solution |
|
|
237
230
|
|
|
238
231
|
Worked example — PDD: "Weekly Vendor Invoice Ingestion". Short-name: `VendorInvoice`. Unified project list:
|
|
@@ -242,8 +235,7 @@ Worked example — PDD: "Weekly Vendor Invoice Ingestion". Short-name: `VendorIn
|
|
|
242
235
|
| 1 | `VendorInvoice_Dispatcher` | Download vendor emails + attachments, enqueue |
|
|
243
236
|
| 2 | `VendorInvoice_DUPerformer` | Classify + extract invoice fields, send to Action Centre on low confidence |
|
|
244
237
|
| 3 | `VendorInvoice_OutputPerformer` | Post validated invoices to the ERP API |
|
|
245
|
-
| 4 | `
|
|
246
|
-
| 5 | `VendorInvoice_SharedUtils` | Shared vendor lookup + currency conversion helpers |
|
|
238
|
+
| 4 | `VendorInvoice_SharedUtils` | Shared vendor lookup + currency conversion helpers |
|
|
247
239
|
|
|
248
240
|
For RPA Library and RPA Test Automation projects in a Solution that are **not** queue-connected sub-projects of a Master Project, use the same short-name prefix but pick a role suffix that reflects the project's purpose (e.g., `_SharedUtils`, `_Regression`, `_SmokeTests`).
|
|
249
241
|
|
|
@@ -277,7 +269,6 @@ The defining criterion is **per-item independence**: one failing item must not b
|
|
|
277
269
|
| Performer (in-memory transactions or UI-row iteration, no Orchestrator queue) | **REFramework** | Each row / record is a transaction with independent success/failure; queue presence is not required to justify the framework |
|
|
278
270
|
| Dispatcher — atomic collect-then-commit (e.g., single SQL query, single folder scan) | **Sequence** | Collection is one unit of work; no per-item retry semantics required |
|
|
279
271
|
| Dispatcher — retryable items (e.g., paginated API, flaky source where individual pages/items can fail) | **REFramework** | Each retrieved item is itself a transaction; per-item retry + state tracking justify REFramework |
|
|
280
|
-
| Reporting (reads queue, generates output) | **REFramework** *(default)* or Sequence | Use REFramework when per-item reporting failures must be tracked, or when the reporting queue can exceed ~10 items per run (typical for daily/weekly aggregation over a Master Project). Use Sequence only for atomic end-of-run aggregation of a small, fixed set of items where a single failure can fail the whole run without loss. |
|
|
281
272
|
| Single Project (no queues, but iterates discrete items) | **REFramework** | REFramework gives per-item retry + state tracking even without a queue. Lifecycle just becomes Init → GetTransactionData (loads from memory / UI / file system) → Process → SetTransactionStatus. |
|
|
282
273
|
| Single Project (no iteration at all) | **Sequence** | Linear pipeline, no transactions, no retry semantics. |
|
|
283
274
|
| Process with an in-flight human approval / async wait (single process, not cross-product) | **Sequence or REFramework, + Persistence = YES** | Persistence is a modifier on the chosen framework, not a framework: suspend the job, release the robot, resume on Action Center completion — see [Long-running workflows](#long-running-workflows-persistence--action-center) |
|
|
@@ -288,31 +279,9 @@ The defining criterion is **per-item independence**: one failing item must not b
|
|
|
288
279
|
|
|
289
280
|
When REFramework is selected for a project, the project structure in §11 of the RPA template must use the REFramework folder layout (Init, GetTransactionData, Process states) instead of a custom framework.
|
|
290
281
|
|
|
291
|
-
###
|
|
292
|
-
|
|
293
|
-
**Scenario:** A web app shows a list of Work Items. The robot logs in, filters the list, then for each row: opens the WI, reads fields, computes an output, writes the result back, marks the WI processed. No Orchestrator queue. Volume is small (~15 items/day).
|
|
294
|
-
|
|
295
|
-
**Decision:** **REFramework.** Justification:
|
|
296
|
-
- Each WI row is a discrete unit of work with independent success/failure.
|
|
297
|
-
- A failed WI must not block the remaining items — REFramework's per-transaction exception handling delivers this for free.
|
|
298
|
-
- Per-item retry on system errors (selector failure, browser glitch) is the right behaviour — REFramework retries the failed transaction without restarting the run.
|
|
299
|
-
- Lower volume does not change the analysis. "Only 15 items" is irrelevant; the question is whether items are independent, not how many there are.
|
|
300
|
-
|
|
301
|
-
**Anti-pattern:** picking Sequence with a custom try/catch loop around the iteration. The custom loop will re-implement state tracking, retry counts, exception routing, and Init/teardown — all of which REFramework provides out of the box, more robustly.
|
|
302
|
-
|
|
303
|
-
**Sources of transactions per the Performer's `GetTransactionData`:**
|
|
304
|
-
- For this scenario: read the next row from the web UI's WI list (via UIA `NGetText` or table extraction).
|
|
305
|
-
- No queue dependency: `GetTransactionData` returns the next un-processed WI from the UI's current state.
|
|
306
|
-
|
|
307
|
-
### Anti-pattern: "no queue, so no REFramework"
|
|
308
|
-
|
|
309
|
-
Reasoning along the lines of "this process has ~15 items/day, no Orchestrator queue, no peak load — REFramework is overkill" is wrong on every count:
|
|
310
|
-
|
|
311
|
-
- Volume is not the criterion — independence is.
|
|
312
|
-
- Queue is not the criterion — independence is.
|
|
313
|
-
- REFramework's overhead is fixed (folder layout + states). The per-item benefits — retry, exception isolation, state tracking — apply whether items come from a queue or the UI.
|
|
282
|
+
### Independence, not volume or queues, decides
|
|
314
283
|
|
|
315
|
-
|
|
284
|
+
A robot that works ~15 work items a day from a web UI list, with no Orchestrator queue, is still REFramework: each item fails, retries and is tracked on its own, and `GetTransactionData` reads the next unprocessed item from the source itself. Rejecting REFramework on volume or queue absence and hand-writing a try/catch loop re-implements the framework's state tracking, retry counts, exception routing and Init / teardown, less robustly.
|
|
316
285
|
|
|
317
286
|
## Long-running workflows (persistence + Action Center)
|
|
318
287
|
|
|
@@ -320,6 +289,7 @@ RPA handles asynchronous human interaction **inside a single process** — do no
|
|
|
320
289
|
|
|
321
290
|
- **Mechanism:** Studio long-running workflow (Persistence activities — Create Form Task / Wait for Task and Resume). The job **suspends**, the robot is **released** (no license burned while waiting), and the job **resumes** — potentially on a different robot — when the Action Center task completes.
|
|
322
291
|
- **Use when:** one process needs an in-flight approval, data validation, or async wait (task completion, queue item, job) and the rest of the coordination is within that process.
|
|
323
|
-
- **Do NOT use when:** the wait spans **multiple products** (RPA + agents + APIs) or needs formal gateways/events — that is Maestro territory ([Product Selection Guide → Maestro disambiguation](product-selection-guide.md#maestro-disambiguation--bpmn-vs-flow-vs-case)).
|
|
292
|
+
- **Do NOT use when:** the wait spans **multiple products** (RPA + agents + APIs) or needs formal gateways/events — that is Maestro territory ([Product Selection Guide → Maestro disambiguation](../shared/product-selection-guide.md#maestro-disambiguation--bpmn-vs-flow-vs-case)).
|
|
293
|
+
- **A waiting job works one item.** A suspended job keeps every queue item it took In Progress, so a queue-triggered performer that can suspend takes one item per job, and its retry is the queue's: the item stays In Progress until the job resumes and finishes it — never mark it Successful before the wait. Several waits on one item (two validations in sequence) stay in one job; a wait on a stage the item has already left is a split (boundary (c)).
|
|
324
294
|
- **Identities & licensing:** record three separate decisions — the **start identity** (an attended user start is supported, not just unattended), the **resume identity** (typically an unattended robot; resume may land on a different robot than the start), and the **licensing implication** of each. Attended-start + unattended-resume is a valid, common shape (§11 Attendance column).
|
|
325
295
|
- **SDD impact:** Persistence = YES in §11 Project Mode Decision (framework stays Sequence/REFramework); mark suspend/resume points in the Workflow Inventory; the approval task is flagged as an Action Center touchpoint, not a `uipath-human-in-the-loop` task.
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# Scope Recommendation Guide
|
|
2
|
+
|
|
3
|
+
How `design` presents the product-selection outcome and maps it to SDD templates — read only by `design` (its § Read Plan names the sections). The selection logic itself: [product-selection-guide.md](../shared/product-selection-guide.md), [solution-composition-guide.md](solution-composition-guide.md).
|
|
4
|
+
|
|
5
|
+
## Template Mapping
|
|
6
|
+
|
|
7
|
+
### Single-product scope
|
|
8
|
+
|
|
9
|
+
Based on the Level 1 primary, select one template:
|
|
10
|
+
|
|
11
|
+
| Primary Product | Template |
|
|
12
|
+
|---|---|
|
|
13
|
+
| RPA Process, Library, Test Automation | `../assets/templates/rpa-sdd-template.md` |
|
|
14
|
+
| Maestro Flow | `../assets/templates/flow-sdd-template.md` |
|
|
15
|
+
| Maestro BPMN | `../assets/templates/bpmn-sdd-template.md` |
|
|
16
|
+
| Case Management | `../assets/templates/case-sdd-template.md` (task detail blocks: `../assets/templates/case-sdd-task-details-template.md`) |
|
|
17
|
+
| Agents | `../assets/templates/agent-sdd-template.md` |
|
|
18
|
+
| Coded Apps | `../assets/templates/coded-app-sdd-template.md` |
|
|
19
|
+
| API Workflows | `../assets/templates/api-workflow-sdd-template.md` |
|
|
20
|
+
|
|
21
|
+
> **Coded Functions are never a Level 1 primary and have no standalone template.** A Function's contract is the host template's `### Coded Functions` table (Flow / BPMN / Case / Agent templates carry it). In a Solution it is a project-list row with a build task routed to `uipath-functions`, but NO per-project SDD file. A request that is *only* a Function is a `decompose` single-skill deferral to `uipath-functions`.
|
|
22
|
+
|
|
23
|
+
### Solution scope (Level 1 = Solution or user picked Solution (customize))
|
|
24
|
+
|
|
25
|
+
A Solution produces **one SDD file per project in the Level 2.5 unified project list** plus a **solution overview SDD** that ties them together. Use the kebab-case project name from the unified list as the filename.
|
|
26
|
+
|
|
27
|
+
| Output file | Template | How many |
|
|
28
|
+
|---|---|---|
|
|
29
|
+
| `<SOLUTION_NAME_KEBAB>-solution-sdd.md` | Solution overview (see structure below) | Exactly 1 |
|
|
30
|
+
| `<PROJECT_NAME_KEBAB>-sdd.md` | Per-project — pick the template matching that project's product | One per project in the unified list |
|
|
31
|
+
|
|
32
|
+
For RPA projects in the Solution, use the RPA template once per RPA *group* — if the Level 2.5 Part A decomposition produced a Master Project (e.g., Dispatcher + Performer + Reporting), those sub-projects share one RPA SDD file (§10/§11 cover the sub-projects). If two RPA projects are unrelated (e.g., a Library not called by the Performer), they each get their own RPA SDD file.
|
|
33
|
+
|
|
34
|
+
**Component rows get no SDD file.** Project-list rows whose product is a component (Coded Function, IXP model, custom connector) do NOT get a per-project SDD file — their contract is the host SDD's table (`### Coded Functions`, `### IXP / Document Understanding Models`, connector rows) plus their row in the solution overview's Project Inventory. The genome makes each a component of its own from those rows, built before its consumers.
|
|
35
|
+
|
|
36
|
+
### Solution overview SDD structure
|
|
37
|
+
|
|
38
|
+
The solution overview SDD includes:
|
|
39
|
+
|
|
40
|
+
1. Solution Overview (objective, business context)
|
|
41
|
+
2. Planner Handoff — solution-level handoff header with `Project SDD role: root`, `Solution ID: <SOLUTION_NAME_KEBAB>`, `Solution root SDD: <its own filename>`, plus cross-project ordering notes (integrated components built before their consumers) for the solution's one genome to carry. Position 2 keeps the header inside the first ~50 lines § Choosing the Verb reads — do not move it lower. Do not include a task list here.
|
|
42
|
+
3. Project Inventory — the unified project list from Level 2.5 Part B
|
|
43
|
+
4. Cross-Project Data Flow — how projects call each other (Flow → RPA, Agent tool → API Workflow, RPA Performer → Library)
|
|
44
|
+
5. Shared Assets & Queues — assets, credentials, and queues referenced by more than one project
|
|
45
|
+
6. Per-Project SDD Index — one row per project: its SDD as a relative markdown link to `<PROJECT_NAME_KEBAB>-sdd.md`, never a bare filename, + one-line scope. The genome's SDD fingerprint finds the child SDDs by these links.
|
|
46
|
+
|
|
47
|
+
Put the `<!-- planner-sdd-body:v1 -->` line on its own directly above item 3: items 1–2 are the overview's front matter ([caller-request-guide.md](caller-request-guide.md) § SDD Signals a Caller's Host May Read).
|
|
48
|
+
|
|
49
|
+
## Gap Handling for Agent / Coded App
|
|
50
|
+
|
|
51
|
+
When the primary product is Agents or Coded Apps and the PDD is missing required information ([product-selection-guide.md](../shared/product-selection-guide.md) § Signals per product):
|
|
52
|
+
|
|
53
|
+
1. Ask a structured question with the numbered-choice format:
|
|
54
|
+
|
|
55
|
+
> The PDD describes <PRODUCT>-specific capabilities, but requirements are missing for: <LIST_GAPS>.
|
|
56
|
+
>
|
|
57
|
+
> 1. **Proceed with <PRODUCT>** *(recommended)* — I will ask follow-up questions to fill the gaps
|
|
58
|
+
> 2. **Use a different product** — I will ask which product to use instead
|
|
59
|
+
|
|
60
|
+
2. If user chooses **option 1** → ask again with a batch of product-specific gap-filling structured questions (numbered, with defaults where possible) — keep a prompt to at most 4 questions, so split into two batched prompts when more than 4 gaps remain
|
|
61
|
+
|
|
62
|
+
3. If user chooses **option 2** → ask a structured question for the fallback:
|
|
63
|
+
|
|
64
|
+
> Which product should I use instead?
|
|
65
|
+
>
|
|
66
|
+
> 1. **RPA Process** — standard UI/data automation
|
|
67
|
+
> 2. **Maestro Flow** — orchestrate multiple automations
|
|
68
|
+
> 3. **Case Management** — staged lifecycle with SLA
|
|
69
|
+
> 4. **Stop** — do not generate an SDD
|
|
70
|
+
|
|
71
|
+
4. Re-run product selection with the fallback as primary
|
|
72
|
+
|
|
73
|
+
Do not auto-fallback. The user must choose explicitly.
|
|
74
|
+
|
|
75
|
+
## Presenting the Recommendation
|
|
76
|
+
|
|
77
|
+
The recommendation screen always puts the **recommended scope at the top** and offers **single-product alternatives plus "Solution (customize)"** below. The recommended scope is determined by Level 1:
|
|
78
|
+
|
|
79
|
+
- If Level 1 produced a single product → the recommendation is that single product (with its Level 1.5 sub-type if RPA).
|
|
80
|
+
- If Level 1 produced Solution (one or more Solution Signals matched) → the recommendation is the **pre-composed Solution**, with the pre-checked product list from Pass A of Level 1.75.
|
|
81
|
+
|
|
82
|
+
### Summary block
|
|
83
|
+
|
|
84
|
+
Emit this block as the Phase 1 summary content:
|
|
85
|
+
|
|
86
|
+
```markdown
|
|
87
|
+
## Recommended Scope
|
|
88
|
+
**Recommendation:** <SINGLE_PRODUCT | SOLUTION(<PRODUCT_1>, <PRODUCT_2>, ...)>
|
|
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>
|
|
91
|
+
**Need profile:** <ONE_LINE_CORE_NEED_AND_TARGET_KPI — from design-guide.md Step 3.5>
|
|
92
|
+
**Reasoning:**
|
|
93
|
+
- <NEED_FACTOR — determinism / input structure / integration surface / coordination shape / volume / risk / trigger> → <PRODUCT>
|
|
94
|
+
- ...
|
|
95
|
+
**Alternatives considered:**
|
|
96
|
+
- <REJECTED_OPTION> — rejected because <REASON>
|
|
97
|
+
- ...
|
|
98
|
+
|
|
99
|
+
## Project List
|
|
100
|
+
<UNIFIED_PROJECT_LIST_FROM_LEVEL_2.5_PART_B — include Product, Sub-type, Role, Framework, Input/Output Queue columns>
|
|
101
|
+
|
|
102
|
+
## Queue Architecture (RPA Master Project rows only)
|
|
103
|
+
<QUEUE_TABLE_OR_N/A>
|
|
104
|
+
**Boundaries named:** <BOUNDARY_PER_SPLIT_PER_RPA_PROCESS_PROJECT_OR_N/A>
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**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
|
+
|
|
109
|
+
### Confirmation question
|
|
110
|
+
|
|
111
|
+
Right after emitting the summary, confirm the scope via a structured question with the numbered-choice format. **The recommended option is always item 1.**
|
|
112
|
+
|
|
113
|
+
> I recommend the following scope for this SDD. Which should I use?
|
|
114
|
+
>
|
|
115
|
+
> 1. **<RECOMMENDED_SCOPE>** *(recommended)* — <ONE_LINE_REASON>
|
|
116
|
+
> 2. **<STRONGEST_SINGLE_PRODUCT_ALTERNATIVE>** — <ONE_LINE_REASON_OR_TRADEOFF>
|
|
117
|
+
> 3. **<SECOND_SINGLE_PRODUCT_ALTERNATIVE_OR_OMIT_IF_NONE>** — <ONE_LINE_REASON>
|
|
118
|
+
> 4. **Solution (customize)** — I will ask you to check every product the Solution should include
|
|
119
|
+
|
|
120
|
+
When the recommendation is already a Solution, still include **Solution (customize)** as an option so the user can adjust the composition. When the recommendation is a single product, **Solution (customize)** lets the user upgrade to a multi-project design.
|
|
121
|
+
|
|
122
|
+
### Customize branch
|
|
123
|
+
|
|
124
|
+
If the user picks **Solution (customize)**:
|
|
125
|
+
|
|
126
|
+
1. Run Level 1.75 Pass A (paired multi-select) — pre-check the recommended products from the default composition (or from the signals if the default was single-product).
|
|
127
|
+
2. Run Level 1.75 Pass B — resolve quantities per product.
|
|
128
|
+
3. Run Level 1.75 Pass C — sub-type per RPA project.
|
|
129
|
+
4. Run Level 2.5 to produce the unified project list.
|
|
130
|
+
5. Re-emit the summary block with the customized project list, then re-run the confirmation question. The customized composition replaces option 1 (still marked *recommended*) so the user can confirm or customize again (max 3 revisions — after that, proceed with the latest composition and tag disagreements as `[SME REVIEW]`).
|
|
131
|
+
|
|
132
|
+
### If the user disagrees with a single-product recommendation
|
|
133
|
+
|
|
134
|
+
Re-run Level 1 (and Level 1.5 if the chosen fallback is RPA) with the user's preference as the forced primary, then re-present.
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
# SDD Writing Guide — Phase 3 of `design`
|
|
2
|
+
|
|
3
|
+
Phase 3 of `design` writes the full SDD to disk incrementally, resolves the SME items, checks it against its template and flips it to `ready`; the next turns write its genome and, when the request is to build, hand it to `uipath-genome`. Reached from [design-guide.md](design-guide.md) once Phase 2 is approved — that guide's § Verb Rules and its Phase 1 / Phase 2 results apply throughout. Read this guide whole before the first Phase 3 write.
|
|
4
|
+
|
|
5
|
+
## Read Plan
|
|
6
|
+
|
|
7
|
+
| Phase | Condition | Read |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| Step 1 | filling RPA §4 Business Rules or BPMN §5 Gateways, and [business-rules-guide.md](business-rules-guide.md) is not yet open from Phase 2 | [business-rules-guide.md](business-rules-guide.md) |
|
|
10
|
+
| Step 2 item 6 | finalizing a Case Management draft | [case-review-and-conformance-guide.md](case-review-and-conformance-guide.md) § Finalizing a Case Draft |
|
|
11
|
+
| Step 2 item 8 | a Case Management SDD | [case-review-and-conformance-guide.md](case-review-and-conformance-guide.md) § SDD Conformance Checklist |
|
|
12
|
+
| Step 3, next turn | the SDD is `Status: ready` and no build skill handed the design over | [author-guide.md](../author/author-guide.md) whole — the `author` verb; its § Read Plan names the rest |
|
|
13
|
+
| § Client Word Document | the user asks for the client-facing Word SDD / ASDD (their official template, a `.docx`) | [asdd-crosswalk-guide.md](asdd-crosswalk-guide.md) whole |
|
|
14
|
+
|
|
15
|
+
## Phase 3 — Full SDD Generation
|
|
16
|
+
|
|
17
|
+
### Step 0: Write the SDD Skeleton to Disk — Hard Gate
|
|
18
|
+
|
|
19
|
+
**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.
|
|
20
|
+
|
|
21
|
+
**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)).
|
|
22
|
+
|
|
23
|
+
The skeleton write contains, in this order:
|
|
24
|
+
|
|
25
|
+
1. The title/header + `## Document History`.
|
|
26
|
+
2. The `<!-- planner-handoff:v1 -->` marker **and** the `## Planner Handoff` header, with `Status: draft` and `Template validation: pending` (full field list in Step 2 item 2). Both signals MUST be in this first write so detection works even on a partial file: the marker says "planner SDD", the `Status` field says whether it is consumable.
|
|
27
|
+
3. The `## Decisions Made` block (autonomous mode) and the `## Recommended Scope` block (both modes) — formats in Step 2 item 3.
|
|
28
|
+
4. Every Phase 1 / Phase 2 section you already have.
|
|
29
|
+
|
|
30
|
+
Then append the remaining Phase 3 sections to that file with follow-up file edits or writes **as you generate them** — do not buffer them in context and do not rewrite the whole file per section.
|
|
31
|
+
|
|
32
|
+
**Rationale.** A turn can end before it finishes — an interrupt, a context limit, a host time limit. An incrementally-written file leaves a usable SDD on disk; a buffered one leaves nothing at all. Step 1.5 (SME resolution) and the Step 2 superset check still run — they patch and verify the file already on disk rather than gating the first write. Flipping `Status` to `ready` is the LAST write of `design`, so an interrupted run leaves `draft` on disk and `author` refuses to write its genome.
|
|
33
|
+
|
|
34
|
+
### Step 1: Generate Remaining Sections
|
|
35
|
+
|
|
36
|
+
**Defaults fill gaps, never override the source.** A `[DEFAULT]` never contradicts a value the source states (a schedule, an order of steps, a system it names) and never adds a limit nothing in the source implies (a run cap, a stop count, a polling cadence) — the build skill's own defaults cover those. A step order the source states is kept; a reorder is an `[SME REVIEW]` alternative, never the applied default.
|
|
37
|
+
|
|
38
|
+
Fill in all sections of the chosen template not covered in Phase 1 or Phase 2. Section assignments per phase:
|
|
39
|
+
|
|
40
|
+
**Phase 1 produces (for all templates):**
|
|
41
|
+
- Header & Document History (process name, today's date, version 1.0). The Case template's title heading is `# SDD — {Case Name}`.
|
|
42
|
+
- Overview section (§1)
|
|
43
|
+
- Process/Flow/Lifecycle diagram (§2 for most templates)
|
|
44
|
+
- Detailed steps / nodes description where applicable
|
|
45
|
+
|
|
46
|
+
**Phase 2 produces:** See [design-guide.md](design-guide.md) Phase 2 Step 2 (template-specific architectural core)
|
|
47
|
+
|
|
48
|
+
**Phase 3 produces:** All remaining sections — typically:
|
|
49
|
+
- Business Rules (RPA, Case). RPA §4: [Business Rules Guide](business-rules-guide.md)
|
|
50
|
+
- Value Mappings (RPA)
|
|
51
|
+
- Exception / Error Handling (all)
|
|
52
|
+
- Credentials & Assets (RPA)
|
|
53
|
+
- Deployment Environment (RPA — robot type, Studio/Robot versions, VM hosts, screen resolution, scalability). Fill the Orchestrator row from the Step 0 delivery model (Cloud / Automation Suite + version / standalone); fill `[SME REVIEW]` for the rest when the PDD does not specify — these fields typically come from the deployment team, not the PDD. Never invent VM names, version pins, or robot types.
|
|
54
|
+
- Triggers (Flow)
|
|
55
|
+
- Evaluation Criteria (Agents)
|
|
56
|
+
- **Non-Functional Requirements — always (best practice).** Security (credentials in Orchestrator / secret assets, least-privilege IS connection scope, don't expose entity calls in the network trace), performance (DB vs file, webhooks vs polling, avoid license-consuming Windows processes), scalability, availability, and logging / monitoring. Applies to every product; the API Workflow template already carries §Performance & Scaling + §Security & Authentication — other templates capture the equivalent under a Non-Functional Requirements subsection.
|
|
57
|
+
- **Reusable Components / Libraries — always (best practice).** List reused existing shared assets (tenant Libraries discovered in Phase 1 Step 2.5, Marketplace / org components, existing connectors) AND new reusable assets to build (shared workflows → an RPA **Library** routed to `uipath-rpa`; a missing integration → a **custom connector** routed to `uipath-connector-builder`), each built before its consumers. Assets used by 2+ projects live at the parent-folder / solution level. See [Component Placement Guide → Reusability & shared assets](../shared/component-placement-guide.md#reusability--shared-assets).
|
|
58
|
+
- **Testing Strategy — always thorough.** Cover happy path, edge cases, error scenarios, and (for Master Projects) end-to-end pipeline tests. Do NOT ask the user about test depth — depth is non-negotiable here. Implementation specialists may scope tests down at execution time if the user wants a quick MVP.
|
|
59
|
+
- **Next Steps — points at the build.** The genome `author` writes from the `ready` SDD is the implementation input; `design` writes no task list.
|
|
60
|
+
|
|
61
|
+
> **What Phase 3 does NOT produce:** an Implementation Plan section or a task list for implementation work.
|
|
62
|
+
> It creates no implementation tasks with the task-list tool.
|
|
63
|
+
> The genome `author` writes from the `ready` SDD is the implementation input. The SDD's `## Next Steps` section marks that boundary, and that is the entire `design` output surface.
|
|
64
|
+
|
|
65
|
+
### Step 1.5: Resolve SME Review Items
|
|
66
|
+
|
|
67
|
+
Before finalizing the SDD (the skeleton is already on disk from Step 0), collect all `[SME REVIEW]` items. One item is one decision: the same gap marked in several sections is asked once. In autonomous mode, ask only the items with no defensible default (the candidates for `blocking`, rule 5), in one prompt; every other item stays in the Action Required table with its default applied. If there are any to ask:
|
|
68
|
+
|
|
69
|
+
> **Batching rule — 4-option cap per structured question.** Give each structured question at most 4 options. If there are 1-4 items, send one question. If there are 5-8 items, send a single structured prompt with **two questions** (each ≤4 options), grouped by SDD section. If there are more than 8 items, send one structured prompt per batch of up to 8 (two questions each), waiting for answers between batches. **Do not flatten >4 items into one question** — hosts that cap options reject it.
|
|
70
|
+
|
|
71
|
+
1. Batch them into one or more structured questions using numbered-choice format. Example for 1-4 items:
|
|
72
|
+
|
|
73
|
+
> Before I finalize the SDD, these items need your input:
|
|
74
|
+
>
|
|
75
|
+
> 1. **<ITEM_NAME>** (<SDD_SECTION>) — <QUESTION>. Default: `<DEFAULT_VALUE>`
|
|
76
|
+
> 2. **<ITEM_NAME>** (<SDD_SECTION>) — <QUESTION>. Default: `<DEFAULT_VALUE>`
|
|
77
|
+
>
|
|
78
|
+
> You can answer each, accept all defaults by replying "use defaults", or skip specific items.
|
|
79
|
+
|
|
80
|
+
2. Update the SDD sections with the user's answers.
|
|
81
|
+
3. If the user partially answers or asks follow-ups, do one more round (max 2 rounds total). After 2 rounds, keep remaining unresolved items as `[SME REVIEW]`, apply each item's recorded default in its section, and proceed to Step 2.
|
|
82
|
+
4. Any items the user explicitly skips remain as `[SME REVIEW]` in the final file with their defaults applied.
|
|
83
|
+
5. **Classify every surviving item:** `default-carried` (a recorded default is applied in its section — the normal case) or `blocking` — only when no defensible default exists AND the answer changes the architecture: the source says the platform is self-hosted but not which one (Automation Suite or standalone) while a selected product's availability differs between them — an unknown delivery model with no such signal is `unspecified — assumed cloud`, default-carried ([product-selection-guide.md](../shared/product-selection-guide.md) § Constraint Gate); an in-scope system has no access route the source or a default can supply (no API, no UI and no file interface known); the source's scope statements contradict each other and Level 0/1 could not resolve them; the user rejected the Level 1 recommendation without choosing an alternative. An access *detail* that is unknown (a mail protocol, an API version) takes its default and is default-carried. An item answered with "use defaults" stays `[SME REVIEW]`, default-carried: a default nobody with business knowledge confirmed is still a gap. Record the class in the Action Required table (Step 2 item 4). Blocking items keep the SDD at `Status: draft` (Step 2 item 8 rule 4).
|
|
84
|
+
6. If there are zero `[SME REVIEW]` items, skip this step entirely.
|
|
85
|
+
|
|
86
|
+
This step runs in BOTH Autonomous and Interactive modes — it is a hard blocker to producing a complete SDD. A caller's design request asks nothing here: every item keeps its default and class, and `blocking` items go to the caller in the result ([caller-request-guide.md](caller-request-guide.md) § The Run).
|
|
87
|
+
|
|
88
|
+
### Step 2: Finalize the SDD File(s)
|
|
89
|
+
|
|
90
|
+
1. Assemble all sections in template order. The Step 0 skeleton already holds the header + handoff + `## Decisions Made` / `## Recommended Scope` + Phase 1/2 sections — finalize it by appending/patching the remaining sections in template order rather than rewriting from scratch.
|
|
91
|
+
2. **Fill the `## Planner Handoff` header** that appears near the top of every template. Every template places it after `## Document History`. This is the load-bearing detection contract. § Choosing the Verb accepts **either** the heading OR the adjacent `<!-- planner-handoff:v1 -->` HTML marker as a detection signal — both ship in every template; keep both in the generated file (so a later session, or a hand-written SDD, is still recognised as an SDD):
|
|
92
|
+
|
|
93
|
+
The template holds the table; these fields carry rules beyond their placeholder:
|
|
94
|
+
|
|
95
|
+
- **Status** — the first incremental write stamps `draft`; flip to `ready` ONLY after Step 1.5 ran (every surviving SME item classified `default-carried`) AND the item 8 template-superset check passes. A `blocking` SME item keeps `draft`. The genome is written only from `ready`.
|
|
96
|
+
- **Execution autonomy**, **Delivery model** — from Phase 1 Step 0; append the Suite version when known (`automation-suite 2025.1`). `Execution autonomy` governs only how the SDD and its genome are written — checkpoint stops, Decisions Made, the genome's follow-up rounds; it never answers or waives a question of `uipath-genome`.
|
|
97
|
+
- **Solution root SDD**, **Solution ID**, **Project SDD role**, **Independently executable** — solution scope ONLY, written into EVERY SDD (the root names itself; `root` in the overview, `child` in each per-project SDD; `Independently executable: no` on children, so a child is built only through the Solution root's genome). Omit all four for single-product.
|
|
98
|
+
- **Genome** — never written by `design`: the genome turn adds it as the table's last row (Step 3 item 3).
|
|
99
|
+
- **Template validation** — set to `passed` as soon as the item 8 template-superset check passes, whatever the `Status`: it records that every required section is present. A `draft` held by a blocking item is complete and reads `passed`; only an unfinished run leaves `pending`.
|
|
100
|
+
|
|
101
|
+
Do NOT rename the heading or strip the marker. They are redundant on purpose — keeping both means a hand-edit of one signal does not silently break SDD detection.
|
|
102
|
+
|
|
103
|
+
**Keep the `<!-- planner-sdd-body:v1 -->` line** the template places directly above the first body section, after the Table of Contents. It is not a template instruction: a caller's host reads every H2 above it as front matter ([caller-request-guide.md](caller-request-guide.md) § SDD Signals a Caller's Host May Read).
|
|
104
|
+
|
|
105
|
+
3. **Autonomous-mode Decisions Made block.** If `Execution autonomy: autonomous`, insert a `## Decisions Made` block immediately after the Planner Handoff header and before any `Action Required — SME Review Items` block or product body. It sits before the Table of Contents in every template. The block makes the highest-leverage architectural picks scannable in the SDD's first screenful so a reviewer can spot a wrong call without reading the whole document. In `Execution autonomy: interactive`, this block is optional — the user already reviewed each decision at the Phase 1/Phase 2 checkpoints. Skip the block for interactive runs.
|
|
106
|
+
|
|
107
|
+
The template holds the table, row 1 always **Platform constraints**.
|
|
108
|
+
|
|
109
|
+
Rules for the block:
|
|
110
|
+
- Each "Picked" cell is a single concrete value, not a placeholder.
|
|
111
|
+
- Each "One-sentence reason" is ≤ 20 words and cites the PDD signal or process characteristic that drove the pick.
|
|
112
|
+
- 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).
|
|
113
|
+
- Row 1 always appears, even when nothing was blocked (`cloud; no products blocked`) — the reviewer must see which platform the architecture assumes.
|
|
114
|
+
- For Solution scope, rows 3-5 repeat per RPA project (use a sub-table or one row per project — keep concise).
|
|
115
|
+
- 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.
|
|
116
|
+
- 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.
|
|
117
|
+
|
|
118
|
+
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.
|
|
119
|
+
|
|
120
|
+
4. If any `[SME REVIEW]` items remain, add a consolidated warning section after the Planner Handoff header (and after the `## Decisions Made` / `## Recommended Scope` blocks if present) and before the product body. This sits before the Table of Contents in every template:
|
|
121
|
+
|
|
122
|
+
```markdown
|
|
123
|
+
## Action Required — SME Review Items
|
|
124
|
+
|
|
125
|
+
| # | Section | Item | Question | Default applied | Blocking |
|
|
126
|
+
|---|---|---|---|---|---|
|
|
127
|
+
| 1 | <SECTION> | <ITEM> | <QUESTION> | <DEFAULT> | <yes/no> |
|
|
128
|
+
|
|
129
|
+
> These items are marked `[SME REVIEW]` in the document. Default-carried items (Blocking = no) do not block the genome or the build — 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`.
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
5. **Length follows content, never padding.** Every step, rule, exception, application and example the source states is kept — business rules all of them ([business-rules-guide.md](business-rules-guide.md) § 4). What is cut is restatement: a fact lives in one section and others name it; no template instruction, placeholder or empty example row survives; a table row replaces prose that says the same; a section the template makes conditional and whose condition does not hold is omitted.
|
|
133
|
+
6. **Re-run handling — already resolved at Step 0.** This check runs BEFORE the Step 0 skeleton write (that is the write that can clobber an existing file); by the time you reach here the answer is already applied, so do not re-ask. The question, for reference and for the Step 0 gate: if `<PROCESS_NAME_KEBAB>-sdd.md` already exists, ask the user with a structured question:
|
|
134
|
+
|
|
135
|
+
First read the existing file's handoff `Status`:
|
|
136
|
+
|
|
137
|
+
- **`Status: ready` (or no Status field — legacy):**
|
|
138
|
+
|
|
139
|
+
> An SDD already exists at `<sdd-path>`. How should I proceed?
|
|
140
|
+
>
|
|
141
|
+
> 1. **Keep the existing SDD and stop** *(recommended)* — build from its genome, or run `author` on it when it has none
|
|
142
|
+
> 2. **Regenerate from the PDD** — overwrites the existing SDD
|
|
143
|
+
|
|
144
|
+
- **`Status: draft` (interrupted run):**
|
|
145
|
+
|
|
146
|
+
> An unfinished SDD draft exists at `<sdd-path>` (interrupted generation). How should I proceed?
|
|
147
|
+
>
|
|
148
|
+
> 1. **Resume generation** *(recommended)* — finish the remaining sections, resolve SME items, run the completeness check, then flip Status to ready
|
|
149
|
+
> 2. **Regenerate from the PDD** — discard the draft and start over
|
|
150
|
+
> 3. **Generate alongside as `<name>-v2-sdd.md`** — for diffing
|
|
151
|
+
|
|
152
|
+
Default is "keep" — overwriting an SDD the user might have hand-edited is the more destructive action.
|
|
153
|
+
- **A draft at another path to finalize** (`<name>.draft.md`, or a draft the user names): no question. The draft is the settled design — read it whole, write the final at its basename minus `.draft` (a path the user names wins) from Step 0 onwards, and keep the draft on disk. Never add, drop or rename a business element: every element of the draft's inventory (projects, steps, stages, tasks, variables, rules) and every expression appears in the final, verbatim. The product guide's draft repairs are the only other change (Case Management: [case-review-and-conformance-guide.md](case-review-and-conformance-guide.md) § Finalizing a Case Draft).
|
|
154
|
+
|
|
155
|
+
7. Write the output file(s) to the current working directory. If the user specified an output path for the SDD, use it instead of these defaults:
|
|
156
|
+
- **Single-product scope:** one file at `<PROCESS_NAME_KEBAB>-sdd.md`.
|
|
157
|
+
- **Solution scope:** the solution overview at `<SOLUTION_NAME_KEBAB>-solution-sdd.md` PLUS one per-project SDD at `<PROJECT_NAME_KEBAB>-sdd.md` for each project in the unified project list. Put the `[SME REVIEW]` warning block in the solution overview AND in any per-project file where a review item lives in that project. Each per-project SDD gets its own `## Planner Handoff` header.
|
|
158
|
+
|
|
159
|
+
8. **Template-superset check (mandatory before the item 9 summary).** After writing each SDD file, re-read it and extract every H2 (`## `) and H3 (`### `) heading. Compare against the template's Table of Contents and required subsections. The generated SDD's heading set MUST be a superset — extra subsections are fine, missing template sections are an SDD defect. A template heading is not required when the template itself makes it conditional: an alternative the design did not pick ("Generate EITHER Option A OR Option B — delete the other"), and a subsection whose own note sets a condition that does not hold ("Include only when…", "omit when…", "Master Project only"). A subsection the template repeats per sub-project ("repeat this section per sub-project") may sit one heading level deeper. Every other template H2 and H3 is required.
|
|
160
|
+
|
|
161
|
+
Minimum required H2 headings per template:
|
|
162
|
+
- **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
|
+
- **Other templates:** every H2 the template's Table of Contents lists.
|
|
165
|
+
|
|
166
|
+
The SDD's own Table of Contents then lists exactly the H2 sections the SDD has: an omitted conditional section leaves no entry behind.
|
|
167
|
+
|
|
168
|
+
For any missing required H2:
|
|
169
|
+
1. Regenerate that section from the template + Phase 1 extraction data + Phase 2 architecture.
|
|
170
|
+
2. If the template's contents for that section depend on a Phase 1 / Phase 2 input that is genuinely absent (e.g. §4 Business Rules but the PDD has zero rule signals), emit the section with an explicit "No business rules extracted from the PDD" note plus an `[SME REVIEW]` row asking the user to supply any.
|
|
171
|
+
3. Never silently drop a section.
|
|
172
|
+
4. **Ready flip — the final write of `design`.** When every required heading is present and every remaining `[SME REVIEW]` item is classified `default-carried` (Step 1.5 rule 5), update the handoff: `Status: ready` (`Template validation: passed` is already set — item 2). Open default-carried items do NOT block ready — they gate production sign-off, not the genome or the build. Any `blocking` item keeps `Status: draft` with `Template validation: passed`; the item 9 summary names it and asks. Skipping the flip leaves the file at `draft` and `author` will refuse to write its genome.
|
|
173
|
+
|
|
174
|
+
Common slip-fail: skipping §4 Business Rules because the PDD has no dedicated "Business Rules" section. Rules are usually buried in "Remarks", step descriptions, or screenshots — the PDD analysis guide's "Embedded business rules" pointer applies. Treat zero rules in §4 as a regeneration trigger, not a finished section.
|
|
175
|
+
|
|
176
|
+
9. Output a summary in the conversation. A caller's design request replaces it with the `planner-design-result: v1` block, its prose in the request's `audience` ([caller-request-guide.md](caller-request-guide.md) § The Result):
|
|
177
|
+
|
|
178
|
+
```markdown
|
|
179
|
+
## SDD Generated
|
|
180
|
+
|
|
181
|
+
<FILENAME_1> — <COUNT> sections, <LINE_COUNT> lines
|
|
182
|
+
<FILENAME_2> — <COUNT> sections, <LINE_COUNT> lines
|
|
183
|
+
...
|
|
184
|
+
|
|
185
|
+
<SME_REVIEW_COUNT> open SME review items (if any — list each with its class and default).
|
|
186
|
+
|
|
187
|
+
**Next — branch on the handoff `Status`:**
|
|
188
|
+
- `ready` — `design` is complete and the SDD is on disk. The genome is written from it on the next turn (Step 3), then `uipath-genome` builds it when the request is to build; open default-carried SME items travel into the genome as `*[Inferred]*` assumptions — confirm them before production. A design a build skill handed over gets no genome.
|
|
189
|
+
- `draft` (blocking SME items) — Blocked on: <BLOCKING_ITEMS>. Answer these and the SDD finalizes to `ready`; no genome is written until then.
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Step 3: Next Turns — the Genome, then the Build
|
|
193
|
+
|
|
194
|
+
**A caller's request with `stop-after: sdd` skips this whole step**, the turn boundary included: its result ends the run in the same turn and the caller continues ([caller-request-guide.md](caller-request-guide.md)).
|
|
195
|
+
|
|
196
|
+
The SDD is the deliverable of `design`. **Do not generate an Implementation Plan section inside the SDD.
|
|
197
|
+
Do not create implementation tasks with the task-list tool during `design`.
|
|
198
|
+
Do not start executing.**
|
|
199
|
+
|
|
200
|
+
> **The SDD write is a turn boundary — do not begin the genome or the build in the same turn as `design`.** Once the SDD is on disk, the superset check has passed, and the Step 2 item 9 summary is emitted, that is the end of the current turn. Continue on the **next** turn with the sequence below. Rationale: `design` (read PDD + guides, author §1–§18), `author` (read the SDD, write and self-review the genome) and the build (`uipath-genome`: configuration questions, then every component through its owning skill) are each heavy; stacking two of them in one unbroken autonomous turn is what pushes a turn past the host's time or context limit and loses the whole run. Yielding after each durable write keeps each turn bounded: a turn that ends early still leaves the SDD on disk. This is a turn checkpoint, **not** a structured question — do not prompt the user; simply let the turn end after the summary.
|
|
201
|
+
|
|
202
|
+
Then continue:
|
|
203
|
+
|
|
204
|
+
1. **`Status: draft`** (a blocking SME item) → no genome and no build. The item 9 summary names the blocking items. The turn that receives the user's answers patches them into the SDD, reruns the superset check and flips it to `ready` as its last write, then ends; the genome (item 3) runs on the following turn.
|
|
205
|
+
2. **A design a build skill handed over** → no genome and no build: § Design Handed Over by a Build Skill returns it to the caller.
|
|
206
|
+
3. **Next turn — the genome.** When the next message asks for an SDD change, apply it to the SDD first (`revise`: change only the sections the request touches, then rerun Step 2 items 8 and 9); the genome follows the revised SDD. Run the `author` verb on the `ready` SDD only when no genome exists yet — its `Genome` handoff row is missing or names no file on disk ([genome-from-sdd-guide.md](../author/genome-from-sdd-guide.md)); an existing genome is updated through [§ Keeping the Genome Current](#keeping-the-genome-current) (`edit`), never rewritten by `author`. That guide's items 2 and 7 set the follow-up rounds, the genome's name and the `Genome` handoff row. Write the genome even when `uipath-genome` is not installed, and say that building from it needs `uipath-genome`. The genome write is a turn boundary too: end the turn after `author`'s summary.
|
|
207
|
+
4. **Turn after — the build, or stop.** The request's intent decides, never the execution mode — in both modes:
|
|
208
|
+
- The intent implies implementation ("create / build / implement / set up / make", "so we can build it", "ready to build") → invoke `uipath-genome` with `build "<GENOME_MD>"` and the user's build request quoted verbatim on the turn after the genome, without asking — do not add a "shall I build?" question here. It asks its own configuration questions, builds every component through its owning skill and ends with the hand-off folder. A request that also asks to publish or deploy follows [SKILL.md](../../SKILL.md) § Chaining. `uipath-genome` not installed → stop after the genome; `author`'s summary says the build needs it.
|
|
209
|
+
- The user only asked to "design / architect / generate an SDD", or the intent is unclear → stop after the genome in either mode; the SDD and the genome are the deliverable. Offer the build in one line of `author`'s summary.
|
|
210
|
+
|
|
211
|
+
## Keeping the Genome Current
|
|
212
|
+
|
|
213
|
+
An SDD change — a `design` revise (a `revise:` caller request, a design change routed from a designed genome, an SDD change asked for after the genome is written) or a user's edit to the SDD the planner is told about — on an SDD whose `Genome` handoff row (the root's, for a solution) names a genome on disk ends the same run with `edit` "The SDD was revised: update the genome" ([edit-guide.md](../edit/edit-guide.md)) and its strict check ([SKILL.md](../../SKILL.md) § Check). A caller's request with `stop-after: sdd` ends at its result instead. An SDD whose `Genome` row is missing, or names no file on disk, gets its genome through Step 3.
|
|
214
|
+
|
|
215
|
+
## Gap Markers
|
|
216
|
+
|
|
217
|
+
`[DEFAULT]` and `[SME REVIEW]` are the entire gap vocabulary of an SDD and a plan ([SKILL.md](../../SKILL.md) Critical Rule 6).
|
|
218
|
+
|
|
219
|
+
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]`.
|
|
220
|
+
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.
|
|
221
|
+
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)).
|
|
222
|
+
|
|
223
|
+
## Design Handed Over by a Build Skill
|
|
224
|
+
|
|
225
|
+
A build skill that finds no SDD to build from hands its request here (`uipath-maestro-case`: SKILL.md Choosing the Verb item 3), in the same conversation. `design` runs as for any request, with three differences:
|
|
226
|
+
|
|
227
|
+
1. **The output path is the caller's** — `sdd.md` at the working root for `uipath-maestro-case`. Never overwrite an existing file there: stop and say it exists.
|
|
228
|
+
2. **The Phase 2 Step 5 review carries the caller's build options** (case: [case-review-and-conformance-guide.md](case-review-and-conformance-guide.md) § Presenting the Case Design). The answer is the build consent; it is never asked again.
|
|
229
|
+
3. **The write does not end the turn and gets no genome:** after the `ready` flip, the caller's build starts in this conversation
|
|
230
|
+
(`uipath-maestro-case`: `uip solution init` and its Phase 1),
|
|
231
|
+
verifying the identities the SDD resolved instead of re-discovering them.
|
|
232
|
+
|
|
233
|
+
## Client Word Document
|
|
234
|
+
|
|
235
|
+
Only on request: an official client template, a Word SDD / ASDD, a `.docx`. Run it after the SDD is on disk, from the markdown SDD, following [asdd-crosswalk-guide.md](asdd-crosswalk-guide.md). The markdown SDD stays as-is: the client document is a separate file beside it, and its section structure is the customer's template, never this skill's.
|