@uipath/skills 1.207.0-preview.1985 → 1.207.0-preview.1992

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/skills",
3
- "version": "1.207.0-preview.1985",
3
+ "version": "1.207.0-preview.1992",
4
4
  "description": "UiPath agent skills for Claude Code, Codex, Cursor, GitHub Copilot, OpenCode, UiPath Autopilot, Kiro, Windsurf, Antigravity and Devin — RPA, UI automation, UI testing, coded agents/apps/workflows, and troubleshooting. Distributed as the UiPath Claude Code plugin.",
5
5
  "author": {
6
6
  "name": "UiPath"
@@ -1,27 +1,27 @@
1
1
  # Design Guide — the `design` verb
2
2
 
3
- `design` turns a PDD, or any process-knowledge source, into an implementation-ready SDD in three phases: **Phase 1** analyses the source and selects the scope, **Phase 2** reviews the architecture, **Phase 3** writes the full SDD incrementally and flips it to `ready` ([sdd-writing-guide.md](sdd-writing-guide.md)). The next turn writes the genome from the `ready` SDD (Verb Rule 8). The source may be a document or the request itself; every product, Case Management included, runs this guide. All user questions use numbered-choice format.
3
+ `design` converts a PDD or other process-knowledge source into an implementation-ready SDD in three phases: **Phase 1** analyzes the source and selects scope, **Phase 2** reviews architecture, and **Phase 3** incrementally writes the full SDD and flips it to `ready` ([sdd-writing-guide.md](sdd-writing-guide.md)). The next turn writes the genome from the `ready` SDD (Verb Rule 8). The source may be a document or the request itself; every product, Case Management included, runs this guide. Use numbered-choice format for all user questions.
4
4
 
5
5
  ## Verb Rules
6
6
 
7
- These add to the Critical Rules in [SKILL.md](../../SKILL.md).
8
-
9
- 1. **Select scope before designing architecture — and gate every product by platform constraints.** Single product (RPA Process/Library/Test Auto, Maestro Flow, Maestro BPMN, Case, Agents, Coded Apps, API Workflows) vs multi-project Solution determines the template(s) and project structure. Use the [Product Selection Guide](../shared/product-selection-guide.md): Constraint Gate → Level 1 → 1.5 (RPA sub-type) → 1.75 (Solution composition) → 2.5 (project decomposition) — 1.75 and 2.5 in [solution-composition-guide.md](solution-composition-guide.md). The delivery model (Cloud / Automation Suite / standalone — asked at `design` entry) blocks unavailable products via [platform-availability-guide.md](../shared/platform-availability-guide.md); user-excluded products are never re-offered.
10
- 2. **The SDD is architecture only — no task lists.** `design` produces the SDD (Project Structure, Data Definitions, Testing Strategy, …). The implementation input is the genome `author` writes from it.
11
- Never put Task 1 / Task N templates or *implementation* tasks created with the task-list tool in the SDD. End the SDD with a `## Next Steps` section. (Progress-tracking tasks created with the task-list tool are a separate, allowed use.)
12
- 3. **Write the `## Planner Handoff` header AND the `<!-- planner-handoff:v1 -->` marker into every SDD.** They are the load-bearing detection contract — § Choosing the Verb detects either signal, so keep both. The fields and their rules: [sdd-writing-guide.md](sdd-writing-guide.md) Step 2 item 2.
13
- 4. **Honour the template section structure as a hard superset contract.** Write single-product scope to `<PROCESS_NAME_KEBAB>-sdd.md`; write Solution scope to a `<SOLUTION_NAME_KEBAB>-solution-sdd.md` overview plus one `<PROJECT_NAME_KEBAB>-sdd.md` per project. If the user specifies an output path for the SDD, use it instead of these defaults. Read the selected template end to end before generating — never a head slice or a heading list; column contracts sit deep in the file. Copy every template table's column headers verbatim. After writing, diff the generated H2/H3 headings against the template TOC — the generated set MUST be a superset. A missing template-required H2/H3 is an SDD defect, not an `[SME REVIEW]` item — regenerate it.
14
- 5. **Testing is mandatory and thorough — never offer "happy path only".** `design` writes a full Testing Strategy section (happy path, edge cases, error scenarios, e2e for Master Projects). Implementation specialists may scope down at execution time; the SDD does not.
15
- 6. **The terminal artefact of a Solution build is a packed `.uipx`.** The SDD's `## Next Steps` section points the user at the `uipath-solution` skill, which packs it. A bare project folder is not the deliverable.
16
- Exception: when the Constraint Gate blocks Solutions for the delivery model — standalone, Automation Suite older than 2.2510, or a user exclusion — rewrite Next Steps to per-package Orchestrator publish routed via `uipath-platform`.
17
- 7. **Design resolves identities only.** A resource the design names is looked up (the Level 0 estate sweep, the tenant library search) and adopted when one match is confident; anything ambiguous or missing is written as the intended name with an `[SME REVIEW]` item. Schema discovery, project scaffolding and create-on-missing are build concerns, recorded as decisions for the build — `design` never runs them.
18
- 8. **Every `ready` SDD gets its genome on the next turn, a design-only request included** — except a design a build skill handed over, which goes back to that skill. The sequence and every condition on it: [sdd-writing-guide.md](sdd-writing-guide.md) § Step 3. A revise of an SDD whose genome is already on disk updates and checks that genome in the same run: [sdd-writing-guide.md](sdd-writing-guide.md) § Keeping the Genome Current.
19
- 9. **Write the SDD skeleton first and flip `ready` last; the SDD write is a turn boundary.** The skeleton goes to disk before any other Phase 3 section, so a turn that ends early still leaves the SDD on disk; `[SME REVIEW]` items gate the `ready` flip, never the skeleton write. Procedure: [sdd-writing-guide.md](sdd-writing-guide.md) Step 0; what the next turns run: its § Step 3. Scope and UI answers resolved in `design` flow forward to the genome through the SDD.
20
- 10. **Keep the source's words.** Roles, domain nouns, stage and step labels, decision outcomes and system names are written exactly as the source writes them (`CFO`, `Vendor`, `Needs Info`, `Workday`) — never homogenised to a synonym (`Approver`, `Supplier`, `the HR system`). Only mechanical derivations change a name: PascalCase project and case names, kebab-case file names, camelCase variables.
21
- 11. **When sources conflict, the higher one wins:** platform constraints (the delivery model, a product's schema) → a regulatory or compliance constraint the source states or implies → tenant evidence (a deployed resource matching the described work) → what the user said → the source documents → the template's and product guide's defaults. A lower source overridden is a Decisions Made row (autonomous) or a line of the Step 5 review.
7
+ These supplement the Critical Rules in [SKILL.md](../../SKILL.md).
8
+
9
+ 1. **Select scope before architecture and gate every product by platform constraints.** Select one product (RPA Process/Library/Test Auto, Maestro Flow, Maestro BPMN, Case, Agents, Coded Apps, API Workflows) or a multi-project Solution. Run [Product Selection Guide](../shared/product-selection-guide.md): Constraint Gate → Level 1 → 1.5 (RPA sub-type) → 1.75 (Solution composition) → 2.5 (project decomposition), with 1.75 and 2.5 in [solution-composition-guide.md](solution-composition-guide.md). Ask delivery model (Cloud / Automation Suite / standalone) at entry; [platform-availability-guide.md](../shared/platform-availability-guide.md) blocks unavailable products; user-excluded products are never re-offered.
10
+ 2. **The SDD is architecture only, never task lists.** Include Project Structure, Data Definitions, Testing Strategy, etc. The implementation input is the genome `author` writes from the SDD.
11
+ Never put Task 1 / Task N templates or *implementation* tasks created with the task-list tool in the SDD. End it with `## Next Steps`. Progress-tracking tasks created with the task-list tool are allowed separately.
12
+ 3. **Write both `## Planner Handoff` and `<!-- planner-handoff:v1 -->` into every SDD.** They are the load-bearing detection contract — § Choosing the Verb detects either signal, so keep both. Fields and rules are in [sdd-writing-guide.md](sdd-writing-guide.md) Step 2 item 2.
13
+ 4. **Treat template structure as a hard superset.** Single-product output is `<PROCESS_NAME_KEBAB>-sdd.md`; Solution output is `<SOLUTION_NAME_KEBAB>-solution-sdd.md` plus `<PROJECT_NAME_KEBAB>-sdd.md` per project; if the user specifies an output path for the SDD, use it instead of these defaults. Read every selected template end to end before generating — never a head slice or a heading list; column contracts sit deep in the file. Copy every template table's column headers verbatim, and after writing, diff generated H2/H3 headings against the template TOC: the generated set MUST be a superset. Missing required H2/H3 is an SDD defect, not `[SME REVIEW]`; regenerate it.
14
+ 5. **Testing is mandatory and thorough — never offer "happy path only".** Cover happy path, edge cases, errors, and e2e for Master Projects. Implementation specialists may scope down during execution; the SDD may not.
15
+ 6. **The terminal artefact of a Solution build is a packed `.uipx`.** Point `## Next Steps` to `uipath-solution`, which packs it; a bare project folder is not the deliverable.
16
+ Exception: when the Constraint Gate blocks Solutions for standalone, Automation Suite older than 2.2510, or a user exclusion, rewrite Next Steps to per-package Orchestrator publish routed through `uipath-platform`.
17
+ 7. **Design resolves identities only.** A resource the design names is looked up (the Level 0 estate sweep; for RPA, the tenant library search per Step 2.5) and adopted when one match is confident. For ambiguous or missing resources, use the intended name and an `[SME REVIEW]` item. Schema discovery, scaffolding, and create-on-missing are build concerns recorded as build decisions; `design` never runs them.
18
+ 8. **Every `ready` SDD gets its genome on the next turn, including design-only requests**, except a build skill handoff, which returns to that skill. Follow [sdd-writing-guide.md](sdd-writing-guide.md) § Step 3; when revising an SDD whose genome is already on disk, update and check the genome in the same run per [sdd-writing-guide.md](sdd-writing-guide.md) § Keeping the Genome Current.
19
+ 9. **Write the skeleton first and flip `ready` last; the SDD write is a turn boundary.** Write the skeleton before any other Phase 3 section so an early-ending turn leaves an SDD; `[SME REVIEW]` gates only the `ready` flip. Follow [sdd-writing-guide.md](sdd-writing-guide.md) Step 0 and its § Step 3. Scope and UI answers flow to the genome through the SDD.
20
+ 10. **Keep source wording.** Preserve roles, domain nouns, stage/step labels, outcomes, and system names exactly (`CFO`, `Vendor`, `Needs Info`, `Workday`); do not homogenize them (`Approver`, `Supplier`, `the HR system`). Only mechanical derivations change names: PascalCase project/case names, kebab-case file names, camelCase variables.
21
+ 11. **When sources conflict, the higher one wins:** platform constraints (delivery model/product schema) → stated or implied regulatory/compliance constraint → tenant evidence (deployed matching resource) → user statement → source documents → template/product-guide defaults. Record an overridden lower source as a Decisions Made row (autonomous) or Step 5 review line.
22
22
  12. **A product the user names is the primary**, unless the Constraint Gate blocks it or Level 0 finds the work should not be automated: Level 1 confirms it instead of selecting, and Levels 1.5–3 still run inside it.
23
- 13. **Every key the automation builds is stable across retries.** A file name, sequence number, message ID or queue reference written for an output is built from the item's own identity (its reference, GUID or source ID), never the clock or a counter at write time — so a retry finds what the first attempt wrote instead of writing it twice.
24
- 14. **A caller's design request changes only the steps its guide names.** A `planner-design-request: v1` block carries the execution mode (`execution`), holds an interactive run to one checkpoint (the Phase 2 Step 5 review), lets an autonomous one stop only for a hard blocker, and ends the run with a `planner-design-result: v1` block: [caller-request-guide.md](caller-request-guide.md).
23
+ 13. **Make every automation-built key retry-stable.** Build file names, sequence numbers, message IDs, and queue references from the item's identity (reference, GUID, or source ID), never clock or write-time counters, so a retry finds what the first attempt wrote instead of writing it twice.
24
+ 14. **A caller's design request changes only the steps its guide names.** A `planner-design-request: v1` block carries `execution`, limits interactive execution to the Phase 2 Step 5 checkpoint, permits autonomous stopping only for a hard blocker, and ends with `planner-design-result: v1`: [caller-request-guide.md](caller-request-guide.md).
25
25
 
26
26
  ## Read Plan
27
27
 
@@ -50,41 +50,34 @@ Exception: when the Constraint Gate blocks Solutions for the delivery model —
50
50
 
51
51
  ## Anti-patterns
52
52
 
53
- 1. **Copying the PDD structure into the SDD.** The SDD reorganizes content for implementation — it does not mirror the PDD's document flow.
53
+ 1. **Do not copy PDD structure into the SDD.** Reorganize for implementation.
54
54
  2. **Defaulting to RPA Process when the need profile points elsewhere.** Use the Product Selection Guide decision tree on the synthesized need, not keywords: genuine judgment/reasoning → Agents; stages/SLA/approval lifecycle → Case Management ("AI" over a rule-expressible decision is still RPA). Forcing single-product scope when the PDD describes multiple coordinated projects is the same mistake — offer Solution.
55
- 3. **Renaming the `## Planner Handoff` heading or stripping the `<!-- planner-handoff:v1 -->` marker.** Either signal alone is sufficient for detection; keep both — removing both breaks SDD detection silently.
55
+ 3. **Do not rename `## Planner Handoff` or strip `<!-- planner-handoff:v1 -->`.** Either signal alone detects the SDD; removing both breaks detection silently.
56
56
 
57
57
  ## Phase 1 — PDD Analysis & Scope Selection
58
58
 
59
59
  ### Step 0: Determine Execution Mode & Delivery Model
60
60
 
61
- Before reading the PDD in full, search it for platform signals ("Automation Suite", "on-prem", "self-hosted", "Orchestrator", "cloud", a tenant URL) — the skip rule below depends on them — then ask **one structured prompt containing two questions** — execution mode and delivery model (three when the custom-host follow-up below applies; keep a prompt to at most four questions). Batching keeps the prompt budget flat: the delivery model gates every product decision (see [Product Selection Guide → Constraint Gate](../shared/product-selection-guide.md#constraint-gate)) and asking it later costs a second interruption.
61
+ Before fully reading the PDD, search for platform signals ("Automation Suite", "on-prem", "self-hosted", "Orchestrator", "cloud", tenant URL). Run [platform-availability-guide.md § Resolving the Delivery Model](../shared/platform-availability-guide.md#resolving-the-delivery-model) first: its preflight, Question 2 (with the custom-host follow-up) and skip rule. Then ask **one structured prompt containing two questions** that batches execution mode (Question 1) with the delivery model (that guide's Question 2), adding the custom-host follow-up when applicable (maximum four questions). Batching keeps the prompt budget flat: the delivery model gates every product decision (see [Product Selection Guide → Constraint Gate](../shared/product-selection-guide.md#constraint-gate)) and asking it later costs a second interruption.
62
62
 
63
- **Delivery model** — run [platform-availability-guide.md § Resolving the Delivery Model](../shared/platform-availability-guide.md#resolving-the-delivery-model) first: its preflight, Question 2 (with the custom-host follow-up) and skip rule.
64
-
65
- *Question 1 — Execution mode:*
63
+ **Question 1 — Execution mode:**
66
64
 
67
65
  > How should I handle this SDD generation? (The SDD is written this turn; its genome — the build blueprint — is written from the finished SDD on the next turn.)
68
66
  >
69
67
  > 1. **Autonomous** *(recommended)* — I will read the PDD, make all decisions, generate the full SDD, then write its genome on the next turn. I will only interrupt for hard blockers (PDD unreadable, Agent/Coded App missing critical info, unresolved `[SME REVIEW]` items before finalizing).
70
68
  > 2. **Interactive** — I will pause at each phase checkpoint (summary, architecture, final SDD) for your review before proceeding.
71
69
 
72
- **Skip Question 1 symmetrically** when the request already states the execution mode ("autonomous", "don't pause for checkpoints", "interactive review"). When both questions are resolved from context, skip the structured prompt entirely and record both values. A caller's `execution` key answers Question 1; ask it only when the key is missing (Verb Rule 14).
70
+ Skip Question 1 symmetrically when the request states the mode ("autonomous", "don't pause for checkpoints", "interactive review"). A caller's `execution` answers it; ask only when missing (Verb Rule 14). When both execution and delivery model are known from context, skip the prompt and record both.
73
71
 
74
- Record both choices — they go into the SDD's `## Planner Handoff` header ([sdd-writing-guide.md](sdd-writing-guide.md) Step 2) and propagate to the genome (`author` from the SDD): execution mode decides whether the genome gets follow-up rounds; the delivery model holds for every component the genome names.
72
+ Record both in `## Planner Handoff` ([sdd-writing-guide.md](sdd-writing-guide.md) Step 2); they propagate to the genome: execution controls follow-up rounds and delivery model applies to every component.
75
73
 
76
- In **Autonomous** mode:
77
- - Skip Phase 1 summary presentation (generate internally, do not wait for confirmation) — the `## Recommended Scope` block still persists into the SDD ([sdd-writing-guide.md](sdd-writing-guide.md) Step 2 item 3)
78
- - Skip Phase 2 architecture review (generate, do not wait)
79
- - Ask only what blocks the design: the unresolved Step 0 questions, the Agent/Coded App gap question (Step 5), and one SME prompt holding the items with no defensible default ([sdd-writing-guide.md](sdd-writing-guide.md) Step 1.5). Every other confirmation a reference describes — the RPA sub-type, the scope, a tenant library pick, a revision round — is an interactive checkpoint: take its recommended option and record the pick in Decisions Made
80
- - **Insert a "Decisions Made" block** at the top of the SDD (immediately after the Planner Handoff header and before any other section) listing the five highest-leverage architectural picks with one-sentence reasons. See [sdd-writing-guide.md](sdd-writing-guide.md) Step 2 item 3 for the exact block format. Do **NOT** ask a structured question — the picks are decided autonomously; the block makes them scannable in the SDD's first screenful so a reviewer can spot a wrong call without reading the whole document.
74
+ In **Autonomous** mode, skip presenting the Phase 1 summary and the Phase 2 review (generate both internally; do not wait for confirmation); persist `## Recommended Scope` in the SDD ([sdd-writing-guide.md](sdd-writing-guide.md) Step 2 item 3). Ask only unresolved Step 0 questions, the Agent/Coded App gap question (Step 5), and one SME prompt for items without defensible defaults ([sdd-writing-guide.md](sdd-writing-guide.md) Step 1.5). Take recommended options for all other confirmations (RPA sub-type, scope, tenant library, revision), record them in Decisions Made. **Insert a `Decisions Made` block** immediately after the Planner Handoff header and before any other section. List the five highest-leverage architectural picks with one-sentence reasons, using the exact format in [sdd-writing-guide.md](sdd-writing-guide.md) Step 2 item 3; do **NOT** ask a structured question.
81
75
 
82
- In **Interactive** mode:
83
- - Present and wait at every checkpoint as described in the steps below
76
+ In **Interactive** mode, present and await every checkpoint below.
84
77
 
85
78
  ### Step 0.5: Create Progress Tasks
86
79
 
87
- Create progress-tracking tasks with the task-list tool so the user can see where the SDD generation stands; a host with no task-list tool skips this step.
80
+ Create progress-tracking tasks with the task-list tool; a host without it skips this step:
88
81
 
89
82
  ```
90
83
  title="Read PDD and extract data" in-progress label="Reading PDD…"
@@ -97,37 +90,30 @@ title="Finalize SDD (Status: ready)" in-progress label="Finalizing
97
90
  title="Write genome (next turn)" in-progress label="Writing genome…"
98
91
  ```
99
92
 
100
- The genome task stays `pending` when the SDD write ends the turn; the genome turn marks it `in_progress`, then `completed`. Omit it for a design a build skill handed over (Verb Rule 8).
101
-
102
- Mark each task `in_progress` when its step starts and `completed` when it ends. Creating and updating them is best-effort and never blocks the SDD: if a task-list call fails, warn the user once, continue without progress tasks and never retry. The skeleton write is task 4, never the last task ([sdd-writing-guide.md](sdd-writing-guide.md#step-0-write-the-sdd-skeleton-to-disk--hard-gate) Step 0).
103
-
104
- These tasks track SDD generation.
105
- The genome `author` writes after the SDD is the implementation input — do NOT create implementation tasks here.
93
+ The genome task remains `pending` when SDD writing ends the turn; the genome turn marks it `in_progress`, then `completed`. Omit it for a build-skill handoff (Verb Rule 8). Mark each task `in_progress` at start and `completed` at end. Creation/update are best-effort and never block the SDD: on task-list failure, warn once, continue without tasks, and never retry. Skeleton writing is task 4, never last ([sdd-writing-guide.md](sdd-writing-guide.md#step-0-write-the-sdd-skeleton-to-disk--hard-gate) Step 0). These tasks track SDD generation.
94
+ The genome `author` writes after the SDD is the implementation input; do NOT create implementation tasks here.
106
95
 
107
96
  ### Step 1: Read the PDD
108
97
 
109
- 0. **No document** ("design X", a process described in the request): the request and whatever it attaches are the source; read every attached or named file, then continue at Step 2 — Step 3 finds the gaps and Step 6 asks what only the user can answer.
110
- 1. Determine the input format and route it to the right tool — Markdown (`.md`) and plain text (`.txt`): read directly; PDF (`.pdf`): read by page range; Word (`.docx`, `.doc`): convert to Markdown first; pasted text: from conversation context. See [PDD Analysis Guide → Supported Input Formats](../shared/pdd-analysis-guide.md#supported-input-formats). The source need not be a formal PDD — a Confluence page, BPMN model (`.bpmn`), meeting/Zoom transcript, SOP, or requirements doc also works ([Accepted process-knowledge sources](../shared/pdd-analysis-guide.md#accepted-process-knowledge-sources)); run heavier Phase 1 elicitation when the source is less structured than a PDD. Extract **both AS-IS and TO-BE** ([As-Is and To-Be Process](../shared/pdd-analysis-guide.md#as-is-and-to-be-process)).
111
- 2. **Size-based reading strategy** for PDFs:
112
- - **Under 10 pages:** read the entire document in one pass. Skip ToC lookup.
113
- - **10-50 pages:** read the ToC first, then read sections in priority order (overview → steps → exceptions → applications → credentials).
114
- - **Over 50 pages:** read ToC, then read high-priority sections (overview, process steps, exceptions) first, extract as you go, then read remaining sections.
115
- 3. For pasted text over 3000 words, ask the user to paste in sections.
116
- 4. **Error cases:** if the document cannot be read (corrupt PDF, password-protected, unsupported format), tell the user and ask them to provide it in a different format. If the document describes no process at all (no steps, no applications, no exceptions), tell the user and stop; a less structured process source continues, with heavier Phase 1 elicitation.
117
- 5. **Language handling:** a caller's `language` answers this — skip the question. Otherwise, if the PDD is not in English, ask a structured question with the numbered-choice format:
98
+ 0. **No document** ("design X", a process described in the request): use the request and attachments as source, read every attached/named file, then continue at Step 2; Step 3 identifies gaps and Step 6 asks user-only questions.
99
+ 1. Route input by format: Markdown (`.md`) and plain text (`.txt`) directly; PDF (`.pdf`) by page range; Word (`.docx`, `.doc`) converted to Markdown; pasted conversation text directly. Follow [PDD Analysis Guide → Supported Input Formats](../shared/pdd-analysis-guide.md#supported-input-formats). Confluence, BPMN (`.bpmn`), meeting/Zoom transcript, SOP, and requirements doc also work ([Accepted process-knowledge sources](../shared/pdd-analysis-guide.md#accepted-process-knowledge-sources)); use heavier Phase 1 elicitation for less-structured sources. Extract **AS-IS and TO-BE** ([As-Is and To-Be Process](../shared/pdd-analysis-guide.md#as-is-and-to-be-process)).
100
+ 2. PDF: under 10 pages, read all in one pass and skip ToC; 10–50, read ToC then overview → steps → exceptions → applications → credentials; over 50, read ToC and high-priority sections (overview, process steps, exceptions), extract while reading, then read the remainder.
101
+ 3. For pasted text over 3000 words, ask for sections.
102
+ 4. If unreadable (corrupt PDF, password-protected, unsupported), tell the user and request another format. If it describes no process (no steps, applications, exceptions), tell the user and stop; less-structured process sources continue with heavier elicitation.
103
+ 5. If caller supplies `language`, use it. Otherwise, for non-English PDDs ask a structured question with the numbered-choice format:
118
104
 
119
105
  > The PDD appears to be in <LANGUAGE>. Which language should the SDD use?
120
106
  >
121
107
  > 1. **English** *(recommended)* — SDD in English for broadest tool compatibility
122
108
  > 2. **<LANGUAGE>** — SDD in the same language as the PDD
123
109
 
124
- Regardless of choice, keep section headings and structural identifiers (BR-01, B1, E1) in English for tool compatibility.
110
+ Keep section headings and structural identifiers (BR-01, B1, E1) in English regardless.
125
111
 
126
112
  ### Step 2: Extract Structured Information
127
113
 
128
- Follow the [PDD Analysis Guide](../shared/pdd-analysis-guide.md) to extract data from the PDD. Build an internal model with these components:
114
+ Follow the [PDD Analysis Guide](../shared/pdd-analysis-guide.md) and build this model:
129
115
 
130
- | Component | PDD Topic to Look For | Required |
116
+ | Component | PDD topic | Required |
131
117
  |---|---|---|
132
118
  | Process name and objective | Introduction | Yes |
133
119
  | Key contacts | Process key contacts | No |
@@ -142,65 +128,52 @@ Follow the [PDD Analysis Guide](../shared/pdd-analysis-guide.md) to extract data
142
128
  | Credentials and assets | Credentials and asset management | Yes |
143
129
  | Test data | Appendix | No |
144
130
 
145
- **Key Contacts go into §1 Delivery Team.** The PDD's Key Contacts section (SA, BA, developers, PM, SME / Process Owner) populates the Delivery Team table in §1 of the RPA template. Include only roles the PDD explicitly names — do not invent or leave rows as `[SME REVIEW]`; omit silent rows instead.
131
+ Put explicitly named Key Contacts (SA, BA, developers, PM, SME / Process Owner) in §1 Delivery Team of the RPA template. Include only named roles; omit silent rows and do not invent or leave them `[SME REVIEW]`.
146
132
 
147
133
  ### Step 2.5: Tenant Library Discovery
148
134
 
149
- The org's deployed libraries cannot be inferred from any PDD. Query the tenant feed to discover candidates the new project should reference. Run in BOTH Autonomous and Interactive modes — this drives §14 Packages and §16 "Shared libraries referenced".
150
-
151
- Skip this step for non-RPA primaries (Agents, Coded Apps, Flow, BPMN, Case, API Workflows) — shared RPA libraries do not apply to those products' package models. Only the *library* discovery is RPA-scoped: the [Level 0 estate sweep](../shared/product-selection-guide.md#estate-sweep) (deployed processes, agents, Maestro processes, IXP projects, solutions, connections) runs for every scope when evaluating the suitability gate.
152
-
153
- Run the procedure in [tenant-library-search-guide.md](../shared/tenant-library-search-guide.md). Keyword source for step 2: PDD Application Inventory + org-prefix terms (`Common`, `Shared`, `<Company>` if mentioned in the PDD). Output mapping: every selected library → one row in every sub-project's §14 Packages table, and its package ID into §16 Deployment Environment → "Shared libraries referenced". If the auth preflight fails, use the guide's manual fallback and propagate the user's named libraries to §14 / §16 the same way.
135
+ Run [tenant-library-search-guide.md](../shared/tenant-library-search-guide.md) in BOTH Autonomous and Interactive modes for RPA primaries, using PDD Application Inventory plus org-prefix terms (`Common`, `Shared`, `<Company>` if mentioned) as the keyword source for its step 2. Map each selected library to one row in every sub-project's §14 Packages and its package ID to §16 Deployment Environment → "Shared libraries referenced". If auth preflight fails, use the guide's manual fallback and propagate named libraries identically.
154
136
 
155
- **This step is best-effort — it never blocks SDD output.** If the auth preflight errors or auth is unavailable, **Autonomous mode skips library discovery and proceeds with public NuGet only** — do not retry or troubleshoot auth mid-generation, and do not pause. Skip the step entirely if the user's prompt forbids running `uip` commands.
137
+ Skip for non-RPA primaries (Agents, Coded Apps, Flow, BPMN, Case, API Workflows); shared RPA libraries do not apply, but the [Level 0 estate sweep](../shared/product-selection-guide.md#estate-sweep) still runs for every scope (deployed processes, agents, Maestro processes, IXP projects, solutions, connections). **This step is best-effort — it never blocks SDD output.** In Autonomous mode, auth failure/unavailability means skip discovery and proceed with public NuGet only; do not retry, troubleshoot, or pause. Skip entirely when the user forbids `uip` commands.
156
138
 
157
139
  ### Step 3: Detect Gaps
158
140
 
159
- Scan for missing or vague information. Use the Gap Detection Checklist in the [PDD Analysis Guide](../shared/pdd-analysis-guide.md) to classify each gap as `[DEFAULT]` or `[SME REVIEW]`.
141
+ Use the Gap Detection Checklist in [PDD Analysis Guide](../shared/pdd-analysis-guide.md) and classify every missing/vague item `[DEFAULT]` or `[SME REVIEW]`.
160
142
 
161
143
  ### Step 3.5: Synthesize the Need
162
144
 
163
- Before selecting a product, distil the extracted model into a **need profile** — the recommendation reasons from this multi-factor picture, NOT from surface keywords. No single factor decides the tool; capture all and weigh the overall fit:
164
-
165
- - **Core need & target outcome** — one sentence: what outcome the automation must produce, and which KPI it moves (cycle time, manual effort, quality/accuracy, cost, throughput, or compliance). Design the "to-be" against that outcome, not a copy of the as-is.
166
- - **Decision nature (determinism)** — are decisions rule-expressible (**deterministic**: same input → same output) or do they need judgment / reasoning over ambiguity (**non-deterministic**)? Assess per process AND per step. Deterministic → RPA / API / rule-based; genuine judgment → Agents. (One factor among those below — not the sole gate.)
167
- - **Input structure** — structured / predictable vs messy / unstructured (email, free text, varied documents → Agent or IXP to interpret).
168
- - **Integration surface** — for each external system: does a stable API / **Integration Service connector** exist, and is it **reachable from the executor's runtime under the delivery model** (on-prem HTTP(S) APIs → Automation Relay option, placement rule 5)? Reuse an existing connector first. If none exists: API Workflows, RPA, and coded Agents call the API directly (Direct HTTP); IS-only surfaces (Maestro Flow / BPMN / Case connector nodes, low-code Agent tools) need a custom connector (→ `uipath-connector-builder`) or an API Workflow wrapper — see [Component Placement Guide → Integration Service](../shared/component-placement-guide.md#integration-service). Verify with `uip is connectors list` — never assume a connector exists. UI-only system → RPA.
169
- - **Interaction model** — system-to-system (no UI, no human) · UI automation · human-in-the-loop (immediate attended action vs **asynchronous approval** — async inside one process → long-running RPA + Action Center) · user-facing app.
170
- - **State** — atomic (one shot) · transactional (per-item, retryable) · long-running (suspends / waits). Long-running inside ONE process → RPA long-running workflow; long-running across products → Maestro.
171
- - **Coordination shape** — single task · linear/branching pipeline · staged case lifecycle (stages + SLA) · structured control-flow (parallel / events / subprocess). Use the control-flow structure extracted in Step 2 ([PDD Analysis Guide → Detailed Process Map](../shared/pdd-analysis-guide.md#detailed-process-map)).
172
- - **Volume, latency & cost** — high-volume / repeatable favours deterministic (agentic cost is higher-variance and less predictable — estimate per model/tenant, and justify agentic at volume); note any latency requirement.
173
- - **Risk, reversibility & auditability** — high-risk / irreversible / low-confidence steps need a HITL gate; compliance-critical work needs a deterministic, auditable record.
174
- - **Change / volatility** — how often inputs, forms, or rules change (an uncaptured volatility assumption is a top cause of solutions that break in production; use IXP for changeable documents).
175
- - **Reuse** — local operation vs shared callable capability (→ RPA Library / API Workflow / custom connector, built before consumers).
176
- - **Runtime & resource locality** — where must the work execute? Machine-local resources — desktop apps, Excel/Office files, file shares, on-prem databases, terminal/mainframe, Citrix — are reachable only from a robot inside the environment → RPA regardless of determinism or API existence (exceptions: on-prem HTTP(S) APIs via confirmed Automation Relay, and robot-hosted Coded Functions, which also run inside the environment — see the placement rules). Windows · cross-platform · serverless · user desktop drives compatibility, robot type, and licensing (§11 Project Mode Decision in the RPA template).
177
- - **Existing estate** — what is already deployed: processes, API Workflows, connectors (`uip is connectors list`), tenant libraries (Step 2.5), IXP models, user-named resources. Reuse before build.
178
- - **Trigger** — who or what starts it.
179
- - **Confidence** — the evidence behind each factor and what remains unknown; unknowns become `[SME REVIEW]` rows, and a genuinely ambiguous product choice goes to the user (Step 6) — never a silent default.
180
-
181
- **Close Step 3.5 by typing every extracted step** with the [Component Placement Guide → Per-task component placement](../shared/component-placement-guide.md#per-task-component-placement-the-to-be-per-step) table — the resulting **step→executor map** is Level 1's input (layer 2 before layer 3; Level 1 never matches raw keywords against the whole process). Level 1 first folds absorbed capabilities into their hosts ([Decision table → Absorption fold](../shared/product-selection-guide.md#decision-table)) — capabilities a host invokes in-process are integrated components, not orchestration triggers — then reads the folded map.
182
-
183
- Carry the need profile and the step→executor map into the Step 6 summary and the SDD `## Recommended Scope` reasoning so every product pick reads as `need → product`, auditable against the PDD. The dominant real-world pattern is **hybrid** (AI decides, deterministic RPA/API execute as governed tools, Maestro orchestrates when real orchestration is needed, HITL gates the risky steps) and **decomposed** into separate blocks — not one monolithic flow. Level 1 (Step 4) matches on the whole profile; PDD keywords are evidence, not the decision. When the need is genuinely ambiguous between products, ask the user (Step 6) — do not silently default.
145
+ Before product selection, create a need profile—not a keyword match. No single factor decides the tool; capture all and weigh the overall fit:
146
+
147
+ - **Core need & target outcome:** outcome and KPI (cycle time, manual effort, quality/accuracy, cost, throughput, compliance); design TO-BE against it, not AS-IS.
148
+ - **Decision nature:** deterministic rule-expressible (same input → same output) vs non-deterministic judgment/reasoning; assess per process and step. Deterministic → RPA/API/rules; genuine judgment → Agents; not the sole gate.
149
+ - **Input structure:** structured/predictable vs messy/unstructured; email, free text, varied documents → Agent or IXP.
150
+ - **Integration surface:** assess each external system's stable API / **Integration Service connector** and executor-runtime reachability under the delivery model (on-prem HTTP(S) → Automation Relay, placement rule 5); reuse connectors first. If absent, API Workflows, RPA, and coded Agents use Direct HTTP; IS-only surfaces (Maestro Flow/BPMN/Case connector nodes, low-code Agent tools) need `uipath-connector-builder` or API Workflow wrapper, per [Component Placement Guide → Integration Service](../shared/component-placement-guide.md#integration-service). Verify with `uip is connectors list`; never assume a connector exists. UI-only system → RPA.
151
+ - **Interaction model:** system-to-system; UI; human-in-the-loop (immediate attended vs **asynchronous approval**—async inside one process → long-running RPA + Action Center); user-facing app.
152
+ - **State:** atomic; transactional/retryable; long-running/suspends/waits. Long-running in one process → RPA long-running workflow; across products → Maestro.
153
+ - **Coordination:** single task; linear/branching pipeline; staged case lifecycle (stages + SLA); structured control flow (parallel/events/subprocess), using [PDD Analysis Guide → Detailed Process Map](../shared/pdd-analysis-guide.md#detailed-process-map).
154
+ - **Volume, latency & cost:** high-volume repeatability favors deterministic; agentic cost is higher-variance/less predictable, so estimate per model/tenant and justify it at volume; note any latency requirement.
155
+ - **Risk, reversibility & auditability:** risky, irreversible, or low-confidence steps need HITL; compliance-critical work needs deterministic auditable records.
156
+ - **Change/volatility:** frequency of input/form/rule changes; use IXP for changeable documents.
157
+ - **Reuse:** local vs shared callable capability (RPA Library/API Workflow/custom connector, built before consumers).
158
+ - **Runtime/resource locality:** desktop apps, Excel/Office, file shares, on-prem DB, terminal/mainframe, Citrix require an in-environment robot → RPA regardless of determinism/API; exceptions are confirmed Automation Relay for on-prem HTTP(S) and robot-hosted Coded Functions. Windows, cross-platform, serverless, and user desktop determine compatibility, robot type, and licensing (§11 Project Mode Decision in RPA template).
159
+ - **Existing estate:** processes, API Workflows, connectors (`uip is connectors list`), tenant libraries (Step 2.5), IXP models, and user-named resources; reuse before build.
160
+ - **Trigger, confidence:** record trigger, evidence, and unknowns; unknowns become `[SME REVIEW]`, and genuinely ambiguous product choice goes to Step 6, never a silent default.
161
+
162
+ Close by typing every extracted step using [Component Placement Guide → Per-task component placement](../shared/component-placement-guide.md#per-task-component-placement-the-to-be-per-step), producing the step→executor map for Level 1 (layer 2 before layer 3). Level 1 first folds absorbed capabilities into their hosts ([Decision table → Absorption fold](../shared/product-selection-guide.md#decision-table)) — in-process capabilities are integrated components, not orchestration triggers — then reads the folded map. Carry the profile and map into Step 6 and `## Recommended Scope` so each choice is auditable as need → product. Hybrid, decomposed designs are normal: AI decides, governed RPA/API execute, Maestro orchestrates where needed, and HITL gates risk — not one monolithic flow. Level 1 matches the whole profile; keywords are evidence only.
184
163
 
185
164
  ### Step 4: Run Levels in Order
186
165
 
187
- Each level lives in its canonical reference; output of each level feeds the next.
188
-
189
- > **Constraint Gate applies at every level.** The delivery model from Step 0 and any user-stated product exclusions filter the candidates before each level recommends — see [Product Selection Guide → Constraint Gate](../shared/product-selection-guide.md#constraint-gate) and [platform-availability-guide.md](../shared/platform-availability-guide.md).
166
+ At every level, apply delivery model and user exclusions through the Constraint Gate: [Product Selection Guide → Constraint Gate](../shared/product-selection-guide.md#constraint-gate) and [platform-availability-guide.md](../shared/platform-availability-guide.md). Follow [Product Selection Guide § Levels of Decision](../shared/product-selection-guide.md#levels-of-decision): Level 0 first; Levels 1+ only on `proceed` / `proceed-with-redesign` / `partial`; Level 1.5 for RPA primary or per RPA project through Level 1.75 Pass C; Level 1.75 when Level 1 = Solution or the user picks "Solution (customize)" in Step 6; Level 2.5 Part A per RPA Process project; Part B always. Feed results to Step 6 and Phase 2.
190
167
 
191
- Run the levels in the order and under the conditions of [Product Selection Guide § Levels of Decision](../shared/product-selection-guide.md#levels-of-decision): Level 0 first — Levels 1+ run only on `proceed` / `proceed-with-redesign` / `partial`; Level 1.5 for an RPA primary, or per RPA project through Level 1.75 Pass C; Level 1.75 when Level 1 = Solution or the user picks "Solution (customize)" in Step 6; Level 2.5 Part A per RPA Process project; Part B always.
192
-
193
- This step's output goes into the Phase 1 summary at Step 6 and drives the Phase 2 architectural core.
194
-
195
- > Level 2 (Authoring mode — XAML / Coded / Hybrid) is decided per RPA project at Phase 2 Step 2 from [RPA Product Guide → Level 2](rpa-product-guide.md#level-2--authoring-mode). Level 3 (Capability add-ons — HITL, Integration Service, etc.) is detected during PDD analysis and flagged in template sections during Phase 2 Step 4. Per-task component placement (which step lands on RPA / API / IXP / Agent / Function / HITL / Maestro / Data Fabric) runs twice: at Step 3.5 (the step→executor map that feeds Level 1) and at Phase 2 Steps 3–4 (recording placements in template inventories) — [Component Placement Guide → Per-task component placement](../shared/component-placement-guide.md#per-task-component-placement-the-to-be-per-step).
168
+ Level 2 (XAML / Coded / Hybrid) is decided per RPA project at Phase 2 Step 2 using [RPA Product Guide → Level 2](rpa-product-guide.md#level-2--authoring-mode). Detect Level 3 add-ons (HITL, Integration Service, etc.) in analysis and flag them in Phase 2 Step 4. Run per-task placement at Step 3.5 (the step→executor map that feeds Level 1) and Phase 2 Steps 3–4 (recording placements in template inventories) ([Component Placement Guide → Per-task component placement](../shared/component-placement-guide.md#per-task-component-placement-the-to-be-per-step)).
196
169
 
197
170
  ### Step 5: Check for Agent/Coded App Gaps
198
171
 
199
- If the primary product is **Agents** or **Coded Apps** AND required product-specific information is missing from the PDD, run [scope-recommendation-guide.md](scope-recommendation-guide.md) § Gap Handling for Agent / Coded App. Never auto-fallback: the user chooses explicitly.
172
+ If primary is **Agents** or **Coded Apps** and required product information is missing, run [scope-recommendation-guide.md](scope-recommendation-guide.md) § Gap Handling for Agent / Coded App. Never auto-fallback: the user chooses explicitly.
200
173
 
201
174
  ### Step 6: Present Summary + Scope Recommendation
202
175
 
203
- Emit the summary block described in [scope-recommendation-guide.md](scope-recommendation-guide.md) § Presenting the Recommendation. The **recommended scope appears first**; single-product alternatives and "Solution (customize)" follow as alternatives in the confirmation structured question.
176
+ Emit [scope-recommendation-guide.md](scope-recommendation-guide.md) § Presenting the Recommendation, recommended scope first and alternatives after it:
204
177
 
205
178
  ```markdown
206
179
  ## PDD Analysis Summary
@@ -222,24 +195,15 @@ Recommended Scope + Project List + Queue Architecture>
222
195
  <NUMBERED_QUESTIONS_IF_ANY>
223
196
  ```
224
197
 
225
- Then ask a structured question with the confirmation question from scope-recommendation-guide.md § Presenting the Recommendation (recommendation as option 1, single-product alternatives, then "Solution (customize)"). A caller's request skips this step unless the choice is genuinely ambiguous (Verb Rule 14).
226
-
227
- **If the user picks "Solution (customize)":** re-run Level 1.75 per the customize branch in the guide, then re-emit this summary with the customized project list, then re-ask the confirmation question. Max 3 revisions — after that, proceed with the latest composition.
228
-
229
- **If the user picks a single-product alternative:** re-run Step 4 with the user's choice as the forced primary (including Level 1.5 if it's RPA).
230
-
231
- Ask at most 5 clarifying questions total, in a single round. If the user cannot answer some, tag those items as `[SME REVIEW]` and proceed.
198
+ Ask the guide's structured confirmation question: recommendation option 1, single-product alternatives, then "Solution (customize)". A caller request skips it unless genuinely ambiguous (Verb Rule 14). **If the user picks "Solution (customize)":** re-run Level 1.75's customize branch, re-emit the summary with the customized project list, and re-ask; maximum 3 revisions, then proceed with latest composition. **If the user picks a single-product alternative:** re-run Step 4 with that forced primary, including Level 1.5 for RPA. Ask at most 5 clarifying questions in one round; if the user cannot answer some, tag those items as `[SME REVIEW]` and proceed.
232
199
 
233
200
  ## Phase 2 — Architecture Review
234
201
 
235
202
  ### Step 1: Load the Template(s)
236
203
 
237
- Load from the [Template Mapping table](scope-recommendation-guide.md#template-mapping):
238
-
239
- - **Single-product scope:** load the one template matching the Level 1 primary.
240
- - **Solution scope:** load the solution overview structure PLUS one template per project in the Level 2.5 unified project list. RPA Master Projects share one RPA template file across their sub-projects; unrelated RPA projects each get their own file.
204
+ Use [Template Mapping table](scope-recommendation-guide.md#template-mapping): load the matching single-product template, or for Solution the overview plus one template per project in the Level 2.5 unified list. RPA Master Projects share one RPA template across sub-projects; unrelated RPA projects get separate files.
241
205
 
242
- **The SDD is automation-type-agnostic — no type is privileged.** Section coverage follows the in-scope types: a single-product SDD uses that product's template; a Solution's per-project SDDs each use their product's template, tied together by the Solution overview's **component inventory** (every component listed with its type — RPA / API Workflow / Agent / Maestro Flow · BPMN · Case / Coded or Low-code App / DU-IXP / connector / HITL). Include per-type detail (Agent Configuration, Queue Architecture, API schemas, Gateways, Case stages, etc.) **only for the types actually in scope** — never emit "N/A" filler sections for absent types, and never assume an agentic (or RPA-only) shape. Delete rows that do not apply; replicate per-instance sections (e.g., one Agent Configuration per agent).
206
+ The SDD is automation-type-agnostic: include only in-scope type coverage. Solution overview component inventory lists every component and type (RPA / API Workflow / Agent / Maestro Flow · BPMN · Case / Coded or Low-code App / DU-IXP / connector / HITL). Include type-specific detail (Agent Configuration, Queue Architecture, API schemas, Gateways, Case stages, etc.) only when applicable; never add N/A filler, never assume an agentic (or RPA-only) shape, and delete inapplicable rows. Replicate per-instance sections (e.g., one Agent Configuration per agent).
243
207
 
244
208
  ### Step 2: Generate the Architectural Core
245
209
 
@@ -252,8 +216,6 @@ Generate the sections the template's `Phase 2 sections:` line names (the Case te
252
216
 
253
217
  ### Step 3: Decompose Steps Into Implementation Units
254
218
 
255
- Each template has a primary inventory table. Map PDD steps to units:
256
-
257
219
  | Product | Primary Inventory | Unit Type |
258
220
  |---|---|---|
259
221
  | RPA (Single Project) | Workflow Inventory | `.xaml` or `.cs` workflow files |
@@ -265,32 +227,27 @@ Each template has a primary inventory table. Map PDD steps to units:
265
227
  | Coded Apps | Pages + Components | Routes and React/Angular/Vue components |
266
228
  | API Workflows | Execution Flow steps | Activities (HTTP, Connector, Script) |
267
229
 
268
- Each unit must have: **a concrete responsibility, specific PDD step references, and defined inputs/outputs.**
269
-
270
- Type each step's verb and place it on the best-fit component per [Component Placement Guide → Per-task component placement](../shared/component-placement-guide.md#per-task-component-placement-the-to-be-per-step) — deterministic validate/transfer → RPA or API, document collect → IXP, judgment decide → Agent, atomic transform/compute → Function, review/sign-off → HITL, aggregate → Data Fabric. Record the placement in the inventory row; every non-primary placement becomes an integrated component in Step 4.
230
+ Each unit must have: **a concrete responsibility, specific PDD step references, and defined inputs/outputs.** Type and place each step using [Component Placement Guide → Per-task component placement](../shared/component-placement-guide.md#per-task-component-placement-the-to-be-per-step): deterministic validate/transfer → RPA or API; document collect → IXP; judgment decide → Agent; atomic transform/compute → Function; review/sign-off → HITL; aggregate → Data Fabric. Record placement in the inventory; every non-primary placement becomes an integrated component in Step 4.
271
231
 
272
- **For RPA Master Project:** decompose in two passes:
273
- 1. First, assign each PDD step to a sub-project based on the §10 sub-projects table (each sub-project lists its PDD steps).
274
- 2. Then, within each sub-project, decompose the assigned steps into workflow files.
275
- 3. For REFramework sub-projects, the main workflows (Init, GetTransactionData, Process, SetTransactionStatus) come from the framework — only the Process-specific workflows go in the inventory.
232
+ For RPA Master Project, assign each PDD step to a §10 sub-project, then, within each sub-project, decompose its assigned steps into workflow files. In REFramework sub-projects, Init, GetTransactionData, Process, and SetTransactionStatus come from the framework; inventory only Process-specific workflows.
276
233
 
277
234
  ### Step 4: Flag Integrated Components
278
235
 
279
- For each integrated component detected in Phase 1 (and each non-primary placement from Step 3), flag it in the appropriate section of the template:
236
+ For each Phase 1 integrated component and non-primary placement, flag the template section:
280
237
 
281
- - **HITL** — host-aware routing: Flow hosts → flag touchpoints; implementation task routes to `uipath-human-in-the-loop`. Coded Agents → escalation is part of the `uipath-agents` build task (the HITL skill defers coded-agent wiring to it). BPMN userTask → flagged in §9 HITL Touchpoints, authored inline by `uipath-maestro-bpmn` (no HITL-skill task). Case → `action` task detail block in §2 Stages & Tasks with Action App intent (never the HITL skill). RPA → Action Center / long-running workflow flagged in the RPA template.
282
- - **Integration Service connectors** → list in Application Inventory (RPA) or Connectors section (others); check `uip is connectors list` — implementation task routes to `uipath-platform` to configure an existing connector, or `uipath-connector-builder` to build a custom one when none exists
283
- - **IXP / Document Understanding models** (extraction from semi-structured documents) → list in the host template's "IXP / Document Understanding Models" table (Flow / BPMN / Case / Agent / RPA templates carry it); for an API Workflow or Coded App primary, record the model as its own row in §Solution / Project Breakdown instead. Implementation task routes to `uipath-ixp`, ordered before its consumers
284
- - **Coded Functions** (TypeScript / JavaScript / Python — atomic deterministic transform / compute: parsing, scoring, custom-auth API calls, IS-connection queries) — only when extraction is justified per [placement rule 6](../shared/component-placement-guide.md#per-task-component-placement-the-to-be-per-step); host-native logic stays in the host's own inventory → list in the host template's "Coded Functions" table (Flow / BPMN / Case / Agent templates carry it). Implementation task routes to `uipath-functions`, ordered before its consumers; no per-project SDD file (see [Template Mapping](scope-recommendation-guide.md#template-mapping))
285
- - **RPA processes called by Flow/BPMN/Agent/Case** → list in Integrated Components section; implementation task will create the RPA project
286
- - **API Workflows called by Flow/BPMN/Agent/Case** — only when extraction is justified per [placement rule 6](../shared/component-placement-guide.md#per-task-component-placement-the-to-be-per-step) (host cannot call natively, 2+ consumers, or independent lifecycle); a host-capable direct call stays in the host inventory as `Access Method = Direct HTTP` → list in Integrated Components section; implementation task will create the API Workflow project. Extraction never changes `SDD scope` ([derived-component rule](../shared/product-selection-guide.md#solution-signals))
238
+ - **HITL:** Flow host → flag touchpoints and route implementation to `uipath-human-in-the-loop`; Coded Agent → escalation belongs to `uipath-agents` build (HITL defers coded-agent wiring); BPMN `userTask` → §9 HITL Touchpoints, authored inline by `uipath-maestro-bpmn` (no HITL task); Case → `action` detail in §2 Stages & Tasks with Action App intent (never HITL skill); RPA → Action Center / long-running workflow in RPA template.
239
+ - **Integration Service connectors:** list in Application Inventory (RPA) or the Connectors section (other types); check `uip is connectors list`; route existing connector configuration to `uipath-platform`, custom build to `uipath-connector-builder`.
240
+ - **IXP / Document Understanding models:** for semi-structured extraction, list in the host's "IXP / Document Understanding Models" table (Flow/BPMN/Case/Agent/RPA); for API Workflow or Coded App primary, make a row in §Solution / Project Breakdown. Route implementation to `uipath-ixp`, before consumers.
241
+ - **Coded Functions** (TypeScript / JavaScript / Python): atomic deterministic transform / compute (e.g., parsing, scoring, custom-auth API calls, IS-connection queries) only when justified by [placement rule 6](../shared/component-placement-guide.md#per-task-component-placement-the-to-be-per-step); keep host-native logic in host inventory. List in host "Coded Functions" table (Flow/BPMN/Case/Agent); route to `uipath-functions` before consumers; no per-project SDD file (see [Template Mapping](scope-recommendation-guide.md#template-mapping)).
242
+ - **RPA called by Flow/BPMN/Agent/Case:** list in Integrated Components; implementation creates the RPA project.
243
+ - **API Workflow called by Flow/BPMN/Agent/Case:** extract only when justified by [placement rule 6](../shared/component-placement-guide.md#per-task-component-placement-the-to-be-per-step) (host cannot call natively, 2+ consumers, or independent lifecycle). Otherwise record host inventory `Access Method = Direct HTTP`. Extracted workflow goes in Integrated Components; implementation creates it. Extraction never changes `SDD scope` ([derived-component rule](../shared/product-selection-guide.md#solution-signals)).
287
244
 
288
245
  ### Step 5: Present Architecture for Review
289
246
 
290
247
  Present the architectural core to the user — for Case Management in the shape of [case-review-and-conformance-guide.md](case-review-and-conformance-guide.md) § Presenting the Case Design. Wait for approval or adjustments. A design a build skill handed over presents the build options the caller passed ([sdd-writing-guide.md](sdd-writing-guide.md) § Design Handed Over by a Build Skill). A caller's `execution: interactive` request runs this review as its one checkpoint; `autonomous` skips it (Verb Rule 14).
291
248
 
292
- **Approval criteria:** any response without specific change requests. Responses like "looks good", "ok", "proceed", "yes", or a topic change all count as approval. If the user requests specific changes, incorporate them and re-present the architecture (max 3 revisions — after that, proceed with the latest version and tag disagreements as `[SME REVIEW]`).
249
+ Any response without specific change requests approves it, including "looks good", "ok", "proceed", "yes", or a topic change. Incorporate specific changes and re-present; maximum 3 revisions, then proceed with latest and tag disagreements `[SME REVIEW]`.
293
250
 
294
251
  ## Phase 3 — Full SDD Generation
295
252
 
296
- Read [sdd-writing-guide.md](sdd-writing-guide.md) whole now, before writing anything: it holds the skeleton write (a hard gate), the remaining sections, SME resolution, the template-superset check, the `ready` flip, the turn boundary and the genome that follows. Never write Phase 3 from memory of it.
253
+ Read [sdd-writing-guide.md](sdd-writing-guide.md) whole before writing anything. It governs the skeleton hard gate, remaining sections, SME resolution, template-superset check, `ready` flip, turn boundary, and following genome. Never write Phase 3 from memory.
@@ -1,101 +1,101 @@
1
1
  # Genome Format Guide
2
2
 
3
- Content rules for every genome, however produced — `author`, `extract` and `edit` write genomes; `uipath-genome` builds them. Templates (`component-genome-template.md`, `process-genome-template.md`) live in `assets/templates/`.
3
+ Rules for genomes written by `author`, `extract`, and `edit`, or built by `uipath-genome`. Templates (`component-genome-template.md`, `process-genome-template.md`) live in `assets/templates/`.
4
4
 
5
5
  ## Writing Rules
6
6
 
7
7
  `author`, `extract` and `edit` obey these on every write, beside the Critical Rules in SKILL.md. Each rule names its subject and the section that states it in full; the section's wording is the rule.
8
8
 
9
- 1. **Choose the genome level before writing**: one buildable project is a component genome, two or more a process genome with one component genome per project — § Two Levels.
10
- 2. **Infer complexity, never ask for it** — § Complexity.
11
- 3. **Replication-grade detail in behavioural wording**, with no activity names, variable names, file paths or code syntax in the body (a case component's build input excepted — § Interface) — § Workflow and § Provenance.
12
- 4. **Configuration Questions carry only the values left open** — § Configuration Questions.
13
- 5. **Every section present, always**, with a stub line where one does not apply — § Stub Lines.
14
- 6. **One skill per Build With row, from the mapping guide only**; operate-only skills belong under Platform Dependencies — [skill-mapping-guide.md](skill-mapping-guide.md).
15
- 7. **The preamble and the blueprint blockquote name `uipath-genome` as the skill that builds the genome, and the comment names `uipath-planner` as the skill that changes it**, and Build With (or Components) precedes Workflow (or Process Map) — § Two Levels rule 5.
16
- 8. **Acceptance criteria are specific and testable** — § Acceptance Criteria.
17
- 9. **Flag ambiguity, never leave gaps**: the best interpretation plus `*[Inferred]*` — § Ambiguity Marker.
18
- 10. **Write immediately, offer edits after**; edits are in place, never a regeneration — § Write, Then Offer Edits; [edit-guide.md](../edit/edit-guide.md).
19
- 11. **Composite source actions are contracts in the genome** — § Workflow; `uipath-genome` turns them into patterns.
20
- 12. **The transactional shape is described; a split is recorded only when it was already decided**: the genome asserts no split, store, template or unit of its own. A flow's `Decided:` line records the split the agreed SDD, the user's request or the refactor answers chose ([transactional-shape-guide.md](transactional-shape-guide.md) rule 8); for every other flow `uipath-genome` asks the split questions.
21
- 13. **Checked after every write**: the writer reviews every write against these rules, then runs the strict check and fixes every `FAIL` before offering edits ([SKILL.md](../../SKILL.md) § Check). `uipath-genome` builds the genome as written.
9
+ 1. Choose level before writing: one buildable project is a component genome; two or more are a process genome with one component per project (§ Two Levels).
10
+ 2. Infer complexity; never ask for it (§ Complexity).
11
+ 3. Use replication-grade behavioral wording without activity names, variable names, paths, or code syntax in the body, except a case component's build input (§ Interface; § Workflow; § Provenance).
12
+ 4. Configuration Questions contain only open values (§ Configuration Questions).
13
+ 5. Include every template section, using its stub when inapplicable (§ Stub Lines).
14
+ 6. Put one skill per Build With row, using only [skill-mapping-guide.md](skill-mapping-guide.md); put operate-only skills under Platform Dependencies.
15
+ 7. The preamble and blueprint blockquote name `uipath-genome` as builder; the comment names `uipath-planner` as editor. Build With or Components precedes Workflow or Process Map (§ Two Levels rule 5).
16
+ 8. Acceptance criteria are specific and testable (§ Acceptance Criteria).
17
+ 9. Resolve ambiguity with the best interpretation plus `*[Inferred]*` (§ Ambiguity Marker).
18
+ 10. Write immediately, then offer edits; edits are in place, never regeneration (§ Write, Then Offer Edits; [edit-guide.md](../edit/edit-guide.md)).
19
+ 11. Composite source actions are genome contracts; `uipath-genome` turns them into patterns (§ Workflow).
20
+ 12. Describe transactional shape, but record a split only when already decided. The genome asserts no split, store, template, or unit of its own. A flow's `Decided:` line records the split selected by the agreed SDD, user's request, or refactor answers ([transactional-shape-guide.md](transactional-shape-guide.md) rule 8); otherwise `uipath-genome` asks split questions.
21
+ 13. After every write, review every rule, run the strict check, and fix every `FAIL` before offering edits ([SKILL.md](../../SKILL.md) § Check). `uipath-genome` builds as written.
22
22
 
23
23
  ## Two Levels
24
24
 
25
25
  | Level | File | Scope | Use when |
26
26
  |---|---|---|---|
27
- | **Component genome** | `<slug>-genome.md` | One buildable project (RPA process, Flow, BPMN, agent, API workflow, coded app, function, IXP model, decision table, case plan) | Automation is one project. Only file for a standalone automation. |
28
- | **Process genome** | `<slug>-genome.md` plus `<slug>-genome/<component-slug>-genome.md` per component | Business process realised by two or more buildable projects | Solution with ≥2 projects, coordinator (Flow / BPMN / Case) invoking other automations, or described process clearly needing ≥2 components |
27
+ | **Component genome** | `<slug>-genome.md` | One buildable project: RPA process, Flow, BPMN, agent, API workflow, coded app, function, IXP model, decision table, or case plan | One automation project; the only file for a standalone automation |
28
+ | **Process genome** | `<slug>-genome.md` plus `<slug>-genome/<component-slug>-genome.md` per component | Business process realized by two or more buildable projects | A solution with ≥2 projects, a coordinator (Flow / BPMN / Case) invoking automations, or a process clearly needing ≥2 components |
29
29
 
30
- Rules:
31
-
32
- 1. **Choose the level before writing, by the buildable projects the rebuild needs.** One project → component genome only. Two or more projects, or one coordinator plus anything it invokes → process genome plus one component genome per project. The source's own units do not decide it: a single source workflow or bot whose parts the source guide's § Component Detection maps to different project types (a Flow and the RPA process it starts) is a process genome. Never flatten a multi-project process into one component genome; never split a single project into a process genome.
33
- - **Test components are the one exception to "one component = one project".** Every test component of a process (a group of test cases over data rows for one business area) lives in a *single* test project, `<ProcessName>.Tests`, with one configuration for constants. Each group keeps its own component genome (Interface, rules, criteria), so the process genome still lists them as components, but Deployment counts one test project, and each group's Type cell names it (§ Build With (component) / Components (process)). Never emit one test project per business area. A UiPath test project that is the whole source takes the same shape when it holds two or more groups: a process genome whose components are its groups, plus one shared component for the execution template and the helpers the cases share, which that project already holds; a single group is a component genome. The procedures the test cases of any other source share are a library component (rule 6).
34
- 2. **Component genomes inside a process carry the `Part of:` line** immediately after the blueprint blockquote, linking back to the process genome. Standalone component genomes omit it.
35
- 3. **Detail lives at the lowest level that owns it.** Component-specific workflow steps, business rules, error handling, and acceptance criteria go in the component genome. The process genome holds only what spans components: process map, handoffs, shared platform dependencies, the transactional shape (its flows, producers and consumers), cross-cutting rules, end-to-end criteria, deployment.
36
- 4. **Every section present, always.** Each template section appears in every genome. A section that does not apply gets its stub line (below), never an omission.
37
- 5. **Preamble is mandatory, and it routes to `uipath-genome`.** Every genome starts with the `<!-- UIPATH-AUTOMATION-GENOME: component|process | ... -->` comment and carries the visible blueprint blockquote after the one-liner, both worded as the template words them. Both name `uipath-genome` as the skill that builds the genome: an agent handed the file reads it before it picks a skill, and a preamble naming only the Build With skills sends it straight to them, past the configuration questions and the build's procedure. The comment also names `uipath-planner` as the skill that changes the genome: `uipath-genome` never edits one, so without that line an agent asked for a small change edits the file directly, skipping the edit rules and the checker. The preamble also prevents an agent from executing the steps instead of building the automation. Build With (component) or Components (process) appears before Workflow / Process Map so an agent meets the skill references before the steps.
38
- 6. **Shared behaviour is one library component.** When several components run the same behaviour and the rebuild has to write it because it is more than one or a few UiPath activities do — run setup and cleanup, drive mapping, a document-store client, a mail built from templates and rules of its own — that behaviour is one common library component, and each consumer's steps call it as they call any library. The library is a project of its own, published to a feed and installed in its consumers as a package; it is never a project of the solution (§ Deployment), and that is no reason to fold its workflows into a consumer; only the user's answer to the build's configuration questions folds one (Library layout). Described in each consumer instead, it is built once per project and the copies drift apart. What one or a few activities do (close an application, append a line to the run's log) stays a step of each consumer. The source guide's § Component Detection names the forms shared behaviour takes in a source.
30
+ 1. **Choose the level before writing, by projects needed to rebuild:** one → component only; two or more, or a coordinator plus anything it invokes → process plus one component per project. Source units do not decide this: parts the source guide's § Component Detection maps to different project types (for example, a Flow and the RPA process it starts) require a process genome. Never flatten multiple projects or split one.
31
+ - **Test components are the one exception to "one component = one project".** Every test component of a process (a group of test cases over data rows for one business area) lives in a *single* `<ProcessName>.Tests` project with one configuration for constants. Each group retains its component genome (Interface, rules, criteria); the process lists groups as components; Deployment counts one test project; each Type cell names it (§ Build With (component) / Components (process)). Never emit one test project per business area. A UiPath test project that is the whole source takes the same shape when it holds ≥2 groups: a process genome of its groups plus one shared component for its execution template and helpers; one group is a component genome. The procedures the test cases of any other source share are a library component (rule 6).
32
+ 2. Put `Part of:` immediately after a process component's blueprint blockquote and link the process genome; standalone components omit it.
33
+ 3. Put detail at the lowest owner: components hold component workflow, rules, errors, and criteria; processes hold only cross-component map, handoffs, shared dependencies, transactional shape, cross-cutting rules, end-to-end criteria, and deployment.
34
+ 4. Every template section appears in every genome; use its stub, never omit it.
35
+ 5. **Preamble is mandatory, and it routes to `uipath-genome`.** Every genome starts with `<!-- UIPATH-AUTOMATION-GENOME: component|process | ... -->`, followed by the visible template-worded blueprint blockquote after the one-liner. Both name `uipath-genome` as builder: an agent handed the file reads it before it picks a skill. The comment also names `uipath-planner` as editor: `uipath-genome` never edits one, so without that line an agent asked for a small change edits the file directly, skipping the edit rules and the checker. The preamble also prevents an agent from executing the steps instead of building the automation. Build With or Components precedes Workflow or Process Map.
36
+ 6. **Shared behavior is one library component.** Shared behavior requiring more than one or a few UiPath activities — run setup and cleanup, drive mapping, a document-store client, a mail built from templates and rules of its own — is one common library component: a separate project, published to a feed and installed as a package in consumers, never part of the solution's projects (§ Deployment). Consumers call it; do not duplicate or fold it into a consumer unless the user's Library layout answer says so. What one or a few activities do (close an application, append a line to the run's log) stays a step of each consumer. The source guide's § Component Detection defines shared forms.
39
37
 
40
38
  ## File Naming and Location
41
39
 
42
- - Write to user's current working directory unless they name a location.
40
+ - Write in the user's current working directory unless another location is named.
43
41
  - Slug: split CamelCase on capitals, lowercase, hyphens for spaces, strip other characters. "Invoice Processing" → `invoice-processing-genome.md`; "InvoiceIntake" → `invoice-intake-genome.md`; "Email Triage & Routing" → `email-triage-routing-genome.md`.
44
- - Extracted genomes take slug from source project or solution name; fall back to directory name.
45
- - Process genome components: `<process-slug>-genome/<component-slug>-genome.md`. Component slug from project name; when two components would share a slug, each adds its kind (`-process`, `-model`, `-agent`).
46
- - A genome authored from an SDD is written beside it, named after it: `<process-slug>-sdd.md` → `<process-slug>-genome.md`. A solution SDD gets one genome, named after its root and written beside it: `<solution-slug>-solution-sdd.md` → `<solution-slug>-genome.md`, its component genomes in `<solution-slug>-genome/`.
42
+ - Extracted genomes use the source project or solution name, falling back to the directory name.
43
+ - Process components use `<process-slug>-genome/<component-slug>-genome.md`; derive the component slug from its project name and append its kind (`-process`, `-model`, `-agent`) when slugs collide.
44
+ - An SDD genome is beside the SDD: `<process-slug>-sdd.md` → `<process-slug>-genome.md`; `<solution-slug>-solution-sdd.md` → `<solution-slug>-genome.md`, with components in `<solution-slug>-genome/`.
47
45
 
48
46
  ## Section Rules
49
47
 
50
48
  ### Overview
51
- Business purpose, who it serves, what triggers it. Write as the author of the automation, never as a describer of files ("this project contains…" is banned). An extracted test suite says in its first sentence that it is a test and what it proves.
49
+ State business purpose, users, and trigger as the automation's author, never as a file description or “this project contains…”. An extracted test suite's first sentence says it is a test and what it proves.
52
50
 
53
51
  ### Target Applications (component) / Actors and Systems (process)
54
- Resolve infrastructure to the real system. "Integration Service" is not an application; write "Salesforce", "ServiceNow". Process genomes also list human actors.
52
+ Resolve infrastructure to the real system, not “Integration Service”: write “Salesforce”, “ServiceNow”. Process genomes also list human actors.
55
53
 
56
54
  ### Build With (component) / Components (process)
57
- One skill per row from [skill-mapping-guide.md](skill-mapping-guide.md). Rationale states why that skill and not the nearest alternative. **A process genome's Components table links every component genome** in its Genome column, as a markdown link to `<process-slug>-genome/<component-slug>-genome.md`: the build finds the components only through those links.
55
+ Use one skill per row from [skill-mapping-guide.md](skill-mapping-guide.md), with rationale over the nearest alternative. **A process genome's Components table links every component genome** in its Genome column, as a markdown link to `<process-slug>-genome/<component-slug>-genome.md`: the build finds the components only through those links.
58
56
 
59
- **Process genomes with test components:** the Type column of every test component reads "Test-case group in project `<ProcessName>.Tests`", and the Process Map diagram nests the test components inside a subgraph for the test project.
57
+ For process test components, every Type is `Test-case group in project <ProcessName>.Tests`; the Process Map nests them in a subgraph for that test project.
60
58
 
61
59
  ### Platform Dependencies
62
- Every Orchestrator or Integration Service resource touched: queues, assets, credentials, storage buckets, connections, folders, triggers. Each row names resource type and purpose. Extracted genomes keep the source resource name; authored genomes propose one.
60
+ List every Orchestrator or Integration Service resource touched—queues, assets, credentials, storage buckets, connections, folders, and triggers—with type and purpose. Extracted genomes retain source resource names; authored genomes propose names.
63
61
 
64
- **Credentials: one credential asset per login account**, named after the account or persona, with its environment or tenant. Scenarios often sign in as several accounts with different roles on different tenants; never collapse them onto one login. The asset holds the secret; the genome and the data rows name the asset — a password, token or secret value never appears in a genome, a data file or a report, and dropping the account identity along with the secret loses which role each scenario ran as. A secret crosses no component boundary: an Interface argument, a Handoffs row and a start argument carry the asset's name, and the component that uses the secret reads it in the scope that uses it, unless a connection holds the secret (an Integration Service connection). A secret with no account behind it (an API key, a token) is a Secret asset.
62
+ Use one credential asset per login account, named for account/persona plus environment or tenant; never collapse roles or tenants. The asset holds the secret; genomes, data rows, and reports never contain passwords, tokens, or secret values. Preserve account identity. Across component boundaries carry only the asset name in Interface arguments, Handoffs, and start arguments; the consumer reads the secret in its use scope unless an Integration Service connection holds it. A secret without an account (an API key, a token) is a Secret asset.
65
63
 
66
- **Identifiers are not credentials.** An application registration's client id and tenant id, a service URL or a mailbox address are Text assets (or configuration values), one per value, even when the source stored them in its credential vault: a credential asset's second half is a secret that a consumer cannot read back as text without a conversion the workflow analyzer rejects at build. The genome names them as Text assets; execution declares them the same way.
64
+ Identifiers are not credentials: client ID, tenant ID, service URL, and mailbox address are separate Text assets or configuration values, even in a credential vault. Name and declare them as Text assets. A credential's secret cannot be read back as text without a conversion rejected by the workflow analyzer.
67
65
 
68
- **Values the source platform keeps per environment are assets.** A value the source platform holds outside the process and sets per environment — an environment variable, a global value — is one asset, named as the source names it, of the type its values take: Text, Integer or Bool, Secret for a secret, a credential asset for an account. When its value is open, the Configuration Question that asks it names the asset. A component whose type reads no assets keeps such a value in the variable its owning skill provides. A source's own configuration store is not such a value (§ Configuration Questions).
66
+ A value the source platform holds outside the process and sets per environment — an environment variable, a global value — is one asset, named as the source names it and typed Text, Integer, Bool, Secret, or credential as appropriate. Open values become Configuration Questions naming the asset. A component whose type reads no assets keeps such a value in the variable its owning skill provides. A source configuration store is not such a value (§ Configuration Questions).
69
67
 
70
68
  ### Interface (component)
71
- Inputs, outputs, side effects. Mandatory content for a component inside a process genome (it is the contract the Handoffs table relies on). Standalone components may stub it: "Runs unattended with no arguments; outputs are the side effects listed in Workflow." Name each input and output by its contract name, without the source's direction prefix (`in_`, `out_`, `io_`): `MailboxFolder`, not `in_MailboxFolder`. A contract name that is a reserved word of Visual Basic or C#, or a .NET namespace or type name (`To`, `Sub`, `Date`, `Type`, `Object`, `System`), takes a qualifier (`ToAddresses`, `KeyDate`, `SapSystem`): the expression language is chosen at build, and such a name breaks the expressions of one of the two. The source argument is provenance and goes to the Source Map. A `uipath-maestro-case` component whose case a Case Management SDD designed names that SDD's path, relative to the genome, as its build input: `uipath-genome` hands that SDD to `uipath-maestro-case` unchanged, and the case is built from it, never redesigned.
69
+ State inputs, outputs, and side effects. Mandatory inside a process; a standalone component may use: `Runs unattended with no arguments; outputs are the side effects listed in Workflow.` Do not use source direction prefixes (`in_`, `out_`, `io_`): `MailboxFolder`, not `in_MailboxFolder`. Qualify reserved Visual Basic/C# words and .NET namespaces/types (`To`, `Sub`, `Date`, `Type`, `Object`, `System`), e.g. `ToAddresses`, `KeyDate`, or `SapSystem`; expression language is chosen at build. Source arguments belong in Source Map.
72
70
 
73
- **Library components** (a project other components consume as a package) carry, instead of the three bullets, one table per public workflow — never one table shared by several, which hides each workflow's types and directions: `Argument | Direction | Type | Description`. The Type is the one the rebuild gives the argument — a flag is a Boolean and a count a number, whatever text the source carried them in — and the description states the default and the value format (what a flag means, how a date is rendered, which side quotes a value), plus the conventions consumers rely on (naming, defaults, what a failed final check does). This table is the contract consumers are authored against before the library packs; every detail it omits becomes a question between two build groups. A workflow over the analyzer's argument cap (20) carries its optional switches and values in one options object — one In argument with its own table (`Field | Type | Default | Description`).
71
+ A `uipath-maestro-case` component designed by a Case Management SDD names that SDD's path relative to the genome as build input: `uipath-genome` hands it unchanged to `uipath-maestro-case`, which builds from it without redesign.
74
72
 
75
- **State kept between calls.** A library workflow starts each call from its declared defaults, and a library project holds no global variables or constants, so state the source keeps from one call of its actions to the next — a value one action stores and another reads, an attached application or handle, its own instance of another component it calls — lives in the consumer and crosses each call as an argument: Out from the workflow that produces it, In to each that reads it, In/Out where one changes it. A coded library's static field does outlive a call, but as one value for every caller in the job and none inside an isolated invoke, and no Interface shows it, so it holds none of this state. An attached application crosses as the application handle the owning skill's public-workflow contract has workflows return and accept. The conventions name the holder and the work the source ran on its own — set-up before the first call, a close-down when the run ends, after a failure too — each a public workflow the holder calls at that point. The holder follows the source's instances, as the source guide's § Call Graph Rules state them: an instance per caller is held by each caller — a process in its entry workflow for its whole run, passed to the workflows that call the library, and a calling library in its own Interface, since it holds nothing either; one instance per run is held by the run's entry workflow and passed to every caller, calling libraries included. A stored value no action changes is no state: it is a fact or a Configuration Question (§ Configuration Questions).
73
+ **Library components** (a project other components consume as a package) carry, instead of the three bullets, one `Argument | Direction | Type | Description` table per public workflow — never one table shared by several, which hides each workflow's types and directions. Types are rebuild types (a flag is Boolean and a count is a number); descriptions include default, format, quoting side, consumer conventions, naming, defaults, and failed-final-check behavior. This is the pre-build contract; omissions become questions between build groups. Over the analyzer's argument cap (20), put optional switches and values in one options object with one In argument and a `Field | Type | Default | Description` table.
76
74
 
77
- **Test components** (a group of test cases over data rows in the single test project) list the row schema per test case: the fields that vary per scenario, separately from the constants in the project's configuration. Credentials appear as the name of a credential asset per row, never as values. Each case names its data set — a single row included — with its row count and where the source keeps it, since the rebuild keeps it there: a data set kept in a store is the case's data source, the project's test-data entity filtered on the data set's name; one shipped with the project is a variation file in the owning skill's format, named after the case, whose fields stay within the analyzer's argument cap (above). A case with no data set takes its values from configuration constants.
75
+ **State kept between calls.** Each library workflow starts from declared defaults; no global variables or constants. State one action stores for another, attached applications/handles, and called-component instances live in the consumer and cross each call as an argument: Out from the workflow that produces it, In to each that reads it, In/Out where one changes it. A coded library static field outlives a call only as one value shared by every caller in the job and none inside an isolated invoke; it is not shown in Interface and holds none of this state. An attached application crosses as the application handle the owning skill's public-workflow contract has workflows return and accept. Describe setup before first call and cleanup at run end, including after failure, as public workflows, naming holder and source work. Follow the source guide's § Call Graph Rules: an instance per caller is held by each caller (a process in its entry workflow for the run, passed to callers, and a calling library in its Interface); one instance per run is held by the entry workflow and passed to every caller, including libraries. An unchanged stored value is a fact or Configuration Question, not state.
78
76
 
79
- ### Configuration Questions
80
- Format: `N. {Question}? ({setting | constant}; default: {value})` — every question names its kind (below) before its default.
77
+ **Test components** list each test case's varying row schema separately from project constants; credentials are credential-asset names, never values. Name each case's data set — a single row included — its row count, and source location, retaining that location: a data set kept in a store is the case's data source: the project's test-data entity filtered on the data set's name; shipped data is a variation file in the owning skill's format, named after the case, with fields within the analyzer's argument cap (20). A case without a data set uses configuration constants.
81
78
 
82
- **Authored genomes** ask every value the description gives or leaves open: paths, URLs, addresses, server names, credential and queue names, thresholds, column names, and the application choice itself ("Which email provider? (constant; default: Outlook)").
79
+ ### Configuration Questions
80
+ Use `N. {Question}? ({setting | constant}; default: {value})`; every question states kind before default.
83
81
 
84
- **Extracted genomes ask only what the source leaves open.** The source is the ground truth and a migration keeps its rules, so a value the source fixes has one right answer; asked, it can only be answered with its default. A value is open when it is:
82
+ Authored genomes ask every described or open value, including paths, URLs, addresses, servers, credentials, queues, thresholds, columns, and application choice (“Which email provider? (constant; default: Outlook)”). Extracted genomes ask only source-open values; source-fixed values are facts. A source value is open when it is:
85
83
 
86
- 1. **Bound to the environment** the rebuild runs in — hosts and URLs, paths, shares and folders, mailboxes, recipients and senders, domains, system and client entries, the browser, credential, asset, queue, bucket and Data Fabric entity names, schedules, the language model an AI step uses (the tenant decides which models exist), the reach of a clean-up that acts beyond what the run set up (every window of the session, every certificate of the user, every mapped drive). Default: the source's value.
87
- 2. **Missing from the export** — a value the build needs that the export does not hold: a setting the source reads from a configuration file, table or vault left out of the export, a caption the source picks only by its key, the starting content of a state file the source reads before it first writes it (a last-used number). Default: the key name and "not in the export".
88
- 3. **A choice the source never faced** — the target platform offers a way the source had no counterpart for: an Integration Service connection beside the source's token. Default: the source's way. The run's log is the exception: its default is the job's log in Orchestrator, keeping the source's own run log the option ([extract-guide.md](../extract/extract-guide.md) Step 3, evidence policy). The mirror case is open too: the target lacks the source's way, as for an inbound endpoint that took the caller's own token where the target authenticates every caller itself. Default: the target's way, named.
84
+ 1. **Environment-bound:** hosts/URLs, paths/shares/folders, mailboxes, recipients/senders, domains, system/client entries, browser, credentials, assets, queues, buckets, Data Fabric entities, schedules, AI language model (the tenant decides which models exist), or cleanup reach beyond run setup (every window of the session, every certificate of the user, every mapped drive). Default is source value.
85
+ 2. **Missing from export:** required configuration-file/table/vault value, key-selected caption, or initial state-file content (a last-used number). Default is key name and `not in the export`.
86
+ 3. **A target choice absent from source:** e.g. an Integration Service connection beside a source token. Default is source method. The log defaults to the job's Orchestrator log while retaining the source log as an option ([extract-guide.md](../extract/extract-guide.md) Step 3, evidence policy). The mirror case—target lacks the source method, such as an inbound endpoint whose caller supplied a token while target authenticates callers—is open; default is the named target method.
89
87
  4. **Read from the source's own configuration store** — a key the source reads from a config table, properties file or workbook the export holds, whatever it carries (a host, a timeout, a poll interval, a limit, a flag): the source's owners change it without a release, so the rebuild keeps it changeable. Default: the source's value. A key that only names another resource is a fact (below); the same value written only in the code is a fact.
90
88
 
91
- Every other value is a fact, written once where its reader looks: a value typed, posted, compared or checked, and a limit, length or format, in the Workflow substep or Business Rule that uses it; a wait, timeout, poll interval or attempt count in its step or that step's Error Handling; the item retry and consecutive-failure counts in the Transactional Shape's outcomes ([transactional-shape-guide.md](transactional-shape-guide.md) rule 4); a switch a start argument sets in Interface; the application and a machine prerequisite (Excel installed) in Target Applications; a file the project ships in the step that uses it and the Source Map. Changing a fact is a genome edit, not a configuration answer.
89
+ All other values are facts where used: data values, comparisons, limits, lengths, and formats in Workflow or Business Rule; waits, timeouts, polls, and attempt counts in the step or Error Handling; item retry and consecutive-failure counts in Transactional Shape outcomes ([transactional-shape-guide.md](transactional-shape-guide.md) rule 4); start switches in Interface; applications and machine prerequisites in Target Applications; shipped files in their using step and Source Map. Changing a fact is a genome edit.
92
90
 
93
- **A setting depends on the environment.** Every Orchestrator connection the automation is deployed to is its own environment — dev, UAT, prod — and the build is often made on another machine and tenant than the one it runs on. Mark each Configuration Question as a *setting* when its answer differs between environments (hosts and URLs, mailboxes and recipients, shares and paths, credential, queue, bucket, asset and Data Fabric entity names, schedules, language models) or must change without a new version (a key the source reads from its configuration store, item 4 above), and as a *constant* when it is the same in every environment and a change to it is a change to the automation (thresholds, limits, retry counts, message texts). The kind is written in the question's parenthesis, before the default: `(setting; default: …)` or `(constant; default: …)`. A configuration key is not by itself one setting: several keys that always carry the same value (one recipient list repeated per notification type) are one setting, and a key whose value only names another resource (a vault alias, a table name fixed by the setup) is a fact. A source's own configuration store (a config table, a properties file, a workbook) is not a Platform Dependency of the rebuild: its keys become questions or facts, and where the rebuild's settings and constants live is decided by execution's configuration questions.
91
+ Every Orchestrator connection the automation is deployed to is its own environment — dev, UAT, prod — and the build is often made on another machine and tenant than the one it runs on. Mark a question `setting` when it differs by environment (hosts and URLs, mailboxes and recipients, shares and paths, credential, queue, bucket, asset and Data Fabric entity names, schedules, language models) or must change without a new version (item 4); mark it `constant` when identical across environments and changing it changes the automation (thresholds, limits, retry counts, message texts). Use exactly `(setting; default: …)` or `(constant; default: …)`. A configuration key is not by itself one setting: several keys that always carry the same value (one recipient list repeated per notification type) are one setting, and a key whose value only names another resource (a vault alias, a table name fixed by the setup) is a fact. The source configuration store is not a rebuilt Platform Dependency. Where rebuilt settings/constants live is decided by execution configuration questions.
94
92
 
95
- Both modes: when the open values run to dozens (a configuration table or procedure), group them by theme into one question per theme and name every key inside its question, before the question mark, so the list stays readable and the build can still map each key: `4. Which folders does the run use — the drive letter (row 5) and the in-process, processed and invalid folders (rows 6–8)? (setting; default: not in the export)`. A grouped question holds values of one kind; a theme whose values are settings and constants is two questions. When an empty value would change the flow instead of failing (an end time that compares as reached, a list matched by containment), the question says so — "required: empty ends the run" — so the build guards it. Questions the build asks itself are not written into the genome: the scaffolding choices (project location, target framework, expression language, installed package versions), and the split questions (unit, split, store, template, triggers and runners) when the Transactional Shape is not the stub.
93
+ When open values number dozens, group by theme and name every key before the question mark: `4. Which folders does the run use — the drive letter (row 5) and the in-process, processed and invalid folders (rows 6–8)? (setting; default: not in the export)`. Each group has one kind, so mixed themes become two questions. State when empty changes flow rather than fails (for example, `required: empty ends the run`). Do not write scaffolding questions—project location, target framework, expression language, package versions—or split questions (unit, split, store, template, triggers, runners) when Transactional Shape is not a stub.
96
94
 
97
95
  ### Workflow (component) / Process Map (process)
98
- Numbered steps in execution order, each `N. **{Step name}** (input: …; output: …)`: the number keys the step's row in the Source Map's step table, the bold name heads its Business Rules and Error Handling entries. Steps may be grouped under `###` headings (one per entry point), each step keeping that form. Steps several entry points share are written once, under a heading of their own, and each entry point's last step names the step it continues into. A step that calls an automation the source does not hold (another project's process, a workflow outside the export) names it by what it does, states what the step passes to it and what it uses of the result, and flags `*[Inferred]*` what the caller does not show; the callee is a Platform Dependency the rebuild calls but does not build, and the Source Map's unresolved-invocation row names it. A step involving several fields, a condition, validation, or a transformation gets substeps (a, b, c) and a data annotation `(input: …; output: …)`.
96
+ Write numbered steps in execution order as `N. **{Step name}** (input: …; output: …)`. The number keys the Source Map row; the bold name keys Business Rules and Error Handling. Steps may be grouped under `###` headings (one per entry point), each step keeping that form. Shared steps appear once under their own heading; each entry point's last step names its continuation. Use lettered substeps for multiple fields, conditions, validation, or transformations, with input/output annotations.
97
+
98
+ A step calling an automation not held by the source (another project's process, a workflow outside the export) names behavior, passed inputs, and used results, flags `*[Inferred]*` what the caller does not show, and treats the callee as a Platform Dependency rather than something built; Source Map records an unresolved invocation.
99
99
 
100
100
  Shallow, insufficient for replication:
101
101
  ```markdown
@@ -112,60 +112,59 @@ Sufficient:
112
112
  e. If any mismatch exceeds tolerance, flag the invoice with the field, expected value, and actual value
113
113
  ```
114
114
 
115
- Test: if a builder cannot rebuild the step from the text alone, add detail. Never compress distinct steps to hit a count.
115
+ Test: if a builder cannot rebuild the step from the text alone, add detail. Never combine distinct steps to meet a count.
116
116
 
117
- **Test components** list one numbered step per test case — `N. **Test case: <title>**` — with the case's steps as lettered substeps and its assertions named in them; the Source Map's step table then has one row per case. A **library** component lists one numbered step per public workflow, grouped by the screen (or stage) it acts on, in the order a user meets the screens; the steps are independent entry points the consumers invoke, not one execution, and a lead-in sentence says so.
117
+ Test components use one `N. **Test case: <title>**` per case, with lettered case steps and assertions; Source Map has one row per case. Libraries use one numbered step per public workflow, grouped by screen/stage in user order, as independent entry points rather than one execution, with a lead-in saying so.
118
118
 
119
- **Composite UI interactions carry their full contract.** Source frameworks and descriptions bundle a multi-step interaction into one step: type-ahead pick, menu or tree path, option list, find-row-then-act, keystrokes to the focused element. The substep states, in behavioural words, everything the builder needs to rebuild the interaction: what is typed, how the suggestion or option is matched (equals / contains / nth), which key confirms, each path level, the row rule. "Enter Voluntary into Primary Reason" is a data loss; "type Voluntary into Primary Reason and pick the suggestion that equals Voluntary" is the step. A source guide's composite-actions table gives the wording per source action; execution builds each contract as a pattern.
119
+ Composite interactions (type-ahead pick, menu or tree path, option list, find-row-then-act, keystrokes to the focused element) are full contracts: typed value, matching method (equals/contains/nth), confirming key, every path level, row rule, and other builder-required behavior. “Enter Voluntary into Primary Reason” is a data loss; “type Voluntary into Primary Reason and pick the suggestion that equals Voluntary” is the step. Use the source guide's composite-actions wording; execution builds each contract as a pattern.
120
120
 
121
- **A substep in a window an action opened names that window.** When an action opens a window (a dialog, a popup, a browser tab) and the next substep acts inside it, that substep names the window: "in the Select Vendor dialog, click OK". A source that acts in the new window without first switching to it never names it: deduce the name from the action that opened it and flag it `*[Inferred]*`.
121
+ A substep in a dialog, popup, or browser tab opened by an action names that window: “in the Select Vendor dialog, click OK”. If the source acts there without switching, infer the name from the opening action and mark `*[Inferred]*`.
122
122
 
123
- **A source's workaround for its own platform is not behaviour.** A clipboard copy between two ranges, a temporary file written beside the input, a rename around a path the source's script cannot open, a user setting switched to steer a file format: the step states the result the workaround produced, and the Source Map names the workaround — unless a later step reads what it leaves behind, which makes it data.
123
+ A source-platform workaround is not behavior (a clipboard copy between two ranges, a temporary file written beside the input, a rename around a path the source's script cannot open, a user setting switched to steer a file format): state its produced result and identify the workaround in Source Map. It becomes data if a later step reads what it leaves behind.
124
124
 
125
125
  ### Business Rules
126
- Plain language, no code syntax, specific fields and thresholds kept. Group under `### Step N: {name}` headings for the step where the rule fires; a rule or handler several steps share goes once under a heading naming them (`### Steps 4, 10 and 15: …`); cross-step rules under `### General`.
126
+ Use plain language, no code syntax, with fields and thresholds; group under `### Step N: {name}`, shared rules under a heading naming all steps (`### Steps 4, 10 and 15: …`), and cross-step rules under `### General`.
127
127
 
128
128
  | Code construct | Genome wording |
129
129
  |---|---|
130
- | `If` / `FlowDecision` / `if` | "If {condition}, then {action}; otherwise {action}" |
131
- | `Switch` / `FlowSwitch` / `switch` | "Route based on {field}: {case} → {action}, {case} → {action}" |
132
- | `AndAlso` / `&&` | "and" |
133
- | `OrElse` / `\|\|` | "or" |
134
- | `>` `<` `=` `<>` `==` `!=` | "exceeds", "is less than", "is", "is not" |
130
+ | `If` / `FlowDecision` / `if` | `If {condition}, then {action}; otherwise {action}` |
131
+ | `Switch` / `FlowSwitch` / `switch` | `Route based on {field}: {case} → {action}, {case} → {action}` |
132
+ | `AndAlso` / `&&` | `and` |
133
+ | `OrElse` / `\|\|` | `or` |
134
+ | `>` `<` `=` `<>` `==` `!=` | `exceeds`, `is less than`, `is`, `is not` |
135
135
 
136
- `Amount > 10000 AndAlso Category = "Premium"` → "If amount exceeds $10,000 and category is Premium".
136
+ `Amount > 10000 AndAlso Category = "Premium"` → “If amount exceeds $10,000 and category is Premium”.
137
137
 
138
138
  ### Error Handling
139
- Same step-associated layout as Business Rules, plus `### Global`. Behavioural wording: "Retries 3× on timeout, then routes the item to the exception queue" — never "RetryScope with NumberOfRetries=3". An entry states the failure, the outcome and the level that handles it; a failure that every UI step shares ("expected element not found: screenshot, stop naming the step") is written once under `### Global`, not repeated per step, and a step entry exists only where that step's handling differs. A Workflow substep's "confirm …" is a post-condition of the action before it, not a separate check (execution builds it as that action's verification).
139
+ Use the same step-associated layout plus `### Global`. State failure, outcome, and handling level behaviorally, including retry counts and routes: “Retries 3× on timeout, then routes the item to the exception queue” — never “RetryScope with NumberOfRetries=3”. A failure every UI step shares (“expected element not found: screenshot, stop naming the step”) is one Global entry; add a step entry only when handling differs. A Workflow substep confirming an action is that action's post-condition, not a separate check.
140
140
 
141
141
  ### Transactional Shape
142
- Whether the automation iterates over units of work — items that succeed, fail, are retried and are tracked independently of one another — and, when it does, per flow how the work is handled today and how it could be divided at build, asserting no split except one a `Decided:` line records: [transactional-shape-guide.md](transactional-shape-guide.md). A genome with no unit of work carries the stub line (§ Stub Lines).
142
+ State whether the automation iterates independently tracked units that succeed, fail, retry, and are tracked; if so, state each flow's handling and possible build division while asserting no split except a `Decided:` line records. Follow [transactional-shape-guide.md](transactional-shape-guide.md). No-unit genomes use the § Stub Lines stub.
143
143
 
144
144
  ### Acceptance Criteria
145
- A numbered list (`1. …`), so the build report's verdicts and a comparison of two runs cite a criterion by its number. Patterns:
145
+ Use numbered criteria (`1. …`) so reports and run comparisons cite numbers. Write at least one criterion per source: every major workflow step, transformation/field mapping, business rule, error handler, plus empty, duplicate, and malformed-data edge cases. Patterns:
146
+
146
147
  - "Given {specific input}, the automation {specific observable outcome}"
147
148
  - "When {condition}, the automation {expected behaviour}"
148
149
  - "{Specific action} produces {specific result}"
149
150
 
150
- Sources, one criterion each minimum: every major workflow step, every data transformation or field mapping, every business rule, every error handler, plus edge cases (empty input, duplicate, malformed data).
151
-
152
- **A criterion whose outcome rests on a language model's answer is written in one of three checkable forms.** (1) It states the answer: "Given the model classifies the item as {category}, …" — checked with a supplied or recorded answer, so it tests the build, not the model. (2) It states an invariant that holds whatever the model answers: every record's status agrees with the classification it stores, every handled message has exactly one record. (3) For the quality of the model's own answer, it gives an input whose right answer is computed outside the model — dates written out, a count derived from reference data, a value the input itself carries — is checked over several runs, and says it rests on the model, so a miss is a finding on the model, never on the build.
153
-
154
- Banned: "completes successfully", "handles errors properly", and anything code-level ("Uses ReadPDF activity", "Calls Main.xaml", "Assigns true to isValid").
151
+ never use “completes successfully”, “handles errors properly”, or code-level claims (“Uses ReadPDF activity”, “Calls Main.xaml”, “Assigns true to isValid”).
155
152
 
156
153
  | Banned | Acceptable |
157
154
  |---|---|
158
155
  | "Uses ReadPDF to process InvoiceFile" | "Given an invoice PDF, extracts vendor_name, invoice_number, line items (description, qty, unit_price), tax, and total" |
159
156
  | "SendMail sends to admin@company.com" | "When processing fails after retries, sends a notification to the configured administrator with invoice_number and failure reason" |
160
157
 
158
+ For language-model outcomes use one checkable form: (1) state the answer (“Given the model classifies the item as {category}, …”) and check against a supplied/recorded answer; (2) state an invariant independent of the answer (every record's status agrees with the classification it stores, every handled message has exactly one record); or (3) test quality against an answer computed outside the model (dates written out, a count derived from reference data, a value the input itself carries) over several runs, explicitly attributing misses to the model, not the build.
159
+
161
160
  ### Complexity
162
- `simple | medium | complex`. Never ask the user to declare it. Component genomes: inferred from the description, PDD or SDD ([author-guide.md](../author/author-guide.md) § Step 3 — Infer complexity) or from source signals ([extract-guide.md](../extract/extract-guide.md) § Step 5 — Infer complexity (component)); both default to the lower level when ambiguous and escalate when later evidence demands it. Process genomes are `medium` with at most three **buildable projects**, no human lanes and no `complex` component, otherwise `complex`; the test-case groups of the single test project count as that one project, not one component each. A human lane is a human actor whose action the process **waits on** (an approval, a task, a mailed decision); recipients of notifications are not lanes.
161
+ Use only `simple | medium | complex`; never ask the user. Component level comes from description, PDD, or SDD ([author-guide.md](../author/author-guide.md) § Step 3 — Infer complexity), or source signals ([extract-guide.md](../extract/extract-guide.md) § Step 5 — Infer complexity (component)); default lower when ambiguous and escalate when evidence requires. Process is `medium` with at most three **buildable projects**, no human lanes, and no `complex` component; otherwise `complex`. Test groups in one test project count as one project. A human lane is an actor the process waits on (approval, task, mailed decision), not a notification recipient.
163
162
 
164
163
  ### Tags
165
- Comma-separated: business domain, target applications, platform features (document-understanding, queues, human-in-the-loop, …).
164
+ Comma-separated business domain, target applications, and platform features (document-understanding, queues, human-in-the-loop, …).
166
165
 
167
166
  ### Source Map (extraction only)
168
- Where every part of an extracted genome came from — its contract rows, the step table and, for a framework source, the migration contract: [extracted-genome-guide.md § Source Map](extracted-genome-guide.md). Authored genomes have no Source Map.
167
+ Record where every extracted genome element came from, including contract rows, step table, and framework migration contract: [extracted-genome-guide.md § Source Map](extracted-genome-guide.md). Authored genomes have none.
169
168
 
170
169
  ## Population Matrix (component genomes)
171
170
 
@@ -175,11 +174,11 @@ Where every part of an extracted genome came from — its contract rows, the ste
175
174
  | Target Applications, Build With, Platform Dependencies, Interface, Configuration Questions, Complexity, Tags | Full | Full | Full |
176
175
  | Workflow | 3-5 steps minimum | 5+ steps, substeps where detailed | 8+ steps, substeps where detailed |
177
176
  | Business Rules | Stub allowed | Step-associated | Step-associated |
178
- | Error Handling | Stub allowed | Per step where applicable | Per step where applicable |
179
- | Transactional Shape | Full when a unit of work exists ([transactional-shape-guide.md](transactional-shape-guide.md) rule 1), else stub | Full when a unit of work exists, else stub | Full when a unit of work exists, else stub |
180
- | Acceptance Criteria | 3-4 minimum | 5+ incl. data checks | 7+ incl. data checks |
177
+ | Error Handling | Stub allowed | Per applicable step | Per applicable step |
178
+ | Transactional Shape | Full when a unit exists ([transactional-shape-guide.md](transactional-shape-guide.md) rule 1), else stub | Full when a unit of work exists, else stub | Full when a unit of work exists, else stub |
179
+ | Acceptance Criteria | 3-4 minimum | 5+ including data checks | 7+ including data checks |
181
180
 
182
- Minimums, not ceilings. Fifteen distinct steps in the source or description means fifteen steps in the genome. A test component's steps are its test cases and a library's its public workflows, so the Workflow minimums apply to neither: their depth is in the cases' checkpoints and the workflows' substeps.
181
+ These are minimums, not ceilings. Preserve fifteen distinct source/description steps as fifteen genome steps. Test steps are cases and library steps are public workflows; their depth is in checkpoints and substeps, so Workflow minimums do not apply.
183
182
 
184
183
  ## Stub Lines
185
184
 
@@ -194,37 +193,46 @@ Minimums, not ceilings. Fifteen distinct steps in the source or description mean
194
193
 
195
194
  ## Ambiguity Marker
196
195
 
197
- When intent is unclear from the source, write the best interpretation, append `*[Inferred]*` to that line, and record the uncertainty in the Source Map. Never leave a section empty because the source is ambiguous. Users remove markers once they confirm the content ("Remove the inferred flags").
196
+ For unclear intent, write the best interpretation, append `*[Inferred]*`, and record uncertainty in Source Map. Never leave a section empty. Users remove markers with “Remove the inferred flags”.
198
197
 
199
198
  ## Write, Then Offer Edits
200
199
 
201
- Every writing verb writes the file(s) to the working directory immediately — no preview, no confirmation — then says where they are and asks "Want to adjust anything?". Edits are targeted and in place, never a regeneration, and made only by the `edit` verb of the skill that writes genomes.
200
+ Every writing verb writes files to the working directory immediately—no preview or confirmation—then reports their location and asks “Want to adjust anything?”. Only the writing skill's `edit` verb makes targeted in-place edits; never regenerate.
202
201
 
203
202
  ## Provenance
204
203
 
205
- The body of a genome reads as a specification, not a report: no "the project contains", no file paths in Workflow or Business Rules, no activity or variable names anywhere. Provenance lives only in the Source Map section. A message, log text or text shown to a person (a form's title, instruction or field label) the source writes is behaviour and is written in the body as the source spells it; a text that embeds a variable or activity name, a path or one of the source project's own file names is described in the body instead ("the corrupt-register message") and quoted in full in its step's Source Map row.
204
+ Genome bodies are specifications, not reports: never write “the project contains”, file paths in Workflow or Business Rules, or activity/variable names anywhere. Provenance belongs only in Source Map. Source-written messages, log text, and text shown to people (a form's title, instruction or field label) are behavior and retain source spelling. If text embeds a variable/activity name, path, or source-project file name, describe it instead (for example, “the corrupt-register message”) and quote it fully in that step's Source Map row.
206
205
 
207
206
  ## Process Genome Sections
208
207
 
209
- The section rules of the sections only a process genome has; a component genome has none of them.
208
+ Only process genomes have these sections.
210
209
 
211
210
  ### Process Map diagrams (process)
212
- One Mermaid component-view diagram (`flowchart TB`), kept under `## Process Map` after the numbered stage list, with no subheading above it. Sequence and order live in the stage list, never in the diagram.
213
- - **Nodes:** the automation's own components and its queues only; no people or outside systems, so no lanes. One node per queue, never a grouped node, drawn as a cylinder `[( )]` with no number. Every component node carries its number from the Components table in brackets.
214
- - **Trigger marks** prefix a component node: ⏰ time trigger, 🔔 queue trigger (a component that consumes a queue). A component with no mark is invoked by another component; one with several entry points carries the mark of each triggered one. A trigger is *[Inferred]* when the source holds no schedules. A short legend under the diagram names the marks and the arrows.
215
- - **Arrows** point the way the data or work travels; never a double-headed arrow, draw two. Solid: a component adds to a queue (component → queue), takes from or reads a queue (queue → component), or calls another component (caller → callee). Dotted: a handoff between components through a file or mail rather than a queue or a call. A queue inside one component (the stages a decided split realises) is drawn in that component's label — `2 InvoiceProcess<br/>Dispatcher → queue → Performer` — never as a loop from the component back to itself.
216
- - **Layout:** wrap node labels with `<br/>` at about 34 characters per line and edge labels at about 26; never put `<br/>` in a subgraph title (a test project's components may share one subgraph). A Mermaid parse success does not catch clipped text: when a renderer (mermaid-cli) is installed, render the diagram and look at it; otherwise keep to the wrap widths above.
211
+ Under `## Process Map`, after the numbered stage list and without a subheading, include one Mermaid `flowchart TB` component-view diagram. Sequence belongs in the stage list, not the diagram.
212
+
213
+ - Nodes are automation components and queues only: no people or outside systems. One node per queue, never grouped, using cylinder `[( )]` with no number. Component nodes carry their Components-table number in brackets.
214
+ - Prefix triggers: ⏰ time, 🔔 queue-consuming component. No mark means invoked by another component; several entry points carry each applicable mark. Mark source-absent schedules `*[Inferred]*`. Legend below names marks and arrows.
215
+ - Arrows show data/work direction; never double-headed; draw two. Solid means component→queue, queue→component, or caller→callee. Dotted means file/mail handoff. A queue inside one component is in its label, e.g. `2 InvoiceProcess<br/>Dispatcher → queue → Performer`, never a self-loop.
216
+ - Wrap labels with `<br/>` at about 34 characters and edge labels at about 26; never wrap subgraph titles. Test-project components may share a subgraph. If mermaid-cli is installed, render and inspect; otherwise use these widths.
217
217
 
218
- Mermaid cannot render BPMN 2.0 itself; when the customer wants a formal model, add a sidecar `<process-slug>-process.bpmn` authored from the Process Map (the `uipath-maestro-bpmn` skill knows the format) and link it from this section.
218
+ Mermaid cannot render BPMN 2.0. For a formal model, add sidecar `<process-slug>-process.bpmn` authored from Process Map; `uipath-maestro-bpmn` knows the format, and link it here.
219
219
 
220
220
  ### Handoffs (process)
221
- One row per edge between components: mechanism (queue item, start job, Flow invoke, event, file drop, Action Center task, a shared store one component writes and another reads when asked — a Data Fabric entity, a database table), data schema passed, and what happens when the receiving side fails. This table is the data contract; component Interface sections must agree with it. When the Transactional Shape's producer and consumer are two phases of one component that form a flow ([transactional-shape-guide.md](transactional-shape-guide.md) rule 12) exchanging items through a store (a database work table, a folder, an in-memory work list the job reads once and then works item by item), add one row for that edge too, marked as intra-component and naming the stages on each side (the sub-projects a `Decided:` line names): it is the data contract the shape cites. Every flow of the Transactional Shape cites the Handoffs row that carries its items. The table follows the Process Map diagram: no rows for people or systems the automation only reads from or acts on (the diagram omits them), a human task a component creates (an Action Center task) keeps its row because it carries a data contract, one row per queue edge naming the queue(s) by name, never "the queues", and one row per call and per file or mail handoff between components.
221
+ Use one row per component edge, giving mechanism (queue item, start job, Flow invoke, event, file drop, Action Center task, a shared store one component writes and another reads when asked — a Data Fabric entity, a database table), schema, and receiving-failure behavior. Component Interface must agree. For a Transactional Shape flow whose producer and consumer are phases of one component that form a flow ([transactional-shape-guide.md](transactional-shape-guide.md) rule 12) exchanging items through a store (a database work table, a folder, an in-memory work list the job reads once and then works item by item), add an intra-component row naming stages/sub-projects from `Decided:`; every shape flow cites its Handoffs row.
222
+
223
+ Omit rows for people or systems merely read/acted on; retain human-task rows created by a component. Use one row per queue edge, naming queue(s), never “the queues”, and one per call and file/mail handoff.
222
224
 
223
225
  ### Deployment (process)
224
- Packaging (one solution vs independent packages), entry points and triggers, target folders or environments. Name the buildable projects explicitly; a library is listed with the feed it is published to, apart from the solution's projects, since it is never one of them; when test components exist, Deployment names exactly one test project and one Test Manager test set per test component.
226
+ State packaging (one solution or independent packages), entry points/triggers, target folders/environments, and every buildable project explicitly. List each library separately with its feed, never as a solution project. With tests, name exactly one test project and one Test Manager test set per test component.
225
227
 
226
228
  ## Design Links
227
229
 
228
- One optional blockquote line after the blueprint blockquote (the process genome's, or a standalone component's) ties a genome to the document it derives from. It is written only when that document exists; it is never invented.
230
+ After the blueprint blockquote, optionally add one blockquote linking the process genome or standalone component to an existing source document; never invent it:
231
+
232
+ `> Designed in: [<SDD title>](<relative path to the SDD>) · sdd-sha256 <SDD_FINGERPRINT>`
233
+
234
+ The fingerprint is mandatory. Obtain it only after content is final by running `node "<SKILL_DIR>/scripts/sdd-fingerprint.mjs" "<SDD_PATH>"`, where `<SKILL_DIR>` contains this skill's `SKILL.md`. For a solution, `<SDD_PATH>` is the root SDD and the fingerprint covers root plus every listed child SDD. The SDD's `Genome` row and an older `Tasks file` row do not change it.
235
+
236
+ The build builds as written and hands a case SDD unchanged to `uipath-maestro-case`. `uipath-planner` keeps the genome current: an SDD change ends with `edit`'s “The SDD was revised” ([edit-guide.md](../edit/edit-guide.md)) and a new fingerprint ([sdd-writing-guide.md](../design/sdd-writing-guide.md) § Keeping the Genome Current). Strict check fails a `Designed in:` line whose fingerprint no longer matches its SDD (root plus every child for a solution), or whose SDD cannot be read.
229
237
 
230
- - **`> Designed in: [<SDD title>](<relative path to the SDD>) · sdd-sha256 <SDD_FINGERPRINT>`** — the genome was authored from that agreed SDD. The fingerprint is required on every `Designed in:` line. `<SDD_FINGERPRINT>` is what `node "<SKILL_DIR>/scripts/sdd-fingerprint.mjs" "<SDD_PATH>"` prints once the genome's content is final (`<SKILL_DIR>` is the folder holding this skill's `SKILL.md`); for a solution `<SDD_PATH>` is the root SDD, and the fingerprint covers the root and every child SDD it lists. The SDD's `Genome` row, and an older SDD's `Tasks file` row, do not change it. The build builds the genome as written and hands a case component's SDD to `uipath-maestro-case`. `uipath-planner` keeps the genome current: an SDD change ends with `edit`'s "The SDD was revised" ([edit-guide.md](../edit/edit-guide.md)) and a new fingerprint ([sdd-writing-guide.md](../design/sdd-writing-guide.md) § Keeping the Genome Current). The strict check fails a `Designed in:` line whose fingerprint no longer matches its SDD (root plus every child for a solution) or whose SDD cannot be read, so a stale genome never passes. The SDD's decisions — the split and queue design, the implementation mode, the package pins, the refactor answers — are recorded in the sections that hold them (a flow's `Decided:` line, Configuration Questions defaults, a process genome's Deployment). The genome restates the SDD's products and projects and never contradicts them; which changes to a designed genome go to `design` first: [edit-guide.md](../edit/edit-guide.md) § Any genome.
238
+ Record SDD decisions—split and queue design, implementation mode, package pins, and refactor answers—in their owning sections: a flow's `Decided:` line, Configuration Questions defaults, or process Deployment. Restate the SDD's products and projects without contradiction; which changes to a designed genome go to `design` first is specified by [edit-guide.md](../edit/edit-guide.md) § Any genome.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
- "skillsVersion": "1.207.0-preview.1985",
3
+ "skillsVersion": "1.207.0-preview.1992",
4
4
  "targetCli": "^1.207.0"
5
5
  }