@uipath/skills 1.206.0 → 1.206.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.cursor-plugin/plugin.json +1 -1
  4. package/CODEOWNERS +34 -7
  5. package/README.md +2 -2
  6. package/package.json +2 -2
  7. package/skills/uipath-genome/SKILL.md +35 -88
  8. package/skills/uipath-genome/references/build-guide.md +61 -0
  9. package/skills/uipath-genome/references/completion-report-guide.md +93 -0
  10. package/skills/uipath-genome/references/composite-interactions-guide.md +39 -0
  11. package/skills/uipath-genome/references/configuration-questions-guide.md +68 -0
  12. package/skills/uipath-genome/references/execution-guide.md +45 -166
  13. package/skills/uipath-genome/references/execution-parts-guide.md +84 -17
  14. package/skills/uipath-genome/references/genome-reading-guide.md +153 -0
  15. package/skills/uipath-genome/references/live-application-guide.md +23 -9
  16. package/skills/uipath-genome/references/offline-definition-workarounds-guide.md +4 -4
  17. package/skills/uipath-genome/references/open-items-guide.md +3 -3
  18. package/skills/uipath-genome/references/package-doc-errata-guide.md +8 -0
  19. package/skills/uipath-genome/references/refactor-guide.md +38 -39
  20. package/skills/uipath-genome/references/selector-matching-guide.md +59 -0
  21. package/skills/uipath-genome/references/selector-translation-guide.md +13 -66
  22. package/skills/uipath-genome/references/selector-translation-sap-guide.md +7 -5
  23. package/skills/uipath-genome/references/selector-translation-web-guide.md +2 -2
  24. package/skills/uipath-genome/references/source-frameworks-guide.md +21 -0
  25. package/skills/uipath-genome/references/source-migration-guide.md +48 -19
  26. package/skills/uipath-genome/references/test-execution-guide.md +8 -7
  27. package/skills/uipath-genome/references/transactional-execution-guide.md +41 -13
  28. package/skills/uipath-genome/references/ui-target-migration-guide.md +12 -49
  29. package/skills/uipath-genome/references/ui-verification-guide.md +9 -1
  30. package/skills/uipath-maestro-case/SKILL.md +7 -7
  31. package/skills/uipath-maestro-case/references/evals/evals.json +5 -5
  32. package/skills/uipath-maestro-case/references/planning.md +5 -5
  33. package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/planning.md +2 -2
  34. package/skills/uipath-maestro-case/references/plugins/sla/planning.md +1 -1
  35. package/skills/uipath-maestro-case/references/registry-discovery.md +3 -3
  36. package/skills/uipath-planner/SKILL.md +80 -199
  37. package/skills/uipath-planner/assets/templates/agent-sdd-template.md +17 -17
  38. package/skills/uipath-planner/assets/templates/api-workflow-sdd-template.md +15 -13
  39. package/skills/uipath-planner/assets/templates/bpmn-sdd-template.md +19 -19
  40. package/skills/uipath-planner/assets/templates/case-sdd-task-details-template.md +173 -0
  41. package/skills/uipath-planner/assets/templates/{case/case-sdd-template.md → case-sdd-template.md} +51 -229
  42. package/skills/uipath-planner/assets/templates/coded-app-sdd-template.md +16 -14
  43. package/skills/{uipath-genome → uipath-planner}/assets/templates/component-genome-template.md +9 -5
  44. package/skills/uipath-planner/assets/templates/flow-sdd-template.md +17 -15
  45. package/skills/{uipath-genome → uipath-planner}/assets/templates/process-genome-template.md +11 -7
  46. package/skills/uipath-planner/assets/templates/rpa-sdd-template.md +50 -73
  47. package/skills/uipath-planner/references/author/author-guide.md +119 -0
  48. package/skills/uipath-planner/references/author/genome-from-sdd-guide.md +36 -0
  49. package/skills/uipath-planner/references/author/scenario-proposal-guide.md +30 -0
  50. package/skills/uipath-planner/references/decompose/decompose-guide.md +223 -0
  51. package/skills/uipath-planner/references/{asdd-crosswalk-guide.md → design/asdd-crosswalk-guide.md} +6 -4
  52. package/skills/uipath-planner/references/{business-rules-guide.md → design/business-rules-guide.md} +3 -3
  53. package/skills/uipath-planner/references/design/caller-request-guide.md +92 -0
  54. package/skills/uipath-planner/references/design/case-data-and-time-guide.md +292 -0
  55. package/skills/uipath-planner/references/design/case-product-guide.md +243 -0
  56. package/skills/uipath-planner/references/design/case-review-and-conformance-guide.md +166 -0
  57. package/skills/uipath-planner/references/design/design-guide.md +296 -0
  58. package/skills/uipath-planner/references/{package-selection-guide.md → design/package-selection-guide.md} +16 -13
  59. package/skills/uipath-planner/references/{rpa-product-guide.md → design/rpa-product-guide.md} +23 -53
  60. package/skills/uipath-planner/references/design/scope-recommendation-guide.md +134 -0
  61. package/skills/uipath-planner/references/design/sdd-writing-guide.md +235 -0
  62. package/skills/uipath-planner/references/design/solution-composition-guide.md +153 -0
  63. package/skills/uipath-planner/references/edit/edit-guide.md +66 -0
  64. package/skills/uipath-planner/references/extract/extract-guide.md +230 -0
  65. package/skills/uipath-planner/references/extract/source-frameworks-guide.md +22 -0
  66. package/skills/uipath-planner/references/extract/uipath-non-rpa-signals-guide.md +121 -0
  67. package/skills/uipath-planner/references/extract/uipath-rpa-signals-guide.md +88 -0
  68. package/skills/uipath-planner/references/extract/uipath-source-guide.md +193 -0
  69. package/skills/uipath-planner/references/shared/component-placement-guide.md +99 -0
  70. package/skills/{uipath-genome/references → uipath-planner/references/shared}/defect-verification-guide.md +4 -4
  71. package/skills/{uipath-genome/references → uipath-planner/references/shared}/extracted-genome-guide.md +15 -14
  72. package/skills/uipath-planner/references/shared/extraction-parts-guide.md +66 -0
  73. package/skills/{uipath-genome/references → uipath-planner/references/shared}/genome-format-guide.md +63 -34
  74. package/skills/uipath-planner/references/{multi-skill-patterns-guide.md → shared/multi-skill-patterns-guide.md} +28 -27
  75. package/skills/uipath-planner/references/{pdd-analysis-guide.md → shared/pdd-analysis-guide.md} +27 -72
  76. package/skills/uipath-planner/references/{plan-and-tasks-format.md → shared/plan-and-tasks-format.md} +43 -67
  77. package/skills/uipath-planner/references/{platform-availability-guide.md → shared/platform-availability-guide.md} +56 -1
  78. package/skills/uipath-planner/references/shared/product-selection-guide.md +202 -0
  79. package/skills/{uipath-genome/references → uipath-planner/references/shared}/skill-mapping-guide.md +24 -4
  80. package/skills/uipath-planner/references/{tenant-library-search-guide.md → shared/tenant-library-search-guide.md} +10 -8
  81. package/skills/{uipath-genome/references → uipath-planner/references/shared}/transactional-shape-guide.md +39 -8
  82. package/skills/uipath-planner/scripts/check-genome.mjs +801 -0
  83. package/skills/uipath-planner/scripts/sdd-fingerprint.mjs +71 -0
  84. package/skills/uipath-planner/scripts/sdd-to-docx.mjs +87 -0
  85. package/skills/uipath-test/SKILL.md +3 -3
  86. package/version-manifest.json +1 -1
  87. package/skills/uipath-genome/CLAUDE.md +0 -85
  88. package/skills/uipath-genome/assets/examples/artemis-2-mission-monitor-genome.md +0 -126
  89. package/skills/uipath-genome/assets/examples/classify-document-and-create-validation-genome.md +0 -117
  90. package/skills/uipath-genome/assets/examples/invoice-processing-genome/exception-triage-agent-genome.md +0 -96
  91. package/skills/uipath-genome/assets/examples/invoice-processing-genome/invoice-extraction-genome.md +0 -128
  92. package/skills/uipath-genome/assets/examples/invoice-processing-genome/invoice-orchestration-genome.md +0 -115
  93. package/skills/uipath-genome/assets/examples/invoice-processing-genome.md +0 -136
  94. package/skills/uipath-genome/assets/examples/purchase-requisition-entry-genome.md +0 -224
  95. package/skills/uipath-genome/assets/examples/salesforce-accounts-and-contacts-genome.md +0 -151
  96. package/skills/uipath-genome/references/authoring-guide.md +0 -98
  97. package/skills/uipath-genome/references/editing-guide.md +0 -57
  98. package/skills/uipath-genome/references/extraction-guide.md +0 -166
  99. package/skills/uipath-genome/references/extraction-parts-guide.md +0 -45
  100. package/skills/uipath-genome/references/parts-guide.md +0 -22
  101. package/skills/uipath-genome/references/uipath-source-guide.md +0 -404
  102. package/skills/uipath-genome/scripts/check-genome.py +0 -670
  103. package/skills/uipath-planner/assets/templates/case/sdd-viewer.html +0 -1530
  104. package/skills/uipath-planner/references/case/case-design-lane-guide.md +0 -327
  105. package/skills/uipath-planner/references/case/case-design-layers-guide.md +0 -503
  106. package/skills/uipath-planner/references/case/case-sdd-conformance-checklist.md +0 -123
  107. package/skills/uipath-planner/references/non-pdd-lane-guide.md +0 -196
  108. package/skills/uipath-planner/references/pdd-driven-lane-guide.md +0 -210
  109. package/skills/uipath-planner/references/product-selection-guide.md +0 -673
  110. package/skills/uipath-planner/references/sdd-generation-guide.md +0 -613
  111. package/skills/uipath-planner/scripts/docx-extract.ps1 +0 -59
  112. package/skills/uipath-planner/scripts/docx-extract.sh +0 -54
  113. package/skills/uipath-planner/scripts/sdd-to-docx.ps1 +0 -74
  114. package/skills/uipath-planner/scripts/sdd-to-docx.sh +0 -76
  115. /package/skills/uipath-planner/references/{attended-reauth-pattern-guide.md → design/attended-reauth-pattern-guide.md} +0 -0
