@uipath/skills 1.200.0 → 1.201.0-preview.433
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +32 -0
- package/CODEOWNERS +25 -4
- package/README.md +1 -0
- package/assets/skill-status.json +8 -0
- package/assets/uip-catalog-snapshot.json +113 -41
- package/assets/uipath-icon.png +0 -0
- package/commands/install-permissions.md +1 -0
- package/package.json +3 -2
- package/skills/uipath-admin/SKILL.md +1 -1
- package/skills/uipath-admin/references/authorization/permission-catalog.md +61 -1
- package/skills/uipath-admin/references/authorization/role-management.md +3 -1
- package/skills/uipath-admin/references/diagnose/references/failure-modes.md +29 -4
- package/skills/uipath-admin/references/diagnose/references/troubleshooting-guide.md +13 -0
- package/skills/uipath-agents/SKILL.md +1 -0
- package/skills/uipath-agents/references/coded/capabilities/context-grounding.md +3 -3
- package/skills/uipath-agents/references/coded/capabilities/guardrails/guardrails-recommend.md +6 -1
- package/skills/uipath-agents/references/coded/capabilities/guardrails/guardrails.md +89 -1
- package/skills/uipath-agents/references/coded/embedding-in-flows.md +17 -1
- package/skills/uipath-agents/references/coded/frameworks/llamaindex-integration.md +64 -2
- package/skills/uipath-agents/references/coded/lifecycle/deployment.md +3 -0
- package/skills/uipath-agents/references/coded/lifecycle/environment-variables.md +90 -0
- package/skills/uipath-agents/references/coded/lifecycle/file-sync.md +3 -1
- package/skills/uipath-agents/references/coded/quickstart.md +10 -6
- package/skills/uipath-agents/references/lowcode/capabilities/guardrails/guardrails-recommend.md +20 -5
- package/skills/uipath-agents/references/lowcode/capabilities/guardrails/guardrails.md +13 -0
- package/skills/uipath-agents/references/lowcode/capabilities/inline-in-flow/inline-in-flow.md +1 -3
- package/skills/uipath-api-workflow/references/operating-published-workflows.md +17 -6
- package/skills/uipath-automationhub/SKILL.md +58 -0
- package/skills/uipath-automationhub/references/api-endpoints.md +140 -0
- package/skills/uipath-automationhub/references/get-process.md +69 -0
- package/skills/uipath-automationhub/references/publish-process.md +171 -0
- package/skills/uipath-coded-apps/SKILL.md +24 -11
- package/skills/uipath-coded-apps/references/commands-reference.md +29 -29
- package/skills/uipath-coded-apps/references/create-action-app.md +4 -0
- package/skills/uipath-coded-apps/references/create-web-app.md +10 -0
- package/skills/uipath-coded-apps/references/debug.md +16 -0
- package/skills/uipath-coded-apps/references/oauth-client-setup.md +3 -1
- package/skills/uipath-coded-apps/references/oauth-scopes.md +39 -4
- package/skills/uipath-coded-apps/references/pack-publish-deploy.md +37 -21
- package/skills/uipath-coded-apps/references/sdk/conversational-agent.md +2 -0
- package/skills/uipath-coded-apps/references/sdk/data-fabric.md +2 -0
- package/skills/uipath-coded-apps/references/sdk/orchestrator.md +2 -0
- package/skills/uipath-coded-apps/references/widgets/conversational-agent-chat.md +90 -0
- package/skills/uipath-coded-apps/references/widgets/datatable.md +97 -0
- package/skills/uipath-coded-apps/references/widgets/external-auth.md +97 -0
- package/skills/uipath-coded-apps/references/widgets/multi-file-upload.md +98 -0
- package/skills/uipath-coded-apps/references/widgets/pdf-viewer.md +122 -0
- package/skills/uipath-coded-apps/references/widgets/validation-station.md +1 -1
- package/skills/uipath-functions/SKILL.md +11 -0
- package/skills/uipath-insights/SKILL.md +52 -247
- package/skills/uipath-insights/references/filter-discovery-guide.md +106 -0
- package/skills/uipath-insights/references/investigation-playbook-guide.md +24 -16
- package/skills/uipath-insights/references/jobs-commands-guide.md +196 -53
- package/skills/uipath-ixp/SKILL.md +10 -4
- package/skills/uipath-ixp/references/cli-reference.md +59 -5
- package/skills/uipath-ixp/references/label-documents-guide.md +12 -5
- package/skills/uipath-maestro-bpmn/SKILL.md +27 -9
- package/skills/uipath-maestro-bpmn/references/diagnose/references/failure-modes.md +6 -3
- package/skills/uipath-maestro-bpmn/references/operate/CAPABILITY.md +1 -1
- package/skills/uipath-maestro-bpmn/references/operate/references/ship.md +9 -3
- package/skills/uipath-maestro-bpmn/references/registry-workflow.md +1 -1
- package/skills/uipath-maestro-bpmn/references/shared/local-metadata-regeneration-guide.md +18 -11
- package/skills/uipath-maestro-bpmn/references/structural-bpmn.md +13 -7
- package/skills/uipath-maestro-case/SKILL.md +138 -170
- package/skills/uipath-maestro-case/references/bindings-and-expressions.md +14 -1
- package/skills/uipath-maestro-case/references/bindings-v2-sync.md +25 -1
- package/skills/uipath-maestro-case/references/brownfield.md +7 -3
- package/skills/uipath-maestro-case/references/case-commands.md +63 -8
- package/skills/uipath-maestro-case/references/case-editing-operations.md +11 -8
- package/skills/uipath-maestro-case/references/case-schema.md +5 -3
- package/skills/uipath-maestro-case/references/case-spec-input-details.md +4 -0
- package/skills/uipath-maestro-case/references/connector-integration.md +3 -1
- package/skills/uipath-maestro-case/references/connector-trigger-impl.md +236 -0
- package/skills/uipath-maestro-case/references/connector-trigger-planning.md +300 -0
- package/skills/uipath-maestro-case/references/entry-points-sync.md +2 -0
- package/skills/uipath-maestro-case/references/evals/evals.json +33 -40
- package/skills/uipath-maestro-case/references/implementation.md +58 -13
- package/skills/uipath-maestro-case/references/phased-execution.md +87 -20
- package/skills/uipath-maestro-case/references/placeholder-tasks.md +3 -1
- package/skills/uipath-maestro-case/references/planning.md +26 -16
- package/skills/uipath-maestro-case/references/plugins/case/impl-json.md +2 -5
- package/skills/uipath-maestro-case/references/plugins/case/planning.md +3 -1
- package/skills/uipath-maestro-case/references/plugins/conditions/case-exit-conditions/impl-json.md +3 -1
- package/skills/uipath-maestro-case/references/plugins/conditions/case-exit-conditions/planning.md +5 -3
- package/skills/uipath-maestro-case/references/plugins/conditions/stage-entry-conditions/impl-json.md +4 -2
- package/skills/uipath-maestro-case/references/plugins/conditions/stage-entry-conditions/planning.md +6 -4
- package/skills/uipath-maestro-case/references/plugins/conditions/stage-exit-conditions/impl-json.md +6 -4
- package/skills/uipath-maestro-case/references/plugins/conditions/stage-exit-conditions/planning.md +6 -4
- package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/impl-json.md +42 -3
- package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/planning.md +6 -4
- package/skills/uipath-maestro-case/references/plugins/logging/impl-json.md +50 -32
- package/skills/uipath-maestro-case/references/plugins/sla/impl-json.md +2 -4
- package/skills/uipath-maestro-case/references/plugins/sla/planning.md +3 -1
- package/skills/uipath-maestro-case/references/plugins/stages/impl-json.md +1 -4
- package/skills/uipath-maestro-case/references/plugins/stages/planning.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/tasks/action/impl-json.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/tasks/action/planning.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/tasks/agent/impl-json.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/tasks/agent/planning.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/tasks/api-workflow/impl-json.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/tasks/api-workflow/planning.md +5 -3
- package/skills/uipath-maestro-case/references/plugins/tasks/case-management/impl-json.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/tasks/case-management/planning.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/tasks/connector-activity/impl-json.md +43 -13
- package/skills/uipath-maestro-case/references/plugins/tasks/connector-activity/planning.md +4 -2
- package/skills/uipath-maestro-case/references/plugins/tasks/connector-trigger/impl-json.md +10 -7
- package/skills/uipath-maestro-case/references/plugins/tasks/connector-trigger/planning.md +5 -3
- package/skills/uipath-maestro-case/references/plugins/tasks/create-inline-common.md +3 -1
- package/skills/uipath-maestro-case/references/plugins/tasks/process/impl-json.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/tasks/process/planning.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/tasks/rpa/impl-json.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/tasks/rpa/planning.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/tasks/wait-for-timer/impl-json.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/tasks/wait-for-timer/planning.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/triggers/event/impl-json.md +9 -6
- package/skills/uipath-maestro-case/references/plugins/triggers/event/planning.md +5 -3
- package/skills/uipath-maestro-case/references/plugins/triggers/manual/impl-json.md +1 -4
- package/skills/uipath-maestro-case/references/plugins/triggers/manual/planning.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/triggers/timer/impl-json.md +1 -4
- package/skills/uipath-maestro-case/references/plugins/triggers/timer/planning.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/variables/bindings/impl-json.md +3 -1
- package/skills/uipath-maestro-case/references/plugins/variables/global-vars/impl-json.md +40 -2
- package/skills/uipath-maestro-case/references/plugins/variables/global-vars/planning.md +12 -2
- package/skills/uipath-maestro-case/references/plugins/variables/io-binding/impl-json.md +8 -6
- package/skills/uipath-maestro-case/references/plugins/variables/io-binding/planning.md +17 -3
- package/skills/uipath-maestro-case/references/registry-discovery.md +9 -5
- package/skills/uipath-maestro-case/references/sla-response-shapes.md +3 -1
- package/skills/uipath-maestro-case/references/troubleshooting-guide.md +2 -0
- package/skills/uipath-maestro-case/scripts/audit_plan.py +231 -0
- package/skills/uipath-maestro-flow/references/author/CAPABILITY.md +8 -4
- package/skills/uipath-maestro-flow/references/author/references/editing-operations-cli.md +5 -3
- package/skills/uipath-maestro-flow/references/author/references/editing-operations-json.md +14 -4
- package/skills/uipath-maestro-flow/references/author/references/editing-operations.md +3 -3
- package/skills/uipath-maestro-flow/references/author/references/greenfield.md +12 -3
- package/skills/uipath-maestro-flow/references/author/references/planning-arch.md +17 -13
- package/skills/uipath-maestro-flow/references/author/references/planning-impl.md +1 -1
- package/skills/uipath-maestro-flow/references/author/references/plugins/agent/impl.md +49 -4
- package/skills/uipath-maestro-flow/references/author/references/plugins/connector/impl.md +59 -17
- package/skills/uipath-maestro-flow/references/author/references/plugins/connector-trigger/impl.md +3 -3
- package/skills/uipath-maestro-flow/references/author/references/plugins/http/impl-connector.md +3 -1
- package/skills/uipath-maestro-flow/references/author/references/plugins/http/impl-manual.md +3 -1
- package/skills/uipath-maestro-flow/references/author/references/plugins/http/impl.md +5 -2
- package/skills/uipath-maestro-flow/references/author/references/plugins/inline-agent/impl.md +31 -16
- package/skills/uipath-maestro-flow/references/author/references/plugins/ixp/impl.md +13 -4
- package/skills/uipath-maestro-flow/references/author/references/plugins/loop/impl.md +185 -25
- package/skills/uipath-maestro-flow/references/author/references/plugins/loop/planning.md +18 -10
- package/skills/uipath-maestro-flow/references/author/references/plugins/rpa/impl.md +9 -3
- package/skills/uipath-maestro-flow/references/author/references/plugins/terminate/impl.md +6 -3
- package/skills/uipath-maestro-flow/references/diagnose/references/failure-modes.md +68 -0
- package/skills/uipath-maestro-flow/references/shared/cli-commands.md +2 -1
- package/skills/uipath-maestro-flow/references/shared/file-format.md +36 -9
- package/skills/uipath-maestro-flow/references/shared/node-output-wiring.md +1 -1
- package/skills/uipath-maestro-flow/references/shared/ux-narration-and-todos.md +1 -1
- package/skills/uipath-maestro-flow/references/shared/variables-and-expressions.md +77 -20
- package/skills/uipath-planner/SKILL.md +30 -12
- package/skills/{uipath-maestro-case/assets/templates/sdd-template-examples.md → uipath-planner/assets/templates/case-sdd-examples.md} +18 -32
- package/skills/uipath-planner/assets/templates/case-sdd-template.md +289 -309
- package/skills/uipath-planner/references/case-design-lane-guide.md +288 -0
- package/skills/uipath-planner/references/multi-skill-patterns-guide.md +1 -1
- package/skills/uipath-planner/references/package-selection-guide.md +2 -2
- package/skills/uipath-planner/references/pdd-driven-lane-guide.md +5 -1
- package/skills/uipath-planner/references/product-selection-guide.md +2 -2
- package/skills/uipath-planner/references/sdd-generation-guide.md +16 -15
- package/skills/uipath-planner/scripts/audit_sdd.py +437 -0
- package/skills/uipath-platform/SKILL.md +7 -2
- package/skills/uipath-platform/references/data-fabric/choice-sets.md +1 -1
- package/skills/uipath-platform/references/data-fabric/data-fabric.md +1 -1
- package/skills/uipath-platform/references/data-fabric/entity-schema.md +37 -21
- package/skills/uipath-platform/references/data-fabric/file-attachments.md +1 -1
- package/skills/uipath-platform/references/guardrails/byo-configurations.md +205 -0
- package/skills/uipath-platform/references/traces/feedback.md +4 -2
- package/skills/uipath-platform/references/uip-commands.md +2 -2
- package/skills/uipath-review/SKILL.md +55 -52
- package/skills/uipath-review/references/agents/agent-grading-rubric.md +62 -40
- package/skills/uipath-review/references/agents/agents-coded-rules.md +7 -1
- package/skills/uipath-review/references/agents/agents-lowcode-rules.md +21 -2
- package/skills/uipath-review/references/agents/guardrails/coded-guardrails-review.md +78 -13
- package/skills/uipath-review/references/agents/guardrails/guardrails-review.md +11 -4
- package/skills/uipath-review/references/architecture-assessment-guide.md +1 -1
- package/skills/uipath-review/references/review-workflow-guide.md +19 -10
- package/skills/uipath-review/references/rule-catalog-workflow.md +6 -6
- package/skills/uipath-review/references/rule-format.md +1 -1
- package/skills/uipath-rpa/SKILL.md +1 -1
- package/skills/uipath-solution/SKILL.md +4 -4
- package/skills/uipath-solution/references/solution-overview.md +7 -2
- package/skills/uipath-tasks/SKILL.md +27 -1
- package/skills/uipath-tasks/references/task-catalogs.md +79 -0
- package/skills/uipath-tasks/references/task-data.md +45 -0
- package/skills/uipath-tasks/references/task-metadata.md +69 -0
- package/skills/uipath-test/SKILL.md +3 -3
- package/skills/uipath-test/references/test-result-report-guide.md +16 -1
- package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/ambiguous-selector.md +1 -1
- package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/scope-container-wrong-page.md +1 -1
- package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/verify-execution-failure.md +2 -2
- package/skills/uipath-troubleshoot/references/products/agents/playbooks/guardrail-violation.md +12 -0
- package/version-manifest.json +2 -2
- package/skills/uipath-maestro-case/assets/templates/sdd-template.md +0 -667
- package/skills/uipath-maestro-case/references/connector-trigger-common.md +0 -511
- package/skills/uipath-maestro-case/references/phase-0-interview.md +0 -279
- package/skills/uipath-maestro-case/references/sdd-generation-rules.md +0 -1026
- package/skills/uipath-review/references/agents/agent-common-issues.md +0 -401
- package/skills/uipath-review/references/agents/agent-review-checklist.md +0 -379
- /package/skills/{uipath-maestro-case → uipath-planner}/assets/templates/sdd-viewer.html +0 -0
|
@@ -10,7 +10,7 @@ During sdd.md → task.md interpretation, when you need to determine:
|
|
|
10
10
|
|
|
11
11
|
## Prerequisites
|
|
12
12
|
|
|
13
|
-
Run `uip login status --output json`, then `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
|
|
13
|
+
Run `uip login status --output json`, then `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 lane's pull (`uipath-planner`, SKILL.md Rule 15) 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 design lane 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/`. All subsequent discovery is done by reading these cache files directly — **do not** rely on `uip maestro case registry search` as the primary discovery method. See the "CLI Search Gaps" section below for the reason.
|
|
14
14
|
|
|
15
15
|
> **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`), 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) — 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 17 / § MUST-Confirm gate](#must-confirm-before-placeholder-fallback) (Create offered), NOT straight to placeholder.
|
|
16
16
|
|
|
@@ -26,6 +26,8 @@ Direct cache-file inspection is the authoritative discovery method for this skil
|
|
|
26
26
|
|
|
27
27
|
## MUST Confirm Before Placeholder Fallback
|
|
28
28
|
|
|
29
|
+
> **Design-time gate short-circuit.** When the same-session resolution ledger from the planner's Case Design Lane (SKILL.md Rule 15) 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.
|
|
30
|
+
|
|
29
31
|
> **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 T-entry.
|
|
30
32
|
|
|
31
33
|
Required prompt shape:
|
|
@@ -98,7 +100,7 @@ For each selected **agent**, ask the build kind before building: an `AskUserQues
|
|
|
98
100
|
|
|
99
101
|
### 1c — Dedup the selected builds (one resource per name and type)
|
|
100
102
|
|
|
101
|
-
Runs AFTER § 1 selection (and § 1b), BEFORE § 2. Scope: the **create-selected** tasks only. Placeholder/unchecked tasks are independent — never coupled to a build, even under a shared name. Resolved references are out of scope entirely: several tasks reusing one real tenant resource is normal; per-task wiring fidelity there is [
|
|
103
|
+
Runs AFTER § 1 selection (and § 1b), BEFORE § 2. Scope: the **create-selected** tasks only. Placeholder/unchecked tasks are independent — never coupled to a build, even under a shared name. Resolved references are out of scope entirely: several tasks reusing one real tenant resource is normal; per-task wiring fidelity there is [io-binding Check 5](plugins/variables/io-binding/impl-json.md#check-5--resolved-resource-io-completeness)'s job.
|
|
102
104
|
|
|
103
105
|
1. **Group** the selected tasks by `(intended resource name, type)` using each task's concrete SDD `Resolved Resource` value, trimmed and case-insensitive. That cell is the authoritative portable name query even when `tasks/registry-resolved.json` is absent; generated and user-authored SDDs follow the same contract and never place `<UNRESOLVED>` there. Folder is NOT in the key: an unresolved resource has no resolved folder, and inline siblings share one flat namespace. **Cross-type name collision (resolve BEFORE the per-group work below):** because that namespace is name-only, the same name heading groups of **two different types** (e.g. an agent `Foo` and an api-workflow `Foo`) is a collision — both would claim `solution_folder.Foo`. Keep the name on the group whose earliest task is first in SDD order; **auto-rename the other type's group** (stage-derived suggestion, uniqueness-checked → step 4), exactly as for an I/O-distinct sub-group. This is the **proactive** guard for what § 3b otherwise catches only reactively — without it, § 2's parallel `init <name>` race on the shared `<name>/` directory and § 3 `project add` collides on the duplicate name.
|
|
104
106
|
2. **Single-task group** → ordinary build (§ 2).
|
|
@@ -107,7 +109,7 @@ Runs AFTER § 1 selection (and § 1b), BEFORE § 2. Scope: the **create-selected
|
|
|
107
109
|
- **Every OTHER I/O-distinct sub-group** is a different function → **auto-rename it once** (one new name shared by all its member tasks): stage-derived suggestion (`<Name><Stage>`), made unique against the other selections, the in-solution siblings of any kind, and the tenant caches — bump the suffix on collision. Then step 4. (This is why the merge-vs-rename decision is per sub-group, not "the later task" — a mixed group where some tasks match the anchor and some don't yields one build for the anchor + one per distinct other sub-group, never one-per-task.)
|
|
108
110
|
- **Within any sub-group of >1 task whose descriptions differ in intent** (same signature, possibly different function) → resolve it to intent-homogeneous pieces before building; **never lump several differing tasks behind one rename.** `AskUserQuestion` quoting the descriptions **with NO recommended option** (the merge-vs-split call is the user's — identical I/O says "maybe same", divergent descriptions say "maybe different", and the skill does not bias either way): `Same resource — build once` / `Different — split off the task(s) that don't belong` / `Abort`. On `Different`, the user marks the task(s) to split off; they form a new sub-group, and you **re-run this same intent check on each resulting sub-group** — looping until every sub-group is a single task or a user-confirmed same-intent set (so a 3-task group of 2 matching + 1 divergent resolves to those 2 merged + the 1 split, NOT all 3 behind one rename). Each resulting distinct sub-group is renamed once (step 4). **Non-interactive: split to singletons** — every non-anchor task becomes its **own** uniquely-named resource (step 4; one rename per task; in-memory only, since the SDD is never edited non-interactively), and emit one `high` review item per split flagging that an ambiguous-description group was auto-split without a user decision. (Split is the correctness-safer default: over-splitting yields harmless duplicates, whereas silently merging genuinely-different functions — or lumping several divergent tasks behind ONE rename — builds a resource that cannot serve them all.)
|
|
109
111
|
- A sub-group whose members share I/O **and** intent → ONE resource: build once, every member binds to it (§ 4). Note the shared build and its call sites in the completion report.
|
|
110
|
-
4. **Rename write-back — one `AskUserQuestion` per rename.** State `<old> → <new>`, give the actual split reason (I/O mismatch, cross-type name collision, or user-confirmed distinct intent), and ask permission to update the renamed task(s)' `Resolved Resource` cell(s) in `sdd.md`. **Granted** → apply the edit **atomically across both SDD mirrors of the resource identity** (
|
|
112
|
+
4. **Rename write-back — one `AskUserQuestion` per rename.** State `<old> → <new>`, give the actual split reason (I/O mismatch, cross-type name collision, or user-confirmed distinct intent), and ask permission to update the renamed task(s)' `Resolved Resource` cell(s) in `sdd.md`. **Granted** → apply the edit **atomically across both SDD mirrors of the resource identity** (the SDD's Section 4 dedup roll-up — one row per distinct resource, `Used By Tasks` listing its call sites; the case SDD content contract is authored by `uipath-planner`): (a) set the split task(s)' Section 2 `Resolved Resource` cell(s) to `<new>`, **and** (b) in the Section 4 dedup roll-up, remove those task(s) from `<old>`'s `Used By Tasks` and add a new row for `<new>` listing them (its `Folder Path` + `Resource Identity` filled after registration, § 4). Omitting (b) leaves Section 4 asserting `<old>` still serves tasks it no longer does. Re-runs then resolve by the new name — fully idempotent. **Denied, or non-interactive** → the rename applies in-memory for THIS run only (this run's build + bind are correct); the SDD keeps the old name; completion-report warning: until the cell is renamed manually, a re-run's pre-gate sibling check will bind the task to the ORIGINAL sibling (surfaced by the I/O fidelity check, not silent), leaving this run's renamed sibling unreferenced on the re-run — a leftover handled per [§ Reject case](#reject-case) (kept on disk, still registered, named in the completion report). NEVER edit the SDD non-interactively.
|
|
111
113
|
5. Each resulting unique resource (anchor + each renamed sub-group) → § 2: **one sub-agent per resource, not per task**. Brief Purpose from the FIRST task in SDD order among the tasks it serves ([create-inline-common.md § Step 1b](plugins/tasks/create-inline-common.md#step-1b--compose-the-purpose-from-the-sdd)); its tasks share one wiring by construction, so the pinned contract comes from any one of them ([§ Step 1](plugins/tasks/create-inline-common.md#step-1--compute-the-pinned-io-contract)).
|
|
112
114
|
|
|
113
115
|
**Step-4 rename write-back — prompt shape** (one AskUserQuestion per rename):
|
|
@@ -149,7 +151,7 @@ Both positionals MUST be absolute paths — the relative form fails with `Failed
|
|
|
149
151
|
An interrupted prior run can leave a built sibling **on disk but unregistered**. Nothing that reads `.uipx` `Projects[]` sees it — the pre-gate `--local` check misses, the gate fires, and the build/register step collides: the type's `init` fails *"directory exists / not empty"*, or `uip solution projects add` returns *"Project name already exists"*. **Neither is a failure.** Adopt:
|
|
150
152
|
|
|
151
153
|
1. **Kind-check the collision.** Name present in `uip maestro case registry list --local --output json` → its `Category` identifies a registered owner; a different kind = cross-kind name collision, NOT a prior build → rename the new resource (§1 name-uniqueness) and rebuild. Name absent (`list --local` also reads only `Projects[]`) → read the colliding directory's `project.uiproj` `ProjectType`. Matching kind → adopt:
|
|
152
|
-
2. **Register.** `uip solution projects add` (absolute paths). It can refuse *"Project name already exists"* even when the name is absent from `.uipx` `Projects[]` — its collision check keys on **stale resource declaration files** from a prior registration, not the manifest.
|
|
154
|
+
2. **Register.** `uip solution projects add` (absolute paths). It can refuse *"Project name already exists"* even when the name is absent from `.uipx` `Projects[]` — its collision check keys on **stale resource declaration files** from a prior registration, not the manifest. Clear the stale declaration with `uip solution resources remove <ResourceKey> --solution-folder <SolutionDir> --output json` (key from `uip solution resources list --source local`; removing the `process` entry cascades to its `package` declaration — never delete either file by hand, see [bindings-v2-sync.md § Prune orphaned solution resources](bindings-v2-sync.md#prune-orphaned-solution-resources)), re-run `project add`, then `uip solution resources refresh` regenerates them.
|
|
153
155
|
3. **Continue at §4** (rediscover, verify, bind). Never rebuild, never Retry/Skip, never placeholder — the sibling is already built.
|
|
154
156
|
|
|
155
157
|
Per-type verbs and kind markers: each plugin's § Failure blockquote.
|
|
@@ -298,4 +300,6 @@ The discovery result for each match should include the **entity identifier** (th
|
|
|
298
300
|
|
|
299
301
|
### `registry-resolved.json` content discipline
|
|
300
302
|
|
|
301
|
-
Structured log only — per Rule 9, 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 §
|
|
303
|
+
Structured log only — per Rule 9, 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-lane carryover](planning.md#step-2--locate-and-parse-the-design-document); it never overrides the SDD. Any free-form prose written here gets parroted back into `tasks.md`. `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.
|
|
304
|
+
|
|
305
|
+
<!-- END: registry-discovery.md -->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# SLA Response Shapes
|
|
2
2
|
|
|
3
|
-
Canonical rules for turning an SLA at-risk / breach event into case behavior. Single source of truth — SKILL.md Rule 21,
|
|
3
|
+
Canonical rules for turning an SLA at-risk / breach event into case behavior. Single source of truth — SKILL.md Rule 21, the planner's case authoring rules (SLA response model — design side), [brownfield.md § SLA responses](brownfield.md#sla-responses-in-a-brownfield-edit), and the SLA / condition / task plugins all link here instead of restating it.
|
|
4
4
|
|
|
5
5
|
An SLA **clock** ([plugins/sla/impl-json.md](plugins/sla/impl-json.md)) and its **response** are separate authoring decisions. Read the response off the requirement — never off the SLA's scope.
|
|
6
6
|
|
|
@@ -72,3 +72,5 @@ Probed with `uip maestro case validate` on **uip 1.198.0-preview.102** (2026-07-
|
|
|
72
72
|
| `escalationId: "any"` | **invalid** — same error |
|
|
73
73
|
| dangling `slaId` | **invalid** — "The SLA referenced by rule … no longer exists" |
|
|
74
74
|
| task with `entryConditions: []` or the key absent | valid (defect is invisible to the CLI) |
|
|
75
|
+
|
|
76
|
+
<!-- END: sla-response-shapes.md -->
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Deterministic grammar audit for the compact no-build plan (tasks/tasks.md).
|
|
3
|
+
|
|
4
|
+
Usage:
|
|
5
|
+
python3 audit_plan.py <tasks/tasks.md> [--sdd <sdd.md>]
|
|
6
|
+
|
|
7
|
+
Read-only. Exit 0 = grammar-clean. Exit 1 = numbered findings on stderr;
|
|
8
|
+
repair the plan with Write/Edit and re-run until clean. Enforces the compact
|
|
9
|
+
`tasks/tasks.md` contract (planning.md § Compact no-build T-entry shape): `## T{N}: task "{Task Name}"` headings, one
|
|
10
|
+
`field: value` per line, legal `activation-mode` / `entry-rule` pairs, lanes on
|
|
11
|
+
sequential runs, no registry-derived keys.
|
|
12
|
+
`--sdd` additionally checks every `sla-status-change(...)` reference in the
|
|
13
|
+
SDD for the 2-arg (breach) / 3-arg (at-risk) quoted shape.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
|
|
18
|
+
import re
|
|
19
|
+
import sys
|
|
20
|
+
from pathlib import Path
|
|
21
|
+
|
|
22
|
+
TASK_FIELDS = [
|
|
23
|
+
"stage", "type", "activation-mode", "entry-rule", "lane", "required",
|
|
24
|
+
"run-only-once", "resource-intent", "identity", "rationale",
|
|
25
|
+
]
|
|
26
|
+
# `lane` is only mandatory for sequential runs; checked separately.
|
|
27
|
+
ALWAYS_REQUIRED = [f for f in TASK_FIELDS if f != "lane"]
|
|
28
|
+
|
|
29
|
+
# Compact form (`## T{N}: task "Name"`) or canonical full-form build title
|
|
30
|
+
# (`## T{N}: Add <type> task "Name" to "Stage"`) — both are addressable.
|
|
31
|
+
TASK_HEADING = re.compile(
|
|
32
|
+
r'^## T\d+: (?:task "[^"\n]+"|Add [a-z][a-z-]* task "[^"\n]+" to "[^"\n]+")\s*$'
|
|
33
|
+
)
|
|
34
|
+
ANY_T_HEADING = re.compile(r"^## T\d+\s*[:.]", re.M)
|
|
35
|
+
FORBIDDEN_KEYS = ["taskTypeId", "activityTypeId", "connectionId", "registry-resolved", "recipients-resolved"]
|
|
36
|
+
|
|
37
|
+
# planning.md § Activation-mode audit — the six user-visible task modes plus
|
|
38
|
+
# `parallel-after-predecessor`.
|
|
39
|
+
ACTIVATION_MODES = {
|
|
40
|
+
"sequential", "parallel", "parallel-after-predecessor",
|
|
41
|
+
"event-triggered", "adhoc", "fan-in", "conditional-gate",
|
|
42
|
+
}
|
|
43
|
+
# plugins/conditions/task-entry-conditions/planning.md § activation-mode /
|
|
44
|
+
# rule-type table, keyed by rule. Rules outside this map are explicitly
|
|
45
|
+
# authored event/condition rules and pair with any mode that permits them.
|
|
46
|
+
ENTRY_RULE_MODES = {
|
|
47
|
+
"runs-sequentially": {"sequential", "parallel-after-predecessor"},
|
|
48
|
+
"current-stage-entered": {"parallel"},
|
|
49
|
+
"adhoc": {"adhoc"},
|
|
50
|
+
"selected-tasks-completed": {"fan-in", "conditional-gate"},
|
|
51
|
+
"wait-for-connector": {"event-triggered"},
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def field_value(section: str, field: str) -> str | None:
|
|
56
|
+
match = re.search(rf"(?im)^\s*[-*]?\s*{re.escape(field)}\s*:\s*(.+)$", section)
|
|
57
|
+
return match.group(1).strip() if match else None
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def rule_token(value: str | None) -> str | None:
|
|
61
|
+
"""Leading canonical identifier, dropping any `("selector")` and trailing prose."""
|
|
62
|
+
match = re.match(r"[a-z][a-z0-9-]*", (value or "").strip().strip('`"\' ').casefold())
|
|
63
|
+
return match.group(0) if match else None
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def audit(path: Path) -> list[str]:
|
|
67
|
+
findings: list[str] = []
|
|
68
|
+
sequential_lanes: dict[str, list[tuple[str, int]]] = {}
|
|
69
|
+
text = path.read_text(encoding="utf-8")
|
|
70
|
+
|
|
71
|
+
headings = list(re.finditer(r"(?m)^## (T\d+)[^\n]*$", text))
|
|
72
|
+
if not headings:
|
|
73
|
+
findings.append("no `## T{N}:` entries found — the compact plan uses T-numbered H2 entries")
|
|
74
|
+
return findings
|
|
75
|
+
|
|
76
|
+
for key in FORBIDDEN_KEYS:
|
|
77
|
+
if key in text:
|
|
78
|
+
findings.append(f"forbidden key {key!r} — the no-build plan omits registry-derived data")
|
|
79
|
+
|
|
80
|
+
for index, heading in enumerate(headings):
|
|
81
|
+
end = headings[index + 1].start() if index + 1 < len(headings) else len(text)
|
|
82
|
+
section = text[heading.start():end]
|
|
83
|
+
head_line = section.splitlines()[0]
|
|
84
|
+
label = heading.group(1)
|
|
85
|
+
|
|
86
|
+
is_task_entry = TASK_HEADING.match(head_line) is not None
|
|
87
|
+
looks_like_task = (
|
|
88
|
+
field_value(section, "stage") is not None
|
|
89
|
+
and field_value(section, "activation-mode") is not None
|
|
90
|
+
) or re.search(r"(?i)\btask\b[^\n]*\"", head_line) is not None
|
|
91
|
+
|
|
92
|
+
if not is_task_entry and looks_like_task:
|
|
93
|
+
findings.append(
|
|
94
|
+
f'{label}: task heading must be `## {label}: task "{{Task Name}}"` or the canonical '
|
|
95
|
+
f'`## {label}: Add <type> task "{{Task Name}}" to "{{Stage}}"` (got: {head_line!r})'
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
if not (is_task_entry or looks_like_task):
|
|
99
|
+
continue
|
|
100
|
+
|
|
101
|
+
# One `field: value` per line; semicolon-packed lines hide fields.
|
|
102
|
+
for field in ALWAYS_REQUIRED:
|
|
103
|
+
if field_value(section, field) is None:
|
|
104
|
+
hint = ""
|
|
105
|
+
if re.search(rf"(?i)[;,]\s*{re.escape(field)}\s*:", section):
|
|
106
|
+
hint = " (present mid-line — each field goes on its own line)"
|
|
107
|
+
findings.append(f"{label}: missing `{field}:` line{hint}")
|
|
108
|
+
|
|
109
|
+
activation = (field_value(section, "activation-mode") or "").casefold()
|
|
110
|
+
mode = rule_token(activation)
|
|
111
|
+
rule = rule_token(field_value(section, "entry-rule"))
|
|
112
|
+
if mode is not None and mode not in ACTIVATION_MODES:
|
|
113
|
+
findings.append(
|
|
114
|
+
f"{label}: `activation-mode: {mode}` is not a task mode; use one of "
|
|
115
|
+
f"{', '.join(sorted(ACTIVATION_MODES))}"
|
|
116
|
+
)
|
|
117
|
+
elif mode is not None and rule in ENTRY_RULE_MODES:
|
|
118
|
+
allowed = ENTRY_RULE_MODES[rule]
|
|
119
|
+
if mode not in allowed:
|
|
120
|
+
findings.append(
|
|
121
|
+
f"{label}: `activation-mode: {mode}` cannot carry `entry-rule: {rule}` — "
|
|
122
|
+
f"that rule pairs with {' or '.join(sorted(allowed))} "
|
|
123
|
+
f"(list position never normalizes an authored rule into another mode)"
|
|
124
|
+
)
|
|
125
|
+
lane = field_value(section, "lane")
|
|
126
|
+
if "sequential" in activation and (lane is None or not re.match(r"^\d+$", lane)):
|
|
127
|
+
findings.append(f"{label}: sequential task needs an integer `lane:` line")
|
|
128
|
+
elif "sequential" in activation and lane is not None:
|
|
129
|
+
stage = (field_value(section, "stage") or "").strip('"` ')
|
|
130
|
+
sequential_lanes.setdefault(stage, []).append((label, int(lane)))
|
|
131
|
+
|
|
132
|
+
# Sequential runs use consecutive single-task lanes: no duplicates, no gaps.
|
|
133
|
+
for stage, lanes in sequential_lanes.items():
|
|
134
|
+
numbers = [n for _, n in lanes]
|
|
135
|
+
if sorted(numbers) != list(range(min(numbers), min(numbers) + len(numbers))):
|
|
136
|
+
labels = ", ".join(f"{t}=lane {n}" for t, n in lanes)
|
|
137
|
+
findings.append(
|
|
138
|
+
f"stage {stage!r}: sequential lanes must be consecutive single-task numbers with no duplicates; got {labels}"
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
findings.extend(sla_shape_findings(text, path.name))
|
|
142
|
+
return findings
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
def sla_shape_findings(text: str, source: str) -> list[str]:
|
|
146
|
+
"""sla-status-change references need 2 quoted args (breach) or 3 (at-risk).
|
|
147
|
+
|
|
148
|
+
Zero-quoted-arg mentions are summary/prose shorthand and are not flagged.
|
|
149
|
+
"""
|
|
150
|
+
findings: list[str] = []
|
|
151
|
+
# Every `#### Stage SLA` block declares its title on its own line —
|
|
152
|
+
# a collapsed `**SLA Type:** … **SLA Title:** …` line hides the title
|
|
153
|
+
# from line-start tooling and reference resolution.
|
|
154
|
+
for match in re.finditer(r"(?im)^####\s+Stage SLA\s*$", text):
|
|
155
|
+
block_end = re.search(r"(?m)^#{1,4}\s", text[match.end():])
|
|
156
|
+
block = text[match.end(): match.end() + block_end.start()] if block_end else text[match.end():]
|
|
157
|
+
if not re.search(r"(?im)^\*\*SLA Title:\*\*\s*\S", block):
|
|
158
|
+
line_no = text[: match.start()].count("\n") + 1
|
|
159
|
+
findings.append(
|
|
160
|
+
f"{source}:{line_no}: '#### Stage SLA' block has no line-start '**SLA Title:**' — "
|
|
161
|
+
"render '**SLA Type:**' and '**SLA Title:**' as two separate lines"
|
|
162
|
+
)
|
|
163
|
+
for line_no, line in enumerate(text.splitlines(), 1):
|
|
164
|
+
for call in re.finditer(r"sla-status-change\s*\(([^)]*)\)", line, re.I):
|
|
165
|
+
args = re.findall(r"[\"“‘']([^\"”’']+)[\"”’']", call.group(1))
|
|
166
|
+
if args and len(args) not in (2, 3):
|
|
167
|
+
findings.append(
|
|
168
|
+
f"{source}:{line_no}: sla-status-change reference needs 2 (breach) "
|
|
169
|
+
f"or 3 (at-risk) quoted args; got {len(args)}"
|
|
170
|
+
)
|
|
171
|
+
if args and args[0].strip().casefold() == "case":
|
|
172
|
+
findings.append(
|
|
173
|
+
f"{source}:{line_no}: sla-status-change target 'Case' — the case-level target is the literal 'root'"
|
|
174
|
+
)
|
|
175
|
+
return findings
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
def plan_repeats_sdd_sla_rules(plan: str, sdd: str) -> list[str]:
|
|
179
|
+
"""Every quoted-arg sla-status-change entry declared in the SDD is repeated
|
|
180
|
+
verbatim in the plan (compact-contract requirement) — target + each title."""
|
|
181
|
+
findings: list[str] = []
|
|
182
|
+
declared: list[list[str]] = []
|
|
183
|
+
for call in re.finditer(r"sla-status-change\s*\(([^)]*)\)", sdd, re.I):
|
|
184
|
+
args = re.findall(r"[\"“‘']([^\"”’']+)[\"”’']", call.group(1))
|
|
185
|
+
if args and args not in declared:
|
|
186
|
+
declared.append(args)
|
|
187
|
+
if not declared:
|
|
188
|
+
return findings
|
|
189
|
+
lowered = plan.casefold()
|
|
190
|
+
if "sla-status-change" not in lowered:
|
|
191
|
+
findings.append(
|
|
192
|
+
"the SDD declares sla-status-change entry rules but the plan carries none — "
|
|
193
|
+
"each gets its own T-entry with rule-type: sla-status-change, repeating target and titles verbatim"
|
|
194
|
+
)
|
|
195
|
+
return findings
|
|
196
|
+
for args in declared:
|
|
197
|
+
missing = [a for a in args if a.casefold() not in lowered]
|
|
198
|
+
if missing:
|
|
199
|
+
findings.append(
|
|
200
|
+
f"plan does not repeat the SDD sla-status-change entry {tuple(args)!r} verbatim — missing: {', '.join(missing)}"
|
|
201
|
+
)
|
|
202
|
+
return findings
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
def main() -> None:
|
|
206
|
+
args = list(sys.argv[1:])
|
|
207
|
+
sdd: Path | None = None
|
|
208
|
+
if "--sdd" in args:
|
|
209
|
+
i = args.index("--sdd")
|
|
210
|
+
sdd = Path(args[i + 1])
|
|
211
|
+
del args[i:i + 2]
|
|
212
|
+
if len(args) != 1:
|
|
213
|
+
sys.exit(__doc__)
|
|
214
|
+
findings = audit(Path(args[0]))
|
|
215
|
+
if sdd is not None:
|
|
216
|
+
sdd_text = sdd.read_text(encoding="utf-8")
|
|
217
|
+
findings.extend(sla_shape_findings(sdd_text, sdd.name))
|
|
218
|
+
findings.extend(plan_repeats_sdd_sla_rules(Path(args[0]).read_text(encoding="utf-8"), sdd_text))
|
|
219
|
+
if findings:
|
|
220
|
+
shown = findings[:40]
|
|
221
|
+
print("AUDIT FAIL — repair these, then re-run:", file=sys.stderr)
|
|
222
|
+
for n, f in enumerate(shown, 1):
|
|
223
|
+
print(f" {n}. {f}", file=sys.stderr)
|
|
224
|
+
if len(findings) > len(shown):
|
|
225
|
+
print(f" … and {len(findings) - len(shown)} more", file=sys.stderr)
|
|
226
|
+
sys.exit(1)
|
|
227
|
+
print("AUDIT OK: tasks.md grammar is clean")
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
if __name__ == "__main__":
|
|
231
|
+
main()
|
|
@@ -32,6 +32,7 @@ Every node in a `.flow` file has exactly one author. The validator enforces this
|
|
|
32
32
|
| Patterns | `uipath.pattern.batch-transform`, `uipath.pattern.deep-rag` |
|
|
33
33
|
| Agents | `uipath.agent.autonomous` (inline; after `uip agent init --inline-in-flow`) |
|
|
34
34
|
| Resource nodes | `uipath.core.rpa-workflow.*`, `uipath.core.agent.*`, `uipath.core.flow.*`, `uipath.core.agentic-process.*`, `uipath.core.api-workflow.*`, `uipath.core.human-task.*` |
|
|
35
|
+
| Document extraction | `uipath.ixp.*` — the extraction step must always land a node ([ixp/impl.md](references/plugins/ixp/impl.md#landing-the-node-when-you-cannot-fully-configure-it)) |
|
|
35
36
|
| Queue | `core.action.queue.create`, `core.action.queue.create-and-wait` |
|
|
36
37
|
|
|
37
38
|
**CLI-owned nodes (`uip maestro flow node add` + `uip maestro flow node configure`):**
|
|
@@ -65,14 +66,15 @@ If you find yourself hand-writing `inputs.detail`, a `=jsonString:` blob, or `bi
|
|
|
65
66
|
6. **Every node type needs a `definitions` entry** — copy from `uip maestro flow registry get <node-type>` output. Never hand-write definitions. The definition is the sole source for BPMN type (`model.type`), serviceType, event definitions, and binding/context templates — none of that belongs on the instance.
|
|
66
67
|
7. **Script nodes must `return` an object** — `return { key: value }`, not a bare scalar.
|
|
67
68
|
8. **Validate once at the end** — run `uip maestro flow validate` only after all nodes, edges, and configuration are complete. Do not validate after each individual node add or edit — intermediate states are expected to be invalid.
|
|
68
|
-
9. **
|
|
69
|
+
9. **Author variables with `Edit` against the `.flow` file** — use `Edit` to add/remove/update entries in the `variables` section. `variables.variableUpdates` is `Edit`-only; there is no CLI command for it. Globals do have a CLI surface (`uip maestro flow variable add|list|remove`), but it is scoped to declaring eval inputs — see [shared/variables-and-expressions.md](../shared/variables-and-expressions.md#variable-management-via-cli).
|
|
69
70
|
10. **Every `out` variable must be mapped on every reachable End node** — missing output mappings cause runtime errors. See [shared/variables-and-expressions.md](../shared/variables-and-expressions.md).
|
|
70
71
|
11. **`=js:` prefix is REQUIRED on every `$vars`/`$metadata`/`$self` reference in a value field** — not on condition expressions (decision, switch, HTTP branch), which are auto-evaluated as JS. Without it, the BPMN runtime sees a literal string and `flow validate` fails with MST-9107. See [shared/node-output-wiring.md](../shared/node-output-wiring.md) for the canonical rule and per-node-type field reference, and [shared/variables-and-expressions.md](../shared/variables-and-expressions.md) for the expression system.
|
|
71
72
|
12. **Always run `flow format` after edits** — `uip maestro flow format <ProjectName>.flow` is the canonical layout step. Format arranges nodes horizontally, sets each node's `size` by its canvas shape (inline agents → 288×96, containers → 560×320, everything else → 96×96), and recurses into subflows (`subflows[<id>].layout`). Skipping format is the most common cause of misshapen nodes in Studio Web.
|
|
72
73
|
13. **Don't hand-write `layout.nodes` or `subflows[<id>].layout`** — these are owned by `flow format`. When authoring nodes, any placeholder `position` is fine (e.g. `{ x: 0, y: 0 }`); format rewrites it on save. Sticky notes (`type: "stickyNote"`) are the one exception — format preserves their custom size and position. See [shared/file-format.md — Layout](../shared/file-format.md#layout).
|
|
73
74
|
14. **Every data-producing node MUST have a matching `variables.nodes[]` entry — this is what makes `$vars.<sourceNodeId>.output` resolve.** The BPMN emitter walks `variables.nodes[]` to write the process-level `<uipath:inputOutput>` declarations the runtime needs. The instance `outputs` block is **only** consumed by BPMN serialization on end-style nodes (to map workflow-level `out` variables); for action / trigger nodes it is documentation, not behavior. Skipping `variables.nodes[]` produces a flow that passes `flow validate` but resolves `$vars.<sourceNodeId>.output` to `undefined` at runtime (MST-9972). **Always run `uip maestro flow format` after structural edits — it regenerates `variables.nodes[]` from `nodes[]` + `definitions[]`** (matching what `uip maestro flow node add` and the canvas save path do), so this becomes self-healing as long as you `format`. See [shared/file-format.md — Node outputs](../shared/file-format.md#node-outputs).
|
|
74
75
|
15. **Node instances have no `model` block** — BPMN type, serviceType, version, event definitions, and binding/context templates live in the node's **definition** (in the top-level `definitions[]` array, copied verbatim from `registry get`). The runtime hydrates these from the definition at serialization time. Instance-specific identity fields live under `inputs`: `entryPointId`, `isDefaultEntryPoint` (triggers), `color`/`content` (sticky notes), and `source` (every inline-agent-related node — both `uipath.agent.autonomous` and every attached `uipath.agent.resource.*` node use `inputs.source = <UUID>`; their definitions declare `model.source: true` and flow-core hoists onto the instance).
|
|
75
|
-
16. **
|
|
76
|
+
16. **Error handling is off by default — never enable it on a node that handles no stated failure.** Leave `inputs.errorHandlingEnabled` unset and add no `error` edge unless the requirements say what should happen when that node fails ("if the call fails…", "return X for invalid input", "handle timeouts"). An unhandled failure must fault the flow. When you do wire an `error` edge, it must reach a terminal the caller can distinguish from success — never the next happy-path node or the success End node. Without this, a failed run reports success. See [shared/file-format.md — Implicit error port on action nodes](../shared/file-format.md#implicit-error-port-on-action-nodes).
|
|
77
|
+
17. **Never invent the business meaning or format of a named output — elicit it.** When a request names an output (`caseKey`, `severity`, `status`, `ticketId`, …) but does not define how its value is derived, treat that as a business decision, not a coding choice — whether an identifier passes through unchanged or is reformatted (prefixed, combined, recomputed) is the user's rule to state, not yours to guess. Ask before building ([SKILL.md rule #5](../../SKILL.md#critical-rules-universal) — dropdown + "Something else"), or state your assumption explicitly and get confirmation. A guessed format produces a flow that passes `flow validate` yet returns the wrong value at runtime — the validator checks structure, never business correctness.
|
|
76
78
|
|
|
77
79
|
## Workflow
|
|
78
80
|
|
|
@@ -115,9 +117,11 @@ If you find yourself hand-writing `inputs.detail`, a `=jsonString:` blob, or `bi
|
|
|
115
117
|
|
|
116
118
|
- **Prefer running `uip maestro flow init` from inside the solution you named** — run outside one it auto-scaffolds `<Project>Solution/`, but the auto name won't match your chosen solution name. Never pass `--skip-solution-registration` for a project you intend to upload (it leaves a bare single-nested layout). See [SKILL.md rule #6](../../SKILL.md#critical-rules-universal) for the required double-nested `<Solution>/<Project>/<Project>.flow` layout and the self-check.
|
|
117
119
|
- **Never guess node schemas** — use `registry get` for all node types. Guessed port names or input fields cause silent wiring failures.
|
|
118
|
-
- **Never guess the value or format of a business output** — when a request names an output (`caseKey`, `ticketId`, `severity`, …) without saying how to derive it, elicit the rule ([SKILL.md rule #5](../../SKILL.md#critical-rules-universal)) or confirm your assumption before building. Inventing a format — e.g. prefixing an id that should pass through unchanged — yields a flow that passes `flow validate` but returns the wrong business outcome at runtime. See rule #
|
|
120
|
+
- **Never guess the value or format of a business output** — when a request names an output (`caseKey`, `ticketId`, `severity`, …) without saying how to derive it, elicit the rule ([SKILL.md rule #5](../../SKILL.md#critical-rules-universal)) or confirm your assumption before building. Inventing a format — e.g. prefixing an id that should pass through unchanged — yields a flow that passes `flow validate` but returns the wrong business outcome at runtime. See rule #17 above.
|
|
119
121
|
- **Never skip capability discovery for connector nodes** — run `registry search` to confirm the connector exists and what operations it supports before building. See [connector/planning.md](references/plugins/connector/planning.md). Skipping this is the #1 cause of designing around a connector that doesn't exist or an operation it doesn't support.
|
|
120
122
|
- **Never replace a registered connector operation with `core.logic.mock` because configuration cannot run** — if `registry search` / `registry get` finds `uipath.connector.<connector-key>.<operation>`, add that real connector node via `uip maestro flow node add`. Missing live connections, missing tenant access, or prompts that ask you to only plan `--detail` mean: run `node add`, write the planned `--detail` payload to a sidecar file (e.g. `<nodeId>.detail.json`), and surface "configure pending" as an Open Question. **Do not leave a partial `inputs.detail` on the node** — the validator rejects hand-authored envelopes, and the node will not pass `flow validate` until `node configure` is run. Studio Web and reviewers need the real connector key in the `.flow`; the agent must report this explicitly rather than letting the user discover it via a later validation failure. See [§ Node ownership](#node-ownership--who-authors-the-node) and [connector/impl.md — No-Live-Tenant / Planned Configuration](references/plugins/connector/impl.md#no-live-tenant--planned-configuration).
|
|
123
|
+
- **Never set `inputs.errorHandlingEnabled: true` on a node with no outgoing `error` edge** — the flag is CLI-owned (`edge add --source-port error` and `flow format` derive it from the error edges actually present). A hand-set flag with no handler suppresses the node's fault, so the failure is swallowed and the run reports success. See rule #16 above.
|
|
124
|
+
- **Never route an `error` port back into the happy path** — an error edge into the next happy-path node, or into the same End node the success path reaches, makes every failed run report `Completed` with success-shaped outputs. Send it to a distinct End node with an error/status output, to `core.logic.terminate`, or to a branch that genuinely recovers.
|
|
121
125
|
- **Never edit `content/*.bpmn`** — it is auto-generated from the `.flow` file and will be overwritten.
|
|
122
126
|
- **Never use `core.logic.mock` when the resource is in the same solution** — use `--local` discovery instead. Mock placeholders are only for resources that are not in the current solution and not yet published.
|
|
123
127
|
- **Never hand-write `definitions` entries** — always copy from registry output. Hand-written definitions have wrong port schemas and cause validation failures.
|
|
@@ -134,7 +138,7 @@ If you find yourself hand-writing `inputs.detail`, a `=jsonString:` blob, or `bi
|
|
|
134
138
|
- **Never hand-write `definitions[]` or `inputs.*` for managed HTTP nodes** — use `uip maestro flow node add` (with `--input` for `branches` / `timeout` / `retryCount`) and `uip maestro flow node configure` (for `inputs.detail`). These are the only supported authoring paths. Hand-written `definitions[]` strips required manifest fields; hand-written `inputs.detail` misses `essentialConfiguration` and fails at runtime. See [http/impl.md](references/plugins/http/impl.md).
|
|
135
139
|
- **Never write `$vars.X` (or `$metadata.X`, `$self.X`) without `=js:` in value fields** — `flow validate` flags this as MST-9107. See rule #11 above and [shared/node-output-wiring.md](../shared/node-output-wiring.md) for the per-node-type field reference.
|
|
136
140
|
- **Never reuse a reference ID (mailbox folder, Slack channel, Jira project, Google Sheet, etc.) from a prior flow or session** — reference IDs are scoped to the specific authenticated account behind the connection. A `parentFolderId` from one Outlook mailbox is invalid in another; a Slack channel ID from one workspace is invalid in another. A reused ID passes `flow validate` and `node configure` cleanly, then faults silently at runtime with no resolvable error. Always re-resolve via `uip is resources run list <connector-key> <objectName> --connection-id <CURRENT_CONNECTION_ID> --output json` against the connection bound to this flow — do not paste a value you saw in another flow. See [connector/impl.md — Step 4](references/plugins/connector/impl.md) and [connector-trigger/impl.md — Step 3](references/plugins/connector-trigger/impl.md).
|
|
137
|
-
- **Never include `[*]` literally in a connector `bodyParameters` / `queryParameters` / `pathParameters` key** — `[*]` in `requestFields[].name` is an array marker
|
|
141
|
+
- **Never include `[*]` literally in a connector `bodyParameters` / `queryParameters` / `pathParameters` key** — `[*]` in `requestFields[].name` is an array marker. Strip it and pass a `=js:` expression returning the array (e.g. `"fields.labels[*]"` → `"fields.labels": "=js:(['a', 'b'])"`). Never a literal JSON array — it validates but does not bind. Supported only when `[*]` is the name suffix; `[*]. See [connector/impl.md — Step 6b](references/plugins/connector/impl.md) for the full table including expression-value handling.
|
|
138
142
|
|
|
139
143
|
## References
|
|
140
144
|
|
|
@@ -16,7 +16,8 @@ The primitive commands below are support commands for carve-out workflows only.
|
|
|
16
16
|
uip maestro flow node add <ProjectName>.flow <node-type> --output json \
|
|
17
17
|
--input '<INPUT_JSON>' \
|
|
18
18
|
--label "<LABEL>" \
|
|
19
|
-
--position <X>,<Y>
|
|
19
|
+
--position <X>,<Y> \
|
|
20
|
+
--parent <PARENT_NODE_ID>
|
|
20
21
|
```
|
|
21
22
|
|
|
22
23
|
**What the CLI handles automatically:**
|
|
@@ -31,6 +32,7 @@ uip maestro flow node add <ProjectName>.flow <node-type> --output json \
|
|
|
31
32
|
| `--input` | No | JSON object of node-specific inputs (expression, script, URL, etc.). Omit for nodes with no inputs (merge, end, terminate). |
|
|
32
33
|
| `--label` | No | Display label shown on the canvas |
|
|
33
34
|
| `--position` | No | `x,y` coordinates. Any value is fine (e.g. `0,0`) — `flow format` rewrites positions on save. |
|
|
35
|
+
| `--parent` | No | ID of an existing container node (e.g. a `core.logic.loop`). Sets `parentId` on the new node, placing it inside that container. Required for every node in a loop body — see [loop/impl.md](plugins/loop/impl.md). |
|
|
34
36
|
| `--output json` | Yes (for parsing) | Structured JSON response with the assigned node `id` |
|
|
35
37
|
|
|
36
38
|
**Shell quoting tip:** If `--input` JSON contains special characters (quotes, braces, `$vars`), write it to a temp file and pass `--input "$(cat /tmp/input.json)"`.
|
|
@@ -177,7 +179,7 @@ These operations require the `Edit` tool. Use the [Edit / Write strategy guide](
|
|
|
177
179
|
|
|
178
180
|
1. **Any non-carve-out structural edit** — node/edge CRUD, scheduled triggers, HITL QuickForm nodes, inline-agent nodes, non-connector resources, and graph rewiring
|
|
179
181
|
2. **Node input updates** — the CLI does not have a `node update` command; use `Edit` to preserve node IDs and `$vars.{nodeId}` references
|
|
180
|
-
3. **Workflow variables** —
|
|
181
|
-
4. **Variable updates** — add/modify `variables.variableUpdates` entries
|
|
182
|
+
3. **Workflow variables while authoring** — updating `variables.globals` in place, and any `subType`/`schema`/`defaultValue` change. There *is* a CLI surface for declaring globals (`uip maestro flow variable add|list|remove`), but it is scoped to declaring eval inputs — see [variables-and-expressions.md § Variable Management via CLI](../../shared/variables-and-expressions.md#variable-management-via-cli)
|
|
183
|
+
4. **Variable updates** — add/modify `variables.variableUpdates` entries. No CLI command exists for these
|
|
182
184
|
5. **Output mapping on End nodes** — add `outputs` object with `source` expressions
|
|
183
185
|
6. **Subflows** — create `subflows.{nodeId}` with nested nodes, edges, variables
|
|
@@ -30,7 +30,7 @@ Before editing the `.flow` file, ensure each of the following is handled. These
|
|
|
30
30
|
1. **Locate the canonical `.flow` file.** Before any `Edit` / `Write`, find the flow project directory — it is the directory that contains `project.uiproj`. The canonical `.flow` lives **next to** that `project.uiproj`, not at the solution root. Commands like `uip solution init <Name>` + `uip maestro flow init <Name>` create nested paths (`<Name>/<Name>/project.uiproj`); the `.flow` you must edit is `<Name>/<Name>/<Name>.flow`, not `<Name>/<Name>.flow`. Run `find . -name project.uiproj -type f` and pin every `Edit` / `Write` call to the sibling file. `uip maestro flow validate <PATH>.flow` will accept a misplaced file, so validation alone does **not** confirm the right target — only the colocation with `project.uiproj` does.
|
|
31
31
|
2. **Definitions and versions.** For every new node type, run `uip maestro flow registry get <type> --output json`. Copy the returned node definition object **verbatim** into `definitions[]` — one entry per unique `type:typeVersion`. Depending on CLI/plugin version, the node definition may appear as `Data.Node` or as the top-level object containing fields such as `nodeType`, `version`, and `handleConfiguration`; copy that node object, not the surrounding `Result` / `Code` envelope. Then set each node instance's `typeVersion` to match the copied definition's `version` exactly — string match, no normalization. Never hand-write or paraphrase definitions (see "Every node type needs a `definitions` entry" in [the Author capability index](../CAPABILITY.md)). For node types with a documented `uip maestro flow node add` carve-out (managed HTTP, connector activities, connector triggers), use the CLI — see [http/impl.md — Step 1](plugins/http/impl.md#add-the-node).
|
|
32
32
|
3. **Unique node ID.** Pick a camelCase ID that does not collide with existing node IDs. Prefer meaningful names (`fetchUsers`, `filterActive`) since they become part of every `$vars.<nodeId>.*` expression.
|
|
33
|
-
4. **`sourcePort` and `targetPort` on every edge.** Omitting `targetPort` is the #1 validation error (see "`targetPort` is required on every edge" in [the Author capability index](../CAPABILITY.md)). Use `sourcePort`, never `sourceHandle`; `sourceHandle` is not part of the `.flow` edge schema and produces a precise schema error such as `[error] [edges[N].sourcePort] Invalid input: expected string, received undefined` (the path tells you exactly which edge entry is missing the `sourcePort` key). Look up ports in the relevant plugin's `planning.md` or in [file-format.md — Standard ports](../../shared/file-format.md). If an edge uses `sourcePort: "error"`, the source node must also have `inputs.errorHandlingEnabled: true`; `uip maestro flow format` self-heals this, but direct JSON edits must set it.
|
|
33
|
+
4. **`sourcePort` and `targetPort` on every edge.** Omitting `targetPort` is the #1 validation error (see "`targetPort` is required on every edge" in [the Author capability index](../CAPABILITY.md)). Use `sourcePort`, never `sourceHandle`; `sourceHandle` is not part of the `.flow` edge schema and produces a precise schema error such as `[error] [edges[N].sourcePort] Invalid input: expected string, received undefined` (the path tells you exactly which edge entry is missing the `sourcePort` key). Look up ports in the relevant plugin's `planning.md` or in [file-format.md — Standard ports](../../shared/file-format.md). If an edge uses `sourcePort: "error"`, the source node must also have `inputs.errorHandlingEnabled: true`; `uip maestro flow format` self-heals this, but direct JSON edits must set it. Only those nodes — setting the flag on a node with no `error` edge swallows its failures (see [file-format.md — Default: off](../../shared/file-format.md#default-off--enable-only-for-a-failure-the-flow-actually-handles)).
|
|
34
34
|
5. **Node outputs block (End / Terminate only).** End-style nodes consume their `outputs` block at runtime to map workflow-level `out` variables — see [end/impl.md](plugins/end/impl.md). For action / trigger nodes the instance `outputs` block is **not** consumed by BPMN serialization; the runtime reads the manifest's `outputDefinition` instead. Authoring an action-node `outputs` block matching the manifest is fine and is what the canonical examples show, but adding it does **not** make `$vars.<sourceNodeId>.output` resolve downstream — that contract is `variables.nodes[]` (next item).
|
|
35
35
|
6. **`variables.nodes[]` (REQUIRED for every data-producing node — this is what powers `$vars.X.output`).** For each data-producing node, add an entry per output (`output` for action / trigger nodes, plus `error` for action nodes). The BPMN emitter walks `variables.nodes[]` to write the process-level `<uipath:inputOutput id="<nodeId>.<outputId>">` declarations the runtime needs; without them, downstream `$vars.<sourceNodeId>.output` resolves to `undefined` even though `flow validate` passes (MST-9972). The shape per entry: `{ "id": "<nodeId>.<outputId>", "type": "object", "binding": { "nodeId": "<nodeId>", "outputId": "<outputId>" } }`. After your edits, **`uip maestro flow format` regenerates this block from `nodes[]` + `definitions[]`** — running format makes any direct-authored omission self-healing.
|
|
36
36
|
7. **On delete — cascade manually.** Remove the node from `nodes`. Then sweep `edges[]` for any with matching `sourceNodeId`/`targetNodeId`. Then prune `definitions[]` if this was the last user of the type. Then check `bindings_v2.json` — but only remove a connector binding if no remaining node uses the same connector (bindings are shared at the connector level).
|
|
@@ -119,6 +119,8 @@ Reach for `jq` / `python3` only when JMESPath cannot express the operation (mult
|
|
|
119
119
|
}
|
|
120
120
|
```
|
|
121
121
|
|
|
122
|
+
> **Loop body nodes — set `parentId`.** When adding a node inside a `core.logic.loop` body, add `"parentId": "<LOOP_NODE_ID>"` to the node object. Without it, the runtime executes the node outside the loop context — `$vars.<loopId>.currentItem` is inaccessible and per-iteration state does not update. This applies to **every** node type inside the loop (HTTP, script, connector, etc.). See [loop/impl.md](plugins/loop/impl.md).
|
|
123
|
+
|
|
122
124
|
**Orchestrator-job nodes (api-workflow, rpa-workflow, agent, agentic-process, function): declare `error` only (`source: "=Error"`) — `output` is derived.** The converter copies an authored `source` verbatim there, and injects `{name: "output", type: "jsonSchema", source: "=this", var: "output"}` only when a non-empty `outputs` omits `output`. So authoring `output` with `"=result.response"` on one of those leaves `$vars.{nodeId}.output` null at runtime while `flow validate` passes. Every other node type ignores the instance `outputs` block (DAP nodes — connector, HTTP, triggers — `Intsvc.*` — and script/transform take outputs from the manifest; inline agents have theirs overwritten; queue nodes never read it), so `error`-only stays a safe default everywhere and a manifest-matching `output` entry is harmless documentation. Downstream reads `$vars.{nodeId}.output` in every case.
|
|
123
125
|
|
|
124
126
|
> **`display` is required on every node** — including control-flow nodes (`core.control.end`, `core.logic.terminate`) where it may feel optional. Omitting it produces a vague `[(root)] Schema validation failed: Invalid input: expected object, received undefined` from `uip maestro flow validate`, which does NOT pinpoint the missing field. Always include `"display": { "label": "<label>" }` on every node, even bare end nodes. See [file-format.md — Node instance](../../shared/file-format.md#node-instance).
|
|
@@ -214,7 +216,7 @@ Use `Edit` to add an edge object to the `edges` array:
|
|
|
214
216
|
|
|
215
217
|
**Critical:** the outgoing port field is named `sourcePort`, not `sourceHandle`. `sourceHandle` is a UI/runtime term, not valid `.flow` JSON.
|
|
216
218
|
|
|
217
|
-
**Critical:** for `sourcePort: "error"`, also set `inputs.errorHandlingEnabled: true` on the source node. Without the flag, Studio Web hides the source handle and `uip maestro flow validate` fails.
|
|
219
|
+
**Critical:** for `sourcePort: "error"`, also set `inputs.errorHandlingEnabled: true` on the source node. Without the flag, Studio Web hides the source handle and `uip maestro flow validate` fails. The converse is equally strict: **never set the flag on a node that has no `error` edge** — it suppresses the node's fault and the run reports success while the work failed. See [file-format.md — Default: off](../../shared/file-format.md#default-off--enable-only-for-a-failure-the-flow-actually-handles).
|
|
218
220
|
|
|
219
221
|
**Edge ID:** `edge_<SOURCE_NODE_ID>_<SOURCE_PORT>_<TARGET_NODE_ID>_<TARGET_PORT>`.
|
|
220
222
|
|
|
@@ -308,7 +310,11 @@ Use `Edit` to add an entry to `variables.variableUpdates.<NODE_ID>`:
|
|
|
308
310
|
"<NODE_ID>": [
|
|
309
311
|
{
|
|
310
312
|
"variableId": "<INOUT_VARIABLE_ID>",
|
|
311
|
-
"expression":
|
|
313
|
+
"expression": {
|
|
314
|
+
"type": "jsExpression",
|
|
315
|
+
"expression": "<BARE_JS_NO_PREFIX>",
|
|
316
|
+
"fieldType": "<TARGET_VARIABLE_TYPE>"
|
|
317
|
+
}
|
|
312
318
|
}
|
|
313
319
|
]
|
|
314
320
|
}
|
|
@@ -318,6 +324,10 @@ Use `Edit` to add an entry to `variables.variableUpdates.<NODE_ID>`:
|
|
|
318
324
|
|
|
319
325
|
Only `inout` variables can be updated. `in` variables are read-only.
|
|
320
326
|
|
|
327
|
+
> **`expression` is an object here, not a `=js:` string** — unlike `inputs` and End-node `outputs[].source`, which still accept the string form. Set `fieldType` to the target variable's declared `type` (`integer` → `number`); `flow validate` does not cross-check it against the variable, so a mismatch passes silently. The string form does not: it fails with `[MIGRATION] Workflow migration failed at 1.9→1.10 … Offending field(s): variables.variableUpdates.<NODE_ID>.0.expression`.
|
|
328
|
+
|
|
329
|
+
> **There is no CLI command for variable updates.** `Edit` is the only way to write them.
|
|
330
|
+
|
|
321
331
|
---
|
|
322
332
|
|
|
323
333
|
## Composite Operations
|
|
@@ -436,7 +446,7 @@ Use `Edit` to modify the start node in-place (no delete/re-add needed):
|
|
|
436
446
|
"edges": [ ... ],
|
|
437
447
|
"variables": {
|
|
438
448
|
"globals": [
|
|
439
|
-
{ "id": "<IN_VAR>", "direction": "in", "type": "..." },
|
|
449
|
+
{ "id": "<IN_VAR>", "direction": "in", "type": "...", "triggerNodeId": "sfStart" },
|
|
440
450
|
{ "id": "<OUT_VAR>", "direction": "out", "type": "..." }
|
|
441
451
|
],
|
|
442
452
|
"nodes": []
|
|
@@ -43,8 +43,8 @@ Use this table to determine which strategy to follow for each operation. **Edit
|
|
|
43
43
|
| Add an edge | **Edit / Write** | — | Remember `targetPort` (Rule #6). |
|
|
44
44
|
| Delete an edge | **Edit / Write** | — | |
|
|
45
45
|
| Update node inputs | **Edit** | — | In-place edit; preserves node ID and `$vars`. **Exception:** managed HTTP `inputs.branches` / `timeout` / `retryCount` must be set at `node add --input` time — to change them, `uip maestro flow node remove` and re-add with new `--input`. |
|
|
46
|
-
| Add/edit workflow variable | **Edit** | — | Edit-
|
|
47
|
-
| Add variable update | **Edit** | — | Edit-only
|
|
46
|
+
| Add/edit workflow variable | **Edit** | — | `Edit` when authoring. `uip maestro flow variable add\|list\|remove` exists for declaring eval inputs — see [variables-and-expressions.md § Variable Management via CLI](../../shared/variables-and-expressions.md#variable-management-via-cli). |
|
|
47
|
+
| Add variable update | **Edit** | — | Edit-only. No CLI command exists. |
|
|
48
48
|
| Map outputs on End node | **Edit** | — | Edit-only. |
|
|
49
49
|
| Create a subflow | **Edit / Write** | — | Edit-only (or `Write` for fresh template). |
|
|
50
50
|
| Replace trigger (non-connector) | **Edit** | — | |
|
|
@@ -84,7 +84,7 @@ These apply regardless of which strategy you use.
|
|
|
84
84
|
|
|
85
85
|
- `targetPort` is required on every edge — validate rejects edges without it
|
|
86
86
|
- See [file-format.md — Standard ports](../../shared/file-format.md) for port names by node type
|
|
87
|
-
- Dynamic ports: decision (`true`/`false`), switch (`case-{id}`/`default`), HTTP (`branch-{id}`/`default`), loop (`
|
|
87
|
+
- Dynamic ports: decision (`true`/`false`), switch (`case-{id}`/`default`), HTTP (`branch-{id}`/`default`), loop (`start`/`continue`/`break` inner, `success`/`error` outer)
|
|
88
88
|
|
|
89
89
|
### Validation
|
|
90
90
|
|
|
@@ -35,7 +35,7 @@ Steps 0–6 are **logical phases**, not separate turns. A typical greenfield bui
|
|
|
35
35
|
|
|
36
36
|
| Turn | Steps | What you emit in ONE assistant message |
|
|
37
37
|
|---|---|---|
|
|
38
|
-
| **T1 — Setup + discovery** | 0, 1, 2, 3 | One chained `Bash` (scaffold + register + pull + `node add` for each CLI-owned node) **+** parallel `Bash` (one `registry get` per OOTB type you'll inline) **+** parallel `Read` (plugin `impl.md`s)
|
|
38
|
+
| **T1 — Setup + discovery** | 0, 1, 2, 3 | One chained `Bash` (scaffold + register + pull + `node add` for each CLI-owned node) **+** parallel `Bash` (one `registry get` per OOTB type you'll inline) **+** parallel `Read` (plugin `impl.md`s). **If existing `.uipx` solutions are present, the Step 2 gate fires first in its own turn** — resolve it before this chain. |
|
|
39
39
|
| **T2 — Read + author** | 4 | One `Read` of the `.flow` **+** a batch of `Edit` calls (or one `Write` if ≥70% of nodes change). Claude Code serializes Edits on the same file, so they don't race |
|
|
40
40
|
| **T3 — Finalize** | 5, 6 | One chained `Bash` (`node configure && validate && format`). On validate failure: one Edit turn, then re-chain `validate && format` |
|
|
41
41
|
|
|
@@ -222,6 +222,15 @@ Then pick the first match down this ladder:
|
|
|
222
222
|
|
|
223
223
|
Manual HTTP is the **bottom of the ladder** — only the search returning no connector authorizes it. Picking it without searching is the brand-name shortcut forbidden by [SKILL.md rule #3](../../../SKILL.md#critical-rules-universal).
|
|
224
224
|
|
|
225
|
+
### Document-extraction step — route it to IxP (runs even when full planning is skipped)
|
|
226
|
+
|
|
227
|
+
Pulling **named fields out of documents** (PDFs, scans, receipts, invoices, contracts, forms) is a document-extraction step — its node is an **IxP node** (`uipath.ixp.*`). It's easy to miss because the fetch/post steps around it are ordinary nodes, but the extraction in between is its own node. **Always land a node for it — never leave it out:**
|
|
228
|
+
|
|
229
|
+
- **Model published** → land the real `uipath.ixp.*` node (skeleton is fine; defer config to Open Questions).
|
|
230
|
+
- **No model published** (`registry search "uipath.ixp"` → `Data: []`) → land a `core.logic.mock`.
|
|
231
|
+
|
|
232
|
+
See [plugins/ixp/impl.md — Landing the node when you cannot fully configure it](plugins/ixp/impl.md#landing-the-node-when-you-cannot-fully-configure-it).
|
|
233
|
+
|
|
225
234
|
**In-solution discovery (no login required):**
|
|
226
235
|
|
|
227
236
|
```bash
|
|
@@ -256,9 +265,9 @@ Anchor each Edit using its target array's own opening key, located in the text y
|
|
|
256
265
|
| Edit target | Anchor on (from the text you Read) | How to insert |
|
|
257
266
|
|---|---|---|
|
|
258
267
|
| Append to `nodes[]` | The **2-space-indented** `\n "nodes": [` (the top-level array — deeper-indented `"nodes": ["` inside definitions do not match the two-leading-space prefix) plus the `start` node's opening `{ "id": "start"`. | Insert the new node object as the first element, immediately after the `[`: `\n { new node JSON },`. Head-insertion keeps `old_string` clear of the array's closing `]`. |
|
|
259
|
-
| Append to `edges[]` | The **2-space-indented** `\n "edges": [`.
|
|
268
|
+
| Append to `edges[]` | The **2-space-indented** `\n "edges": [`. A newly generated scaffold commonly has `\n "edges": []`; the 2-space prefix distinguishes it from nested `edges` arrays. | When empty, replace `\n "edges": []` with `\n "edges": [\n { new edge JSON }\n ]`. When non-empty, anchor through the first edge and insert the new edge as the first element. |
|
|
260
269
|
| Append to `definitions[]` | `"definitions": [` plus the first definition's opening bytes. Top-level `definitions[]` is the only one in the file, so this is reliably unique. | Insert the new definition right after the opening `[`, as the first element. Never anchor on whatever key follows `definitions` — that key varies (`runtime`, `bindings`, `variables`, `layout`, depending on CLI version and what the flow contains). |
|
|
261
|
-
| Add an entry to `layout.nodes` | `"layout": {\n "nodes": {\n "start":` — `start` is the always-present trigger and the first key under `layout.nodes` in
|
|
270
|
+
| Add an entry to `layout.nodes` | `"layout": {\n "nodes": {\n "start":` — `start` is the always-present trigger and the first key under `layout.nodes` in newly generated flows. The top-level `"layout": {` is the only one. | `"layout":` + `"start":` jointly disambiguate. Insert `"<newId>": { ... },\n ` before `"start":`. CLI-owned nodes added via `node add` already have a `layout.nodes` entry — only add entries for nodes you author by hand (e.g. End). |
|
|
262
271
|
|
|
263
272
|
**Why head-insertion.** Inserting the new element right after the array's opening `[` means the `old_string` never includes the array's closing `]` — so it cannot collide with a closing `]` from a nested object (`form.sections[].fields[]`), and it never references a sibling top-level key whose position is not guaranteed. JSON array element order is not semantically significant for `nodes` / `edges` / `definitions`, so head vs. tail insertion is equivalent; `flow format` normalizes layout regardless.
|
|
264
273
|
|