@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.
Files changed (205) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.cursor-plugin/plugin.json +32 -0
  4. package/CODEOWNERS +25 -4
  5. package/README.md +1 -0
  6. package/assets/skill-status.json +8 -0
  7. package/assets/uip-catalog-snapshot.json +113 -41
  8. package/assets/uipath-icon.png +0 -0
  9. package/commands/install-permissions.md +1 -0
  10. package/package.json +3 -2
  11. package/skills/uipath-admin/SKILL.md +1 -1
  12. package/skills/uipath-admin/references/authorization/permission-catalog.md +61 -1
  13. package/skills/uipath-admin/references/authorization/role-management.md +3 -1
  14. package/skills/uipath-admin/references/diagnose/references/failure-modes.md +29 -4
  15. package/skills/uipath-admin/references/diagnose/references/troubleshooting-guide.md +13 -0
  16. package/skills/uipath-agents/SKILL.md +1 -0
  17. package/skills/uipath-agents/references/coded/capabilities/context-grounding.md +3 -3
  18. package/skills/uipath-agents/references/coded/capabilities/guardrails/guardrails-recommend.md +6 -1
  19. package/skills/uipath-agents/references/coded/capabilities/guardrails/guardrails.md +89 -1
  20. package/skills/uipath-agents/references/coded/embedding-in-flows.md +17 -1
  21. package/skills/uipath-agents/references/coded/frameworks/llamaindex-integration.md +64 -2
  22. package/skills/uipath-agents/references/coded/lifecycle/deployment.md +3 -0
  23. package/skills/uipath-agents/references/coded/lifecycle/environment-variables.md +90 -0
  24. package/skills/uipath-agents/references/coded/lifecycle/file-sync.md +3 -1
  25. package/skills/uipath-agents/references/coded/quickstart.md +10 -6
  26. package/skills/uipath-agents/references/lowcode/capabilities/guardrails/guardrails-recommend.md +20 -5
  27. package/skills/uipath-agents/references/lowcode/capabilities/guardrails/guardrails.md +13 -0
  28. package/skills/uipath-agents/references/lowcode/capabilities/inline-in-flow/inline-in-flow.md +1 -3
  29. package/skills/uipath-api-workflow/references/operating-published-workflows.md +17 -6
  30. package/skills/uipath-automationhub/SKILL.md +58 -0
  31. package/skills/uipath-automationhub/references/api-endpoints.md +140 -0
  32. package/skills/uipath-automationhub/references/get-process.md +69 -0
  33. package/skills/uipath-automationhub/references/publish-process.md +171 -0
  34. package/skills/uipath-coded-apps/SKILL.md +24 -11
  35. package/skills/uipath-coded-apps/references/commands-reference.md +29 -29
  36. package/skills/uipath-coded-apps/references/create-action-app.md +4 -0
  37. package/skills/uipath-coded-apps/references/create-web-app.md +10 -0
  38. package/skills/uipath-coded-apps/references/debug.md +16 -0
  39. package/skills/uipath-coded-apps/references/oauth-client-setup.md +3 -1
  40. package/skills/uipath-coded-apps/references/oauth-scopes.md +39 -4
  41. package/skills/uipath-coded-apps/references/pack-publish-deploy.md +37 -21
  42. package/skills/uipath-coded-apps/references/sdk/conversational-agent.md +2 -0
  43. package/skills/uipath-coded-apps/references/sdk/data-fabric.md +2 -0
  44. package/skills/uipath-coded-apps/references/sdk/orchestrator.md +2 -0
  45. package/skills/uipath-coded-apps/references/widgets/conversational-agent-chat.md +90 -0
  46. package/skills/uipath-coded-apps/references/widgets/datatable.md +97 -0
  47. package/skills/uipath-coded-apps/references/widgets/external-auth.md +97 -0
  48. package/skills/uipath-coded-apps/references/widgets/multi-file-upload.md +98 -0
  49. package/skills/uipath-coded-apps/references/widgets/pdf-viewer.md +122 -0
  50. package/skills/uipath-coded-apps/references/widgets/validation-station.md +1 -1
  51. package/skills/uipath-functions/SKILL.md +11 -0
  52. package/skills/uipath-insights/SKILL.md +52 -247
  53. package/skills/uipath-insights/references/filter-discovery-guide.md +106 -0
  54. package/skills/uipath-insights/references/investigation-playbook-guide.md +24 -16
  55. package/skills/uipath-insights/references/jobs-commands-guide.md +196 -53
  56. package/skills/uipath-ixp/SKILL.md +10 -4
  57. package/skills/uipath-ixp/references/cli-reference.md +59 -5
  58. package/skills/uipath-ixp/references/label-documents-guide.md +12 -5
  59. package/skills/uipath-maestro-bpmn/SKILL.md +27 -9
  60. package/skills/uipath-maestro-bpmn/references/diagnose/references/failure-modes.md +6 -3
  61. package/skills/uipath-maestro-bpmn/references/operate/CAPABILITY.md +1 -1
  62. package/skills/uipath-maestro-bpmn/references/operate/references/ship.md +9 -3
  63. package/skills/uipath-maestro-bpmn/references/registry-workflow.md +1 -1
  64. package/skills/uipath-maestro-bpmn/references/shared/local-metadata-regeneration-guide.md +18 -11
  65. package/skills/uipath-maestro-bpmn/references/structural-bpmn.md +13 -7
  66. package/skills/uipath-maestro-case/SKILL.md +138 -170
  67. package/skills/uipath-maestro-case/references/bindings-and-expressions.md +14 -1
  68. package/skills/uipath-maestro-case/references/bindings-v2-sync.md +25 -1
  69. package/skills/uipath-maestro-case/references/brownfield.md +7 -3
  70. package/skills/uipath-maestro-case/references/case-commands.md +63 -8
  71. package/skills/uipath-maestro-case/references/case-editing-operations.md +11 -8
  72. package/skills/uipath-maestro-case/references/case-schema.md +5 -3
  73. package/skills/uipath-maestro-case/references/case-spec-input-details.md +4 -0
  74. package/skills/uipath-maestro-case/references/connector-integration.md +3 -1
  75. package/skills/uipath-maestro-case/references/connector-trigger-impl.md +236 -0
  76. package/skills/uipath-maestro-case/references/connector-trigger-planning.md +300 -0
  77. package/skills/uipath-maestro-case/references/entry-points-sync.md +2 -0
  78. package/skills/uipath-maestro-case/references/evals/evals.json +33 -40
  79. package/skills/uipath-maestro-case/references/implementation.md +58 -13
  80. package/skills/uipath-maestro-case/references/phased-execution.md +87 -20
  81. package/skills/uipath-maestro-case/references/placeholder-tasks.md +3 -1
  82. package/skills/uipath-maestro-case/references/planning.md +26 -16
  83. package/skills/uipath-maestro-case/references/plugins/case/impl-json.md +2 -5
  84. package/skills/uipath-maestro-case/references/plugins/case/planning.md +3 -1
  85. package/skills/uipath-maestro-case/references/plugins/conditions/case-exit-conditions/impl-json.md +3 -1
  86. package/skills/uipath-maestro-case/references/plugins/conditions/case-exit-conditions/planning.md +5 -3
  87. package/skills/uipath-maestro-case/references/plugins/conditions/stage-entry-conditions/impl-json.md +4 -2
  88. package/skills/uipath-maestro-case/references/plugins/conditions/stage-entry-conditions/planning.md +6 -4
  89. package/skills/uipath-maestro-case/references/plugins/conditions/stage-exit-conditions/impl-json.md +6 -4
  90. package/skills/uipath-maestro-case/references/plugins/conditions/stage-exit-conditions/planning.md +6 -4
  91. package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/impl-json.md +42 -3
  92. package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/planning.md +6 -4
  93. package/skills/uipath-maestro-case/references/plugins/logging/impl-json.md +50 -32
  94. package/skills/uipath-maestro-case/references/plugins/sla/impl-json.md +2 -4
  95. package/skills/uipath-maestro-case/references/plugins/sla/planning.md +3 -1
  96. package/skills/uipath-maestro-case/references/plugins/stages/impl-json.md +1 -4
  97. package/skills/uipath-maestro-case/references/plugins/stages/planning.md +2 -0
  98. package/skills/uipath-maestro-case/references/plugins/tasks/action/impl-json.md +2 -0
  99. package/skills/uipath-maestro-case/references/plugins/tasks/action/planning.md +2 -0
  100. package/skills/uipath-maestro-case/references/plugins/tasks/agent/impl-json.md +2 -0
  101. package/skills/uipath-maestro-case/references/plugins/tasks/agent/planning.md +2 -0
  102. package/skills/uipath-maestro-case/references/plugins/tasks/api-workflow/impl-json.md +2 -0
  103. package/skills/uipath-maestro-case/references/plugins/tasks/api-workflow/planning.md +5 -3
  104. package/skills/uipath-maestro-case/references/plugins/tasks/case-management/impl-json.md +2 -0
  105. package/skills/uipath-maestro-case/references/plugins/tasks/case-management/planning.md +2 -0
  106. package/skills/uipath-maestro-case/references/plugins/tasks/connector-activity/impl-json.md +43 -13
  107. package/skills/uipath-maestro-case/references/plugins/tasks/connector-activity/planning.md +4 -2
  108. package/skills/uipath-maestro-case/references/plugins/tasks/connector-trigger/impl-json.md +10 -7
  109. package/skills/uipath-maestro-case/references/plugins/tasks/connector-trigger/planning.md +5 -3
  110. package/skills/uipath-maestro-case/references/plugins/tasks/create-inline-common.md +3 -1
  111. package/skills/uipath-maestro-case/references/plugins/tasks/process/impl-json.md +2 -0
  112. package/skills/uipath-maestro-case/references/plugins/tasks/process/planning.md +2 -0
  113. package/skills/uipath-maestro-case/references/plugins/tasks/rpa/impl-json.md +2 -0
  114. package/skills/uipath-maestro-case/references/plugins/tasks/rpa/planning.md +2 -0
  115. package/skills/uipath-maestro-case/references/plugins/tasks/wait-for-timer/impl-json.md +2 -0
  116. package/skills/uipath-maestro-case/references/plugins/tasks/wait-for-timer/planning.md +2 -0
  117. package/skills/uipath-maestro-case/references/plugins/triggers/event/impl-json.md +9 -6
  118. package/skills/uipath-maestro-case/references/plugins/triggers/event/planning.md +5 -3
  119. package/skills/uipath-maestro-case/references/plugins/triggers/manual/impl-json.md +1 -4
  120. package/skills/uipath-maestro-case/references/plugins/triggers/manual/planning.md +2 -0
  121. package/skills/uipath-maestro-case/references/plugins/triggers/timer/impl-json.md +1 -4
  122. package/skills/uipath-maestro-case/references/plugins/triggers/timer/planning.md +2 -0
  123. package/skills/uipath-maestro-case/references/plugins/variables/bindings/impl-json.md +3 -1
  124. package/skills/uipath-maestro-case/references/plugins/variables/global-vars/impl-json.md +40 -2
  125. package/skills/uipath-maestro-case/references/plugins/variables/global-vars/planning.md +12 -2
  126. package/skills/uipath-maestro-case/references/plugins/variables/io-binding/impl-json.md +8 -6
  127. package/skills/uipath-maestro-case/references/plugins/variables/io-binding/planning.md +17 -3
  128. package/skills/uipath-maestro-case/references/registry-discovery.md +9 -5
  129. package/skills/uipath-maestro-case/references/sla-response-shapes.md +3 -1
  130. package/skills/uipath-maestro-case/references/troubleshooting-guide.md +2 -0
  131. package/skills/uipath-maestro-case/scripts/audit_plan.py +231 -0
  132. package/skills/uipath-maestro-flow/references/author/CAPABILITY.md +8 -4
  133. package/skills/uipath-maestro-flow/references/author/references/editing-operations-cli.md +5 -3
  134. package/skills/uipath-maestro-flow/references/author/references/editing-operations-json.md +14 -4
  135. package/skills/uipath-maestro-flow/references/author/references/editing-operations.md +3 -3
  136. package/skills/uipath-maestro-flow/references/author/references/greenfield.md +12 -3
  137. package/skills/uipath-maestro-flow/references/author/references/planning-arch.md +17 -13
  138. package/skills/uipath-maestro-flow/references/author/references/planning-impl.md +1 -1
  139. package/skills/uipath-maestro-flow/references/author/references/plugins/agent/impl.md +49 -4
  140. package/skills/uipath-maestro-flow/references/author/references/plugins/connector/impl.md +59 -17
  141. package/skills/uipath-maestro-flow/references/author/references/plugins/connector-trigger/impl.md +3 -3
  142. package/skills/uipath-maestro-flow/references/author/references/plugins/http/impl-connector.md +3 -1
  143. package/skills/uipath-maestro-flow/references/author/references/plugins/http/impl-manual.md +3 -1
  144. package/skills/uipath-maestro-flow/references/author/references/plugins/http/impl.md +5 -2
  145. package/skills/uipath-maestro-flow/references/author/references/plugins/inline-agent/impl.md +31 -16
  146. package/skills/uipath-maestro-flow/references/author/references/plugins/ixp/impl.md +13 -4
  147. package/skills/uipath-maestro-flow/references/author/references/plugins/loop/impl.md +185 -25
  148. package/skills/uipath-maestro-flow/references/author/references/plugins/loop/planning.md +18 -10
  149. package/skills/uipath-maestro-flow/references/author/references/plugins/rpa/impl.md +9 -3
  150. package/skills/uipath-maestro-flow/references/author/references/plugins/terminate/impl.md +6 -3
  151. package/skills/uipath-maestro-flow/references/diagnose/references/failure-modes.md +68 -0
  152. package/skills/uipath-maestro-flow/references/shared/cli-commands.md +2 -1
  153. package/skills/uipath-maestro-flow/references/shared/file-format.md +36 -9
  154. package/skills/uipath-maestro-flow/references/shared/node-output-wiring.md +1 -1
  155. package/skills/uipath-maestro-flow/references/shared/ux-narration-and-todos.md +1 -1
  156. package/skills/uipath-maestro-flow/references/shared/variables-and-expressions.md +77 -20
  157. package/skills/uipath-planner/SKILL.md +30 -12
  158. package/skills/{uipath-maestro-case/assets/templates/sdd-template-examples.md → uipath-planner/assets/templates/case-sdd-examples.md} +18 -32
  159. package/skills/uipath-planner/assets/templates/case-sdd-template.md +289 -309
  160. package/skills/uipath-planner/references/case-design-lane-guide.md +288 -0
  161. package/skills/uipath-planner/references/multi-skill-patterns-guide.md +1 -1
  162. package/skills/uipath-planner/references/package-selection-guide.md +2 -2
  163. package/skills/uipath-planner/references/pdd-driven-lane-guide.md +5 -1
  164. package/skills/uipath-planner/references/product-selection-guide.md +2 -2
  165. package/skills/uipath-planner/references/sdd-generation-guide.md +16 -15
  166. package/skills/uipath-planner/scripts/audit_sdd.py +437 -0
  167. package/skills/uipath-platform/SKILL.md +7 -2
  168. package/skills/uipath-platform/references/data-fabric/choice-sets.md +1 -1
  169. package/skills/uipath-platform/references/data-fabric/data-fabric.md +1 -1
  170. package/skills/uipath-platform/references/data-fabric/entity-schema.md +37 -21
  171. package/skills/uipath-platform/references/data-fabric/file-attachments.md +1 -1
  172. package/skills/uipath-platform/references/guardrails/byo-configurations.md +205 -0
  173. package/skills/uipath-platform/references/traces/feedback.md +4 -2
  174. package/skills/uipath-platform/references/uip-commands.md +2 -2
  175. package/skills/uipath-review/SKILL.md +55 -52
  176. package/skills/uipath-review/references/agents/agent-grading-rubric.md +62 -40
  177. package/skills/uipath-review/references/agents/agents-coded-rules.md +7 -1
  178. package/skills/uipath-review/references/agents/agents-lowcode-rules.md +21 -2
  179. package/skills/uipath-review/references/agents/guardrails/coded-guardrails-review.md +78 -13
  180. package/skills/uipath-review/references/agents/guardrails/guardrails-review.md +11 -4
  181. package/skills/uipath-review/references/architecture-assessment-guide.md +1 -1
  182. package/skills/uipath-review/references/review-workflow-guide.md +19 -10
  183. package/skills/uipath-review/references/rule-catalog-workflow.md +6 -6
  184. package/skills/uipath-review/references/rule-format.md +1 -1
  185. package/skills/uipath-rpa/SKILL.md +1 -1
  186. package/skills/uipath-solution/SKILL.md +4 -4
  187. package/skills/uipath-solution/references/solution-overview.md +7 -2
  188. package/skills/uipath-tasks/SKILL.md +27 -1
  189. package/skills/uipath-tasks/references/task-catalogs.md +79 -0
  190. package/skills/uipath-tasks/references/task-data.md +45 -0
  191. package/skills/uipath-tasks/references/task-metadata.md +69 -0
  192. package/skills/uipath-test/SKILL.md +3 -3
  193. package/skills/uipath-test/references/test-result-report-guide.md +16 -1
  194. package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/ambiguous-selector.md +1 -1
  195. package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/scope-container-wrong-page.md +1 -1
  196. package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/verify-execution-failure.md +2 -2
  197. package/skills/uipath-troubleshoot/references/products/agents/playbooks/guardrail-violation.md +12 -0
  198. package/version-manifest.json +2 -2
  199. package/skills/uipath-maestro-case/assets/templates/sdd-template.md +0 -667
  200. package/skills/uipath-maestro-case/references/connector-trigger-common.md +0 -511
  201. package/skills/uipath-maestro-case/references/phase-0-interview.md +0 -279
  202. package/skills/uipath-maestro-case/references/sdd-generation-rules.md +0 -1026
  203. package/skills/uipath-review/references/agents/agent-common-issues.md +0 -401
  204. package/skills/uipath-review/references/agents/agent-review-checklist.md +0 -379
  205. /package/skills/{uipath-maestro-case → uipath-planner}/assets/templates/sdd-viewer.html +0 -0