@@ -0,0 +1,202 @@
1
+ # Product Selection Guide
2
+
3
+ This is the most important decision the SDD makes. Select the wrong product and the architecture is wrong. This guide produces a scope recommendation from PDD signals, covering every UiPath product and multi-project Solutions.
4
+
5
+ ## How selection works — four layers
6
+
7
+ Selection is layered, not one whole-process pick. **Solution is packaging, not a runtime tool** — and Integration Service, Action Center, IXP, and Libraries are capabilities/components, not automatic primaries. Layer 0 precedes everything: the [Suitability Gate](#level-0--suitability-gate) decides whether to automate at all. Then design the component topology; decide packaging last.
8
+
9
+ 1. **Decompose the process into steps** — Phase 1 extraction + the [need profile](../design/design-guide.md#step-35-synthesize-the-need), recording the per-step factors (interface, determinism, state, human interaction, volume, risk, reuse, runtime, existing estate).
10
+ 2. **Choose an executor per step** — the [Per-task component placement](component-placement-guide.md#per-task-component-placement-the-to-be-per-step) table (RPA / API / IXP / Agent / LLM activity / Function / HITL / Data Fabric).
11
+ 3. **Choose the coordination & state host** — the Level 1 decision table: a single host absorbs in-process capabilities (absorption fold); Maestro (Flow / BPMN / Case) only when peer runtimes or the coordination shape exceed a single host.
12
+ 4. **Choose packaging & deployment last** — standalone package vs Solution (`.uipx`), via Solution Signals / Level 1.75 and the Constraint Gate. A single-component design does not need a Solution wrapper by default.
13
+
14
+ The layers run **in order**: layers 1–2 execute in Phase 1 — Step 3.5 synthesizes the need AND types each extracted step with the placement table, producing the **step→executor map**. Level 1 (layer 3) consumes that map — it never matches raw keywords against the whole process. Solution Signals / Level 1.75 and the template's packaging decision are layer 4.
15
+
16
+ ## Levels of Decision
17
+
18
+ This file is the canonical home for **Level 1**; **Levels 1.75 and 2.5 Part B** live in [solution-composition-guide.md](../design/solution-composition-guide.md), **Level 3** and per-task component placement in [component-placement-guide.md](component-placement-guide.md). RPA-specific levels (**1.5, 2, 2.5 Part A**) live only in the [RPA Product Guide](../design/rpa-product-guide.md); run Level 1.5 once per RPA project.
19
+
20
+ | Level | Decision | Scope | Canonical home |
21
+ |---|---|---|---|
22
+ | **0. Suitability** | Automate / redesign first / reuse native or estate / do not automate | All PDDs | This file |
23
+ | **1. Primary scope** | Single product or multi-project Solution? | All PDDs | This file |
24
+ | **1.5. RPA sub-type** | Process, Library, or Test Automation | Only when RPA is selected at Level 1 (or included in a Solution) | [RPA Product Guide](../design/rpa-product-guide.md#level-15--rpa-sub-type-selection) |
25
+ | **1.75. Solution composition** | Which products and how many projects of each | Only when Level 1 = Solution | [solution-composition-guide.md](../design/solution-composition-guide.md#level-175--solution-composition) |
26
+ | **2. Authoring mode** | XAML, Coded C#, or Hybrid | Per RPA project in the final list | [RPA Product Guide](../design/rpa-product-guide.md#level-2--authoring-mode) |
27
+ | **2.5. Part A — RPA decomposition** | Single Project vs Master Project per RPA Process | Per RPA Process project in the scope | [RPA Product Guide](../design/rpa-product-guide.md#level-25-part-a--rpa-decomposition-signals) |
28
+ | **2.5. Part B — Merge** | Final unified project list with roles, frameworks, queues | All scopes | [solution-composition-guide.md](../design/solution-composition-guide.md#part-b--merge-into-the-final-project-list) |
29
+ | **3. Capabilities** | HITL, Integration Service, API Workflow as component | All products | [component-placement-guide.md](component-placement-guide.md#level-3--capability-add-ons) |
30
+
31
+ ## Constraint Gate
32
+
33
+ The delivery model (asked or detected at Phase 1 Step 0) and any user-stated product exclusions filter every candidate **before** any level recommends it. Run the gate at Level 1 (before presenting the primary scope), at Level 1.75 Pass A (before composing the option list), and at Level 3 (before flagging a capability add-on).
34
+
35
+ 1. **Look each candidate product up in [platform-availability-guide.md](platform-availability-guide.md)** under the customer's delivery model column.
36
+ 2. **Not available → BLOCK.** Remove the product from the recommendation and from Level 1.75 Pass A options. Recommend the matrix's documented alternative instead. Record the block in the `Decisions Made` row 1 and in the Recommended Scope summary (`Blocked by platform:` line). Row 1 is emitted even when nothing is blocked — it then reads `<delivery model>; no products blocked`.
37
+ 3. **Partial / uncertain → WARN.** Keep the product but attach an explicit warning line naming what is limited or unverified, and apply the verification rule in [platform-availability-guide.md](platform-availability-guide.md) before finalizing the SDD.
38
+ 4. **User exclusions are blocks.** When the user excludes a product ("we don't want Maestro"), treat it exactly like a matrix block for the rest of the session: never re-offer it at any level or revision, record the exclusion and its reason in the Recommended Scope summary.
39
+ 5. **Never silently substitute.** A blocked product's alternative changes the architecture — present the substitution and its consequence in the summary, not buried in a section.
40
+
41
+ > Delivery model `unspecified` (user picked "Not sure") gates nothing — proceed assuming Automation Cloud, and carry an `[SME REVIEW]` row stating the assumption and which recommended products would be affected if the customer is actually on Automation Suite or standalone.
42
+
43
+ ## Level 0 — Suitability Gate
44
+
45
+ Not every process should be automated as-is — a Solution Architect first decides WHETHER, not which product. From the need profile, check each item and record the outcome in the Recommended Scope reasoning:
46
+
47
+ 1. **Native capability** — the target system's own configuration already covers the need (workflow rules, scheduled reports, webhooks) → recommend configuration, not automation.
48
+ 2. **Existing estate** — an already-deployed process / API Workflow / connector / library / model / solution covers steps → reuse, don't rebuild. Run the [Estate sweep](#estate-sweep) below.
49
+ 3. **Process stability** — the process, UI, or rules are mid-change → defer or flag `[SME REVIEW]`; automating a moving target is rework.
50
+ 4. **Redesign first** — steps that exist only to work around manual limitations drop out of the to-be; never automate waste (PDD Analysis Guide → As-Is and To-Be).
51
+ 5. **Access feasibility** — licenses, API access, credentials, and environment access exist or are obtainable.
52
+ 6. **Economics** — volume × time saved vs build + run + maintain cost; thin cases → downscope or recommend against.
53
+ 7. **Residual human work** — what stays manual after automation; when the human loop dominates, automation may not pay.
54
+
55
+ **Outcomes:** `proceed` (default) · `proceed-with-redesign` (the to-be drops or reshapes steps) · `partial` (automate a subset; rest stays manual or native) · `do-not-automate` (recommend the native capability / process fix — confirm with the user, then end `design` with the [findings note](#do-not-automate-findings-note) instead of a full SDD). Levels 1+ run only on `proceed` / `proceed-with-redesign` / `partial`.
56
+
57
+ ### Estate sweep
58
+
59
+ Operationalizes item 2. Best-effort and auth-required — same rules as tenant library discovery: never blocks `design`, no mid-generation auth troubleshooting, skip entirely when the user's prompt forbids `uip` commands. Query only the rows matching the step→executor map's candidate products, filtering results by PDD Application Inventory and process-name keywords:
60
+
61
+ | Estate | Discovery |
62
+ |---|---|
63
+ | Deployed RPA processes | `uip or processes list --all-folders --output json` |
64
+ | Tenant RPA libraries | Step 2.5 tenant library discovery (RPA scopes only) |
65
+ | IS connectors / live connections | `uip is connectors list --output json` · `uip is connections list --output json` |
66
+ | Deployed Agents | No dedicated listing verb — published agents run as Orchestrator processes: check the `uip or processes list` output |
67
+ | Maestro processes | `uip maestro flow processes list --output json` · `uip maestro bpmn processes list --output json` · `uip maestro case processes list --output json` |
68
+ | IXP projects / models | `uip ixp projects list --output json` — newer CLIs only; on `unknown command` apply the drift rule below or user-named estate |
69
+ | Deployed Solutions | `uip solution deploy list --output json` |
70
+ | Data Fabric entities | `uip df entities list --output json` |
71
+ | API Workflows | No dedicated listing verb — they publish into Orchestrator: check the `uip or processes list` output, else user-named estate |
72
+ | Coded Apps, Coded Functions | No CLI listing — user-named estate only; ask when signals suggest one exists |
73
+
74
+ CLI surfaces drift across versions. When the installed CLI rejects a listed verb (`unknown command` / `unknown option`), discover the supported surface with `uip <group> --help`, or fall back to the platform API (Orchestrator OData for `or` resources) using the existing authenticated context — never invent a verb. Note any substitution in the Recommended Scope reasoning.
75
+
76
+ **The estate is the session tenant's** — the same condition as [tenant-library-search-guide.md](tenant-library-search-guide.md) § Default search target. A listing that fails on permissions (HTTP 400/403, no folder accessible) records that estate row as unknown, like an auth failure.
77
+
78
+ **One round, then stop.** Issue the whole sweep as a single batch of `list` calls, read the results once, and decide. Do NOT re-run the sweep with new filters, alternate search terms, or client-side post-processing after a round that returned zero rows or an empty `Data` array — an empty estate is a final answer (`no reuse candidates`), not a signal to search harder. Do NOT retry a rejected flag with a guessed alternative: apply the drift rule above once, and if that call also fails, record the estate as unknown in the Recommended Scope reasoning and proceed. Every extra sweep round costs a full reasoning cycle inside the same turn that still has to author §1–§18.
79
+
80
+ Record every covering hit as a reuse candidate in the Recommended Scope reasoning (Level 0 outcome line) and in the consuming template section (§Packages, Integrated Components, or connector rows). A hit that covers steps flips those steps to reuse — outcome `partial` or a downscoped to-be.
81
+
82
+ ### Do-not-automate findings note
83
+
84
+ Confirm the outcome with the user, then write `<PROCESS_NAME_KEBAB>-findings.md` instead of an SDD and end `design`. Structure:
85
+
86
+ 1. `# <PROCESS_NAME> — Suitability Findings` + generation date
87
+ 2. `## Outcome` — `do-not-automate`, plus each failed gate item (1–7) with one line of evidence
88
+ 3. `## Recommended Alternative` — the native capability, process fix, or estate reuse that covers the need, with its owner
89
+ 4. `## Revisit Triggers` — what would change the decision (volume growth, a stable API appearing, process stabilization)
90
+ 5. `## Action Required — SME Review Items` — only when open questions remain
91
+
92
+ The note carries NO `## Planner Handoff` header and NO `planner-handoff:v1` marker — it is terminal: it must never route to `author` as an SDD and needs no Status field. `partial` does not produce a findings note — dropped steps are recorded in the SDD's Recommended Scope reasoning.
93
+
94
+ ## Level 1 — Primary Scope Selection
95
+
96
+ > **Match on the need, not the keyword.** Each row's "Signal in PDD" is *evidence* of an underlying need — the decision is the need it points to, not the literal term. Read the [need profile](../design/design-guide.md#step-35-synthesize-the-need) and pick the product whose purpose fits the need:
97
+ >
98
+ > **No single factor decides — weigh the whole need profile.** Determinism (rule-expressible vs judgment) is one key factor, not the sole gate; also weigh input structure, whether a stable API exists (API-first — avoid UI fragility), volume/cost (agentic execution is costlier and far less cost-predictable than deterministic — estimate per model/tenant at volume), risk/reversibility/confidence (→ a HITL gate), auditability/compliance, and coordination shape. See the full [need profile](../design/design-guide.md#step-35-synthesize-the-need). Genuine judgment/reasoning is the only thing that justifies an **Agent** (not the words "AI"/"smart"/"automatic"). The dominant pattern is **hybrid** — AI decides, deterministic RPA/API execute as governed tools, Maestro orchestrates when real orchestration is needed (see Light vs real orchestration), HITL gates the risky/low-confidence steps — so a mostly-deterministic process with one judgment step is a deterministic primary + an Agent component, not an Agent overall.
99
+ >
100
+ > - judgment / reasoning not expressible as fixed rules, or dynamic tool planning → **Agents**
101
+ > - a fixed generative step inside a known path → **LLM activity in the host workflow**, not an Agent
102
+ > - fixed document classification / extraction → **IXP / Document Understanding** (a component via the placement table; standalone IXP project only when extraction is the entire deliverable)
103
+ > - a user-facing screen as the deliverable → **Coded Apps**
104
+ > - headless system-to-system integration, no UI, no bot → **API Workflows**
105
+ > - a staged case lifecycle with SLA / approvals (potentially ad-hoc tasks) → **Case Management**
106
+ > - structured control-flow (formal gateways / events / subprocess) without a case → **Maestro BPMN**
107
+ > - a plain multi-automation pipeline → **Maestro Flow**
108
+ > - a human approval inside ONE process → **long-running RPA + Action Center** (not Maestro, not a HITL project)
109
+ > - headless deterministic compute — no UI, no orchestration → **Coded Function** (component — leaner than an RPA process; placement table)
110
+ > - UI automation, or machine-local resource work — Excel/Office, file/folder operations, on-prem databases, desktop email, terminal/mainframe → **RPA**
111
+ > - reusable compile-time component → **RPA Library** (additive); regression validation → **Test Automation** (additive — rarely the primary runtime)
112
+ >
113
+ > **Anti-pattern:** never route on a keyword when the need contradicts it — "AI" over a deterministic rule set is RPA, not Agents; a "dashboard" that is really a scheduled report is not necessarily a Coded App. When evidence and need disagree, the need wins; when the product is genuinely unclear, ask the user (see Presenting the Recommendation).
114
+
115
+ ### Decision table
116
+
117
+ **Input is the step→executor map (layer 2), not raw keywords.** Type every extracted step with the [Per-task component placement](component-placement-guide.md#per-task-component-placement-the-to-be-per-step) table, then **fold the map** before reading it — mixed capabilities are NOT cross-product orchestration.
118
+
119
+ **Absorption fold.** A capability step is *absorbed* when a host executor invokes it in-process — an activity or synchronous call whose result returns within the same run:
120
+
121
+ | Host | Absorbs in-process |
122
+ |---|---|
123
+ | RPA | DU/IXP extraction (activity or model call), LLM activity, IS connector / direct HTTP call (incl. a published API Workflow), synchronous child calls — invoke a published process or agent and consume the result in the same run, ONE in-flight approval (long-running + Action Center) |
124
+ | API Workflow | Connector / HTTP calls, nested synchronous API Workflow calls |
125
+ | Coded App | Backend calls to published API Workflows / processes / agents — the app coordinates its own backend |
126
+ | Agent | Tools planned at runtime (RPA, API Workflows, Functions, connectors) — ONLY under the coordinator exception below |
127
+
128
+ Absorbed steps become integrated components (Level 3 + template inventory), not orchestration triggers. **Absorbed ≠ not built:** a consumed IXP model, custom connector, Library, or API Workflow can still be its own buildable project and genome component, built before its host — absorption is a runtime statement, not a build statement.
129
+
130
+ The folded map decides WHICH rows are even eligible as primaries:
131
+
132
+ - **One host remains** (every other capability absorbed; same-executor projects decoupled by a queue hand-off count as one host — Level 2.5 Part A decides decomposition) → walk rows 1–3 and 7 in priority order; first match wins.
133
+ - **Two or more peer runtimes remain** — independently deployed products coordinated at runtime — **or the coordination/state shape exceeds any single host** (case stages/SLA, formal gateways / events / parallel branches, long-running waits spanning multiple automations) → rows 1–3 and 7 are **not eligible as primaries** — walk rows 4–6 (Case → BPMN → Flow) for the coordination host; every remaining peer becomes an integrated component or a Solution project (Level 1.75). A FIXED process with judgment steps is a deterministic host + an Agent component (absorbed when called synchronously in-run; a peer under Maestro when long-running) — **never an Agent-primary design**.
134
+ - **Exception — the agent IS the coordinator:** an open-ended or conversational agent that plans its own tool calls at runtime (no fixed process shape to orchestrate) is Agent-primary with RPA / API Workflows as tools (multi-skill Pattern 5). A fixed process that contains judgment steps is NOT this exception.
135
+
136
+ Signals that match *below* the primary become candidate additional projects in a Solution (see Solution Signals below).
137
+
138
+ | Priority | Signal in PDD | Primary Scope |
139
+ |----------|---------------|---------------|
140
+ | 1 | AI reasoning, LLM judgment, tool calling, RAG, knowledge retrieval | Agents |
141
+ | 2 | Web dashboard, internal tool, Action Center form as the deliverable | Coded Apps |
142
+ | 3 | System-to-system API integration (synchronous, no UI, no bots) | API Workflows |
143
+ | 4 | Case lifecycle with stages, SLA tracking, approval gates, task routing | Case Management |
144
+ | 5 | Standards-based BPMN process orchestration — parallel / inclusive / event-based gateways, boundary events (activity timeouts / errors), intermediate message or timer events, subprocesses or call activities, multi-instance loops, OR an explicit BPMN 2.0 process-model request — with NO case stages/SLA (those → Case) | Maestro BPMN |
145
+ | 6 | Orchestrating MULTIPLE automation types (RPA + agents + apps) with linear / branching node flow and no formal BPMN structure | Maestro Flow |
146
+ | 7 | UI automation (web / desktop / Citrix / mainframe), Excel & Office automation, file & folder operations, on-prem database work, desktop email, data processing, reusable component, application testing, or a single process with an in-flight human approval (long-running workflow + Action Center) | **RPA** (sub-type decided at Level 1.5) |
147
+ | 8 | Multiple coordinated projects across products or mixed RPA sub-types (e.g., Flow + API Workflows, or 2 Libraries + 1 Test Automation project) | **Solution** (composition decided at Level 1.75) |
148
+
149
+ Apply the [Constraint Gate](#constraint-gate) to the matched primary before presenting it — a first-match product that is blocked on the customer's delivery model is replaced by the matrix's alternative, not presented with a caveat.
150
+
151
+ > Row 8 (Solution) is a **packaging/composition outcome** (layer 4), not a runtime product: it is reached ONLY via a [Solution Signal](#solution-signals) — the PDD itself names multiple top-level deliverables, each already typed by rows 1–7 and the placement table. Components the design derives never count toward row 8 ([derived-component rule](#solution-signals)). A single-component design ships as that product — standalone package or single-project Solution per the template's packaging decision.
152
+
153
+ ### Maestro disambiguation — BPMN vs Flow vs Case
154
+
155
+ All three are Maestro / orchestration-adjacent; apply first-match-wins with these need-based rules:
156
+
157
+ - **Case Management (priority 4)** wins when work is framed as a **case** moving through **stages** with **SLA / approval gates, escalation, task routing**. Case compiles to BPMN internally — a stage-and-SLA lifecycle is Case even though it is BPMN under the hood.
158
+ - **Maestro BPMN (priority 5)** wins for a **structured, long-running (stateful) control-flow process** — spanning many systems and decision points — with formal BPMN semantics but **no case / stage / SLA lifecycle**: parallel / inclusive / event-based gateways, boundary events (per-activity timeouts or error catches), intermediate message / timer events, subprocesses or call activities (invoking a separate Maestro / agentic / case instance), multi-instance loops, or an explicit "model this as BPMN / a swimlane process" request.
159
+ - **Maestro Flow (priority 6)** is the default orchestrator for the simpler **node-graph pipeline** — linear or single-branch sequencing of RPA / agents / apps / APIs with data transforms between steps — when none of the BPMN structures above are required.
160
+
161
+ Rule of thumb: **case entity + stages + SLA → Case; formal gateways/events/subprocess without a case → BPMN; plain multi-automation pipeline → Flow.** When Flow vs BPMN is genuinely close, default to Flow and offer BPMN as an alternative via a structured question — never force BPMN.
162
+
163
+ **Don't over-orchestrate — RPA does light orchestration itself:** never pick Maestro (Flow or BPMN) just to trigger a single RPA Dispatcher→Performer — that is an RPA Process. A single process that pauses for one human approval is a **long-running RPA workflow + Action Center** ([RPA Product Guide → Long-running workflows](../design/rpa-product-guide.md#long-running-workflows-persistence--action-center)), not Maestro + HITL. Mixed capabilities inside one host never justify Maestro — an RPA process calling an IXP model, an LLM activity, a synchronous API, an agent, or another published process stays an RPA Process ([absorption fold](#decision-table)).
164
+
165
+ **Light vs real orchestration** — the tie-breaker when several automations appear in one process:
166
+
167
+ - **Light → stays RPA:** child calls are synchronous and sequential, the parent run completes in one session, state lives in the parent run + queues, failure handling is the parent's retry / REFramework. Calling an agent or a published process from RPA is light orchestration, not a Maestro trigger.
168
+ - **Real → Maestro:** state must outlive any single run (multi-day waits, event / timer resume), parallel or event-driven branches, per-step end-to-end visibility / SLA / compensation, multiple human touchpoints, or the parent would be pure glue between peers with no work of its own.
169
+
170
+ ### Solution Signals
171
+
172
+ A Solution is the correct primary when any of the following applies, even if a single product would otherwise match at priority 1-6:
173
+
174
+ - The PDD describes **two or more distinct top-level products** that must coexist (e.g., Flow that calls an API Workflow that is itself a deliverable).
175
+ - The PDD mentions **reusable components** that other automations consume (Library) AND a standalone process that uses them.
176
+ - The PDD calls out a **dedicated test suite / regression pack** alongside the process being tested (Test Automation + the Process it validates).
177
+ - The PDD describes **multiple independent streams** with no single runtime orchestrator (e.g., separate dispatchers feeding separate performers with no Flow tying them together).
178
+
179
+ When any of the above applies, set the default primary to **Solution** and pre-compose the product list from the matched signals. Otherwise default to the highest single-product match.
180
+
181
+ **Derived components never escalate scope.** Deliverables named by the requirements set the scope; the part count of the design never does. Solution Signals test what the **PDD names as deliverables** — every scope-shaped decision downstream (single-product vs Solution, template choice, SDD file layout, packaging) follows that answer, never the number of buildable parts the design ends up with. Any supporting component the design introduces (wrapper API Workflow, custom connector, IXP model, Coded Function, Library) inherits its consumer's scope: an integrated-component row in the primary's template plus a build task ordered before its consumer — no solution overview, no per-project SDD, no `SDD scope: solution` flip.
182
+
183
+ > **Ambiguous dual-product PDDs:** If exactly two products match with similar strength and no Solution signal applies, mark the higher-priority match as the default single-product recommendation and offer Solution (customize) as an alternative in the recommendation screen. Let the user confirm via a structured question.
184
+
185
+ ### Signals per product
186
+
187
+ Evidence of each need, and the information the SDD needs from the PDD — when an Agent or Coded App lacks it, ask a structured question ([scope-recommendation-guide.md](../design/scope-recommendation-guide.md) § Gap Handling for Agent / Coded App).
188
+
189
+ | Product | Signals in the PDD | Required PDD information |
190
+ |---|---|---|
191
+ | Agents (Python + agent.json) | "AI reasoning", "LLM", "GPT", "Claude"; "Tool calling", "function calling"; "RAG", "knowledge base", "semantic search", "vector store"; "Multi-step reasoning", "plan and execute"; "Natural language interface"; Agent decides what to do based on user input, not a fixed script | Framework preference (LangGraph, LlamaIndex, OpenAI Agents, Simple Function); Tools the agent will use (external APIs, RPA processes, API workflows); Memory / RAG sources if applicable; Evaluation criteria (trajectory, success metrics) |
192
+ | Coded Apps (Web) | "Dashboard", "web interface", "portal", "internal tool"; "User submits a form"; "Review screen" or "approval UI"; "Action Center custom form"; Deliverable is a web application users interact with | Framework (React, Angular, Vue); App type (Web standalone vs. Action for automation-triggered); Pages / routes / user flows; State management complexity; Who calls the app (direct user, HITL form, Action Center task) |
193
+ | API Workflows | System-to-system integration with **no UI** and **no human interaction**; Synchronous request-response pattern (milliseconds to seconds); Pulls, composes, or transforms data across SaaS systems (Workday, Zendesk, Salesforce, ServiceNow, etc.); Consumed by agents as a tool, called from Flows, or over HTTP by external systems; High-throughput requirement (many small, fast operations); **No need for attended/unattended robots** | Input schema (JSON) — parameters the caller provides; Output schema (JSON) — data returned; Connectors or HTTP endpoints to call; Performance expectations (latency, throughput) |
194
+ | Case Management | "Stages" or "phases" in the process; "Approval gate" that blocks progression; "SLA" or "service level agreement"; "Escalation" on time or condition; "Case" as a first-class concept (invoice case, ticket case, claim case); BPMN-style multi-lane flow **organized into case stages with SLA / approval gates** (a bare pool/lane BPMN model with no case lifecycle → Maestro BPMN, priority 5); Tasks that can run in parallel within a lane | Stage definitions with entry/exit conditions; Task definitions per stage; SLA rules (time-based or condition-based); Escalation rules |
195
+ | Maestro BPMN | Explicit "BPMN", "BPMN 2.0", "process model", "process diagram", or "swimlane process" request; Parallel work that forks and rejoins (parallel gateway) or multiple simultaneous conditional branches (inclusive gateway); A race between events / first-to-arrive routing (event-based gateway); Per-activity timeouts, deadlines, or "cancel / compensate this step if it runs too long or errors" (boundary events); Waiting for or sending a message / signal between running process instances (intermediate message events); Timer waits ("wait N days", scheduled intermediate pauses) that are NOT a case SLA; Reusable containers (subprocesses) or invoking a separate Maestro / agentic / case process (call activities); Processing each item of a collection with sequential or parallel instances (multi-instance loops); Long-running, structured control flow — but NO case entity, stages, SLA, or RACI (→ Case), and beyond a simple linear/branching pipeline (→ Flow) | Control-flow map — activities, gateways, and sequence order; Parallel vs sequential branches and their join points; Events — start-trigger type, intermediate waits / messages, boundary timeouts / errors; Process variables passed between nodes (name, type, direction); Integrated components each activity invokes (RPA, Agent, API Workflow, HITL, connector); Retry / timeout policy per activity; subprocess and call-activity boundaries |
196
+ | Maestro Flow | Orchestrating multiple automation types (RPA + agents + apps); Conditional routing between automations; Data transformations between steps (filter, map, group-by); Scheduled triggers; Subflows for reusable grouped logic; "Flow" or "pipeline" terminology | Node sequence with conditional branches; Variables passed between nodes; External systems involved; Trigger type (manual, scheduled, event) |
197
+
198
+ **Determinism gate (apply before selecting Agents):** confirm the core task needs **non-deterministic** judgment — decisions that cannot be written as explicit rules. If every decision is rule-expressible (even when the PDD says "AI", "smart", or "automatic"), the task is deterministic → RPA / API Workflows / rule-based logic, NOT an Agent. Reserve Agents for genuine reasoning, interpretation, or adaptation over ambiguous input. **Middle tier:** simple summarization or content generation with **no decisioning/escalation** is an *LLM activity inside an RPA/Flow project*, not a standalone Agent — pick an Agent only for decision-making or multi-step reasoning.
199
+
200
+ **Key distinction from RPA Library:** Libraries are compile-time reusable components for other automations. API Workflows are runtime-callable services over HTTP, serverless, no bots needed.
201
+
202
+ **RPA:** When Level 1 selects RPA, load the [RPA Product Guide](../design/rpa-product-guide.md) for sub-type signals (Library / Test Automation / Process), Level 1.5 sub-type confirmation, Level 2 authoring mode, and Level 2.5 Part A decomposition. Do not reproduce those decisions here.
@@ -1,14 +1,14 @@
1
1
  # Skill Mapping Guide — populating Build With
2
2
 
3
- Every genome component and every workflow step maps to exactly one UiPath build skill. Use when writing a **Build With** table (authoring, extraction) or planning skill groups (execution).
3
+ Every genome component and every workflow step maps to exactly one UiPath build skill. Use when writing a **Build With** table (authoring, extraction) or planning skill groups (the build).
4
4
 
5
5
  ## Rules
6
6
 
7
7
  1. **One skill per row.** A step that mixes concerns (UI interaction plus a long calculation, or an API call plus an LLM decision) is split into two steps, each with its own skill.
8
- 2. **Build skills only.** Build With lists skills that produce a deployable artifact. Skills that operate the platform (queues, assets, connections, folders, jobs) go under **Platform Dependencies**, never in Build With.
9
- 3. **One component = one project — except test components.** In a process genome each non-test component maps to one buildable project and therefore to one primary skill. Steps inside a component may still use a second skill when the project is hybrid (XAML + coded files in one RPA project both map to `uipath-rpa`, so a hybrid RPA project is still one skill). Test components all map to the *same* `uipath-rpa` test project ([genome-format-guide.md § Two Levels](genome-format-guide.md) rule 1). Producer and consumer are roles of the Transactional Shape, not Type cell words; a split chosen at execution may turn one `uipath-rpa` component into several `uipath-rpa` projects, and the skill does not change ([transactional-shape-guide.md](transactional-shape-guide.md)).
8
+ 2. **Build skills only.** Build With lists skills that produce a deployable artifact. Skills that operate the UiPath platform (queues, assets, connections, folders, jobs) go under **Platform Dependencies**, never in Build With.
9
+ 3. **One component = one project — except test components.** In a process genome each non-test component maps to one buildable project and therefore to one primary skill. Steps inside a component may still use a second skill when the project is hybrid (XAML + coded files in one RPA project both map to `uipath-rpa`, so a hybrid RPA project is still one skill). Test components all map to the *same* `uipath-rpa` test project ([genome-format-guide.md § Two Levels](genome-format-guide.md) rule 1). Producer and consumer are roles of the Transactional Shape, not Type cell words; a split chosen at build may turn one `uipath-rpa` component into several `uipath-rpa` projects, and the skill does not change ([transactional-shape-guide.md](transactional-shape-guide.md)).
10
10
  4. **Orchestration is a step, not an annotation.** When a process coordinates several automations, the coordinator (Flow, BPMN, or Case plan) is its own component with its own row.
11
- 5. **Do not invent skill names.** Use only the names in the tables below; a name that is not listed will not resolve at execution time — the retired `uipath-rpa-workflows`, `uipath-coded-workflows` and `uipath-coded-agents` included.
11
+ 5. **Do not invent skill names.** Use only the names in the tables below; a name that is not listed will not resolve at build time — the retired `uipath-rpa-workflows`, `uipath-coded-workflows` and `uipath-coded-agents` included.
12
12
 
13
13
  ## Build Skills
14
14
 
@@ -58,6 +58,26 @@ Every genome component and every workflow step maps to exactly one UiPath build
58
58
  11. Data several components share is a Data Fabric entity: a Platform Dependency, never a step's skill; the step that reads or writes it takes the skill of the component that runs it.
59
59
  12. Still ambiguous between `uipath-rpa` and anything else → `uipath-rpa`.
60
60
 
61
+ ## Refactor Targets
62
+
63
+ The Target answer of every extraction ([extract-guide.md](../extract/extract-guide.md) Step 6c) is chosen per component in two moves: type each step with § Decision Tree for Ambiguous Steps, then give the component one host, the simplest product that holds every step. A host keeps as steps the calls it makes and uses within one run — an RPA process calls connectors, document models, an LLM, an agent or a published automation; an API workflow calls connectors and other API workflows; a coordinator calls them all as its nodes.
64
+
65
+ | The component's steps | Recommended host |
66
+ |---|---|
67
+ | Any step on a screen or on what only a robot's machine reaches | RPA process, Portable unless an activity the steps need exists only for Windows |
68
+ | Connector and HTTP calls only, a short run of few steps | API workflow |
69
+ | Connector and HTTP calls only, a long run, waits, or many steps whose every run must be inspectable step by step | Maestro flow |
70
+ | Items worked one by one, each retried and reported on its own after the reads are batched (rule 2) | an RPA process that consumes the queue, starting each item's connector and HTTP work as an API workflow, so only the queue work needs a robot |
71
+ | Coordination one host cannot hold (Decision Tree item 9) | Maestro flow, BPMN process or case, each automation it calls a component of its own |
72
+ | A threshold or routing table, an extraction model, judgment no rule decides, code several components call | a component of its own — decision table, extraction model, agent, function — only when the business maintains it apart, it is trained, or several components call it; otherwise a step of the host |
73
+
74
+ 1. **A product is chosen for the shape, never as an upgrade.** A coordinator, an agent, a function or a queue is Recommended only when the steps need what it adds. The source's own product is always an option; a Windows project's other option is the same project kind on Portable.
75
+ 2. **Batch before counting items.** A per-item fan-out the source built because it read one item at a time is counted again after the reads are batched (one query for all rows, matched in memory, the decision's filters moved into the query). A few writes per run left → the host works them in its own loop and the queue goes; retries across runs, parallel workers or per-item status people read → the queue stays. The result is that flow's `Decided:` line ([transactional-shape-guide.md](transactional-shape-guide.md) rule 8).
76
+ 3. **Coordination is replaced, not copied or dropped.** A lock on running jobs, a second pass over the same items or a ledger keeps its protection by the target's own means — a queue item per unit of work with a unique reference, a fresh read of each item before its writes; the source's mechanism stays only when the target's means cannot hold it. A coordinator is judged on what the whole chain needs, never on whether it takes the source's queue items.
77
+ 4. **An event trigger stays an event trigger.** The target is one the source's event can start, directly or through a component it starts.
78
+ 5. **A target the delivery model cannot run is never offered.** The delivery model is the one the genome records, or the Step 1 answer; the [Constraint Gate](product-selection-guide.md#constraint-gate) filters every option, and a product the matrix leaves unconfirmed is a later option naming the gap.
79
+ 6. **Check the target before recommending it.** Each connector operation, trigger and limit the steps rely on is confirmed through the target's owning skill and its discovery commands (`uip is connectors list --output json`); an operation the registry does not list is confirmed when the owning skill documents an HTTP step through the connection and the vendor's API documentation has the call. A tenant or a connection the run cannot reach is no evidence against a target. A capability nothing confirms makes that target a later option, the gap named in its label.
80
+
61
81
  ## Common Combinations
62
82
 
63
83
  | Shape | Example | Level | Components — type (role): skill | Applications |
@@ -4,6 +4,8 @@ Discover libraries already deployed to the tenant feed. Use whenever the user wa
4
4
 
5
5
  ## Default search target: tenant feed, not local filesystem
6
6
 
7
+ **The tenant is the session's.** Results describe the tenant this session is signed in to; they stand for the customer's estate only under the condition [platform-availability-guide.md](platform-availability-guide.md) § Resolving the Delivery Model sets for the login. A customer's PDD on a developer tenant: record "tenant library search not run against the customer's tenant" as an `[SME REVIEW]` item instead of "no shared libraries".
8
+
7
9
  The tenant feed is authoritative for org-published libraries. Do NOT search the local filesystem, project folder, NuGet.org, or `git grep` for "shared library" candidates — those surfaces do not represent what the org has deployed.
8
10
 
9
11
  ## CLI surface
@@ -29,17 +31,17 @@ Flags drift across CLI versions (`--search` / `--feed-id` are absent on older CL
29
31
 
30
32
  ## JMESPath filter recipe
31
33
 
32
- `Title` can be `null`, so `contains(Title, 'X')` errors out unless guarded. Always use:
34
+ Filter on `Key` — always populated — and `Title` together: `Title` is often `null` or `""`, so a Title-only filter misses packages, and `contains(Title, 'X')` errors on `null` unless guarded:
33
35
 
34
36
  ```bash
35
37
  # Single keyword
36
38
  uip or libraries list --limit 500 \
37
- --output-filter "[?Title != null && contains(Title, 'Excel')]" \
39
+ --output-filter "[?contains(Key, 'Excel') || (Title != null && contains(Title, 'Excel'))]" \
38
40
  --output json
39
41
 
40
42
  # Multi-keyword OR
41
43
  uip or libraries list --limit 500 \
42
- --output-filter "[?Title != null && (contains(Title, 'Common') || contains(Title, 'Shared'))]" \
44
+ --output-filter "[?contains(Key, 'Common') || contains(Key, 'Shared') || (Title != null && (contains(Title, 'Common') || contains(Title, 'Shared')))]" \
43
45
  --output json
44
46
  ```
45
47
 
@@ -77,21 +79,21 @@ Combine `Title` and `Authors` filters with `||` when the org uses both conventio
77
79
  - Capability/domain match in `Title` → rank next
78
80
  - Authors equal to the user's org → boost
79
81
  - De-duplicate by `Title` keeping the latest `Version`
80
- 5a. **If ≥1 candidate — present top 5 via `AskUserQuestion` with `multiSelect: true`.** Each option label: `<PackageId> <Version> — <Title>`. Always include "None / skip" as a non-multiSelect-exclusive option (or describe it as "leave all unchecked").
81
- 5b. **If 0 candidates — present a single-select numbered fallback.** Do not run more filtered calls with new keywords:
82
+ 5a. **If ≥1 candidate — present top 5 via a multi-select structured question.** Each option label: `<PackageId> <Version> — <Title>`. Always include "None / skip" as a non-multiSelect-exclusive option (or describe it as "leave all unchecked").
83
+ 5b. **If 0 candidates — present a single-select numbered fallback** (autonomous mode takes option 1 without asking). Do not run more filtered calls with new keywords:
82
84
 
83
85
  > No org-published libraries matched the search. How would you like to proceed?
84
86
  >
85
87
  > 1. **Proceed without shared libraries** *(recommended)* — §14 will list only public NuGet dependencies; the reuse mandate becomes a forward note in §16
86
88
  > 2. **Search a specific name or prefix** — re-run with the team's actual library naming convention
87
- > 3. **Provide names manually** — name libraries to include even if not yet deployed; flag as `[VERIFY DEPLOYMENT]`
89
+ > 3. **Provide names manually** — name libraries to include even if not yet deployed; each gets an `[SME REVIEW]` item to verify the deployment
88
90
  > 4. **Pause and re-authenticate to a different tenant** — if libraries live elsewhere
89
91
 
90
92
  6. **Record the user's selection.** Write each selected library into every sub-project's §14 Packages table and into §16 → "Shared libraries referenced". Implementation skills handle the install step downstream.
91
93
 
92
94
  ## Manual fallback (auth preflight failed)
93
95
 
94
- If `uip` is unauthenticated, ask the legacy question:
96
+ If `uip` is unauthenticated, ask:
95
97
 
96
98
  > Tenant library search is unavailable (not authenticated to a UiPath tenant). Provide shared libraries manually?
97
99
  >
@@ -107,6 +109,6 @@ If `uip` is unauthenticated, ask the legacy question:
107
109
  3. **Using `--search` for multi-keyword scans.** `--search` takes one term; one call per keyword violates anti-pattern 7. Multi-keyword OR goes through `--output-filter`.
108
110
  4. **Calling `contains(Title, ...)` without `Title != null` guard.** Tenants commonly hold packages with null Title — the call fails fast with `Invalid type: contains() expected ... received type null`.
109
111
  5. **Listing all libraries with no `--limit` bump, or paginating past the end.** Default 50 truncates large tenants and silently misses candidates. Use `--limit 500` for a one-shot scan; paginate via `--offset` only if `Data.length == 500`. If `Data.length < --limit` on a paginated call, you have seen the entire feed — stop searching, do not run more filtered queries hoping for hidden matches.
110
- 6. **Auto-selecting a candidate.** Library selection drives §14 Packages and project compilability — always confirm via `AskUserQuestion`.
112
+ 6. **Auto-selecting a candidate in interactive mode.** Library selection drives §14 Packages and project compilability — confirm via a structured question; autonomous mode records the pick in Decisions Made.
111
113
  7. **One CLI call per keyword, or running more keyword permutations after a zero-result filtered call.** Combine keywords into one OR-filtered call. On zero results, escalate to step 5b — do not loop back with new keyword sets hoping for hidden matches.
112
114
  8. **Repeating the search per sub-project in a Solution.** Run once per SDD generation; reuse the result across all sub-projects.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Content rules for a genome's Transactional Shape section, however the genome is produced. The section's place among the others, its stub and the rules every section follows: [genome-format-guide.md](genome-format-guide.md).
4
4
 
5
- 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, how the work is handled today and how it could be divided at build. UiPath realises per-item work with the **REFramework** (Robotic Enterprise Framework): a state machine that opens the applications once, takes one item at a time, classifies each item's outcome, retries system failures, records every item's status, closes the applications at the end, and reads its settings from a configuration workbook plus Orchestrator assets. An automation can hold several such streams — a **flow** is one kind of item handed from the steps or component that produce it to the steps or component that consume it, independently of any other item (the children an item expands into are levels of that item, not a flow of their own — rule 12); a process genome may have one flow between components 1 and 2, another between 2 and 3, and an independent one between 5 and 6. This section **describes**, per flow: the unit of work and the other viable granularities, how the process produces and consumes items as it is (or as described), where the items and their state live, which coordination the source used, and — for the unit of work and for every alternative unit — which ways of splitting the roles are possible, with what each requires and changes. It **asserts no split, no store, no template and no unit** — those are configuration answers at execution ([transactional-execution-guide.md § Split questions](transactional-execution-guide.md)). The behaviour written in Business Rules, Error Handling and Acceptance Criteria is owed whatever the user chooses.
5
+ 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, how the work is handled today and how it could be divided at build. UiPath realises per-item work with the **REFramework** (Robotic Enterprise Framework): a state machine that opens the applications once, takes one item at a time, classifies each item's outcome, retries system failures, records every item's status, closes the applications at the end, and reads its settings from a configuration workbook plus Orchestrator assets. An automation can hold several such streams — a **flow** is one kind of item handed from the steps or component that produce it to the steps or component that consume it, independently of any other item (the children an item expands into are levels of that item, not a flow of their own — rule 12); a process genome may have one flow between components 1 and 2, another between 2 and 3, and an independent one between 5 and 6. This section **describes**, per flow: the unit of work and the other viable granularities, how the process produces and consumes items as it is (or as described), where the items and their state live, which coordination the source used, and — for the unit of work and for every alternative unit — which ways of splitting the roles are possible, with what each requires and changes. It **asserts no split, no store, no template and no unit** — those are configuration answers of the build (its split questions) — except a split the agreed SDD or the user's request already chose, which the flow's `Decided:` line records (rule 8). The behaviour written in Business Rules, Error Handling and Acceptance Criteria is owed whatever the user chooses.
6
6
 
7
7
  ## Layout
8
8
 
@@ -45,9 +45,10 @@ Layout when at least one unit of work exists — one `### Flow N` block per flow
45
45
  | {alternative unit} | B | … | {…} |
46
46
  | {alternative unit} | C | … | {…} |
47
47
 
48
- When the flow's producer and consumer are **different genome components**, B is their as-is, A means the two components' roles in one process and C the two components' roles in one process that keeps the queue between them: the executor materialises one project for both, records it in the completion report, and leaves the Components table unchanged; each Requires cell names what the merge needs (one schedule, one machine and account set for both; under C also the once-guard).
48
+ When the flow's producer and consumer are **different genome components**, B is their as-is, A means the two components' roles in one process and C the two components' roles in one process that keeps the queue between them: the build materialises one project for both, records it in the completion report, and leaves the Components table unchanged; each Requires cell names what the merge needs (one schedule, one machine and account set for both; under C also the once-guard).
49
49
 
50
50
  **Evidence:** {facts that bear on the choice, no verdict — several robots run the same process today; the folder source is independent of the export; item kind X needs application Y that kind Z does not; …}
51
+ **Decided:** {right after Evidence, only when a decision was already taken: option letter, unit, who took it, and for B the project chain when the source names the projects — `B, one invoice — the SDD §10: Dispatcher → Performer`, `B, one invoice — the request: "retry invoices individually"` or `A, one invoice — the refactor answers`; the Split options table then holds that row alone}
51
52
  **Configuration:** settings — questions {a, b}; constants — questions {c, d}; assets — every asset row of Platform Dependencies.
52
53
  **Traceability:** {what is recorded per item today and where; the upstream reference the item carries when it is produced by the consumer of another flow; screenshot on system exception; run summary}.
53
54
 
@@ -66,14 +67,35 @@ Split options: per the process genome, Flow {N}.
66
67
 
67
68
  ## Rules
68
69
 
70
+ ### Applicability and roles
71
+
69
72
  1. **One test decides applicability: a unit of work exists — per flow.** Each flow is tested on its own; the section carries one block per flow that passes and the stub only when none does. A unit of work is a discrete item that can succeed, fail, be retried and be tracked independently of the others, and the automation iterates over such items. Sources of items: an Orchestrator queue, a mailbox, a folder of files, the rows of a spreadsheet or table, a work list on a screen, a page of API results, a database work table. **No unit of work:** a run that succeeds or fails as one (a poll, a report, a single posting); one item's work started per item by a caller — the caller owns the lifecycle and is the candidate consumer; an attended automation that waits on its user between items. A trigger that starts one job which then takes items until the source is empty **is** a consumer; a trigger configured to start one job per item is not — say which the source or description implies. **Component types that are never consumers** (they may still be producers): a library, a test-case group, a Flow, BPMN process or Case — as a coordinator or working its items itself, its per-item lifecycle is its own runtime's — an agent, an API workflow, a coded app, a function. Per-item work such a component does itself is written in its Workflow and Error Handling, and the section carries the stub. Volume is never the criterion: fifteen independent items a day is a shape, ten thousand rows written into one file is not. When items nest — a folder of files each holding rows, a mailbox of mails each carrying several documents, a requisition with its lines — the unit of work is the level at which one item fails, retries and is reported on its own, has a natural reference, and whose retry cost is acceptable; the levels above or below it are Alternative units of work (rule 8).
70
- 2. **Roles are described, never assigned.** "Produced by" and "Consumed by" name the steps — and, in a process genome, the components — that create and take items today. A producer may be any component type; a consumer is an RPA process (`uipath-rpa`), the only component type the framework builds; the component types rule 1 lists are never consumers. The words `dispatcher` and `performer` are execution vocabulary: they name the projects a chosen split materialises and appear in the Split options table and in the completion report — never in the Components table's Type cell, which reads `RPA process`, and never as a claim about what the rebuild is. A component genome inside a process states its as-is role per flow in one sentence (its `Role:` line) and carries the As-is rows that concern it; a component that consumes one flow and produces the next says so in both blocks.
71
- 3. **The item store follows the split.** The As-is row says where items and their state live today; each option needs the store this rule gives it. This rule is the options' one definition: the Split options table names an option by its letter and writes only what this flow requires and changes. **Option A keeps the items in the job**: one job takes its items end-to-end on one runner — the REFramework's direct mode, or a plain loop over an in-process list — and needs no Orchestrator queue. **Options B and C keep them in an Orchestrator queue**, which items need whenever they are shared across jobs — several runners, retries or postponements across runs, another process reading them after the run — with exactly **one queue per unit of work**, which any number of producers and consumers, and any number of runners of each, share. **C keeps both roles in one process**: one entry point and one trigger, every job produces behind a once-guard and then consumes, and every runner runs the same process — the shape of a source that runs one process on several robots and guards its population with a lock or a ledger. **B separates them** into processes with their own triggers, which the roles need when their cadences, machines, credentials or owners differ; a producer entry point with its own trigger is a producer process, so two entry points of one project are B, never C. A source's own coordination stores — a parent queue, a populate ledger, a lock, a tag join — are facts of the Coordination row; they are carried into a build only when the chosen split still needs them and the user keeps them ([transactional-execution-guide.md § Split questions](transactional-execution-guide.md)). **Per-item state a queue cannot hold.** An Orchestrator queue item carries specific content fixed when it is added, a progress text while it is in progress and output data written when it completes; none of them changes once the item is final, and a fetch selects by reference alone. Where the As-is keeps state beyond that — values written after the item is added that a later attempt, run or process reads; a hand-out filtered on anything but the reference; a change to an item after it is final; the outcomes of children worked inside their parent's transaction (rule 11) — B and C need a **record store** beside the queue: one record per item, keyed by the item's reference, holding that state, while the queue keeps hand-out, lock, attempts, postponement and outcome. State the queue can hold stays in it: a value fixed at add in the specific content, a value only the held attempt uses in its progress and output, a hand-out by item kind, one kind per item fixed at add, as one queue per kind. The As-is names the state and its readers; the Requires cells of B and C name the record store. A source that keeps its work list in a **database the process owns** (hand-out per runner, per-item status written back, operators reading the tables) already has a shared store: the As-is says so, the Requires and Changes cells of B and C can keep that database as the store or as the record store, and execution offers it in the store question rather than imposing a queue.
72
- 4. **Outcomes classify the rules and handlers already written; they never restate them.** Three rows always, a fourth only under the condition at the end of this rule: **Success**; **Business exception** — the Business Rules that reject an item (missing or wrong data, a rule the item fails): no retry, the item is recorded with the reason, the run continues; **System exception** — every other failure (application unavailable, element not found, timeout): the applications are closed and reopened, the item is retried the configured number of times, then recorded as failed with the reason, and the run stops after the configured number of consecutive system exceptions. Name rules and handlers by step ("Step 7 rules: duplicate, no open PO"); never copy their text. A source's own per-item results — approved, rejected, skipped, routed to a person — are not outcome rows: the result of a completed item is the Success row, and every result a rule decides (a rejection, a skip, a missing attachment) is a Business exception naming that rule by step. When extracted, this row states the source's own recovery and its two counts, 0 and 1 included, never the framework's defaults ([genome-format-guide.md § Configuration Questions](genome-format-guide.md)): a source that never retries an item and ends the run at its first failure reads "not retried (0×); the run stops after 1". An authored genome asks the counts as Configuration Questions `(constant; default: retried 2×; stop after 3 consecutive)`. A fourth row, **Postponed**, exists only when the source or the description puts an item back for a later attempt without counting it as a failure — the record it targets does not exist yet, a cut-off time has passed. Its When names the rule by step; its Effect states the postpone time and the limit: in a queue store the item returns to the queue with a postpone time and its attempt count untouched, in an in-process store it is written back as pending; past the limit it is a business exception. Postponement never replaces the system-exception retry, and a run that waits between polls is not postponing items.
73
+ 2. **Roles are described, never assigned.** "Produced by" and "Consumed by" name the steps — and, in a process genome, the components — that create and take items today. A producer may be any component type; a consumer is an RPA process (`uipath-rpa`), the only component type the framework builds; the component types rule 1 lists are never consumers. The words `dispatcher` and `performer` are build vocabulary: they name the projects a chosen split materialises and appear in the Split options table and in the completion report — never in the Components table's Type cell, which reads `RPA process`, and never as a claim about what the rebuild is. A component genome inside a process states its as-is role per flow in one sentence (its `Role:` line) and carries the As-is rows that concern it; a component that consumes one flow and produces the next says so in both blocks.
74
+
75
+ ### Item store
76
+
77
+ 3. **The item store follows the split.** The As-is row says where items and their state live today; each option needs the store this rule gives it. This rule is the options' one definition: the Split options table names an option by its letter and writes only what this flow requires and changes. **Option A keeps the items in the job**: one job takes its items end-to-end on one runner — the REFramework's direct mode, or a plain loop over an in-process list — and needs no Orchestrator queue. **Options B and C keep them in an Orchestrator queue**, which items need whenever they are shared across jobs — several runners, retries or postponements across runs, another process reading them after the run — with exactly **one queue per unit of work and hand-off**, which any number of producers and consumers, and any number of runners of each, share. A `Decided:` chain of N projects (rule 8) uses N − 1 queues, one per hand-off, named in Platform Dependencies in chain order. **C keeps both roles in one process**: one entry point and one trigger, every job produces behind a once-guard and then consumes, and every runner runs the same process — the shape of a source that runs one process on several robots and guards its population with a lock or a ledger. **B separates them** into processes with their own triggers, which the roles need when their cadences, machines, credentials or owners differ; a producer entry point with its own trigger is a producer process, so two entry points of one project are B, never C.
78
+ A source's own coordination stores — a parent queue, a populate ledger, a lock, a tag join — are facts of the Coordination row; they are carried into a build only when the chosen split still needs them and the user keeps them. **Per-item state a queue cannot hold.** An Orchestrator queue item carries specific content fixed when it is added, a progress text while it is in progress and output data written when it completes; none of them changes once the item is final, and a fetch selects by reference alone. Where the As-is keeps state beyond that — values written after the item is added that a later attempt, run or process reads; a hand-out filtered on anything but the reference; a change to an item after it is final; the outcomes of children worked inside their parent's transaction (rule 11) — B and C need a **record store** beside the queue: one record per item, keyed by the item's reference, holding that state, while the queue keeps hand-out, lock, attempts, postponement and outcome. State the queue can hold stays in it: a value fixed at add in the specific content, a value only the held attempt uses in its progress and output, a hand-out by item kind, one kind per item fixed at add, as one queue per kind. The As-is names the state and its readers; the Requires cells of B and C name the record store.
79
+ A source that keeps its work list in a **database the process owns** (hand-out per runner, per-item status written back, operators reading the tables) already has a shared store: the As-is says so, the Requires and Changes cells of B and C can keep that database as the store or as the record store, and the build offers it in the store question rather than imposing a queue.
80
+
81
+ ### Outcomes, step groups, configuration and traceability
82
+
83
+ 4. **Outcomes classify the rules and handlers already written; they never restate them.** Three rows always, a fourth only under the condition at the end of this rule: **Success**; **Business exception** — the Business Rules that reject an item (missing or wrong data, a rule the item fails): no retry, the item is recorded with the reason, the run continues; **System exception** — every other failure (application unavailable, element not found, timeout): the applications are closed and reopened, the item is retried the configured number of times, then recorded as failed with the reason, and the run stops after the configured number of consecutive system exceptions. Name rules and handlers by step ("Step 7 rules: duplicate, no open PO"); never copy their text. A source's own per-item results — approved, rejected, skipped, routed to a person — are not outcome rows: the result of a completed item is the Success row, and every result a rule decides (a rejection, a skip, a missing attachment) is a Business exception naming that rule by step. When extracted, this row states the source's own recovery and its two counts, 0 and 1 included, never the framework's defaults ([genome-format-guide.md § Configuration Questions](genome-format-guide.md)): a source that never retries an item and ends the run at its first failure reads "not retried (0×); the run stops after 1".
84
+ An authored genome asks the counts as Configuration Questions `(constant; default: retried 2×; stop after 3 consecutive)`. A fourth row, **Postponed**, exists only when the source or the description puts an item back for a later attempt without counting it as a failure — the record it targets does not exist yet, a cut-off time has passed. Its When names the rule by step; its Effect states the postpone time and the limit: in a queue store the item returns to the queue with a postpone time and its attempt count untouched, in an in-process store it is written back as pending; past the limit it is a business exception. Postponement never replaces the system-exception retry, and a run that waits between polls is not postponing items.
73
85
  5. **Once per run, per item, at the end.** Every Workflow step of a consumer belongs to exactly one group, named by step number in the As-is Step groups row: once per run (open and sign in to the applications, read configuration and reference data, read the source when the store is in-process and the source is complete at the start), per item (the business steps), at the end (close the applications, write the summary or report). A step that fits no group is missing from Workflow, not from this section. A producer's steps are never in the consumer's once-per-run group: they are the Produced by row's own steps. In a chain the steps that create the downstream flow's items are **per-item** steps of the upstream flow's consumer, named in both flows' blocks (rule 13).
74
86
  6. **Configuration: split, do not repeat.** The settings and constants are the ones [genome-format-guide.md § Configuration Questions](genome-format-guide.md) marks; this section names which apply to the flow's consumer and states that its assets in Platform Dependencies are read at start, except each credential or Secret asset, read where its secret is used. A value the genome states instead of asking stays where it acts and is not listed. A secret is never a configuration value ([genome-format-guide.md § Platform Dependencies](genome-format-guide.md)).
75
87
  7. **Traceability: what is recorded per item, and where.** The reference, the outcome and its reason — as the queue item's status, progress and output when the store is a queue; as a write-back column, a result file or a reporting queue when it is not; a screenshot on every system exception; one run summary (items taken, succeeded, business exceptions, failed). These are what a reporting step or a digest reads; a reporting component reads them, never the consumer's log.
76
- 8. **Split options and evidence replace any verdict.** Options A, B and C are listed whenever a unit of work exists — once for the unit of work and once for every Alternative unit of work — each with its requirements and its changes against as-is; an option the evidence excludes is still listed, with the reason in its Requires cell ("excluded: several robots work the items and postponements cross days"). Two things are never options: **the number of runners**, a deployment setting of each resulting process (A runs on one runner per job; several runners mean B or C), and **several producers or several consumers**, sub-choices of B the execution asks when the As-is shows several independent sources or several item kinds. A Requires or Changes cell states facts in this automation's terms — projects and schedules to operate, parallelism, retry granularity, where per-item state is visible, what the end-of-parent work needs (rule 11) — and never ranks the options ("recommended", "best", "simplest"); what an option is, and the trade-offs that hold for any automation, are rule 3's and this table's and are not written per flow. The Evidence line carries facts only — robot count, schedules, sources, applications per item kind, whether items survive a run today. The **Alternative units of work** line lists every viable granularity with the condition under which it fits, never a choice. Every unit the line lists gets its own A, B and C rows in Split options — also one whose condition the as-is does not meet today, whose Requires cells then say what would have to change; a parent level's condition never asks that the parent be accepted or rejected as a whole, since its children's outcomes stay recorded per child inside the parent's transaction ([transactional-execution-guide.md § REFramework at build](transactional-execution-guide.md), alternative unit of work); a mode or a project split is never an alternative unit — those are Split options. Derivation table (authoring and extraction):
88
+
89
+ **An extracted genome states what the source does** in rules 4 and 7 — `retried 0 times`, `the run never stops on consecutive failures`, `no screenshot` — never the counts and records an authored design would add; a value a requested change needs and the source never had is a Configuration Question ([extract-guide.md](../extract/extract-guide.md) Step 1).
90
+
91
+ ### Split options and evidence
92
+
93
+ 8. **Split options and evidence replace any verdict; a decision already taken is recorded, not reopened.** Options A, B and C are listed whenever a unit of work exists and the flow has no `Decided:` line — once for the unit of work and once for every Alternative unit of work — each with its requirements and its changes against as-is; an option the evidence excludes is still listed, with the reason in its Requires cell ("excluded: several robots work the items and postponements cross days"). Two things are never options: **the number of runners**, a deployment setting of each resulting process (A runs on one runner per job; several runners mean B or C), and **several producers or several consumers**, sub-choices of B the build asks when the As-is shows several independent sources or several item kinds. A Requires or Changes cell states facts in this automation's terms — projects and schedules to operate, parallelism, retry granularity, where per-item state is visible, what the end-of-parent work needs (rule 11) — and never ranks the options ("recommended", "best", "simplest"); what an option is, and the trade-offs that hold for any automation, are rule 3's and this table's and are not written per flow. The Evidence line carries facts only — robot count, schedules, sources, applications per item kind, whether items survive a run today. The **Alternative units of work** line lists every viable granularity with the condition under which it fits, never a choice.
94
+ Every unit the line lists gets its own A, B and C rows in Split options — also one whose condition the as-is does not meet today, whose Requires cells then say what would have to change; a parent level's condition never asks that the parent be accepted or rejected as a whole, since its children's outcomes stay recorded per child inside the parent's transaction (the build's REFramework, alternative unit of work); a mode or a project split is never an alternative unit — those are Split options.
95
+
96
+ **A decision someone already took is recorded, not reopened.** It is not the extraction's or the author's verdict: when the agreed SDD, the user's request or the refactor answers chose the split, the flow's `Decided:` line records it — `<option letter>, <unit> — <source>`, the source `the SDD …`, `the request: …` or `the refactor answers` — and the Split options table holds that one row only. Option B adds the project chain when its source names the projects: `B, <unit> — <source>: <Project> → <Project>[ → <Project> …]`, two or more project names separated by ` → ` in hand-off order — the first produces, each next consumes the previous one's items and may produce for the next. A and C lines carry no chain; a B line without one means the default two projects; the other options and alternative units are not listed. Its Changes cell states what the decided split changes against a single project with no queue; the Alternative units line is omitted, and no row or line restates that the decision is not reopened.
97
+
98
+ Derivation table (authoring and extraction):
77
99
 
78
100
  | Signal in the source or the description | Split options it enables or excludes |
79
101
  |---|---|
@@ -86,8 +108,17 @@ Split options: per the process genome, Flow {N}.
86
108
  | The source guards population with a lock or a ledger | evidence that several identical jobs ran the process, which is C's shape; C keeps a once-guard in its place (a unique reference the queue refuses twice, or the kept ledger); B with one producer job removes the need for it |
87
109
  | Work happens once per parent when its children are final (a summary, a report, a close-out per file or mail) | at the child unit: every option names how that work learns its children are final (rule 11); at the parent unit: it is the transaction's last step |
88
110
 
111
+ ### Levels
112
+
89
113
  9. **Levels.** The process genome carries the `Flows:` line and one full block per flow: unit of work and alternatives, the As-is across the components the flow joins, outcomes, split options per unit of work, evidence, configuration, traceability. A component genome inside a process carries one block per flow it takes part in (layout above): its `Role:` line, the As-is rows that concern the role (a producer: source, reference rule, what happens to the source item once it is queued; a consumer: its step groups, its outcomes table and counts, its configuration split and traceability), and the line `Split options: per the process genome, Flow N.`; a component in no flow carries the stub with the reason (a library, a coordinator, one item's work started per item by component N). A standalone component genome carries the `Flows:` line and every block in full for its one project. **A flow with one side outside the genome** — items handed to a queue another process works, or taken from one another process fills — keeps its block with the unit of work, the As-is rows of the side this genome holds, its outcomes when this genome is the flow's consumer, and traceability; the line `Split options: none — the consumer is outside this genome: {what takes the items}.` (or `the producer is outside this genome: {what fills the store}`) replaces the Split options table, since execution cannot divide roles it does not build.
114
+
115
+ ### Extracted genomes
116
+
90
117
  10. **Extracted genomes.** A source built on a framework fills the As-is table from the framework's configuration and files (the framework's source guide says which file feeds which row); the framework's plumbing — state transitions, retry counters, status updates, screenshots on exception — is not workflow steps and is listed in the Source Map as a `Framework files` row. A source with a queue producer or consumer, or a per-item loop, and no framework is a candidate when the step that works the items becomes an RPA process: write the unit of work and its alternatives, the As-is, and the Split options for each unit, marking `*[Inferred]*` what the source does not show. A source whose items are worked by a component type rule 1 excludes carries the stub line, nothing more. The As-is is the source's truth — its coordination stores, its item levels, its robot count — exactly as they are.
91
- 11. **Several levels of items are one unit of work and one description.** A source whose items expand into children (a record into its line items, a file into its rows, a mail into its attachments, a report into the work list built from it and that list into its rows) has one candidate level per generation, whether the parent is tracked in its own queue or status or only exists as the file or store the children came from — and whatever store (a staging folder, a work list) sits between the generations; rule 1 picks the unit of work and the other level is an Alternative unit of work. The As-is describes both levels as they are — Coordination row: "one parent item per reference, children joined by the parent key, one robot works one parent's children in sequence, the parent is completed when its children are final". Whether a level is folded at build — children produced up front, several robots on one parent's children, the parent's fate derived from its children instead of kept as an item — is an execution decision recorded in the completion report ([execution-guide.md § 3.3](execution-guide.md)), never a claim of this section. What the section does state is the consequence per level, in the Split options rows' Requires and Changes cells: at the child level, how the parent's end-of-parent work learns that its children are final — a parent item on its own queue postponed until they are, a reporting step over the children's records with a guard against sending twice, the consumer that finishes the last child — and what that costs with several runners, under B and C alike; at the parent level, that this work is the transaction's last step, that the children are worked inside the transaction, and what a parent retry redoes (only the unfinished children, when the children's state survives the retry).
92
- 12. **Flows come from the handoffs.** Every edge that hands items one by one from producer to consumer is a candidate flow: a queue item between components, a file drop, a database work table, a mailbox, a work-list workbook — the Handoffs row (or its intra-component row, [genome-format-guide.md § Handoffs](genome-format-guide.md)) names it, and the `Flows:` line cites that row. A call made once per item — a start job, an API workflow or agent invoked per item, a subflow — hands no item to a store: the called component does that item's work inside the caller's transaction. It is a step of the caller's flow, never a flow of its own (rule 1). Two edges carrying the same kind of item between the same roles are one flow; items handed on a second time (component 2 → 3 after 1 → 2) are a second flow when the second consumer takes items the first consumer produces, even when the payload is similar. A flow keeps its own unit of work, alternatives, store, outcomes, split options and evidence; two flows never share a queue, since each unit of work has its own (rule 3). Independent flows (5 → 6 beside 1 → 2 → 3) are separate blocks the `Flows:` line lists as independent. **A store between two phases starts a flow of its own only when both tests hold — otherwise the items it holds are a level of the upstream item, and the two phases are producer and consumer steps of one flow (rule 11):** (a) **independence** — a downstream item does not belong to one upstream item whose end-of-parent work waits on it (a summary, a close-out, a status or notification per parent) and is not the upstream item itself carried to its next stage, unless a person decides between the stages (a review, an approval): the upstream item then ends when it is handed to that person, and the decision starts a downstream item of its own, even when it is the same record; (b) **separation** — the two phases differ in run, cadence, robot, account or owner, or another producer or consumer touches the store. A folder or work list that the same job fills and then empties, where each upstream item turns into its own downstream items (a mail into its attachments, a report into its work list, the list into its rows), is one flow with nested levels — never a chain. A second flow inside one component exists only when both tests hold (a drop folder filled all day by one entry point and drained by another on its own schedule).
118
+
119
+ ### Flows and levels of items
120
+
121
+ 11. **Several levels of items are one unit of work and one description.** A source whose items expand into children (a record into its line items, a file into its rows, a mail into its attachments, a report into the work list built from it and that list into its rows) has one candidate level per generation, whether the parent is tracked in its own queue or status or only exists as the file or store the children came from — and whatever store (a staging folder, a work list) sits between the generations; rule 1 picks the unit of work and the other level is an Alternative unit of work. The As-is describes both levels as they are — Coordination row: "one parent item per reference, children joined by the parent key, one robot works one parent's children in sequence, the parent is completed when its children are final". Whether a level is folded at build — children produced up front, several robots on one parent's children, the parent's fate derived from its children instead of kept as an item — is a build decision recorded in the build's completion report, never a claim of this section. What the section does state is the consequence per level, in the Split options rows' Requires and Changes cells: at the child level, how the parent's end-of-parent work learns that its children are final — a parent item on its own queue postponed until they are, a reporting step over the children's records with a guard against sending twice, the consumer that finishes the last child — and what that costs with several runners, under B and C alike; at the parent level, that this work is the transaction's last step, that the children are worked inside the transaction, and what a parent retry redoes (only the unfinished children, when the children's state survives the retry).
122
+ 12. **Flows come from the handoffs.** A store a coordinator reads one instance per item (a Flow, BPMN process or case started per queue item) is a Handoffs row, never a flow: the coordinator's per-item lifecycle is its own runtime's (rule 1). Every edge that hands items one by one from producer to consumer is a candidate flow: a queue item between components, a file drop, a database work table, a mailbox, a work-list workbook — the Handoffs row (or its intra-component row, [genome-format-guide.md § Handoffs](genome-format-guide.md)) names it, and the `Flows:` line cites that row. A call made once per item — a start job, an API workflow or agent invoked per item, a subflow — hands no item to a store: the called component does that item's work inside the caller's transaction. It is a step of the caller's flow, never a flow of its own (rule 1). Two edges carrying the same kind of item between the same roles are one flow; items handed on a second time (component 2 → 3 after 1 → 2) are a second flow when the second consumer takes items the first consumer produces, even when the payload is similar. A flow keeps its own unit of work, alternatives, store, outcomes, split options and evidence; two flows never share a queue, since each unit of work has its own (rule 3). Independent flows (5 → 6 beside 1 → 2 → 3) are separate blocks the `Flows:` line lists as independent.
123
+ **A store between two phases starts a flow of its own only when both tests hold — otherwise the items it holds are a level of the upstream item, and the two phases are producer and consumer steps of one flow (rule 11):** (a) **independence** — a downstream item does not belong to one upstream item whose end-of-parent work waits on it (a summary, a close-out, a status or notification per parent) and is not the upstream item itself carried to its next stage, unless a person decides between the stages (a review, an approval): the upstream item then ends when it is handed to that person, and the decision starts a downstream item of its own, even when it is the same record; (b) **separation** — the two phases differ in run, cadence, robot, account or owner, or another producer or consumer touches the store. A folder or work list that the same job fills and then empties, where each upstream item turns into its own downstream items (a mail into its attachments, a report into its work list, the list into its rows), is one flow with nested levels — never a chain. A second flow inside one component exists only when both tests hold (a drop folder filled all day by one entry point and drained by another on its own schedule).
93
124
  13. **Chains.** When the consumer of Flow N produces the items of Flow N+1 — items of their own by rule 12's two tests, not the children of the Flow N item — the downstream item carries the upstream reference, so traceability follows an item end-to-end, and who creates it decides the rest. **The automation creates it:** creating it is a per-item step of the upstream item, and its failure is a system exception of the upstream item — retried with it, so the downstream reference must make a second creation a duplicate the store refuses (derive it from the upstream reference); the upstream item succeeds only when its downstream item exists. **A person creates it** (the decision of rule 12, test (a)): the upstream item succeeds when it is handed to that person, and the downstream reference is the upstream reference itself. Each flow's Split options are listed on their own, and each flow's Changes cells state what taking option A or C for two adjacent flows changes (their components' roles in one process; under A the intermediate store gone only when the downstream work can run inside the upstream transaction, under C the intermediate queue kept). Folding a chain into one flow — the downstream work done inside the upstream item — is an Alternative unit of work of the upstream flow, listed with its fit condition when it fits.