@uipath/skills 1.206.0 → 1.206.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/CODEOWNERS +34 -7
- package/README.md +2 -2
- package/package.json +2 -2
- package/skills/uipath-genome/SKILL.md +35 -88
- package/skills/uipath-genome/references/build-guide.md +61 -0
- package/skills/uipath-genome/references/completion-report-guide.md +93 -0
- package/skills/uipath-genome/references/composite-interactions-guide.md +39 -0
- package/skills/uipath-genome/references/configuration-questions-guide.md +68 -0
- package/skills/uipath-genome/references/execution-guide.md +45 -166
- package/skills/uipath-genome/references/execution-parts-guide.md +84 -17
- package/skills/uipath-genome/references/genome-reading-guide.md +153 -0
- package/skills/uipath-genome/references/live-application-guide.md +23 -9
- package/skills/uipath-genome/references/offline-definition-workarounds-guide.md +4 -4
- package/skills/uipath-genome/references/open-items-guide.md +3 -3
- package/skills/uipath-genome/references/package-doc-errata-guide.md +8 -0
- package/skills/uipath-genome/references/refactor-guide.md +38 -39
- package/skills/uipath-genome/references/selector-matching-guide.md +59 -0
- package/skills/uipath-genome/references/selector-translation-guide.md +13 -66
- package/skills/uipath-genome/references/selector-translation-sap-guide.md +7 -5
- package/skills/uipath-genome/references/selector-translation-web-guide.md +2 -2
- package/skills/uipath-genome/references/source-frameworks-guide.md +21 -0
- package/skills/uipath-genome/references/source-migration-guide.md +48 -19
- package/skills/uipath-genome/references/test-execution-guide.md +8 -7
- package/skills/uipath-genome/references/transactional-execution-guide.md +41 -13
- package/skills/uipath-genome/references/ui-target-migration-guide.md +12 -49
- package/skills/uipath-genome/references/ui-verification-guide.md +9 -1
- package/skills/uipath-maestro-case/SKILL.md +7 -7
- package/skills/uipath-maestro-case/references/evals/evals.json +5 -5
- package/skills/uipath-maestro-case/references/planning.md +5 -5
- package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/planning.md +2 -2
- package/skills/uipath-maestro-case/references/plugins/sla/planning.md +1 -1
- package/skills/uipath-maestro-case/references/registry-discovery.md +3 -3
- package/skills/uipath-planner/SKILL.md +80 -199
- package/skills/uipath-planner/assets/templates/agent-sdd-template.md +17 -17
- package/skills/uipath-planner/assets/templates/api-workflow-sdd-template.md +15 -13
- package/skills/uipath-planner/assets/templates/bpmn-sdd-template.md +19 -19
- package/skills/uipath-planner/assets/templates/case-sdd-task-details-template.md +173 -0
- package/skills/uipath-planner/assets/templates/{case/case-sdd-template.md → case-sdd-template.md} +51 -229
- package/skills/uipath-planner/assets/templates/coded-app-sdd-template.md +16 -14
- package/skills/{uipath-genome → uipath-planner}/assets/templates/component-genome-template.md +9 -5
- package/skills/uipath-planner/assets/templates/flow-sdd-template.md +17 -15
- package/skills/{uipath-genome → uipath-planner}/assets/templates/process-genome-template.md +11 -7
- package/skills/uipath-planner/assets/templates/rpa-sdd-template.md +50 -73
- package/skills/uipath-planner/references/author/author-guide.md +119 -0
- package/skills/uipath-planner/references/author/genome-from-sdd-guide.md +36 -0
- package/skills/uipath-planner/references/author/scenario-proposal-guide.md +30 -0
- package/skills/uipath-planner/references/decompose/decompose-guide.md +223 -0
- package/skills/uipath-planner/references/{asdd-crosswalk-guide.md → design/asdd-crosswalk-guide.md} +6 -4
- package/skills/uipath-planner/references/{business-rules-guide.md → design/business-rules-guide.md} +3 -3
- package/skills/uipath-planner/references/design/caller-request-guide.md +92 -0
- package/skills/uipath-planner/references/design/case-data-and-time-guide.md +292 -0
- package/skills/uipath-planner/references/design/case-product-guide.md +243 -0
- package/skills/uipath-planner/references/design/case-review-and-conformance-guide.md +166 -0
- package/skills/uipath-planner/references/design/design-guide.md +296 -0
- package/skills/uipath-planner/references/{package-selection-guide.md → design/package-selection-guide.md} +16 -13
- package/skills/uipath-planner/references/{rpa-product-guide.md → design/rpa-product-guide.md} +23 -53
- package/skills/uipath-planner/references/design/scope-recommendation-guide.md +134 -0
- package/skills/uipath-planner/references/design/sdd-writing-guide.md +235 -0
- package/skills/uipath-planner/references/design/solution-composition-guide.md +153 -0
- package/skills/uipath-planner/references/edit/edit-guide.md +66 -0
- package/skills/uipath-planner/references/extract/extract-guide.md +230 -0
- package/skills/uipath-planner/references/extract/source-frameworks-guide.md +22 -0
- package/skills/uipath-planner/references/extract/uipath-non-rpa-signals-guide.md +121 -0
- package/skills/uipath-planner/references/extract/uipath-rpa-signals-guide.md +88 -0
- package/skills/uipath-planner/references/extract/uipath-source-guide.md +193 -0
- package/skills/uipath-planner/references/shared/component-placement-guide.md +99 -0
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/defect-verification-guide.md +4 -4
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/extracted-genome-guide.md +15 -14
- package/skills/uipath-planner/references/shared/extraction-parts-guide.md +66 -0
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/genome-format-guide.md +63 -34
- package/skills/uipath-planner/references/{multi-skill-patterns-guide.md → shared/multi-skill-patterns-guide.md} +28 -27
- package/skills/uipath-planner/references/{pdd-analysis-guide.md → shared/pdd-analysis-guide.md} +27 -72
- package/skills/uipath-planner/references/{plan-and-tasks-format.md → shared/plan-and-tasks-format.md} +43 -67
- package/skills/uipath-planner/references/{platform-availability-guide.md → shared/platform-availability-guide.md} +56 -1
- package/skills/uipath-planner/references/shared/product-selection-guide.md +202 -0
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/skill-mapping-guide.md +24 -4
- package/skills/uipath-planner/references/{tenant-library-search-guide.md → shared/tenant-library-search-guide.md} +10 -8
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/transactional-shape-guide.md +39 -8
- package/skills/uipath-planner/scripts/check-genome.mjs +801 -0
- package/skills/uipath-planner/scripts/sdd-fingerprint.mjs +71 -0
- package/skills/uipath-planner/scripts/sdd-to-docx.mjs +87 -0
- package/skills/uipath-test/SKILL.md +3 -3
- package/version-manifest.json +1 -1
- package/skills/uipath-genome/CLAUDE.md +0 -85
- package/skills/uipath-genome/assets/examples/artemis-2-mission-monitor-genome.md +0 -126
- package/skills/uipath-genome/assets/examples/classify-document-and-create-validation-genome.md +0 -117
- package/skills/uipath-genome/assets/examples/invoice-processing-genome/exception-triage-agent-genome.md +0 -96
- package/skills/uipath-genome/assets/examples/invoice-processing-genome/invoice-extraction-genome.md +0 -128
- package/skills/uipath-genome/assets/examples/invoice-processing-genome/invoice-orchestration-genome.md +0 -115
- package/skills/uipath-genome/assets/examples/invoice-processing-genome.md +0 -136
- package/skills/uipath-genome/assets/examples/purchase-requisition-entry-genome.md +0 -224
- package/skills/uipath-genome/assets/examples/salesforce-accounts-and-contacts-genome.md +0 -151
- package/skills/uipath-genome/references/authoring-guide.md +0 -98
- package/skills/uipath-genome/references/editing-guide.md +0 -57
- package/skills/uipath-genome/references/extraction-guide.md +0 -166
- package/skills/uipath-genome/references/extraction-parts-guide.md +0 -45
- package/skills/uipath-genome/references/parts-guide.md +0 -22
- package/skills/uipath-genome/references/uipath-source-guide.md +0 -404
- package/skills/uipath-genome/scripts/check-genome.py +0 -670
- package/skills/uipath-planner/assets/templates/case/sdd-viewer.html +0 -1530
- package/skills/uipath-planner/references/case/case-design-lane-guide.md +0 -327
- package/skills/uipath-planner/references/case/case-design-layers-guide.md +0 -503
- package/skills/uipath-planner/references/case/case-sdd-conformance-checklist.md +0 -123
- package/skills/uipath-planner/references/non-pdd-lane-guide.md +0 -196
- package/skills/uipath-planner/references/pdd-driven-lane-guide.md +0 -210
- package/skills/uipath-planner/references/product-selection-guide.md +0 -673
- package/skills/uipath-planner/references/sdd-generation-guide.md +0 -613
- package/skills/uipath-planner/scripts/docx-extract.ps1 +0 -59
- package/skills/uipath-planner/scripts/docx-extract.sh +0 -54
- package/skills/uipath-planner/scripts/sdd-to-docx.ps1 +0 -74
- package/skills/uipath-planner/scripts/sdd-to-docx.sh +0 -76
- /package/skills/uipath-planner/references/{attended-reauth-pattern-guide.md → design/attended-reauth-pattern-guide.md} +0 -0
|
@@ -22,7 +22,7 @@ Execution of an extracted genome whose build has UI activities gives every UI ac
|
|
|
22
22
|
|
|
23
23
|
## Target spec
|
|
24
24
|
|
|
25
|
-
**Write the target spec per component, once**, after the migration preflight has derived the catalogs ([source-migration-guide.md § Migration preflight](source-migration-guide.md)). One agent takes the catalog entries of the component's steps (selected by the step table's source objects), collapses them to distinct identities by the framework pack's identity and normalisation rules and § Object Repository identity, derives each identity's selector by [selector-translation-guide.md](selector-translation-guide.md), the pack's selectors guide and, when the application was explored, its application notes ([live-application-guide.md § Exploring](live-application-guide.md)), and adds the derived elements the component's composite patterns need (
|
|
25
|
+
**Write the target spec per component, once**, after the migration preflight has derived the catalogs ([source-migration-guide.md § Migration preflight](source-migration-guide.md)). One agent takes the catalog entries of the component's steps (selected by the step table's source objects), collapses them to distinct identities by the framework pack's identity and normalisation rules and § Object Repository identity, derives each identity's selector by [selector-translation-guide.md](selector-translation-guide.md), the pack's selectors guide and, when the application was explored, its application notes ([live-application-guide.md § Exploring](live-application-guide.md)), and adds the derived elements the component's composite patterns need ([composite-interactions-guide.md](composite-interactions-guide.md)). It writes one data file, `migration/source/targets-<component>.json`, the input of registration:
|
|
26
26
|
- per window of each application, its scope selector, authored once ([selector-translation-guide.md](selector-translation-guide.md) rule 9);
|
|
27
27
|
- per screen, its key, name, window selector and description, and the input method the application notes record, where they record one;
|
|
28
28
|
- per element, its key, screen, name, acting activity type, selector (strict, with the `<nav>` path from the control's caption where there is one; tag-only where rule 13 there leaves no selector), each selector variable with the source expression it comes from, the source variable, its start value and step with their lines (or the recorded values it stands for), and what binds it in the rebuild (an argument or a workflow variable, completed by the group that authors the binding), semantic description ([selector-translation-guide.md](selector-translation-guide.md) rule 11), description (§ Rules, rule 2), flags (fragile, parametrised, derived, live-pass note) and the source controls it collapses.
|
|
@@ -40,7 +40,7 @@ UI groups take their screens' entries from the spec instead of deriving selector
|
|
|
40
40
|
| 5. Link screens then elements into each workflow per the owning skill's target-attachment guidance | linked XAML, placeholder prefixes removed from linked activities |
|
|
41
41
|
| 6. Validate every workflow; build; pack | per-workflow report: linked count, created vs reused vs parametrised, confidence, remaining errors |
|
|
42
42
|
|
|
43
|
-
Mapping rules: every UI activity mapped once, activity ids file-unique; the step table and the target spec identify each workflow step's source processes and controls; shared widgets (search box, OK, Submit, comment box, menus) map to one control (§ Object Repository identity); literals the workflow receives as arguments (a person name, a placeholder the source rewrote at run time) become selector variables (`{{Argument}}`) bound to the workflow argument; steps the built workflow has but the source had not (optional pop-up checks, verifications) get no source control, a precise semantic description and low confidence. A **composite source step** (
|
|
43
|
+
Mapping rules: every UI activity mapped once, activity ids file-unique; the step table and the target spec identify each workflow step's source processes and controls; shared widgets (search box, OK, Submit, comment box, menus) map to one control (§ Object Repository identity); literals the workflow receives as arguments (a person name, a placeholder the source rewrote at run time) become selector variables (`{{Argument}}`) bound to the workflow argument; steps the built workflow has but the source had not (optional pop-up checks, verifications) get no source control, a precise semantic description and low confidence. A **composite source step** ([composite-interactions-guide.md](composite-interactions-guide.md)) maps to one invocation of the pattern's helper workflow where [composite-interactions-guide.md](composite-interactions-guide.md) makes one, else to the pattern's activities at the step; either way its elements — the catalog's anchor control plus the derived elements the source never learned — exist once.
|
|
44
44
|
|
|
45
45
|
**One tool per run registers and links, from three files.** Steps 4 and 5 are mechanical once the target spec and the link table exist. The part that authors a workflow writes that file's link-table rows as it authors it, and completes in the spec entry the rebuild binding of each selector variable it binds. The **Object Repository registry**, one per project because each project holds its own store, maps each spec key to its `referenceId` and a fingerprint of the definition last pushed (selector, anchor, scope, activity type, name, description); only the tool writes it.
|
|
46
46
|
- **Who writes the tool:** the first part that registers targets writes it once, in the working folder and outside every project, taking the project as a parameter, and the brief names it. Every later part, in any project, appends spec entries and link rows and runs that tool, never a copy of its own.
|
|
@@ -62,46 +62,9 @@ Duplicate elements (same screen, same selector, different name or suffix) come f
|
|
|
62
62
|
1. **An element is a node on a screen.** Its identity key is the tuple (screen, strict selector, fuzzy selector, anchors, selector variables), normalised (attribute order, quoting, whitespace). The same control clicked in one step and typed into in another is **one** element: the metadata `ActivityType` only tunes the generated selector, it does not fork the element — give it the acting type (Type Into over Click over None) and let every activity use it. Two definitions with one key and different names are one duplicate; reuse the first.
|
|
63
63
|
2. **Screens are the application's states, not the source's windows.** Each window of the application has one scope selector, authored once ([selector-translation-guide.md](selector-translation-guide.md) rule 9). A source window is provenance: several source windows that share the scope and the controls collapse into one screen, and controls shared by every page (chrome, search, command bar, dialogs) live on one shared screen so they exist once. Screen names are unique within the application. Name screens after what the user sees (page or dialog), never after source window ids. An Object Repository application is one executable or one browser host: a runtime's own prompts (a security warning, an update prompt) are screens of the application that owns their process, not of the business application they interrupt, and a launcher and a desktop client that are different executables are two applications. The application card follows the same unit, one per application instance as the UIA package's authoring guide sets it: a `ByInstance` card attaches every window of the instance, so a dialog or a second window of the process is reached inside that card and a source window is never a reason for a card. A card per window of the same process also runs, and is no defect. A window the run opens — a form, a dialog, a list that a click opens — that the source acted in without switching to it has no recorded title: offline, its screen's window selector is the application's scope with the name the genome's substep gives the window as its `title`, so the screen keeps a key of its own (rule 4), and a row of the live checks owes the captured selector that replaces it (§ Verifying targets).
|
|
64
64
|
3. **Recurring widget roles are one parametrised element.** A prompt's acting leaf, its popup entry and its value display recur for every field with a different label and value; they are **one element each** with selector variables (`{{FieldLabel}}`, `{{Value}}`), not one element per field. Selector variables bind by name to variables or arguments in scope, so the pattern is built **once as a helper workflow** (`PickPromptValue(FieldLabel, Value)`, `ChooseListOption(FieldLabel, Value)`, `EnterSegmentedDate(FieldLabel, Date)`) that owns the variable names, the retry branch and the verify; every step invokes the helper. A source that used the pattern 150 times yields 150 invocations and three elements, not 450 elements and 150 copies of the sequence. A single activity on such an element is no pattern: it stays at its step, with a variable of the selector variable's name in that workflow, assigned where its value changes. Picks on different lists, each its own element, are built at each call site too, never in one helper that picks the list by a key: the key hides which list a step uses, and a wrong key fails only at run time.
|
|
65
|
-
4. **Find before create.** The owning skill's capture flow looks a screen up by its window selector and an element up by name and description before registering; a migration does the same mechanically: read the existing store (the OR CLI's screen and element listings, or the `.objects` tree) into a map keyed by identity, reuse the `referenceId` of every hit in the link, and create only new keys. A name collision with a different key gets a qualifier from the screen or role (`OK` / `OK (dialog)`); a key collision with a different name is the duplicate and is not created. One registration process at a time — two concurrent runs each create the same keys. After registration, count distinct keys against elements and delete every element whose `referenceId` no workflow references. Write back to an existing element with the OR CLI's **replace** command (keeps the `referenceId`, so workflow links survive); its **create** command on an existing element adds a duplicate and orphans the link. Command syntax: the owning skill's Object Repository guidance, routed from the UIA package guide.
|
|
65
|
+
4. **Find before create.** The owning skill's capture flow looks a screen up by its window selector and an element up by name and description before registering; a migration does the same mechanically: read the existing store (the OR CLI's screen and element listings, or the `.objects` tree) into a map keyed by identity, reuse the `referenceId` of every hit in the link, and create only new keys. A name collision with a different key gets a qualifier from the screen or role (`OK` / `OK (dialog)`); a key collision with a different name is the duplicate and is not created. One registration process at a time — two concurrent runs each create the same keys. After registration, count distinct keys against elements and delete every element whose `referenceId` no workflow references. Write back to an existing element with the OR CLI's **replace** command (keeps the `referenceId`, so workflow links survive); its **create** command on an existing element adds a duplicate and orphans the link. A linked activity runs its element's stored definition, which replaces the workflow's inline copy when the workflow loads, so a selector edited in the workflow changes nothing while the reference resolves; an unresolved reference runs the inline copy. Command syntax: the owning skill's Object Repository guidance, routed from the UIA package guide.
|
|
66
66
|
5. **Report the collapse.** The migration report states elements created, reused and parametrised, and lists the helpers with the steps that invoke them; a screen count near the source's window count, or an element count near its control count, signals that steps 1–3 were skipped.
|
|
67
67
|
|
|
68
|
-
## Composite interactions — one source step, several UiPath activities
|
|
69
|
-
|
|
70
|
-
Test frameworks package multi-step interactions into one parameterised step: type-ahead pick, menu path, option list, find-row-then-act, keystrokes to the focused element. The genome substep carries the interaction contract ([genome-format-guide.md § Workflow](genome-format-guide.md)); the source guide's composite-actions table names the source actions and dictates wording; this section fixes how execution builds them. **Rule: build the pattern, never the nearest single activity.** Each naive mapping below validates, runs, and does the wrong thing: type-ahead as "type, then click the first popup entry", a custom list as a native select, a two-level menu as one click. This is the most expensive class of migration defect, because none of it shows up as an error — the project builds, the run completes, and the automation exercised nothing.
|
|
71
|
-
|
|
72
|
-
**Derived elements.** The catalog holds only the anchor control (input, menu root, table); the popup entries, menu items, option rows and matched cells the source clicked were never learned and must be derived. A derived element's selector is its tag and the matched text, with its semantic description — never an identifier the source did not record for it ([selector-translation-guide.md](selector-translation-guide.md) rule 13). Which attribute carries the matched text is the three-case test of [selector-translation-web-guide.md § Rule 5](selector-translation-web-guide.md) (form-ish tag → synthesised `aaname`; text leaf → `aaname` + `isleaf='1'`; container → `visibleinnertext` matched exactly); the tag is the one the node's role in the pattern implies, never a guessed `DIV` — a derived element has no recorded tag to draw on, so it is the one case where the role's implied tag is the best evidence there is (rule 14). Where the catalog does not say which node is which, the target is tag-only with the semantic description and owes a live pass (rule 13).
|
|
73
|
-
|
|
74
|
-
Before building any UI group of an extracted genome, read the per-control `actions` in the derived target catalog and the substep wording, classify every UI step against this table, and read the owning skill's control-interaction guidance for the classified controls (option lists, date inputs, tables) as it mandates. Each pattern of several activities occurring more than once is built as one helper workflow parametrised by field label and value (§ Object Repository identity rule 3); the steps invoke it. A row that builds a single activity — keystrokes, a coordinate click, set state, set versus type — is that activity at each call site, with its keys or state chosen at build time. Node roles named below (wrapper, label, form item, acting leaf, value display, popup list, popup entry) and their concrete shapes: [selector-translation-guide.md](selector-translation-guide.md) rule 16 and, on the web, [selector-translation-web-guide.md § Rule 16](selector-translation-web-guide.md).
|
|
75
|
-
|
|
76
|
-
| Pattern | Naive mapping that fails | Build | Derived elements |
|
|
77
|
-
|---|---|---|---|
|
|
78
|
-
| **Type-ahead pick** — type text, suggestion list appears, pick the entry matching a caption rule, optional confirm key | type + click "first item" (positional container element); type + Enter without checking what was accepted; **verifying on the option's text leaf**, which also exists in the still-open list and passes before anything was accepted | 1. Type the value into the field's *acting leaf* — the labelled input, never the widget wrapper — with key-event input (never set-value: the list opens only on key events). 2. Confirm as the source did (Enter) or pick: the entry is the popup's text leaf, scoped to the *popup labelled with the field*, caption as a selector variable under the source's criteria (contains / equals / nth). 3. Verify on the acting activity's `VerifyOptions` (`Appears`) against the field's **value display scoped to the field** ([ui-verification-guide.md](ui-verification-guide.md)) — the source's own verification becomes this acceptance check. The typed text is gone once the prompt accepts, so Type Into's target-less Auto/Expected-text verify does not apply to a prompt. 4. When the source itself had a fallback (Enter failed → click the entry), keep it as a Check with the click in the not-found branch; the verify still belongs on the acting activities | popup entry (scoped to the labelled popup) and value display (scoped to the field) — one pair per widget type, parametrised by field label and value, or one pair per field; low confidence until seen live, `derived from <anchor control>` |
|
|
79
|
-
| **Option list** — choose an item by caption rule from a list, dropdown or combo | `SelectItem` on a custom (div/li/span) widget; positional `idx` on the item; verifying on the option text | Whether the control takes Select Item, and its `items`, come from the application notes' structures ([live-application-guide.md § Exploring](live-application-guide.md)), where exploration probed it as the owning skill's select-item guidance prescribes: read its `items`, and tried a select where `items` was empty. If the control takes Select Item, use `SelectItem` with the source's caption under the source's criterion: the caption for Is Equal To, `*value*` for Contains, `value*` for Starts With, where that guidance says the control takes a pattern. If the source ignores case, select the entry of `items` that matches; where `items` stays empty, select the caption as the application spells it and record the deviation. If the control does not take Select Item (custom lists expose `selecteditem` but not `items`), click the combobox open (the acting leaf, inside the form item pinned by its label), click the option under the *list labelled with the field*, and verify the field's displayed selection, scoped to the field. For a list the notes do not settle, a source step that selects from a combo or list box is `SelectItem` at its call site under the same rules, and a source that clicked the list open and then an entry keeps those two clicks; each such list is a row of the live checks, and a list the healing pass finds not taking Select Item gets the click-to-open form, noted per list. A numeric index in the source is positional: keep it as an index on the option element and flag it | option entry (scoped to the labelled list), displayed selection; medium when the source caption is literal, low when variable-bound |
|
|
80
|
-
| **Segmented date entry** — source clicked a date field off-centre (its first segment) and typed the whole date | Type Into on the widget wrapper with the source's click offset; a bare-tag Check afterwards | Target the first segment by the field's label (only the first segment carries it), or scope on the form item (§ Element Scope) and type into each segment with the segment's expected text as the verify. Follow the owning skill's date-input guidance for the rendered format, `EmptyFieldMode` None and auto-advance. Verify against the widget's rendered value (a hidden "current value is …" leaf, or the segments) — never a bare `tag='DIV'` | month/day/year segments under the field's form item; medium |
|
|
81
|
-
| **Menu / tree path** — `A\|B\|C` from a menu root, levels revealed by hover or click | one click on the root, or on the leaf caption anywhere on the page | One click (or hover, as the application notes record) per level, each re-resolving its target after the previous level rendered; levels are separate activities, never one target with the leaf text. Each revealed level is usually a *new popup of the same type*, and a label can repeat across groups of one level, so a level entry is scoped to its own popup (the newest one) or to its group header, never matched page-wide by text. The last level gets a verify (the page or dialog the leaf opens). A desktop tree or tab control that takes `SelectItem` (settled as for an option list) selects a node by its caption, not by its path: a level whose caption is unique in the control is that select, any other stays a click. Menu roots that appear in several source windows reuse one element | one element per level (text leaf under its own popup); medium for the root (mapped), low for levels |
|
|
82
|
-
| **Table row by content** — find the row whose cell(s) match, then click, read, type or verify in that row | store a row number and index into the table with it; assume the grid's markup without looking | Never carry a row integer. Choose the cell shape per [selector-translation-guide.md](selector-translation-guide.md) rule 8 from the one cell's attribute listing the application notes record for the grid (table attributes → row-anchored `TD` by `rowName`/`colName`; absent → row container pinned by exact text, cell as its descendant; key text repeated in its column → pin the row by the discriminating value); a grid the notes do not cover takes rule 8's offline shape and a row of the live checks. Alternatively extract the table, filter in code, then act through the pinned row. `Last` = last matching row. Multi-criteria finds and-combine the cell matches. Source "popup rendered as table" (suggestion popups) is an option pick, not a table op | matched cell (anchor), target cell in the same row; medium |
|
|
83
|
-
| **Table cell** — act on the cell at (row rule, column caption or number) | absolute `tableRow`/`tableCol` | Column by header caption (`colName='{caption}*'` where the application notes record it exposed; otherwise a row of the live checks, and the healing pass, which can anchor the cell to its header, decides), row by content rule from the preceding find; a literal row number in the source is positional and stays flagged; double-click and follow-up keystroke preserved. A prompt inside a cell (typed value + Enter) is a type-ahead pick inside the cell | header cell, target cell; medium |
|
|
84
|
-
| **Read cell / row count / control text** | Get Text on the table element | Get Text or Get Attribute on the row-anchored cell after previewing what it extracts (owning skill's get-text guidance); row count via table extraction or a rows attribute, a row of the live checks until the notes or the healing pass confirm it | as table cell |
|
|
85
|
-
| **Collect matching elements** — the source gathers every element a locator matches (a find-all) and reads or acts on them by position | Find Elements with no target and the source's locator as its filter | Find Elements on the container the elements sit in (list, table, panel), its own element, with the children filtered by what they share, as the activity doc's targeting and filter rules prescribe. A missing container then fails the step, so an empty result means nothing to find. Elements the source reads in groups by position keep that arithmetic. Where an empty result is a valid business answer, a filter that matches nothing passes every run: a run row of the live checks tests the step on a record that has elements (§ Verifying targets) | container and the child filter; low until seen live |
|
|
86
|
-
| **Keystrokes** — keys sent to the window or the focused element | Keyboard Shortcuts to the page body; a Delay; a key after a focus move aimed at the element focus left | The first key targets the preceding step's element (Type Into with special-key tokens after typing; Keyboard Shortcuts otherwise). After a key that moves focus (Tab, a menu arrow, a key that opens a window), the next key targets the element focus moved to when the source names it, and otherwise has no target: Keyboard Shortcuts and Type Into without a target act on the element that has focus. One activity per chord the source sent; a source's bring-to-front is `ActivateBefore`; a click on the same element is the fallback when the source had one. Page-scrolling keys are dropped (UiPath scrolls the target into view); a browser refresh is the browser navigation activity; only keys the source sent | none; the preceding step's element, or no target after a focus move |
|
|
87
|
-
| **Coordinate click** — click at pointer position or screen x/y | Click with an offset on the page | Identify the intended element from surrounding steps (dismiss a popup, focus the page, an unmapped button) and target it; semantic description; flag `*[Inferred]*` in the report | derived element; low |
|
|
88
|
-
| **Set state** — ensure checkbox/radio state | Click | Check/Uncheck with the state (idempotent); radio click plus verify selected | none |
|
|
89
|
-
| **Input-method hint** — source switched to key-event input for the fields that follow | ignored | Carry into the affected activities' input mode (key events / hardware, per the owning skill's input-methods guidance); the type-ahead pattern needs it | none |
|
|
90
|
-
| **Set versus type** — the source either set a field's value (its previous content replaced, no key events) or typed key by key after the current content (optionally with a delay between keys) | one Type Into default for both | Setting → the field is emptied first and the value entered; key events only where the page reacts to keys (a type-ahead, an input mask). Typing → key events, the field **not** emptied, the source's delay between keys kept. The source guide's step vocabulary says which source call is which | none |
|
|
91
|
-
|
|
92
|
-
Every derived element is named `derived from <anchor control> — <pattern>` in its description, labelled `INFERRED (low)` unless the table says medium, and listed first in the live checks (§ Verifying targets). The description names which attributes came from the source control; if it has to say an attribute was "taken from" another control, that attribute does not belong in the selector. Source match criteria carry over unchanged ([selector-translation-guide.md](selector-translation-guide.md) rule 2); confidence tiers and targeting method (strict selectors, a caption reached by a `<nav>` path, anchors only from a live capture, a semantic step only where the user asks for one) are rule 12 there, the semantic description rule 11 — a derived element with no control of its own stays **low**. Every type-ahead and menu-path step is a run row of the live checks, exercised by the first live run; a step that "passes" by clicking the wrong entry is the failure mode this section prevents, so the verify sub-step of each pattern is mandatory, not optional.
|
|
93
|
-
|
|
94
|
-
**Actions without a control** map to target-less activities, not to invented elements. Each keeps its window-level scope from the catalog.
|
|
95
|
-
|
|
96
|
-
- **Open a browser at a URL:** the application card opens it, at the URL on its Object Repository screen. Not Start Process: the card starts the browser with flags that keep a minimised or covered window taking input and that suppress the first-run, search-engine and profile-picker prompts and the debugger banner.
|
|
97
|
-
- **Start a desktop application:** the application card opens it, with the file path, arguments and working directory on its screen. A path the source does not record stays empty, a row of the live checks; until it is set, the card only attaches.
|
|
98
|
-
- **Force-close a process:** Kill Process.
|
|
99
|
-
- **Maximise, activate or close a window:** Window Operations inside a card attached to a window-level screen (a screen with no elements).
|
|
100
|
-
- **Desktop screenshot on error:** Take Screenshot with no target.
|
|
101
|
-
- **"The dialog appears within N seconds":** the first activity that targets the dialog, with N as its timeout. Add a Check App State on the dialog's captured button or on the window-level screen only where the source branched on the dialog or no later step acts on it ([ui-verification-guide.md](ui-verification-guide.md)).
|
|
102
|
-
|
|
103
|
-
The owning skill's CLI makes a first definition only from a live node; the seeds and the seed-and-mutate procedure the offline migration builds every definition with: [offline-definition-workarounds-guide.md](offline-definition-workarounds-guide.md).
|
|
104
|
-
|
|
105
68
|
## Element Scope — attach once, keep the children local
|
|
106
69
|
|
|
107
70
|
Element Scope (`NElementScope`, Version V5, body an `ActivityAction<Object>` named `ContextTarget`; shape from the owning skill's `activities get-default-xaml`) attaches to one element; every activity inside resolves its target relative to it. Its target is a `TargetAnchorable` like any other; children's targets carry **no** scope selector of their own. This is the activity-level form of [selector-translation-guide.md](selector-translation-guide.md) rule 14 step 2, and the right shape exactly when the acting leaves have no name of their own:
|
|
@@ -127,32 +90,32 @@ A migration's targets are generated from rules, so a wrong rule is wrong hundred
|
|
|
127
90
|
| A **comparable instance** is reachable — another tenant, environment or version of the same product | the *shape* only: which node the driver acts on, which attribute carries the label and which the value, the role identifiers a component framework emits, whether a grid is real table markup, whether a control exposes `items`. These are properties of the product, so they transfer; the target instance's own captions, data, page layout and version drift do not | `shape-verified`, and the report says which instance settled it |
|
|
128
91
|
| Nothing is reachable | shape only as far as a definition can be read back on its own (§ below) | `offline-unverified` |
|
|
129
92
|
|
|
130
|
-
A reachable application — the target or a comparable instance — is a **windfall, not a step**: the build works with it when the Live application answer names one ([
|
|
93
|
+
A reachable application — the target or a comparable instance — is a **windfall, not a step**: the build works with it when the Live application answer names one ([configuration-questions-guide.md](configuration-questions-guide.md)), and never makes the run depend on it. A shape confirmed on a comparable instance is still owed the healing pass on the real application; what it buys is that the *translation* is no longer the suspect when a target fails there. A UI migration is not reported done before every element carries its label — `offline-unverified` is a verdict, an unstated one is not.
|
|
131
94
|
|
|
132
|
-
**Live checks — what only the live application can settle.** Every UI migration writes them, reachable application or not: one file per project with UI targets, `live-checks/<project-slug>.md` in the hand-off folder ([
|
|
95
|
+
**Live checks — what only the live application can settle.** Every UI migration writes them, reachable application or not: one file per project with UI targets, `live-checks/<project-slug>.md` in the hand-off folder ([completion-report-guide.md](completion-report-guide.md)). They are where the live healing pass starts, whoever runs it — the build where the application is reachable, the engineer otherwise. A check a read-back of the definitions or the store settles belongs to the offline migration and gets no row. The project's owner writes a row in the turn it writes the element, step or screen that owes it, and changes the row's state in the turn a check settles it. Rows are grouped by screen, in the order the steps reach the screens, so one pass walks the application once. Columns `Screen | Element or step | Check | Why | Needs | State`: what to confirm; what made it owed (`offline-unverified`, derived, parametrised, positional, tag-only, a title or launch setting the source did not record, a list not probed, an input method not proven, a result only a run shows); `read-only`, or `run` where the step must run and change data; `open`, `verified <date>`, `fixed: <what changed>` or `failed: <why>`. Rows every UI migration owes:
|
|
133
96
|
|
|
134
97
|
- every element not confirmed live, derived elements first, and a parametrised element at two values of each selector variable;
|
|
135
|
-
- every screen whose window selector or launch setting the source did not record (§ Object Repository identity rule 2;
|
|
136
|
-
- every option list not probed (
|
|
98
|
+
- every screen whose window selector or launch setting the source did not record (§ Object Repository identity rule 2; [composite-interactions-guide.md](composite-interactions-guide.md), actions without a control);
|
|
99
|
+
- every option list not probed ([composite-interactions-guide.md](composite-interactions-guide.md), option list);
|
|
137
100
|
- every type-ahead, menu-path and collect-matching-elements step, as `run` rows — a collection on a record that has elements;
|
|
138
101
|
- the input method of every application the build did not explore ([live-application-guide.md § Exploring](live-application-guide.md)).
|
|
139
102
|
|
|
140
103
|
The file opens with a short paragraph for the engineer, in the voice of the open-items files ([open-items-guide.md](open-items-guide.md) rule 1): what the rows are, that the read-only rows come first, that the `run` rows run only on a test instance or on data that can be restored, and how a row is closed.
|
|
141
104
|
|
|
142
|
-
The offline migration reads its definitions back against [selector-
|
|
105
|
+
The offline migration reads its definitions back against [selector-matching-guide.md § Checking a definition](selector-matching-guide.md) and the offline guide's own checks, fixes what fails, and labels every element `offline-unverified` until a live check confirms it. A structural pass proves shape, not that anything matches the screen.
|
|
143
106
|
|
|
144
107
|
## Anti-patterns
|
|
145
108
|
|
|
146
109
|
1. Shipping placeholder targets when the Source Map names a reachable export (rule 1).
|
|
147
110
|
2. Hand-typing selectors into XAML or definition files; the OR CLI and the derivation rules are the only path (rule 3).
|
|
148
111
|
3. Declaring a target "done" without its confidence label and its live-checks rows (rule 2), or reporting migrated definitions done with an element that carries no label (§ Verifying targets).
|
|
149
|
-
4. Mapping a composite source step to the nearest single activity — type-ahead as type + click-first-entry, a list that offers no `items` (a div, li or span popup) as `SelectItem`, menu path as one click, found row as a stored row number — or building a type-ahead or option pick without the verify sub-step; a wrong entry accepted silently is the costliest migration failure (
|
|
150
|
-
5. Sending keystrokes to the page body, or after a key that moves focus to the element focus left; keeping the source's page-scrolling keys (
|
|
112
|
+
4. Mapping a composite source step to the nearest single activity — type-ahead as type + click-first-entry, a list that offers no `items` (a div, li or span popup) as `SelectItem`, menu path as one click, found row as a stored row number — or building a type-ahead or option pick without the verify sub-step; a wrong entry accepted silently is the costliest migration failure ([composite-interactions-guide.md](composite-interactions-guide.md)).
|
|
113
|
+
5. Sending keystrokes to the page body, or after a key that moves focus to the element focus left; keeping the source's page-scrolling keys ([composite-interactions-guide.md](composite-interactions-guide.md), keystrokes row).
|
|
151
114
|
6. Typing a whole date into a segmented widget's wrapper with the source's click offset, or scoping around a leaf its label already names (§ Element Scope).
|
|
152
115
|
7. Registering one element per source step, source window or activity type, one screen per source window, or one element per field value — and copying a composite pattern's activities into every step instead of one helper workflow (§ Object Repository identity).
|
|
153
116
|
8. Rewriting a linked workflow wholesale instead of editing it in place, or treating a link command's success as proof that the links landed (§ UI targets); re-registering a changed definition with the create command and assuming the store now holds it (§ Object Repository identity rule 4).
|
|
154
117
|
9. Treating a reachable application as a precondition — a run finishes with `offline-unverified` verdicts — or reporting a shape confirmed on a comparable instance as if the target application had confirmed it (§ Verifying targets).
|
|
155
|
-
10. Selector-shape mistakes — borrowed identifier on a derived element, fuzzy selector with no anchor, an anchor authored without a live capture, a positional caption written onto the control, inherited inner text matched on a broad tag, tightened or loosened source criteria, widget wrapper and leaf flattened into one tag, scope derived per screen, grid markup assumed from the application's name — are prohibited where the rule lives: [selector-translation-guide.md](selector-translation-guide.md) rules 2, 5, 6, 8, 9, 12, 13, 14. Copying passwords or dropping account identity: [genome-
|
|
118
|
+
10. Selector-shape mistakes — borrowed identifier on a derived element, fuzzy selector with no anchor, an anchor authored without a live capture, a positional caption written onto the control, inherited inner text matched on a broad tag, tightened or loosened source criteria, widget wrapper and leaf flattened into one tag, scope derived per screen, grid markup assumed from the application's name — are prohibited where the rule lives: [selector-translation-guide.md](selector-translation-guide.md) rules 2, 5, 6, 8, 9, 12, 13, 14. Copying passwords or dropping account identity: [genome-reading-guide.md § Platform Dependencies](genome-reading-guide.md). Letting a seed definition's fields survive into offline-built elements: [offline-definition-workarounds-guide.md](offline-definition-workarounds-guide.md).
|
|
156
119
|
11. Registering and linking from what each part retypes and scripts for itself: a spec of its own targets, a definition generator, a link script, ids resolved from other parts' scratch folders. Linking file by file with a validate before and after each one. The run has one target spec per component, one registry per project, one link table and one target tool (§ Target spec, § UI targets).
|
|
157
|
-
12. Starting a browser or a desktop application with Start Process and attaching an application card to it (
|
|
120
|
+
12. Starting a browser or a desktop application with Start Process and attaching an application card to it ([composite-interactions-guide.md](composite-interactions-guide.md), actions without a control).
|
|
158
121
|
13. Driving the application while the migration is built — a capture per element, a probe run, a sign-in to resolve a definition — instead of leaving what only the live application settles to the live checks (rule 4).
|
|
@@ -4,7 +4,7 @@ A UI activity waits for its target up to its timeout and fails with "element not
|
|
|
4
4
|
|
|
5
5
|
## Verification — a property of the activity, not another activity
|
|
6
6
|
|
|
7
|
-
Every composite pattern ([
|
|
7
|
+
Every composite pattern ([composite-interactions-guide.md](composite-interactions-guide.md)) owes a verify sub-step. **A verify sub-step is normally not a separate activity.** UI Automation activities carry post-action verification natively (`VerifyOptions` on Click, Hover, Keyboard Shortcuts and Type Into), and that is where a migration's verification belongs. Reaching for a Check Element / Check App State activity instead is the single largest source of activity-count inflation in a migrated project, and each one drags in a target that must be guessed, reviewed and healed like any other. A migrated project whose Check-activity count approaches its Click count, or that has hundreds of Check activities and no `VerifyOptions`, has this defect everywhere, not once.
|
|
8
8
|
|
|
9
9
|
Decide each check the genome states with one question: **does the outcome change what the automation does next?**
|
|
10
10
|
|
|
@@ -27,6 +27,14 @@ Mapping a source's own verification steps (a source expresses "the value was acc
|
|
|
27
27
|
| the step is a checkpoint with no follow-up behaviour | still `VerifyOptions` — a failed verify raises, which is the checkpoint |
|
|
28
28
|
| an outcome after an activity without `VerifyOptions` (Select Item, Check/Uncheck, a navigation, a process start) | the check the UIA package guide's *Execution Verification Policy* prescribes there, at the source's budget for that check |
|
|
29
29
|
| the source branches on the result (retry, alternate path, optional dialog) | a Check activity — this is control flow, not verification |
|
|
30
|
+
| the source branches on a control going (a dialog closing, a row deleted) | a Check App State in its disappear mode at the source's budget: one activity, not a loop of short checks |
|
|
31
|
+
| the source waits until one of several conditions holds, one branch each | a Pick of Check App States, the winning condition's work after it (below) |
|
|
32
|
+
|
|
33
|
+
**A wait on several conditions** is a Pick, one branch per condition in the source's order, each trigger a Check App State at the source's budget for the whole wait. A Pick takes the first trigger to finish, not the first listed, so when several conditions already hold its winner varies; a source that checks its conditions in order takes the first listed, an outcome a race allows too. The branches therefore only record which condition ended the wait, and that condition's work runs once, after the Pick:
|
|
34
|
+
|
|
35
|
+
1. A branch records its condition when its trigger found the condition met, and none when the trigger timed out first.
|
|
36
|
+
2. The conditions listed before the recorded one are checked in order, each with a Check App State at timeout 0; the first that holds is recorded instead.
|
|
37
|
+
3. The recorded condition's work runs; none recorded is the source's time-out path.
|
|
30
38
|
|
|
31
39
|
**The genome's checkpoints and step post-conditions are the request for verification.** The UIA package guide tells an author not to add `VerifyOptions` unless the user asks; in a migration the genome is that ask. A test-suite source asks through the Source Map's Checkpoints row: every checkpoint becomes an assertion of its test case ([test-execution-guide.md § Result parity](test-execution-guide.md) rule 2). A source without that row (an RPA bot) asks through its steps: a post-condition a Workflow substep states on an action (the field must read back the typed value, the page must appear) is verified on that action per the table above, never with a read activity and a comparison beside it. A secure-text field's check is target-less Auto — Expected text would put the secret in plain text. Nothing else gets one.
|
|
32
40
|
|
|
@@ -10,7 +10,7 @@ Build UiPath Case Management definitions from `sdd.md`. Resolve tenant resources
|
|
|
10
10
|
|
|
11
11
|
> **Authoring invariant:** Never use mutating `uip maestro case` commands (`cases|stages|tasks|*-conditions ... add|update|remove`, including `tasks add-connector`) or explore them with `--help`. Use the CLI only for scaffolding, metadata reads, validation/debug, runtime operations, and solution sync/upload. Consult [case-commands.md](references/case-commands.md) only when exact syntax is needed. CLI availability or a final `validate` requirement never overrides this rule.
|
|
12
12
|
|
|
13
|
-
When `sdd.md` is absent, case design belongs exclusively to **`uipath-planner`**, which runs its Case
|
|
13
|
+
When `sdd.md` is absent, case design belongs exclusively to **`uipath-planner`**, which runs its `design` verb (Case Management) in this conversation. This skill never designs independently. It uses best-assumption design, Listen → Sketch → full design-time tenant resolution, a mandatory other-path sweep, and one decision-first eight-section Case Review. Its Build answer is consent; it writes template-conformant `sdd.md`, then this skill continues immediately with
|
|
14
14
|
`uip solution init`, Phase 1,
|
|
15
15
|
and later phases. The same handoff applies to `sdd.draft.md` finalization. Never overwrite an existing `sdd.md`.
|
|
16
16
|
|
|
@@ -30,13 +30,13 @@ Do not use for `.xaml` → `uipath-rpa`, `.flow` → `uipath-maestro-flow`, or s
|
|
|
30
30
|
|
|
31
31
|
## Critical Rules
|
|
32
32
|
|
|
33
|
-
1. **Design handoff and SDD authority.** If `sdd.md` is absent, immediately invoke `uipath-planner`’s Case
|
|
33
|
+
1. **Design handoff and SDD authority.** If `sdd.md` is absent, immediately invoke `uipath-planner`’s `design` verb (Case Management) in this conversation, before reading references or running tenant commands. Do not improvise interviews, design subagents, generic Build Plan approvals, or design-only behavior here. The planner’s single Case Review has exactly these sections: Case Snapshot; Primary Journey; Other Paths Considered; SLA and Escalations; Rules and Outcomes; Resources and Integrations with design-time resolutions; Decisions I Made; Review Flags. It names every stage/task, type, activation/grouping, required status, routing/outcome, and SLA context; `sdd.md` separately contains the complete data contract, variables, and task inputs/outputs. The Build options incorporate Rule 12, and the Build answer is the sole consent. Corrections re-show only changed review sections. Before approval, every `selected-tasks-completed` selector must resolve to a non-adhoc sibling in the same stage. The planner writes `sdd.md` early, then this skill runs
|
|
34
34
|
`uip solution init <SolutionName>` and Phase 1
|
|
35
|
-
without another prompt unless explicitly requested. A design-only request stops after `sdd.md` per Rule 3's design-only exception. If `sdd.draft.md` is to be finalized, use
|
|
35
|
+
without another prompt unless explicitly requested. A design-only request stops after `sdd.md` per Rule 3's design-only exception. If `sdd.draft.md` is to be finalized, use `uipath-planner`’s `design` draft finalization with target basename `sdd.md`. Never overwrite `sdd.md`.
|
|
36
36
|
2. **SDD is the sole post-design input, across sessions.** Trust user-provided or previously written `sdd.md`; do not validate, gap-fill, or silently infer it. In the same conversation as design approval, use the in-memory model that wrote it rather than rereading mid-phase — except at Rule 8's Phase 2 and Phase 3 entry checkpoints, which always re-read because context may have compacted. Use AskUserQuestion for build-phase ambiguity. Before reading an SDD not watched being written, Read its first 40 lines as the receipt: the `<!-- planner-handoff:v1 -->` marker and a `Template validation` header value of `passed` must both be present. Anything else goes back through the planner's template conformance checklist.
|
|
37
37
|
3. **Phase 1 registry gate.**
|
|
38
38
|
Run `uip login status --output json`, then
|
|
39
|
-
`uip maestro case registry pull`, before cache inspection, carryover, resolution, or Phase 1 writes. Pull at most once per session, unless the user selects `Force pull and re-resolve` at Rule 18's empty-lookup gate, or `sdd resolve` reports a stale cache (below). If the planner
|
|
39
|
+
`uip maestro case registry pull`, before cache inspection, carryover, resolution, or Phase 1 writes. Pull at most once per session, unless the user selects `Force pull and re-resolve` at Rule 18's empty-lookup gate, or `sdd resolve` reports a stale cache (below). If the planner’s case design ran in this session, its pull succeeded, and it wrote the SDD, reuse the cache. With the planner’s in-context resolution outcomes, use verify-only planning: persist them verbatim to `tasks/registry-resolved.json`, spot-check cache entries, execute gate decisions, and re-resolve only stale/missing entries. Otherwise run the full gate. Login/pull failure stops Phase 1. Outside that fast path, resolve with `uip maestro case sdd resolve "<SDD_PATH>" --out tasks/registry-resolved.json --output json`: it picks each task type's index, runs the exact-name search and the folder narrowing, and writes the Rule 10 ledger for every task in one call. **When its `Data.Warnings` reports a stale cache** (`Data.Scope.cache.stale: true`), run `uip maestro case registry pull --force --output json` once, without asking, then run `sdd resolve` again. A plain pull reuses any cache under 24 hours old, so only `--force` refreshes it, and the warning is the evidence of staleness the `--force` confirmation otherwise asks for. If it is still stale after the forced pull, report it and continue. Never hand-author that ledger — resolve writes it in well under a second, where hand-writing it has measured ~50 seconds and recorded `selected: null` for resources the same run then bound. Its `Data.Unresolved[]` is the only work left, and only that work is done by hand: an `absent` entry runs registry-discovery.md's cross-type fallback and in-solution sibling check before Rule 18's gate; an `ambiguous` entry — several exact-name matches the SDD's folder did not narrow — is never settled by picking one: it goes to Rule 18's gate like an `absent` one, and without an answer it stays `<UNRESOLVED>` and becomes a placeholder. For those manual lookups, `uip maestro case registry search "<Name>" --type <type> --output json` and `~/.uip/case-resources/<type>-index.json` return the same records, **not the same shape**: the index file is a flat list of camelCase objects (`entityKey`, `folders`); `registry search` wraps each hit as `Data.Resources[] = {ResourceType, Resource: {…}}` with PascalCase keys (`EntityKey`, `Folders`). If the CLI reports `sdd resolve` as an unknown command (`ErrorCode: "invalid_argument"`, exit 3), resolve every task by hand per registry-discovery.md and say so in one line. Before a successful pull, missing cache files are failed refresh preconditions, never zero matches; only after success may empty exact-name matches or absent indexes enter empty-lookup handling. Trust the SDD; the pull refreshes discovery only. The planner owns design-time resolution, lazily starting login/pull when tenant-bound work first appears, resolving identities with one batched Case Review gate, and recording SDD cells plus its resolution ledger. No schema discovery occurs there.
|
|
40
40
|
|
|
41
41
|
**Design-only exception:** when explicitly stopping at `sdd.md` or `sdd.draft.md` without `caseplan.case`, solution, or build, do not run tenant registry, connection, schema, or user-discovery commands. Preserve intended names, leave identities `<UNRESOLVED>`, and report deferred wiring in the reply — never in a substitute plan file. This exception does not apply when the user requests resource/identity resolution, registry refresh, stale-audit replacement, `tasks/registry-resolved.json`, or `tasks/recipients-resolved.json`; then run the normal gate, resolve identities, write the ledger, and stop before Phase 2.
|
|
42
42
|
4. **Convert before authoring.** At the top of Phase 2, after the Rule 3 registry gate, emit the plan with `uip maestro case sdd convert "<SDD_PATH>" --resolved tasks/registry-resolved.json --out "<SolutionName>/<ProjectName>/<PLAN_FILE>" --output json`, where `<PLAN_FILE>` is the plan file `case init` seeded (Rule 14: `caseplan.case`, or `caseplan.json` from a CLI that predates the `.case` name). **The plan lives two levels down** — inside the project directory Rule 24 creates, never at the solution root and never beside `sdd.md`. Writing it shallow either leaves nothing where every grader, `validate`, `bindings sync` and `solution pack` look, or leaves two `caseplan.case` files and an ambiguous build. The SDD determines most of `caseplan.case`; deriving it once beats re-deriving it element by element, and hand-authoring what the parser already emits is the expensive path and the one that drifts from the document. Its `Data.Unresolved[]` is the work list — `resource-binding` closes at Phase 1 bindings, `output-type` at `uip maestro case splice --described` (Step 9.8), `connector-context` at Check 12 — and it is a floor, never a ceiling: it names what convert knew it skipped, never what it emitted wrongly. Known gap it does not name: every `jsonSchema` variable arrives with `body: null`; fill `body` and `_jsonSchema` from the SDD row per [`global-vars/impl-json.md` § jsonSchema type](references/plugins/variables/global-vars/impl-json.md#jsonschema-type). **`Data.Unresolved[]` is the complete list of what is left to do.** Read the emitted plan once, close those entries, and stop; do not re-derive, re-verify, or re-read references for anything convert already emitted. A shape that arrived in the converted plan is settled — reopening it costs more than the whole conversion saved. **Convert before you author any element.** Scaffold the project first per Rule 24 — `case init` refuses a non-empty directory, so converting first leaves the project with no `project.uiproj` and an unregistered manifest. Then run convert immediately; never hand-build stages, tasks, conditions, or variables first and convert second. Full procedure, including the mandatory task-entry-rule check that nothing upstream catches, in [references/phased-execution.md](references/phased-execution.md#convert-first--emit-from-the-document-before-authoring).
|
|
@@ -55,7 +55,7 @@ Run `uip login status --output json`, then
|
|
|
55
55
|
13. **Never auto-debug or publish to Orchestrator.** `uip maestro case debug` executes real emails, messages, and API calls. Phase 7 (`case pack` → `solution pack` → `solution publish`) ships to the tenant. Each requires its own AskUserQuestion consent.
|
|
56
56
|
14. **Artifact I/O.** **The plan file is `caseplan.case`.** Name a plan you create `caseplan.case`, with entry points naming `caseplan.case.bpmn` and the package descriptor naming both. If the project already holds a plan under another Studio Web name — `caseplan.json`, `case.stage.json`, `default.stage.json`, for example one an older `case init` seeded — that file is the plan: write and validate it, and never create a second plan file beside it, because the CLI and Studio Web read only the newest name present and `case pack` refuses an entry point naming another plan's sidecar. When `case init` is unavailable and the T01 direct-JSON scaffold creates the project (Rule 24), the CLI predates `.case` support, so name that plan `caseplan.json`. Every `caseplan.case` in this skill means that file. For `caseplan.case`, `sdd.md`, `sdd.draft.md`, `tasks/registry-resolved.json`, `tasks/trigger-spec-cache.json`, `tasks/spec-cache.<elementId>.json`, `id-map.json`, `entry-points.json`, and `build-issues.md`, use only your harness's file tools (`bindings_v2.json` is the exception: `uip maestro case bindings sync` generates it; never write it by hand. `caseplan.case` has one sanctioned generator too — `uip maestro case sdd convert --out` emits the initial plan from `sdd.md` at the top of Phase 2; every edit after that emission is Write/Edit like any other. `tasks/registry-resolved.json` has one as well — `uip maestro case sdd resolve --out` writes it in Phase 1 (Rule 3); every addition after that is Edit. `tasks/spec-cache.<elementId>.json` is the third exception: redirect `uip maestro case spec --output json` into it, because a hand-copy of the tens-of-KB response drops subtrees silently. That redirect is write-once and the only one this rule permits; never edit the file afterward or redirect into any other covered artifact. Each event trigger merges its T-number key into `tasks/trigger-spec-cache.json` with Write/Edit): mutate only with Write / Edit (or `apply_patch`). **The ban is on the write path only.** Never mutate one of these files by script: no `sed -i`, `perl -pi`, `awk`, `jq`, Python or Node rewrite, shell redirection, `tee`, `cp`, `mv`, `install`, `rsync`, or agent-authored script of any kind, including under `/tmp`. **Reading is unrestricted** — `cat`, `sed -n`, `head`, `rg`, `jq` projections, `python3 -c` reads are all allowed, on these artifacts and on `~/.uip/case-resources/`. This rule stops an artifact being AUTHORED or EDITED by script, never CHECKED; the caseplan's own check is `uip maestro case validate --strict --sdd` (Rule 7). If `caseplan.case` exceeds about 30KB, read it by the preview/detail cadence in [case-editing-operations.md](references/case-editing-operations.md) rather than whole. Bash is allowed for read-only inspection, UUID v4 generation without filesystem access, CLI metadata, validate, `format`, `bindings sync`, `splice`, `sdd parse`, `sdd resolve`, `sdd convert`, debug, and solution scaffold/upload. Prefixed IDs are chosen inline. **Write `caseplan.case` pretty-printed, and run `uip maestro case format "<caseplan.case path>" --output json` after every write** — the only sanctioned reformat. A compact plan cannot be patched by Edit/`apply_patch`, and every observed `perl -pi`/`sed -i` violation of this rule started from a compact file. Format's exact output and idempotency: [case-commands.md § uip maestro case format](references/case-commands.md#uip-maestro-case-format).
|
|
57
57
|
15. **Runnable resources and sidecars.** Before Phase 4, run Step 12 Checks 7, 9, 11, and 12 even when publish, debug, or resource refresh is skipped. A non-null `selected` resource must not become a placeholder: retain `data.name` and `data.folderPath` with complete root bindings, regenerate the sidecar with `uip maestro case bindings sync`, and make its `resourceKey` self-consistent with its own defaults, never a copied tenant identity/UUID. Per-check scope and repairs are in [implementation.md § Step 12](references/implementation.md#step-12--end-of-phase-3-validator-pass). Every connector context's `connection` entry must resolve to a declared Connection root binding — connector tasks get it from `uip maestro case splice`, which writes the `=bindings.<id>` reference and both root bindings from the saved spec in one call; the event-trigger node and connector-bound rules take the spec's `=bindings.<id>` reference and the ConnectionId and FolderKey root bindings in the same edit; a `folderKey` holding the connection id, or a connector with no Connection binding in `bindings[]`, is a resource that will never resolve. Completion is `--strict --sdd` per Rule 7; which profile runs in which phase, the don't-chain rule and the CLI 1.202 version guard are in [case-commands.md § uip maestro case validate](references/case-commands.md#uip-maestro-case-validate). Repair and recheck mismatches; halt before Phase 4 if they remain. Repeat Check 7 before every `resources refresh`. **Run `uip solution resources refresh` whenever the plan binds a connector connection — not only before an upload or a debug**, and again before every upload or debug: it is what emits `resources/*/connection/*.json`, and without it a plan that validates clean packs a solution that cannot connect ([bindings-v2-sync.md](references/bindings-v2-sync.md)). Upload flags and the DesignerUrl report are in [phased-execution.md § Phase 5](references/phased-execution.md#phase-5--publish).
|
|
58
|
-
16. **Handoff contract.** Invoke `uipath-planner`’s Case
|
|
58
|
+
16. **Handoff contract.** Invoke `uipath-planner`’s `design` verb (Case Management) in this conversation, never as a subagent. It owns design, resolution, review, and SDD writing; this skill resumes at solution initialization. User-facing language presents one continuous flow and never mentions the handoff. If unavailable, say so in one line, request `sdd.md` or an approved pasted design, and stop. Cross-product planning remains a plain-text suggestion to the planner. Apply the Rule 2 receipt spot-check before unobserved SDD reads.
|
|
59
59
|
17. **Closed task types.** `caseplan.case` task `type` must be exactly one of: `process`, `agent`, `rpa`, `action`, `api-workflow`, `function`, `business-rule`, `case-management`, `execute-connector-activity`, `flow-process`, `http-request`, `document-extraction`, `wait-for-connector`, `external-agent`, `external-workflow`, `wait-for-timer`. Never use plugin folder or CLI names, `wait-for-event`, or other invented values. The unsupported types remain unsupported. See [references/case-schema.md](references/case-schema.md) and the Plugin Index.
|
|
60
60
|
18. **Empty lookup gate.** If the same-session ledger has a user `gateDecision`, execute it without asking again: `resolve-at-build` → placeholder; `create-during-build` → inline create; `pick:<name>` → bind it. A missing decision is a default deferral, not consent; run the full gate. For zero matches, use one batched AskUserQuestion grouped by `(name,type)` with: `Force pull and re-resolve`; `Use placeholders for all`; and, only when creatable resources exist and `registry --local` is supported, `Create missing resources inline`. For several exact-name matches the SDD's folder did not narrow, never pick one by position: the cache lists resources in the order the tenant registered them, so the first is whichever was deployed earliest — often another team's fixture or a debug copy. Ask in the same batch which candidate is meant, one option per candidate named by its folder, plus `Use a placeholder`; unanswered or non-interactive, it stays `<UNRESOLVED>`. Create only selected `agent`, `api-workflow`, or `business-rule` resources, invoking `uipath-agents`, `uipath-api-workflow`, or `uipath-rules`; never infer Create from SDD content. Other empty types remain placeholder-only. Selected resources with identical I/O may share one build; differing I/O splits later with the anchor retaining the name, and SDD updates require permission. See [registry-discovery.md § 1c](references/registry-discovery.md#1c--dedup-the-selected-builds-one-resource-per-name-and-type), [Create-on-Missing](references/registry-discovery.md#create-on-missing-build-and-rediscovery), and [§ MUST Confirm](references/registry-discovery.md#must-confirm-before-placeholder-fallback).
|
|
61
61
|
19. **Layout.** Emit top-level `layout: {}` only. Do not emit node `position`, `style`, `measured`, `width`, `height`, `zIndex`, or edge `data.waypoints`; do not compute positions.
|
|
@@ -109,7 +109,7 @@ For brownfield, use the short entry flow in [references/brownfield.md](reference
|
|
|
109
109
|
|
|
110
110
|
### Design handoff
|
|
111
111
|
|
|
112
|
-
The trigger is binary: if no `.md` whose basename contains `sdd` exists at the resolved path, hand off. If the prompt names another SDD basename, copy it to `./sdd.md` using Read + Write; do not invoke the
|
|
112
|
+
The trigger is binary: if no `.md` whose basename contains `sdd` exists at the resolved path, hand off. If the prompt names another SDD basename, copy it to `./sdd.md` using Read + Write; do not invoke the planner. If no `.md` is named, use `./sdd.md`. Do not read planning/plugin references or run tenant commands before the Case Review. For an explicit no-build design request, write `sdd.md` after approval, without plugin references, schema, registry, connection, or user discovery, then stop — do not author a plan file in place of the build. Planner-owned drafts and `sdd-viewer.html` stay with the planner. If unavailable, request an SDD and stop.
|
|
113
113
|
|
|
114
114
|
### Phase 1 — Resolution
|
|
115
115
|
|
|
@@ -174,7 +174,7 @@ Hard-stop AskUserQuestion (Step 16): `Publish to Orchestrator` / `Done`. On publ
|
|
|
174
174
|
|
|
175
175
|
| Need | Reference |
|
|
176
176
|
|---|---|
|
|
177
|
-
| Design without SDD | `uipath-planner` Case
|
|
177
|
+
| Design without SDD | `uipath-planner` `design` (Case Management); Rule 16 |
|
|
178
178
|
| Resolve resources from SDD | [references/planning.md](references/planning.md) |
|
|
179
179
|
| Build caseplan from SDD | [references/implementation.md](references/implementation.md) |
|
|
180
180
|
| Brownfield edit | [references/brownfield.md](references/brownfield.md); common edits: [references/edit-recipes-guide.md](references/edit-recipes-guide.md) |
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
{
|
|
42
42
|
"id": 4,
|
|
43
43
|
"prompt": "I want to create a case management project",
|
|
44
|
-
"expected_output": "Skill triggers, shows the new-case roadmap, and hands the design to the uipath-planner
|
|
44
|
+
"expected_output": "Skill triggers, shows the new-case roadmap, and hands the design to the uipath-planner design verb in the same conversation — no entry menu, no interview run by this skill",
|
|
45
45
|
"expectations": [
|
|
46
46
|
"The case-management skill was triggered",
|
|
47
47
|
"Shows the journey-specific roadmap with the design prefix line before design work begins — user-facing language never mentions the handoff or skill mechanics",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
{
|
|
80
80
|
"id": 7,
|
|
81
81
|
"prompt": "I want to create a new case but I do not have an sdd.md yet",
|
|
82
|
-
"expected_output": "Skill hands the design to the planner
|
|
82
|
+
"expected_output": "Skill hands the design to the planner’s case design (planner-authored, best assumption) and confirms it in ONE decision-first Case Review that is complete enough to approve without opening sdd.md",
|
|
83
83
|
"expectations": [
|
|
84
84
|
"The case-management skill was triggered",
|
|
85
85
|
"Shows the high-level journey first: designs the case from the request with tenant checks along the way, one review packet with every decision for confirmation, then build and validate without interruptions, pausing only before any run or publish",
|
|
@@ -92,15 +92,15 @@
|
|
|
92
92
|
"The confirmation includes a complete Decisions I Made table with a plain-language provenance per assumption",
|
|
93
93
|
"A manually triggered task is presented as optional adhoc worker-launched work without exposing schema mechanics",
|
|
94
94
|
"The confirmation carries the build continuation choice (build straight through vs pause at the build preview) so it is never asked mid-build",
|
|
95
|
-
"On a Build answer the
|
|
95
|
+
"On a Build answer the planner writes sdd.md, then the build starts (solution init + planning); the design doc is mentioned in one line as a reference artifact — never presented for review, and never written before the Build answer"
|
|
96
96
|
]
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
"id": 8,
|
|
100
100
|
"prompt": "Create a vendor onboarding case. I attached two process documents. It uses VendorRiskAgent, Salesforce Prod, and a Slack notification connector.",
|
|
101
|
-
"expected_output": "Design-time grounding runs inside the planner
|
|
101
|
+
"expected_output": "Design-time grounding runs inside the planner’s case design — the login and registry chain fires in the background at design entry on a build handoff, identities resolve at design time — and the build's planning pass runs verify-only from the in-context resolution ledger",
|
|
102
102
|
"expectations": [
|
|
103
|
-
"Never blocks on the tenant — on a build handoff the login and registry chain fires in the background at
|
|
103
|
+
"Never blocks on the tenant — on a build handoff the login and registry chain fires in the background at design entry (batched with the document reads) and resolution lands before the Case Review",
|
|
104
104
|
"Reads all supplied documents in parallel while the chain resolves",
|
|
105
105
|
"Runs registry pull only after login succeeds and does not treat a failed pull as zero matches",
|
|
106
106
|
"Identity resolution completes at design time: one batched cache-lookup pass, no tasks describe, no case spec, no schema discovery before the build phases",
|
|
@@ -56,7 +56,7 @@ On Windows PowerShell, ask the user to run `irm https://download.uipath.com/uipa
|
|
|
56
56
|
|
|
57
57
|
## Step 1 — HARD GATE: check login and pull registry
|
|
58
58
|
|
|
59
|
-
Registry discovery happens during build planning, so login is required first. This gate runs on every Phase 1 build run — including SDD-without-ledger handoffs and runs with a staged `tasks/registry-resolved.json` — **with two exceptions:** the same-session fast path, and the Design-only exception in SKILL.md Rule 3 (restated below). For the same-session fast path, when the planner subagent's report (SKILL.md Rule 16) says its `registry pull` succeeded in THIS session — the `~/.uip/case-resources/` cache is machine-global, so the subagent's pull is this session's pull — reuse that cache and skip the re-pull, and run this step **verify-only**: persist the subagent's returned resolution ledger verbatim to `tasks/registry-resolved.json`, spot-verify entries against the session cache, execute recorded `gateDecision`s (Rule 18), and re-resolve only stale or missing entries. Any doubt in a build run (user-provided SDD, cross-session resume, context compaction, failed or never-run design
|
|
59
|
+
Registry discovery happens during build planning, so login is required first. This gate runs on every Phase 1 build run — including SDD-without-ledger handoffs and runs with a staged `tasks/registry-resolved.json` — **with two exceptions:** the same-session fast path, and the Design-only exception in SKILL.md Rule 3 (restated below). For the same-session fast path, when the planner subagent's report (SKILL.md Rule 16) says its `registry pull` succeeded in THIS session — the `~/.uip/case-resources/` cache is machine-global, so the subagent's pull is this session's pull — reuse that cache and skip the re-pull, and run this step **verify-only**: persist the subagent's returned resolution ledger verbatim to `tasks/registry-resolved.json`, spot-verify entries against the session cache, execute recorded `gateDecision`s (Rule 18), and re-resolve only stale or missing entries. Any doubt in a build run (user-provided SDD, cross-session resume, context compaction, failed or never-run planner design pull, missing cache files) runs the gate in full.
|
|
60
60
|
|
|
61
61
|
**Design-only exception:** when the request explicitly asks to stop at the design and not create `caseplan.case`, do not run login, registry, connection, schema, or user-discovery commands. The deliverable is `sdd.md` alone, with tenant identities left `<UNRESOLVED>`; state that the later build run must run this hard gate before caseplan execution. Do not author a substitute plan file.
|
|
62
62
|
|
|
@@ -73,13 +73,13 @@ Outside the fast path, do not inspect `~/.uip/case-resources/` first to decide w
|
|
|
73
73
|
|
|
74
74
|
Accept the `sdd.md` file path from the user, or ask if not provided. When the directory contains multiple `.md` files, use **AskUserQuestion** with the candidates + "Something else" to disambiguate.
|
|
75
75
|
|
|
76
|
-
If the resolved path has **no `sdd.md`**, the skill hands the design to
|
|
76
|
+
If the resolved path has **no `sdd.md`**, the skill hands the design to `uipath-planner`’s `design` verb (Case Management) in this conversation before this step (SKILL.md Rule 16 + § Design handoff). Phase 1 begins after the Case Review's Build answer, once the planner has written `sdd.md`. The in-memory model that rendered the file drives planning directly (Rule 2 — do not re-read the just-written file); the Case Review is approval context, not a parsing source.
|
|
77
77
|
|
|
78
|
-
`sdd.md` is the **sole required input**. It describes stages, tasks, conditions, SLA, component types, persona information, and provides the search keys for registry lookups. The portable name is type-specific: `Resolved Resource` for process/agent/rpa/api-workflow/function/business-rule, the Action App title in `HITL Implementation` for action, and `Child Case` for case-management. The corresponding identity cell (`Resource Identity` or `Action App ID`) says whether an earlier phase resolved it. (The SDD does not describe edges — transitions are stage entry/exit conditions; Rule 21.) The skill does not validate or gap-fill sdd.md — trust it as written. (The delegated design
|
|
78
|
+
`sdd.md` is the **sole required input**. It describes stages, tasks, conditions, SLA, component types, persona information, and provides the search keys for registry lookups. The portable name is type-specific: `Resolved Resource` for process/agent/rpa/api-workflow/function/business-rule, the Action App title in `HITL Implementation` for action, and `Child Case` for case-management. The corresponding identity cell (`Resource Identity` or `Action App ID`) says whether an earlier phase resolved it. (The SDD does not describe edges — transitions are stage entry/exit conditions; Rule 21.) The skill does not validate or gap-fill sdd.md — trust it as written. (The delegated planner design may have produced it; once approved, Rule 2 applies regardless of source.)
|
|
79
79
|
|
|
80
80
|
> **Cache-state distinction — mandatory.** Step 1 refreshes discovery state; it does not validate or override sdd.md. Before a successful pull, a missing cache directory or type index is a failed refresh precondition, not evidence that the SDD resource is unavailable. After a successful pull, search by the SDD's concrete portable name; only an empty exact-name match set (or a still-absent type index) is a genuine empty lookup. An `<UNRESOLVED>` identity or folder means name-only discovery, not permission to skip discovery.
|
|
81
81
|
|
|
82
|
-
> **Design
|
|
82
|
+
> **Design carryover.** `tasks/registry-resolved.json` is an optional performance cache/audit artifact, never the source of resource intent. Same-session, it is seeded verbatim from the planner's resolution ledger (Rule 10); the reuse conditions below apply to every entry regardless of origin. Step 1 still runs first. If it exists, read it, associate an entry by exact `stage` + `task`, and reuse it **only when ALL four hold against the current SDD contract**:
|
|
83
83
|
>
|
|
84
84
|
> 1. `taskType` matches the SDD task type.
|
|
85
85
|
> 2. `cacheFile` is compatible with that type under [registry-discovery.md](registry-discovery.md) (`action` and `case-management` require their primary cache exactly).
|
|
@@ -192,7 +192,7 @@ Use the same section-batched write discipline the caseplan uses — one Read per
|
|
|
192
192
|
> | `action` | `selected.name` | `selected.folder` | `selected.identifier` (`identifierField: "id"`) |
|
|
193
193
|
> | `case-management` | `selected.name` | `selected.folder` | `selected.identifier` (`identifierField: "entityKey"`) |
|
|
194
194
|
>
|
|
195
|
-
> A ledger persisted verbatim from the planner
|
|
195
|
+
> A ledger persisted verbatim from the planner (SKILL.md Rule 3) carries the raw cache object instead; read it by the index's own fields — for `action`, `selected.deploymentTitle`, `selected.deploymentFolder.fullyQualifiedName`, `selected.id`; for `case-management`, `selected.name`, `selected.folders[0].fullyQualifiedName`, `selected.entityKey`.
|
|
196
196
|
|
|
197
197
|
## Step 5 — Hand off to Phase 2 (auto-proceed)
|
|
198
198
|
|
package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/planning.md
CHANGED
|
@@ -53,7 +53,7 @@ The Case App selector has three distinct modes:
|
|
|
53
53
|
|
|
54
54
|
`adhoc` is task-entry-only. It is never a stage entry rule, never a case trigger, never a substitute for `wait-for-connector`, and never the way to model a user-selected interrupting lane. Use a secondary stage with `user-selected-stage` for that.
|
|
55
55
|
|
|
56
|
-
During design
|
|
56
|
+
During case design authoring (`uipath-planner`), any requirement that says `then`, `after`, `before`, `in order`, or otherwise declares an immediate dependency should be authored as `runs-sequentially` on every task in that run. Do not convert it to parallel `current-stage-entered` tasks merely because no data binding links them. Use parallel mode only when the rationale says the tasks are independent. **Phase 1 does not re-author a supplied or approved SDD:** if its task row explicitly says `selected-tasks-completed("<previous task>")`, preserve that exact rule and selector even when the selected task is immediately previous.
|
|
57
57
|
|
|
58
58
|
## Phase 1 Plan Presentation Contract
|
|
59
59
|
|
|
@@ -78,7 +78,7 @@ For every task-entry-condition element, verify the task's `activation-mode` and
|
|
|
78
78
|
| `fan-in` | `selected-tasks-completed` with multiple selected tasks or an explicit convergence rationale |
|
|
79
79
|
| `conditional-gate` | `selected-tasks-completed` with a branch/non-immediate dependency rationale, or the explicitly authored gate rule |
|
|
80
80
|
|
|
81
|
-
During design
|
|
81
|
+
During case design authoring (`uipath-planner`), a plain immediate ordered run with no fan-in, branch, event, or non-immediate dependency rationale should be modeled as `activation-mode: sequential` with `rule-type: runs-sequentially`. During Phase 1, never use that heuristic to rewrite an explicit supplied/approved SDD row: preserve `selected-tasks-completed` and its selector as `conditional-gate` or `fan-in`, including when all tasks are placeholders.
|
|
82
82
|
|
|
83
83
|
## Ordering
|
|
84
84
|
|
|
@@ -74,7 +74,7 @@ Rules are evaluated in insertion order — first truthy expression wins. The def
|
|
|
74
74
|
|
|
75
75
|
## Identity Resolution
|
|
76
76
|
|
|
77
|
-
When sdd gives an escalation recipient as an email (`User: manager@corp.com`) or group name (`UserGroup: "Order Management Team"`), resolve to a directory UUID via `uip admin` while authoring the escalation rule. Resolved UUIDs land in `recipients-resolved.json`; [`impl-json.md`](impl-json.md) writes them straight into `escalationRule[].action.recipients[].target` — no sentinel needed. Resolution runs **Phase 1 only** — the design
|
|
77
|
+
When sdd gives an escalation recipient as an email (`User: manager@corp.com`) or group name (`UserGroup: "Order Management Team"`), resolve to a directory UUID via `uip admin` while authoring the escalation rule. Resolved UUIDs land in `recipients-resolved.json`; [`impl-json.md`](impl-json.md) writes them straight into `escalationRule[].action.recipients[].target` — no sentinel needed. Resolution runs **Phase 1 only** — the planner’s case design records email / group name as a string in sdd.md.
|
|
78
78
|
|
|
79
79
|
### Skip — UUID pass-through
|
|
80
80
|
|
|
@@ -11,7 +11,7 @@ During sdd.md → task.md interpretation, when you need to determine:
|
|
|
11
11
|
## Prerequisites
|
|
12
12
|
|
|
13
13
|
Run `uip login status --output json`, then
|
|
14
|
-
`uip maestro case registry pull`, before any cache inspection or lookup. This is a Phase 1 hard gate, not a conditional refresh: never inspect the cache first and use its absence to skip the pull. **One exception — same-session fast path (SKILL.md Rule 3):** when the delegated design
|
|
14
|
+
`uip maestro case registry pull`, before any cache inspection or lookup. This is a Phase 1 hard gate, not a conditional refresh: never inspect the cache first and use its absence to skip the pull. **One exception — same-session fast path (SKILL.md Rule 3):** when the delegated planner design pull (`uipath-planner`, SKILL.md Rule 16) already succeeded in this session and `sdd.md` was just written from the confirmed in-memory model, reuse that cache instead of re-pulling — and run verify-only against the planner's resolution ledger (SKILL.md Rule 3); any doubt runs the gate in full. Login/pull failure stops Phase 1 before planning artifacts are written. The planner’s case design grounds lazily: it starts the same login → pull chain in the background only when the case first shows tenant-bound work, then runs full identity resolution plus the ambiguity/empty gate at Case Review time — no schema discovery there; schemas stay a Phase 2/3 concern. A successful pull populates the local cache at `~/.uip/case-resources/`. Discovery reads those cache files — through `sdd resolve` first, and directly by hand for what it leaves — **do not** rely on `uip maestro case registry search` as the primary discovery method. See § When a search returns nothing below for the reason.
|
|
15
15
|
|
|
16
16
|
> **Missing file ≠ empty match.** Before searching any `<type>-index.json`, verify it exists on disk. If it does not, run `uip maestro case registry pull` (not `--force` — a normal pull is enough for first-time population). A missing file **before** a pull is a precondition failure, not a 0-result lookup. **After a successful pull, a still-absent index means the tenant has zero resources of that type — which IS the genuine 0-matches case.** For **non-creatable** types (regular RPA process, agentic processes / Process Orchestration, action, case-management, connectors) → proceed to placeholder. For a **creatable** type (`agent`, `api-workflow`, `business-rule`), a zero-resource tenant index is the genuine 0-matches case where inline **Create** applies — but **first resolve any in-solution sibling** (a prior run may have already built it; see the per-type pre-gate checks — [agent/planning.md](plugins/tasks/agent/planning.md#registry-resolution), [api-workflow/planning.md](plugins/tasks/api-workflow/planning.md#registry-resolution), [business-rule/planning.md](plugins/tasks/business-rule/planning.md#registry-resolution) — and § Handle Empty Results below). Only a resource absent from **both** the tenant index **and** the local siblings is genuinely empty → feed it to the [Rule 18 / § MUST-Confirm gate](#must-confirm-before-placeholder-fallback) (Create offered), NOT straight to placeholder.
|
|
17
17
|
|
|
@@ -58,7 +58,7 @@ Direct cache-file inspection is the authoritative discovery method for this skil
|
|
|
58
58
|
|
|
59
59
|
## MUST Confirm Before Placeholder Fallback
|
|
60
60
|
|
|
61
|
-
> **Design-time gate short-circuit.** When the same-session resolution ledger from the planner
|
|
61
|
+
> **Design-time gate short-circuit.** When the same-session resolution ledger from the planner’s case design (SKILL.md Rule 16) carries a `gateDecision` for a resource, the gate below already ran — the USER answered it at the Case Review (`gateDecision` exists only for user-answered items; a defaulted `resolve at build` carries none and gets the full gate below). Execute the decision without re-asking: `pick:<name>` → bind that entry; `resolve-at-build` → placeholder path directly; `create-during-build` → the Create-on-Missing flow below as if the user picked `Create`. Re-ask ONLY when the entry is stale against the current SDD (carryover rules in [planning.md](planning.md)) or the cache no longer contains the picked entry.
|
|
62
62
|
|
|
63
63
|
> **Hard gate.** If the planning-phase lookup batch returns ≥1 empty result (no match across all relevant cache files for any task / trigger / connector), STOP. Run AskUserQuestion before invoking any per-plugin Unresolved Fallback path or writing any placeholder element.
|
|
64
64
|
|
|
@@ -346,6 +346,6 @@ The discovery result for each match should include the **entity identifier** (th
|
|
|
346
346
|
|
|
347
347
|
### `registry-resolved.json` content discipline
|
|
348
348
|
|
|
349
|
-
Structured log only — per Rule 10, each entry uses exact keys `{stage, task, taskType, cacheFile, searchQuery, matches, selected, rationale}`. The file may be re-ingested as a performance cache only after association by `stage` + `task` and the strict SDD match in [planning.md § Design
|
|
349
|
+
Structured log only — per Rule 10, each entry uses exact keys `{stage, task, taskType, cacheFile, searchQuery, matches, selected, rationale}`. The file may be re-ingested as a performance cache only after association by `stage` + `task` and the strict SDD match in [planning.md § Design carryover](planning.md#step-2--locate-and-parse-the-design-document); it never overrides the SDD. `rationale` MUST explain the selection choice (e.g., `"exact name match in caseManagement folder"`); never use it for verify-text drafts, SDD-vs-spec field translations, or downstream-plugin-behavior claims.
|
|
350
350
|
|
|
351
351
|
<!-- END: registry-discovery.md -->
|