@@ -0,0 +1,437 @@
1
+ #!/usr/bin/env python3
2
+ """Deterministic template-shape audit for a planner-authored Case Management SDD.
3
+
4
+ Usage:
5
+ python3 audit_sdd.py <sdd.md> [--draft <sdd.draft.md>]
6
+
7
+ Read-only. Exit 0 = shape-clean. Exit 1 = numbered findings on stderr; repair
8
+ the document with Write/Edit and re-run until clean. `--draft` additionally
9
+ verifies the finalized document preserves the draft's ordered stage/task
10
+ inventory and every draft `=js:` expression.
11
+ """
12
+
13
+ from __future__ import annotations
14
+
15
+ import re
16
+ import sys
17
+ from pathlib import Path
18
+
19
+ REQUIRED_HEADINGS = [
20
+ "## Table of Contents",
21
+ "## Section 1: Case Definition",
22
+ "### Case Metadata",
23
+ "### Case Triggers",
24
+ "### Case Exit Conditions",
25
+ "### Case Variables",
26
+ "## Section 2: Stages & Tasks",
27
+ "## Section 3: Personas & App Views",
28
+ "### Personas",
29
+ "### Process App Views",
30
+ "## Section 4: Integrations",
31
+ ]
32
+
33
+ SUMMARY_ONLY_HEADINGS = [
34
+ "Source", "Case Objective", "Actors And Systems", "Case Trigger", "Stages",
35
+ "Business Rules", "Task Plan", "Resource Resolution", "Acceptance Scenarios",
36
+ ]
37
+
38
+ STAGE_MARKERS = [
39
+ "**Type:**",
40
+ "**Design Rationale:**",
41
+ "#### Stage Entry Conditions",
42
+ "#### Stage Exit Conditions",
43
+ "#### Tasks",
44
+ ]
45
+
46
+ TASK_MARKERS = [
47
+ "**Type:**",
48
+ "**Activation Mode:**",
49
+ "**Design Rationale:**",
50
+ "**Entry Condition:**",
51
+ "**Task envelope**",
52
+ ]
53
+
54
+ # task type -> (detail-block heading, alternate literal markers)
55
+ TASK_DETAIL_MARKERS = {
56
+ "action": ("Action Task Detail", "**HITL Implementation:**"),
57
+ "wait-for-connector": ("Connector Task Detail", "**Connector:**", "**Trigger / Event:**"),
58
+ "execute-connector-activity": ("Connector Task Detail", "**Connector:**", "**Resolved Resource:**"),
59
+ "wait-for-timer": ("Timer Task Detail", "**Timer Configuration:**", "**Duration:**", "**Timer:**"),
60
+ "case-management": ("Child Case Task Detail", "**Child Case:**"),
61
+ "process": ("Process / Agent / RPA / API Workflow Task Detail", "**Resolved Resource:**"),
62
+ "agent": ("Process / Agent / RPA / API Workflow Task Detail", "**Resolved Resource:**"),
63
+ "rpa": ("Process / Agent / RPA / API Workflow Task Detail", "**Resolved Resource:**"),
64
+ "api-workflow": ("Process / Agent / RPA / API Workflow Task Detail", "**Resolved Resource:**"),
65
+ }
66
+
67
+ CASE_VARIABLES_HEADER = "| Name | Category | Type | sourceTriggers | sourceFields | Default | Description |"
68
+
69
+ STAGE_HEADING = re.compile(r"^###\s+(Stage\s+\d+|Secondary Stage):\s*(.+?)\s*$", re.M)
70
+ TASK_HEADING = re.compile(r"^#####\s+Task\s+(S?\d+|[A-Z]{1,4})\.(\d+):\s*(.+?)\s*$", re.M)
71
+ LETTERED_TASK = re.compile(r"^#####\s+Task\s+[A-RT-Z]+[A-Z]*\.\d", re.M)
72
+
73
+
74
+ def strip_id_suffix(name: str) -> str:
75
+ return re.sub(r"\s*\(`[^`]*`\)\s*$", "", name).strip()
76
+
77
+
78
+ def stage_blocks(text: str):
79
+ """Yield (kind, display name, block text) for each stage heading."""
80
+ matches = list(STAGE_HEADING.finditer(text))
81
+ section3 = re.search(r"^## Section 3: Personas & App Views\s*$", text, re.M)
82
+ doc_end = section3.start() if section3 else len(text)
83
+ for index, match in enumerate(matches):
84
+ end = matches[index + 1].start() if index + 1 < len(matches) else doc_end
85
+ yield match.group(1), strip_id_suffix(match.group(2)), text[match.start():end]
86
+
87
+
88
+ def inventory(text: str):
89
+ """Ordered (stage, task) names, id suffixes stripped."""
90
+ entries = []
91
+ for _, stage_name, block in stage_blocks(text):
92
+ for task in TASK_HEADING.finditer(block):
93
+ entries.append((stage_name, strip_id_suffix(task.group(3))))
94
+ return entries
95
+
96
+
97
+ def js_expressions(text: str):
98
+ return {re.sub(r"\s+", " ", m.group(0)).strip() for m in re.finditer(r"=js:[^|\n]+", text)}
99
+
100
+
101
+ HIGH_WORDS = r"over|above|at\s+least|more\s+than|greater\s+than|in\s+excess\s+of|exceed(?:s|ing)?"
102
+ LOW_WORDS = r"under|below|at\s+most|less\s+than"
103
+ COMPARATOR_THRESHOLD = re.compile(
104
+ rf"(>=|<=|>|<|≥|≤|\b(?:{HIGH_WORDS}|{LOW_WORDS})\b)\s*"
105
+ r"\$\s*(\d[\d,]*(?:\.\d+)?)\s*([mk])?\b",
106
+ re.IGNORECASE,
107
+ )
108
+ EXECUTABLE_LINE = re.compile(r"=js:|vars\.|\bowner\b|\brecipient\b|Role:", re.IGNORECASE)
109
+ PROSE_MARKER = re.compile(r"^\*\*(Design Rationale|Description):\*\*", re.M)
110
+
111
+
112
+ def comparator_direction(token: str) -> str:
113
+ token = token.casefold().strip()
114
+ if token in (">", ">=", "≥") or re.fullmatch(HIGH_WORDS, token):
115
+ return "high"
116
+ return "low"
117
+
118
+
119
+ def threshold_variants(number: str, suffix: str | None) -> list[str]:
120
+ """Spellings of one currency threshold: '5' + 'M' -> 5M, 5 million, 5000000, 5,000,000.
121
+
122
+ The bare short numeral ('5') is deliberately excluded — it would match any
123
+ digit in an executable line and make the check vacuous.
124
+ """
125
+ bare = number.replace(",", "")
126
+ if suffix:
127
+ factor = 1_000_000 if suffix.lower() == "m" else 1_000
128
+ word = "million" if suffix.lower() == "m" else "thousand"
129
+ variants = [f"{bare}{suffix.lower()}", f"{bare} {word}"]
130
+ if "." not in bare:
131
+ expanded = str(int(bare) * factor)
132
+ variants += [expanded, f"{int(expanded):,}"]
133
+ return variants
134
+ variants = [bare]
135
+ if "." not in bare:
136
+ variants.append(f"{int(bare):,}")
137
+ return variants
138
+
139
+
140
+ def unencoded_thresholds(draft: str, final: str) -> list[str]:
141
+ """Draft comparator-currency thresholds with no executable encoding in the final.
142
+
143
+ A threshold counts as encoded when some final line mentions one of its
144
+ spellings AND carries an executable signal (`=js:` / `vars.` / owner /
145
+ recipient / `Role:`). Prose repetition alone is not an encoding.
146
+ """
147
+ findings = []
148
+ seen: set[tuple[str, str]] = set()
149
+ # Rationale/Description prose never counts as an encoding — the guard must
150
+ # live in an executable table cell (owner/recipient/WHEN/IF/Inputs).
151
+ executable_lines = [
152
+ line for line in final.splitlines()
153
+ if EXECUTABLE_LINE.search(line) and not PROSE_MARKER.match(line.strip())
154
+ ]
155
+ for match in COMPARATOR_THRESHOLD.finditer(draft):
156
+ direction = comparator_direction(match.group(1))
157
+ variants = threshold_variants(match.group(2), match.group(3))
158
+ key = (variants[-1], direction)
159
+ if key in seen:
160
+ continue
161
+ seen.add(key)
162
+ needles = [re.compile(rf"(?<![\w.]){re.escape(v)}(?!\w)", re.IGNORECASE) for v in variants]
163
+ covered = False
164
+ for line in executable_lines:
165
+ if not any(n.search(line) for n in needles):
166
+ continue
167
+ ternary = "?" in line and ":" in line.split("?", 1)[-1]
168
+ line_dirs = {comparator_direction(t.group(1)) for t in re.finditer(
169
+ rf"(>=|<=|>|<|≥|≤|\b(?:{HIGH_WORDS}|{LOW_WORDS})\b)", line, re.IGNORECASE)}
170
+ if ternary or direction in line_dirs:
171
+ covered = True
172
+ break
173
+ if not covered:
174
+ findings.append(
175
+ f"draft threshold policy {match.group(0).strip()!r} has no {direction}-side executable encoding — "
176
+ f"add the guard to an owner/recipient/WHEN/IF cell (fast-path step 9), e.g. "
177
+ f"`=js:vars.<attr> > <threshold> ? \"Role:<ExceptionRole>\" : \"Role:<DefaultRole>\"`; "
178
+ f"Rationale/Description prose does not count"
179
+ )
180
+ return findings
181
+
182
+
183
+ VARIABLE_ROW = re.compile(
184
+ r"^\|\s*([A-Za-z]\w*)\s*\|\s*(In|Out|Variable)\s*\|"
185
+ r"\s*[^|]*\|\s*([^|]*?)\s*\|\s*[^|]*\|\s*([^|]*?)\s*\|",
186
+ re.M,
187
+ )
188
+
189
+
190
+ def lineage_findings(text: str) -> list[str]:
191
+ """Mirror sdd_check's mapping + lineage closure: every consumed variable is
192
+ declared and produced (-> output, `X =` assignment, Default, or trigger-sourced)."""
193
+ findings: list[str] = []
194
+ category: dict[str, str] = {}
195
+ src_trig: dict[str, str] = {}
196
+ default: dict[str, str] = {}
197
+ for name, cat, st, d in VARIABLE_ROW.findall(text):
198
+ category[name] = cat
199
+ src_trig[name] = st.strip()
200
+ default[name] = d.strip()
201
+ if not category:
202
+ return findings # template checks already flag a missing table
203
+ refs = set(re.findall(r"=vars\.([A-Za-z]\w*)", text)) - {"X"}
204
+ undeclared = sorted(r for r in refs if r not in category)
205
+ if undeclared:
206
+ findings.append(f"{len(undeclared)} =vars consumed but not declared in Case Variables: {', '.join(undeclared)}")
207
+ produced = set(re.findall(r"->\s*([A-Za-z]\w*)", text)) | set(
208
+ re.findall(r"\b([A-Za-z]\w*)\s*=\s*(?!=)", text)
209
+ )
210
+ open_lineage = sorted(
211
+ r for r in refs
212
+ if r in category and category.get(r) != "In"
213
+ and not default.get(r) and not src_trig.get(r) and r not in produced
214
+ )
215
+ for name in open_lineage:
216
+ findings.append(
217
+ f"variable {name!r} is consumed but never produced — keep its producer output row "
218
+ f"(`-> {name}`), assignment, Default, or trigger source"
219
+ )
220
+ return findings
221
+
222
+
223
+ MODEL_MD = Path(__file__).resolve().parent.parent / "references" / "case" / "model.md"
224
+
225
+
226
+ def load_model_facts() -> dict:
227
+ """Parse the canonical tables in references/case/model.md (stdlib only).
228
+
229
+ Reads the `### Task types` table (column 1 literals), the `### Lifecycle gates`
230
+ table (legal WHEN rules per Marks-complete value), and the `### Naming rules`
231
+ fenced regex. Returns {} when model.md is absent so the shape audit still runs.
232
+ """
233
+ try:
234
+ text = MODEL_MD.read_text(encoding="utf-8")
235
+ except OSError:
236
+ return {}
237
+
238
+ def section(heading: str) -> str:
239
+ match = re.search(rf"^### {re.escape(heading)}\s*$(.*?)(?=^#|\Z)", text, re.M | re.S)
240
+ return match.group(1) if match else ""
241
+
242
+ facts: dict = {}
243
+ facts["task_types"] = set(re.findall(r"^\|\s*`([a-z][a-z-]+)`\s*\|", section("Task types"), re.M))
244
+ yes_when: set[str] = set()
245
+ no_when: set[str] = set()
246
+ for row in re.finditer(r"^\|([^|]+)\|\s*(Yes|No)\s*\|([^|]+)\|", section("Lifecycle gates"), re.M):
247
+ rules = set(re.findall(r"`([a-z][a-z-]+)`", row.group(3)))
248
+ (yes_when if row.group(2) == "Yes" else no_when).update(rules)
249
+ facts["yes_when"], facts["no_when"] = yes_when, no_when
250
+ pattern = re.search(r"```\s*(\^[^\n`]+\$)\s*```", section("Naming rules"))
251
+ facts["name_pattern"] = re.compile(pattern.group(1)) if pattern else None
252
+ if not facts["task_types"] or not yes_when:
253
+ return {}
254
+ return facts
255
+
256
+
257
+ def model_findings(text: str) -> list[str]:
258
+ """Checks driven by the canonical model tables: task-type enum, WHEN/Marks-Complete
259
+ pairing legality, and display-name character rules."""
260
+ facts = load_model_facts()
261
+ if not facts:
262
+ return []
263
+ findings: list[str] = []
264
+
265
+ for match in re.finditer(r"^\*\*Type:\*\*\s*`?([a-z][a-z-]+)`?\s*$", text, re.M):
266
+ if match.group(1) not in facts["task_types"]:
267
+ findings.append(
268
+ f"task type {match.group(1)!r} outside the closed enum (model.md § Task types): "
269
+ + ", ".join(sorted(facts["task_types"]))
270
+ )
271
+
272
+ known_rules = facts["yes_when"] | facts["no_when"]
273
+ for line_no, line in enumerate(text.splitlines(), 1):
274
+ if not line.lstrip().startswith("|"):
275
+ continue
276
+ cells = [c.strip() for c in line.strip().strip("|").split("|")]
277
+ if len(cells) < 4:
278
+ continue
279
+ when = re.match(r"`?([a-z][a-z-]+)", cells[0])
280
+ marks = next((c for c in cells if c in ("Yes", "No")), None)
281
+ if not when or marks is None or when.group(1) not in known_rules:
282
+ continue
283
+ legal = facts["yes_when"] if marks == "Yes" else facts["no_when"]
284
+ if when.group(1) not in legal:
285
+ findings.append(
286
+ f"line {line_no}: WHEN {when.group(1)!r} with Marks Complete {marks!r} is an illegal "
287
+ "pair (model.md § Lifecycle gates)"
288
+ )
289
+
290
+ name_pattern = facts.get("name_pattern")
291
+ if name_pattern:
292
+ for kind, name, _ in stage_blocks(text):
293
+ if not name_pattern.fullmatch(name.strip()):
294
+ findings.append(f"{kind.lower()} name {name!r} breaks model.md § Naming rules")
295
+ for match in re.finditer(r"^#{5} Task [S\d.]+: ([^\n]+)$", text, re.M):
296
+ candidate = strip_id_suffix(match.group(1)).strip()
297
+ if not name_pattern.fullmatch(candidate):
298
+ findings.append(f"task name {candidate!r} breaks model.md § Naming rules")
299
+ return findings
300
+
301
+
302
+ def audit(sdd_path: Path, draft_path: Path | None) -> list[str]:
303
+ findings: list[str] = []
304
+ text = sdd_path.read_text(encoding="utf-8")
305
+
306
+ first = next((line.strip() for line in text.splitlines() if line.strip()), "")
307
+ if not first.startswith("# SDD — "):
308
+ findings.append("first heading must be '# SDD — {Case Name}'")
309
+
310
+ for heading in REQUIRED_HEADINGS:
311
+ if not re.search(rf"^{re.escape(heading)}\s*$", text, re.M):
312
+ findings.append(f"missing required heading {heading!r}")
313
+ for heading in SUMMARY_ONLY_HEADINGS:
314
+ if re.search(rf"^## {re.escape(heading)}\s*$", text, re.M):
315
+ findings.append(f"summary-only heading '## {heading}' — render the full template instead")
316
+
317
+ if CASE_VARIABLES_HEADER not in text:
318
+ findings.append(f"Case Variables table must use the literal header {CASE_VARIABLES_HEADER!r}")
319
+ if LETTERED_TASK.search(text):
320
+ findings.append("lettered task prefixes (Task R.1 / W.1 / CC.1 / ESC.1) — renumber as Task S{K}.{M}")
321
+ for line_no, line in enumerate(text.splitlines(), 1):
322
+ if re.search(r"\\n\s*(?:\*\*|#|\|)", line):
323
+ findings.append(
324
+ f"line {line_no}: literal \\n escape corrupts the document structure — rewrite the block with real newlines"
325
+ )
326
+
327
+ stages = list(stage_blocks(text))
328
+ if not stages:
329
+ findings.append("no '### Stage {N}:' / '### Secondary Stage:' blocks found")
330
+ for kind, stage_name, block in stages:
331
+ for marker in STAGE_MARKERS:
332
+ if marker not in block:
333
+ findings.append(f"stage {stage_name!r} missing {marker!r}")
334
+ stage_type = re.search(r"^\*\*Type:\*\*\s*([^\n]+)", block, re.M)
335
+ if stage_type and stage_type.group(1).strip() not in ("Stage", "ExceptionStage"):
336
+ findings.append(
337
+ f"stage {stage_name!r} has '**Type:** {stage_type.group(1).strip()}' — the stage Type literal is 'Stage'; "
338
+ "secondary-ness lives in the heading, '**Stage Kind:** secondary', and '**Interrupting:**'"
339
+ )
340
+ if kind == "Secondary Stage" and not re.search(r"^\*\*Interrupting:\*\*\s*(Yes|No)\b", block, re.M):
341
+ findings.append(f"secondary stage {stage_name!r} missing explicit '**Interrupting:** Yes' or 'No'")
342
+ if kind == "Secondary Stage" and "return-to-origin" in block and not re.search(
343
+ r"^\*\*Interrupting:\*\*\s*Yes\b", block, re.M
344
+ ):
345
+ findings.append(
346
+ f"secondary stage {stage_name!r} exits return-to-origin but does not declare '**Interrupting:** Yes'"
347
+ )
348
+
349
+ tasks = list(TASK_HEADING.finditer(block))
350
+ if not tasks:
351
+ findings.append(f"stage {stage_name!r} has no '##### Task' detail blocks — every task in its Tasks table needs one")
352
+ continue
353
+ for index, task in enumerate(tasks):
354
+ end = tasks[index + 1].start() if index + 1 < len(tasks) else len(block)
355
+ task_block = block[task.start():end]
356
+ task_name = strip_id_suffix(task.group(3))
357
+ for marker in TASK_MARKERS:
358
+ if marker not in task_block:
359
+ findings.append(f"task {task_name!r} missing {marker!r}")
360
+ type_match = re.search(r"^\*\*Type:\*\*\s*`?([a-z-]+)", task_block, re.M)
361
+ if type_match:
362
+ markers = TASK_DETAIL_MARKERS.get(type_match.group(1))
363
+ if markers and not any(marker in task_block for marker in markers):
364
+ findings.append(f"task {task_name!r} (type {type_match.group(1)}) missing type detail block {markers[0]!r}")
365
+
366
+ # sla-status-change arg shape: 2 quoted args (breach) or 3 (at-risk), and the
367
+ # target must resolve: the literal 'root' or a declared stage display name.
368
+ valid_targets = {"root"} | {name.casefold() for _, name, _ in stage_blocks(text)}
369
+ for line_no, line in enumerate(text.splitlines(), 1):
370
+ for call in re.finditer(r"sla-status-change\s*\(([^)]*)\)", line, re.I):
371
+ args = re.findall(r"[\"“‘']([^\"”’']+)[\"”’']", call.group(1))
372
+ if args and len(args) not in (2, 3):
373
+ findings.append(
374
+ f"line {line_no}: sla-status-change takes (\"<SLA target>\",\"<SLA Title>\") "
375
+ f"or (...,\"<At-Risk Escalation Display Name>\"); got {len(args)} args"
376
+ )
377
+ if args and valid_targets and args[0].strip().casefold() not in valid_targets:
378
+ findings.append(
379
+ f"line {line_no}: sla-status-change target {args[0]!r} is neither the literal 'root' (case-level) "
380
+ f"nor a stage declared in this SDD — never the case name or a synonym"
381
+ )
382
+
383
+ findings.extend(lineage_findings(text))
384
+ findings.extend(model_findings(text))
385
+
386
+ draft_findings: list[str] = []
387
+ if draft_path is not None:
388
+ if not draft_path.is_file():
389
+ draft_findings.append(f"{draft_path} is gone — never delete or rename the draft; finalize renders a new sdd.md beside it")
390
+ else:
391
+ draft = draft_path.read_text(encoding="utf-8")
392
+ draft_inv, final_inv = inventory(draft), inventory(text)
393
+ if draft_inv != final_inv:
394
+ missing = [f"{s} / {t}" for s, t in draft_inv if (s, t) not in final_inv]
395
+ added = [f"{s} / {t}" for s, t in final_inv if (s, t) not in draft_inv]
396
+ detail = "; ".join(
397
+ part for part in (
398
+ f"missing: {', '.join(missing[:8])}" if missing else "",
399
+ f"added/renamed: {', '.join(added[:8])}" if added else "",
400
+ "order changed" if not missing and not added else "",
401
+ ) if part
402
+ )
403
+ draft_findings.append(
404
+ f"stage/task inventory differs from draft (draft={len(draft_inv)}, final={len(final_inv)}) — {detail}"
405
+ )
406
+ lost = sorted(js_expressions(draft) - js_expressions(text))
407
+ for expression in lost[:10]:
408
+ draft_findings.append(f"draft policy expression lost: {expression}")
409
+ draft_findings.extend(unencoded_thresholds(draft, text))
410
+
411
+ findings = draft_findings + findings
412
+ return findings
413
+
414
+
415
+ def main() -> None:
416
+ args = [a for a in sys.argv[1:]]
417
+ draft: Path | None = None
418
+ if "--draft" in args:
419
+ i = args.index("--draft")
420
+ draft = Path(args[i + 1])
421
+ del args[i:i + 2]
422
+ if len(args) != 1:
423
+ sys.exit(__doc__)
424
+ findings = audit(Path(args[0]), draft)
425
+ if findings:
426
+ shown = findings[:40]
427
+ print("AUDIT FAIL — repair these, then re-run:", file=sys.stderr)
428
+ for n, f in enumerate(shown, 1):
429
+ print(f" {n}. {f}", file=sys.stderr)
430
+ if len(findings) > len(shown):
431
+ print(f" … and {len(findings) - len(shown)} more", file=sys.stderr)
432
+ sys.exit(1)
433
+ print("AUDIT OK: sdd.md template shape is clean")
434
+
435
+
436
+ if __name__ == "__main__":
437
+ main()
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: uipath-platform
3
- description: "UiPath platform ops via the uip CLI — use for ANY task hitting UiPath Cloud / Orchestrator / Studio Web / Integration Service / Data Fabric / LLM Gateway. Load BEFORE writing code that calls a UiPath API. Covers auth, folders, assets, queues, storage buckets, libraries, webhooks, triggers, processes, jobs, machines, users, roles, sessions, calendars, IS connectors/connections/activities, Data Fabric entities/records/files/choice-sets (`uip df`), BYO LLM product configurations, context grounding, traces (execution traces and spans + trace feedback / annotation), licensing. For 'why did X fail' / root-cause→uipath-troubleshoot. For org/tenant audit trail / audit logs / login history→uipath-admin. For `uip solution` lifecycle→uipath-solution. For PDD/SDD design→uipath-planner. For workflow code (.xaml/.cs)→uipath-rpa, .flow (incl. Data Fabric connector nodes)→uipath-maestro-flow, .bpmn→uipath-maestro-bpmn, agents (.py/agent.json)→uipath-agents, Test Manager→uipath-test."
4
- when_to_use: "User mentions UiPath / Orchestrator / Studio Web / Integration Service / Data Fabric / LLM Gateway / 'uip' CLI / asset / queue / bucket / library / webhook / trigger / connector / connection / tenant / folder / robot / package / entity / record / choice set / trace / span / trace feedback / BYO LLM. Also 'upload to UiPath', 'create asset', 'start job', 'list queues', 'deploy a single package to Orchestrator', 'OAuth2 token', 'list trace spans / add trace feedback', 'create entity', 'add field', 'delete field', 'list entities', 'insert record', 'update record', 'delete record', 'query Data Fabric', 'search records', 'show every <thing> tagged/where', 'filter records by tag/choice/field', 'count by group', 'unique tag combinations', 'group by field', 'aggregate COUNT/SUM/AVG', 'create choice-set', 'create choiceset', 'add choice set values', 'delete choice set', 'attach file to record', 'upload/download/delete file on entity record', 'swap record attachment', 'import CSV', 'load CSV into entity/list', 'load spreadsheet into entity', 'bulk load records from CSV', 'bulk import from CSV', 'register my own LLM key', 'configure a model substitution', 'my BYO LLM key stopped working / returns errors', 're-probe / audit a BYO configuration', 'uipath.com REST'. For `uip solution` ops or `.uipx` deploys→uipath-solution. For Data Fabric connector nodes inside a `.flow`→uipath-maestro-flow."
3
+ description: "UiPath platform ops via the uip CLI — use for ANY task hitting UiPath Cloud / Orchestrator / Studio Web / Integration Service / Data Fabric / LLM Gateway. Load BEFORE writing code that calls a UiPath API. Covers auth, folders, assets, queues, storage buckets, libraries, webhooks, triggers, processes, jobs, machines, users, roles, sessions, calendars, IS connectors/connections/activities, Data Fabric entities/records/files/choice-sets (`uip df`), BYO LLM product configurations, BYO guardrail (BYOG) configurations, context grounding, traces (execution traces and spans + trace feedback / annotation), licensing. For 'why did X fail' / root-cause→uipath-troubleshoot. For org/tenant audit trail / audit logs / login history→uipath-admin. For `uip solution` lifecycle→uipath-solution. For PDD/SDD design→uipath-planner. For workflow code (.xaml/.cs)→uipath-rpa, .flow (incl. Data Fabric connector nodes)→uipath-maestro-flow, .bpmn→uipath-maestro-bpmn, agents (.py/agent.json)→uipath-agents, Test Manager→uipath-test."
4
+ when_to_use: "User mentions UiPath / Orchestrator / Studio Web / Integration Service / Data Fabric / LLM Gateway / 'uip' CLI / asset / queue / bucket / library / webhook / trigger / connector / connection / tenant / folder / robot / package / entity / record / choice set / trace / span / trace feedback / BYO LLM / BYO guardrail / BYOG. Also 'upload to UiPath', 'create asset', 'start job', 'list queues', 'deploy a single package to Orchestrator', 'OAuth2 token', 'list trace spans / add trace feedback', 'create entity', 'add field', 'delete field', 'list entities', 'insert record', 'update record', 'delete record', 'query Data Fabric', 'search records', 'show every <thing> tagged/where', 'filter records by tag/choice/field', 'count by group', 'unique tag combinations', 'group by field', 'aggregate COUNT/SUM/AVG', 'create choice-set', 'create choiceset', 'add choice set values', 'delete choice set', 'attach file to record', 'upload/download/delete file on entity record', 'swap record attachment', 'import CSV', 'load CSV into entity/list', 'load spreadsheet into entity', 'bulk load records from CSV', 'bulk import from CSV', 'register my own LLM key', 'configure a model substitution', 'my BYO LLM key stopped working / returns errors', 're-probe / audit a BYO configuration', 'list bring-your-own guardrail configurations', 'register/enable/disable/delete a BYOG guardrail configuration', 'who registered this BYOG guardrail', 'uipath.com REST'. For `uip solution` ops or `.uipx` deploys→uipath-solution. For Data Fabric connector nodes inside a `.flow`→uipath-maestro-flow."
5
5
  allowed-tools: Bash, Read, Write, Glob, Grep, Skill
6
6
  ---
7
7
 
@@ -52,6 +52,7 @@ Load this skill BEFORE writing any code that talks to UiPath. Specific triggers:
52
52
  For Query / Create / Update / Delete / GetById connector nodes **inside a `.flow`**, hand off to `uipath-maestro-flow` — that skill owns the in-flow node JSON, `bindings_v2.json`, and connection-resource layout.
53
53
  - **LLM Gateway — BYO product configurations**: `uip llm-configuration byo-connections` (`list / get / create / update / delete / list-product-configs`). Register tenant-owned OpenAI / Azure OpenAI / AWS Bedrock / Google Vertex / Anthropic / OpenAI-compatible keys against UiPath product features (agents, agenthub, jarvis, IXP, agent builder, ECS). Two input shapes: single-mapping (for `AnyModelWithOwnAdditions` features) and repeated `--mapping` (required for `AllModels` / `AnyModel`). Server-side validation is mandatory.
54
54
  - **LLM Gateway — diagnose a failing BYO config**: re-probe the underlying IS connection with `byo-connections get <id> --force-refresh`, force a fresh server-side probe with an idempotent `update`, audit the tenant with `list --include-connection-details` filtered on `connectionState != Enabled`, check catalog drift with `list-product-configs`, and cross-reference trace evidence with `uip traces spans get <trace-id>`. The gateway does **not** expose per-request invocation logs via CLI — diagnosis is current-state + trace evidence only. See [`references/llmgateway/byo-connections.md` § Diagnostics](references/llmgateway/byo-connections.md#diagnostics). For tenant-wide AI Trust Layer policy that may be overriding routing, see [uipath-governance](/uipath:uipath-governance).
55
+ - **AI Trust Layer — BYO guardrail (BYOG) configurations**: `uip guardrails byo-configurations` (`list / list-validators / probe / create / update / delete`) — manage tenant-registered external guardrail validator providers (e.g. Azure AI Content Safety, Databricks AI Guardrails), each backed by an Integration Service connection. `ValidatorName` is tenant-unique and is the only value agents reference (`ByoValidator(<ValidatorName>)` — the connection resolves server-side). Before creating, `list` (the name must be free) and `uip is connections list` (for `--connection-id`); `create` always probes the connection/validator pair server-side and aborts if the probe fails, with no skip flag, and `update` re-probes whenever `--connection-id` changes. `probe` and `list-validators` test a pairing without saving anything; `update` merges supplied fields and can flip `--enabled`/`--disabled`; `delete` requires `--force`; no `get` verb. See [`references/guardrails/byo-configurations.md`](references/guardrails/byo-configurations.md). For authoring a guardrail against one of these configurations (low-code or coded), see [uipath-agents](/uipath:uipath-agents).
55
56
  - **Traces**: `uip traces spans get <trace-id>` (LLM/agentic execution observability)
56
57
  - **Context grounding**: knowledge indexes for semantic search / RAG — `uip context-grounding` (`list / create` from a bucket or connection `/ ingest / retrieve` to poll ingestion status `/ search / delete`). Agents and flows consume these indexes as tools. See [`references/context-grounding/index-management.md`](references/context-grounding/index-management.md).
57
58
  - **Platform licensing**: tenant license allocations, user/group bundle assignments, consumables reporting (`uip platform tenants licenses`, `users licenses`, `groups rules`, `licenses consumables get` — the only consumables verb; summary/daily/folders are `--mode` values)
@@ -173,6 +174,9 @@ Choose the appropriate operation from the Task Navigation table below. For `uip
173
174
  | **Bulk import records from CSV** | [references/data-fabric/bulk-import.md](references/data-fabric/bulk-import.md) |
174
175
  | **Configure BYO LLM keys (OpenAI / Azure OpenAI / Bedrock / Vertex / Anthropic)** | [references/llmgateway/byo-connections.md](references/llmgateway/byo-connections.md) |
175
176
  | **Diagnose / audit / re-probe a BYO LLM configuration** | [references/llmgateway/byo-connections.md#diagnostics](references/llmgateway/byo-connections.md#diagnostics) |
177
+ | **Manage BYO guardrail (BYOG) configurations (list/create/update/delete)** | [references/guardrails/byo-configurations.md](references/guardrails/byo-configurations.md) |
178
+ | **Test whether a connection can serve a BYOG validator (probe / list-validators)** | [references/guardrails/byo-configurations.md#validation-mandatory-before-save](references/guardrails/byo-configurations.md#validation-mandatory-before-save) |
179
+ | **Diagnose a BYO guardrail (dead connection, disabled config)** | [references/guardrails/byo-configurations.md#diagnostics](references/guardrails/byo-configurations.md#diagnostics) |
176
180
  | **Allocate licenses to tenants** | [references/licensing/tenant-allocations.md](references/licensing/tenant-allocations.md) |
177
181
  | **Assign user/group license bundles** | [references/licensing/user-licenses-allocations.md](references/licensing/user-licenses-allocations.md) |
178
182
  | **Report on license consumption** | [references/licensing/consumables-report.md](references/licensing/consumables-report.md) |
@@ -308,6 +312,7 @@ Every `uip` command accepts:
308
312
  - **[Integration Service](references/integration-service/integration-service.md)** — Connectors, connections, activities, resources
309
313
  - **[Data Fabric](references/data-fabric/data-fabric.md)** — Entity schemas, records CRUD, query filters and aggregates, choice sets, file attachments, CSV bulk import, folder scoping
310
314
  - **[LLM Gateway — BYO Connections](references/llmgateway/byo-connections.md)** — Register tenant-owned LLM keys against UiPath products
315
+ - **[Guardrails — BYOG Configurations](references/guardrails/byo-configurations.md)** — Manage tenant-registered bring-your-own guardrail (BYOG) configurations and diagnose their underlying Integration Service connections
311
316
  - **[Licensing](references/licensing/licensing.md)** — Tenant allocations, user/group bundles, consumables reporting
312
317
  - **[Coded Workflows](/uipath:uipath-rpa)** — Building coded automation projects
313
318
 
@@ -64,7 +64,7 @@ Two rules for any script that batch-creates values:
64
64
  1. List choice sets and let the user reuse one or approve a new set.
65
65
  2. For a new set, create it, then create each value separately in the approved order. `choice-set-values create` takes the set ID and value name as positional arguments; it does not accept a batch `--body`.
66
66
  3. Re-list values to obtain their assigned `NumberId`s.
67
- 4. Bind the set with `{"fieldName":"<field>","type":"CHOICE_SET_SINGLE","choiceSetId":"<id>"}` (or `CHOICE_SET_MULTIPLE`) in `entities create` or `entities update`.
67
+ 4. Bind the set with `{"name":"<field>","type":"CHOICE_SET_SINGLE","choiceSetId":"<id>"}` (or `CHOICE_SET_MULTIPLE`) in `entities create` or `entities update`.
68
68
 
69
69
  ## Write / read / filter record values
70
70
 
@@ -72,7 +72,7 @@ Do not change field types, create federated entities, or write federated records
72
72
 
73
73
  10. **Entity delete — dependent discovery.** Gating lives in the Destructive Operations block. Scan for inbound references (`entities list --output json` → `Fields[].ReferenceEntity.Id == <id>`) and choice sets used by the entity's fields (`Fields[].ChoiceSetId`). Ask per dependent: delete, leave, or stop. Full sequence: [`entity-schema.md` → Deleting an Entity](entity-schema.md#deleting-an-entity).
74
74
 
75
- 11. **Field delete — `removeFields` uses `{"fieldName":"…"}`** (NOT `id` like `updateFields`). For `CHOICE_SET_*` / `RELATIONSHIP` fields, raise a cascade-ask dropdown before invoking (`Delete only the field` / `Also delete the referenced choice set / target entity` / `Stop`) and echo other bindings so the user sees blast radius. `FILE` field delete drops only the column — never offer to delete the platform-managed storage entity. Full sequence: [`entity-schema.md` → Deleting a Field](entity-schema.md#deleting-a-field).
75
+ 11. **Field delete — `removeFields` uses `{"name":"…"}`** (NOT `id` like `updateFields`). For `CHOICE_SET_*` / `RELATIONSHIP` fields, raise a cascade-ask dropdown before invoking (`Delete only the field` / `Also delete the referenced choice set / target entity` / `Stop`) and echo other bindings so the user sees blast radius. `FILE` field delete drops only the column — never offer to delete the platform-managed storage entity. Full sequence: [`entity-schema.md` → Deleting a Field](entity-schema.md#deleting-a-field).
76
76
 
77
77
  12. **Complex fields need extra config and lookups.** `CHOICE_SET_*` needs `choiceSetId`; `RELATIONSHIP` needs `referenceEntityId` + `referenceFieldId`; `FILE` needs neither (server auto-wires). When the user describes a link ("each order has a Customer"), the type is `RELATIONSHIP` — never substitute `STRING` or `UUID`. Target entity must exist first. Full shape: [`entity-schema.md` → Supported Field Types](entity-schema.md#supported-field-types).
78
78